|
@@ -21,7 +21,7 @@
|
|
<!-- 使用租户 -->
|
|
<!-- 使用租户 -->
|
|
|
|
|
|
<div class="hidden-content">
|
|
<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>
|
|
@keyup.enter.native="payCode" placeholder="扫码枪内容"></el-input>
|
|
<div v-show="isOpenCodeGun" class="code-scan-text">扫码枪已连接</div>
|
|
<div v-show="isOpenCodeGun" class="code-scan-text">扫码枪已连接</div>
|
|
<div v-show="!isOpenCodeGun" @click="setCodeGun" class="code-scan-text">点我扫码</div>
|
|
<div v-show="!isOpenCodeGun" @click="setCodeGun" class="code-scan-text">点我扫码</div>
|
|
@@ -382,7 +382,7 @@
|
|
...mapActions('common', ['setLocalVessels']),
|
|
...mapActions('common', ['setLocalVessels']),
|
|
...mapActions('user', ['getUserInfo','toSetShow']),
|
|
...mapActions('user', ['getUserInfo','toSetShow']),
|
|
payCode() {
|
|
payCode() {
|
|
- console.log("input", this.barCode)
|
|
|
|
|
|
+ console.log('input', this.barCode)
|
|
this.btnStatus = {
|
|
this.btnStatus = {
|
|
status1: false,
|
|
status1: false,
|
|
status2: false,
|
|
status2: false,
|
|
@@ -393,13 +393,12 @@
|
|
}
|
|
}
|
|
// let _userCompId = "2710b21efc1e4393930c5dc800010dc4"
|
|
// let _userCompId = "2710b21efc1e4393930c5dc800010dc4"
|
|
// let _qualityNo = "SGRK202112140060003"
|
|
// let _qualityNo = "SGRK202112140060003"
|
|
-
|
|
|
|
let _userCompId = this.barCode.split('&')[0]
|
|
let _userCompId = this.barCode.split('&')[0]
|
|
let _qualityNo = this.barCode.split('&')[1]
|
|
let _qualityNo = this.barCode.split('&')[1]
|
|
let _userHouseId = this.barCode.split('&')[2]
|
|
let _userHouseId = this.barCode.split('&')[2]
|
|
this.cangid = 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 = {
|
|
this.tmp = {
|
|
compId: _userCompId,
|
|
compId: _userCompId,
|
|
@@ -410,6 +409,7 @@
|
|
//判断当前账号公司是否是二维码上公司
|
|
//判断当前账号公司是否是二维码上公司
|
|
if (this.userINfo.userCompany != _userCompId) {
|
|
if (this.userINfo.userCompany != _userCompId) {
|
|
this.$message.error('当前身份不可操作');
|
|
this.$message.error('当前身份不可操作');
|
|
|
|
+ this.barCode = ''
|
|
return
|
|
return
|
|
}
|
|
}
|
|
//判断二维码上的仓库当前账号是否有权限操作
|
|
//判断二维码上的仓库当前账号是否有权限操作
|
|
@@ -551,6 +551,7 @@
|
|
this.getQRCodeData(this.tmp)
|
|
this.getQRCodeData(this.tmp)
|
|
}else{
|
|
}else{
|
|
this.$message.error('当前身份不可操作');
|
|
this.$message.error('当前身份不可操作');
|
|
|
|
+ this.barCode = ''
|
|
return
|
|
return
|
|
}
|
|
}
|
|
|
|
|
|
@@ -594,14 +595,15 @@
|
|
this.$refs['hiddenFocus'].focus()
|
|
this.$refs['hiddenFocus'].focus()
|
|
},
|
|
},
|
|
focus() {
|
|
focus() {
|
|
- console.log("当前焦点状态")
|
|
|
|
|
|
+ console.log('当前焦点状态')
|
|
|
|
+ this.barCode = ''
|
|
this.isOpenCodeGun = true
|
|
this.isOpenCodeGun = true
|
|
},
|
|
},
|
|
blur() {
|
|
blur() {
|
|
- console.log("当前已失去焦点状态")
|
|
|
|
|
|
+ console.log('当前已失去焦点状态')
|
|
this.isOpenCodeGun = false
|
|
this.isOpenCodeGun = false
|
|
},
|
|
},
|
|
- goToPage(type) {debugger
|
|
|
|
|
|
+ goToPage(type) {
|
|
this.barCode = ''
|
|
this.barCode = ''
|
|
let _url = ''
|
|
let _url = ''
|
|
if (type === 1) {
|
|
if (type === 1) {
|