From 332b0ee587bb7bdf3779bc410b67c50075e193e2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E8=BE=89?= <814457906@qq.com> Date: Thu, 28 Dec 2023 16:47:06 +0800 Subject: [PATCH] xg --- src/views/system/hospitalPerson/index.vue | 608 +++++----------------- 1 file changed, 130 insertions(+), 478 deletions(-) diff --git a/src/views/system/hospitalPerson/index.vue b/src/views/system/hospitalPerson/index.vue index 93e9aa5..279ae20 100644 --- a/src/views/system/hospitalPerson/index.vue +++ b/src/views/system/hospitalPerson/index.vue @@ -1,12 +1,6 @@ @@ -665,20 +317,20 @@ export default { cb(new Error("请输入正确的联系电话")); }; return { - singlepersonAccount:false, - departmentIdtype:false, + singlepersonAccount: false, + departmentIdtype: false, statuslist: [ { value: "1", - label: "家医医生 ", + label: "家医医生", }, { value: "2", - label: "泉医医生 ", + label: "专病管理医生", }, { value: "3", - label: "专病医生 ", + label: "专病医生", }, ], // 遮罩层 @@ -922,13 +574,13 @@ export default { this.form.certificateUrl = items.certificateUrl; } }, - changetype(e){ - if(e==2){ - this.departmentIdtype=true + changetype(e) { + if (e == 2) { + this.departmentIdtype = true - }else{ - this.departmentIdtype=false + } else { + this.departmentIdtype = false } @@ -945,7 +597,7 @@ export default { }, nurseclick(row) { - this.form.departmentId=''; + this.form.departmentId = ''; if (this.homenumber) { this.queryParams.hospitalName = row.hospitalName; this.queryParams.hospitalId = row.id; @@ -1086,10 +738,10 @@ export default { if (this.deletUploadImages.length > 0) { updatePicture({ pictureUrlList: this.deletUploadImages, - }).then((res) => {}); + }).then((res) => { }); } if (this.deletupdata.length > 0) { - updatePicture({ pictureUrlList: this.deletupdata }).then((res) => {}); + updatePicture({ pictureUrlList: this.deletupdata }).then((res) => { }); } this.form.hospitalId = null; this.departmentId = null; @@ -1160,7 +812,7 @@ export default { }, /** 新增按钮操作 */ handleAdd() { - this.singlepersonAccount=false + this.singlepersonAccount = false this.form = { hospitalPersonCertificateList: [ { @@ -1172,14 +824,14 @@ export default { ], }; this.departmentId = ""; - this.departmentIdtype=null; + this.departmentIdtype = null; this.reset(); this.addopen = true; this.title = "添加科室人员信息"; }, /** 修改按钮操作 */ handleUpdate(row) { - this.singlepersonAccount=true + this.singlepersonAccount = true this.reset(); const id = row.id || this.ids; @@ -1187,13 +839,13 @@ export default { this.form = response.data; this.departmentId = response.data.departmentId; this.hospitalId = response.data.hospitalId; - if(response.data.status==2){ - this.departmentIdtype=true - }else{ - this.departmentIdtype=false + if (response.data.status == 2) { + this.departmentIdtype = true + } else { + this.departmentIdtype = false } - if(response.data.departmentId==null){ + if (response.data.departmentId == null) { this.form.departmentName = '请选择所属科室' } this.imgone = this.form.certificateUrl; @@ -1227,8 +879,8 @@ export default { this.$refs["form"].validate((valid) => { if (valid) { if (this.form.id != null) { - if(this.form.departmentName == '请选择所属科室'){ - this.form.departmentName='' + if (this.form.departmentName == '请选择所属科室') { + this.form.departmentName = '' } updateHospitalPerson(this.form).then((response) => { if (response.code == 200) { @@ -1238,8 +890,8 @@ export default { } }); } else { - if(this.form.departmentName == '请选择所属科室'){ - this.form.departmentName='' + if (this.form.departmentName == '请选择所属科室') { + this.form.departmentName = '' } addHospitalPerson(this.form).then((response) => { if (response.code == 200) { @@ -1264,7 +916,7 @@ export default { this.getList(); this.$modal.msgSuccess("删除成功"); }) - .catch(() => {}); + .catch(() => { }); }, /** 导出按钮操作 */ handleExport() {