Bladeren bron

卓美-直播退款单详情数据修复

lxb 1 dag geleden
bovenliggende
commit
b58f357afc
1 gewijzigde bestanden met toevoegingen van 24 en 5 verwijderingen
  1. 24 5
      src/views/live/components/productAfterSalesOrder.vue

+ 24 - 5
src/views/live/components/productAfterSalesOrder.vue

@@ -39,13 +39,20 @@
                 </span>
           </el-descriptions-item>
           <el-descriptions-item label="退款金额"  >
-                <span v-if="afterSales!=null">
-                  {{afterSales.refundAmount}}
+                <span>
+<!--                  {{order.totalPrice}}-->
+                  ¥{{(order.totalPrice-order.discountMoney).toFixed(2)}}
+<!--                  ¥{{(order.totalPrice-order.payPostage+order.discountMoney).toFixed(2)}}-->
+                </span>
+          </el-descriptions-item>
+          <el-descriptions-item label="优惠券"  >
+                <span>
+                  ¥{{order.discountMoney}}
                 </span>
           </el-descriptions-item>
           <el-descriptions-item label="运费"  >
                 <span v-if="order!=null">
-                  {{order.payPostage}}
+                  {{order.payPostage}}
                 </span>
           </el-descriptions-item>
           <el-descriptions-item label="申请类型"  >
@@ -133,6 +140,16 @@
 
             </template>
           </el-table-column>
+          <el-table-column label="优惠券" width="300" align="center">
+            <template slot-scope="scope">
+              <p>¥{{order.discountMoney}}</p>
+            </template>
+          </el-table-column>
+          <el-table-column label="运费" width="300" align="center">
+            <template slot-scope="scope">
+              <p>¥{{order.payPostage}}</p>
+            </template>
+          </el-table-column>
           <el-table-column label="属性" width="240" align="center">
             <template slot-scope="scope">
               {{JSON.parse(scope.row.jsonInfo).sku}}
@@ -145,13 +162,15 @@
           </el-table-column>
           <el-table-column label="小计"  align="center">
             <template slot-scope="scope">
-              ¥{{JSON.parse(scope.row.jsonInfo).num*JSON.parse(scope.row.jsonInfo).price}}
+              ¥ {{(order.totalPrice-order.discountMoney).toFixed(2)}}
+<!--              ¥{{(order.totalPrice-order.payPostage+order.discountMoney).toFixed(2)}}--><!--{{JSON.parse(scope.row.jsonInfo).num*JSON.parse(scope.row.jsonInfo).price}}-->
             </template>
           </el-table-column>
         </el-table>
         <div style="margin-top: 12px; text-align: right;" v-if="order">
-          <div>订单金额:¥{{ goodsTotal.toFixed(2) }}</div>
+          <div>商品金额:¥{{ goodsTotal.toFixed(2) }}</div>
           <div>运费金额:¥{{ (order.payPostage || 0).toFixed(2) }}</div>
+          <div>优惠券金额:¥{{ order.discountMoney }}</div>
         </div>
         <div style="margin-top: 20px">
           <span class="font-small">操作信息</span>