695593266@qq.com 11 bulan lalu
induk
melakukan
38da9694f0
1 mengubah file dengan 2 tambahan dan 2 penghapusan
  1. 2 2
      src/views/produce/components/jobBooking/index.vue

+ 2 - 2
src/views/produce/components/jobBooking/index.vue

@@ -553,7 +553,7 @@
                 this.clientEnvironmentId != 3 &&
                 this.clientEnvironmentId != 2
               ) {
-                if (obj.pickOutInList.length != 0) {
+                if (obj.pickOutInList && obj.pickOutInList.length != 0) {
                   obj.product = obj.pickOutInList;
                   obj.pickOutInList = [];
                 }
@@ -563,7 +563,7 @@
                 this.clientEnvironmentId != 3 &&
                 this.clientEnvironmentId != 2
               ) {
-                if (obj.pickOutInList.length != 0) {
+                if (obj.pickOutInList && obj.pickOutInList.length != 0) {
                   obj.semiProductList = obj.pickOutInList;
                   obj.pickOutInList = [];
                 }