| | |
| | | </view> |
| | | </view> |
| | | <view class="item"> |
| | | <view class="code-decs">仓库:</view> |
| | | <uni-combox :candidates="floorList" placeholder="请选择仓库" v-model="floor"></uni-combox> |
| | | </view> |
| | | <view class="item"> |
| | | <view class="code-decs" style="width: 25vw;">大小托盘:</view> |
| | | <radio-group @change="isFullPlt"> |
| | | <label> |
| | |
| | | removeNum: 0, |
| | | ck1: true, |
| | | ck2: false, |
| | | fullPlt: '1' |
| | | fullPlt: '1', |
| | | ck : '', |
| | | floorList: [], |
| | | floor: '', |
| | | } |
| | | }, |
| | | onLoad() { |
| | |
| | | onShow() { |
| | | this.baseUrl = uni.getStorageSync('baseUrl'); |
| | | this.token = uni.getStorageSync('token'); |
| | | this.getSite(); |
| | | }, |
| | | methods: { |
| | | // 大小托盘 |
| | |
| | | } else { |
| | | this.fullPlt = '2' |
| | | } |
| | | }, |
| | | //获取仓库 |
| | | getSite() { |
| | | let that = this |
| | | uni.request({ |
| | | url: that.baseUrl + '/mobile/ck', |
| | | header: { 'token': uni.getStorageSync('token') }, |
| | | method: 'POST', |
| | | success(res) { |
| | | res = res.data |
| | | console.log(res) |
| | | if (res.code === 200) { |
| | | that.floorList = res.data |
| | | } else if (res.code == 403) { |
| | | that.messageText = res.msg |
| | | that.messageToggle('error') |
| | | setTimeout(() => { |
| | | uni.reLaunch({ |
| | | url: '../login/login' |
| | | }); |
| | | }, 1000); |
| | | } else { |
| | | that.messageText = res.msg |
| | | that.messageToggle('error') |
| | | } |
| | | } |
| | | }) |
| | | }, |
| | | messageToggle(type) { |
| | | this.msgType1 = type |
| | |
| | | this.messageToggle('error') |
| | | return; |
| | | } |
| | | if(that.floor===''){ |
| | | 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' |
| | |
| | | barcodeSize: '0', |
| | | rsta: that.rsta, |
| | | barcode: that.barcode, |
| | | combMats: that.dataList |
| | | combMats: that.dataList, |
| | | ck : that.floor, |
| | | }), |
| | | method: 'POST', |
| | | header: { |
| | |
| | | @import url('../../static/css/wms.css/wms.css'); |
| | | |
| | | .list:first-child { |
| | | margin-top: 460rpx; |
| | | margin-top: 530rpx; |
| | | } |
| | | .code { |
| | | width: 100%; |