|
@@ -28,6 +28,7 @@ class GoodsService extends CrudService {
|
|
let specList = await this.goodsSpecmodel.find({ goods: id });
|
|
let specList = await this.goodsSpecmodel.find({ goods: id });
|
|
if (specList.length > 0) specList = JSON.parse(JSON.stringify(specList));
|
|
if (specList.length > 0) specList = JSON.parse(JSON.stringify(specList));
|
|
const nd = JSON.parse(JSON.stringify(data));
|
|
const nd = JSON.parse(JSON.stringify(data));
|
|
|
|
+ nd.name = `${nd.name}-复制-${new Date().getTime()}`;
|
|
delete nd.id;
|
|
delete nd.id;
|
|
delete nd._id;
|
|
delete nd._id;
|
|
delete nd.meta;
|
|
delete nd.meta;
|