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


        <drawer-show ref="drawerform" @ok="getData" />
    </div>
</template>

<script>
    /** 表单弹出框模式需引入 */
    import drawerShow from "./drawershow";
    import table from "@/assets/mixins/table";
    export default {
        name: "PhQueueList",
        components: {
            drawerShow
},
        mixins: [table],
        created() {
        },
        methods: {
            /** 重写新增方法 */
            toAdd(row) {
                this.$refs.drawerform.add(row);
            },
            /** 重写编辑方法 */
            toEdit(row) {
                this.$refs.drawerform.edit(row);
            },
            /** 重写查看方法 */
            toView(row) {
                this.$refs.drawerform.view(row);
            },

        },
        data() {
            return {
                config: {
                    search: [
                    ],
                    columns: [
                        {type: "selection", width: 60},
                        {type: "index",label: "序号",width: 50},

                        {label: "预约编号，为空现场取号", prop: "ordernumber"},

                        {label: "叫号状态 ", prop: "style"},

                        {label: "业务名", prop: "business"},

                        {label: "窗口名", prop: "windowName"},

                        {label: "窗口编号", prop: "windowFromnum"},

                        {label: "流水编号,当天的第xxx号", prop: "flownum"},

                        {label: "呼叫转移号", prop: "formernum"},

                        {label: "身份证号", prop: "peopleIdcard"},

                        {label: "姓名", prop: "peopleName"},

                        {label: "性别", prop: "peopleSex"},

                        {label: "手机号", prop: "peoplePhone"},

                        {label: "工作人员姓名", prop: "workmanName"},

                        {label: "工作人员工号", prop: "workmanNumber"},

                        {label: "取号时间", prop: "taketime", formatter: this.formatterDate},

                        {label: "叫号时间", prop: "calltime", formatter: this.formatterDate},

                        {label: "结束时间", prop: "endtime", formatter: this.formatterDate},

                        {label: "等待时间,单位s", prop: "waitTime",formatter: this.formatter},

                        {label: "办理时间,单位s", prop: "handleTime",formatter: this.formatter},

                        {label: "取号设备名", prop: "deviceName"},

                        {label: "呼叫设备", prop: "callName"},

                        {label: "事项名", prop: "matterName"},

                        {label: "排号队列ID，唯一", prop: "queueid"},

                        {label: "取号方式 ", prop: "wySignin"},

                        {label: "部门名称", prop: "sectionName"},

                        {label: "大厅名称", prop: "hallName"},

                        {label: "取号设备类型", prop: "deviceType"},

                        {label: "站点Id", prop: "siteId", formatter: this.formatter},

                        {label: "站点编码", prop: "siteCode"},

                        {label: "站点名称", prop: "siteName"},

                        {label: "扩展编号", prop: "extNum"},

                        {label: "创建时间", prop: "createTime", formatter: this.formatterDate},

                        {
                            label: "操作",
                            width: 240,
                            formatter: row => {
                                return (
                                    <table-buttons noAdd row={row} onEdit={this.toEdit} onView={this.toView} onDel={this.toDel} />
                            );
                            }
                        }
                    ]
                }
            };
        }
    };
</script>
