#
whycq
2023-04-11 28a1197bac94552ff4b0353fa7654a7ee5ee885f
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
<template>
    <view >
        <scroll-view scroll-y catch:touchmove="touchmove">
            <view class="square-2">
                <view class="square-title">
                    <view class="title-sign"><view class="sign"></view></view>
                    <view class="title-text"><text>原托盘码</text></view>
                </view>
                <view class="square-content">
                    <view class="content-input">
                        <input readonly="value" v-model="barcode" type="text" placeholder="扫码 / 输入" maxlength="8"
                        :focus="barcodeFocus" @input="nextInput">
                        <uni-icons type="closeempty" size="20" color="#dadada" @click="removeBarcode()"></uni-icons>
                    </view>
                </view>
            </view>
            <view class="square-2">
                <view class="square-title">
                    <view class="title-sign"><view class="sign"></view></view>
                    <view class="title-text"><text>转换托盘码</text></view>
                </view>
                <view class="square-content">
                    <view class="content-input">
                        <input v-model="matnrId" type="text" placeholder="扫码 / 输入" @input="findMat()"
                        :focus="focus"@focus="empty()">
                         <!-- :focus="focus" @blur="clear "> -->
                        <!-- @focus="focuss" -->
                        <uni-icons type="closeempty" size="20" color="#dadada" @click="foucss()"></uni-icons>
                    </view>
                </view>
            </view>
        </scroll-view>
        <view class="footer flex justify-around">
            <view>
                <button class="cu-btn lg" @click="resst()">重置</button>
            </view>
            <view>
                <button class="cu-btn lg pakin-btn bg-blue" @click="comb()">组托</button>
            </view>
        </view>
    </view>
</template>
 
<script>
    import permision from "@/common/permission.js"
    export default {
        data() {
            return {
                commonUrl:null,
                barcode: '',
                barcodeFocus:true,
                focus:false,
                hide:true,
                msgType: 'success',
                messageText: '这是一条成功提示',
                
            }
        },
        mounted(){
            const UIP = uni.getStorageSync('UIP');
            this.baseIP = UIP;
            const UPORT = uni.getStorageSync('UPORT');
            this.basePORT = UPORT
            const PROJ = uni.getStorageSync('UPROJ');
            this.baseUrl = PROJ
            this.getUrl()
        },
        onLoad() {
            // #ifdef APP
            setInterval(()=>{
                if (this.hide) {
                    uni.hideKeyboard()
                } else {
                    
                }
            },20)
            // #endif
        },
        methods: {
            // 获取url
            getUrl() {
                this.commonUrl = this.baseHttp + this.baseIP + ':' +this.basePORT + "/" +this.baseUrl
            },
        }
    }
</script>
 
 
 
<style>
    .pakin-btn {
        background-color: #1E9FFF;
    }
</style>