WXL
2024-09-03 aa055fac8e928e10a70e2089353dc1b67d435576
测试完成
已修改2个文件
51 ■■■■■ 文件已修改
src/views/outsideChainwt.vue 19 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/views/patient/propaganda/QuestionnaireTask.vue 32 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/views/outsideChainwt.vue
@@ -14,11 +14,11 @@
              {{ index + 1 }}、[单选]<span>{{ item.scriptContent }}</span>
            </div>
            <div class="dev-xx">
              <el-radio-group v-model="item.scriptResult">
              <el-radio-group v-model="item.scriptResult" @change="handleOptionChange($event, index, item)">
                <el-radio
                  v-for="(items, index) in item.svyLibTemplateTargetoptions"
                  :key="index"
                  :label="index"
                  :label="items.optioncontent"
                  >{{ items.optioncontent }}</el-radio
                >
              </el-radio-group>
@@ -141,6 +141,7 @@
        }
      );
    },
    // 获取数据
    getExternalfollowup() {
      getExternalfollowup({ param1: this.taskid, param2: this.patid }).then(
        (res) => {
@@ -182,6 +183,9 @@
      const arr = structuredClone(this.questionList);
      arr.forEach((item) => {
        item.asrtext = JSON.stringify(item.scriptResult);
        if (item.scriptType == 2 && item.scriptResult[0]) {
          item.asrtext = item.scriptResult.join("&");
        }
      });
      form.serviceSubtaskDetailList = arr;
      Submitaquestionnaire(form).then((res) => {
@@ -212,6 +216,17 @@
        }
      });
    },
    // 处理选项
    handleOptionChange(selectedvalue, index,arr) {
      // 查找选中的选项对象
      const selectedOption = arr.svyLibTemplateTargetoptions.find(
        (option) => option.optioncontent == selectedvalue
      );
      if (selectedOption) {
        // 将选中的选项对象的 id 赋值给 obj.sonId
        this.questionList[index].nextScriptno = selectedOption.nextQuestion;
      }
    },
  },
};
</script>
src/views/patient/propaganda/QuestionnaireTask.vue
@@ -790,6 +790,10 @@
            value: "2",
            label: "纸质",
          },
          {
            value: "5",
            label: "微信公众号",
          },
        ];
      } else if (this.form.serviceType == 6) {
        this.checkboxlist = [
@@ -842,6 +846,34 @@
            label: "微信小程序",
          },
        ];
      }else if (this.form.serviceType == 2 || this.form.serviceType == 3) {
        this.checkboxlist = [
          {
            value: "1",
            label: "人工",
          },
          {
            value: "3",
            label: "电话",
          },
          {
            value: "4",
            label: "短信",
          },
          {
            value: "5",
            label: "微信公众号",
          },
          {
            value: "6",
            label: "微信小程序",
          },
          {
            value: "8",
            label: "智能机器人",
          },
        ];
      }
      getQtemplatelist(queryParams).then((response) => {
        this.userList = response.rows;