| | |
| | | <template> |
| | | <view> |
| | | <view class="code"> |
| | | <!-- <view class="item"> |
| | | <view class="code-decs">订单号:</view> |
| | | <input type="text" placeholder=" 扫码 / 输入" v-model="order" :focus="orderFocus" |
| | | @input="orderInput()" disabled> |
| | | </view> --> |
| | | <view class="item"> |
| | | <view class="code-decs">托盘码:</view> |
| | | <input type="text" placeholder=" 扫码 / 输入" v-model="barcode" :focus="barcodeFocus" |
| | |
| | | baseUrl: '', |
| | | token: '', |
| | | order: '', |
| | | orderFocus: true, |
| | | barcode: '', |
| | | barcodeFocus: '', |
| | | dataList: [], |
| | | count: 0, |
| | | rowNum: '', |
| | |
| | | messageText: '', |
| | | title: '', |
| | | content: '', |
| | | barcodeFocus: false, |
| | | barcodeFocus: true, |
| | | matFocus: false, |
| | | matData: '' |
| | | } |
| | |
| | | <template> |
| | | <view> |
| | | <view class="code"> |
| | | <!-- <view class="item"> |
| | | <view class="code-decs">订单号:</view> |
| | | <input type="text" placeholder=" 扫码 / 输入" v-model="order" :focus="orderFocus" |
| | | @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> |
| | | <!-- <text style="text-align: right;color: #409EFF;" @click="selectMat()">提取+</text> --> |
| | | <!-- <uni-icons type="right" color="#c1c1c1"></uni-icons> --> |
| | | </view> |
| | | </view> |
| | | </view> |
| | |
| | | } |
| | | } |
| | | uni.request({ |
| | | url: that.baseUrl + '/mobile/comb/auth', |
| | | url: that.baseUrl + '/mobile/manDetl/out', |
| | | data: JSON.stringify({ |
| | | locno: that.barcode, |
| | | locNo: that.barcode, |
| | | combMats: that.dataList |
| | | }), |
| | | method: 'POST', |
| | |
| | | <template> |
| | | <view> |
| | | <view class="code"> |
| | | <!-- <view class="item"> |
| | | <view class="code-decs">订单号:</view> |
| | | <input type="text" placeholder=" 扫码 / 输入" v-model="order" :focus="orderFocus" |
| | | @input="orderInput()" disabled> |
| | | </view> --> |
| | | <view class="item"> |
| | | <view class="code-decs">库位号:</view> |
| | | <input type="text" placeholder=" 扫码 / 输入" v-model="barcode" :focus="barcodeFocus" |
| | |
| | | <input type="text" placeholder=" 扫码 / 输入" v-model="matnr" :focus="matFocus" @input="findMat()"> |
| | | <view class="item-right"> |
| | | <button></button> |
| | | <!-- <text style="text-align: right;color: #409EFF;" @click="selectMat()">提取+</text> --> |
| | | <!-- <uni-icons type="right" color="#c1c1c1"></uni-icons> --> |
| | | </view> |
| | | </view> |
| | | </view> |
| | |
| | | <view class="item"> |
| | | <view class="code-decs">托盘码:</view> |
| | | <input type="text" placeholder=" 扫码 / 输入" v-model="barcode" :focus="barcodeFocus" |
| | | @confirm="barcodeInput()"> |
| | | @input="barcodeInput()"> |
| | | </view> |
| | | <view class="item"> |
| | | <view class="code-decs">物料码:</view> |
| | |
| | | <!-- 提示窗示例 --> |
| | | <uni-popup ref="alertDialog" type="dialog"> |
| | | <uni-popup-dialog :type="msgType" confirmText="移除" :title="title" :content="content" |
| | | @confirm="removeConfirm" @close="removeClose"></uni-popup-dialog> |
| | | @confirm="removeConfirm()" @close="removeClose"></uni-popup-dialog> |
| | | </uni-popup> |
| | | </view> |
| | | <view> |
| | |
| | | content: '', |
| | | barcodeFocus: true, |
| | | matFocus: false, |
| | | matData: '' |
| | | |
| | | matData: '', |
| | | removeNum: 0, |
| | | } |
| | | }, |
| | | onLoad() { |
| | |
| | | }, |
| | | // 商品光标清空重置 |
| | | focuss() { |
| | | // #ifdef APP |
| | | let that = this; |
| | | that.focus = false; |
| | | this.focus = false; |
| | | setTimeout(() => { |
| | | that.matnr = ''; |
| | | that.focus = true; |
| | | this.matnr = ''; |
| | | this.matFocus = true; |
| | | }, 100); |
| | | // #endif |
| | | }, |
| | | // 搜索物料 |
| | | findMat() { |
| | |
| | | events: { |
| | | matList: function(data) { |
| | | that.checkMat(data.data) |
| | | that.focuss() |
| | | }, |
| | | }, |
| | | }); |
| | |
| | | if (add) { |
| | | this.dataList.unshift(mat) |
| | | } |
| | | console.log(len); |
| | | }, |
| | | // 修改批号 |
| | | revise(item, i) { |
| | |
| | | }, |
| | | // 列表移除按钮 |
| | | remove(item, i, type) { |
| | | this.removeNum = i |
| | | this.msgType = type |
| | | this.title = '警告' |
| | | this.content = '是否移除当前商品!' |
| | | this.$refs.alertDialog.open(i) |
| | | }, |
| | | // 确认移除 |
| | | removeConfirm(i) { |
| | | removeConfirm() { |
| | | this.messageText = "移除成功" |
| | | this.messageToggle('success') |
| | | this.dataList.splice(i, 1) |
| | | this.dataList.splice(this.removeNum, 1) |
| | | }, |
| | | // 取消移除 |
| | | removeClose() { |
| | |
| | | reviseConfirm() { |
| | | this.dataList[this.rowNum].anfme = this.count |
| | | this.dataList[this.rowNum].batch = this.batch |
| | | this.matnr = '' |
| | | this.messageText = "修改成功" |
| | | this.messageToggle('success') |
| | | this.$refs.revise.close() |