|  | @@ -75,27 +75,38 @@ Page({
 | 
	
		
			
				|  |  |        "id": 20240320111604,
 | 
	
		
			
				|  |  |        content
 | 
	
		
			
				|  |  |      }).then(res => {
 | 
	
		
			
				|  |  | +      if (res.msg != '成功') return wx.showToast({
 | 
	
		
			
				|  |  | +        title: res.msg,
 | 
	
		
			
				|  |  | +        icon: "none"
 | 
	
		
			
				|  |  | +      })
 | 
	
		
			
				|  |  |        this.setListHeight()
 | 
	
		
			
				|  |  |        this.selectComponent('#ListBox').RefreshToComplete();
 | 
	
		
			
				|  |  |        console.log("应收账款列表", res)
 | 
	
		
			
				|  |  | +      let showList = [],
 | 
	
		
			
				|  |  | +        obj = {
 | 
	
		
			
				|  |  | +          "sumallaoverduemount": '总应收',
 | 
	
		
			
				|  |  | +          "sumonemonthamount": '逾期1月',
 | 
	
		
			
				|  |  | +          "sumthreemonthamount": '逾期1-3月',
 | 
	
		
			
				|  |  | +          "sumupthreemonthamount": '逾期三月以上'
 | 
	
		
			
				|  |  | +        }
 | 
	
		
			
				|  |  |        if (res.data.length) {
 | 
	
		
			
				|  |  | -        let showList = [],
 | 
	
		
			
				|  |  | -          obj = {
 | 
	
		
			
				|  |  | -            "sumallaoverduemount": '总应收',
 | 
	
		
			
				|  |  | -            "sumonemonthamount": '逾期1月',
 | 
	
		
			
				|  |  | -            "sumthreemonthamount": '逾期1-3月',
 | 
	
		
			
				|  |  | -            "sumupthreemonthamount": '逾期三月以上'
 | 
	
		
			
				|  |  | -          }
 | 
	
		
			
				|  |  |          for (const key in obj) {
 | 
	
		
			
				|  |  |            showList.push({
 | 
	
		
			
				|  |  |              name: obj[key] + '(元)',
 | 
	
		
			
				|  |  |              value: CNY(res.data[0][key])
 | 
	
		
			
				|  |  |            })
 | 
	
		
			
				|  |  |          }
 | 
	
		
			
				|  |  | -        this.setData({
 | 
	
		
			
				|  |  | -          showList
 | 
	
		
			
				|  |  | -        })
 | 
	
		
			
				|  |  | -      };
 | 
	
		
			
				|  |  | +      } else {
 | 
	
		
			
				|  |  | +        for (const key in obj) {
 | 
	
		
			
				|  |  | +          showList.push({
 | 
	
		
			
				|  |  | +            name: obj[key] + '(元)',
 | 
	
		
			
				|  |  | +            value: CNY(0)
 | 
	
		
			
				|  |  | +          })
 | 
	
		
			
				|  |  | +        }
 | 
	
		
			
				|  |  | +      }
 | 
	
		
			
				|  |  | +      this.setData({
 | 
	
		
			
				|  |  | +        showList
 | 
	
		
			
				|  |  | +      })
 | 
	
		
			
				|  |  |        let list = res.data.map(v => {
 | 
	
		
			
				|  |  |          v.allaoverduemount = CNY(v.allaoverduemount)
 | 
	
		
			
				|  |  |          v.onemonthamount = CNY(v.onemonthamount)
 | 
	
	
		
			
				|  | @@ -146,7 +157,7 @@ Page({
 | 
	
		
			
				|  |  |      this.getList(true)
 | 
	
		
			
				|  |  |    },
 | 
	
		
			
				|  |  |    pointChange(e) {
 | 
	
		
			
				|  |  | -    this.data.content.querytype = this.data.points[e.detail.value]
 | 
	
		
			
				|  |  | +    this.data.content.point = this.data.points[e.detail.value]
 | 
	
		
			
				|  |  |      this.getList(true)
 | 
	
		
			
				|  |  |    },
 | 
	
		
			
				|  |  |    onReady() {
 |