|
@@ -329,13 +329,15 @@ export default {
|
|
|
this.queryParam.pageNo = pagination.current
|
|
|
this.getCostList()
|
|
|
},
|
|
|
- changeCreateTime(){
|
|
|
- this.queryParam.createTimeE=this.createTime[1].format('YYYY-MM-DD')
|
|
|
- this.queryParam.createTimeB=this.createTime[0].format('YYYY-MM-DD')
|
|
|
+ changeCreateTime(data){
|
|
|
+ this.createTime=data
|
|
|
+ this.queryParam.createTimeE=this.createTime.length==2?this.createTime[1].format('YYYY-MM-DD'):''
|
|
|
+ this.queryParam.createTimeB=this.createTime.length==2?this.createTime[0].format('YYYY-MM-DD'):''
|
|
|
},
|
|
|
- changeApprovalDate(){
|
|
|
- this.queryParam.approvalDateB=this.approvalDate[0].format('YYYY-MM-DD')
|
|
|
- this.queryParam.approvalDateE=this.approvalDate[1].format('YYYY-MM-DD')
|
|
|
+ changeApprovalDate(data){
|
|
|
+ this.approvalDate = data
|
|
|
+ this.queryParam.approvalDateB=this.approvalDate.length==2?this.approvalDate[0].format('YYYY-MM-DD'):''
|
|
|
+ this.queryParam.approvalDateE=this.approvalDate.length==2?this.approvalDate[1].format('YYYY-MM-DD'):''
|
|
|
},
|
|
|
handleApply(record){
|
|
|
var data = {
|