Przeglądaj źródła

齐套性检查功能优化完善

jingshuyong 10 miesięcy temu
rodzic
commit
c4cc089691

+ 4 - 3
src/views/productionPlan/components/homogeneityInspectDialog.vue

@@ -808,7 +808,7 @@
         }
         }
         let arr = JSON.parse(JSON.stringify(this.selection));
         let arr = JSON.parse(JSON.stringify(this.selection));
         let obj = this.bomListType.find(
         let obj = this.bomListType.find(
-          (el) => el.id === this.formInline.bomType
+          (el) => el.bomType === this.formInline.bomType
         );
         );
         let data = {
         let data = {
           ...this.planInfo,
           ...this.planInfo,
@@ -957,7 +957,7 @@
           }
           }
         }
         }
         let obj = this.bomListType.find(
         let obj = this.bomListType.find(
-          (el) => el.id === this.formInline.bomType
+          (el) => el.bomType === this.formInline.bomType
         );
         );
         const addPOList = this.fieldProcessing(this.selection);
         const addPOList = this.fieldProcessing(this.selection);
         this.$alert('确定要将所选的数据下发生产计划吗', {
         this.$alert('确定要将所选的数据下发生产计划吗', {
@@ -975,13 +975,14 @@
             });
             });
           }
           }
         });
         });
-        console.log(row, 'row');
         // this.$refs.factoryAddRef.open();
         // this.$refs.factoryAddRef.open();
         // this.$refs.factoryAddRef.confirmChoose([row]);
         // this.$refs.factoryAddRef.confirmChoose([row]);
       },
       },
 
 
       // 字段处理
       // 字段处理
       fieldProcessing(arr) {
       fieldProcessing(arr) {
+        // console.log(arr,'arr')
+        // return;
         let list = arr.map((item) => {
         let list = arr.map((item) => {
           return {
           return {
             id: this.planInfo.id,
             id: this.planInfo.id,

+ 1 - 1
src/views/saleOrder/components/orderHomogeneityInspectDialog.vue

@@ -935,7 +935,7 @@
         }
         }
         let arr = JSON.parse(JSON.stringify(this.selection));
         let arr = JSON.parse(JSON.stringify(this.selection));
         let obj = this.bomListType.find(
         let obj = this.bomListType.find(
-          (el) => el.id === this.formInline.bomType
+          (el) => el.bomType === this.formInline.bomType
         );
         );
         let data = {
         let data = {
           ...this.orderInfo,
           ...this.orderInfo,