Quellcode durchsuchen

新增后的删除问题

jbb vor 2 Jahren
Ursprung
Commit
9f5051176a

+ 3 - 2
src/views/shipment-details/referOrderDataModal.vue

@@ -540,12 +540,14 @@ export default {
            garment = '面料'
         }     
          this.loading = true
+
         addShipmentList({itemId:this.confimList,readyFabric:garment}).then(res => {
          if (res.success) {
          this.loading = false
           // this.referOrderDataModVis = false;
-          this.close()
            this.$message.success('添加成功')
+           this.$emit('close',this.queryParam.flourOrGarment)
+            this.close()
           }else {
            this.$message.error('res.message')
           }
@@ -677,7 +679,6 @@ export default {
 
     close() {
       this.referOrderDataModVis = false;
-      this.$emit('close',this.queryParam.flourOrGarment)
       this.searchReset();
     },
     handleCancel() {

+ 2 - 2
src/views/shipment-details/shipmentList.vue

@@ -970,14 +970,14 @@ export default {
     },
 
     //关闭新增弹窗
-    async closeAdd(data){
+    async closeAdd(data){   
       this.queryParam ={}
       this.queryParam.flourOrGarment = data
       this.timeRange = []
       this.preDeliveryDate = []
       // this.shipmentListData = [] // 渲染 发运明细列表
      await this.getShipmentList()
-      this.queryParam = {}
+      // this.queryParam = {}
       this.defalutDate()
     }
   }