|
|
|
@ -50,7 +50,12 @@ |
|
|
|
</template> |
|
|
|
</template> |
|
|
|
<template #default="scope"> |
|
|
|
<template #default="scope"> |
|
|
|
<el-form-item :prop="`tableData[${scope.$index}].batchNo`" :rules="formRules.batchNo"> |
|
|
|
<el-form-item :prop="`tableData[${scope.$index}].batchNo`" :rules="formRules.batchNo"> |
|
|
|
<el-select v-model="scope.row.batchNo" clearable filterable @change="changeBatchNo(scope.$index)"> |
|
|
|
<el-select |
|
|
|
|
|
|
|
v-model="scope.row.batchNo" |
|
|
|
|
|
|
|
clearable |
|
|
|
|
|
|
|
filterable |
|
|
|
|
|
|
|
@change="changeBatchNo(scope.$index)" |
|
|
|
|
|
|
|
> |
|
|
|
<el-option |
|
|
|
<el-option |
|
|
|
v-for="item in scope.row.batchNoOptions" |
|
|
|
v-for="item in scope.row.batchNoOptions" |
|
|
|
:key="item.id" |
|
|
|
:key="item.id" |
|
|
|
@ -114,7 +119,7 @@ |
|
|
|
</el-form-item> |
|
|
|
</el-form-item> |
|
|
|
</template> |
|
|
|
</template> |
|
|
|
</el-table-column> |
|
|
|
</el-table-column> |
|
|
|
<el-table-column align="center" label="添加量" prop="addQuantity"> |
|
|
|
<el-table-column align="center" label="添加量" prop="addQuantity" width="250"> |
|
|
|
<!-- <template #header> |
|
|
|
<!-- <template #header> |
|
|
|
<span><i style="color: red">*</i>添加量</span> |
|
|
|
<span><i style="color: red">*</i>添加量</span> |
|
|
|
</template> --> |
|
|
|
</template> --> |
|
|
|
@ -123,7 +128,12 @@ |
|
|
|
:prop="`tableData[${scope.$index}].addQuantity`" |
|
|
|
:prop="`tableData[${scope.$index}].addQuantity`" |
|
|
|
:rules="formRules.addQuantity" |
|
|
|
:rules="formRules.addQuantity" |
|
|
|
> --> |
|
|
|
> --> |
|
|
|
<el-input v-model="scope.row.addQuantity"></el-input> |
|
|
|
<el-radio-group v-model="scope.row.radio"> |
|
|
|
|
|
|
|
<el-radio label="1">当前值</el-radio> |
|
|
|
|
|
|
|
<el-radio label="2">自定义</el-radio> |
|
|
|
|
|
|
|
</el-radio-group> |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<el-input v-if="scope.row.radio=='2'" v-model="scope.row.addQuantity"></el-input> |
|
|
|
<!-- </el-form-item> --> |
|
|
|
<!-- </el-form-item> --> |
|
|
|
</template> |
|
|
|
</template> |
|
|
|
</el-table-column> |
|
|
|
</el-table-column> |
|
|
|
@ -339,11 +349,11 @@ export default { |
|
|
|
); |
|
|
|
); |
|
|
|
this.form.tableData[index].deviceName = select[0].deviceName; |
|
|
|
this.form.tableData[index].deviceName = select[0].deviceName; |
|
|
|
}, |
|
|
|
}, |
|
|
|
changeBatchNo(index){ |
|
|
|
changeBatchNo(index) { |
|
|
|
let select = this.form.tableData[index].batchNoOptions.filter( |
|
|
|
let select = this.form.tableData[index].batchNoOptions.filter( |
|
|
|
row => row.id == this.form.tableData[index].batchNo |
|
|
|
row => row.id == this.form.tableData[index].batchNo |
|
|
|
); |
|
|
|
); |
|
|
|
console.log(select,'select'); |
|
|
|
console.log(select, 'select'); |
|
|
|
this.form.tableData[index].batchNoName = select[0].name; |
|
|
|
this.form.tableData[index].batchNoName = select[0].name; |
|
|
|
}, |
|
|
|
}, |
|
|
|
getWorkCenterList() { |
|
|
|
getWorkCenterList() { |
|
|
|
@ -364,7 +374,7 @@ export default { |
|
|
|
batchNo: '', // 槽号/检查项 |
|
|
|
batchNo: '', // 槽号/检查项 |
|
|
|
preserveContent: '', // 维护内容 |
|
|
|
preserveContent: '', // 维护内容 |
|
|
|
bbpType: 2, |
|
|
|
bbpType: 2, |
|
|
|
periodOfValidity:2 |
|
|
|
periodOfValidity: 2, |
|
|
|
}); |
|
|
|
}); |
|
|
|
}, |
|
|
|
}, |
|
|
|
|
|
|
|
|
|
|
|
|