This commit is contained in:
shidongli 2023-09-26 15:53:54 +08:00
parent c34f16cb40
commit 5f5054c9df

View File

@ -362,12 +362,6 @@ export default {
loading: true,
//
ids: [],
hospitalqueryParams: {
pageNum: 1,
pageSize: 10,
hospitalCode: "",
hospitalName: "",
},
hospitalList: [],//
hospitalNamelist: [],//
hospitalDepartmentist: [],//
@ -567,11 +561,13 @@ export default {
//
hospitalNamechange(value) {
this.hospitalId = value
this.form.hospitalName = this.hospitalNamelist.find((f) => f.id == this.hospitalId)?.hospitalName;
hospitalDepartment(this.hospitalId).then(response => {
this.hospitalDepartmentist = response.data;
});
// this.form.hospitalName = this.hospitalNamelist.find((f) => f.id == this.hospitalId)?.hospitalName;
this.queryParams.departmentId = "",
this.queryParams.doctorId = "",
this.personNamelist=[],
hospitalDepartment(this.hospitalId).then(response => {
this.hospitalDepartmentist = response.data;
});
},
//
hospitalName() {
@ -588,6 +584,7 @@ export default {
this.form.departmentId = "",
this.form.doctorId = "",
this.form.scheduleId = "",
this.personNamelist=[],
// this.$refs.departmentId.clear()
//
hospitalDepartment(this.hospitalId).then(response => {
@ -602,6 +599,8 @@ export default {
departmentNameadd(value) {
this.departmentId = value
this.form.departmentName = this.hospitalDepartmentist.find((f) => f.id == this.departmentId)?.departmentName;
this.form.doctorId = "",
this.queryParams.doctorId = "",
hospitalPerson(this.departmentId, this.hospitalId).then(response => {
this.personNamelist = response.data;
});
@ -650,10 +649,15 @@ export default {
this.queryParams = {
pageNum: 1,
pageSize: 10,
hospitalName: "",
departmentCode: "",
departmentId: "",
departmentName: "",
doctorId: "",
doctorName: "",
hospitalId: "",
hospitalName: "",
};
this.personNamelist=[],
this.hospitalDepartmentist=[],
this.handleQuery();
},
//
@ -671,12 +675,10 @@ export default {
},
/** mi按钮操作 */
handleUpdate(row) {
console.log(row)
this.reset();
this.open = true;
this.title = "查看明细";
const schedulePlanId = row.id || this.ids;
// this.form.hospitalId = row.id;
plandetail(schedulePlanId).then((response) => {
this.hospitalDepartmentList = response.data;
this.open = true;
@ -688,13 +690,13 @@ export default {
console.log(this.form)
this.$refs["form"].validate((valid) => {
if (valid) {
add(this.form).then((response) => {
if (response.code == 200) {
this.$modal.msgSuccess("新增成功");
this.addopen = false;
this.getList();
}
});
add(this.form).then((response) => {
if (response.code == 200) {
this.$modal.msgSuccess("新增成功");
this.addopen = false;
this.getList();
}
});
}
});
},