From 3b5ff0651c049d5def8fd789c52ec26188a1e8a1 Mon Sep 17 00:00:00 2001
From: WXL (wul) <wl_5969728@163.com>
Date: 星期五, 21 十一月 2025 10:45:13 +0800
Subject: [PATCH] 测试完成
---
src/views/patient/propaganda/QuestionnaireTask.vue | 32 +++++++++++++++++++++++---------
1 files changed, 23 insertions(+), 9 deletions(-)
diff --git a/src/views/patient/propaganda/QuestionnaireTask.vue b/src/views/patient/propaganda/QuestionnaireTask.vue
index c4318f1..22db733 100644
--- a/src/views/patient/propaganda/QuestionnaireTask.vue
+++ b/src/views/patient/propaganda/QuestionnaireTask.vue
@@ -917,6 +917,7 @@
Externallist,
getQtemplatelist,
getQtemplateobj,
+ taskgetQtemplateobj,
TaskQuestioncomit,
deleteTaskQuestioncomit,
Questionnairetaskgetson,
@@ -1203,8 +1204,9 @@
sendType: [
{ required: true, message: "鍙戦�佽缃笉鑳戒负绌�", trigger: "blur" },
],
- deptcode: [
- { required: true, message: "閫傜敤绉戝涓嶈兘涓虹┖", trigger: "blur" },
+
+ longTask: [
+ { required: true, message: "璇烽�夋嫨鎵ц鍛ㄦ湡", trigger: "blur" },
],
// leavehospitaldistrictcode: [
// { required: true, message: "閫傜敤鐥呭尯涓嶈兘涓虹┖", trigger: "blur" },
@@ -1472,6 +1474,8 @@
this.form.preachformList = this.selectedOrder;
} else {
this.$modal.msgError("璇烽�夋嫨鏈嶅姟绫诲瀷");
+ this.submitLoading = false;
+
return;
}
console.log(this.operationcodes[0]);
@@ -1487,6 +1491,7 @@
) {
} else {
this.$modal.msgError("璇烽�夋嫨浠诲姟鍏宠仈鏉′欢");
+ this.submitLoading = false;
return;
}
//鏆傚仠浠诲姟鎮h�呴檺鍒�
@@ -1497,6 +1502,8 @@
if (!this.form.templatename && !this.templateor) {
this.$modal.msgError("鏈�夋嫨妯℃澘");
+ this.submitLoading = false;
+
return;
}
@@ -1509,6 +1516,7 @@
this.form.longTask
) {
} else {
+ this.submitLoading = false;
return this.$modal.msgError("鏃堕棿淇℃伅缂哄け");
}
const filteredArray = this.variableList.filter(
@@ -1587,6 +1595,8 @@
},
// 棰勮
previewfnmb() {
+ // taskgetQtemplateobj({ id: this.form.templateid });
+
getTaskQuestioncomit(this.form.templateid).then((res) => {
if (res.code == 200) {
console.log(res, "棰勮鏁版嵁");
@@ -1597,15 +1607,17 @@
this.getillness(this.form.libtemplateid);
this.previewtf = true;
- getQtemplateobj({ svyid: this.form.libtemplateid }).then((res) => {
+ taskgetQtemplateobj({ id: this.form.templateid }).then((res) => {
if (res.code == 200) {
- this.questionList = res.rows[0].svyTemplateLibScripts;
+ this.questionList = res.data.svyTaskTemplateScriptVOS;
this.questionList.forEach((item) => {
item.qremark = [];
+ item.svyLibTemplateTargetoptions =
+ item.svyTaskTemplateTargetoptions;
});
this.previewtftype = 1;
this.objyl.svyTemplateLibScripts =
- res.rows[0].svyTemplateLibScripts;
+ res.data.svyTaskTemplateScriptVOS;
}
});
}
@@ -2128,8 +2140,8 @@
},
// 鐤剧梾鍒犻櫎瑙﹀彂
removediagg(row) {
- console.log(row,'row');
-console.log(this.diagglist,'this.diagglist');
+ console.log(row, "row");
+ console.log(this.diagglist, "this.diagglist");
let result = this.diagglist
.filter((item) => item.icd10code == row)
@@ -2263,6 +2275,7 @@
TaskQuestioncomit(this.objyl).then((response) => {
this.previewtf = false;
this.form.libtemplateid = this.objyl.svyid;
+ this.form.libtemplatename = this.objyl.svyname;
this.form.templateid = response.data;
this.form.templatename = this.objyl.svyname;
this.$modal.msgSuccess("閫夋嫨妯℃澘鎴愬姛");
@@ -2273,6 +2286,7 @@
TaskQuestioncomit(this.objyl).then((response) => {
this.previewtf = false;
this.form.libtemplateid = this.objyl.svyid;
+ this.form.libtemplatename = this.objyl.svyname;
this.form.templateid = response.data;
this.form.templatename = this.objyl.svyname;
this.$modal.msgSuccess("閫夋嫨妯℃澘鎴愬姛");
@@ -2321,9 +2335,9 @@
this.objyl.templateid = this.objyl.svyid;
this.form.libtemplateid = this.objyl.svyid;
this.objyl.isoperation = 1;
- this.objyl.svyLibTemplateScriptVOS =
+ this.objyl.svyTaskTemplateScriptVOS =
this.objyl.svyTemplateLibScripts;
- this.objyl.svyLibTemplateScriptVOS.forEach((item) => {
+ this.objyl.svyTaskTemplateScriptVOS.forEach((item) => {
item.svyTaskTemplateTargetoptions =
item.svyLibTemplateTargetoptions;
});
--
Gitblit v1.9.3