#
whycq
2024-07-12 8dce0c046351d793415c8e2ab42a2ab85fb7e3ba
#
2个文件已修改
13 ■■■■■ 已修改文件
pages/mat/matSelected.vue 4 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
pages/pakin/pakin.vue 9 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
pages/mat/matSelected.vue
@@ -44,7 +44,7 @@
                    maktx: null,
                    specs: null,
                    batch: null,
                    anfme: 0,
                    anfme: 1,
                },
                baseIP:'',
                basePORT:'',
@@ -62,7 +62,7 @@
            // 监听acceptDataFromOpenerPage事件,获取上一页面通过eventChannel传送到当前页面的数据
            eventChannel.on('mat', function(data) {
                that.mat = data.data
                that.mat.anfme = 0
                that.mat.anfme = 1
            })
            
            
pages/pakin/pakin.vue
@@ -22,7 +22,8 @@
            </view>
            <view class="item">
                <view class="code-decs">物料码:</view>
                <input type="text" placeholder=" 扫码 / 输入" v-model="matnr" :focus="matFocus" @input="findMat()">
                <input type="text" style="width: 350rpx;" placeholder=" 扫码 / 输入" v-model="matnr" :focus="matFocus" @input="findMat()">
                <uni-icons type="close" color="#c1c1c1" @click="clearMatnr"></uni-icons>
                <view class="item-right">
                    <button></button>
                    <text style="text-align: right;color: #409EFF;" @click="selectMat()">提取+</text>
@@ -190,6 +191,10 @@
        },
        methods: {
            back() { uni.navigateBack({}) },
            clearMatnr() {
                // this.matnr = ''
                this.focuss()
            },
            messageToggle(type) {
                this.msgType1 = type
                this.$refs.message.open()
@@ -222,7 +227,7 @@
            },
            // 商品光标清空重置
            focuss() {
                this.focus = false;
                this.matFocus = false;
                setTimeout(() => {
                    this.matnr = '';
                    this.matFocus = true;