yijing пре 1 година
родитељ
комит
859491173e
1 измењених фајлова са 5 додато и 2 уклоњено
  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;
         }