Quellcode durchsuchen

修改分厂计划

chencc vor 1 Jahr
Ursprung
Commit
e1d575e5b1
1 geänderte Dateien mit 13 neuen und 3 gelöschten Zeilen
  1. 13 3
      src/views/productionPlan/components/factoryAdd/index.vue

+ 13 - 3
src/views/productionPlan/components/factoryAdd/index.vue

@@ -141,7 +141,9 @@
             </template>
 
             <!-- 工艺路线 -->
+           
             <template v-slot:produceRoutingId="{ row, $index }" v-if="clientEnvironmentId != 4">
+
               <el-select v-model="row.produceRoutingId">
                 <el-option v-for="item of row.routingList" :key="item.id" :label="item.name"
                   :value="item.id"></el-option>
@@ -778,16 +780,24 @@ export default {
 
 
     changeBomId(row, index) {
-
-      row.routingList = []
+      console.log(row,'-------');
+      // row.routingList = []
 
       bomRoutingList(row.bomCategoryId).then((res) => {
         let arr = res || [];
+        console.log(arr);
         if (arr.length == 0) {
           row.produceRoutingId = '';
         }
-        this.$set(this.form.productInfoList[index], 'routingList', arr);
+        this.$nextTick(() => {
+          this.$set(this.form.productInfoList[index], 'routingList', arr);
+
+        row.routingList = arr;
+        })
+
+      
 
+        console.log();
         this.$forceUpdate()
       })
     },