Explorar o código

选择去掉判断

qukaidi hai 5 horas
pai
achega
d7e5bb9203

+ 35 - 25
src/views/iosBasicData/SeafreightExportF/bills/assembly/EntrustmentLnformation/precontainers.vue

@@ -733,7 +733,7 @@ export default {
       //     this.$refs.sendEdi.openDialog(this.assemblyForm.id);
       //   });
       // }
-       this.$refs.sendEdi.openDialog(this.assemblyForm.id);
+      this.$refs.sendEdi.openDialog(this.assemblyForm.id);
     },
     confirmBox() {
       this.$refs.importTemp.openDialog(this.assemblyForm);
@@ -843,31 +843,41 @@ export default {
         etd: this.assemblyForm.etd + " 00:00:00",
         polStationId: this.boxForm.polStationId
       };
-      if (this.verificationCost) {
-        billVerificationPrompt({ ids: this.assemblyForm.id }).then(res => {
-          getItemListHY(obj).then(res => {
-            if (res.data.data) {
-              res.data.data.forEach(item => {
-                item.pid = this.assemblyForm.id;
-              });
-              this.editStatus = true;
-              this.containerNumberItemList = res.data.data;
-            }
+      // if (this.verificationCost) {
+      //   billVerificationPrompt({ ids: this.assemblyForm.id }).then(res => {
+      //     getItemListHY(obj).then(res => {
+      //       if (res.data.data) {
+      //         res.data.data.forEach(item => {
+      //           item.pid = this.assemblyForm.id;
+      //         });
+      //         this.editStatus = true;
+      //         this.containerNumberItemList = res.data.data;
+      //       }
+      //     });
+      //     this.dialogVisible = true;
+      //   });
+      // } else {
+      //   getItemListHY(obj).then(res => {
+      //     if (res.data.data) {
+      //       res.data.data.forEach(item => {
+      //         item.pid = this.assemblyForm.id;
+      //       });
+      //       this.editStatus = true;
+      //       this.containerNumberItemList = res.data.data;
+      //     }
+      //   });
+      //   this.dialogVisible = true;
+      // }
+      getItemListHY(obj).then(res => {
+        if (res.data.data) {
+          res.data.data.forEach(item => {
+            item.pid = this.assemblyForm.id;
           });
-          this.dialogVisible = true;
-        });
-      } else {
-        getItemListHY(obj).then(res => {
-          if (res.data.data) {
-            res.data.data.forEach(item => {
-              item.pid = this.assemblyForm.id;
-            });
-            this.editStatus = true;
-            this.containerNumberItemList = res.data.data;
-          }
-        });
-        this.dialogVisible = true;
-      }
+          this.editStatus = true;
+          this.containerNumberItemList = res.data.data;
+        }
+      });
+      this.dialogVisible = true;
     },
     getNoPick(type) {
       this.containerNumberItemList = this.containerNumberItemList.filter(item => item.id || item.occupyNum > 0);