合同信息查看修复

dev
e 3 years ago
parent 6c0b5c936f
commit 9fa6635b39
  1. 2
      src/views/customer/AddCustomer.vue
  2. 9
      src/views/order/AddOrder.vue

@ -189,7 +189,7 @@
</el-table-column>
<el-table-column prop="endTime" label="合同期限" align="center">
<template slot-scope="scope">
{{scope.row.startTime.split(' ').shift()}}&nbsp;&nbsp;&nbsp;-&nbsp;&nbsp;&nbsp;{{scope.row.endTime.split(' ').shift()}}
{{scope.row.startTime?scope.row.startTime.split(' ').shift():''}}&nbsp;&nbsp;&nbsp;-&nbsp;&nbsp;&nbsp;{{scope.row.endTime?scope.row.endTime.split(' ').shift():''}}
</template>
</el-table-column>
<el-table-column prop="dataOrCourseName" label="产品内容" align="center">

@ -682,10 +682,17 @@ export default {
})
let dataArr = list.filter(e=>{//
if(this.renewDisabled){/* 处于续费 */
let end = Date.parse(e.endTime);
let now = +new Date()
console.log(end,now,'时间');
if(now<end){
let time = e.endTime.split(" ")[0]
let arr = time.split('-')
e.startTime = arr[0]+'-'+arr[1]+'-'+'0'+(+arr[2]+1)
e.endTime = ""
}else{/* 过期 */
e.startTime = ''
}
e.endTime = ''
e.periodOfUse = ''
}else{
e.startTime = e.startTime.split(" ")[0]

Loading…
Cancel
Save