| | |
| | | @input="barcodeInput()"> |
| | | </view> --> |
| | | <view class="item"> |
| | | <view class="code-decs">物料号:</view> |
| | | <view class="code-decs">扫码:</view> |
| | | <input type="text" placeholder=" 扫码 / 输入" v-model="matnr" :focus="barcodeFocus" @input="findMat()"> |
| | | <view class="item-right"> |
| | | <button></button> |
| | |
| | | <view class="desc">批号:</view> |
| | | <view class="left-item"> |
| | | <uni-tag :text="item.batch" type="warning"></uni-tag> |
| | | </view> |
| | | </view> |
| | | <view class="list-left-item"> |
| | | <view class="desc">货主:</view> |
| | | <view class="left-item"> |
| | | <uni-tag :text="item.owner" type="warning"></uni-tag> |
| | | </view> |
| | | </view> |
| | | <!-- <view class="list-left-item"> |
| | |
| | | matnr: '', |
| | | matnr1: '', |
| | | batch: '', |
| | | owner: '', |
| | | weight: '', |
| | | msgType1: 'success', |
| | | msgType: 'success', |
| | |
| | | mat['batch'] = arr[1] |
| | | mat['anfme'] = arr[2] |
| | | mat['locNo'] = arr[3] |
| | | mat['maktx'] = arr[4] |
| | | mat['index'] = arr[5] |
| | | mat['owner'] = arr[4] |
| | | mat['maktx'] = arr[5] |
| | | mat['index'] = arr[6] |
| | | this.checkMat(mat) |
| | | |
| | | return |
| | |
| | | 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') |
| | |
| | | this.matnr1 = this.dataList[i].matnr |
| | | this.count = this.dataList[i].anfme |
| | | this.batch = this.dataList[i].batch |
| | | this.owner = this.dataList[i].owner |
| | | this.weight = this.dataList[i].weight |
| | | this.rowNum = i |
| | | this.eject() |
| | |
| | | reviseConfirm() { |
| | | this.dataList[this.rowNum].anfme = this.count |
| | | this.dataList[this.rowNum].batch = this.batch |
| | | this.dataList[this.rowNum].owner = this.owner |
| | | this.dataList[this.rowNum].weight = this.weight |
| | | this.messageText = "修改成功" |
| | | this.messageToggle('success') |
| | |
| | | <uni-combox :candidates="orderNoList" placeholder="请选择来源地" v-model="origin"></uni-combox> |
| | | </view> --> |
| | | <view class="item"> |
| | | <view class="code-decs">货主:</view> |
| | | <uni-combox :candidates="ownerList" placeholder="请选择货主" v-model="owner"></uni-combox> |
| | | </view> |
| | | <view class="item"> |
| | | <view class="code-decs">库位码:</view> |
| | | <input type="text" placeholder=" 扫码 / 输入" v-model="locNo" > |
| | | </view> |
| | |
| | | locNo:'', |
| | | orderNoList: [], |
| | | code:'', |
| | | origin:'' |
| | | origin:'', |
| | | ownerList: [], |
| | | owner: '' |
| | | |
| | | } |
| | | }, |
| | |
| | | this.baseUrl = uni.getStorageSync('baseUrl'); |
| | | this.token = uni.getStorageSync('token'); |
| | | this.getOrderNoList() |
| | | this.getOwnerList() |
| | | }, |
| | | methods: { |
| | | findCode(){ |
| | |
| | | for (var i = 0; i < res.data.length; i++) { |
| | | that.orderNoList.push(res.data[i]) |
| | | } |
| | | } |
| | | }) |
| | | }, |
| | | getOwnerList(){ |
| | | let that = this |
| | | uni.request({ |
| | | url: this.baseUrl + '/locOwnerQuery/auth', |
| | | header: { |
| | | 'token':uni.getStorageSync('token') |
| | | }, |
| | | method: 'POST', |
| | | success(res) { |
| | | res = res.data |
| | | res.data.forEach((item,index) => { |
| | | that.ownerList.push(item.value) |
| | | }) |
| | | } |
| | | }) |
| | | }, |
| | |
| | | locNo:that.locNo, |
| | | // code:that.code, |
| | | // origin:that.origin, |
| | | combMats: that.dataList |
| | | combMats: that.dataList, |
| | | owner: that.owner |
| | | }), |
| | | method: 'POST', |
| | | header: { |
| | |
| | | <uni-combox :candidates="orderNoList" placeholder="请选择来源地" v-model="origin"></uni-combox> |
| | | </view> |
| | | <view class="item"> |
| | | <view class="code-decs">货主:</view> |
| | | <uni-combox :candidates="ownerList" placeholder="请选择货主" v-model="owner"></uni-combox> |
| | | </view> |
| | | <view class="item"> |
| | | <view class="code-decs">库位码:</view> |
| | | <input type="text" placeholder=" 扫码 / 输入" v-model="locNo" > |
| | | </view> |
| | |
| | | locNo:'', |
| | | orderNoList: [], |
| | | code:'', |
| | | origin:'' |
| | | |
| | | origin:'', |
| | | ownerList: [], |
| | | owner: '' |
| | | } |
| | | }, |
| | | onLoad() { |
| | |
| | | this.baseUrl = uni.getStorageSync('baseUrl'); |
| | | this.token = uni.getStorageSync('token'); |
| | | this.getOrderNoList() |
| | | this.getOwnerList() |
| | | }, |
| | | methods: { |
| | | findCode(){ |
| | |
| | | } |
| | | }) |
| | | }, |
| | | getOwnerList(){ |
| | | let that = this |
| | | uni.request({ |
| | | url: this.baseUrl + '/locOwnerQuery/auth', |
| | | header: { |
| | | 'token':uni.getStorageSync('token') |
| | | }, |
| | | method: 'POST', |
| | | success(res) { |
| | | res = res.data |
| | | res.data.forEach((item,index) => { |
| | | that.ownerList.push(item.value) |
| | | }) |
| | | } |
| | | }) |
| | | }, |
| | | // 根据托盘码搜索 |
| | | search() { |
| | | let that = this |