From de645bddadf10b831aebbb51f94d18635ddba9bc Mon Sep 17 00:00:00 2001 From: e <2432808546@qq.com> Date: Tue, 3 Aug 2021 10:16:34 +0800 Subject: [PATCH] =?UTF-8?q?=E7=BB=AD=E8=B4=B9=E6=97=A5=E6=9C=9F=E4=BF=AE?= =?UTF-8?q?=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/order/AddOrder.vue | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) diff --git a/src/views/order/AddOrder.vue b/src/views/order/AddOrder.vue index f0b573e..0e4ad75 100644 --- a/src/views/order/AddOrder.vue +++ b/src/views/order/AddOrder.vue @@ -680,10 +680,11 @@ export default { }) let dataArr = list.filter(e=>{// 数据平台 if(this.renewDisabled){/* 处于续费 */ - e.startTime = e.endTime.split(" ")[0] + let time = e.endTime.split(" ")[0] + let arr = time.split('-') + e.startTime = arr[0]+'-'+arr[1]+'-'+'0'+(+arr[2]+1) e.endTime = "" e.periodOfUse = '' - e.residueRecord = e.remainingPeriod }else{ e.startTime = e.startTime.split(" ")[0] e.endTime = e.endTime.split(" ")[0] @@ -752,9 +753,7 @@ export default { this.$refs['form'].validate((valid) => { if (valid) { if(this.renewDisabled){/* 续费状态下 */ - this.dataPlatform.map(e=>{ - delete e.residueRecord - }) + this.form.orderNature = 2 } let param = { @@ -1000,7 +999,7 @@ export default { let date1 = Date.parse(endYear); let date2 = Date.parse(row.startTime); let ms = Math.abs(date1 - date2) - row.remainingPeriod = Math.floor(ms / (24 * 3600 * 1000)) + row.residueRecord; + row.remainingPeriod = Math.floor(ms / (24 * 3600 * 1000)) ;