| | |
| | | <view class="order-code" |
| | | v-if="!isSpecial"> |
| | | 订单编号: {{ coalDetailsData.orderCode || '' }}</view> |
| | | <view class="stream-view" |
| | | style="color: #475bfd;" |
| | | @click="streamView" |
| | | v-show="timeLineStatus===9"> |
| | | 查看实时车辆 |
| | | </view> |
| | | <view class="weigh-item"> |
| | | <view class="item"> |
| | | <view class="concrete" |
| | |
| | | this.orderPlanId = value.orderPlanId; |
| | | this.yyId = value.yyId; |
| | | this.originInfoVisible = value.orderType === '外购' |
| | | if (value.overTmWaixiao) { |
| | | this.overTmWaixiao = value.overTmWaixiao |
| | | this.getWeightHouseObj.overTmWaixiao = value.overTmWaixiao |
| | | } |
| | | // if (value.overTmWaixiao) { |
| | | // this.overTmWaixiao = value.overTmWaixiao |
| | | // this.getWeightHouseObj.overTmWaixiao = value.overTmWaixiao |
| | | // } |
| | | this.fileList1 = [] |
| | | this.changeglobalIsFirstWeighing(1) |
| | | if (this.globalIsFirstWeighing === 1) { |
| | |
| | | timeout: '0', |
| | | wsgShow: false, |
| | | timeLineStatus: null, |
| | | timeLineEqCode: '', |
| | | originInfoNotice: '填写原发信息后可上磅计量', |
| | | submitOriginInfoLoading: false, |
| | | ischeckedDefault: 0, |
| | |
| | | this.$reqGet('coalDayPage', { id: this.orderPlanId, timeout: this.timeout }).then(res => { |
| | | if (res.code == 0) { |
| | | this.timeLineStatus = res.data[0].taskStatus |
| | | this.timeLineEqCode = res.data[0].eqCode |
| | | this.dayRZ = res.data.map(v => { |
| | | let slicedate = v.taskStatusDes.slice(0, 10); |
| | | if (slicedate == this.currentDate) { |
| | |
| | | let endTime = this.coalDetailsData.yuYueSection.slice(0, 10) + ' ' + this |
| | | .coalDetailsData |
| | | .yuYueSection.slice(-5); |
| | | if (dayjs(this.currentTime).isAfter(endTime) && this.coalDetailsData.status <= 1) { |
| | | // 最大约束时间 maxRestrainTime |
| | | const maxRestrainTime = dayjs().subtract(this.coalDetailsData.flexibleTime, |
| | | 'minute') |
| | | .format('YYYY-MM-DD HH:mm:ss'); |
| | | console.log(maxRestrainTime, this.correctStatus); |
| | | if (dayjs(maxRestrainTime).isAfter(endTime) && this.correctStatus <= 1) { |
| | | // this.$u.toast('已超出预约时间,可点击入场申请重新入场') |
| | | this.timeout = '1' |
| | | } |
| | |
| | | this.$reqGet('coalDayPage', { id: this.orderPlanId, timeout: this.timeout }).then(res => { |
| | | if (res.code == 0) { |
| | | this.timeLineStatus = res.data[0].taskStatus |
| | | this.timeLineEqCode = res.data[0].eqCode |
| | | this.dayRZ = res.data.map(v => { |
| | | let slicedate = v.taskStatusDes.slice(0, 10); |
| | | if (slicedate == this.currentDate) { |
| | |
| | | } else { |
| | | uni.$u.toast('请填写完整原发信息') |
| | | } |
| | | }, |
| | | streamView() { |
| | | uni.navigateTo({ |
| | | url: `/pages/public-page/driverStream/driverStream?eqCode=${this.timeLineEqCode}` |
| | | }) |
| | | } |
| | | } |
| | | }; |
| | |
| | | color: #7d7d7d; |
| | | } |
| | | |
| | | .stream-view { |
| | | height: vww(18); |
| | | margin: vww(8); |
| | | margin-left: 0; |
| | | } |
| | | |
| | | .weigh-item { |
| | | width: 100%; |
| | | height: vww(36); |