<template>
    <a-modal
        :title="modalTitle"
        :width="850"
        :visible="visible"
        :confirmLoading="confirmLoading"
                    class="ant-modal2"
                @cancel="handleCancel"
    >
        <detail-list title="" :col="2">
                                                                                                    <detail-list-item term="编号">{{ model.no }}</detail-list-item>
                                                                                                            <detail-list-item term="工作票类别">{{ model.type }}</detail-list-item>
                                                                                                            <detail-list-item term="工作负责人">{{ model.chargeUserId }}</detail-list-item>
                                                                                                            <detail-list-item term="工作班人员">{{ model.workBanUserId }}</detail-list-item>
                                                                                                            <detail-list-item term="工作站变电站名称">{{ model.stationName }}</detail-list-item>
                                                                                                            <detail-list-item term="工作任务">{{ model.content }}</detail-list-item>
                                                                                                            <detail-list-item term="计划工作开始时间">{{ model.planStartTime }}</detail-list-item>
                                                                                                            <detail-list-item term="计划工作结束时间">{{ model.planEndTime }}</detail-list-item>
                                                                                                            <detail-list-item term="签发人签名">{{ model.signUserId }}</detail-list-item>
                                                                                                            <detail-list-item term="签发日期">{{ model.signDateTime }}</detail-list-item>
                                                                                                            <detail-list-item term="收到工作票时间">{{ model.receiveDateTime }}</detail-list-item>
                                                                                                            <detail-list-item term="运行值班人员签名">{{ model.zhibaoUserId }}</detail-list-item>
                                                                                                            <detail-list-item term="工作负责人签名">{{ model.signChargeUserId }}</detail-list-item>
                                                                                                            <detail-list-item term="确认工作票时间">{{ model.sureDateTime }}</detail-list-item>
                                                                                                            <detail-list-item term="工作负责人确认内容签名">{{ model.sureChargeUserId }}</detail-list-item>
                                                                                                            <detail-list-item term="工作许可人确认内容签名">{{ model.sureXukeUserId }}</detail-list-item>
                                                                                                            <detail-list-item term="许可开始工作时间">{{ model.xuekeStartDateTime }}</detail-list-item>
                                                                                                            <detail-list-item term="确认工作任务和安全措施签名">{{ model.sureContentSignUserId }}</detail-list-item>
                                                                                                            <detail-list-item term="原工作负责人">{{ model.oldChargeUserId }}</detail-list-item>
                                                                                                            <detail-list-item term="工作负责人变动时间">{{ model.changeDateTime }}</detail-list-item>
                                                                                                            <detail-list-item term="工作负责人变动签名">{{ model.changeSignUserId }}</detail-list-item>
                                                                                                            <detail-list-item term="工作人员变动情况1">{{ model.workUserChangeSituation }}</detail-list-item>
                                                                                                            <detail-list-item term="工作人员变动情况2">{{ model.workUserChangeSituationTwo }}</detail-list-item>
                                                                                                            <detail-list-item term="工作人员变动情况时间1">{{ model.workUserChangeSituationTime }}</detail-list-item>
                                                                                                            <detail-list-item term="工作人员变动情况时间2">{{ model.workUserChangeSituationTimeTwo }}</detail-list-item>
                                                                                                            <detail-list-item term="工作人员变动签名">{{ model.workUserChangeSituationSignUserId }}</detail-list-item>
                                                                                                            <detail-list-item term="工作票延期截止时间">{{ model.yqEndDateTime }}</detail-list-item>
                                                                                                            <detail-list-item term="工作票延期工作负责人签名">{{ model.yqChargeSignUserId }}</detail-list-item>
                                                                                                            <detail-list-item term="工作票延期工作许可人签名">{{ model.yqXukeSignUserId }}</detail-list-item>
                                                                                                            <detail-list-item term="工作终结时间">{{ model.workFinishDateTime }}</detail-list-item>
                                                                                                            <detail-list-item term="工作终结负责人签名">{{ model.workFinishChargeUserId }}</detail-list-item>
                                                                                                            <detail-list-item term="工作终结许可人签名">{{ model.workFinishXukeUserId }}</detail-list-item>
                                                                                                            <detail-list-item term="工作票终结时间">{{ model.ticketFinishDateTime }}</detail-list-item>
                                                                                                            <detail-list-item term="工作票终结许可人签名">{{ model.ticketFinishXukeUserId }}</detail-list-item>
                                                                                                            <detail-list-item term="工作票终结备注">{{ model.ticketFinishRemark }}</detail-list-item>
                                                                                                            <detail-list-item term="状态0：已废弃1：执行中2：已退票3：工作已终结4：工作票已终结">{{ model.status }}</detail-list-item>
                                                                                                            <detail-list-item term="备注">{{ model.remark1 }}</detail-list-item>
                                                                                                                                        <detail-list-item term="更新日期">{{ model.updateTime }}</detail-list-item>
                                                                                                            <detail-list-item term="创建人">{{ model.createdUserId }}</detail-list-item>
                                                        </detail-list>

        <template slot="footer">
            <a-button :loading="confirmLoading" type="primary" @click="handleCancel()">返回</a-button>
        </template>
    </a-modal>
</template>

<script>
    import DetailList from '@/components/tools/DetailList'
    const DetailListItem = DetailList.Item

    export default {
        name: 'TicketExecuteDetail',
        components: {
            DetailList,
            DetailListItem
        },
        data () {
            return {
                confirmLoading: false,
                mdl: {},
                modalTitle: null,
                visible: false,
                // 下拉框map
                                model: {
                                                                                                                    'no': null,
                                                                                                'type': null,
                                                                                                'chargeUserId': null,
                                                                                                'workBanUserId': null,
                                                                                                'stationName': null,
                                                                                                'content': null,
                                                                                                'planStartTime': null,
                                                                                                'planEndTime': null,
                                                                                                'signUserId': null,
                                                                                                'signDateTime': null,
                                                                                                'receiveDateTime': null,
                                                                                                'zhibaoUserId': null,
                                                                                                'signChargeUserId': null,
                                                                                                'sureDateTime': null,
                                                                                                'sureChargeUserId': null,
                                                                                                'sureXukeUserId': null,
                                                                                                'xuekeStartDateTime': null,
                                                                                                'sureContentSignUserId': null,
                                                                                                'oldChargeUserId': null,
                                                                                                'changeDateTime': null,
                                                                                                'changeSignUserId': null,
                                                                                                'workUserChangeSituation': null,
                                                                                                'workUserChangeSituationTwo': null,
                                                                                                'workUserChangeSituationTime': null,
                                                                                                'workUserChangeSituationTimeTwo': null,
                                                                                                'workUserChangeSituationSignUserId': null,
                                                                                                'yqEndDateTime': null,
                                                                                                'yqChargeSignUserId': null,
                                                                                                'yqXukeSignUserId': null,
                                                                                                'workFinishDateTime': null,
                                                                                                'workFinishChargeUserId': null,
                                                                                                'workFinishXukeUserId': null,
                                                                                                'ticketFinishDateTime': null,
                                                                                                'ticketFinishXukeUserId': null,
                                                                                                'ticketFinishRemark': null,
                                                                                                'status': null,
                                                                                                'remark1': null,
                                                                                                                                            'updateTime': null,
                                                                                                'createdUserId': null,
                                                            }
            }
        },
        created () {
            // 下拉框map
                    },
        methods: {
            base (record) {
                this.visible = true
                this.modalTitle = '详情'
                this.model = record
            },
            handleCancel () {
                this.visible = false
                this.confirmLoading = false
            }

        }
    }
</script>
