From 353b8ceb2a3a0fa48ca40408ab311bce0e503e4d Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?=E6=9B=B9=E8=BE=89?= <814457906@qq.com>
Date: Thu, 16 Mar 2023 09:28:55 +0800
Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
src/views/system/hospitalPerson/index.vue | 431 ++++++++--------------
1 file changed, 152 insertions(+), 279 deletions(-)
diff --git a/src/views/system/hospitalPerson/index.vue b/src/views/system/hospitalPerson/index.vue
index 9f4b366..ed049a3 100644
--- a/src/views/system/hospitalPerson/index.vue
+++ b/src/views/system/hospitalPerson/index.vue
@@ -9,14 +9,14 @@
label-width="130px"
>
-
- {{ queryParams.hospitalName }}
-
+ {{ queryParams.hospitalName }}
-
- {{ queryParams.departmentName }}
-
+ {{ queryParams.departmentName }}
- -->
+ -->
- 搜索
- 重置
+ 搜索
+ 重置
@@ -69,8 +61,7 @@
size="mini"
@click="handleAdd"
v-hasPermi="['system:hospitalPerson:add']"
- >新增
+ >新增
修改
+ >修改
删除
+ >删除
-
+ -->
+
{{ scope.row.academicTitle == "CHIEF_PHYSICIAN" ? "主任医师" : "" }}
{{
- scope.row.academicTitle == "DEPUTY_CHIEF_PHYSICIAN"
- ? "副主任医师"
- : ""
+ scope.row.academicTitle == "DEPUTY_CHIEF_PHYSICIAN"
+ ? "副主任医师"
+ : ""
}}
{{ scope.row.academicTitle == "ATTENDING_DOCTOR" ? "主治医师" : "" }}
{{ scope.row.academicTitle == "PHYSICIAN" ? "医师" : "" }}
@@ -142,11 +128,7 @@
-
+
修改
+ >修改
删除
+ >删除
@@ -184,16 +164,10 @@
:before-close="cancel"
append-to-body
>
-
+
{{ form.hospitalName }}
+ >{{ form.hospitalName }}
{{ form.hospitalName }}
+ >{{ form.hospitalName }}
{{ form.departmentName }}
+ >{{ form.departmentName }}
{{ form.departmentName }}
+ >{{ form.departmentName }}
-
+
-
+
-
+ >
@@ -312,17 +273,13 @@
/>
-
+
-
+
-
+
-
+
- 搜索
- 重置
+ 搜索
+ 重置
-
+
-
-
+
-
+ >
-
-
-
-
+
+
-
+
-
+
- 搜索
- 重置
+ 搜索
+ 重置
-
+
-
-
+
-
+ >
-
-
+
-
+ >
{
+ this.form.hospitalPersonCertificateList.forEach(e => {
if (e.idd == items.idd) {
e.certificateUrl = items.certificateUrl;
}
@@ -967,16 +846,16 @@ export default {
}
},
imgUrl(imgUrl) {
- console.log(imgUrl, "新上传");
+ console.log(imgUrl, "新上传");
this.form.certificateUrl = imgUrl;
this.deletupdata.push(imgUrl);
- console.log(this.deletupdata)
+ console.log(this.deletupdata);
},
imgUrl2(imgUrl) {
console.log(imgUrl, "新上传");
this.form.personPictureUrl = imgUrl;
this.deletUploadImages.push(imgUrl);
- console.log( this.deletUploadImages)
+ console.log(this.deletUploadImages);
},
nurseclick(row) {
@@ -1007,11 +886,10 @@ export default {
}
this.innerVisibledepartment = false;
},
-
+
//医院关闭
innerVisiblecancel() {
this.innerVisible = false;
-
},
//科室关闭
innerVisiblecanceldepart() {
@@ -1028,7 +906,7 @@ export default {
certificateName: null,
certificateSort: null,
certificateUrl: null,
- idd: this.idd,
+ idd: this.idd
};
if (this.form.hospitalPersonCertificateList.length == 5) {
this.$message.error("最多只能5条");
@@ -1040,7 +918,7 @@ export default {
getList() {
this.loading = true;
// this.queryParams.hospitalId = this.form.hospitalId;
- listHospitalPerson(this.queryParams).then((response) => {
+ listHospitalPerson(this.queryParams).then(response => {
this.hospitalPersonList = response.rows;
this.total = response.total;
this.loading = false;
@@ -1049,8 +927,8 @@ export default {
// 新增医院按钮
clickinnerVisible(item) {
console.log(item);
- this.queryParams.departmentName="";
- this.form.departmentName="请选择所属科室";
+ this.queryParams.departmentName = "";
+ this.form.departmentName = "请选择所属科室";
this.info();
this.innerVisible = true;
this.homenumber = item;
@@ -1075,12 +953,11 @@ export default {
} else {
this.$message.error("请先选择所属医院");
}
-
},
// 搜索
departmentList() {
this.departmentqueryParams.hospitalId = this.hospitalId;
- listHospitalDepartment(this.departmentqueryParams).then((response) => {
+ listHospitalDepartment(this.departmentqueryParams).then(response => {
this.hospitalDepartmentList = response.rows;
this.total3 = response.total;
this.loading = false;
@@ -1092,7 +969,7 @@ export default {
pageNum: 1,
pageSize: 10,
hospitalCode: "",
- hospitalName: "",
+ hospitalName: ""
};
this.info();
},
@@ -1101,12 +978,12 @@ export default {
pageNum: 1,
pageSize: 10,
departmentCode: "",
- departmentName: "",
+ departmentName: ""
};
this.departmentList();
},
info() {
- list(this.hospitalqueryParams).then((response) => {
+ list(this.hospitalqueryParams).then(response => {
this.infolist = response.rows;
console.log(this.infolist);
this.total2 = response.total;
@@ -1117,23 +994,19 @@ export default {
cancel() {
var obj = { pictureUrlList: [] };
if (this.form.hospitalPersonCertificateList) {
- this.form.hospitalPersonCertificateList.forEach((e) => {
+ this.form.hospitalPersonCertificateList.forEach(e => {
obj.pictureUrlList.push(e.certificateUrl);
});
}
console.log("2222", this.deletNewImgs);
if (this.deletUploadImages.length > 0) {
- updatePicture({ pictureUrlList: this.deletUploadImages }).then(
- (res) => {
- }
- );
+ updatePicture({
+ pictureUrlList: this.deletUploadImages
+ }).then(res => {});
}
- console.log("11111",this.NewImgs)
+ console.log("11111", this.NewImgs);
if (this.deletupdata.length > 0) {
- updatePicture({ pictureUrlList: this.deletupdata }).then(
- (res) => {
- }
- );
+ updatePicture({ pictureUrlList: this.deletupdata }).then(res => {});
}
this.form.hospitalId = null;
this.departmentId = null;
@@ -1167,12 +1040,12 @@ export default {
{
certificateName: null,
certificateSort: null,
- certificateUrl: null,
- },
- ],
+ certificateUrl: null
+ }
+ ]
};
this.deletUploadImages = [];
-
+
this.deletupdata = [];
this.resetForm("form");
},
@@ -1183,22 +1056,22 @@ export default {
},
/** 重置按钮操作 */
resetQuery() {
- this.departmentId="";
+ this.departmentId = "";
this.hospitalId = "";
this.departmentqueryParams = {
pageNum: 1,
- pageSize: 10,
+ pageSize: 10
};
this.queryParams = {
pageNum: 1,
- pageSize: 10,
+ pageSize: 10
};
this.resetForm("queryForm");
this.handleQuery();
},
// 多选框选中数据
handleSelectionChange(selection) {
- this.ids = selection.map((item) => item.id);
+ this.ids = selection.map(item => item.id);
this.single = selection.length !== 1;
this.multiple = !selection.length;
},
@@ -1211,22 +1084,22 @@ export default {
certificateName: "",
certificateUrl: "",
- idd: this.idd,
- },
- ],
+ idd: this.idd
+ }
+ ]
};
- this.departmentId="";
+ this.departmentId = "";
this.reset();
this.addopen = true;
this.title = "添加科室人员信息";
},
/** 修改按钮操作 */
handleUpdate(row) {
- console.log(row)
+ console.log(row);
this.reset();
const id = row.id || this.ids;
- getHospitalPerson(id).then((response) => {
- console.log(response)
+ getHospitalPerson(id).then(response => {
+ console.log(response);
this.form = response.data;
this.departmentId = response.data.departmentId;
this.hospitalId = response.data.hospitalId;
@@ -1240,16 +1113,16 @@ export default {
if (this.form.consultingFee) {
this.form.consultingFee = Number(this.form.consultingFee);
}
- this.$refs["form"].validate((valid) => {
+ this.$refs["form"].validate(valid => {
if (valid) {
if (this.form.id != null) {
- updateHospitalPerson(this.form).then((response) => {
+ updateHospitalPerson(this.form).then(response => {
this.$modal.msgSuccess("修改成功");
this.addopen = false;
this.getList();
});
} else {
- addHospitalPerson(this.form).then((response) => {
+ addHospitalPerson(this.form).then(response => {
this.$modal.msgSuccess("新增成功");
this.addopen = false;
this.getList();
@@ -1263,7 +1136,7 @@ export default {
const ids = row.id || this.ids;
this.$modal
.confirm("是否确认删除此人员信息?")
- .then(function () {
+ .then(function() {
return delHospitalPerson(ids);
})
.then(() => {
@@ -1277,12 +1150,12 @@ export default {
this.download(
"system/hospitalPerson/export",
{
- ...this.queryParams,
+ ...this.queryParams
},
`hospitalPerson_${new Date().getTime()}.xlsx`
);
- },
- },
+ }
+ }
};