WXL (wul)
4 天以前 877cf2120309d30c08f922191bca1ec5242add82
src/views/followvisit/record/detailpage/index.vue
@@ -561,7 +561,7 @@
                <el-button
                  type="primary"
                  plain
                  @click="Editsingletasksonyic('')"
                  @click="alterpatient('')"
                >
                  保存基础信息
                </el-button>
@@ -1806,10 +1806,7 @@
        // 处理 scriptResult,直接修改原始数据
        if (item.scriptType == 2 && item.scriptResult) {
          // 处理数组类型的 scriptResult
          if (
            Array.isArray(item.scriptResult) &&
            item.scriptResult.length > 0
          ) {
          if (Array.isArray(item.scriptResult)) {
            item.originalScriptResult = item.scriptResult; // 保存原始数组(可选)
            item.scriptResult = item.scriptResult.join("&"); // 转换为字符串
          }
@@ -2023,11 +2020,10 @@
        }
        item.patid = this.patid;
        item.templateid = item.templateID;
             if (item.nextScriptno == null) {
        if (item.nextScriptno == null) {
          item.nextScriptno = index == dataToSubmit.length - 1 ? 0 : index + 2;
        }
      });
      console.log("c", 3);
      let obj = {
        ivrTaskTemplateScriptVOList: dataToSubmit, // 提交处理后的副本
@@ -2036,9 +2032,8 @@
        param6: this.id,
        type: 1,
      };
      console.log("c", 4);
      const orgName = localStorage.getItem("orgname");
      console.log(orgName, "orgName");
      if (this.form.isVisitAgain != 1 || orgName == "丽水市中医院") {
        this.Torouter();
@@ -2205,6 +2200,15 @@
        }
      });
    },
    alterpatient(sendstate) {
      alterpatient(this.userform).then((res) => {
        if (res.code == 200) {
          this.$modal.msgSuccess("基础信息保存成功");
        } else {
          this.$modal.msgError("基础信息修改失败");
        }
      });
    },
    // 异常列渲染
    tableRowClassName({ row, rowIndex }) {
      if (row.id == this.id) {