|
|
@@ -236,7 +236,11 @@
|
|
|
</div>
|
|
|
</template>
|
|
|
<template v-slot:executionMethod="{ row }">
|
|
|
- <el-select v-model="row.executionMethod" style="width: 100%">
|
|
|
+ <el-select
|
|
|
+ v-model="row.executionMethod"
|
|
|
+ style="width: 100%"
|
|
|
+ @change="handleExecutionMethodChange(row)"
|
|
|
+ >
|
|
|
<el-option :value="1" label="常规检验"></el-option>
|
|
|
<el-option :value="2" label="实验"></el-option>
|
|
|
</el-select>
|
|
|
@@ -459,7 +463,7 @@
|
|
|
{
|
|
|
prop: 'executionMethod',
|
|
|
slot: 'executionMethod',
|
|
|
- label: '质检方式',
|
|
|
+ label: '执行方式',
|
|
|
showOverflowTooltip: true,
|
|
|
align: 'center',
|
|
|
width: 150
|
|
|
@@ -578,13 +582,16 @@
|
|
|
},
|
|
|
methods: {
|
|
|
addTemplate(type, index) {
|
|
|
+ if (this.list[index].executionMethod != 2) {
|
|
|
+ return;
|
|
|
+ }
|
|
|
this.releaseRulesType = type;
|
|
|
this.currentIndex = index;
|
|
|
this.$refs.releaseRulesRef.open(type);
|
|
|
},
|
|
|
async viewTemplate(id) {
|
|
|
const data = await recordrulesGetById(id);
|
|
|
- console.log(data,'data')
|
|
|
+ console.log(data, 'data');
|
|
|
this.$refs.experimentationProcessDialog.open(data.tempJson.tempJson);
|
|
|
},
|
|
|
releaseRulesSuccess(data) {
|
|
|
@@ -600,7 +607,16 @@
|
|
|
this.$set(this.list[this.currentIndex], 'recordName', data.name);
|
|
|
}
|
|
|
},
|
|
|
-
|
|
|
+ handleExecutionMethodChange(row) {
|
|
|
+ if (row.executionMethod == 1) {
|
|
|
+ row.procedureId = '';
|
|
|
+ row.procedureCode = '';
|
|
|
+ row.procedureName = '';
|
|
|
+ row.recordId = '';
|
|
|
+ row.recordCode = '';
|
|
|
+ row.recordName = '';
|
|
|
+ }
|
|
|
+ },
|
|
|
//失去焦点自动排序
|
|
|
handleSortBlur() {
|
|
|
this.list = this.list.map((item) => ({
|