lilei 14 hours ago
parent
commit
6f04c77769
1 changed files with 6 additions and 4 deletions
  1. 6 4
      src/views/financialManagement/accountStatementBill/detail.vue

+ 6 - 4
src/views/financialManagement/accountStatementBill/detail.vue

@@ -171,10 +171,12 @@ export default {
             const no = (data.pageNo - 1) * data.pageSize
             for (var i = 0; i < data.list.length; i++) {
               data.list[i].no = no + i + 1
-              const dates = data.list[i].bizDate.split('-')
-              data.list[i].year = dates[0]
-              data.list[i].month = dates[1]
-              data.list[i].day = dates[2].split(' ')[0]
+              if (data.list[i].bizDate) {
+                const dates = data.list[i].bizDate.split('-')
+                data.list[i].year = dates[0]
+                data.list[i].month = dates[1]
+                data.list[i].day = dates[2].split(' ')[0]
+              }
               // 正为借方, 负数为贷方
               if (data.list[i].bizAmount > 0) {
                 data.list[i].debitAmount = data.list[i].bizAmount