#
Your Name
2022-08-16 0cdc24ed926ec628d932027fd4aa7af8d0e5ae86
#
2个文件已修改
16 ■■■■■ 已修改文件
pages/basics/matQuery.vue 8 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
pages/basics/pakin.vue 8 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
pages/basics/matQuery.vue
@@ -15,14 +15,14 @@
                    <view class="text-title">{{matData.specs}}</view>
                </view>
                <view class="text-box">
                    <view class="text-title"><text>序列号</text></view>
                    <view class="text-title"><text>批号</text></view>
                    <view class="text-title"><input type="text" v-model="matData.batch"></view>
                </view>
                <view class="text-box">
                    <view class="text-title"><text>数量</text></view>
                    <view class="text-title">
                        <view>
                            <uni-number-box v-model="matData.anfme" :max="9999" color="#747474"  @change="changeValue"/>
                            <uni-number-box v-model="matData.anfme" :max="9999" color="#747474" />
                        </view>
                    </view>
                </view>
@@ -63,10 +63,8 @@
            eventChannel.on('matData', function(data) {
            that.matData = data.data
            })
        },
        onShow() {
            this.matData.anfme = 0
        },
        methods: {
            blur() {
pages/basics/pakin.vue
@@ -8,8 +8,8 @@
                </view>
                <view class="square-content">
                    <view class="content-input">
                        <input v-model="barcode" type="text" placeholder="扫码 / 输入" maxlength="10"
                        :focus="barcodeFocus" @confirm="barcodeInput()" placeholder-style="line-height:  85rpx;">
                        <input v-model="barcode" type="text" placeholder="扫码 / 输入"
                        :focus="barcodeFocus" @input="barcodeInput()" placeholder-style="line-height:  85rpx;">
                        <uni-icons type="closeempty" size="20" color="#dadada" @click="removeBarcode()"></uni-icons>
                    </view>
                </view>
@@ -158,6 +158,7 @@
            },
            // barcode input 事件
            barcodeInput() {
                console.log(1)
                // 不设置定时器 会出现扫入的字符串不全
                setTimeout(()=>{
                    var len = this.barcode.length
@@ -173,14 +174,12 @@
            },
            // 托盘码有误重置
            barcodeFocuss() {
                // #ifdef APP
                let that = this;
                that.barcodeFocus = false;
                setTimeout(()=>{
                    that.barcode = '';
                    that.barcodeFocus = true;
                }, 100);
                // #endif
            },
            // 商品光标清空重置
            focuss() {
@@ -312,7 +311,6 @@
                                    // 为指定事件添加一个监听器,获取被打开页面传送到当前页面的数据
                                    matList: function(data) {
                                        that.matList.push(data.data)
                                        console.log(that.matList)
                                    },
                                },
                                success: function(res) {