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