|
|
@@ -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()
|
|
|
})
|
|
|
},
|