business.js 1 KB
/*
 * @Description: 统计率
 * @Autor: renchao
 * @LastEditTime: 2023-03-21 16:25:26
 */
/* 引入请求文件 */
import request from '@/utils/request'
/* 引入配置文件 */
let SERVER = window.config ? window.config : JSON.parse(localStorage.getItem('ApiUrl'))
class business {
  /**
   * @description: 成功率统计
   * @param {*} startDate
   * @param {*} endDate
   * @param {*} qxdm
   * @author: renchao
   */
  async getSuucessRate (startDate, endDate, qxdm) {
    return request({
      url: SERVER.SERVERAPI + '/rest/statistics/Business/sf',
      method: 'get',
      params: {
        startDate: startDate,
        endDate: endDate,
        qxdm: qxdm
      }
    })
  }

  async diya (data) {
    return request({
      url: SERVER.SERVERAPI + '/rest/statistics/Business/diya',
      method: 'post',
      data
    })
  }

  async djfcx (data) {
    return request({
      url: SERVER.SERVERAPI + '/rest/statistics/Business/djfcx',
      method: 'post',
      data
    })
  }
}
export default new business()