| | |
| | | @cancel="insideConnectCancel"></u-modal> |
| | | </view> |
| | | <!-- 已预约提煤单 --> |
| | | <!-- 填写集装箱号 --> |
| | | <view class=""> |
| | | <u-modal :show="enterCode" |
| | | title="集装箱号" |
| | | showCancelButton |
| | | content="请填写集装箱号" |
| | | @confirm="cancelCodeEnter" |
| | | @cancel="cancelCodeCancel"> |
| | | <view style=" display: flex; align-items: center;"> |
| | | <text>请输入:</text> <u--input |
| | | style="border: 1px solid black" |
| | | v-model="enterCodeStr" |
| | | placeholder="请输入集装箱号"></u--input> |
| | | </view> |
| | | |
| | | </u-modal> |
| | | </view> |
| | | <view class="Reserved"> |
| | | <combined-title title="已预约提煤单"></combined-title> |
| | | <u-empty mode="data" |
| | |
| | | show: false, |
| | | yaList:[], |
| | | inspectData:[], |
| | | activeObj:{}, |
| | | driverBillOfLoadingData: { |
| | | list1: [], |
| | | list2: [], |
| | |
| | | }, |
| | | // 接单模态框 |
| | | qiangDanShow: false, |
| | | enterCode:false, |
| | | enterCodeStr:'', |
| | | qiangDanTitle: '接单提示', |
| | | qiangDanContent: '', |
| | | qiangDanOrderPlanId: null, |
| | |
| | | }, |
| | | // 接单按钮 |
| | | qiangDanBtn(value) { |
| | | this.activeObj = value; |
| | | //是否可以场内接单,1 可以2不可以 |
| | | if (value.isInsideConnect === 1) { |
| | | this.insideConnectShow = true |
| | |
| | | uni.hideLoading() |
| | | if (res.code == 0) { |
| | | this.$u.toast('接单成功'); |
| | | this.enterCode = true; |
| | | } else { |
| | | this.$u.toast(res.msg ? res.msg : '接单失败'); |
| | | } |
| | |
| | | uni.navigateTo({ |
| | | url: '/pages/driver-page/driver-index/SelfDelivery/SelfDelivery' |
| | | }) |
| | | }, |
| | | cancelCodeEnter(){ |
| | | this.activeObj.containerNumber = this.enterCodeStr; |
| | | this.$reqPut('tmtaskCoalPut',this.activeObj).then(res=>{ |
| | | this.$u.toast('操作成功'); |
| | | this.enterCodeStr = ''; |
| | | this.enterCode = false; |
| | | |
| | | }).catch(err=>{ |
| | | |
| | | }) |
| | | }, |
| | | cancelCodeCancel(){ |
| | | this.activeObj = {}; |
| | | this.enterCode = false; |
| | | this.enterCodeStr = ''; |
| | | } |
| | | } |
| | | }; |