|
@ -502,7 +502,7 @@ |
|
|
prop="writeMode" |
|
|
prop="writeMode" |
|
|
label-width="150px" |
|
|
label-width="150px" |
|
|
> |
|
|
> |
|
|
<el-radio-group v-model="form.writeMode" @change="changeWriteMode"> |
|
|
<el-radio-group v-model="form.writeMode"> |
|
|
<el-radio v-for="(item, writeModeIndex) in writeModes" :key="writeModeIndex" :label="writeModeIndex" :disabled="(form.tableMode === 0 && writeModeIndex === 1) || (form.tableMode === 1 && writeModeIndex !== 1)"> |
|
|
<el-radio v-for="(item, writeModeIndex) in writeModes" :key="writeModeIndex" :label="writeModeIndex" :disabled="(form.tableMode === 0 && writeModeIndex === 1) || (form.tableMode === 1 && writeModeIndex !== 1)"> |
|
|
{{ item }} |
|
|
{{ item }} |
|
|
</el-radio> |
|
|
</el-radio> |
|
@ -794,30 +794,6 @@ export default { |
|
|
break |
|
|
break |
|
|
} |
|
|
} |
|
|
}, |
|
|
}, |
|
|
changeWriteMode() { |
|
|
|
|
|
switch (this.form.writeMode) { |
|
|
|
|
|
case 0: |
|
|
|
|
|
case 2: |
|
|
|
|
|
case 3: |
|
|
|
|
|
this.form.tableMode = 0 |
|
|
|
|
|
this.form.tableIndex = 1 |
|
|
|
|
|
this.form.tableStartRow = 1 |
|
|
|
|
|
this.form.tableRowCount = this.form.tableRowFindMode ? 0 : 1 |
|
|
|
|
|
this.form.affiliatedTableStartRow = 0 |
|
|
|
|
|
this.form.affiliatedTableRowCount = 0 |
|
|
|
|
|
break |
|
|
|
|
|
case 1: |
|
|
|
|
|
this.form.tableMode = 1 |
|
|
|
|
|
this.form.tableIndex = 0 |
|
|
|
|
|
this.form.tableStartRow = 0 |
|
|
|
|
|
this.form.tableRowCount = 0 |
|
|
|
|
|
this.form.affiliatedTableStartRow = 0 |
|
|
|
|
|
this.form.affiliatedTableRowCount = 0 |
|
|
|
|
|
break |
|
|
|
|
|
default: |
|
|
|
|
|
break |
|
|
|
|
|
} |
|
|
|
|
|
}, |
|
|
|
|
|
changeTableRowFindMode() { |
|
|
changeTableRowFindMode() { |
|
|
this.form.tableRowCount = 0 |
|
|
this.form.tableRowCount = 0 |
|
|
this.form.affiliatedTableRowCount = 0 |
|
|
this.form.affiliatedTableRowCount = 0 |
|
@ -872,9 +848,10 @@ export default { |
|
|
// }) |
|
|
// }) |
|
|
this.list = data.list |
|
|
this.list = data.list |
|
|
this.totalCount = data.total * 1 |
|
|
this.totalCount = data.total * 1 |
|
|
|
|
|
this.gridData = [] |
|
|
if (data.list[0]) { |
|
|
if (data.list[0]) { |
|
|
this.getDemoList(data.list[0].id) |
|
|
|
|
|
this.templateSettingId = data.list[0].id |
|
|
this.templateSettingId = data.list[0].id |
|
|
|
|
|
this.getDemoList() |
|
|
} |
|
|
} |
|
|
}) |
|
|
}) |
|
|
}, |
|
|
}, |
|
@ -888,7 +865,7 @@ export default { |
|
|
deleteFn(row, index) { |
|
|
deleteFn(row, index) { |
|
|
const arr = [] |
|
|
const arr = [] |
|
|
arr.push(row.id) |
|
|
arr.push(row.id) |
|
|
TemplateApi.deleteSettingFn({ |
|
|
TemplateApi.deleteTemplateJyxm({ |
|
|
ids: arr |
|
|
ids: arr |
|
|
}).then((data) => { |
|
|
}).then((data) => { |
|
|
this.getDemoList() |
|
|
this.getDemoList() |
|
@ -898,9 +875,13 @@ export default { |
|
|
// 表格序号 |
|
|
// 表格序号 |
|
|
return (this.listQuery.pageNum - 1) * this.listQuery.pageRow + $index + 1 |
|
|
return (this.listQuery.pageNum - 1) * this.listQuery.pageRow + $index + 1 |
|
|
}, |
|
|
}, |
|
|
getDemoList(id) { |
|
|
getDemoList() { |
|
|
|
|
|
if (!this.templateSettingId) { |
|
|
|
|
|
this.$notify.error('未正确提供模板设置主键,无法加载检验项目列配置数据!') |
|
|
|
|
|
return |
|
|
|
|
|
} |
|
|
// 查询列表 |
|
|
// 查询列表 |
|
|
this.jyxmParams.templateSettingId = id |
|
|
this.jyxmParams.templateSettingId = this.templateSettingId |
|
|
this.jyxmParams.templateId = this.id |
|
|
this.jyxmParams.templateId = this.id |
|
|
this.api({ |
|
|
this.api({ |
|
|
url: '/templateJyxm/list', |
|
|
url: '/templateJyxm/list', |
|
@ -1150,7 +1131,7 @@ export default { |
|
|
} |
|
|
} |
|
|
this.templateSettingId = row.id |
|
|
this.templateSettingId = row.id |
|
|
this.$refs.settingList.toggleRowSelection(row) |
|
|
this.$refs.settingList.toggleRowSelection(row) |
|
|
this.getDemoList(row.id) |
|
|
this.getDemoList() |
|
|
}, |
|
|
}, |
|
|
clearForm() { |
|
|
clearForm() { |
|
|
this.formTemplate = { |
|
|
this.formTemplate = { |
|
|