From 4d98e54b8ece00391e8ab046d0474ef92edaefbd Mon Sep 17 00:00:00 2001 From: zm2000 <18386612143@163.com> Date: Fri, 3 Jul 2026 17:32:00 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E8=AE=A2=E5=8D=95=E5=A4=8D?= =?UTF-8?q?=E6=A0=B8=E7=9A=84=E7=A7=B0=E9=87=8D=E6=8E=A5=E5=8F=A3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- pages/work/order/order-review.vue | 33 +++++++++++++++++++++++-------- 1 file changed, 25 insertions(+), 8 deletions(-) diff --git a/pages/work/order/order-review.vue b/pages/work/order/order-review.vue index 7b80076..0c88c36 100644 --- a/pages/work/order/order-review.vue +++ b/pages/work/order/order-review.vue @@ -2211,17 +2211,34 @@ import ReviewDetail from './order-review-comps/ReviewDetail.vue'; return; } const weighKg = this.weighWeight / 1000; + const listType = String(this.detailInfo?.listType || '').trim(); const orderId = Number(this.detailInfo?.orderId || this.detailInfo?.recordId || 0); - if (!orderId) { - uni.showToast({ title: '缺少订单ID', icon: 'none' }); - return; - } + const waybillNo = String(this.detailInfo?.waybillNo || '').trim(); uni.showLoading({ title: '提交称重中...' }); try { - await this.$http('order.recheckOrder.updateExpressWeighingWeight', { - order_id: orderId, - weighing_weight: weighKg - }); + // 团购模式使用运单号模式(order_id=0 + waybill_code) + if (listType === 'group') { + if (!waybillNo) { + uni.showToast({ title: '缺少运单号', icon: 'none' }); + uni.hideLoading(); + return; + } + await this.$http('order.recheckOrder.updateExpressWeighingWeight', { + order_id: 0, + waybill_code: waybillNo, + weighing_weight: weighKg + }); + } else { + if (!orderId) { + uni.showToast({ title: '缺少订单ID', icon: 'none' }); + uni.hideLoading(); + return; + } + await this.$http('order.recheckOrder.updateExpressWeighingWeight', { + order_id: orderId, + weighing_weight: weighKg + }); + } uni.hideLoading(); uni.showToast({ title: '称重完成', icon: 'success' }); this.showWeighPopup = false;