WXL (wul)
2025-11-13 de147dda682f8ac597bbcc8555b57acbdf45dba2
src/views/followvisit/record/detailpage/index.vue
@@ -54,6 +54,7 @@
          :row-class-name="tableRowClassName"
          :max-height="350"
          style="width: 100%"
           height="350"
          @selection-change="handleSelectionChange"
        >
          <el-table-column
@@ -318,6 +319,7 @@
                        </div>
                        <div
                          v-if="item.showAppendInput || item.answerps"
                          v-if="item.showAppendInput || item.answerps"
                          class="append-input-container"
                        >
                          <el-input
@@ -570,7 +572,7 @@
                    >保存基础信息</el-button
                  >
                </div>
                <div>
                <!-- <div>
                  <el-button
                    type="primary"
                    round
@@ -1190,21 +1192,21 @@
      selectedTag: "",
      tagOptions: [
        {
          value: '0',
          value: "0",
          label: "正常",
          type: "normal",
          color: "#7ff5e1",
          description: "患者情况正常,无需特别关注",
        },
        {
          value: '1',
          value: "1",
          label: "异常",
          type: "abnormal",
          color: "#f75c5c",
          description: "患者存在异常情况,需要重点关注",
        },
        {
          value: '2',
          value: "2",
          label: "警告",
          type: "warning",
          color: "#fbfb4a",
@@ -1609,11 +1611,15 @@
        var objs = item.svyTaskTemplateTargetoptions.find(
          (items) => items.optioncontent == item.scriptResult
        );
        if (obj) {
          if (objs.isabnormal) {
        if (objs) {
          if (excep != 1 && objs.isabnormal) {
            excep = objs.isabnormal;
            this.selectedTag = objs.isabnormal;
          }
        }
        console.log(excep, "excep");
        let obj = {
          asrtext: null,
          patid: this.patid,
@@ -1792,7 +1798,8 @@
    },
    yuyingetdetail() {
      const dataToSubmit = JSON.parse(JSON.stringify(this.tableDatatop));
      console.log(dataToSubmit, "dataToSubmit");
      return;
      dataToSubmit.forEach((item, index) => {
        // 对拷贝的数据进行操作,不影响原始的 scriptResult 数组
        item.scriptResult = item.scriptResult.join("&");
@@ -1892,6 +1899,8 @@
        pageSize: 100,
      }).then((res) => {
        if (res.code == 200) {
          console.log(11);
          this.form = res.rows[0].serviceSubtaskList.find(
            (item) => item.id == this.id
          );
@@ -2054,17 +2063,17 @@
    },
    aahandleOptionChange(a, b, c) {
      const result = c.find((item) => item.optioncontent == a);
      if (result.nextQuestion == 0) {
        this.tableDatatop = this.tableDatatop.reduce((acc, item, i) => {
          acc.push(i > b ? { ...item, astrict: 1 } : item);
          return acc;
        }, []);
      } else {
        this.tableDatatop = this.tableDatatop.reduce((acc, item, i) => {
          acc.push(i > b ? { ...item, astrict: 0 } : item);
          return acc;
        }, []);
      }
      // if (result.nextQuestion == 0) {
      //   this.tableDatatop = this.tableDatatop.reduce((acc, item, i) => {
      //     acc.push(i > b ? { ...item, astrict: 1 } : item);
      //     return acc;
      //   }, []);
      // } else {
      //   this.tableDatatop = this.tableDatatop.reduce((acc, item, i) => {
      //     acc.push(i > b ? { ...item, astrict: 0 } : item);
      //     return acc;
      //   }, []);
      // }
      if (this.Voicetype) {
        var obj = this.tableDatatop[b].ivrTaskScriptTargetoptionList.find(
          (item) => item.optioncontent == a
@@ -2101,8 +2110,6 @@
    },
    // 新增的切换选中/取消选中方法
    handleRadioToggle(questionItem, index, options, optionValue) {
      console.log(questionItem, optionValue, 999);
      // 如果点击的是当前已选中的选项,则取消选中
      if (questionItem.scriptResult === optionValue) {
        questionItem.scriptResult = ""; // 清空选中值
@@ -2760,7 +2767,7 @@
  margin: 0 10px 20px 10px;
  /* 当缩放比例大于100%或屏幕宽度较小时改为上下排列 */
  @media screen and  (min-resolution: 1.5dppx) {
  @media screen and (min-resolution: 1.5dppx) {
    flex-direction: column;
    .call-action,