This commit is contained in:
2024-07-12 09:19:31 +08:00
parent 941e570313
commit 1822c8e60f
7 changed files with 49 additions and 44 deletions

View File

@ -716,40 +716,45 @@ export default {
} }
}, },
upload() { upload() {
this.updata.routeNodeList = this.list; this.$confirm('保存此任务, 是否继续?', '提示', {
// this.updata.routeNodeList.forEach((el) => { confirmButtonText: '确定',
// if (el.phoneDialMethod == "COMMON" && el.questionInfoId) { cancelButtonText: '取消',
// el.templateType = "QUESTIONNAIRE"; }).then(() => {
// } else if (el.phoneDialMethod == "COMMON" && el.phoneId) { this.updata.routeNodeList = this.list;
// el.templateType = "SCRIPT"; // this.updata.routeNodeList.forEach((el) => {
// } else if (el.phoneDialMethod == "AI" && el.phoneId) { // if (el.phoneDialMethod == "COMMON" && el.questionInfoId) {
// el.templateType = "SCRIPT"; // el.templateType = "QUESTIONNAIRE";
// } // } else if (el.phoneDialMethod == "COMMON" && el.phoneId) {
// }); // el.templateType = "SCRIPT";
this.updata.triggerConditionList.forEach((e) => { // } else if (el.phoneDialMethod == "AI" && el.phoneId) {
e.routeId = this.$route.query.id; // el.templateType = "SCRIPT";
e.routeName = this.$route.query.routeName; // }
delete e.optionstriggerConditionOperator // });
}); this.updata.triggerConditionList.forEach((e) => {
delete this.updata.triggerConditionList.optionstriggerConditionOperator e.routeId = this.$route.query.id;
// return e.routeName = this.$route.query.routeName;
signrouteadd(this.updata).then((res) => { delete e.optionstriggerConditionOperator
this.$notify({
type: "success",
title: "提示",
message: "保存成功,即将返回签约患者列表",
duration: 3000,
}); });
setTimeout(() => { delete this.updata.triggerConditionList.optionstriggerConditionOperator
this.$store // return
.dispatch("tagsView/delView", this.$route) signrouteadd(this.updata).then((res) => {
.then(({ visitedViews }) => { this.$notify({
this.$router.push({ type: "success",
path: "/patient/signRecord", title: "提示",
message: "保存成功,即将返回签约患者列表",
duration: 3000,
});
setTimeout(() => {
this.$store
.dispatch("tagsView/delView", this.$route)
.then(({ visitedViews }) => {
this.$router.push({
path: "/patient/signRecord",
});
}); });
}); }, 3000);
}, 3000); });
}); })
}, },
// //
getMaxTableHeight() { getMaxTableHeight() {

View File

@ -188,11 +188,11 @@ export default {
}, },
/** 重置按钮操作 */ /** 重置按钮操作 */
resetQuery() { resetQuery() {
this.$refs.DepartmentList.resetQuery()
this.queryParams.departmentId = null; this.queryParams.departmentId = null;
this.itemname = null; this.itemname = null;
this.resetForm("queryForm"); this.resetForm("queryForm");
this.handleQuery(); this.$refs.DepartmentList.resetQuery()
// this.handleQuery();
}, },
}, },
}; };

View File

@ -193,10 +193,10 @@ export default {
}, },
/** 重置按钮操作 */ /** 重置按钮操作 */
resetQuery() { resetQuery() {
this.$refs.DepartmentList.resetQuery()
this.queryParams.departmentId = null; this.queryParams.departmentId = null;
this.resetForm("queryForm"); this.resetForm("queryForm");
this.handleQuery(); this.$refs.DepartmentList.resetQuery()
// this.handleQuery();
}, },
}, },
}; };

View File

@ -172,10 +172,10 @@ export default {
}, },
/** 重置按钮操作 */ /** 重置按钮操作 */
resetQuery() { resetQuery() {
this.$refs.DepartmentList.resetQuery()
this.queryParams.departmentId = null; this.queryParams.departmentId = null;
this.resetForm("queryForm"); this.resetForm("queryForm");
this.handleQuery(); this.$refs.DepartmentList.resetQuery()
// this.handleQuery();
}, },
} }
}; };

View File

@ -280,9 +280,9 @@ export default {
}, },
/** 重置按钮操作 */ /** 重置按钮操作 */
resetQuery() { resetQuery() {
this.$refs.DepartmentList.resetQuery()
this.resetForm("queryForm"); this.resetForm("queryForm");
this.handleQuery(); this.$refs.DepartmentList.resetQuery()
// this.handleQuery();
}, },
}, },
}; };

View File

@ -197,9 +197,9 @@ export default {
}, },
/** 重置按钮操作 */ /** 重置按钮操作 */
resetQuery() { resetQuery() {
this.$refs.DepartmentList.resetQuery()
this.resetForm("queryForm"); this.resetForm("queryForm");
this.handleQuery(); this.$refs.DepartmentList.resetQuery()
// this.handleQuery();
}, },
}, },
}; };

View File

@ -234,9 +234,9 @@ export default {
scriptSort: null, scriptSort: null,
scriptRemark: null, scriptRemark: null,
}; };
this.$refs.DepartmentList.resetQuery()
this.resetForm("queryForm"); this.resetForm("queryForm");
this.getList(); this.$refs.DepartmentList.resetQuery()
// this.getList();
}, },
}, },
}; };