|
|
|
|
@ -67,7 +67,12 @@ |
|
|
|
|
</template> |
|
|
|
|
<template #default="scope"> |
|
|
|
|
<el-form-item :prop="`tableData[${scope.$index}].device`" :rules="formRules.device"> |
|
|
|
|
<el-select v-model="scope.row.device" clearable filterable @change="changeDevice(scope.$index)"> |
|
|
|
|
<el-select |
|
|
|
|
v-model="scope.row.device" |
|
|
|
|
clearable |
|
|
|
|
filterable |
|
|
|
|
@change="changeDevice(scope.$index)" |
|
|
|
|
> |
|
|
|
|
<el-option |
|
|
|
|
v-for="item in scope.row.deviceOptions" |
|
|
|
|
:key="item.id" |
|
|
|
|
@ -149,14 +154,7 @@ |
|
|
|
|
</template> |
|
|
|
|
</el-table-column> |
|
|
|
|
<el-table-column align="center" label="累计初始值" prop="cumulativeInitialValue"> |
|
|
|
|
<!-- <template #header> |
|
|
|
|
<span><i style="color: red">*</i>累计初始值</span> |
|
|
|
|
</template> --> |
|
|
|
|
<template #default="scope"> |
|
|
|
|
<!-- <el-form-item |
|
|
|
|
:prop="`tableData[${scope.$index}].cumulativeInitialValue`" |
|
|
|
|
:rules="formRules.cumulativeInitialValue" |
|
|
|
|
> --> |
|
|
|
|
<el-date-picker |
|
|
|
|
style="width: 100%" |
|
|
|
|
v-if=" |
|
|
|
|
@ -176,7 +174,14 @@ |
|
|
|
|
v-model="scope.row.cumulativeInitialValue" |
|
|
|
|
:disabled="scope.row.ruleType == 4 || scope.row.ruleType == 1" |
|
|
|
|
></el-input> |
|
|
|
|
<!-- </el-form-item> --> |
|
|
|
|
</template> |
|
|
|
|
</el-table-column> |
|
|
|
|
<el-table-column align="center" label="有效期" prop="periodofValidity" width="200"> |
|
|
|
|
<template #default="scope"> |
|
|
|
|
<el-radio-group v-model="scope.row.periodofValidity"> |
|
|
|
|
<el-radio :label="1">长期</el-radio> |
|
|
|
|
<el-radio :label="2">一次性</el-radio> |
|
|
|
|
</el-radio-group> |
|
|
|
|
</template> |
|
|
|
|
</el-table-column> |
|
|
|
|
</el-table> |
|
|
|
|
@ -310,10 +315,10 @@ export default { |
|
|
|
|
// 切换作业中心 |
|
|
|
|
changeWorkCenter(index) { |
|
|
|
|
this.form.batchNo = ''; |
|
|
|
|
this.form.tableData[index].device = '' |
|
|
|
|
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) |
|
|
|
|
this.getEquipmentList(this.form.tableData[index].wcId, index); |
|
|
|
|
}, // 查询作业槽下拉列表 |
|
|
|
|
getTankList(val, index) { |
|
|
|
|
getTank({ workstationId: val ? val : '' }).then(res => { |
|
|
|
|
@ -325,9 +330,11 @@ export default { |
|
|
|
|
this.form.tableData[index].deviceOptions = res.data.data.records; |
|
|
|
|
}); |
|
|
|
|
}, |
|
|
|
|
changeDevice(index){ |
|
|
|
|
let select = this.form.tableData[index].deviceOptions.filter(row => row.id==this.form.tableData[index].device) |
|
|
|
|
this.form.tableData[index].deviceName = select[0].deviceName |
|
|
|
|
changeDevice(index) { |
|
|
|
|
let select = this.form.tableData[index].deviceOptions.filter( |
|
|
|
|
row => row.id == this.form.tableData[index].device |
|
|
|
|
); |
|
|
|
|
this.form.tableData[index].deviceName = select[0].deviceName; |
|
|
|
|
}, |
|
|
|
|
getWorkCenterList() { |
|
|
|
|
getWorkCenterList().then(res => { |
|
|
|
|
@ -347,6 +354,7 @@ export default { |
|
|
|
|
batchNo: '', // 槽号/检查项 |
|
|
|
|
preserveContent: '', // 维护内容 |
|
|
|
|
bbpType: 2, |
|
|
|
|
periodofValidity:2 |
|
|
|
|
}); |
|
|
|
|
}, |
|
|
|
|
|
|
|
|
|
|