|
@@ -126,7 +126,7 @@
|
|
|
</el-form-item>
|
|
</el-form-item>
|
|
|
</el-col>
|
|
</el-col>
|
|
|
</el-row>
|
|
</el-row>
|
|
|
- <el-table :data="form.productInfoList" border height="40vh">
|
|
|
|
|
|
|
+ <el-table :data="form.productInfoList" border height="40vh" key="id">
|
|
|
<el-table-column label="序号" align="center" width="60">
|
|
<el-table-column label="序号" align="center" width="60">
|
|
|
<template slot-scope="scope">
|
|
<template slot-scope="scope">
|
|
|
<span>{{ scope.$index + 1 }}</span>
|
|
<span>{{ scope.$index + 1 }}</span>
|
|
@@ -181,7 +181,7 @@
|
|
|
|
|
|
|
|
>
|
|
>
|
|
|
|
|
|
|
|
- <el-select v-model="scope.row.produceType" @change="changeProduceType(scope.row, scope.$index)" >
|
|
|
|
|
|
|
+ <el-select v-model="scope.row.produceType" @change="changeProduceType(scope.row, scope.$index)" :key="scope.$index" >
|
|
|
<el-option
|
|
<el-option
|
|
|
v-for="item of producedList"
|
|
v-for="item of producedList"
|
|
|
:key="scope.$index + item.code"
|
|
:key="scope.$index + item.code"
|
|
@@ -201,8 +201,10 @@
|
|
|
<el-form-item
|
|
<el-form-item
|
|
|
label-width="0px"
|
|
label-width="0px"
|
|
|
:prop="'productInfoList.' + scope.$index + '.bomCategoryId'"
|
|
:prop="'productInfoList.' + scope.$index + '.bomCategoryId'"
|
|
|
|
|
+ :key="scope.$index"
|
|
|
|
|
|
|
|
>
|
|
>
|
|
|
|
|
+
|
|
|
<el-select v-model="scope.row.bomCategoryId" @change="changeBomId(scope.row, scope.$index)" >
|
|
<el-select v-model="scope.row.bomCategoryId" @change="changeBomId(scope.row, scope.$index)" >
|
|
|
<el-option
|
|
<el-option
|
|
|
v-for="item of scope.row.bomVersionList"
|
|
v-for="item of scope.row.bomVersionList"
|
|
@@ -682,8 +684,10 @@ export default {
|
|
|
categoryId: row.categoryId
|
|
categoryId: row.categoryId
|
|
|
}
|
|
}
|
|
|
bomListByPlan(param).then(res => {
|
|
bomListByPlan(param).then(res => {
|
|
|
- this.bomVersionList = res || []
|
|
|
|
|
- this.form.productInfoList[index].bomVersionList = res || []
|
|
|
|
|
|
|
+ this.$set(this.form.productInfoList[index], 'bomVersionList', res || [])
|
|
|
|
|
+
|
|
|
|
|
+ console.log(this.form.productInfoList)
|
|
|
|
|
+ this.$forceUpdate()
|
|
|
})
|
|
})
|
|
|
|
|
|
|
|
},
|
|
},
|