11
WXL
2024-05-24 139668c8d897c13d8e3bb68882cca47de47106eb
11
已修改5个文件
138 ■■■■ 文件已修改
src/views/login.vue 12 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/views/project/fundstatistics/index.vue 33 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/views/project/indexstatistics/index.vue 10 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/views/project/statistics/caseStatistics/index.vue 4 ●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/views/project/statistics/chargeStatistics/index.vue 79 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/views/login.vue
@@ -157,12 +157,12 @@
    },
    getAuthCode() {
      this.$dingtalk.runtime.permission.requestAuthCode({
        corpId: "dingac30cec5f3570bbea39a90f97fcb1e09",
        corpId: "dingd31f00f4fbc0ff5bf5bf40eda33b7ba0",
        onSuccess: result => {
          // 在这里处理授权成功后的逻辑,result中包含授权码等信息
          this.authCode = result.codde;
          // this.authCode = result.codde;
          this.$message.success("成功获取授权码:" + result.code);
          this.avoidLogin();
          this.avoidLogin(result.code);
        },
        onFail: err => {
          // 在这里处理授权失败后的逻辑
@@ -173,13 +173,13 @@
        }
      });
    },
    avoidLogin() {
    avoidLogin(authCode) {
      this.loading = true;
      this.loginForm.authCode = this.authCode;
      // this.$message.error(authCode, "1号位");
      this.loginForm.authCode = authCode;
      this.$store
        .dispatch("Login", this.loginForm)
        .then(res => {
          this.$message.error(this.$store.state);
          if (this.$store.state.user.code == 200) {
            this.$router.push({ path: this.redirect || "/" }).catch(() => {});
          } else {
src/views/project/fundstatistics/index.vue
@@ -52,7 +52,7 @@
          :data="donationCaseTableData"
        >
          <el-table-column
            label="报告时间"
            label="案例时间"
            align="center"
            prop="reporttime"
            width="150"
@@ -77,15 +77,21 @@
            </template>
          </el-table-column>
          <el-table-column
            label="医疗机构"
            label="专职人员"
            align="center"
            prop="reportername"
            width="100"
          />
          <el-table-column
            label="业务组"
            align="center"
            prop="treatmenthospitalname"
          />
          <el-table-column label="捐献进度" align="center" prop="recordstate">
            <template slot-scope="scope">
              <dict-tag
                :options="dict.type.sys_DonationStatus"
                :value="scope.row.recordstate"
                :options="dict.type.sys_donornode"
                :value="scope.row.workflow"
              />
            </template>
          </el-table-column>
@@ -165,7 +171,7 @@
export default {
  //import引入的组件需要注入到对象中才能使用
  components: {
    FundSummary,
    FundSummary
  },
  dicts: [
    "sys_Organ",
@@ -174,6 +180,7 @@
    "sys_IDType",
    "sys_AgeUnit",
    "sys_DonationStatus",
    "sys_donornode"
  ],
  data() {
    //这里存放数据
@@ -192,18 +199,18 @@
        name: "",
        pageSize: 10,
        name: null,
        donorno: null,
        donorno: null
      },
      curdonorno: null,
      showType: "list",
      curCaseInfo: {
        donorno: null,
        name: null,
        id: null,
        id: null
      },
      headers: {
        Authorization: "Bearer " + getToken()
      },
      }
    };
  },
  //监听属性 类似于data概念
@@ -218,7 +225,7 @@
      if (this.queryParams.recordstate == "") {
        this.queryParams.recordstate = null;
      }
      listDonatebaseinfo(this.queryParams).then((response) => {
      listDonatebaseinfo(this.queryParams).then(response => {
        this.donationCaseTableData = response.rows;
        this.total = response.total;
        this.loading = false;
@@ -248,7 +255,7 @@
    },
    //导出汇总表
    exportSummary(id) {
      exportFundCost(id).then((res) => {
      exportFundCost(id).then(res => {
        var fileUrl = res;
        //获取当前网址
        var urlBase = process.env.VUE_APP_BASE_API;
@@ -272,14 +279,14 @@
            console.log(url);
            const link = document.createElement("a");
            link.href = url;
            const name=fileUrl["downloadName"]
            const name = fileUrl["downloadName"];
            link.setAttribute("download", name); // 替换file.pdf为实际的文件名
            document.body.appendChild(link);
            link.click();
            link.parentNode.removeChild(link);
          });
      });
    },
    }
  },
  //生命周期 - 创建完成(可以访问当前this实例)
  created() {
@@ -293,7 +300,7 @@
  updated() {}, //生命周期 - 更新之后
  beforeDestroy() {}, //生命周期 - 销毁之前
  destroyed() {}, //生命周期 - 销毁完成
  activated() {}, //如果页面有keep-alive缓存功能,这个函数会触发
  activated() {} //如果页面有keep-alive缓存功能,这个函数会触发
};
</script>
<style scoped>
src/views/project/indexstatistics/index.vue
@@ -431,10 +431,10 @@
                >各地区医院案例数据</span
              >
            </el-col>
          </el-row>
          <el-row>
          </el-row>
          <dv-scroll-board
            :config="config"
@@ -631,7 +631,7 @@
      isloading: false,
      maxHeight: 0,
      provinceData: [
        { label: "全部", value: "" },
        { label: "全部地市", value: "" },
        { label: "杭州市", value: "1" },
        { label: "宁波市", value: "2" },
        { label: "温州市", value: "3" },
@@ -676,7 +676,7 @@
          value: 0,
          code: "C22"
        },
        {
          key: "leftRenal",
          name: "左肾",
@@ -1158,7 +1158,7 @@
      listDonatebaseinfo({}).then(res => {
        let list = res.rows;
        let reportlist = [];
        reportlist.push({ reporterno: "", reportername: "全部" });
        reportlist.push({ reporterno: "", reportername: "全部人员" });
        list.forEach(element => {
          reportlist.push({
            reporterno: element.reporterno,
src/views/project/statistics/caseStatistics/index.vue
@@ -398,7 +398,9 @@
      this.form.treatmenthospitalno = "";
      this.queryParams = {};
      this.queryParams = {
        pacasestate: "0"
      };
      this.selecttime = [];
      this.getTimeList();
      this.searchAddress = {
src/views/project/statistics/chargeStatistics/index.vue
@@ -17,19 +17,19 @@
            />
          </el-form-item>
        </el-col>
        <el-col :span="8">
          <el-form-item label="统计类型">
            <el-select
              v-model="queryParams.pachageflag"
              placeholder="请选择案例状态"
        <el-col :span="12">
          <el-form-item label="统计日期">
            <el-date-picker
              style="width: 100%"
              v-model="selecttime"
              type="monthrange"
              range-separator="至"
              start-placeholder="开始月份"
              end-placeholder="结束月份"
              value-format="yyyy-MM-dd"
              @change="getTimeList"
            >
              <el-option
                v-for="item in reportlist"
                :label="item.label"
                :value="item.value"
              >
              </el-option>
            </el-select>
            </el-date-picker>
          </el-form-item>
        </el-col>
      </el-row>
@@ -284,6 +284,61 @@
      this.resetForm("queryForm");
      this.handleQuery();
    },
    getTimeList(e) {
      if (this.selecttime != 0) {
        this.queryParams.pabegtime = this.selecttime[0];
        this.queryParams.paendtime = this.selecttime[1];
        // if (this.queryParams.paendtime == this.queryParams.pabegtime) {
        let num = Number(this.queryParams.paendtime.slice(5, 7));
        if (num < 9) {
          let mon = Number(this.queryParams.paendtime.slice(6, 7));
          this.queryParams.paendtime =
            this.queryParams.paendtime.slice(0, 5) +
            "0" +
            (mon + 1) +
            "-" +
            "01" +
            " " +
            "00" +
            ":" +
            "00" +
            ":" +
            "00";
        }
        // this.queryParams.paendtime=this.queryParams.paendtime.slice(0,5)年
        else if (num >= 10) {
          this.queryParams.paendtime =
            this.queryParams.paendtime.slice(0, 5) +
            (num + 1) +
            "-" +
            "01" +
            " " +
            "00" +
            ":" +
            "00" +
            ":" +
            "00";
        } else {
          this.queryParams.paendtime =
            this.queryParams.paendtime.slice(0, 5) +
            "10" +
            "-" +
            "01" +
            " " +
            "00" +
            ":" +
            "00" +
            ":" +
            "00";
        }
        this.queryParams.pabegtime =
          this.queryParams.pabegtime + " " + "00" + ":" + "00" + ":" + "00";
        // }
      } else {
        // this.queryParams.pabegtime = "1998-01-01 00:00:00";
        // this.queryParams.paendtime = "2998-01-01 00:00:00";
      }
    },
    getSummaries(param) {
      const { columns, data } = param;
      const sums = [];