yijing 1 yıl önce
ebeveyn
işleme
859491173e
1 değiştirilmiş dosya ile 5 ekleme ve 2 silme
  1. 5 2
      src/views/inspectionPlan/components/edit.vue

+ 5 - 2
src/views/inspectionPlan/components/edit.vue

@@ -585,7 +585,9 @@ export default {
         }
 
         this.loading = true;
-        this.baseForm.isUnpack = this.isCheck ? 1 : 2;
+        if (this.baseForm.isUnpack == null || this.baseForm.isUnpack == '') {
+          this.baseForm.isUnpack = this.isCheck ? 1 : 2;
+        }
         let params = {
           ...this.baseForm,
           qualityInventoryList: this.packingList,
@@ -625,7 +627,8 @@ export default {
           return false;
         }
         this.loading = true;
-        if (this.baseForm.isUnpack !== null) {
+
+        if (this.baseForm.isUnpack == null || this.baseForm.isUnpack == '') {
           this.baseForm.isUnpack = this.isCheck ? 1 : 2;
         }