feat(recycle): support quick fulfillment for recycle order
This commit is contained in:
Vendored
-2
@@ -82,8 +82,6 @@ declare module 'vue' {
|
||||
TSlider: typeof import('tdesign-mobile-vue')['Slider']
|
||||
TStepper: typeof import('tdesign-mobile-vue')['Stepper']
|
||||
TSwipeCell: typeof import('tdesign-mobile-vue')['SwipeCell']
|
||||
TSwiper: typeof import('tdesign-mobile-vue')['Swiper']
|
||||
TSwiperItem: typeof import('tdesign-mobile-vue')['SwiperItem']
|
||||
TSwitch: typeof import('tdesign-mobile-vue')['Switch']
|
||||
TTable: typeof import('tdesign-mobile-vue')['Table']
|
||||
TTabPanel: typeof import('tdesign-mobile-vue')['TabPanel']
|
||||
|
||||
@@ -33,7 +33,7 @@
|
||||
<strong v-if="order.orderType === 'PACKAGE'" class="package-name" v-text="order.packageName || '未命名套餐'" />
|
||||
</div>
|
||||
</div>
|
||||
<span class="red text-bold keep-text" v-text="`¥${formatPackageAmount(order.saleAmount)}`" />
|
||||
<span v-if="order.orderType !== 'RECYCLE'" class="red text-bold keep-text" v-text="`¥${formatPackageAmount(order.saleAmount)}`" />
|
||||
</div>
|
||||
</template>
|
||||
<template #description>
|
||||
@@ -53,7 +53,18 @@
|
||||
/>
|
||||
</div>
|
||||
</div>
|
||||
<div class="row payment">
|
||||
<div v-if="order.orderType === 'RECYCLE'" class="row payment">
|
||||
<span class="label">回收物</span>
|
||||
<div class="tags">
|
||||
<t-tag
|
||||
size="small"
|
||||
theme="primary"
|
||||
variant="light"
|
||||
:content="`${order.recycleItemName || '回收物'}:已核销 ${order.recycleVerifiedQuantity ?? 0} / 应回收 ${order.recycleRequiredQuantity ?? 0} ${order.recycleUnit || ''}`"
|
||||
/>
|
||||
</div>
|
||||
</div>
|
||||
<div v-else class="row payment">
|
||||
<span class="label">收款</span>
|
||||
<div class="tags">
|
||||
<t-tag
|
||||
|
||||
@@ -105,7 +105,11 @@ export type QuickFulfillmentSourceOrderItem = {
|
||||
export type QuickFulfillmentSourceOrder = {
|
||||
id: string;
|
||||
orderNo?: string;
|
||||
orderType?: "PACKAGE" | "DIRECT_PRODUCT";
|
||||
orderType?: "PACKAGE" | "DIRECT_PRODUCT" | "RECYCLE";
|
||||
recycleItemName?: string | null;
|
||||
recycleUnit?: string | null;
|
||||
recycleRequiredQuantity?: number | string | null;
|
||||
recycleVerifiedQuantity?: number | string | null;
|
||||
paymentStatus?: GaoSalesPaymentStatus;
|
||||
packageName?: string;
|
||||
saleAmount?: number | null;
|
||||
|
||||
Reference in New Issue
Block a user