From 3d54e7ce31291230be253a52209f6a00c21f1449 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=A4=A7=E5=96=B5=E5=92=AA?= <15233722133@163.com> Date: Thu, 6 Aug 2026 17:57:52 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20=E5=BE=85=E6=94=B6=E8=B4=A7=E3=80=81?= =?UTF-8?q?=E5=BE=85=E5=8F=91=E8=B4=A7=E6=B7=BB=E5=8A=A015=EF=BC=88?= =?UTF-8?q?=E9=83=A8=E5=88=86=E5=8F=91=E8=B4=A7=E7=8A=B6=E6=80=81=EF=BC=89?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- pages/order/list.vue | 28 ++++++++++++++++++++++++++-- sheep/hooks/useGoods.js | 6 +++--- 2 files changed, 29 insertions(+), 5 deletions(-) diff --git a/pages/order/list.vue b/pages/order/list.vue index c5a005a..22233a7 100644 --- a/pages/order/list.vue +++ b/pages/order/list.vue @@ -142,10 +142,34 @@ }, ]; let dataList = ref([]); + const mergeAiStatusValue = (baseValue, extraList = []) => { + const set = new Set(); + String(baseValue || '') + .split(',') + .map((s) => s.trim()) + .filter(Boolean) + .forEach((s) => set.add(s)); + (Array.isArray(extraList) ? extraList : []) + .map((s) => String(s).trim()) + .filter(Boolean) + .forEach((s) => set.add(s)); + return Array.from(set).join(','); + }; async function getData(mescroll) { let code = null; dataList.value = []; - const status = tabMaps?.[mescroll?.dataObj?.i]?.value; + const tab = tabMaps?.[mescroll?.dataObj?.i] || null; + const tabStatusValue = tab?.value; + const isAiStore = state.currentType === 1; + let status = tabStatusValue; + if (isAiStore) { + const tabId = String(tab?.id); + if (tabId === '10') { + status = mergeAiStatusValue(tabStatusValue, ['10', '15']); + } else if (tabId === '2') { + status = mergeAiStatusValue(tabStatusValue, ['15', '20']); + } + } const obj = { pageNo: mescroll.num, pageSize: mescroll.size, @@ -155,7 +179,7 @@ if (!obj.status && obj.status !== 0) delete obj.status; if (!obj.keyWord) delete obj.keyWord; - const isAfterSaleTab = String(mescroll?.dataObj?.status) === '50,60'; + const isAfterSaleTab = String(tab?.id) === '4'; if (state.currentType === 0 && isAfterSaleTab) { const res = await AfterSaleApi.getAfterSalePage(obj); code = res.code; diff --git a/sheep/hooks/useGoods.js b/sheep/hooks/useGoods.js index 684aafb..bb6dc2e 100644 --- a/sheep/hooks/useGoods.js +++ b/sheep/hooks/useGoods.js @@ -191,11 +191,11 @@ export function handleOrderButtons(order) { // 查看拼团 order.buttons.push('combination'); } - if (order.status === 20) { - // 确认收货 + if (order.status === 15 || order.status === 20) { + // 确认收货(部分发货或全部发货) order.buttons.push('confirm'); } - if (order.logisticsId > 0) { + if (order.logisticsId > 0 || Number(order?.logisticsId) > 0 || (String(order?.logisticsNo || '').trim())) { // 查看物流 order.buttons.push('express'); }