Browse Source

修改bug

Qukatie 1 year ago
parent
commit
458b2d805a

+ 2 - 2
src/views/tirePartsMall/financialManagement/collectionSettlement/detailsPage.vue

@@ -374,7 +374,7 @@ export default {
   },
   methods: {
     thisAmountChange(row){
-      let num=Number(row.totalMoney)-Number(row.paymentAmountTl)
+      let num=Number(row.accountsAmount)-Number(row.settlmentAmount)
       if(row.thisAmount>num){
         this.$message.error("请正确输入本次金额!");
         this.$set(row,'thisAmount',0)
@@ -388,7 +388,7 @@ export default {
       })
     },
     thisReAmountChange(row){
-      let num=Number(row.totalMoney)-Number(row.paymentAmountTl)
+      let num=Number(row.accountsAmount)-Number(row.settlmentAmount)
       if(row.thisRefundAmount>num){
         this.$message.error("请正确输入本次金额!");
         this.$set(row,'thisRefundAmount',0)

+ 2 - 2
src/views/tirePartsMall/financialManagement/paymentSettlement/detailsPage.vue

@@ -315,7 +315,7 @@ export default {
   },
   methods: {
     thisAmountChange(row) {
-      let num = Number(row.totalMoney) - Number(row.paymentAmountTl)
+      let num = Number(row.accountsAmount) - Number(row.accountsAmount)
       if (row.thisAmount > num) {
         this.$message.error("请正确输入本次金额!");
         this.$set(row, 'thisAmount', 0)
@@ -329,7 +329,7 @@ export default {
       })
     },
     thisReAmountChange(row) {
-      let num = Number(row.totalMoney) - Number(row.paymentAmountTl)
+      let num = Number(row.accountsAmount) - Number(row.accountsAmount)
       if (row.thisRefundAmount > num) {
         this.$message.error("请正确输入本次金额!");
         this.$set(row, 'thisRefundAmount', 0)