<template>
    <div>
        <el-dialog title="批量文书签章" :visible="true" width="600px" append-to-body :close-on-click-modal="false" 
            @close="handleClose">
            <div class="dialog-content dialog-office-batch">
                <div class="pt-8">
                    <div class="flex-row align-items-center justify-content-between mb-16 case-batch-num">
                        <span>选中<a>{{eventTraDialog.caseids.length}}</a>个案件，系统将对您选择的案件中，符合签字条件（已经完成在线签字）的调解协议文书发起批量电子签章！</span>
                    </div>
                    <el-collapse-transition>
                        <el-row :gutter="56">
                            <el-col :span="24">
                                <div class="flex-row-center align-items-center height-40 mb-8">
                                    <span class="tabs__search-criteria-title flex-shrink-0 pr-16 f18">设置是否进行文书的自动送达</span>
                                </div>
                            </el-col>
                            <el-col :span="24">
                                <div class="mb-24 officelist">
                                    <el-radio-group v-model="ObjectInfo.delivery">
                                        <el-radio label="1" border>自动送达</el-radio>
                                        <el-radio label="2" border>不自动送达（可单独发起送达）</el-radio>
                                    </el-radio-group>
                                </div>
                                    
                            </el-col>
                            
                            
                        </el-row>
                    </el-collapse-transition>
                </div>

            </div>
            <span slot="footer" class="dialog-footer">
                <el-button @click="handleClose()">取消</el-button>
                <el-button type="primary" @click="handleSubmit()">批量签章</el-button>
            </span>
        </el-dialog>
    </div>
</template>
<script>
import api from "@/services/caseManagement";
    export default {
        components: {
        },
        props: {
            eventTraDialog: {
                type: Object,
                default: () => {
                    return {}
                },
            },
        },
        data() {
            return {
                officeOptions:[{label:'调解告知书',value:'1'},{label:'调解申请书',value:'2'},
                {label:'送达地址确认书',value:'3'},{label:'调解笔录',value:'4'},{label:'调解协议',value:'5'}],
                ObjectInfo:{
                    methodIds:['调解告知书','调解申请书','送达地址确认书'],
                    users:'',
                    content:''
                },
                tableData:[],
                total:0,

            };
        },
        mounted () {
            
        },
        methods: {
            smsChange(){
                let jsonData = this.smsOptions.find(item=>{
                    return this.ObjectInfo.methodId == item.value
                })
                this.ObjectInfo.users = jsonData.users
                this.ObjectInfo.content = jsonData.content
            },

            handleClose() {
                this.$emit('update:eventTraDialog', null)
            },
        }
    };
</script>

<style scoped lang="scss">
.dialog-office-batch{
    padding: 16px 30px;
    max-height:500px;
    .tabs__search-criteria-title{
        width: 100%;
    }
    .case-batch-num{
        background-color: rgba(236, 238, 241, 0.8196078431);
        padding: 15px 20px;
        border-radius: 4px;
        a{font-size: 16px;font-weight: 500;color: #C66A5B;}
    }
    .officelist{
        background-color: rgba(236, 238, 241, 0.8196078431);
        padding: 20px 20px;
        .el-radio
        {
            width: 230px;
            margin: 10px;
        }
    }
    
}
</style>