| | |
| | | // 根据订单号返回商品详情 |
| | | findOrder() { |
| | | let that = this |
| | | that.tempOrderInfo.csocode = '' |
| | | that.tempOrderInfo.isoseq = '' |
| | | uni.request({ |
| | | url: that.baseUrl + '/mobile/order/search/orderNo/auth', |
| | | header: {'token': uni.getStorageSync('token')}, |
| | |
| | | success(res) { |
| | | res = res.data |
| | | if (res.code === 200) { |
| | | if(res.data) { |
| | | for (var i = 0; i < res.data[0].combMats.length; i++) { |
| | | if(res.data && res.data[0].combMats) { |
| | | for (let i = 0; i < res.data[0].combMats.length; i++) { |
| | | that.checkMat(res.data[0].combMats[i]) |
| | | } |
| | | that.tempOrderInfo.csocode = res.data[0].combMats.csocode ? res.data[0].combMats.csocode : '' |
| | | that.tempOrderInfo.isoseq = res.data[0].combMats.isoseq ? res.data[0].combMats.isoseq : '' |
| | | // that.tempOrderInfo.csocode = res.data[0].combMats.csocode ? res.data[0].combMats.csocode : '' |
| | | // that.tempOrderInfo.isoseq = res.data[0].combMats.isoseq ? res.data[0].combMats.isoseq : '' |
| | | } else { |
| | | uni.showToast({ |
| | | title: that.orderNo + '请检查订单号是否正确', |
| | |
| | | this.messageToggle('error') |
| | | return; |
| | | } |
| | | if (that.dataList.length > 1) { |
| | | this.messageText = "只能添加一种物料" |
| | | this.messageToggle('error') |
| | | return; |
| | | } |
| | | for (var i = 0; i < that.dataList.length; i++) { |
| | | if (that.dataList[i].anfme == 0 || that.dataList[i].anfme == '') { |
| | | this.messageText = that.dataList[i].matnr + '组托数量不能为0' |
| | |
| | | return; |
| | | } |
| | | } |
| | | console.log(that.dataList); |
| | | uni.request({ |
| | | url: that.baseUrl + '/agvMobile/comb/auth', |
| | | data: JSON.stringify({ |