소스 검색

bug 修复

lilei 4 년 전
부모
커밋
abdae01477
2개의 변경된 파일6개의 추가작업 그리고 6개의 파일을 삭제
  1. 3 3
      src/views/financialManagement/financialCollection/list.vue
  2. 3 3
      src/views/financialManagement/financialPayment/list.vue

+ 3 - 3
src/views/financialManagement/financialCollection/list.vue

@@ -170,11 +170,11 @@ export default {
         },
         {
           title: '收款金额',
-          dataIndex: 'unsettleAmount',
           width: 100,
           align: 'center',
-          customRender: function (text) {
-            return text || text == 0 ? '¥' + text : '--'
+          customRender: function (text, record) {
+            const val = record.settleState == 'SETTLED' ? record.settledAmount : record.unsettleAmount
+            return val || val == 0 ? '¥' + val : '--'
           }
         },
         {

+ 3 - 3
src/views/financialManagement/financialPayment/list.vue

@@ -170,11 +170,11 @@ export default {
         },
         {
           title: '付款金额',
-          dataIndex: 'unsettleAmount',
           width: 100,
           align: 'center',
-          customRender: function (text) {
-            return text || text == 0 ? '¥' + text : '--'
+          customRender: function (text, record) {
+            const val = record.settleState == 'SETTLED' ? record.settledAmount : record.unsettleAmount
+            return val || val == 0 ? '¥' + val : '--'
           }
         },
         {