From 9fc13fbe340eaf106864b1aef8f08e1ede9235d6 Mon Sep 17 00:00:00 2001 From: "pref_mail@163.com" Date: Wed, 27 Nov 2024 17:46:47 +0800 Subject: [PATCH] =?UTF-8?q?=E6=96=B0=E5=A2=9E=E8=AE=A1=E7=AE=97=E8=B4=B9?= =?UTF-8?q?=E7=94=A8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/api/finance/ReconciliationDepositSlip.js | 13 +++++++++++++ src/views/finance/ReconciliationDepositSlip.vue | 4 +++- 2 files changed, 16 insertions(+), 1 deletion(-) 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);