wjt
2024-06-25 244d89b41c0e0e995d38f635a126a0959b9ba25b
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
<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>