fix cancel order payment
This commit is contained in:
@@ -46,7 +46,7 @@
|
||||
<strong>购买产品</strong>
|
||||
<span v-text="`${items.length} 项`" />
|
||||
</div>
|
||||
<div class="tips">同一 SKU 单位不能重复,数量最多三位小数</div>
|
||||
<div class="tips">同一 SKU 单位不能重复</div>
|
||||
<div class="items">
|
||||
<div v-for="(item, index) in items" :key="item.clientKey" class="item">
|
||||
<div class="header">
|
||||
@@ -74,6 +74,13 @@
|
||||
:readonly="!canPriceOverride"
|
||||
:placeholder="getItemUnitPricePlaceholder(item)"
|
||||
/>
|
||||
<template #help>
|
||||
<span
|
||||
v-if="item.skuId && item.unitPriceText"
|
||||
class="price-tips gray"
|
||||
v-text="getItemUnitPricePlaceholder(item)"
|
||||
/>
|
||||
</template>
|
||||
</t-form-item>
|
||||
<t-form-item label="数量" content-align="right">
|
||||
<t-stepper
|
||||
@@ -293,7 +300,7 @@ function getItemUnitPrice(item: FormItem): number | undefined {
|
||||
}
|
||||
function getItemUnitPricePlaceholder(item: FormItem): string {
|
||||
const salePrice = getUnit(item)?.salePrice;
|
||||
return salePrice === undefined || salePrice === null ? "产品价" : `产品价:${formatProductAmount(salePrice)}`;
|
||||
return salePrice === undefined || salePrice === null ? "产品定价" : `产品定价:${formatProductAmount(salePrice)}`;
|
||||
}
|
||||
function calculateItemAmount(item: FormItem): number | undefined {
|
||||
const quantity = normalizePackageQuantity(item.quantity ?? "");
|
||||
@@ -526,6 +533,11 @@ onUnmounted(() => navBarStore.clearRight());
|
||||
}
|
||||
}
|
||||
|
||||
.price-tips {
|
||||
flex: 1;
|
||||
text-align: right;
|
||||
}
|
||||
|
||||
.unit-list {
|
||||
gap: .5rem;
|
||||
width: 100%;
|
||||
|
||||
Reference in New Issue
Block a user