diff --git a/src/api/finance/ReconciliationDepositSlip.js b/src/api/finance/ReconciliationDepositSlip.js index b21b22f8..b2bab8cd 100644 --- a/src/api/finance/ReconciliationDepositSlip.js +++ b/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 diff --git a/src/views/finance/ReconciliationDepositSlip.vue b/src/views/finance/ReconciliationDepositSlip.vue index a6ff0f21..03bd8531 100644 --- a/src/views/finance/ReconciliationDepositSlip.vue +++ b/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);