#
whycq
2023-05-06 b1f58f22641cfea79591f0640e9ee7c3299bd269
#
3个文件已修改
76 ■■■■ 已修改文件
pages/order/orderPakin.vue 6 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
pages/order/orderPutDown.vue 34 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
pages/order/orderPutOn.vue 36 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
pages/order/orderPakin.vue
@@ -157,7 +157,8 @@
                content: '',
                barcodeFocus: true,
                matFocus: false,
                matData: ''
                matData: '',
                removeNum: 0
            }
        },
        onShow() {
@@ -359,6 +360,7 @@
            },
            // 列表移除按钮
            remove(item, i, type) {
                this.removeNum  = i
                this.msgType = type
                this.title = '警告'
                this.content = '是否移除当前商品!'
@@ -368,7 +370,7 @@
            removeConfirm(i) {
                this.messageText = "移除成功"
                this.messageToggle('success')
                this.dataList.splice(i, 1)
                this.dataList.splice(this.removeNum, 1)
            },
            reviseConfirm() {
                this.dataList[this.rowNum].anfme = this.count
pages/order/orderPutDown.vue
@@ -4,7 +4,7 @@
            <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>
@@ -141,7 +141,6 @@
                baseUrl: '',
                token: '',
                order: '',
                orderFocus: true,
                barcode: '',
                barcodeFocus: '',
                dataList: [],
@@ -155,9 +154,10 @@
                messageText: '',
                title: '',
                content: '',
                barcodeFocus: false,
                barcodeFocus: true,
                matFocus: false,
                matData: ''
                matData: '',
                removeNum: 0
            }
        },
        onShow() {
@@ -168,6 +168,28 @@
            messageToggle(type) {
                this.msgType1 = type
                this.$refs.message.open()
            },
            barcodeInput() {
                // 不设置定时器 会出现扫入的字符串不全
                setTimeout(() => {
                    this.focuss()
                }, 200)
            },
            // 托盘码有误重置
            barcodeFocuss() {
                let that = this;
                that.barcodeFocus = false;
                setTimeout(() => {
                    that.barcode = '';
                    that.barcodeFocus = true;
                }, 100);
            },
            // 商品光标清空重置
            focuss() {
                setTimeout(() => {
                    this.matnr = '';
                    this.matFocus = true;
                }, 100);
            },
            // 搜索物料
            findMat() {
@@ -202,6 +224,7 @@
                                events: {
                                    matList: function(data) {
                                        that.checkMat(data.data)
                                        that.focuss()
                                    },
                                },
                            });
@@ -355,6 +378,7 @@
            },
            // 列表移除按钮
            remove(item, i, type) {
                this.removeNum  = i
                this.msgType = type
                this.title = '警告'
                this.content = '是否移除当前商品!'
@@ -364,7 +388,7 @@
            removeConfirm(i) {
                this.messageText = "移除成功"
                this.messageToggle('success')
                this.dataList.splice(i, 1)
                this.dataList.splice(this.removeNum, 1)
            },
            reviseConfirm() {
                this.dataList[this.rowNum].anfme = this.count
pages/order/orderPutOn.vue
@@ -4,7 +4,7 @@
            <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>
@@ -141,7 +141,6 @@
                baseUrl: '',
                token: '',
                order: '',
                orderFocus: true,
                barcode: '',
                barcodeFocus: '',
                dataList: [],
@@ -155,9 +154,10 @@
                messageText: '',
                title: '',
                content: '',
                barcodeFocus: false,
                barcodeFocus: true,
                matFocus: false,
                matData: ''
                matData: '',
                removeNum: 0
            }
        },
        onShow() {
@@ -168,6 +168,30 @@
            messageToggle(type) {
                this.msgType1 = type
                this.$refs.message.open()
            },
            // barcode input 事件
            barcodeInput() {
                // 不设置定时器 会出现扫入的字符串不全
                setTimeout(() => {
                    var len = this.barcode.length
                    this.focuss()
                }, 200)
            },
            // 托盘码有误重置
            barcodeFocuss() {
                let that = this;
                that.barcodeFocus = false;
                setTimeout(() => {
                    that.barcode = '';
                    that.barcodeFocus = true;
                }, 100);
            },
            // 商品光标清空重置
            focuss() {
                setTimeout(() => {
                    this.matnr = '';
                    this.matFocus = true;
                }, 100);
            },
            // 搜索物料
            findMat() {
@@ -202,6 +226,7 @@
                                events: {
                                    matList: function(data) {
                                        that.checkMat(data.data)
                                        that.focuss()
                                    },
                                },
                            });
@@ -355,6 +380,7 @@
            },
            // 列表移除按钮
            remove(item, i, type) {
                this.removeNum  = i
                this.msgType = type
                this.title = '警告'
                this.content = '是否移除当前商品!'
@@ -364,7 +390,7 @@
            removeConfirm(i) {
                this.messageText = "移除成功"
                this.messageToggle('success')
                this.dataList.splice(i, 1)
                this.dataList.splice(this.removeNum, 1)
            },
            reviseConfirm() {
                this.dataList[this.rowNum].anfme = this.count