import request from '@/utils/request';
import qs from 'qs';
import { UPCLOUD_RDC_TMS_BMS_SERVICE } from '@/config/serviceSettings.js';
const serviceName = UPCLOUD_RDC_TMS_BMS_SERVICE;

// 主表地址
export const listRemoteUrl = {
  url: serviceName + '/bmsLoadingBill/pay/findByCondition',
  method: 'post',
}

// 明细地址
export const detailsListRemoteUrl = {
  url: serviceName + '/bmsLoadingBill/pay/getShipBill',
  method: 'post',
}

// 查看
export const View = data => {
  return request({
    url: serviceName + "/bmsLoadingBill/pay/detailById",
    method: 'post',
    params: data
  })
};

// 派车单核算
export const Calculate = data => {
  return request({
    url: serviceName + "/bmsLoadingBill/pay/calculate",
    method: 'post',
    data
  })
};

// 派车单提交
export const Submit = data => {
  return request({
    url: serviceName + "/bmsLoadingBill/pay/submit",
    method: 'post',
    data
  })
};

// 派车单更新
export const Update = data => {
  return request({
    url: serviceName + "/bmsLoadingBill/pay/update",
    method: 'post',
    data
  })
};