5fcb82c0c0
2、新增收付款模块
59 lines
1.8 KiB
JavaScript
59 lines
1.8 KiB
JavaScript
import request from '@/axios';
|
|
|
|
const baseUrl = '/blade-transport/receivable-payable-detail';
|
|
|
|
export const getList = (current, size, params) =>
|
|
request({ url: `${baseUrl}/list`, method: 'get', params: { current, size, ...params } });
|
|
|
|
export const getFeeDetail = id =>
|
|
request({ url: `${baseUrl}/fee-detail`, method: 'get', params: { id } });
|
|
|
|
export const getChangeRecords = (current, size, params) =>
|
|
request({
|
|
url: `${baseUrl}/change-records`,
|
|
method: 'get',
|
|
params: { current, size, ...params },
|
|
});
|
|
|
|
export const updateFee = data => request({ url: `${baseUrl}/update-fee`, method: 'post', data });
|
|
|
|
export const getUpdateFeeContracts = params =>
|
|
request({ url: `${baseUrl}/update-fee-contracts`, method: 'get', params });
|
|
|
|
export const adjustFee = data => request({ url: `${baseUrl}/adjust-fee`, method: 'post', data });
|
|
|
|
export const calculateAdjustedFee = data =>
|
|
request({ url: `${baseUrl}/calculate-adjusted-fee`, method: 'post', data });
|
|
|
|
export const getTransferCandidates = (current, size, params) =>
|
|
request({
|
|
url: `${baseUrl}/transfer-candidates`,
|
|
method: 'get',
|
|
params: { current, size, ...params },
|
|
});
|
|
|
|
export const getGenerateWaybills = (current, size, params) =>
|
|
request({
|
|
url: `${baseUrl}/generate-waybills`,
|
|
method: 'get',
|
|
params: { current, size, ...params },
|
|
});
|
|
|
|
export const getGeneratePreview = (current, size, params) =>
|
|
request({
|
|
url: `${baseUrl}/generate-preview`,
|
|
method: 'get',
|
|
params: { current, size, ...params },
|
|
});
|
|
|
|
export const generateFee = data =>
|
|
request({ url: `${baseUrl}/generate-fee`, method: 'post', data });
|
|
|
|
export const exportDetail = params =>
|
|
request({
|
|
url: `${baseUrl}/export-receivable-payable-detail`,
|
|
method: 'get',
|
|
params,
|
|
responseType: 'blob',
|
|
});
|