chargeRecord.js 1.89 KB
Newer Older
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98
import request from '@/utils/request'

// 查询充装记录列表
export function listRecord(query) {
  return request({
    url: '/charge/record/list',
    method: 'get',
    params: query
  })
}

// 查询充装记录详细
export function getRecord(chargeRecordId) {
  return request({
    url: '/charge/record/' + chargeRecordId,
    method: 'get'
  })
}

// 新增充装记录
export function addRecord(data) {
  return request({
    url: '/charge/record',
    method: 'post',
    data: data
  })
}

// 修改充装记录
export function updateRecord(data) {
  return request({
    url: '/charge/record',
    method: 'put',
    data: data
  })
}

// 删除充装记录
export function delRecord(chargeRecordId) {
  return request({
    url: '/charge/record/' + chargeRecordId,
    method: 'delete'
  })
}

// 导出充装记录
export function exportRecord(query) {
  return request({
    url: '/charge/record/export',
    method: 'get',
    params: query
  })
}

// 下载用户导入模板
export function importTemplate() {
  return request({
    url: '/charge/record/importTemplate',
    method: 'get'
  })
}


// 充装储配站统计
export function airChargeStationStatistics(query) {
  return request({
    url: '/charge/record/airChargeStationStatistics',
    method: 'get',
    params: query
  })
}

// 充装储配站统计导出
export function airChargeStationStatisticExport(query) {
  return request({
    url: '/charge/record/airChargeStationStatisticExport',
    method: 'get',
    params: query
  })
}

// 充装人员统计
export function airChargeOperatorStatistics(query) {
  return request({
    url: '/charge/record/airChargeOperatorStatistics',
    method: 'get',
    params: query
  })
}

// 充装人员统计导出
export function airChargeOperatorStatisticsExport(query) {
  return request({
    url: '/charge/record/airChargeOperatorStatisticsExport',
    method: 'get',
    params: query
  })
}