From 521c2a58a8cfeaea159ef42bb55e737cec7d5a69 Mon Sep 17 00:00:00 2001 From: zhaoxiao Date: Fri, 8 Oct 2021 15:22:59 +0800 Subject: [PATCH] =?UTF-8?q?=E5=90=88=E5=90=8C=E9=82=AE=E5=AF=84=E6=82=AC?= =?UTF-8?q?=E6=B5=AE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/tools/StatusSlot.vue | 6 +++++- src/views/mineContract/MineContract.vue | 4 +++- 2 files changed, 8 insertions(+), 2 deletions(-) diff --git a/src/components/tools/StatusSlot.vue b/src/components/tools/StatusSlot.vue index 0191007..ec37556 100644 --- a/src/components/tools/StatusSlot.vue +++ b/src/components/tools/StatusSlot.vue @@ -128,6 +128,10 @@ export default { if(res.success) { let arr = res.result[this.opeStatusKey] || [] let result = [] + // 我的合同详情后端返回邮寄信息为payMailContract对象,将对象处理为数组 + if (!(arr instanceof Array)) { + arr = [arr] + } arr.map(tt => { result.push(this.showTemplate(tt)) }) @@ -151,7 +155,7 @@ export default { result = `${item.paymentDate}到账${item.amountReceived}` } else if(this.statusKey === 'bill') { result = `${item.billDate}新增发票,发票单号:${item.billNo}` - } else if(this.statusKey === 'mail') { + } else if(this.statusKey === 'mail' || this.statusKey === 'payMailContract') { result = `${item.sendDate}新增邮寄信息,邮寄单号:${item.postNo}` } return result diff --git a/src/views/mineContract/MineContract.vue b/src/views/mineContract/MineContract.vue index 3050c6f..f0b55a3 100644 --- a/src/views/mineContract/MineContract.vue +++ b/src/views/mineContract/MineContract.vue @@ -27,7 +27,7 @@