修改
This commit is contained in:
parent
c34f16cb40
commit
5f5054c9df
@ -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();
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
},
|
},
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user