liusheng
2026-10-30 dfd32b299236e015fe80e10fae01548288d91000
src/views/followvisit/discharge/index.vue
@@ -1249,9 +1249,12 @@
            { value: 1, label: "被领取" },
            { value: 2, label: "待发送" },
            { value: 3, label: "已发送" },
            { value: 5, label: "发送失败" },
            { value: 7, label: "超时" },
          ],
        },
        {
          value: 40, // 一级:发送失败(单独列出,方便直接筛)
          label: "发送失败",
        },
        {
          value: 20, // 一级:已完成
@@ -1303,6 +1306,10 @@
        },
        {
          name: "待随访",
          value: 0,
        },
        {
          name: "发送失败",
          value: 0,
        },
        {
@@ -1816,9 +1823,9 @@
        this.cardlist[2].value = response.rows[0].ysf;
        this.ycvalue = Number(response.rows[0].yc) || 0;
        this.jgvalue = response.rows[0].jg;
        this.cardlist[3].value = response.rows[0].fssb;
        this.cardlist[4].value = response.rows[0].dsf;
        // this.cardlist[5].value = response.rows[0].yfs2;
        this.cardlist[3].value = response.rows[0].dsf;
        this.cardlist[4].value = response.rows[0].fssb;
        this.cardlist[5].value = response.rows[0].ywc;
        this.yfsvalue = response.rows[0].yfs;
        this.loading = false;
        this.userList.forEach((item) => {
@@ -2060,6 +2067,11 @@
            break;
        }
        this.topqueryParams.sendstate = null;
        // 一级「发送失败」:按状态 5 直接过滤(不等同于待随访)
        if (value === 40) {
          this.topqueryParams.sendstateView = null;
          this.topqueryParams.sendstate = 5;
        }
      } else {
        // 选中了二级(具体状态)
        this.topqueryParams.sendstateView = null;
@@ -2438,11 +2450,16 @@
      try {
        const res = await getTaskservelist(query);
        const row = (res && res.rows && res.rows[0]) || {};
        // 接口没返回统计行时保持原值,避免一次异常把卡片全刷成 0
        if (!res || !res.rows || !res.rows.length) {
          return;
        }
        this.cardlist[0].value = Number(row.wxsf || 0) + Number(row.xsf || 0);
        this.cardlist[1].value = Number(row.wxsf) || 0;
        this.cardlist[2].value = Number(row.xsf) || 0;
        this.cardlist[3].value = Number(row.dsf) || 0;
        this.cardlist[4].value = Number(row.ywc) || 0;
        this.cardlist[4].value = Number(row.fssb) || 0;
        this.cardlist[5].value = Number(row.ywc) || 0;
        this.ycvalue = Number(row.yc) || 0;
        this.jgvalue = Number(row.jg) || 0;
      } catch (e) {
@@ -2472,6 +2489,8 @@
        query.sendstateView = 3;
      } else if (name === "待随访") {
        query.sendstateView = 1;
      } else if (name === "发送失败") {
        query.sendstates = [5];
      } else if (name === "已完成") {
        query.sendstateView = 2;
      } else if (name === "需随访") {