| | |
| | | @selectfn="selectfn" |
| | | :currentList="userList" |
| | | :tableLabel="tableLabel" |
| | | :serialnumber="false" |
| | | :controlsc="false" |
| | | :multiplechoice="false" |
| | | :typeinfo="1" |
| | |
| | | <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> |
| | |
| | | ], |
| | | |
| | | 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: [ |
| | |
| | | { label: "支付宝", value: 7 }, |
| | | { label: "智能小程序", value: 8 }, |
| | | { label: "钉钉", value: 9 }, |
| | | { label: "线下(纸质)", value: 10 }, |
| | | { label: "线上(短信/钉钉的文本、问卷链接)", value: 11 }, |
| | | ], |
| | | // 时间处理 |
| | | daytime: [], //日期 |
| | |
| | | } else { |
| | | this.$modal.msgSuccess("修改成功"); |
| | | } |
| | | this.$router.go(-1); |
| | | this.$router.push({ |
| | | path: "/followvisit/tasklist", |
| | | query: { tasktopic: 6 }, |
| | | }); |
| | | } |
| | | }); |
| | | }, |
| | |
| | | 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.libName = row.svyname; |
| | | this.libId = row.svyid; |
| | | console.log(row, "row"); |
| | | this.Tasktemplate = row; |
| | | this.questionList = row.svyLibScripts; |
| | | this.previewtf = true; |
| | | this.previewid = data.id; |
| | | this.previewid = row.svyid; |
| | | console.log(this.questionList, "questionList"); |
| | | this.Variablehandling(data.ivrLibaTemplateScriptVOList, 1); |
| | | } |
| | | }); |
| | | this.Variablehandling(row.svyLibScripts, 1); |
| | | } else if (type == 2) { |
| | | } else if (type == 3) { |
| | | } |
| | |
| | | handleUpdate() {}, |
| | | handleDelete() {}, |
| | | handleExport() {}, |
| | | // 选中患者表 |
| | | handlePitchionChange() {}, |
| | | |
| | | // 选择患者表数据 |
| | | handleSelectionChange(selection) { |
| | | console.log("多选患者"); |
| | |
| | | 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); |
| | | } |
| | |
| | | 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"); |
| | |
| | | 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; |
| | |
| | | } |
| | | }); |
| | | }); |
| | | console.log(list, "list"); |
| | | this.form.preachform = list.join(","); |
| | | } else { |
| | | console.log(this.form.preachform, "this.form.preachform"); |