| | |
| | | </view> |
| | | <view class="third-line"> |
| | | <view class="carnum-icon"> |
| | | <image src="https://mx.jzeg.cn:9096/appimg/image/banner/carNO.png" |
| | | <image src="https://mr1.res.jzeg.cn:9096/appimg/image/banner/carNO.png" |
| | | mode="widthFix"></image> |
| | | </view> |
| | | <view class="carnum-text">{{ value.carNo || '' }}</view> |
| | |
| | | conditinonclose() { |
| | | this.conditinonShow = false; |
| | | }, |
| | | //获取当前日期函数 |
| | | getNowFormatDate() { |
| | | let date = new Date(), |
| | | year = date.getFullYear(), //获取完整的年份(4位) |
| | | month = date.getMonth() + 1, //获取当前月份(0-11,0代表1月) |
| | | strDate = date.getDate() // 获取当前日(1-31) |
| | | if (month < 10) month = `0${month}` // 如果月份是个位数,在前面补0 |
| | | if (strDate < 10) strDate = `0${strDate}` // 如果日是个位数,在前面补0 |
| | | |
| | | return `${year}-${month}-${strDate}` |
| | | }, |
| | | download(){ |
| | | let conditionMapping = { |
| | | coalName: this.coalList.filter(v => v.active == true).map(item => item.condition).join(','), //煤种 |
| | |
| | | fleetId: this.fleetList.filter(v => v.active == true).map(item => item.conditionId).join(','), //车队 |
| | | deptId: this.filedList.filter(v => v.active == true).map(item => item.conditionId).join(','), //矿场 |
| | | carNo: this.carNoList.filter(v => v.active == true).map(item => item.condition).join(','), //车牌 |
| | | startTime:this.first + ' ' + '00:00:00', |
| | | endTime:this.last + ' ' + '23:59:59', |
| | | startTime: this.first ? (this.first + ' ' + '00:00:00') :this.getNowFormatDate() + ' ' + '00:00:00', |
| | | endTime: this.last ? (this.last + ' ' + '23:59:59') : this.getNowFormatDate() + ' ' + '23:59:59' |
| | | |
| | | }; |
| | | //如果请求参数没值,则去除 |
| | |
| | | console.log(res.data,hostUrl,'res.data'); |
| | | if(hostUrl){ |
| | | wx.downloadFile({ |
| | | url: `${BaseUrl}/admin/sys-file/local/${hostUrl}`, |
| | | url: `${BaseUrl}/admin/sys-file/getAppTmExcel/${hostUrl}`, |
| | | filePath:wx.env.USER_DATA_PATH+`/${hostUrl}`, |
| | | header: { |
| | | Authorization: 'Bearer' + ' ' + uni.getStorageSync('token'), |
| | |
| | | height: vww(28); |
| | | line-height: vww(28); |
| | | text-align: center; |
| | | background: url('https://mx.jzeg.cn:9096/appimg/image/banner/blueblock.png') no-repeat; |
| | | background: url('https://mr1.res.jzeg.cn:9096/appimg/image/banner/blueblock.png') no-repeat; |
| | | background-size: contain; |
| | | font-size: 30rpx; |
| | | font-weight: 400; |
| | |
| | | // display: flex; |
| | | // justify-content: center; |
| | | // align-items: center; |
| | | background: url('https://mx.jzeg.cn:9096/appimg/image/banner/redblock.png') no-repeat; |
| | | background: url('https://mr1.res.jzeg.cn:9096/appimg/image/banner/redblock.png') no-repeat; |
| | | background-size: contain; |
| | | font-size: 30rpx; |
| | | font-weight: 400; |