| | |
| | | onShow() { |
| | | this.baseUrl = uni.getStorageSync('baseUrl'); |
| | | this.token = uni.getStorageSync('token'); |
| | | this.recommendLoc() |
| | | }, |
| | | onLoad() { |
| | | // #ifdef APP |
| | |
| | | that.recommendLocs = [] |
| | | uni.request({ |
| | | url: that.baseUrl + '/mobile/node/recommend/loc', |
| | | data: {barcode: that.barcode}, |
| | | data: {zpallet: that.barcode}, |
| | | header: {'token': uni.getStorageSync('token')}, |
| | | method: 'POST', |
| | | success(res) { |
| | | res = res.data |
| | | console.log(res); |
| | | that.recommendLocs.push('DT-C-010202') |
| | | return |
| | | res = res.data |
| | | |
| | | // that.recommendLocs.push('DT-C-010202') |
| | | if (res.code == 200 && res.data) { |
| | | that.recommendLocs = res.data |
| | | that.recommendLocs.push(res.msg) |
| | | that.dataList = res.data |
| | | } |
| | | } |
| | | |
| | |
| | | comb() { |
| | | uni.vibrateShort(); |
| | | let that = this; |
| | | if (that.barcode === '') { |
| | | this.messageText = "请添加库位码" |
| | | this.messageToggle('error') |
| | | return; |
| | | } |
| | | // if (that.barcode === '') { |
| | | // this.messageText = "请添加库位码" |
| | | // this.messageToggle('error') |
| | | // return; |
| | | // } |
| | | // if (that.dataList.length === 0) { |
| | | // this.messageText = "请添加商品列表" |
| | | // this.messageToggle('error') |
| | |
| | | display: flex; |
| | | min-height: 80rpx; |
| | | background-color: #FFF; |
| | | margin: auto 20rpx; |
| | | /* margin: 20rpx 20rpx; */ |
| | | border-radius: 20rpx; |
| | | box-shadow: 0px 0px 30px 0px rgba(0,0,0,0.2); |
| | | margin: 20rpx; |
| | | } |
| | | .list:first-child { |
| | | margin-top: 280rpx; |