|
@ -57,8 +57,8 @@ |
|
|
placeholder="报告类型" |
|
|
placeholder="报告类型" |
|
|
style="width: 215px" |
|
|
style="width: 215px" |
|
|
clearable |
|
|
clearable |
|
|
|
|
|
@change="getDicCodeList" |
|
|
> |
|
|
> |
|
|
<!-- @change="getDicCodeList" --> |
|
|
|
|
|
<el-option |
|
|
<el-option |
|
|
v-for="item in bglxList" |
|
|
v-for="item in bglxList" |
|
|
:key="item.value" |
|
|
:key="item.value" |
|
@ -161,6 +161,7 @@ |
|
|
v-model="formTemplate.withDicCode" |
|
|
v-model="formTemplate.withDicCode" |
|
|
placeholder="对应字典" |
|
|
placeholder="对应字典" |
|
|
style="width: 420px" |
|
|
style="width: 420px" |
|
|
|
|
|
filterable |
|
|
clearable |
|
|
clearable |
|
|
> |
|
|
> |
|
|
<el-option |
|
|
<el-option |
|
@ -176,6 +177,7 @@ |
|
|
v-model="formTemplate.parentId" |
|
|
v-model="formTemplate.parentId" |
|
|
placeholder="父类模板" |
|
|
placeholder="父类模板" |
|
|
style="width: 420px" |
|
|
style="width: 420px" |
|
|
|
|
|
filterable |
|
|
clearable |
|
|
clearable |
|
|
> |
|
|
> |
|
|
<el-option |
|
|
<el-option |
|
@ -870,12 +872,12 @@ export default { |
|
|
if (this.id) { |
|
|
if (this.id) { |
|
|
this.loadFormData(this.index) |
|
|
this.loadFormData(this.index) |
|
|
this.getList() |
|
|
this.getList() |
|
|
} else { |
|
|
} else if (this.$refs.formTemplate) { |
|
|
this.$refs['formTemplate'].resetFields() |
|
|
this.$refs.formTemplate.resetFields() |
|
|
this.clearForm() |
|
|
this.clearForm() |
|
|
|
|
|
this.getBglxList() |
|
|
} |
|
|
} |
|
|
this.getSbList(undefined, undefined, 1) |
|
|
this.getSbList(undefined, undefined, 1) |
|
|
this.getBglxList() |
|
|
|
|
|
this.getJylbList() |
|
|
this.getJylbList() |
|
|
this.getTemplateIdentification() |
|
|
this.getTemplateIdentification() |
|
|
}, |
|
|
}, |
|
@ -1023,10 +1025,6 @@ export default { |
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|
}, |
|
|
}, |
|
|
handleSettingChange(row) { |
|
|
|
|
|
this.moduleArr = row |
|
|
|
|
|
// this.getDemoList(row.id) |
|
|
|
|
|
}, |
|
|
|
|
|
getTemplateIdentification() { |
|
|
getTemplateIdentification() { |
|
|
this.api({ |
|
|
this.api({ |
|
|
url: '/dicData/getDicDataByTypeCode', |
|
|
url: '/dicData/getDicDataByTypeCode', |
|
@ -1061,7 +1059,7 @@ export default { |
|
|
) |
|
|
) |
|
|
}, |
|
|
}, |
|
|
getBglxList() { |
|
|
getBglxList() { |
|
|
this.api({ |
|
|
return this.api({ |
|
|
url: '/dicData/getDicDataByTypeCode', |
|
|
url: '/dicData/getDicDataByTypeCode', |
|
|
method: 'get', |
|
|
method: 'get', |
|
|
params: { |
|
|
params: { |
|
@ -1122,20 +1120,24 @@ export default { |
|
|
} |
|
|
} |
|
|
}) |
|
|
}) |
|
|
}, |
|
|
}, |
|
|
getDicCodeList(val) { |
|
|
getDicCodeList(val, resetWithDicCode) { |
|
|
for (let i = 0; i < this.bglxList.length; i++) { |
|
|
// 0. 重置对应字典数据 |
|
|
if (val === 1) { |
|
|
if (resetWithDicCode) { |
|
|
this.dicCodeList = [] |
|
|
this.formTemplate.withDicCode = undefined |
|
|
break |
|
|
} |
|
|
} else if (val === this.bglxList[i].value) { |
|
|
// 1. 主报告无对应字典数据 |
|
|
this.getDicDataByTypeCode( |
|
|
if (val === 1) { |
|
|
this.bglxList[i].code, |
|
|
this.dicCodeList = [] |
|
|
'dicCode', |
|
|
return |
|
|
this.bglxList[i].id |
|
|
} |
|
|
) |
|
|
// 2. 筛选出当期报告类型数据,如果不存在则结束 |
|
|
break |
|
|
const bglxs = this.bglxList.filter(row => row.value === val) |
|
|
} |
|
|
if (!bglxs.length) { |
|
|
|
|
|
return |
|
|
} |
|
|
} |
|
|
|
|
|
// 3. 获取对应报告类型字典数据 |
|
|
|
|
|
const bglx = bglxs[0] |
|
|
|
|
|
this.getDicDataByTypeCode(bglx.code, 'dicCode', bglx.id) |
|
|
}, |
|
|
}, |
|
|
getNeibuList(type, parentCode, species) { |
|
|
getNeibuList(type, parentCode, species) { |
|
|
this.api({ |
|
|
this.api({ |
|
@ -1169,7 +1171,7 @@ export default { |
|
|
this.formTemplate.shebeipinzhongdaima |
|
|
this.formTemplate.shebeipinzhongdaima |
|
|
) |
|
|
) |
|
|
this.neibuleibie = JSON.parse(this.formTemplate.neibuleibie) |
|
|
this.neibuleibie = JSON.parse(this.formTemplate.neibuleibie) |
|
|
this.getDicCodeList(this.formTemplate.bglx) |
|
|
this.getBglxList().then(() => this.getDicCodeList(this.formTemplate.bglx, false)) |
|
|
this.getNeibuList( |
|
|
this.getNeibuList( |
|
|
'nblb', |
|
|
'nblb', |
|
|
this.formTemplate.jianyanleibie, |
|
|
this.formTemplate.jianyanleibie, |
|
|