From 70d1643a9b883519889d8b121e9f8265d3d320ac Mon Sep 17 00:00:00 2001 From: pengjun <158915633@qq.com> Date: Thu, 9 Nov 2023 17:20:38 +0800 Subject: [PATCH] diagnosis --- src/components/common/ItemTypeTree.vue | 82 +++++++ .../patientRegister/PatientRegisterItem.vue | 4 +- src/router/index.js | 6 + src/store/index.js | 1 + src/views/Home.vue | 6 +- src/views/charge/charge.vue | 22 +- src/views/diagnosis/diagnosis.vue | 232 ++++++++++++++++++ src/views/diagnosis/diagnosisSug.vue | 106 ++++++++ 8 files changed, 445 insertions(+), 14 deletions(-) create mode 100644 src/components/common/ItemTypeTree.vue create mode 100644 src/views/diagnosis/diagnosis.vue create mode 100644 src/views/diagnosis/diagnosisSug.vue diff --git a/src/components/common/ItemTypeTree.vue b/src/components/common/ItemTypeTree.vue new file mode 100644 index 0000000..9b488d3 --- /dev/null +++ b/src/components/common/ItemTypeTree.vue @@ -0,0 +1,82 @@ + + + diff --git a/src/components/patientRegister/PatientRegisterItem.vue b/src/components/patientRegister/PatientRegisterItem.vue index 36f0d2a..d48ea59 100644 --- a/src/components/patientRegister/PatientRegisterItem.vue +++ b/src/components/patientRegister/PatientRegisterItem.vue @@ -867,7 +867,7 @@ export default { let sumChargeDetails = Number(0) //单个标准价折后价 合计总计 let qtyIsOneLast = 0 //数量为1的最后行项目,用于返写金额 - console.log('this.total / this.totalStand',this.total , this.totalStand) + // console.log('this.total / this.totalStand',this.total , this.totalStand) this.discount = Math.round((100 * this.total / this.totalStand) * 100)/100 this.patientRegister.patientRegisterAbs.forEach((e, index) => { @@ -878,7 +878,7 @@ export default { sumChargeDetails += Math.round((e.standardPrice * this.discount * e.amount / 100) * 100)/100 }); - console.log('this.total - sumChargeDetails', sumChargeDetails, this.total - sumChargeDetails) + // console.log('this.total - sumChargeDetails', sumChargeDetails, this.total - sumChargeDetails) //平衡金额(按总价折扣后,再根据折扣合计 会出现金额差) if (this.total != sumChargeDetails) { console.log('qtyIsOneLast',qtyIsOneLast) diff --git a/src/router/index.js b/src/router/index.js index 21ac71a..f675974 100644 --- a/src/router/index.js +++ b/src/router/index.js @@ -149,6 +149,12 @@ const routes = [{ component: () => import ("../views/basic-dictionary/DiagnosisLevel.vue"), }, + { + path: "/diagnosisSet", + name:'诊断建议设置', + component: () => + import ("../views/diagnosis/diagnosis.vue"), + }, //---------------------- 收费设置 start ---------------------- { path: "/invoice-item-type", diff --git a/src/store/index.js b/src/store/index.js index 85b6d41..4d53689 100644 --- a/src/store/index.js +++ b/src/store/index.js @@ -242,6 +242,7 @@ export default new Vuex.Store({ asbItemAll: [], //所有组合项目 asbItem: [], //显示的 未选组合项目 asbItemQuick: [], //显示的 未选组合项目(供快速选择) + diagnosisLevel:[], //诊断级别 }, //项目特有的对象数据 diff --git a/src/views/Home.vue b/src/views/Home.vue index 3a3e336..32d335f 100644 --- a/src/views/Home.vue +++ b/src/views/Home.vue @@ -53,7 +53,7 @@ 1 - 用户权限管理 性激素参考范围 --> - 诊断诊断建议设置 0) { // this.query.patientRegisterNo = this.patientList[0].patientRegisterNo; // this.query.patientName = this.patientList[0].patientName; // this.query.patientNo = this.patientList[0].patientNo; this.$nextTick(() =>{ - this.$refs['patientList'].setCurrentRow(this.patientList[0]) - this.rowClick(this.patientList[0]) - }) - // this.rowClick(this.patientList[0]) - // setTimeout(() => { - // this.$refs['patientList'].setCurrentRow(this.patientList[0]) - // }, 200) + setTimeout(() => { + this.$refs['patientList'].setCurrentRow(this.patientList[0]) + this.rowClick(this.patientList[0]) + }, 100) + }) + }else{ + this.asbItemsForFee = [] + this.form = Object.assign({},this.formInit) } } loading.close(); @@ -867,7 +871,7 @@ export default { if (res.code != -1) { this.form.id = res.data.chargeId; //可防止重复提交收费 - + this.$confirm("操作成功, 是否打印发票?", "提示", { confirmButtonText: "是", cancelButtonText: "否", diff --git a/src/views/diagnosis/diagnosis.vue b/src/views/diagnosis/diagnosis.vue new file mode 100644 index 0000000..6a4b882 --- /dev/null +++ b/src/views/diagnosis/diagnosis.vue @@ -0,0 +1,232 @@ + + + diff --git a/src/views/diagnosis/diagnosisSug.vue b/src/views/diagnosis/diagnosisSug.vue new file mode 100644 index 0000000..f3e4890 --- /dev/null +++ b/src/views/diagnosis/diagnosisSug.vue @@ -0,0 +1,106 @@ + + +