| | |
| | | this.init(); |
| | | }, |
| | | methods: { |
| | | handleOpenChange() { |
| | | // 方法一 |
| | | console.log(this.$refs.collapseHeight); |
| | | // let long = this.$refs.collapseHeight.length; |
| | | // setTimeout(() => { |
| | | // for (let i = 0; i < long; i++) { |
| | | // this.$refs.collapseHeight[i].queryRect();// 计算高度 |
| | | // } |
| | | // }, 20); |
| | | |
| | | // 方法二 |
| | | this.$nextTick(() => { |
| | | this.$refs.collapseHeight.init() |
| | | }); |
| | | |
| | | }, |
| | | limitString(str, limit, suffix = '...') { |
| | | if (str.length <= limit) return str; |
| | | return str.slice(0, limit) + suffix; |
| | |
| | | uni.hideLoading(); |
| | | this.driverBillOfLoadingData = res.data; |
| | | uni.stopPullDownRefresh(); |
| | | this.handleOpenChange(); |
| | | }); |
| | | }else{ |
| | | this.$reqGet('getCheckTaskCoal',{flag:0,carNo:this.carNo}).then(res => { |
| | | uni.hideLoading(); |
| | | this.driverBillOfLoadingData = res.data; |
| | | uni.stopPullDownRefresh(); |
| | | this.handleOpenChange(); |
| | | }); |
| | | } |
| | | if(!this.carNo){ |
| | |
| | | uni.hideLoading(); |
| | | this.driverBillOfLoadingDatas = res.data; |
| | | uni.stopPullDownRefresh(); |
| | | this.handleOpenChange(); |
| | | }); |
| | | }else{ |
| | | this.$reqGet('getAlreadyCheckTaskCoal',{flag:0,carNo:this.carNo}).then(res => { |
| | | uni.hideLoading(); |
| | | this.driverBillOfLoadingDatas = res.data; |
| | | uni.stopPullDownRefresh(); |
| | | this.handleOpenChange(); |
| | | }); |
| | | } |
| | | }, |