|
|
|
|
@ -1,6 +1,18 @@
|
|
|
|
|
<template>
|
|
|
|
|
<div>
|
|
|
|
|
<xy-dialog ref="dialog" :is-show.sync="isShow" type="form" :title="`${form.type_text}`" :form="formData">
|
|
|
|
|
<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>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
</template>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<template v-slot:visitinfo>
|
|
|
|
|
<div style="width:600px">
|
|
|
|
|
拜访信息
|
|
|
|
|
@ -207,7 +219,7 @@
|
|
|
|
|
审核
|
|
|
|
|
</div>
|
|
|
|
|
</template>
|
|
|
|
|
<template v-slot:checkForm v-if="formDataType=='checkrecord'&&isCheck">
|
|
|
|
|
<template v-slot:checkForm v-if="form.audit_status==0&&isCheck">
|
|
|
|
|
<el-form-item prop='checkForm.status' style="margin-bottom:20px">
|
|
|
|
|
<div class="xy-table-item">
|
|
|
|
|
<div class="xy-table-item-label">状态:
|
|
|
|
|
@ -220,21 +232,6 @@
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
</el-form-item>
|
|
|
|
|
<!-- <el-form-item prop='checkForm.status' style="margin-bottom:20px">
|
|
|
|
|
<div class="xy-table-item">
|
|
|
|
|
<div class="xy-table-item-label">审核:
|
|
|
|
|
</div>
|
|
|
|
|
<div class="xy-table-item-content">
|
|
|
|
|
<el-select v-model="checkForm.level" @change="selectLevel" placeholder="请选择" style="width:200px;margin-right:10px">
|
|
|
|
|
<el-option v-for="(item,index) in form.visit_area.audit_admin" :key="item.level" :label="item.type_name" :value="item.level">
|
|
|
|
|
</el-option>
|
|
|
|
|
</el-select>
|
|
|
|
|
<span>
|
|
|
|
|
{{check_admin_name}}
|
|
|
|
|
</span>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
</el-form-item> -->
|
|
|
|
|
<el-form-item prop='checkForm.reason' style="margin-bottom:20px">
|
|
|
|
|
<div class="xy-table-item">
|
|
|
|
|
<div class="xy-table-item-label">
|
|
|
|
|
@ -245,18 +242,16 @@
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
</el-form-item>
|
|
|
|
|
</template>
|
|
|
|
|
|
|
|
|
|
<template v-slot:checkText v-if="form.audit_status==0&&!isCheck">
|
|
|
|
|
<div class="checkforms dbitem" style="padding:30rpx">
|
|
|
|
|
{{checkText}}
|
|
|
|
|
</div>
|
|
|
|
|
</template>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<template v-slot:codeForm v-if="formDataType=='coderecord'">
|
|
|
|
|
<div class="xy-table-item">
|
|
|
|
|
<div class="xy-table-item-label">
|
|
|
|
|
核销码:
|
|
|
|
|
</div>
|
|
|
|
|
<div class="xy-table-item-content">
|
|
|
|
|
<el-input v-model="codeForm.code" ref="codeInput" placeholder="请输入核销码或扫码" style="width:300px"></el-input>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
</template>
|
|
|
|
|
|
|
|
|
|
<template v-slot:footerContent>
|
|
|
|
|
<div>
|
|
|
|
|
@ -290,7 +285,8 @@ import Cookies from 'js-cookie'
|
|
|
|
|
id: '',
|
|
|
|
|
userId: '',
|
|
|
|
|
formDataType: '',
|
|
|
|
|
formData: {
|
|
|
|
|
formData: {
|
|
|
|
|
codeForm: {},
|
|
|
|
|
visitinfo: "",
|
|
|
|
|
date: "",
|
|
|
|
|
visit_time_id: "",
|
|
|
|
|
@ -315,12 +311,14 @@ import Cookies from 'js-cookie'
|
|
|
|
|
accept_goods_admin_id: "",
|
|
|
|
|
|
|
|
|
|
checkRecord: '',
|
|
|
|
|
checkForm: {},
|
|
|
|
|
codeForm: {}
|
|
|
|
|
checkForm: {},
|
|
|
|
|
checkText:''
|
|
|
|
|
|
|
|
|
|
},
|
|
|
|
|
form: {},
|
|
|
|
|
checkForm: {}, //审核
|
|
|
|
|
checkForm: {
|
|
|
|
|
status:1
|
|
|
|
|
}, //审核
|
|
|
|
|
codeForm: {}, // 核验
|
|
|
|
|
codeType: '',
|
|
|
|
|
gateAdminId: '',
|
|
|
|
|
@ -345,10 +343,7 @@ import Cookies from 'js-cookie'
|
|
|
|
|
width: 200
|
|
|
|
|
}
|
|
|
|
|
],
|
|
|
|
|
statusList: [{
|
|
|
|
|
id: 0,
|
|
|
|
|
value: "待审核"
|
|
|
|
|
},
|
|
|
|
|
statusList: [
|
|
|
|
|
{
|
|
|
|
|
id: 1,
|
|
|
|
|
value: "通过"
|
|
|
|
|
@ -358,6 +353,17 @@ import Cookies from 'js-cookie'
|
|
|
|
|
value: "驳回"
|
|
|
|
|
},
|
|
|
|
|
],
|
|
|
|
|
checkLevel:[{
|
|
|
|
|
id:1,
|
|
|
|
|
value:'请等待一级审核完成'
|
|
|
|
|
},{
|
|
|
|
|
id:2,
|
|
|
|
|
value:'请等待二级审核完成'
|
|
|
|
|
},{
|
|
|
|
|
id:3,
|
|
|
|
|
value:'请等待三级审核完成'
|
|
|
|
|
}],
|
|
|
|
|
checkText:'',
|
|
|
|
|
isCheck:false
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
@ -371,15 +377,25 @@ import Cookies from 'js-cookie'
|
|
|
|
|
let that = this
|
|
|
|
|
if (this.formDataType == 'checkrecord') {
|
|
|
|
|
this.checkForm.visit_id = this.form.id
|
|
|
|
|
for (let item of that.form.audit) {
|
|
|
|
|
console.log('item', item.audit_admin_id)
|
|
|
|
|
if (item.audit_admin_id == that.userId) {
|
|
|
|
|
console.log(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
|
|
|
|
|
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
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|