Commit c711af64 by 唐玉峰

检查目的为必填

parent 0ef3bcfc
...@@ -1265,6 +1265,29 @@ export default { ...@@ -1265,6 +1265,29 @@ export default {
this.sDate(this.multipleSelection1.filter((item) => item.adviceType)); this.sDate(this.multipleSelection1.filter((item) => item.adviceType));
this.objtable.route1 = this.multipleSelection.filter((item) => item.adviceType); this.objtable.route1 = this.multipleSelection.filter((item) => item.adviceType);
this.objtable.route2 = this.multipleSelection1.filter((item) => item.adviceType); this.objtable.route2 = this.multipleSelection1.filter((item) => item.adviceType);
let a = this.objtable.route1.filter((item) => item.orderType == "检查");
let b = this.objtable.route2.filter((item) => item.orderType == "检查");
if (a.length) {
if (!a[0].inspectionPurpose) {
Message.warning({
showClose: true,
message: `检查目的为必填,请填写`,
type: "warning",
});
return;
}
}
if (b.length) {
if (!b[0].inspectionPurpose) {
Message.warning({
showClose: true,
message: `检查目的为必填,请填写`,
type: "warning",
});
return;
}
}
this.objtable.deptName = this.deptName; this.objtable.deptName = this.deptName;
http.post(`/ClinicalRoute/ClinicalRoute/SetPatientRoutes?pid=${this.$route.query.pid}`, this.objtable) http.post(`/ClinicalRoute/ClinicalRoute/SetPatientRoutes?pid=${this.$route.query.pid}`, this.objtable)
.then((data) => { .then((data) => {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment