<template>
    <div class="page">
        <LayoutTable :data='tableData' :config='tableConfig' />
    </div>
</template>

<script>
    import table from "@/assets/mixins/table";

    export default {
        mixins: [table],
        data() {
            return {
                config: {
                    search: [

                    ],
                    columns: [
                        {type: "selection", width: 60},
                                                {label: "主键ID", prop: "id", formatter: this.formatterString},
                        {label: "实施清单名称", prop: "eventName"},
                        {label: "实施清单编码", prop: "eventCode"},
                        {label: "申请人属性", prop: "applicantAttributes"},
                        {label: "申请人证件类型", prop: "applicantCardType"},
                        {label: "申请人姓名", prop: "applicantName"},
                        {label: "申请人证件号码", prop: "applicantCardNumbe"},
                        {label: "申请人手机号码", prop: "applicantPhoneNumber"},
                        {label: "申请人性别", prop: "applicantSex"},
                        {label: "机构名称", prop: "organizationName"},
                        {label: "机构地址", prop: "organizationAddress"},
                        {label: "机构性质", prop: "organizationStructure"},
                        {label: "机构证件类型", prop: "organizationCardType"},
                        {label: "机构证件编码", prop: "organizationCardNumber"},
                        {label: "机构代表人姓名", prop: "legalPerson"},
                        {label: "流程开始时间", prop: "processStartedTime", formatter: this.formatterDate},
                        {label: "流程结束时间", prop: "processStopTime", formatter: this.formatterDate},
                        {label: "地区编码", prop: "areaCode"},
                        {label: "部门编码", prop: "deptCode"},
                        {label: "办件状态", prop: "bizStatus"},
                        {label: "办件类型(默认0 网络办件)", prop: "doThingProperty"},
                        {label: "办件名称", prop: "affairName"},
                        {label: "申请方式默认 1 网上申请", prop: "applyType"},
                        {label: "是否收费", prop: "isCharge"},
                        {label: "申请件数；默认传1", prop: "applyNum"},
                        {label: "取件方式 默认1现场取件", prop: "pickupType"},
                        {label: "节点类型", prop: "nodeType"},
                        {label: "节点处理人姓名", prop: "curHandlerName"},
                        {label: "节点处理人id (默认-1)", prop: "addUserId"},
                        {label: "是否同意(默认 1是)", prop: "auditAdvice"},
                        {label: "拟办意见(默认 同意)", prop: "auditRemark"},
                        {label: "流程开始时间", prop: "genTime", formatter: this.formatterDate},
                        {label: "流程结束时间", prop: "completeTime", formatter: this.formatterDate},
                        {label: "是否推送（0 否 1是）", prop: "isReport"},
                        {label: "是否成功（0 否 1是）", prop: "isSuccess"},
                        {label: "推送失败原因", prop: "failReason"},
                        {label: "失败次数", prop: "failTimes"},
                        {label: "联系人姓名", prop: "contactName"},
                        {label: "联系人证件号码", prop: "contactIdCard"},
                        {label: "联系人证件类型", prop: "contactCardType"},
                        {label: "联系人联系方式", prop: "contactPhone"},
                        {label: "受理人姓名", prop: "acceptName"},
                        {label: "受理人身份证号码", prop: "acceptId"},
                        {label: "受理人手机号", prop: "acceptPhone"},
                        {label: "系统编码", prop: "systemCode"},
                        {label: "办件编码", prop: "officeCode"},
                        {label: "办件业务流水号", prop: "seriesNumber"},
                        {label: "流程状态名称", prop: "processStatusName"},
                        {label: "流程状态编码", prop: "processStatusCode"},
                        {
                            label: "操作",
                            width: 180,
                            formatter: row => {
                                return (
                                    <div><el-button type="primary" icon="el-icon-edit" round size='mini' onClick={()=>{this.toEdit(row)}}>编辑</el-button></div>
                            );
                            }
                        }
                    ]
                }
            };
        }
    };
</script>