WXL (wul)
2 天以前 c899dff1fce7f8054008cd9887a9729cdffd88cb
src/views/followvisit/discharge/index.vue
@@ -47,6 +47,17 @@
            end-placeholder="结束日期"
          ></el-date-picker>
        </el-form-item>
        <el-form-item label="随访完成时间">
          <el-date-picker
            v-model="dateRangefts"
            style="width: 240px"
            value-format="yyyy-MM-dd"
            type="daterange"
            range-separator="-"
            start-placeholder="开始日期"
            end-placeholder="结束日期"
          ></el-date-picker>
        </el-form-item>
        <el-form-item label="患者姓名" prop="sendname">
          <el-input
@@ -1214,12 +1225,15 @@
export default {
  name: "Discharge",
  dicts: ["sys_normal_disable", "sys_user_sex", "sys_yujing", "sys_suggest"],
  // 页面只用到 sys_suggest,去掉未使用的字典可少发 3 个请求
  dicts: ["sys_suggest"],
  components: { Treeselect, StatisticsCards },
  data() {
    return {
      // 遮罩层
      loading: true,
      // 首次挂载时 created 已经查过,跳过紧接着触发的 activated,避免重复请求
      activatedOnce: false,
      // 选中数组
      ids: [],
      // 非单个禁用
@@ -1245,6 +1259,7 @@
      // 日期范围
      dateRange: [],
      dateRangefs: [],
      dateRangefts: [],
      // 岗位选项
      postOptions: [],
      ruleForm: {
@@ -1640,6 +1655,11 @@
    this.taskQueryReady = true;
  },
  activated() {
    // 首次挂载时 created 已经请求过,避免重复请求
    if (!this.activatedOnce) {
      this.activatedOnce = true;
      return;
    }
    // 从别的标签页切回来时,以表单条件为准,丢弃卡片带来的一次性筛选
    this.cardFilter = null;
    this.errtype = this.$route.query.errtype;
@@ -1701,7 +1721,8 @@
      try {
        // 当前执行方式为多选,需转成逗号分隔字符串(如 1,2,5)
        const params = { ...this.topqueryParams };
        // 叠加顶部卡片点击带来的临时筛选(cardFilter)
        const params = this.applyCardFilter({ ...this.topqueryParams });
        if (Array.isArray(params.currentPreachforms)) {
          params.currentPreachforms = params.currentPreachforms.join(",");
        }
@@ -1738,13 +1759,10 @@
          if (item.endtime) {
            item.endDay = this.daysBetween(item.endtime);
          }
          console.log(item, "3");
          if (item.preachform) {
            item.preachformson = item.preachform;
            idArray = item.preachform.split(",");
            console.log(this.checkboxlist);
            console.log(idArray);
            item.preachform = idArray.map((value) => {
              const item = this.checkboxlist.find(
@@ -1979,6 +1997,8 @@
        this.topqueryParams.endOutHospTime = this.dateRange[1];
        this.topqueryParams.startSendDateTime = this.dateRangefs[0];
        this.topqueryParams.endSendDateTime = this.dateRangefs[1];
         this.topqueryParams.finishtimeStart = this.dateRangefts[0];
        this.topqueryParams.finishtimeEnd = this.dateRangefts[1];
      }
      this.getList(refresh);
    },
@@ -2163,6 +2183,7 @@
    resetQuery() {
      this.dateRange = [];
      this.dateRangefs = [];
      this.dateRangefts = [];
      this.serviceStatusValue = 10;
      this.lastScopeType = 3;
      this.topqueryParams = {
@@ -2185,6 +2206,7 @@
    resetQuerykj() {
      this.dateRange = [];
      this.dateRangefs = [];
      this.dateRangefts = [];
      this.serviceStatusValue = null;
      this.lastScopeType = 3;
      this.topqueryParams = {