From 5c6f4b7b59f5784d27403646591a5d71e8058541 Mon Sep 17 00:00:00 2001 From: pengjun <158915633@qq.com> Date: Wed, 26 Jun 2024 01:26:38 +0800 Subject: [PATCH] dj --- .../patientRegister/PatientRegisterEdit.vue | 60 +++++++++++++++---- src/components/report/NationHealthReport.vue | 56 +++++++++-------- .../customerOrg/patientRegisterImport.vue | 27 +++------ 3 files changed, 88 insertions(+), 55 deletions(-) diff --git a/src/components/patientRegister/PatientRegisterEdit.vue b/src/components/patientRegister/PatientRegisterEdit.vue index dfa2ec9..77bab4e 100644 --- a/src/components/patientRegister/PatientRegisterEdit.vue +++ b/src/components/patientRegister/PatientRegisterEdit.vue @@ -10,16 +10,20 @@
- 职业病 + 职业病
- 读身份证 + 读身份证
- 拍照 + 拍照
-
- 网上预约 +
+ 个人预约 +
+
+ 同步团检预约
@@ -587,7 +591,7 @@ :append-to-body="true">
@@ -856,6 +860,8 @@ export default { poison: [], poisonList: [], + thirdInterfaceId:'', // 网上预约用到 + }; }, @@ -1208,7 +1214,7 @@ export default { // } } this.preCustomerOrgId = customerOrgId - + if (customerOrgParentId) { if (customerOrgParentId == this.dict.personOrgId) { @@ -1891,6 +1897,38 @@ export default { }); }, + // 同步团检人员网上添加项目信息 + btnDownOrg() { + postapi("/api/app/ThirdInterface/GetListByThirdInterfaceTypeAsync", { thirdInterfaceType: "07" }) + .then(res => { + if (res.code > -1 && res.data && Array.isArray(res.data) && res.data.length > 0) { + this.thirdInterfaceId = res.data[0].id + return postapi('/api/app/AppointPatientRegister/GetByPatientRegisterId', { thirdInterfaceId:this.thirdInterfaceId, appointPatientRegisterId:'1',patientRegisterId: this.form.id }) + } + }) + .then(res => { + if (res && res.code > -1) { + return postapi('/api/app/AppointPatientRegister/GetAppointRegisterAsbitemListById', { + thirdInterFaceId:this.thirdInterfaceId, + appointPatientRegisterId: res.data.appointPatientRegisterId + }) + } + }) + .then(res => { + if (res && res.code > -1) { + res.data.forEach(e => { + e.discount = e.standardPrice == 0 ? 100 : Math.floor(e.chargePrice * 10000 / e.standardPrice) / 100 + if (!e.isBelongGroupPackage) { + e.isBelongGroupPackage = e.isInMedicalPackage + } + // e.standTotal = e.amount * e.standardPrice + e.total = e.amount * e.chargePrice + }); + this.dataTransOpts.tableM.register_check_asbitem = deepCopy(res.data) + this.$message.success({ showClose: true, message: '操作成功!' }) + } + }) + }, //拍照(已废弃) // openCamera() { // if (!this.form.id) { @@ -2429,7 +2467,7 @@ export default { let appoint_patient_register = this.dataTransOpts.tableS.appoint_patient_register if (!appoint_patient_register.appointPatientRegisterId) return - + // 新增 this.dataTransOpts.tableS.patient_register.id = '' @@ -2460,8 +2498,10 @@ export default { // "weight": 0 delete appoint_patient_register.medicalCenterId Object.assign(this.form, appoint_patient_register, - { patientName: appoint_patient_register.personName, - completeFlag:'1' + { + patientName: appoint_patient_register.personName, + completeFlag: '1', + customerOrgId: ["00000000-0000-0000-0000-000000000001"], //单位编号 默认个人 } ) // 明细必填项 diff --git a/src/components/report/NationHealthReport.vue b/src/components/report/NationHealthReport.vue index c5c3761..91a3daa 100644 --- a/src/components/report/NationHealthReport.vue +++ b/src/components/report/NationHealthReport.vue @@ -1,8 +1,8 @@