#
whycq
2023-07-21 7438b52a180abe7e72d5be0302b89025973219e7
#
2个文件已修改
49 ■■■■■ 已修改文件
pages/AGV/AGVPakin.vue 19 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
pages/AGV/AGVPakinOn.vue 30 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
pages/AGV/AGVPakin.vue
@@ -2,6 +2,11 @@
    <view>
        <view class="code">
            <view class="item">
                <view class="code-decs">订单号:</view>
                <input type="text" placeholder=" 扫码 / 输入" v-model="orderNo" :focus="orderNoFocus"
                    @input="orderNoInput()">
            </view>
            <view class="item">
                <view class="code-decs">托盘码:</view>
                <input type="text" placeholder=" 扫码 / 输入" v-model="barcode" :focus="barcodeFocus"
                    @input="barcodeInput()">
@@ -141,6 +146,7 @@
                baseUrl: '',
                token: '',
                barcode: '',
                orderNo: '',
                dataList: [],
                count: 0,
                rowNum: '',
@@ -154,6 +160,7 @@
                content: '',
                barcodeFocus: true,
                matFocus: false,
                orderNoFocus: false,
                matData: '',
                removeNum: 0,
            }
@@ -171,6 +178,13 @@
                this.$refs.message.open()
            },
            // barcode input 事件
            orderNoInput() {
                // 不设置定时器 会出现扫入的字符串不全
                setTimeout(() => {
                    var len = this.orderNo.length
                    this.barcodeFocuss()
                }, 200)
            },
            barcodeInput() {
                // 不设置定时器 会出现扫入的字符串不全
                setTimeout(() => {
@@ -398,6 +412,7 @@
                uni.request({
                    url: that.baseUrl + '/agvMobile/comb/auth',
                    data: JSON.stringify({
                        orderNo: that.orderNo,
                        barcode: that.barcode,
                        combMats: that.dataList
                    }),
@@ -460,7 +475,7 @@
    @import url('../../static/css/wms.css/wms.css');
    .list:first-child {
        margin-top: 360rpx;
        margin-top: 460rpx;
    }
    .code {
        width: 100%;
@@ -505,7 +520,7 @@
        width: 100%;
        background-color: white;
        position: fixed;
        margin-top: 200rpx;
        margin-top: 300rpx;
        z-index: 9;
        /* border-top: 1px solid #DCDFE6; */
        text-align: center;
pages/AGV/AGVPakinOn.vue
@@ -2,6 +2,11 @@
    <view>
        <view class="code">
            <view class="item">
                <view class="code-decs">订单号:</view>
                <input type="text" placeholder=" 扫码 / 输入" v-model="orderNo" :focus="orderNoFocus"
                    @input="orderNoInput()">
            </view>
            <view class="item">
                <view class="code-decs">托盘码:</view>
                <input type="text" placeholder=" 扫码 / 输入" v-model="barcode" :focus="barcodeFocus"
                    @input="barcodeInput()">
@@ -144,6 +149,7 @@
                baseUrl: '',
                token: '',
                barcode: '',
                orderNo: '',
                stationCode: '',
                dataList: [],
                count: 0,
@@ -159,6 +165,7 @@
                barcodeFocus: true,
                stationCodeFocus: false,
                matFocus: false,
                orderNoFocus: false,
                matData: '',
                removeNum: 0,
                devNo: [],
@@ -194,6 +201,13 @@
                }, 200)
            },
            // 符合条件的跳转到下一栏目
            orderNoInput() {
                // 不设置定时器 会出现扫入的字符串不全
                setTimeout(() => {
                    var len = this.orderNo.length
                    this.barcodeFocuss()
                }, 200)
            },
            barcodeInput() {
                // 不设置定时器 会出现扫入的字符串不全
                setTimeout(() => {
@@ -210,6 +224,15 @@
                    }
                    this.stationCodeFocuss()
                }, 200)
            },
            // 托盘码有误重置
            barcodeFocuss() {
                let that = this;
                that.barcodeFocus = false;
                setTimeout(() => {
                    that.barcode = '';
                    that.barcodeFocus = true;
                }, 100);
            },
            // 暂存位有误重置
            stationCodeFocuss() {
@@ -423,6 +446,7 @@
                uni.request({
                    url: that.baseUrl + '/agvMobile/comb/auth',
                    data: JSON.stringify({
                        orderNo: that.orderNo,
                        barcode: that.barcode,
                        locno: that.stationCode,
                        combMats: that.dataList
@@ -549,7 +573,9 @@
<style>
    @import url('../../static/css/wms.css/wms.css');
    .list:first-child {
        margin-top: 540rpx;
    }
    .code {
        width: 100%;
        position: fixed;
@@ -593,7 +619,7 @@
        width: 100%;
        background-color: white;
        position: fixed;
        margin-top: 300rpx;
        margin-top: 400rpx;
        z-index: 9;
        /* border-top: 1px solid #DCDFE6; */
        text-align: center;