瀏覽代碼

Merge branch 'master' of git.caimei365.com:git_lijun/caimei-mall-admin-ui

zhengjinyi 5 年之前
父節點
當前提交
2cf0bf30a4
共有 2 個文件被更改,包括 9 次插入3 次删除
  1. 6 2
      src/views/order/detail.vue
  2. 3 1
      src/views/order/refund-record.vue

+ 6 - 2
src/views/order/detail.vue

@@ -71,7 +71,9 @@
             <template v-if="order.discountFee<0">¥0.00</template>
             <template v-else>
               ¥{{ order.discountFee>returnedPurchaseFee ? (order.discountFee - returnedPurchaseFee) : '0' }}
-              <span style="color:red;">({{ '原:¥' + order.discountFee + ',折扣取消:¥' + (order.discountFee>returnedPurchaseFee ? returnedPurchaseFee : order.discountFee) }})</span>
+              <span style="color:red;">(原:¥{{ order.discountFee | toThousandFloatFilter }},
+                折扣取消:¥<template v-if="order.discountFee>returnedPurchaseFee">{{ returnedPurchaseFee | toThousandFloatFilter }}</template>
+                <template v-else>{{ order.discountFee | toThousandFloatFilter }}</template>)</span>
             </template>
           </el-col>
           <el-col :span="6"><b>运费:</b>
@@ -81,7 +83,9 @@
             <template v-else>¥{{ order.freight }}</template>
           </el-col>
           <el-col :span="12"><b>退款金额(已完成):</b> ¥{{ returnValue | toThousandFloatFilter }}
-            <span style="color:red;">({{ '原:¥' + returnedPurchaseFee + ',折扣取消:¥' + (order.discountFee>returnedPurchaseFee ? returnedPurchaseFee : order.discountFee) }})</span>
+            <span style="color:red;">(原:¥{{ returnedPurchaseFee | toThousandFloatFilter }},
+              折扣取消:¥<template v-if="order.discountFee>returnedPurchaseFee">{{ returnedPurchaseFee | toThousandFloatFilter }}</template>
+              <template v-else>{{ order.discountFee | toThousandFloatFilter }}</template>)</span>
           </el-col>
         </el-row>
       </div>

+ 3 - 1
src/views/order/refund-record.vue

@@ -49,7 +49,9 @@
           <template v-if="order.discountFee<0">¥0.00</template>
           <template v-else>
             ¥{{ order.discountFee>returnedPurchaseFee ? (order.discountFee - returnedPurchaseFee) : '0' }}
-            <span style="color:red;">({{ '原:¥' + order.discountFee + ',折扣取消:¥' + (order.discountFee>returnedPurchaseFee ? returnedPurchaseFee : order.discountFee) }})</span>
+            <span style="color:red;">(原:¥{{ order.discountFee | toThousandFloatFilter }},
+              折扣取消:¥<template v-if="order.discountFee>returnedPurchaseFee">{{ returnedPurchaseFee | toThousandFloatFilter }}</template>
+              <template v-else>{{ order.discountFee | toThousandFloatFilter }}</template>)</span>
           </template>
         </el-col>
         <el-col :span="6"><b>运费:</b>