WXL (wul)
17 小时以前 a9d2b856e0f6be6475319c2dc36bf405c2f908fc
src/views/sfstatistics/percentage/index.vue
@@ -14,6 +14,7 @@
          <el-select
            v-model="queryParams.statisticaltype"
            placeholder="请选择统计类型"
            @change="handleQuery"
          >
            <el-option
              v-for="item in Statisticallist"
@@ -57,8 +58,7 @@
        <el-form-item label="服务类型" prop="userName">
          <el-select
            v-model="queryParams.serviceType"
            multiple
            v-model="serviceTypeSingle"
            placeholder="请选择"
          >
            <el-option
@@ -254,8 +254,8 @@
      options: this.$store.getters.tasktypes,
      queryParams: {
        serviceType: [2],
        dateRange: this.getLastMonthRange(),
        dateRangecy: [],
        dateRange: [],
        dateRangecy: this.getLastMonthRange(),
        statisticaltype:
          localStorage.getItem("orgname") == "缙云县人民医院" ||
          localStorage.getItem("orgname") == "景宁畲族自治县人民医院"
@@ -317,6 +317,18 @@
        pageSize: 10,
      },
    };
  },
  computed: {
    // 服务类型单选:UI 绑定单值,内部仍以数组形式传给后端
    serviceTypeSingle: {
      get() {
        const st = this.queryParams.serviceType;
        return Array.isArray(st) ? st[0] : st;
      },
      set(val) {
        this.queryParams.serviceType = val == null || val === "" ? [] : [val];
      },
    },
  },
  created() {
    this.getDeptTree();
@@ -395,6 +407,9 @@
    },
    handleQuery() {
      if (!this.queryParams.dateRange) this.queryParams.dateRange = [];
      if (!this.queryParams.dateRangecy) this.queryParams.dateRangecy = [];
      this.queryParams.startTime = this.parseTime(
        this.queryParams.dateRange[0]
      );
@@ -518,6 +533,8 @@
    SeedetailsgGo(row) {
      this.SeedetailsVisible = false;
      this.infotitleVisible = false;
      let type = "";
      if (row.preachformson && row.preachformson.includes("3")) {
        type = 1;