| 
					
				 | 
			
			
				@@ -52,7 +52,6 @@ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         loading : false, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         form: {}, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         search:{}, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-        show:true, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         detailData:{}, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         option: option, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         parentId:0, 
			 | 
		
	
	
		
			
				| 
					
				 | 
			
			
				@@ -92,28 +91,20 @@ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				       // option.height = window.innerHeight - 200 ; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     }, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     methods: { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+      rowStyle(data){ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        if(_.subtract(data.row.settlementAmount, data.row.amount) < 0){ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+          return  { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            background: "rgba(248,203,203,0.56)" 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+          } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+      }, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				       //新单打开 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				       addReceipt(row){ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-        this.detailData = { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-          id: row.id, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-          status: 1 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-        }; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-        this.show = false; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        console.log(1) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				       }, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				       //编辑打开 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-      editOpen(row, status){ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-        this.detailData = { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-          id: row.id, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-          status: status 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-        }; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-        this.show = false; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-      }, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-      //点击搜索按钮触发 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-      searchChange(params, done) { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-        this.query = params; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-        this.page.currentPage = 1; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-        this.onLoad(this.page, params); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-        done() 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+      editOpen(row){ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        console.log(1) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				       }, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				       searchReset() { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         console.log('1') 
			 | 
		
	
	
		
			
				| 
					
				 | 
			
			
				@@ -121,39 +112,43 @@ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				       selectionChange() { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         console.log('1') 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				       }, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-      currentChange() { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-        console.log('1') 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-      }, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				       sizeChange() { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         console.log('1') 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				       }, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-      refreshChange() { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-        this.onLoad(this.page); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+      currentChange(val) { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        this.page.currentPage = val 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				       }, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-      rowStyle(data){ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-        if(_.subtract(data.row.settlementAmount, data.row.amount) < 0){ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-            return  { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-              background: "rgba(248,203,203,0.56)" 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-            } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-        } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+      refreshChange(params) { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        this.onLoad(this.page,params); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				       }, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-      onLoad(page, params = {}) { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-        this.loading = true; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-        if (params.createTime != undefined) {  //合同 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+      //点击搜索按钮触发 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+      searchChange(params, done) { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        this.query = params; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        this.page.currentPage = 1; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        this.onLoad(this.page, params); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        done() 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+      }, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+      paramsAdjustment(params) { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        params = Object.assign({}, this.search); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        if (params.createTime &&  params.createTime.length !==0 ) {  //合同 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				           params.createStartDate = params.createTime[0]+ " " + "00:00:00"; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				           params.createEndDate = params.createTime[1] + " " + "23:59:59"; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				           this.$delete(params,'createTime') 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        return params 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+      }, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+      onLoad(page, params = {}) { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        this.loading = true; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        params = this.paramsAdjustment(params) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         getBillList(page.currentPage, page.pageSize,params).then(res=>{ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				           this.dataList = res.data.data.records 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				           this.page.total = res.data.data.total 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        }).finally(()=>{ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				           this.loading = false; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         }) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				       }, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-      goBack() { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-        this.detailData=this.$options.data().detailData 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-        this.show = true; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-      } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				   } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 </script> 
			 |