From 226dd6e4d12ba562707ce4951a258850310f872e Mon Sep 17 00:00:00 2001 From: pengjun <158915633@qq.com> Date: Fri, 26 Apr 2024 23:58:56 +0800 Subject: [PATCH] group --- src/components/common/LocalConfig.vue | 58 +- src/components/patientRegister/PatientLis.vue | 27 +- .../patientRegister/patientRegisterQuery.vue | 21 +- src/views/Home.vue | 11 + .../patientRegisterImport240409.vue | 1658 ----------------- .../customerOrg/patientRegisterRecover.vue | 6 +- .../customerOrg/patientRegisterRefuse.vue | 6 +- src/views/customerOrg/patientRegisterSign.vue | 6 +- src/views/doctorCheck/doctorCheck.vue | 28 +- 9 files changed, 119 insertions(+), 1702 deletions(-) delete mode 100644 src/views/customerOrg/patientRegisterImport240409.vue diff --git a/src/components/common/LocalConfig.vue b/src/components/common/LocalConfig.vue index d30bec2..f5e5c3a 100644 --- a/src/components/common/LocalConfig.vue +++ b/src/components/common/LocalConfig.vue @@ -1,37 +1,72 @@ - diff --git a/src/views/customerOrg/patientRegisterRecover.vue b/src/views/customerOrg/patientRegisterRecover.vue index af91d70..4d57ef1 100644 --- a/src/views/customerOrg/patientRegisterRecover.vue +++ b/src/views/customerOrg/patientRegisterRecover.vue @@ -155,9 +155,9 @@ export default { }); //分组,所有分组,不限单位,不限次数 - getapi("/api/app/customer-org-group").then((res) => { - if (res.code == 1) { - this.dict.customerOrgGroupAll = res.data.items; + getapi("/api/app/customerorggroup/getlistinfilter").then((res) => { + if (res.code > -1) { + this.dict.customerOrgGroupAll = res.data; } }); diff --git a/src/views/customerOrg/patientRegisterRefuse.vue b/src/views/customerOrg/patientRegisterRefuse.vue index 4c638c5..2abb347 100644 --- a/src/views/customerOrg/patientRegisterRefuse.vue +++ b/src/views/customerOrg/patientRegisterRefuse.vue @@ -140,9 +140,9 @@ export default { }); //分组,所有分组,不限单位,不限次数 - getapi("/api/app/customer-org-group").then((res) => { - if (res.code == 1) { - this.dict.customerOrgGroupAll = res.data.items; + getapi("/api/app/customerorggroup/getlistinfilter").then((res) => { + if (res.code > -1) { + this.dict.customerOrgGroupAll = res.data; } }); diff --git a/src/views/customerOrg/patientRegisterSign.vue b/src/views/customerOrg/patientRegisterSign.vue index 7df7ccc..96d5dcc 100644 --- a/src/views/customerOrg/patientRegisterSign.vue +++ b/src/views/customerOrg/patientRegisterSign.vue @@ -149,9 +149,9 @@ export default { }); //分组,所有分组,不限单位,不限次数 - getapi("/api/app/customer-org-group").then((res) => { - if (res.code == 1) { - this.dict.customerOrgGroupAll = res.data.items; + getapi("/api/app/customerorggroup/getlistinfilter").then((res) => { + if (res.code > -1) { + this.dict.customerOrgGroupAll = res.data; } }); diff --git a/src/views/doctorCheck/doctorCheck.vue b/src/views/doctorCheck/doctorCheck.vue index d0ee466..c80cd29 100644 --- a/src/views/doctorCheck/doctorCheck.vue +++ b/src/views/doctorCheck/doctorCheck.vue @@ -88,24 +88,40 @@ export default { peoplePhoto: '', //人员照片 activeName: 'asbitem', isCheckPicture: true, //是否显示结果图片 + + LocalConfig: { + doctorCheck: { // 医生诊台 + isCheckPicture: false, // 是否显示检查图片 + } + }, }; }, created() { // console.log("this.$route.query", this.$route.query) - if(this.$route.query.patient_register){ + if (this.$route.query.patient_register) { this.dataTransOpts.tableS.patient_register = this.$route.query.patient_register - }else{ - this.dataTransOpts.tableS.patient_register = { id: '', patientRegisterNo: ''} + } else { + this.dataTransOpts.tableS.patient_register = { id: '', patientRegisterNo: '' } } - + if (this.$peisAPI) { // this.$message.info("此功能,需要在壳客户端才可运行!"); // console.log('this.$peisAPI',this.$peisAPI) this.$peisAPI.getIsCheckPicture().then(res => { - console.log("this.$peisAPI.getIsCheckPicture()",res) - if (res) this.isCheckPicture = res.toUpperCase() == 'Y' ? true:false + console.log("this.$peisAPI.getIsCheckPicture()", res) + if (res) this.isCheckPicture = res.toUpperCase() == 'Y' ? true : false }) + } else { + let LocalConfig = window.localStorage.getItem("LocalConfig") || null + try { + this.LocalConfig = JSON.parse(LocalConfig) || this.LocalConfig + } catch (error) { + console.log('window.localStorage.getItem("LocalConfig")', error) + } + this.isCheckPicture = this.LocalConfig.doctorCheck.isCheckPicture + + console.log('this.LocalConfig.doctorCheck.isCheckPicture', this.LocalConfig.doctorCheck.isCheckPicture) } },