|
@@ -21,7 +21,7 @@
|
|
|
<!-- 使用租户 -->
|
|
|
|
|
|
<div class="hidden-content">
|
|
|
- <el-input ref="hiddenFocus" type="password" class="input-Style" v-model="barCode" size="small" @focus="focus" @blur="blur" autocomplete="new-password"
|
|
|
+ <el-input ref="hiddenFocus" type="password" class="input-Style" v-model="barCode" size="small" @focus="focus" @blur="blur" autocomplete="off"
|
|
|
@keyup.enter.native="payCode" placeholder="扫码枪内容"></el-input>
|
|
|
<div v-show="isOpenCodeGun" class="code-scan-text">扫码枪已连接</div>
|
|
|
<div v-show="!isOpenCodeGun" @click="setCodeGun" class="code-scan-text">点我扫码</div>
|
|
@@ -382,7 +382,7 @@
|
|
|
...mapActions('common', ['setLocalVessels']),
|
|
|
...mapActions('user', ['getUserInfo','toSetShow']),
|
|
|
payCode() {
|
|
|
- console.log("input", this.barCode)
|
|
|
+ console.log('input', this.barCode)
|
|
|
this.btnStatus = {
|
|
|
status1: false,
|
|
|
status2: false,
|
|
@@ -393,13 +393,13 @@
|
|
|
}
|
|
|
// let _userCompId = "2710b21efc1e4393930c5dc800010dc4"
|
|
|
// let _qualityNo = "SGRK202112140060003"
|
|
|
-
|
|
|
+ debugger
|
|
|
let _userCompId = this.barCode.split('&')[0]
|
|
|
let _qualityNo = this.barCode.split('&')[1]
|
|
|
let _userHouseId = this.barCode.split('&')[2]
|
|
|
this.cangid = this.barCode.split('&')[2]
|
|
|
- if(_userCompId.indexOf(",") != -1){
|
|
|
- _userCompId = _userCompId.split(",")[1]
|
|
|
+ if(_userCompId.indexOf(',') != -1){
|
|
|
+ _userCompId = _userCompId.split(',')[1]
|
|
|
}
|
|
|
this.tmp = {
|
|
|
compId: _userCompId,
|
|
@@ -558,6 +558,7 @@
|
|
|
},
|
|
|
// 二维码获取数据
|
|
|
async getQRCodeData(tmp) {
|
|
|
+ debugger
|
|
|
await getQRCodeData(tmp)
|
|
|
.toPromise()
|
|
|
.then((response) => {
|
|
@@ -594,11 +595,11 @@
|
|
|
this.$refs['hiddenFocus'].focus()
|
|
|
},
|
|
|
focus() {
|
|
|
- console.log("当前焦点状态")
|
|
|
+ console.log('当前焦点状态')
|
|
|
this.isOpenCodeGun = true
|
|
|
},
|
|
|
blur() {
|
|
|
- console.log("当前已失去焦点状态")
|
|
|
+ console.log('当前已失去焦点状态')
|
|
|
this.isOpenCodeGun = false
|
|
|
},
|
|
|
goToPage(type) {debugger
|