| | |
| | | "name" : "中扬WMS", |
| | | "appid" : "__UNI__DA5854D", |
| | | "description" : "", |
| | | "versionName" : "2024031401", |
| | | "versionCode" : "100", |
| | | "versionName" : "2024071601", |
| | | "versionCode" : 101, |
| | | "transformPx" : false, |
| | | /* 5+App特有相关 */ |
| | | "app-plus" : { |
| | |
| | | matFocus: false, |
| | | matData: '', |
| | | removeNum: 0, |
| | | targetBatch: '' |
| | | } |
| | | }, |
| | | onLoad() { |
| | |
| | | // barcode input 事件 |
| | | barcodeInput() { |
| | | let _this = this |
| | | // let barcode = this.barcode.split(",") |
| | | // _this.barcode = barcode[0] |
| | | // let batch = barcode[0] |
| | | let barcode = this.barcode.split(" ") |
| | | console.log(barcode); |
| | | this.targetBatch = barcode[1].slice(3) |
| | | console.log(this.targetBatch); |
| | | console.log(this.barcode); |
| | | uni.request({ |
| | | url: _this.baseUrl + '/mobile/wrkDetl/search/batch/auth', |
| | | header: {'token': uni.getStorageSync('token')}, |
| | |
| | | console.log(res); |
| | | if (res.code === 200) { |
| | | _this.dataList.push(res.data) |
| | | } else if (res.code == 403) { |
| | | _this.messageText = res.msg |
| | | _this.messageToggle('error') |
| | | setTimeout(() => { |
| | | uni.reLaunch({ |
| | | url: '../login/login' |
| | | }); |
| | | }, 1000); |
| | | } else { |
| | | _this.messageText = res.data |
| | | _this.messageToggle('error') |
| | | } |
| | | |
| | | } |
| | |
| | | let that = this; |
| | | uni.request({ |
| | | url: that.baseUrl + '/mobile/order/search/batch/auth', |
| | | data: that.barcode, |
| | | data: that.targetBatch, |
| | | method: 'POST', |
| | | header: {'token': uni.getStorageSync('token')}, |
| | | method:'POST', |
| | |
| | | resetConfirm() { |
| | | this.dataList = [] |
| | | this.barcode = '' |
| | | this.targetBatch = '' |
| | | this.messageText = "重置完成" |
| | | this.messageToggle('success') |
| | | }, |
| | |
| | | resst() { |
| | | this.dataList = [] |
| | | this.barcode = '' |
| | | this.targetBatch = '' |
| | | this.barcodeFocuss() |
| | | }, |
| | | } |