| | |
| | | <view class="code"> |
| | | <view class="item"> |
| | | <view class="code-decs">入库站点:</view> |
| | | <input type="text" placeholder=" 扫码 / 输入" v-model="orgSite" :focus="barcodeFocus"> |
| | | <uni-data-select name='orgSite' v-model="orgSite" :localdata="staList" |
| | | @change="change"></uni-data-select> |
| | | </view> |
| | | <view class="item"> |
| | | <view class="code-decs">托盘码:</view> |
| | | <input type="text" placeholder=" 扫码 / 输入" v-model="barcode" > |
| | | </view> |
| | | <!-- <view class="item"> |
| | | <view class="code-decs">目标库位:</view> |
| | | <input type="text" placeholder=" 扫码 / 输入" v-model="tarSite" > |
| | | </view> --> |
| | | <view class="item"> |
| | | <uni-data-checkbox mode="button" multiple v-model="checkbox2" :localdata="hobby"></uni-data-checkbox> |
| | | <!-- <uni-data-checkbox mode="tag" multiple v-model="checkbox2" :localdata="hobby"></uni-data-checkbox> --> |
| | | </view> |
| | | </view> |
| | | <view class="mat-list-title"> |
| | | </view> |
| | |
| | | barcode: '', |
| | | orderNo: '', |
| | | dataList: [], |
| | | checkbox2: [], |
| | | hobby: [{ |
| | | text: '新台车入库', |
| | | value: 1 |
| | | }], |
| | | count: 0, |
| | | rowNum: '', |
| | | matnr: '', |
| | |
| | | // this.tarSite = uni.getStorageSync('tarSite') |
| | | }, |
| | | methods: { |
| | | change(e) { |
| | | console.log('单选值:', e); |
| | | this.orgSite = e |
| | | }, |
| | | messageToggle(type) { |
| | | this.msgType1 = type |
| | | this.$refs.message.open() |
| | |
| | | let that = this |
| | | let staResults = []; |
| | | uni.request({ |
| | | url: that.baseUrl + '/mobile/cache/locs', |
| | | url: that.baseUrl + '/mobile/cache/sites/5', |
| | | header: { |
| | | 'token':uni.getStorageSync('token') |
| | | }, |
| | |
| | | if (result.code === 200 && result.data) { |
| | | staResults.push(...result.data); |
| | | staResults.forEach(item => { |
| | | that.staList.push(item?.locNo) |
| | | that.staList.push({ |
| | | value: item.devNo, |
| | | text: item.devNo |
| | | }) |
| | | }) |
| | | } else if (result.code == 403) { |
| | | uni.showToast({ |