efficient.js 1.08 KB
/*
 * @Description  :对应的业务的api文件
 * @Autor        : miaofang
 * @LastEditTime : 2023-05-17 10:32:39
 */
import request from "@/utils/request";
let SERVER = window.config ? window.config : JSON.parse(localStorage.getItem('ApiUrl'))

class efficient {
  /*
    获取对应的业务量总数
    startDate:开始日期
    endDate:结束日期
  */
  async getProcessCounts (startDate, endDate, qxdm) {
    return request({
      url: SERVER.SERVERAPI + "/rest/statistics/Efficient/getProcessCounts",
      method: "post",
      params: {
        startDate: startDate,
        endDate: endDate,
        qxdm: qxdm
      },
    });
  }
  /*
    获取各区县业务对应的天数
    recType:业务代码
    startDate:开始日期
    endDate:结束日期
  */
  async getProcessDays (recType, startDate, endDate) {
    return request({
      url: SERVER.SERVERAPI + "/rest/statistics/Efficient/getProcessDays",
      method: "post",
      params: {
        recType: recType,
        startDate: startDate,
        endDate: endDate,
      },
    });
  }
}
export default new efficient();