|
|
|
|
@ -50,7 +50,7 @@ |
|
|
|
|
</template> |
|
|
|
|
<template #default="scope"> |
|
|
|
|
<el-form-item :prop="`tableData[${scope.$index}].batchNo`" :rules="formRules.batchNo"> |
|
|
|
|
<el-select v-model="scope.row.batchNo" clearable filterable> |
|
|
|
|
<el-select v-model="scope.row.batchNo" clearable filterable @change="changeBatchNo(scope.$index)"> |
|
|
|
|
<el-option |
|
|
|
|
v-for="item in scope.row.batchNoOptions" |
|
|
|
|
:key="item.id" |
|
|
|
|
@ -308,6 +308,10 @@ export default { |
|
|
|
|
this.addTable(); |
|
|
|
|
} |
|
|
|
|
} else { |
|
|
|
|
this.maintainData.forEach((item, index) => { |
|
|
|
|
this.getTankList(item.wcId, index); |
|
|
|
|
this.getEquipmentList(item.wcId, index); |
|
|
|
|
}); |
|
|
|
|
this.form.tableData = this.maintainData; |
|
|
|
|
} |
|
|
|
|
}, |
|
|
|
|
@ -316,7 +320,6 @@ export default { |
|
|
|
|
changeWorkCenter(index) { |
|
|
|
|
this.form.batchNo = ''; |
|
|
|
|
this.form.tableData[index].device = ''; |
|
|
|
|
console.log(this.form.tableData[index]); |
|
|
|
|
this.getTankList(this.form.tableData[index].wcId, index); |
|
|
|
|
this.getEquipmentList(this.form.tableData[index].wcId, index); |
|
|
|
|
}, // 查询作业槽下拉列表 |
|
|
|
|
@ -336,6 +339,12 @@ export default { |
|
|
|
|
); |
|
|
|
|
this.form.tableData[index].deviceName = select[0].deviceName; |
|
|
|
|
}, |
|
|
|
|
changeBatchNo(index){ |
|
|
|
|
let select = this.form.tableData[index].batchNoOptions.filter( |
|
|
|
|
row => row.id == this.form.tableData[index].batchNo |
|
|
|
|
); |
|
|
|
|
this.form.tableData[index].batchNoName = select[0].batchNoName; |
|
|
|
|
}, |
|
|
|
|
getWorkCenterList() { |
|
|
|
|
getWorkCenterList().then(res => { |
|
|
|
|
this.wcData = res.data.data || []; |
|
|
|
|
|