WXL
2024-06-27 9955d350edda1cecf63b1efa4f77923d15e7e1c3
测试完成
已修改2个文件
81 ■■■■ 文件已修改
src/views/followvisit/tasklist/index.vue 3 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/views/patient/propaganda/QuestionnaireTask.vue 78 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/views/followvisit/tasklist/index.vue
@@ -627,6 +627,9 @@
    /** 查询任务列表 */
    getList() {
      this.loading = true;
      this.tasktopic = this.$route.query.tasktopic
        ? this.$route.query.tasktopic
        : this.tasktopic;
      if (this.tasktopic == 1 || this.tasktopic == 2 || this.tasktopic == 3) {
        getTasklist(this.topqueryParams).then((response) => {
          this.userList = response.rows;
src/views/patient/propaganda/QuestionnaireTask.vue
@@ -342,6 +342,7 @@
                    @selectfn="selectfn"
                    :currentList="userList"
                    :tableLabel="tableLabel"
                    :serialnumber="false"
                    :controlsc="false"
                    :multiplechoice="false"
                    :typeinfo="1"
@@ -669,19 +670,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>
@@ -754,10 +755,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 +777,8 @@
        { label: "支付宝", value: 7 },
        { label: "智能小程序", value: 8 },
        { label: "钉钉", value: 9 },
        { label: "线下(纸质)", value: 10 },
        { label: "线上(短信/钉钉的文本、问卷链接)", value: 11 },
      ],
      // 时间处理
      daytime: [], //日期
@@ -962,7 +966,10 @@
          } else {
            this.$modal.msgSuccess("修改成功");
          }
          this.$router.go(-1);
          this.$router.push({
            path: "/followvisit/tasklist",
            query: { tasktopic: 6 },
          });
        }
      });
    },
@@ -971,30 +978,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.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) {
      }
@@ -1054,8 +1046,7 @@
    handleUpdate() {},
    handleDelete() {},
    handleExport() {},
    // 选中患者表
    handlePitchionChange() {},
    // 选择患者表数据
    handleSelectionChange(selection) {
      console.log("多选患者");
@@ -1067,6 +1058,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 +1133,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 +1266,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 +1295,7 @@
            }
          });
        });
        console.log(list, "list");
        this.form.preachform = list.join(",");
      } else {
        console.log(this.form.preachform, "this.form.preachform");