|
|
|
|
@ -1,18 +1,26 @@
|
|
|
|
|
<template>
|
|
|
|
|
<div>
|
|
|
|
|
<xy-dialog ref="dialog" :is-show.sync="isShow" type="form" :title="`${form.type_text}`" :form="formData">
|
|
|
|
|
<xy-dialog ref="dialog" :width="70" :is-show.sync="isShow" type="form" :title="`${form.type_text}`" :form="formData">
|
|
|
|
|
<template v-slot:logs>
|
|
|
|
|
<el-timeline :reverse="true">
|
|
|
|
|
<el-timeline-item
|
|
|
|
|
v-for="(item, index) in form.logs"
|
|
|
|
|
:key="index"
|
|
|
|
|
:timestamp="item.created_at">
|
|
|
|
|
{{item.remark}}
|
|
|
|
|
</el-timeline-item>
|
|
|
|
|
</el-timeline>
|
|
|
|
|
</template>
|
|
|
|
|
<template v-slot:codeForm v-if="formDataType=='coderecord'">
|
|
|
|
|
<div class="xy-table-item">
|
|
|
|
|
<div class="xy-table-item-label" style="font-size: 32px;width: 230px!important;">
|
|
|
|
|
核销码:
|
|
|
|
|
</div>
|
|
|
|
|
<div class="xy-table-item-content">
|
|
|
|
|
<el-input style="font-size: 32px;padding: 25px;width:300px" v-model="codeForm.code" ref="codeInput" placeholder="请输入核销码或扫码"></el-input>
|
|
|
|
|
<el-input style="font-size: 32px;padding: 25px;width:400px" v-model="codeForm.code" ref="codeInput" placeholder="请输入核销码或扫码"></el-input>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
</template>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<template v-slot:visitinfo>
|
|
|
|
|
<div style="width:600px">
|
|
|
|
|
拜访信息
|
|
|
|
|
@ -270,6 +278,9 @@
|
|
|
|
|
import {
|
|
|
|
|
save
|
|
|
|
|
} from "@/api/visit/check.js"
|
|
|
|
|
import {
|
|
|
|
|
show
|
|
|
|
|
} from "@/api/visit/record.js"
|
|
|
|
|
import {
|
|
|
|
|
cancelCode
|
|
|
|
|
} from "@/api/gate"
|
|
|
|
|
@ -336,7 +347,11 @@ import Cookies from 'js-cookie'
|
|
|
|
|
{
|
|
|
|
|
label: "证件类型",
|
|
|
|
|
// width: 180,
|
|
|
|
|
prop:'credent',
|
|
|
|
|
width: 200,
|
|
|
|
|
formatter(cell,data,val){
|
|
|
|
|
return val==1?'身份证':'护照'
|
|
|
|
|
}
|
|
|
|
|
}, {
|
|
|
|
|
label: "证件号码",
|
|
|
|
|
prop: "idcard",
|
|
|
|
|
@ -376,29 +391,8 @@ import Cookies from 'js-cookie'
|
|
|
|
|
if (newVal) {
|
|
|
|
|
let that = this
|
|
|
|
|
if (this.formDataType == 'checkrecord') {
|
|
|
|
|
this.checkForm.visit_id = this.form.id
|
|
|
|
|
for (let item of that.form.audit) {
|
|
|
|
|
if(item.status==0){
|
|
|
|
|
if (item.audit_admin_id == that.userId) {
|
|
|
|
|
that.checkForm.level = item.level
|
|
|
|
|
that.checkForm.id = item.id
|
|
|
|
|
that.checkForm.audit_admin_id = item.audit_admin_id
|
|
|
|
|
that.isCheck = true
|
|
|
|
|
return
|
|
|
|
|
}else{
|
|
|
|
|
that.checkLevel.map(item1=>{
|
|
|
|
|
if(item.level==item1.id){
|
|
|
|
|
that.checkText = item1.value
|
|
|
|
|
}
|
|
|
|
|
})
|
|
|
|
|
that.isCheck = false
|
|
|
|
|
return
|
|
|
|
|
}
|
|
|
|
|
}else{
|
|
|
|
|
that.isCheck = false
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
this.checkForm.visit_id = this.id
|
|
|
|
|
this.getDetail()
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
if (this.formDataType == 'coderecord') {
|
|
|
|
|
@ -428,7 +422,37 @@ import Cookies from 'js-cookie'
|
|
|
|
|
const res = await getInfo()
|
|
|
|
|
this.userId = res.id
|
|
|
|
|
},
|
|
|
|
|
async getDetail() {
|
|
|
|
|
const res = await show({
|
|
|
|
|
id: this.id
|
|
|
|
|
})
|
|
|
|
|
let that = this
|
|
|
|
|
this.form = res
|
|
|
|
|
for (let item of that.form.audit) {
|
|
|
|
|
if(item.status==0){
|
|
|
|
|
if (item.audit_admin_id == that.userId) {
|
|
|
|
|
that.checkForm.level = item.level
|
|
|
|
|
that.checkForm.id = item.id
|
|
|
|
|
that.checkForm.audit_admin_id = item.audit_admin_id
|
|
|
|
|
that.isCheck = true
|
|
|
|
|
return
|
|
|
|
|
}else{
|
|
|
|
|
that.checkLevel.map(item1=>{
|
|
|
|
|
if(item.level==item1.id){
|
|
|
|
|
that.checkText = item1.value
|
|
|
|
|
}
|
|
|
|
|
})
|
|
|
|
|
that.isCheck = false
|
|
|
|
|
return
|
|
|
|
|
}
|
|
|
|
|
}else{
|
|
|
|
|
that.isCheck = false
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
},
|
|
|
|
|
reset() {
|
|
|
|
|
this.id=''
|
|
|
|
|
this.formDataType = ''
|
|
|
|
|
this.checkForm = {}
|
|
|
|
|
this.check_admin_name = ''
|
|
|
|
|
|