| | |
| | | codeInput() { |
| | | const that = this; |
| | | const m = (that.code || "").split(";"); |
| | | if (!m[1] || !m[5] || !m[9]) { |
| | | uni.showToast({ title: "条码有误", icon: "none", position: "top" }); |
| | | this.codeFocuss(); |
| | | return; |
| | | } |
| | | if (!m[1] || !m[5] || !m[7] || !m[9]) { |
| | | uni.showToast({ title: "条码有误", icon: "none", position: "top" }); |
| | | this.codeFocuss(); |
| | | return; |
| | | } |
| | | const supplier = m[10] === "supplier" ? m[11] : "1"; |
| | | |
| | | uni.request({ |
| | | uni.request({ |
| | | url: that.commonUrl + "/mobile/order/search/orderDetl/auth", |
| | | method: "POST", |
| | | header: { token: uni.getStorageSync("token") }, |
| | | data: JSON.stringify({ |
| | | orderNo: m[1], |
| | | sku: m[5], |
| | | upc: m[9], |
| | | orderNo: m[1], |
| | | sku: m[5], |
| | | item: m[7], |
| | | upc: m[9], |
| | | supplier: supplier, // ✅ 永远有值 |
| | | }), |
| | | method: "POST", |
| | | header: { token: uni.getStorageSync("token") }, |
| | |
| | | |
| | | uni.showLoading(); |
| | | uni.request({ |
| | | url: that.commonUrl + "/mobile/comb/auth", |
| | | url: that.commonUrl + "/mobile/comb/agv/auth", |
| | | data: JSON.stringify({ |
| | | billNo: that.orderNo, |
| | | orderNo: that.orderNo, |