<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>
|