Kaynağa Gözat

【修改】押金列表 金额

howie 2 yıl önce
ebeveyn
işleme
65c0bda637

+ 4 - 3
src/views/deposit_commerce/deposit_list.vue

@@ -445,12 +445,12 @@
             <el-table-column
               align="right"
               label="金额"
-              prop="totalAmount"
+              prop="totalPrice"
               min-width="160"
               show-overflow-tooltip
             >
               <template slot-scope="scope">
-                {{ scope.row.totalAmount | numToFixed}}
+                {{ scope.row.totalPrice | numToFixed}}
             </template>
             </el-table-column>
             <el-table-column
@@ -659,9 +659,10 @@ export default {
       getList(params).then((res) => {
         this.dataList = res.data.records
         res.data.records.forEach((item) => {
+          item.totalPrice = item.itemPrice * item.itemQty
           // item.number = (item.qty*100 - item.directTransferQty*100 - item.retiredQty*100) / 100;
           item.sums1 = ['qty','hasSendQty','itemDataQty']
-          item.sums2 = ['itemDepositAmount', 'diffAmount', 'price','totalAmount','depositAmount']
+          item.sums2 = ['itemDepositAmount', 'diffAmount', 'price','totalAmount','depositAmount','totalPrice']
         })
         this.listLoading = false
         this.listTotal = res.data.total

+ 5 - 3
src/views/deposit_home/deposit_list.vue

@@ -472,12 +472,12 @@
             <el-table-column
               align="right"
               label="金额"
-              prop="totalAmount"
+              prop="totalPrice"
               min-width="160"
               show-overflow-tooltip
             >
               <template slot-scope="scope">
-                {{ scope.row.totalAmount | numToFixed}}
+                {{ scope.row.totalPrice | numToFixed}}
             </template>
             </el-table-column>
             <el-table-column
@@ -688,9 +688,11 @@ export default {
       getList(params).then((res) => {
         this.dataList = res.data.records
         res.data.records.forEach((item) => {
+          item.totalPrice = item.itemPrice * item.itemQty
+
           // item.number = (item.qty*100 - item.directTransferQty*100 - item.retiredQty*100) / 100;
           item.sums1 = ['qty','hasSendQty','itemDataQty']
-          item.sums2 = ['itemDepositAmount', 'diffAmount', 'price','totalAmount','depositAmount']
+          item.sums2 = ['itemDepositAmount', 'diffAmount', 'price','totalAmount','depositAmount','totalPrice']
         })
         this.listLoading = false
         this.listTotal = res.data.total