| | |
| | | @input="orderInput()" disabled> |
| | | </view> --> |
| | | <view class="item"> |
| | | <view class="code-decs">托盘码:</view> |
| | | <view class="code-decs">库位号:</view> |
| | | <input type="text" placeholder=" 扫码 / 输入" v-model="barcode" :focus="barcodeFocus" |
| | | @confirm="barcodeInput()"> |
| | | </view> |
| | | <view class="item"> |
| | | <view class="code-decs">库位号:</view> |
| | | <view class="code-decs">物料号:</view> |
| | | <input type="text" placeholder=" 扫码 / 输入" v-model="matnr" :focus="matFocus" @input="findMat()"> |
| | | <view class="item-right"> |
| | | <button></button> |
| | |
| | | <!-- 底部操作按钮 --> |
| | | <view class="buttom"> |
| | | <button size="mini" @click="reset('warn')">重置</button> |
| | | <button size="mini" type="primary" @click="combConfirm('warn')">组托</button> |
| | | <button size="mini" type="primary" @click="combConfirm('warn')">上架</button> |
| | | </view> |
| | | <!-- 弹窗 --> |
| | | <!-- 修改数量 --> |
| | |
| | | var len = this.dataList.length |
| | | var add = true ,sameItem = false |
| | | for (var i = 0; i < len; i++) { |
| | | if (mat.orderNo != this.dataList[i].orderNo) { |
| | | add = true |
| | | break; |
| | | } else { |
| | | if (mat.matnr == this.dataList[i].matnr) { |
| | | for (var j = 0; j < len; j++) { |
| | | if (mat.batch == this.dataList[j].batch) { |
| | |
| | | add = false |
| | | } |
| | | } |
| | | } |
| | | |
| | | } |
| | | if (add) { |
| | | this.dataList.unshift(mat) |
| | |
| | | } |
| | | } |
| | | uni.request({ |
| | | url: that.baseUrl + '/mobile/comb/auth', |
| | | url: that.baseUrl + '/mobile/manDetl/in', |
| | | data: JSON.stringify({ |
| | | locno: that.barcode, |
| | | locNo: that.barcode, |
| | | combMats: that.dataList |
| | | }), |
| | | method: 'POST', |
| | |
| | | changeValue(value) { |
| | | this.count = value |
| | | }, |
| | | // 清空 |
| | | resst() { |
| | | this.dataList = [] |
| | | this.barcode = '' |
| | | this.barcodeFocuss() |
| | | }, |
| | | } |
| | | } |
| | | </script> |