finance.js 1.87 KB
import request from "./request"

// const path = 'dj.api.'
const path2 = "dj.api.smartcarlife."

export function getSummary(data) {
  data.method = `${path2}goodsOrderProfitAllocation.statistics`
  return request(data)
}

// 超管-查询列表
export function getList(data) {
  data.method = `${path2}goodsOrderProfitAllocation.page.byOrder`
  return request(data)
}

// 园区店-查询列表
export function getYqList(data) {
  data.method = `${path2}goodsOrderProfitAllocation.page.bySubOrder`
  return request(data)
}

export function getListTotal(data) {
  data.method = `${path2}goodsOrderProfitAllocation.page.count`
  return request(data)
}

export function exportFile(data) {
  data.method = `${path2}goodsOrderProfitAllocation.export`
  return request(data)
}

// 服务商接口
// 服务商和园区店绑定关系
export function getServicerefApi(data) {
  data.method = `${path2}get.service.ref`
  return request(data)
}

/** 服务商查询 */
export function getServiceListApi(data) {
  data.method = `${path2}goodsOrderProfitAllocation.page.bySubOrder`
  return request(data)
}

export function getServiceSummaryApi(data) {
  data.method = `${path2}goodsOrderProfitAllocation.count.service.merchant`
  return request(data, "post")
}

export function exportAccountStatement(data) {
  data.method = `${path2}goodsOrderProfitAllocation.exportAccountStatement`
  return request(data, "post")
}

// 财务列表主订单明细
export function mainOrderDetail(data) {
  data.method = `${path2}goodsOrderProfitAllocation.mainOrder.detail`
  return request(data)
}

// 财务列表子订单明细
export function subOrderDetail(data) {
  data.method = `${path2}goodsOrderProfitAllocation.subOrder.detail`
  return request(data)
}

// 根据4s店获取服务商列表
export function queryServiceRefByShop() {
  data.method = `${path2}scenemerchantref.queryServiceRefByShop`
  return request(data, "post")
}