feat: 隐藏网店管理进度条
This commit is contained in:
@@ -119,7 +119,7 @@
|
||||
</view>
|
||||
<view
|
||||
class="btn flex-row ju-flex-end"
|
||||
v-if="props.type == 2 && !props.hideItemAfterSale"
|
||||
v-if="props.type == 2 && !props.hideItemAfterSale && !isAllRefunded"
|
||||
>
|
||||
<button
|
||||
class="ss-reset-button btnItem btnItem1"
|
||||
@@ -224,6 +224,14 @@
|
||||
});
|
||||
const isCompletedOrder = computed(() => orderStatusText.value === '已完成');
|
||||
|
||||
// 订单级 refundStatus:0 未退款 / 10 部分退款 / 20 全部退款
|
||||
// 用户需求:refundStatus === 20(全部退款) 时,不要展示任何"申请售后"按钮(单品/整单都不展示)。
|
||||
const refundStatus = computed(() => {
|
||||
const v = props.data?.refundStatus === undefined ? props.data?.refund_status : props.data?.refundStatus;
|
||||
return Number(v) || 0;
|
||||
});
|
||||
const isAllRefunded = computed(() => refundStatus.value === 20);
|
||||
|
||||
// 待收货状态(status=50):不再展示任何"已延迟 N 件"tab / 状态 + 数量的 SKU 延迟明细,
|
||||
// 因为货已经发出,延迟发货的相关状态对用户无意义。
|
||||
const isReceivingOrder = computed(() => {
|
||||
|
||||
Reference in New Issue
Block a user