|
|
|
|
@ -19,7 +19,7 @@
|
|
|
|
|
<div>
|
|
|
|
|
核验销码:
|
|
|
|
|
<el-input clearable ref='codeInput' size="mini" placeholder="请输入核销码或扫码" v-model="select.code"
|
|
|
|
|
style="width: 160px;margin-right: 10px;"></el-input>
|
|
|
|
|
style="width: 160px;margin-right: 10px;" @change='getList'></el-input>
|
|
|
|
|
</div>
|
|
|
|
|
<div>
|
|
|
|
|
身份证件:
|
|
|
|
|
@ -48,12 +48,12 @@
|
|
|
|
|
</div>
|
|
|
|
|
</template>
|
|
|
|
|
<script>
|
|
|
|
|
import Cookies from 'js-cookie'
|
|
|
|
|
import Cookies from 'js-cookie'
|
|
|
|
|
import axios from 'axios'
|
|
|
|
|
import showVisit from '@/views/visit/component/showVisit'
|
|
|
|
|
import {
|
|
|
|
|
getList,
|
|
|
|
|
getUserList,
|
|
|
|
|
getIdcard
|
|
|
|
|
getUserList
|
|
|
|
|
} from '@/api/gate'
|
|
|
|
|
export default {
|
|
|
|
|
components: {
|
|
|
|
|
@ -136,14 +136,17 @@
|
|
|
|
|
this.$refs['showVisit'].form = this.data[0]
|
|
|
|
|
this.$refs['showVisit'].formDataType = 'coderecord'
|
|
|
|
|
this.$refs['showVisit'].gateAdminId = this.gateAdminId
|
|
|
|
|
this.$refs['showVisit'].isShow = true
|
|
|
|
|
this.$refs['showVisit'].isShow = true
|
|
|
|
|
return
|
|
|
|
|
} else {
|
|
|
|
|
this.$successMessage(k.audit_status_text, '', 'success')
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
} else {
|
|
|
|
|
this.$successMessage("未查询到记录", '', 'warning')
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
this.select.code = ''
|
|
|
|
|
this.select.idcard = ''
|
|
|
|
|
},
|
|
|
|
|
async getUserList() {
|
|
|
|
|
this.gateUser = Cookies.get("gateUser") ? JSON.parse(Cookies.get("gateUser")) : ''
|
|
|
|
|
@ -182,19 +185,28 @@
|
|
|
|
|
this.gateShow = false
|
|
|
|
|
},
|
|
|
|
|
getIdcard() {
|
|
|
|
|
let that = this
|
|
|
|
|
this.$jsonp(
|
|
|
|
|
'http://127.0.0.1:24010/ZKIDROnline/ScanReadIdCardInfo?OP-DEV=1&CMD-URL=4&REPEAT=1&READTYPE=1'
|
|
|
|
|
)
|
|
|
|
|
.then((res) => {
|
|
|
|
|
let that = this
|
|
|
|
|
axios.get('https://127.0.0.1:24011/ZKIDROnline/ScanReadIdCardInfo?OP-DEV=1&CMD-URL=4&REPEAT=1&READTYPE=1',{
|
|
|
|
|
'headers':{
|
|
|
|
|
"Content-Type":'application/json'
|
|
|
|
|
}
|
|
|
|
|
})
|
|
|
|
|
.then(res=>{
|
|
|
|
|
console.log(res)
|
|
|
|
|
that.select.idcard = res.Certificate.IDNumber
|
|
|
|
|
that.getList()
|
|
|
|
|
})
|
|
|
|
|
.catch((err) => {
|
|
|
|
|
console.log(err)
|
|
|
|
|
this.$successMessage(err.statusText, '', 'warning')
|
|
|
|
|
})
|
|
|
|
|
console.log(res.data)
|
|
|
|
|
if(!res.data){
|
|
|
|
|
|
|
|
|
|
return
|
|
|
|
|
}
|
|
|
|
|
let data1 = res.data?res.data.split('"IDNumber"'):''
|
|
|
|
|
let data2= data1[1].split(",")
|
|
|
|
|
let data3 =data2[0].replace(/[^\d]/g, "")
|
|
|
|
|
that.select.idcard = data3
|
|
|
|
|
that.getList()
|
|
|
|
|
}).catch(err=>{
|
|
|
|
|
console.log(err)
|
|
|
|
|
this.$successMessage(err.statusText, '', 'warning')
|
|
|
|
|
})
|
|
|
|
|
},
|
|
|
|
|
screen() {
|
|
|
|
|
let element = document.documentElement;
|
|
|
|
|
|