|
|
|
|
@ -114,7 +114,12 @@ |
|
|
|
|
{{ formError }} |
|
|
|
|
</div> |
|
|
|
|
|
|
|
|
|
<el-table v-if="activeName == '1'" :data="ruleForm.tableData" style="width: 100%"> |
|
|
|
|
<el-table |
|
|
|
|
v-if="activeName == '1'" |
|
|
|
|
:data="ruleForm.tableData" |
|
|
|
|
style="width: 100%" |
|
|
|
|
@selection-change="handleProcessSelectionChange" |
|
|
|
|
> |
|
|
|
|
<el-table-column type="selection" width="55"> </el-table-column> |
|
|
|
|
<el-table-column prop="processNo" label="工序号" align="left"> |
|
|
|
|
<template #header> |
|
|
|
|
@ -232,7 +237,12 @@ |
|
|
|
|
</template> |
|
|
|
|
</el-table-column> |
|
|
|
|
</el-table> |
|
|
|
|
<el-table v-if="activeName == '2'" :data="ruleForm.tableData2" style="width: 100%"> |
|
|
|
|
<el-table |
|
|
|
|
v-if="activeName == '2'" |
|
|
|
|
:data="ruleForm.tableData2" |
|
|
|
|
style="width: 100%" |
|
|
|
|
@selection-change="handleProjectSelectionChange" |
|
|
|
|
> |
|
|
|
|
<el-table-column type="selection" width="55"> </el-table-column> |
|
|
|
|
<el-table-column prop="trialNo" label="工序号"> |
|
|
|
|
<template #header> |
|
|
|
|
@ -491,6 +501,8 @@ export default { |
|
|
|
|
workCenterList: [], //作业中心列表 |
|
|
|
|
projectOptions: [], //检验项目列表 |
|
|
|
|
standardList: [], //检验标准列表 |
|
|
|
|
selectedProcessRows: [], // 工序选中行 |
|
|
|
|
selectedProjectRows: [], // 项目选中行 |
|
|
|
|
}; |
|
|
|
|
}, |
|
|
|
|
mounted() { |
|
|
|
|
@ -665,6 +677,12 @@ export default { |
|
|
|
|
}); |
|
|
|
|
} |
|
|
|
|
}, |
|
|
|
|
handleProcessSelectionChange(rows) { |
|
|
|
|
this.selectedProcessRows = rows; |
|
|
|
|
}, |
|
|
|
|
handleProjectSelectionChange(rows) { |
|
|
|
|
this.selectedProjectRows = rows; |
|
|
|
|
}, |
|
|
|
|
// 删除一行 |
|
|
|
|
delTable(row, index) { |
|
|
|
|
// this.ruleForm.tableData.splice(index, 1); |
|
|
|
|
|