合同信息查看修复

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

@ -189,7 +189,7 @@
</el-table-column> </el-table-column>
<el-table-column prop="endTime" label="合同期限" align="center"> <el-table-column prop="endTime" label="合同期限" align="center">
<template slot-scope="scope"> <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> </template>
</el-table-column> </el-table-column>
<el-table-column prop="dataOrCourseName" label="产品内容" align="center"> <el-table-column prop="dataOrCourseName" label="产品内容" align="center">

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

Loading…
Cancel
Save