This commit is contained in:
闫晓茹 2023-03-13 15:13:29 +08:00
parent 4b7a923db7
commit 2b8e067e8c

View File

@ -181,6 +181,7 @@
:title="title" :title="title"
:visible.sync="addopen" :visible.sync="addopen"
width="1200px" width="1200px"
:before-close="cancel"
append-to-body append-to-body
> >
<el-form <el-form
@ -999,14 +1000,25 @@ export default {
} }
this.form.hospitalId = row.id; this.form.hospitalId = row.id;
this.innerVisible = false; this.innerVisible = false;
// this.stationcancel(); this.addresetQuery();
}, },
// choicenurseItem(e) {
// console.log(e)
// this.nurseitemid = e.id;
// if (this.homenumber) {
// this.queryParams.nurseItemName = e.nurseItemName;
// this.queryParams.nurseItemId = e.id;
// this.form.nurseItemId = e.id;
// } else {
// this.form.nurseItemId = e.id;
// this.form.nurseItemName = e.nurseItemName;
// }
// this.nurseItemshow = false;
// },
// //
departmentclick(row) { departmentclick(row) {
console.log(row); console.log(row);
this.departmentId = row.id; this.departmentId = row.id;
this.form.departmentName = row.departmentName;
// this.form.departmentId = row.id;
if (this.homenumber) { if (this.homenumber) {
this.queryParams.departmentName = row.departmentName; this.queryParams.departmentName = row.departmentName;
this.queryParams.departmentId = row.id; this.queryParams.departmentId = row.id;
@ -1021,6 +1033,7 @@ export default {
// //
innerVisiblecancel() { innerVisiblecancel() {
this.innerVisible = false; this.innerVisible = false;
}, },
// //
innerVisiblecanceldepart() { innerVisiblecanceldepart() {
@ -1070,6 +1083,7 @@ export default {
// //
clicklist(item) { clicklist(item) {
this.homenumber = item; this.homenumber = item;
// this.departmentId=item.id
if (this.homenumber) { if (this.homenumber) {
this.hospitalId = this.queryParams.hospitalId; this.hospitalId = this.queryParams.hospitalId;
} else { } else {
@ -1081,9 +1095,11 @@ export default {
} else { } else {
this.$message.error("请先选择所属医院"); this.$message.error("请先选择所属医院");
} }
}, },
//
departmentList() { departmentList() {
this.departmentqueryParams.hospitalId = this.hospitalId; // this.departmentqueryParams.hospitalId = this.hospitalId;
listHospitalDepartment(this.departmentqueryParams).then((response) => { listHospitalDepartment(this.departmentqueryParams).then((response) => {
this.hospitalDepartmentList = response.rows; this.hospitalDepartmentList = response.rows;
this.total3 = response.total; this.total3 = response.total;
@ -1136,10 +1152,11 @@ export default {
if (this.deletupdata.length > 0) { if (this.deletupdata.length > 0) {
updatePicture({ pictureUrlList: this.deletupdata }).then( updatePicture({ pictureUrlList: this.deletupdata }).then(
(res) => { (res) => {
} }
); );
} }
this.form.hospitalId = null;
this.departmentId = null;
this.imgsurl = { pictureUrlList: [] }; this.imgsurl = { pictureUrlList: [] };
this.addopen = false; this.addopen = false;
this.reset(); this.reset();
@ -1148,8 +1165,6 @@ export default {
reset() { reset() {
this.form = { this.form = {
id: null, id: null,
hospitalId: null,
departmentId: null,
personCode: null, personCode: null,
personName: null, personName: null,
personPhone: null, personPhone: null,
@ -1170,16 +1185,16 @@ export default {
departmentName: "请选择所属科室", departmentName: "请选择所属科室",
hospitalPersonCertificateList: [ hospitalPersonCertificateList: [
{ {
certificateName: "", certificateName: null,
certificateSort: "", certificateSort: null,
certificateUrl: "", certificateUrl: null,
}, },
], ],
}; };
this.deletUploadImages = []; this.deletUploadImages = [];
this.deletupdata = []; this.deletupdata = [];
// this.resetForm("form"); this.resetForm("form");
}, },
/** 搜索按钮操作 */ /** 搜索按钮操作 */
handleQuery() { handleQuery() {
@ -1198,7 +1213,7 @@ export default {
pageNum: 1, pageNum: 1,
pageSize: 10, pageSize: 10,
}; };
// this.resetForm("queryForm"); this.resetForm("queryForm");
this.handleQuery(); this.handleQuery();
}, },
// //
@ -1209,17 +1224,18 @@ export default {
}, },
/** 新增按钮操作 */ /** 新增按钮操作 */
handleAdd() { handleAdd() {
this.form = { // this.form = {
hospitalPersonCertificateList: [ // hospitalPersonCertificateList: [
{ // {
certificateSort: "", // certificateSort: "",
certificateName: "", // certificateName: "",
certificateUrl: "", // certificateUrl: "",
idd: this.idd, // idd: this.idd,
}, // },
], // ],
}; // };
this.departmentId="";
this.reset(); this.reset();
this.addopen = true; this.addopen = true;
this.title = "添加科室人员信息"; this.title = "添加科室人员信息";
@ -1229,8 +1245,13 @@ export default {
this.reset(); this.reset();
const id = row.id || this.ids; const id = row.id || this.ids;
getHospitalPerson(id).then((response) => { getHospitalPerson(id).then((response) => {
console.log(response)
this.form = response.data; this.form = response.data;
this.departmentId = response.data.departmentId;
this.hospitalId = response.data.hospitalId;
this.imgone = this.form.certificateUrl; this.imgone = this.form.certificateUrl;
this.addopen = true; this.addopen = true;
this.title = "修改科室人员信息"; this.title = "修改科室人员信息";
}); });