Explorar el Código

```
feat(config): 为运费配置添加单位显示

在运费输入框中增加“每 Kg”单位前缀和后缀,提升用户体验。

fix(order): 调整标签页指令位置以修复渲染问题

将 `display-directive="show"` 移动到 NTabs 组件上,确保 tab 内容正确渲染。

feat(order): 优化积分抵扣金额展示逻辑

将积分抵扣值除以100并保留两位小数,使金额显示更准确。
```

zhangtao hace 19 horas
padre
commit
9c6f4d7cf0

+ 1 - 0
src/views/config/fright-config/index.vue

@@ -97,6 +97,7 @@ function handleCreatInput(model: any, field: any, row: Options) {
           onUpdate:value={value => {
             model[field][row.index].Cost = value;
           }}
+          v-slots={{ prefix: () => '每', suffix: () => 'Kg' }}
         ></NInputNumber>
       </div>
     </div>

+ 2 - 8
src/views/delivery/after-sales-order/index.vue

@@ -305,14 +305,8 @@ function handleReset() {
       </NCollapse>
     </NCard>
     <NCard title="售后列表" :bordered="false" size="small" class="card-wrapper sm:flex-1-hidden">
-      <NTabs v-model:value="activeTab" type="line" animated class="mb-16px h-full">
-        <NTabPane
-          v-for="item in statusList"
-          :key="item.value"
-          display-directive="show"
-          :name="item.value"
-          :tab="`${item.label}(${item.num})`"
-        >
+      <NTabs v-model:value="activeTab" type="line" animated class="mb-16px h-full" display-directive="show">
+        <NTabPane v-for="item in statusList" :key="item.value" :name="item.value" :tab="`${item.label}(${item.num})`">
           <NDataTable
             v-model:checked-row-keys="checkedRowKeys"
             :columns="columns"

+ 1 - 1
src/views/delivery/after-sales-order/order-modal.vue

@@ -94,7 +94,7 @@ function getImgFils() {
         <NDescriptionsItem label="购买信息">
           <div>商品总额: {{ goodsMoney || '---' }}</div>
           <div>配送费(快递): {{ orderInfo.freightAmount || '---' }}元</div>
-          <div>积分抵扣: {{ orderInfo.OrderOffsetPoints || '---' }}元</div>
+          <div>积分抵扣: {{ (orderInfo.orderOffsetPoints / 100).toFixed(2) || '---' }}元</div>
           <div>实际付款: {{ orderInfo.orderActualTotal || '---' }}元</div>
         </NDescriptionsItem>
       </NDescriptions>

+ 2 - 8
src/views/delivery/normal-order/index.vue

@@ -287,14 +287,8 @@ function handleRefsh() {
       </NCollapse>
     </NCard>
     <NCard title="订单列表" :bordered="false" size="small" class="card-wrapper sm:flex-1-hidden">
-      <NTabs v-model:value="activeTab" type="line" animated class="mb-16px h-full">
-        <NTabPane
-          v-for="item in statusList"
-          :key="item.value"
-          display-directive="show"
-          :name="item.value"
-          :tab="`${item.label}(${item.num})`"
-        >
+      <NTabs v-model:value="activeTab" type="line" animated class="mb-16px h-full" display-directive="show">
+        <NTabPane v-for="item in statusList" :key="item.value" :name="item.value" :tab="`${item.label}(${item.num})`">
           <NDataTable
             v-model:checked-row-keys="checkedRowKeys"
             :columns="columns"