style(frontend): 自动格式化代码符合Prettier门禁规范
This commit is contained in:
@@ -190,13 +190,9 @@ export function useOrderActions(options: UseOrderActionsOptions) {
|
||||
const canOpenDispute = computed(() => {
|
||||
if (!order.value || (!isOwner.value && !isRenter.value)) return false
|
||||
if (order.value.active_dispute) return false
|
||||
return ![
|
||||
'completed',
|
||||
'cancelled',
|
||||
'closed',
|
||||
'disputing',
|
||||
'checkout_disputing',
|
||||
].includes(order.value.status)
|
||||
return !['completed', 'cancelled', 'closed', 'disputing', 'checkout_disputing'].includes(
|
||||
order.value.status
|
||||
)
|
||||
})
|
||||
const canCounterCheckout = computed(() => {
|
||||
if (!order.value?.checkout) return false
|
||||
@@ -215,10 +211,7 @@ export function useOrderActions(options: UseOrderActionsOptions) {
|
||||
(order.value.handoff_status === 'owner_checkout_confirm_timeout' ||
|
||||
order.value.handoff_status === 'owner_return_confirm_timeout' ||
|
||||
order.value.handoff_status === 'pending_owner_checkout')))
|
||||
return (
|
||||
isOwnerPending ||
|
||||
(isRenter.value && order.value.status === 'pending_checkout_accept')
|
||||
)
|
||||
return isOwnerPending || (isRenter.value && order.value.status === 'pending_checkout_accept')
|
||||
})
|
||||
const checkoutShortfallCent = computed(() => Number(order.value?.checkout?.shortfall_cent || 0))
|
||||
const checkoutOvershootCent = computed(() =>
|
||||
|
||||
@@ -373,14 +373,13 @@ async function copyListingCode() {
|
||||
<OrderCheckoutSummary
|
||||
v-if="
|
||||
order.checkout &&
|
||||
(
|
||||
[
|
||||
'pending_checkout_confirm',
|
||||
'pending_checkout_accept',
|
||||
'checkout_disputing',
|
||||
'completed',
|
||||
].includes(order.status) || order.status === 'abnormal'
|
||||
)
|
||||
([
|
||||
'pending_checkout_confirm',
|
||||
'pending_checkout_accept',
|
||||
'checkout_disputing',
|
||||
'completed',
|
||||
].includes(order.status) ||
|
||||
order.status === 'abnormal')
|
||||
"
|
||||
variant="mobile"
|
||||
:order="order"
|
||||
@@ -389,10 +388,7 @@ async function copyListingCode() {
|
||||
/>
|
||||
|
||||
<!-- Owner Action: Confirm Checkout / Make Counter Adjustment Proposal -->
|
||||
<section
|
||||
v-if="isOwnerCheckoutPending"
|
||||
class="card-section action-card"
|
||||
>
|
||||
<section v-if="isOwnerCheckoutPending" class="card-section action-card">
|
||||
<h3 class="section-title">结账处理</h3>
|
||||
<p
|
||||
v-if="order.handoff_status === 'owner_checkout_confirm_timeout'"
|
||||
|
||||
@@ -518,14 +518,13 @@ watch([() => route.query.focus, order, loading], () => {
|
||||
v-if="
|
||||
order &&
|
||||
order.checkout &&
|
||||
(
|
||||
[
|
||||
'pending_checkout_confirm',
|
||||
'pending_checkout_accept',
|
||||
'checkout_disputing',
|
||||
'completed',
|
||||
].includes(order.status) || order.status === 'abnormal'
|
||||
)
|
||||
([
|
||||
'pending_checkout_confirm',
|
||||
'pending_checkout_accept',
|
||||
'checkout_disputing',
|
||||
'completed',
|
||||
].includes(order.status) ||
|
||||
order.status === 'abnormal')
|
||||
"
|
||||
:order="order"
|
||||
:is-owner="isOwner"
|
||||
|
||||
Reference in New Issue
Block a user