diff --git a/src/views/fee-settings/Item.vue b/src/views/fee-settings/Item.vue index b9e4ae8..7032c96 100644 --- a/src/views/fee-settings/Item.vue +++ b/src/views/fee-settings/Item.vue @@ -1823,15 +1823,28 @@ export default { created() { // this.getlist(); this.getmedicalconclusionlist(); + this.dictInit() // 获取字典信息 }, mounted() { this.rowDrop(); this.typeid(); + }, computed: { ...mapState(["window","dict"]), }, methods: { + + dictInit(){ + // 获取诊断信息 + postapi("/api/app/Diagnosis/GetSimpleList").then((res) => { + if (res.code != -1) { + this.diagnosisId = res.data; + this.quickAsb = res.data; + } + }); + }, + //启用诊断函数 enablediagnostics(v) { if (v == "N") { @@ -2002,8 +2015,7 @@ export default { this.diagnosticediting = true; if (this.$refs.editdigoisceditingform !== undefined) { this.$refs.editdigoisceditingform.resetFields(); - } - this.diageoisaddId(); + } } }, deleteDiagnosis() { @@ -2043,18 +2055,9 @@ export default { } }); }, - //增加诊断需要的Id - diageoisaddId() { - postapi("/api/app/Diagnosis/GetSimpleList").then((res) => { - if (res.code != -1) { - this.editdigoisceDiagnosisId = res.data; - this.quckeDitd = res.data; - } - }); - }, + // 增加诊断弹框 - adddiagnosis() { - this.diageoisaddId(); + adddiagnosis() { this.diagnostiele = 1; this.diagnosticediting = true; if (this.$refs.editdigoisceditingform !== undefined) { @@ -2071,8 +2074,7 @@ export default { diagnosticmatching() { this.form = { ...this.curRow }; this.diagnosdialogVisible = true; - this.putDiagnosis(); - this.diageoisaddId(); + this.putDiagnosis(); this.$nextTick(() => { this.rowDropes(); }); @@ -2278,12 +2280,7 @@ export default { this.itemId = res.data; } }); - postapi("/api/app/diagnosis/getlistinsuggestion").then((res) => { - if (res.code != -1) { - this.diagnosisId = res.data; - this.quickAsb = res.data; - } - }); + }, //结果模板添加 increase() { @@ -2415,12 +2412,7 @@ export default { this.resultStatusId = res.data; } }); - postapi("/api/app/diagnosis/getlistinsuggestion").then((res) => { - if (res.code != -1) { - this.diagnosisId = res.data; - this.quickAsb = res.data; - } - }); + // // 获取项目类别 // getapi("/api/app/item-type/by-code-all").then((res) => { // this.resultitemtype = res.data;