fix cancel order payment

This commit is contained in:
Timi
2026-09-07 23:11:32 +08:00
parent 904d226943
commit 9fa6527f96
7 changed files with 74 additions and 15 deletions
+14 -2
View File
@@ -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%;