WXL (wul)
2 天以前 7c71fcb61dd0bfc6a179a973f9cab5ef979ad5f2
src/views/followvisit/record/detailpage/index.vue
@@ -1017,14 +1017,14 @@
            </el-form-item>
          </el-col>
        </el-row>
        <el-form-item label="随访方式" prop="resource">
        <el-form-item label="随访类型" prop="resource">
          <el-radio-group v-model="form.resource">
            <el-radio label="1">本病区随访</el-radio>
            <el-radio label="2">随访中心随访</el-radio>
          </el-radio-group>
        </el-form-item>
        <el-form-item label="随访记录">
        <el-form-item label="随访记录" :required="form.resource == '2'">
          <el-input type="textarea" v-model="form.remark"></el-input>
        </el-form-item>
      </el-form>
@@ -1439,7 +1439,34 @@
    this.visitCount = this.$route.query.visitCount;
    this.serviceType = this.$route.query.serviceType;
    this.orgname = localStorage.getItem("orgname");
    if (this.orgname == "缙云县中医医院") {
      this.options = [
        {
          value: "半个月后",
          label: "半个月后",
        },
        {
          value: "一个月后",
          label: "一个月后",
        },
        {
          value: "两个月后",
          label: "两个月后",
        },
        {
          value: "三个月后",
          label: "三个月后",
        },
        {
          value: "六个月后",
          label: "六个月后",
        },
        {
          value: "12个月后",
          label: "12个月后",
        },
      ];
    }
    this.getTaskservelist();
  },
  mounted() {
@@ -1500,16 +1527,16 @@
      }).then((res) => {
        if (res.code === 200) {
          // 针对再次随访服务进行删除结果赋值
          if (this.again && res.data.upScriptResult) {
            res.data.upScriptResult.forEach((itemA) => {
              const itemB = res.data.scriptResult.find(
                (item) => item.scriptContent === itemA.scriptContent
              );
              if (itemB) {
                itemB.scriptResult = itemA.scriptResult;
              }
            });
          }
          // if (this.again && res.data.upScriptResult) {
          //   res.data.upScriptResult.forEach((itemA) => {
          //     const itemB = res.data.scriptResult.find(
          //       (item) => item.scriptContent === itemA.scriptContent
          //     );
          //     if (itemB) {
          //       itemB.scriptResult = itemA.scriptResult;
          //     }
          //   });
          // }
          this.tableDatatop = res.data.scriptResult;
          this.tableDatatop.forEach((item) => {
@@ -1579,15 +1606,17 @@
      // 根据选择的随访方式计算随访日期
      if (value.includes("七天后")) {
        followupDate.setDate(dischargeDate.getDate() + 7);
      } else if (value.includes("15天后")) {
      } else if (value.includes("15天后") || value.includes("半个月后")) {
        followupDate.setDate(dischargeDate.getDate() + 15);
      } else if (value.includes("一个月后")) {
        followupDate.setMonth(dischargeDate.getMonth() + 1);
      } else if (value.includes("两个月后")) {
        followupDate.setMonth(dischargeDate.getMonth() + 2);
      } else if (value.includes("三个月后")) {
        followupDate.setMonth(dischargeDate.getMonth() + 3);
      } else if (value.includes("六个月后")) {
        followupDate.setMonth(dischargeDate.getMonth() + 6);
      } else if (value.includes("一年后")) {
      } else if (value.includes("一年后") || value.includes("12个月后")) {
        followupDate.setFullYear(dischargeDate.getFullYear() + 1);
      }
@@ -1732,7 +1761,10 @@
            }
          });
          this.Editsingletasksonyic(6);
          if (this.visitCount != 1) {
          const orgName = localStorage.getItem("orgname");
          console.log(orgName, "orgName");
          if (this.form.isVisitAgain != 1 || orgName == "丽水市中医院") {
            this.Torouter();
            return;
          }
@@ -1917,7 +1949,10 @@
        param2: this.patid,
        subId: this.id,
      };
      if (this.visitCount != 1) {
      const orgName = localStorage.getItem("orgname");
      console.log(orgName, "orgName");
      if (this.form.isVisitAgain != 1 || orgName == "丽水市中医院") {
        this.Torouter();
        return;
      }
@@ -2137,6 +2172,10 @@
                this.formtidy();
                this.dialogFormVisible = true;
              });
          } else {
            document.querySelector("#app").scrollTo(0, 0);
            this.formtidy();
            this.dialogFormVisible = true;
          }
        } else {
          document.querySelector("#app").scrollTo(0, 0);
@@ -2345,6 +2384,10 @@
            this.$message.error("随访时间不能小于当前时间");
            return false;
          }
          if (this.form.resource == "2" && !this.form.remark) {
            this.$message.error("当前选择为随访中心随访需输入随访记录");
            return false;
          }
          this.form.remark =
            this.form.remark + "【" + this.getCurrentTime() + "】";
          let form = structuredClone(this.form);