|
|
|
|
@ -94,20 +94,22 @@
|
|
|
|
|
</view>
|
|
|
|
|
</view>
|
|
|
|
|
|
|
|
|
|
<!-- 审核 -->
|
|
|
|
|
<view class="checkforms dbitem" v-if="info.audit_status==0&&isCheck" style="padding-top:30rpx">
|
|
|
|
|
<uni-forms ref="formdata" :model="checkForm" :rules="rules" labelWidth="100px">
|
|
|
|
|
<uni-forms-item label="状态" required name="status">
|
|
|
|
|
<uni-data-select v-model="checkForm.status" :localdata="statusList">
|
|
|
|
|
</uni-data-select>
|
|
|
|
|
</uni-forms-item>
|
|
|
|
|
<uni-forms-item label="备注">
|
|
|
|
|
<uni-easyinput type="textarea" v-model="checkForm.reason" placeholder="请输入备注" />
|
|
|
|
|
</uni-forms-item>
|
|
|
|
|
|
|
|
|
|
</uni-forms>
|
|
|
|
|
<button type="primary" style="background-color: #044ed7;" @click="checkSubmit">审核</button>
|
|
|
|
|
|
|
|
|
|
<!-- 审核 -->
|
|
|
|
|
<view class="dbtext" v-if="info.audit_status==0">审核</view>
|
|
|
|
|
<view class="checkforms dbitem" style="padding-top:30rpx" v-if="info.audit_status==0&&isCheck">
|
|
|
|
|
<uni-forms ref="formdata" :model="checkForm" :rules="rules" labelWidth="100px" >
|
|
|
|
|
<uni-forms-item label="状态" required name="status">
|
|
|
|
|
<uni-data-checkbox v-model="checkForm.status" :localdata="statusList"/>
|
|
|
|
|
</uni-forms-item>
|
|
|
|
|
<uni-forms-item label="备注">
|
|
|
|
|
<uni-easyinput type="textarea" v-model="checkForm.reason" placeholder="请输入备注" />
|
|
|
|
|
</uni-forms-item>
|
|
|
|
|
|
|
|
|
|
</uni-forms>
|
|
|
|
|
<button type="primary" style="background-color: #044ed7;" @click="checkSubmit">审核</button>
|
|
|
|
|
</view>
|
|
|
|
|
<view class="checkforms dbitem" style="padding-top:30rpx" v-if="info.audit_status==0&&!isCheck">
|
|
|
|
|
{{checkText}}
|
|
|
|
|
</view>
|
|
|
|
|
|
|
|
|
|
</view>
|
|
|
|
|
@ -123,7 +125,18 @@
|
|
|
|
|
data() {
|
|
|
|
|
return {
|
|
|
|
|
id: "",
|
|
|
|
|
info: {},
|
|
|
|
|
info: {},
|
|
|
|
|
checkText:'',
|
|
|
|
|
checkLevel:[{
|
|
|
|
|
id:1,
|
|
|
|
|
value:'请等待一级审核完成'
|
|
|
|
|
},{
|
|
|
|
|
id:2,
|
|
|
|
|
value:'请等待二级审核完成'
|
|
|
|
|
},{
|
|
|
|
|
id:3,
|
|
|
|
|
value:'请等待三级审核完成'
|
|
|
|
|
}],
|
|
|
|
|
checkForm: {
|
|
|
|
|
level: "",
|
|
|
|
|
status: "",
|
|
|
|
|
@ -139,10 +152,7 @@
|
|
|
|
|
}]
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
statusList: [{
|
|
|
|
|
value: 0,
|
|
|
|
|
text: "待审核"
|
|
|
|
|
},
|
|
|
|
|
statusList: [
|
|
|
|
|
{
|
|
|
|
|
value: 1,
|
|
|
|
|
text: "通过"
|
|
|
|
|
@ -170,31 +180,35 @@
|
|
|
|
|
checkSubmit() {
|
|
|
|
|
let that = this
|
|
|
|
|
console.log(that.checkForm)
|
|
|
|
|
// return
|
|
|
|
|
this.util.request({
|
|
|
|
|
api: '/api/admin/visit_audit/save',
|
|
|
|
|
method: "POST",
|
|
|
|
|
requestType:'bd',
|
|
|
|
|
data: that.checkForm,
|
|
|
|
|
utilSuccess: function(res) {
|
|
|
|
|
uni.showToast({
|
|
|
|
|
title: res.msg,
|
|
|
|
|
duration: 2000,
|
|
|
|
|
icon: 'none'
|
|
|
|
|
})
|
|
|
|
|
// uni.removeStorageSync('formData')
|
|
|
|
|
uni.navigateTo({
|
|
|
|
|
url:'/pages/bd/record?type=mycheck'
|
|
|
|
|
})
|
|
|
|
|
},
|
|
|
|
|
utilFail: function(res) {
|
|
|
|
|
uni.showToast({
|
|
|
|
|
title: res.errmsg,
|
|
|
|
|
duration: 2000,
|
|
|
|
|
icon: 'none'
|
|
|
|
|
})
|
|
|
|
|
}
|
|
|
|
|
})
|
|
|
|
|
this.$refs['formdata'].validate().then(res => {
|
|
|
|
|
this.util.request({
|
|
|
|
|
api: '/api/admin/visit_audit/save',
|
|
|
|
|
method: "POST",
|
|
|
|
|
requestType:'bd',
|
|
|
|
|
data: that.checkForm,
|
|
|
|
|
utilSuccess: function(res) {
|
|
|
|
|
uni.showToast({
|
|
|
|
|
title: res.msg,
|
|
|
|
|
duration: 2000,
|
|
|
|
|
icon: 'none'
|
|
|
|
|
})
|
|
|
|
|
// uni.removeStorageSync('formData')
|
|
|
|
|
uni.navigateTo({
|
|
|
|
|
url:'/pages/bd/record?type=mycheck'
|
|
|
|
|
})
|
|
|
|
|
},
|
|
|
|
|
utilFail: function(res) {
|
|
|
|
|
uni.showToast({
|
|
|
|
|
title: res.errmsg,
|
|
|
|
|
duration: 2000,
|
|
|
|
|
icon: 'none'
|
|
|
|
|
})
|
|
|
|
|
}
|
|
|
|
|
})
|
|
|
|
|
}).catch(err => {
|
|
|
|
|
console.log('err', err);
|
|
|
|
|
})
|
|
|
|
|
|
|
|
|
|
},
|
|
|
|
|
loadDetail() {
|
|
|
|
|
let that = this
|
|
|
|
|
@ -208,13 +222,26 @@
|
|
|
|
|
utilSuccess: function(res) {
|
|
|
|
|
that.info = res
|
|
|
|
|
for (let item of res.audit) {
|
|
|
|
|
if(that.userId==item.audit_admin_id){
|
|
|
|
|
that.checkForm.level = item.level
|
|
|
|
|
that.checkForm.id = item.id
|
|
|
|
|
that.checkForm.audit_admin_id = item.audit_admin_id
|
|
|
|
|
that.isCheck = true
|
|
|
|
|
return
|
|
|
|
|
if(item.status==0){
|
|
|
|
|
if(that.userId==item.audit_admin_id){
|
|
|
|
|
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
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
utilFail: function(res) {
|
|
|
|
|
|