人员登记
@@ -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)
+ }
+ },
+ },
+
};