|
@@ -148,7 +148,7 @@ import { getClass } from "@/api/category";
|
|
|
import { getGoodsDetail, addGoodsData, updateGoodsData } from "@/api/goods";
|
|
import { getGoodsDetail, addGoodsData, updateGoodsData } from "@/api/goods";
|
|
|
//图片上传插件来源:https://ext.dcloud.net.cn/plugin?id=2922 已改造,不能再升级 shish 20211228
|
|
//图片上传插件来源:https://ext.dcloud.net.cn/plugin?id=2922 已改造,不能再升级 shish 20211228
|
|
|
import htzImageUpload from '@/components/htz-image-upload/htz-image-upload.vue'
|
|
import htzImageUpload from '@/components/htz-image-upload/htz-image-upload.vue'
|
|
|
-import productMins from "@/mixins/product";
|
|
|
|
|
|
|
+//import productMins from "@/mixins/product"; //复制页面代码时,没去掉,引入的话会导致页面崩溃
|
|
|
import inputRestore from "@/mixins/inputRestore";
|
|
import inputRestore from "@/mixins/inputRestore";
|
|
|
export default {
|
|
export default {
|
|
|
name: "add",
|
|
name: "add",
|
|
@@ -157,7 +157,7 @@ export default {
|
|
|
AppUploader,
|
|
AppUploader,
|
|
|
htzImageUpload
|
|
htzImageUpload
|
|
|
},
|
|
},
|
|
|
- mixins: [productMins, inputRestore],
|
|
|
|
|
|
|
+ mixins: [inputRestore],//productMins,
|
|
|
data() {
|
|
data() {
|
|
|
return {
|
|
return {
|
|
|
selectJobType: "addGoodsSelectItem",
|
|
selectJobType: "addGoodsSelectItem",
|
|
@@ -314,7 +314,7 @@ export default {
|
|
|
return {name:ele.name,cover:ele.smallCover,itemId:ele.ptItemId,id:ele.itemId,ratio:ele.ratio,
|
|
return {name:ele.name,cover:ele.smallCover,itemId:ele.ptItemId,id:ele.itemId,ratio:ele.ratio,
|
|
|
bigCount:bigCount,smallCount:smallCount,bigUnit:ele.bigName,smallUnit:ele.smallName,shortCover:ele.shortCover}
|
|
bigCount:bigCount,smallCount:smallCount,bigUnit:ele.bigName,smallUnit:ele.smallName,shortCover:ele.shortCover}
|
|
|
})
|
|
})
|
|
|
- this.pushToSave(newItem)
|
|
|
|
|
|
|
+ //this.pushToSave(newItem)
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
Object.keys(this.form).forEach((i) => {
|
|
Object.keys(this.form).forEach((i) => {
|