| | |
| | | </view> |
| | | </view> |
| | | <view class="modal-footer"> |
| | | <button class="modal-btn modal-btn-cancel" @click="closeAgvInputModal">取消</button> |
| | | <button class="modal-btn modal-btn-cancel" @click="handleAgvNo">不需要</button> |
| | | <button class="modal-btn modal-btn-confirm" @click="confirmAgvStation">确定</button> |
| | | </view> |
| | | </view> |
| | |
| | | return ; |
| | | } |
| | | // 显示AGV确认弹窗 |
| | | this.showAgvModal = true; |
| | | this.showAgvInputModal = true; |
| | | }, |
| | | confirm2() { |
| | | if(this.container === '' || this.container === null){ |
| | |
| | | }) |
| | | return ; |
| | | } |
| | | this.submitConfirm2(); |
| | | }, |
| | | // 提交组托请求 |
| | | async submitConfirm2() { |
| | | this.repeatClick = true |
| | | const newArr = this.list.map(item => { |
| | | |
| | | return { |
| | | ...item, |
| | | anfme: item.anfme === null ? 0 : +item.anfme, |
| | | }; |
| | | }); |
| | | |
| | | const requestData = { |
| | | items: newArr, |
| | | barcode: this.container, |
| | | }; |
| | | const { |
| | | code, |
| | | data, |
| | | msg |
| | | } = await request('/waitPakin/merge', requestData) |
| | | if (code === 200) { |
| | | uni.showToast({ |
| | | title: '组盘成功' |
| | | }) |
| | | this.list = [] |
| | | this.barcode = '' |
| | | this.container = '' |
| | | this.isconfirm = false |
| | | } else { |
| | | uni.showToast({ |
| | | title: msg, |
| | | icon: "none", |
| | | position: 'top' |
| | | }) |
| | | } |
| | | this.repeatClick = false |
| | | }, |
| | | this.submitConfirm(''); |
| | | }, |
| | | // 关闭AGV确认弹窗 |
| | | closeAgvModal() { |
| | | this.showAgvModal = false; |
| | |
| | | |
| | | // 如果有AGV站点,添加到请求参数中 |
| | | if (agvStation) { |
| | | requestData.agvStation = agvStation; |
| | | requestData.staNo = agvStation; |
| | | requestData.agvSign = 1; |
| | | }else{ |
| | | requestData.agvSign = 0; |
| | | } |
| | | |
| | | const { |
| | | code, |
| | | data, |
| | | msg |
| | | } = await request('/waitPakin/merge/v2', requestData) |
| | | } = await request('/waitPakin/merge', requestData) |
| | | if (code === 200) { |
| | | uni.showToast({ |
| | | title: '组盘成功' |