From 60773403dc065dd828d13dd867de75190d92051e Mon Sep 17 00:00:00 2001 From: pengjun <158915633@qq.com> Date: Thu, 29 Jun 2023 21:24:29 +0800 Subject: [PATCH 1/2] rydj0 --- src/api/request.js | 17 +- src/components/itemSet/ReferenceRange.vue | 3 +- src/components/patientRegister/Camera.vue | 170 ++++++ .../patientRegister/PatientRegisterEdit.vue | 503 +++++++++++------- .../patientRegister/PatientRegisterList.vue | 30 +- .../patientRegister/patientRegisterQuery.vue | 14 +- src/store/index.js | 23 +- src/utlis/proFunc.js | 6 +- src/views/customerOrg/patientRegister.vue | 54 +- 9 files changed, 581 insertions(+), 239 deletions(-) create mode 100644 src/components/patientRegister/Camera.vue diff --git a/src/api/request.js b/src/api/request.js index 27006c2..2ad3c41 100644 --- a/src/api/request.js +++ b/src/api/request.js @@ -31,20 +31,11 @@ instance.interceptors.request.use( //响应拦截 instance.interceptors.response.use( (res) => { - //console.log(res); - if (res.data.code == 1) { - // const { data } = res; - console.log(9527); - console.log(res); - return res.data - } else if (res.Code == -1) { - // console.log(res.data.message); - // this.$message({ - // message: res.data.message, - // type: 'warning' - // }); - Message.error(res.Message); + console.log(res); + if(res.data.Code == -1) { + Message.error(res.data.Message); } + return res.data }, (err) => { // console.log(err); diff --git a/src/components/itemSet/ReferenceRange.vue b/src/components/itemSet/ReferenceRange.vue index 921c9e5..98ad5b8 100644 --- a/src/components/itemSet/ReferenceRange.vue +++ b/src/components/itemSet/ReferenceRange.vue @@ -53,7 +53,8 @@ - + + diff --git a/src/components/patientRegister/Camera.vue b/src/components/patientRegister/Camera.vue new file mode 100644 index 0000000..bc7cceb --- /dev/null +++ b/src/components/patientRegister/Camera.vue @@ -0,0 +1,170 @@ + + + \ No newline at end of file diff --git a/src/components/patientRegister/PatientRegisterEdit.vue b/src/components/patientRegister/PatientRegisterEdit.vue index 2f6d848..51386f7 100644 --- a/src/components/patientRegister/PatientRegisterEdit.vue +++ b/src/components/patientRegister/PatientRegisterEdit.vue @@ -1,338 +1,427 @@ \ No newline at end of file + +.photo { + position: absolute; + top: 60px; + right: 150px; + width: 150px; + height: 180px; +} \ No newline at end of file diff --git a/src/components/patientRegister/PatientRegisterList.vue b/src/components/patientRegister/PatientRegisterList.vue index 1250556..1b77a2d 100644 --- a/src/components/patientRegister/PatientRegisterList.vue +++ b/src/components/patientRegister/PatientRegisterList.vue @@ -57,10 +57,18 @@ - + + + + + + + + From 5680fba6df1819c37bc67cb0be9a95c107443860 Mon Sep 17 00:00:00 2001 From: pengjun <158915633@qq.com> Date: Fri, 30 Jun 2023 11:08:00 +0800 Subject: [PATCH 2/2] rydj --- .../patientRegister/PatientRegisterList.vue | 157 ++++++++++++++++-- .../patientRegister/patientRegisterQuery.vue | 4 +- src/store/index.js | 8 +- src/utlis/proFunc.js | 14 +- src/views/customerOrg/patientRegister.vue | 22 +++ 5 files changed, 182 insertions(+), 23 deletions(-) diff --git a/src/components/patientRegister/PatientRegisterList.vue b/src/components/patientRegister/PatientRegisterList.vue index 1b77a2d..789e73e 100644 --- a/src/components/patientRegister/PatientRegisterList.vue +++ b/src/components/patientRegister/PatientRegisterList.vue @@ -11,20 +11,118 @@ highlight-current-row @row-click="rowick" ref="dataList" - > - - - - - - - - - - - - + > + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
人员登记 @@ -75,6 +173,8 @@ import { mapState } from "vuex"; import { getapi, postapi, putapi, deletapi } from "@/api/api"; import PatientRegisterEdit from '../../components/patientRegister/PatientRegisterEdit.vue' +import { dddw } from "@/utlis/proFunc"; + export default { components: { PatientRegisterEdit @@ -128,8 +228,39 @@ export default { this.dialogVisible = true }, + ldddw(arrayData,key,value,display){ + return dddw(arrayData,key,value,display) + }, + + //查询 + query(){ + getapi("/api/app/patient-register/in-filter").then( + (res) => { + this.dataList = res.data.items; + } + ); + }, + }, + + //监听事件 + watch: { + //触发查询事件 + 'patientRegister.query.times'(newVal, oldVal) { + if (newVal != oldVal) { + alert('触发查询事件') + this.query() + } + }, + 'patientRegister.patientRegisterRd.id'(newVal, oldVal) { + if (newVal != oldVal) { + //console.log('patientRegister.patientRegisterRd.customerOrgId',this.patientRegister.patientRegisterRd.customerOrgId) + objCopy(this.patientRegister.patientRegisterRd, this.form) + } + }, + }, + };