Browse Source

新增计算费用

dev-xx
pref_mail@163.com 2 months ago
parent
commit
9fc13fbe34
  1. 13
      src/api/finance/ReconciliationDepositSlip.js
  2. 4
      src/views/finance/ReconciliationDepositSlip.vue

13
src/api/finance/ReconciliationDepositSlip.js

@ -50,6 +50,19 @@ export const postReal = data => {
});
};
/**
* toB 计算仓储&配送费用
* @param {*} data
* @returns
*/
export const postCalculateRealCostByWaybillId = data => {
return request({
url: `/api/logpm-statisticsdata/merchantStatistics/calculateRealCostByWaybillId/${data}`,
method: 'patch',
});
};
/**
* 生成对账单
* @param {*} data

4
src/views/finance/ReconciliationDepositSlip.vue

@ -226,6 +226,7 @@ import {
postReal,
postOrderInfoListExport,
postCreateReconciliationOrder,
postCalculateRealCostByWaybillId
} from '@/api/finance/ReconciliationDepositSlip';
import {
downloadXls,
@ -643,7 +644,8 @@ const handleComputedPrice = ({ row }) => {
try {
details.loadingObj.pageLoading = true;
const res = await postReal(row.orderInfoId);
// const res = await postReal(row.orderInfoId);
const res = await postCalculateRealCostByWaybillId(row.waybillId);
const { code, msg } = res.data;
if (code !== 200) return msg && ElMessage.warning(msg);

Loading…
Cancel
Save