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