浏览代码

代码上传

zhangqi 2 年之前
父节点
当前提交
1c4f5b1d92

+ 4 - 7
src/HDrpManagement/orderManage/modules/edit.vue

@@ -162,10 +162,10 @@
         </div>
         <el-row :gutter="10">
           <el-col :span="setcol">
-            <product-list ref="prolist" :type="'edit'" @onSuccess="onSuccess"></product-list>
+            <product-list ref="prolist" :type="'edit'" @onSuccess="onDelSuccess"></product-list>
           </el-col>
           <el-col :span="24 - setcol">
-            <add-product @onConfirm="onConfirm"></add-product>
+            <add-product ref="addpro" @onConfirm="onConfirm"></add-product>
           </el-col>
         </el-row>
       </div>
@@ -310,11 +310,8 @@ export default {
         this.drawer = false
       })
     },
-    onSuccess () {
-      this.$emit('onSuccess')
-      setTimeout(() => {
-        this.drawer = true
-      }, 1000);
+    onDelSuccess () {
+      this.$refs.addpro.listData()
     },
     addMoreProduct () {
       this.setcol = 12

+ 1 - 0
src/HDrpManagement/orderManage/modules/productlist.vue

@@ -131,6 +131,7 @@ export default {
       })
       this.tool.showMessage(res,()=>{
         this.listData()
+        this.$emit('onSuccess')
       })
     },
     async updateOrderProduct (val) {