WXL (wul)
6 天以前 a5cba9ab040f6f97558046885dce3017f9bab7e9
src/views/followvisit/record/detailpage/index.vue
@@ -136,6 +136,18 @@
          >
          </el-table-column>
          <el-table-column
            label="应随访日期"
            width="146"
            align="center"
            key="visitTime"
            prop="visitTime"
            :render-header="Tooltipy"
          >
            <template slot-scope="scope">
              <span>{{ formatTime(scope.row.visitTime) }}</span>
            </template></el-table-column
          >
          <el-table-column
            v-if="orgname == '南华大学附属第一医院'"
            label="入院日期"
            width="200"
@@ -365,7 +377,12 @@
                  <div class="title">
                    {{ taskname ? taskname : "问卷" }}
                    <span style="margin-left: 50px">
                      <el-button type="primary" round @click="smsSubTask" v-if="orgname != '省立同德翠苑院区'">
                      <el-button
                        type="primary"
                        round
                        @click="smsSubTask"
                        v-if="orgname != '省立同德翠苑院区'"
                      >
                        问卷短信推送
                      </el-button>
                    </span>
@@ -585,10 +602,10 @@
                    v-if="Voicetype"
                    type="primary"
                    @click="yuyingetdetail"
                    >保存服务详情</el-button
                    >保存问卷详情</el-button
                  >
                  <el-button v-else type="primary" @click="getdetail"
                    >保存服务详情</el-button
                    >保存问卷详情</el-button
                  >
                </div>
              </el-tab-pane>
@@ -696,6 +713,7 @@
                  v-model="selectedTag"
                  placeholder="请选择异常状态"
                  clearable
                  @change="exceptionHandling"
                  style="width: 150px; margin-right: 10px"
                >
                  <el-option
@@ -953,7 +971,12 @@
                  <el-button plain type="info" @click="Editsingletaskson('5')">
                    人工随访
                  </el-button>
                  <el-button type="primary" round @click="sendAgainmsg" v-if="orgname != '省立同德翠苑院区'">
                  <el-button
                    type="primary"
                    round
                    @click="sendAgainmsg"
                    v-if="orgname != '省立同德翠苑院区'"
                  >
                    短信发送
                  </el-button>
                </div>
@@ -1099,22 +1122,46 @@
    <el-collapse v-model="activeNames" @change="handleCollapseChange">
      <el-collapse-item title="基础服务信息" name="basic">
        <el-form-item label="任务名称">
          <el-input style="width: 100%" disabled v-model="form.taskName"></el-input>
              <el-input
                style="width: 100%"
                disabled
                v-model="form.taskName"
              ></el-input>
        </el-form-item>
        <el-form-item label="患者名称">
          <el-input style="width: 100%" disabled v-model="form.sendname"></el-input>
              <el-input
                style="width: 100%"
                disabled
                v-model="form.sendname"
              ></el-input>
        </el-form-item>
        <el-form-item label="年龄">
          <el-input style="width: 100%" disabled v-model="form.age"></el-input>
              <el-input
                style="width: 100%"
                disabled
                v-model="form.age"
              ></el-input>
        </el-form-item>
        <el-form-item label="科室">
          <el-input style="width: 100%" disabled v-model="form.deptname"></el-input>
              <el-input
                style="width: 100%"
                disabled
                v-model="form.deptname"
              ></el-input>
        </el-form-item>
        <el-form-item label="病区">
          <el-input style="width: 100%" disabled v-model="form.leavehospitaldistrictname"></el-input>
              <el-input
                style="width: 100%"
                disabled
                v-model="form.leavehospitaldistrictname"
              ></el-input>
        </el-form-item>
        <el-form-item label="出院时间">
          <el-input style="width: 100%" disabled v-model="form.endtime"></el-input>
              <el-input
                style="width: 100%"
                disabled
                v-model="form.endtime"
              ></el-input>
        </el-form-item>
      </el-collapse-item>
@@ -1221,7 +1268,9 @@
    </el-collapse>
  </el-form>
  <div slot="footer" class="dialog-footer">
    <el-button type="warning" @click="dialogFormVisible = false">取 消</el-button>
        <el-button type="warning" @click="dialogFormVisible = false"
          >取 消</el-button
        >
    <el-button type="primary" @click="setupsubtask">确认创建服务</el-button>
  </div>
</el-dialog>
@@ -1361,7 +1410,7 @@
    };
    return {
      visitAgain: 1,
      activeNames: ['next'], // 只展开"下次随访",其他都折叠
      activeNames: ["next"], // 只展开"下次随访",其他都折叠
      userid: "",
      defaultKey: false, //是否可默认填报
      currentPhoneNumber: "",
@@ -1572,6 +1621,10 @@
          value: "一年后",
          label: "一年后",
        },
        {
          value: "五年后",
          label: "五年后",
        },
      ],
      statusTimer: null,
      userform: {},
@@ -1635,7 +1688,15 @@
    console.log(store.getters.visitAgain);
    this.orgname = localStorage.getItem("orgname");
    if (this.orgname == "省立同德翠苑院区") {
    console.log(localStorage.getItem("orgname"));
    if (
      this.orgname == "省立同德翠苑院区" ||
      this.orgname == "省立同德之江院区" ||
      this.orgname == "省立同德闲林院区" ||
      this.orgname == "省立同德青山湖院区" ||
      this.orgname == "省立同德天目山路院区"
    ) {
      this.showContinuationCareBtn = true;
    }
@@ -1709,7 +1770,20 @@
      }
    },
    handleCollapseChange(val) {
    console.log('折叠面板状态变化:', val);
      console.log("折叠面板状态变化:", val);
    },
    Tooltipy(h, { column }) {
      return h(
        "el-tooltip",
        {
          props: {
            content: "任务配置多种补偿类型时,最新执行类型的应随访时间",
            placement: "top",
            effect: "dark",
          },
        },
        [h("span", column.label)]
      );
  },
    getconfigKey() {
      getconfigKey("default.value.icon").then((res) => {
@@ -1888,6 +1962,8 @@
        followupDate.setMonth(dischargeDate.getMonth() + 6);
      } else if (value.includes("一年后") || value.includes("12个月后")) {
        followupDate.setFullYear(dischargeDate.getFullYear() + 1);
      } else if (value.includes("五年后")) {
        followupDate.setFullYear(dischargeDate.getFullYear() + 5);
      }
      if (followupDate < now) {
@@ -2092,6 +2168,8 @@
            path: "/followvisit/discharge",
          });
        }
      } else {
        location.reload();
      }
    },
    // 电话============================
@@ -2391,6 +2469,8 @@
          this.form = res.rows[0].serviceSubtaskList.find(
            (item) => item.id == this.id
          );
          this.form.taskSituation = String(this.form.taskSituation);
          console.log(this.form.templatename, "templatename");
          this.form.remark = this.form.remark || "";
@@ -2455,7 +2535,12 @@
          this.$modal.msgError("发送失败");
        });
    },
    Editsingletaskson(son) {
    // 异常处理
    exceptionHandling(sid) {
      this.Editsingletaskson(1, sid);
    },
    // 存储意见自动存储
    Editsingletaskson(son, sid) {
      let objson = {};
      getTaskservelist({
        patid: this.patid,
@@ -2463,13 +2548,14 @@
      }).then((res) => {
        if (res.code == 200) {
          objson = res.rows[0].serviceSubtaskList[0];
          objson.suggest = son;
          objson.suggest = sid ? this.form.suggest : son;
          objson.excep = sid ? sid : 0;
          objson.remark = this.form.remark;
          objson.sendstate = this.serviceStates;
          objson.taskSituation = this.form.taskSituation;
          Editsingletaskson(objson).then((res) => {
            if (res.code) {
              this.$modal.msgSuccess("服务记录成功");
              this.$modal.msgSuccess("服务记录更新成功");
              this.getTaskservelist();
            }
          });
@@ -2647,7 +2733,7 @@
      }
      let selectedOptionObj = null;
      if (this.Voicetype) {
        console.log('Voicetype');
        console.log("Voicetype");
        selectedOptionObj = options.find(
          (item) => item.targetvalue == selectedOption
@@ -2978,7 +3064,7 @@
  .call-action {
    width: 60%;
    min-width: 0;
    height: 100%;
    // height: 100%;
    /* 确保高度继承 */
  }
}
@@ -3250,7 +3336,7 @@
.CONTENT {
  padding: 10px;
  height: 100%;
  min-height: 738px;
  // min-height: 938px;
  /* 设置最小高度 */
  .title {
@@ -3266,7 +3352,7 @@
  padding: 30px;
  border: 1px solid #dcdfe6;
  box-shadow: 0 2px 4px 0 rgba(0, 0, 0, 0.12), 0 0 6px 0 rgba(0, 0, 0, 0.04);
  max-height: 716px;
  max-height: 916px;
  /* 设置最大高度 */
  overflow-y: auto;
  /* 内容超过高度时显示滚动条 */
@@ -4059,5 +4145,4 @@
  padding: 20px 15px;
  background-color: #fff;
}
</style>