feat: 删除商品标题旁边延迟tag
This commit is contained in:
@@ -244,8 +244,19 @@
|
||||
},
|
||||
{ immediate: true },
|
||||
);
|
||||
const isDelayedShipmentOrder = () =>
|
||||
currentStatus.value === 50 && !isPickUpOrder.value;
|
||||
// 顶部提示条「延迟发货中...」仅在待付款/待发货/处理中这些发货流程前的状态展示,
|
||||
// 待收货(status=50)已经发货完成,不应该再展示这条提醒。
|
||||
const isDelayedShipmentOrder = () => {
|
||||
const s = Number(currentStatus.value);
|
||||
if (s === 50) return false; // 待收货:不再展示延迟发货提示
|
||||
if (isPickUpOrder.value) return false;
|
||||
// 其余状态(待付款/待发货/处理中)下,只要有延迟中(status===1)的商品就展示
|
||||
return Boolean(
|
||||
getCurrentDelayRecords().some(
|
||||
(record) => Number(record?.status) === 1,
|
||||
),
|
||||
);
|
||||
};
|
||||
|
||||
const hasDelayedItems = computed(() => {
|
||||
if (!isAiStoreOrder.value) return false;
|
||||
|
||||
Reference in New Issue
Block a user