<template>
|
<u-popup :show="show" @close="close" @open="open" :safeAreaInsetBottom="false" mode="bottom" round="10" closeable>
|
<view class="page-box">
|
<view class="title">
|
执法申请审批
|
</view>
|
<view class="border"></view>
|
<view class="padding">
|
<view>
|
<u-radio-group placement="row" v-model="form.checkStatus">
|
<u-radio active-color="#3EB47A" label="通过" name="1"></u-radio>
|
<u-radio active-color="#3EB47A" label="拒绝" name="-1"></u-radio>
|
</u-radio-group>
|
</view>
|
<view class="margin-top">
|
<u-textarea placeholder="请输入..." v-model="form.checkReason"></u-textarea>
|
</view>
|
</view>
|
<view class="down">
|
<view class="cancel button" @click="close">取消</view>
|
<view class="enter" @click="entery">确认</view>
|
</view>
|
</view>
|
</u-popup>
|
</template>
|
|
<script>
|
|
export default {
|
data() {
|
return {
|
show: false,
|
id: '',
|
form: {}
|
}
|
},
|
methods: {
|
open(id) {
|
this.form = {}
|
this.show = true
|
},
|
close(){
|
this.show = false
|
this.$emit('cancel')
|
},
|
entery(){
|
if(this.form.checkStatus == -1 && !this.form.checkReason) {
|
uni.showToast({
|
title: '请输入拒绝理由',
|
icon: 'none'
|
})
|
return
|
}
|
this.$emit('entery', this.form)
|
}
|
}
|
}
|
</script>
|
|
<style scoped lang="scss">
|
.page-box{
|
padding: 24rpx 0;
|
.title{
|
font-size: 36rpx;
|
font-weight: 700;
|
padding: 0 32rpx;
|
border-bottom: 2rpx solid #F4F4F4;
|
padding-bottom: 24rpx;
|
margin-bottom: 48rpx;
|
}
|
.padding{
|
padding: 0 24rpx;
|
}
|
.margin-top{
|
margin-top: 50rpx;
|
}
|
.down{
|
padding: 34rpx 30rpx 30rpx;
|
display: flex;
|
justify-content: space-between;
|
>view{
|
display: inline-block;
|
}
|
.button{
|
padding: 20rpx 40rpx;
|
background: #F7F7F7;
|
border-radius: 20rpx;
|
}
|
.enter{
|
width: 65%;
|
background: #1171E0;
|
color: white;
|
border-radius: 20rpx;
|
padding: 20rpx 40rpx;
|
text-align: center;
|
}
|
}
|
}
|
|
</style>
|