瀏覽代碼

优化经理折扣

e 5 年之前
父節點
當前提交
173cb7d836
共有 2 個文件被更改,包括 4 次插入7 次删除
  1. 3 1
      src/views/order/logistics.vue
  2. 1 6
      src/views/order/refund-record.vue

+ 3 - 1
src/views/order/logistics.vue

@@ -4,7 +4,9 @@
       <div class="app-title">发货记录</div>
       <el-button type="primary" icon="el-icon-back" style="float: right;" @click="backToList">返回</el-button>
     </div>
-    <el-card class="box-card">
+
+    <el-card v-if="logisticsInfoVos.length === 0" class="box-card" style="text-align:center;">暂无发货记录.....</el-card>
+    <el-card v-else class="box-card">
       <div v-for="(data,index) in logisticsInfoVos" :key="index" class="order-item">
         <el-row :gutter="24" class="box-row">
           <el-col :span="24"><b>发货时间:{{ data.logisticsBatch.deliveryTime }}</b></el-col>

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

@@ -47,12 +47,7 @@
         <el-col :span="6"><b>应收总额:</b> ¥{{ order.payableAmount | toThousandFloatFilter }}</el-col>
         <el-col :span="6"><b>经理折扣:</b>
           <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 | toThousandFloatFilter }},
-              折扣取消:¥<template v-if="order.discountFee>returnedPurchaseFee">{{ returnedPurchaseFee | toThousandFloatFilter }}</template>
-              <template v-else>{{ order.discountFee | toThousandFloatFilter }}</template>)</span>
-          </template>
+          <template v-else> ¥{{ order.discountFee | toThousandFloatFilter }}</template>
         </el-col>
         <el-col :span="6"><b>运费:</b>
           <template v-if="order.freight*1===0">包邮</template>