Browse Source

修改bug

chenrui 3 tháng trước cách đây
mục cha
commit
ce9f66cf43

+ 4 - 4
src/views/numsGoodsShelves/customerAccount/transactionFlowModal.vue

@@ -50,10 +50,10 @@
       <!-- 统计 -->
       <!-- 统计 -->
       <div class="table-operator" style="margin-bottom: 10px;">
       <div class="table-operator" style="margin-bottom: 10px;">
         <div class="alert-message">
         <div class="alert-message">
-          充值金额:<strong>{{ totalData&&(totalData.rechargeAmount || totalData.rechargeAmount==0) ? toThousands(totalData.rechargeAmount) : '--' }}</strong>;
-          销售金额:<strong>{{ totalData&&(totalData.salesAmount || totalData.salesAmount==0) ? toThousands(totalData.salesAmount) : '--' }}</strong>;
-          退款金额:<strong>{{ totalData&&(totalData.refundAmount || totalData.refundAmount==0) ? toThousands(totalData.refundAmount) : '--' }}</strong>;
-          清零金额:<strong>{{ totalData&&(totalData.zeroAmount || totalData.zeroAmount==0) ? toThousands(totalData.zeroAmount) : '--' }}</strong>;
+          充值金额:<strong>{{ totalData&&(totalData.rechargeAmount || totalData.rechargeAmount==0) ? Math.abs(toThousands(totalData.rechargeAmount)) : '--' }}</strong>;
+          销售金额:<strong>{{ totalData&&(totalData.salesAmount || totalData.salesAmount==0) ? Math.abs(toThousands(totalData.salesAmount)) : '--' }}</strong>;
+          退款金额:<strong>{{ totalData&&(totalData.refundAmount || totalData.refundAmount==0) ? Math.abs(toThousands(totalData.refundAmount)) : '--' }}</strong>;
+          清零金额:<strong>{{ totalData&&(totalData.zeroAmount || totalData.zeroAmount==0) ? Math.abs(toThousands(totalData.zeroAmount)) : '--' }}</strong>;
         </div>
         </div>
       </div>
       </div>
       <!-- 列表 -->
       <!-- 列表 -->