| | |
| | | return { |
| | | orderPlanId: null, |
| | | yyId: null, |
| | | dayRZ: [] |
| | | dayRZ: [], |
| | | coalDetailsData: {}, // 提煤单详情 |
| | | getWeightHouseObj: { |
| | | // 获取所在磅房 |
| | | deptId: '', |
| | | filedId: '', |
| | | tmId: '', |
| | | tmCode: '', |
| | | carNo: '' |
| | | } |
| | | }; |
| | | }, |
| | | onShow() { |
| | |
| | | }, |
| | | computed:{ |
| | | userName(){ |
| | | return uni.getStorageSync('username') |
| | | return uni.getStorageSync('username'); |
| | | }, |
| | | openid(){ |
| | | return uni.getStorageSync('openid') |
| | | return uni.getStorageSync('openid'); |
| | | } |
| | | }, |
| | | methods: { |
| | | init() { |
| | | this.coalDayPage(); |
| | | this.getTakeCoal(); |
| | | }, |
| | | // 获取提煤单详情 |
| | | getTakeCoal() { |
| | | this.$reqGet('getTakeCoal', { takeCoalId: this.orderPlanId }).then(res => { |
| | | if (res.code == 0) { |
| | | this.coalDetailsData = res.data[0]; |
| | | this.getWeightHouseObj.deptId = this.coalDetailsData.deptId; |
| | | this.getWeightHouseObj.filedId = this.coalDetailsData.filedId; |
| | | this.getWeightHouseObj.tmId = this.coalDetailsData.id; |
| | | this.getWeightHouseObj.tmCode = this.coalDetailsData.code; |
| | | this.getWeightHouseObj.carNo = this.coalDetailsData.carNo; |
| | | } |
| | | }); |
| | | }, |
| | | // 日志查询 |
| | | coalDayPage() { |
| | | this.$reqGet('coalDayPage').then(res => { |
| | | this.$reqGet('coalDayPage', { id: this.orderPlanId }).then(res => { |
| | | if (res.code == 0) { |
| | | this.dayRZ = res.data.records; |
| | | this.dayRZ = res.data; |
| | | } |
| | | }); |
| | | }, |
| | |
| | | }, |
| | | // 签到 |
| | | arriveClick() { |
| | | this.$reqPost('arrive', { id: this.orderPlanId }, 'params').then(res => { |
| | | console.log(res, '签到'); |
| | | uni.navigateTo({ |
| | | url: `/pages/driver-page/driver-index/bill-of-lading-details/punchTheClock/punchTheClock?orderPlanId=${this.orderPlanId}` |
| | | }); |
| | | }, |
| | | // 入场申请 |
| | |
| | | }, |
| | | // 称重 |
| | | cengZhongClick() { |
| | | this.$reqGet('getWeighHouse', this.getWeightHouseObj).then(res => { |
| | | console.log(res, '获取磅房'); |
| | | if(res.code == 0){ |
| | | uni.navigateTo({ |
| | | url:`/pages/driver-page/driver-index/bill-of-lading-details/weighingDevice/weighingDevice?takeCoalId=${this.orderPlanId}` |
| | | }) |
| | | url: `/pages/driver-page/driver-index/bill-of-lading-details/weighingDevice/weighingDevice?takeCoalId=${this.orderPlanId}&sceneId=${res.data.id}&gateCameraId=${res.data.gateCameraId}&gateCameraCode=${res.data.gateCameraCode}&weighCode=${res.data.weighCode}` |
| | | }); |
| | | }else{ |
| | | this.$u.toast('未在磅房,请前往磅房后再试!!') |
| | | } |
| | | /** |
| | | * @desc 等待取煤单接口 |
| | | * */ |
| | | }); |
| | | } |
| | | } |
| | | }; |
| | | </script> |