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] 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) + } + }, + }, + };