From fdf8b9cc7995c8d2022ac512c48a7567f6d2af9a Mon Sep 17 00:00:00 2001 From: WXL <1785969728@qq.com> Date: 星期五, 05 七月 2024 16:15:37 +0800 Subject: [PATCH] 测试完成 --- src/views/patient/propaganda/QuestionnaireTask.vue | 265 +++++++++++++++++++++++++++++++++++++++++++--------- 1 files changed, 218 insertions(+), 47 deletions(-) diff --git a/src/views/patient/propaganda/QuestionnaireTask.vue b/src/views/patient/propaganda/QuestionnaireTask.vue index 4ec9bd9..f92b03b 100644 --- a/src/views/patient/propaganda/QuestionnaireTask.vue +++ b/src/views/patient/propaganda/QuestionnaireTask.vue @@ -54,6 +54,7 @@ <el-button type="primary" icon="el-icon-edit" + @click="drawermb = true" circle ></el-button> </el-col> @@ -342,6 +343,7 @@ @selectfn="selectfn" :currentList="userList" :tableLabel="tableLabel" + :serialnumber="false" :controlsc="false" :multiplechoice="false" :typeinfo="1" @@ -669,19 +671,19 @@ <div class="topic-dev" v-for="(item, index) in questionList" - :key="item.aaa" + :key="item.id" > <div class="dev-text"> - {{ index + 1 }}銆�<span>{{ item.questionText }}</span> + {{ index + 1 }}銆�<span>{{ item.script }}</span> </div> - <div class="dev-xx" v-if="item.valueType == 1"> + <div class="dev-xx" v-if="item.scripttype != 3"> <el-radio-group v-model="item.radio"> <el-radio - v-for="(items, index) in item.ivrLibaScriptTargetoptionList" + v-for="(items, index) in item.svyLibTemplateTargetoptions" :key="items.id" :label="items.id" - >{{ items.targetvalue }} + >{{ items.optioncontent }} </el-radio> </el-radio-group> </div> @@ -700,6 +702,177 @@ <el-button type="primary" @click="previewFn">纭浣跨敤</el-button> </span> </el-dialog> + <el-drawer + title="闅忚鍐呭鍒楄〃" + :visible.sync="drawermb" + direction="rtl" + size="50%" + > + <div class="headline"></div> + <div class="examine-jic"> + <div class="jic-value"> + <el-row :gutter="20"> + <!--鐢ㄦ埛鏁版嵁--> + + <el-form + :model="topqueryParams" + ref="queryForm" + size="small" + :inline="true" + v-show="showSearch" + label-width="98px" + > + <el-form-item + label="瀹f暀涓婚" + v-if="currenttype == 1 || currenttype == 8" + > + <el-input v-model="topqueryParams.name"></el-input> + </el-form-item> + <el-form-item + label="闅忚鍚嶇О" + v-if="currenttype == 2 || currenttype == 3 || currenttype == 7" + > + <el-input + v-model="topqueryParams.name" + ></el-input> </el-form-item + ><el-form-item + label="閫氱煡鍚嶇О" + v-if="currenttype == 4 || currenttype == 5" + > + <el-input + v-model="topqueryParams.name" + ></el-input> </el-form-item + ><el-form-item label="浣撴濂楅" v-if="currenttype == 5"> + <el-input v-model="topqueryParams.name"></el-input> + </el-form-item> + <el-form-item label="闂嵎涓婚" v-if="currenttype == 6"> + <el-input v-model="topqueryParams.name"></el-input> + </el-form-item> + <el-form-item label="閫傜敤鐤剧梾" v-if="currenttype != 5"> + <el-input v-model="topqueryParams.name"></el-input> + </el-form-item> + + <el-form-item + label="瀹f暀绫诲瀷" + prop="status" + v-if="currenttype == 1 || currenttype == 8" + > + <el-select v-model="topqueryParams.topic" placeholder="璇烽�夋嫨"> + <el-option + v-for="item in taskoptions" + :key="item.value" + :label="item.label" + :value="item.value" + > + </el-option> + </el-select> + </el-form-item> + <el-form-item + label="閫氱煡绫诲瀷" + prop="status" + v-if="currenttype == 4 || currenttype == 5" + > + <el-select v-model="topqueryParams.topic" placeholder="璇烽�夋嫨"> + <el-option + v-for="item in taskoptions" + :key="item.value" + :label="item.label" + :value="item.value" + > + </el-option> + </el-select> + </el-form-item> + <el-form-item + label="闅忚绫诲瀷" + prop="status" + v-if="currenttype == 2 || currenttype == 3 || currenttype == 7" + > + <el-select v-model="topqueryParams.topic" placeholder="璇烽�夋嫨"> + <el-option + v-for="item in taskoptions" + :key="item.value" + :label="item.label" + :value="item.value" + > + </el-option> + </el-select> + </el-form-item> + <el-form-item + label="闂嵎绫诲瀷" + prop="status" + v-if="currenttype == 6" + > + <el-select v-model="topqueryParams.topic" placeholder="璇烽�夋嫨"> + <el-option + v-for="item in taskoptions" + :key="item.value" + :label="item.label" + :value="item.value" + > + </el-option> + </el-select> + </el-form-item> + <el-form-item label="閫傜敤褰㈠紡" prop="status"> + <el-select v-model="topqueryParams.topica" placeholder="璇烽�夋嫨"> + <el-option + v-for="item in taskoptions" + :key="item.value" + :label="item.label" + :value="item.value" + > + </el-option> + </el-select> + </el-form-item> + + <el-form-item label="閫傜敤绉戝" prop="status"> + <el-select v-model="topqueryParams.topicd" placeholder="璇烽�夋嫨"> + <el-option + v-for="item in topicoptions" + :key="item.value" + :label="item.label" + :value="item.value" + > + </el-option> + </el-select> + </el-form-item> + <el-form-item> + <el-button + type="primary" + icon="el-icon-search" + size="medium" + @click="handleQuery" + >鎼滅储</el-button + > + <el-button + icon="el-icon-refresh" + size="medium" + @click="resetQuery" + >閲嶇疆</el-button + > + </el-form-item> + </el-form> + <el-divider></el-divider> + <!-- 閫夋嫨妯$増鍒楄〃 --> + <SFtable + @selectfn="selectfn" + :currentList="userList" + :tableLabel="tableLabel" + :serialnumber="false" + :controlsc="false" + :multiplechoice="false" + :typeinfo="1" + /> + <pagination + v-show="total > 0" + :total="total" + :page.sync="topqueryParams.pageNum" + :limit.sync="topqueryParams.pageSize" + @pagination="Acquisitiontype" + /> + </el-row> + </div> + </div> + </el-drawer> </div> </template> @@ -715,7 +888,7 @@ Questionnairetaskget, gethetaskinfo, delhetaskinfo, - Questionnairetaskdetails, + Editsingletask, } from "@/api/AiCentre/index"; import { listDept } from "@/api/system/dept"; @@ -734,6 +907,7 @@ allpids: [], libId: null, //妯℃澘搴撴ā鐗坕d Editprogress: 1, //缂栬緫杩涘害 + drawermb: false, //閫夋嫨妯$増寮圭獥 previewtf: false, //棰勮 loading: false, // 閬僵灞� patientloading: false, // 閬僵灞� @@ -754,10 +928,11 @@ ], tableLabelwj: [ - { label: "闂嵎鍚嶇О", width: "", prop: "name" }, - { label: "闂嵎妯$増", width: "", prop: "impTemplate" }, - { label: "淇敼鏃ユ湡", width: "", prop: "uploadTime" }, - { label: "鍒涘缓浜猴紙缂猴級", width: "", prop: "updateBy" }, + { label: "搴忓彿", width: "", prop: "svyid" }, + { label: "闂嵎鍚嶇О", width: "", prop: "svyname" }, + { label: "闂嵎姒傝堪", width: "", prop: "description" }, + { label: "淇敼鏃ユ湡", width: "", prop: "updateTime" }, + { label: "鍒涘缓浜�", width: "", prop: "createBy" }, ], // 鍙橀噺 tableLabelvariable: [ @@ -775,6 +950,8 @@ { label: "鏀粯瀹�", value: 7 }, { label: "鏅鸿兘灏忕▼搴�", value: 8 }, { label: "閽夐拤", value: 9 }, + { label: "绾夸笅锛堢焊璐級", value: 10 }, + { label: "绾夸笂锛堢煭淇�/閽夐拤鐨勬枃鏈�侀棶鍗烽摼鎺ワ級", value: 11 }, ], // 鏃堕棿澶勭悊 daytime: [], //鏃ユ湡 @@ -883,7 +1060,8 @@ created() { this.id = this.$route.query.id; - this.form.hospType = this.$route.query.type; + this.form.type = this.$route.query.type; + this.form.typename = this.$route.query.typename; this.listDept(); this.Acquisitiontype(); this.Getdetails(); @@ -955,14 +1133,20 @@ } else { this.form.isoperation = 1; } - Questionnairetaskdetails(this.form).then((res) => { + if (!this.form.type) { + this.form.type = this.$route.query.type; + } + Editsingletask(this.form).then((res) => { if (res.code == 200) { if (this.form.taskid) { this.$modal.msgSuccess("鏂板鎴愬姛"); } else { this.$modal.msgSuccess("淇敼鎴愬姛"); } - this.$router.go(-1); + this.$router.push({ + path: "/followvisit/tasklist", + query: { tasktopic: 6 }, + }); } }); }, @@ -971,30 +1155,15 @@ selectfn(row, type) { // 妯$増鎯呭喌涓嬭幏鍙栨ā鐗堜俊鎭� if (type == 1) { - if ( - this.currenttype == 2 || - this.currenttype == 4 || - this.currenttype == 3 || - currenttype == 5 || - currenttype == 7 - ) { - this.libName = row.templateName; - this.libId = row.id; - } else if (this.currenttype == 1) { - this.libName = row.preachname; - this.libId = row.id; - } - getQtemplatelist({ id: row.id }).then((res) => { - if (res.code == 200) { - this.Tasktemplate = res.data; - const data = res.data; - this.questionList = data.ivrLibaTemplateScriptVOList; - this.previewtf = true; - this.previewid = data.id; - console.log(this.questionList, "questionList"); - this.Variablehandling(data.ivrLibaTemplateScriptVOList, 1); - } - }); + this.libName = row.svyname; + this.libId = row.svyid; + console.log(row, "row"); + this.Tasktemplate = row; + this.questionList = row.svyLibScripts; + this.previewtf = true; + this.previewid = row.svyid; + console.log(this.questionList, "questionList"); + this.Variablehandling(row.svyLibScripts, 1); } else if (type == 2) { } else if (type == 3) { } @@ -1054,8 +1223,7 @@ handleUpdate() {}, handleDelete() {}, handleExport() {}, - // 閫変腑鎮h�呰〃 - handlePitchionChange() {}, + // 閫夋嫨鎮h�呰〃鏁版嵁 handleSelectionChange(selection) { console.log("澶氶�夋偅鑰�"); @@ -1067,6 +1235,7 @@ const isExist = this.overallCase.find((obj) => obj.name == item.name); if (!isExist) { item.isoperation = 1; + item.hospType = this.patientqueryParams.allhosp; this.overallCase.push(item); this.form.patTaskRelevances.push(item); } @@ -1141,6 +1310,10 @@ console.log(2233); if (res.code == 200) { this.form = res.data; + + this.form.patTaskRelevances = this.form.patTaskRelevances + ? this.form.patTaskRelevances + : []; this.overallCase = this.form.patTaskRelevances.concat(); this.formatFn(2); console.log(this.form.showDate, "this.form"); @@ -1270,15 +1443,12 @@ previewFn() { let id = this.Tasktemplate.id; this.Tasktemplate.id = null; - this.Tasktemplate.ivrLibaTemplateScriptVOList.ivrTaskScriptTargetoptionList = - this.Tasktemplate.ivrLibaTemplateScriptVOList.ivrLibaScriptTargetoptionList; - this.Tasktemplate.ivrTaskTemplateScriptVOList = - this.Tasktemplate.ivrLibaTemplateScriptVOList; - this.Tasktemplate.ivrLibaTemplateTagList = null; - this.Tasktemplate.tempDetpRelevances = null; - this.Tasktemplate.libtemplateid = id; + this.Tasktemplate.svyLibScripts.svyTaskTemplateTargetoptions = + this.Tasktemplate.svyLibScripts.svyLibTemplateTargetoptions; + this.Tasktemplate.svyTaskTemplateScriptVOS = + this.Tasktemplate.svyLibScripts; + this.Tasktemplate.templateid = id; this.Tasktemplate.isoperation = 1; - this.Tasktemplate.libtemplatename = this.Tasktemplate.templateName; TaskQuestioncomit(this.Tasktemplate).then((response) => { console.log(response); this.previewtf = false; @@ -1302,6 +1472,7 @@ } }); }); + console.log(list, "list"); this.form.preachform = list.join(","); } else { console.log(this.form.preachform, "this.form.preachform"); -- Gitblit v1.9.3