Commit 81a2e0f7 authored by gengshaojing's avatar gengshaojing

update: clear

parent 05b64c6a
...@@ -470,7 +470,7 @@ export default { ...@@ -470,7 +470,7 @@ export default {
this.commodityForm = {}; this.commodityForm = {};
if (type == "add") { if (type == "add") {
this.hideUpload = false; this.hideUpload = false;
this.picUrlList = []; // this.picUrlList = [];
this.inventoryRest = 0; this.inventoryRest = 0;
this.commodityForm.total_amount_order = 0; this.commodityForm.total_amount_order = 0;
this.addCommodityTitle = "商品添加"; this.addCommodityTitle = "商品添加";
...@@ -502,6 +502,7 @@ export default { ...@@ -502,6 +502,7 @@ export default {
type: "success", type: "success",
}); });
this.comTableData.push(res.result.goods_info); this.comTableData.push(res.result.goods_info);
this.$refs.picUpload.clearFiles();
this.addCommodityPopup = false; this.addCommodityPopup = false;
} else { } else {
ElMessage.error(res.reason); ElMessage.error(res.reason);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment