Browse Source

面损列表-筛选条件

jbb 2 năm trước cách đây
mục cha
commit
f298b4e195
1 tập tin đã thay đổi với 8 bổ sung6 xóa
  1. 8 6
      src/views/cost-allocation-total/fabricLossesSummary.vue

+ 8 - 6
src/views/cost-allocation-total/fabricLossesSummary.vue

@@ -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 = {