sendo
17 小时以前 65c54e73260d22926e175e337d72e6a9acfddd64
src/views/followvisit/record/detailpage/index.vue
@@ -317,7 +317,7 @@
                          </el-radio-group>
                        </div>
                        <div
                          v-if="item.showAppendInput||item.answerps"
                          v-if="item.showAppendInput || item.answerps"
                          class="append-input-container"
                        >
                          <el-input
@@ -548,7 +548,7 @@
                    >保存基础信息</el-button
                  >
                </div>
                <div>
                <!-- <div>
                  <el-button
                    type="primary"
                    round
@@ -556,7 +556,7 @@
                    @click="sendAgain()"
                    >再次随访</el-button
                  >
                </div>
                </div> -->
              </div>
              <el-row>
                <el-col :span="14"
@@ -1307,49 +1307,49 @@
          });
          this.Editsingletasksonyic(6);
          this.$modal
            .confirm(
              '任务保存成功是否针对患者:"' +
                this.logsheetlist[0].sendname +
                '"再次随访?',
              "确认",
              {
                confirmButtonText: "确定",
                cancelButtonText: "取消",
                showCancelButton: true,
                dangerouslyUseHTMLString: true,
                confirmButtonClass: "custom-confirm-button", // 自定义确认按钮的类名
                cancelButtonClass: "custom-cancel-button", // 自定义取消按钮的类名
              }
            )
            .then(() => {
              document.querySelector("#app").scrollTo(0, 0);
              this.formtidy();
              this.dialogFormVisible = true;
            })
            .catch(() => {
              if (this.form.serviceType == 13) {
                if (this.visitCount != 1) {
                  this.$router.push({
                    path: "/logisticsservice/zbAgain",
                  });
                } else {
                  this.$router.push({
                    path: "/logisticsservice/record",
                  });
                }
              } else if (this.form.serviceType == 2) {
                if (this.visitCount != 1) {
                  this.$router.push({
                    path: "/logisticsservice/again",
                  });
                } else {
                  this.$router.push({
                    path: "/followvisit/discharge",
                  });
                }
              }
            });
          // this.$modal
          //   .confirm(
          //     '任务保存成功是否针对患者:"' +
          //       this.logsheetlist[0].sendname +
          //       '"再次随访?',
          //     "确认",
          //     {
          //       confirmButtonText: "确定",
          //       cancelButtonText: "取消",
          //       showCancelButton: true,
          //       dangerouslyUseHTMLString: true,
          //       confirmButtonClass: "custom-confirm-button", // 自定义确认按钮的类名
          //       cancelButtonClass: "custom-cancel-button", // 自定义取消按钮的类名
          //     }
          //   )
          //   .then(() => {
          //     document.querySelector("#app").scrollTo(0, 0);
          //     this.formtidy();
          //     this.dialogFormVisible = true;
          //   })
          //   .catch(() => {
          //     if (this.form.serviceType == 13) {
          //       if (this.visitCount != 1) {
          //         this.$router.push({
          //           path: "/logisticsservice/zbAgain",
          //         });
          //       } else {
          //         this.$router.push({
          //           path: "/logisticsservice/record",
          //         });
          //       }
          //     } else if (this.form.serviceType == 2) {
          //       if (this.visitCount != 1) {
          //         this.$router.push({
          //           path: "/logisticsservice/again",
          //         });
          //       } else {
          //         this.$router.push({
          //           path: "/followvisit/discharge",
          //         });
          //       }
          //     }
          //   });
        })
        .catch((error) => {
          // 如果有任何一个异步操作失败,会进入这里
@@ -1532,9 +1532,13 @@
        subId: id,
      }).then((res) => {
        if (res.code == 200) {
          console.log(11);
          this.form = res.rows[0].serviceSubtaskList.find(
            (item) => item.id == this.id
          );
          console.log(this.form);
          console.log(this.form.serviceType, "serviceType");
          this.logsheetlist = res.rows[0].serviceSubtaskList;
@@ -1639,17 +1643,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
@@ -1668,6 +1672,11 @@
    },
    // 在methods部分,修改handleOptionChange方法:
    handleOptionChange(selectedOption, questionIndex, options, a) {
      // 判断是否语音
      if (this.Voicetype) {
        this.aahandleOptionChange(selectedOption, questionIndex, options);
        return;
      }
      if (document.activeElement) {
        document.activeElement.blur();
      }