<!DOCTYPE html>
<html lang="zh" xmlns:th="http://www.thymeleaf.org">
<head>
    <th:block th:include="include :: header('退款详情')"/>
    <style>
        .showPhotoModal {
            display: none;
            height: 450px;
            width: 640px;
            z-index: 999;
            position: fixed;
            top: 0;
            right: 0;
            bottom: 0;
            left: 0;
            margin: 10% auto;
            background: #fff;
            box-shadow: rgba(0, 0, 0, 0.3) 1px 1px 50px;
        }
        .showPhotoModal .top{
            height: 40px;
            display: flex;
            justify-content: space-between;
            align-items: center;
            border-bottom: 1px solid #ccc;
        }
        .showPhotoModal .top .title{
            padding-left: 12px;
            font-size: 16px;
        }
        .showPhotoModal .top .close{
            padding-right: 12px;
            font-size: 16px;
            color: black;
        }
        .showPhotoModal .content {
            height: 360px;
            width: 100%;
            border-bottom: 1px solid #ccc;
            display: flex;
            justify-content: center;
            align-items: center;
        }
        .showPhotoModal .content img{
            max-height: 360px;
            /* width: 100%; */
        }
        .showPhotoModal .bottom {
            height: 50px;
            display: flex;
            flex-direction: row-reverse;
            align-items: center;
        }
        .showPhotoModal .bottom {
            display: flex;
            flex-direction: row-reverse;
            align-items: center;
        }
        .showPhotoModal .bottom div span {
            cursor: pointer;
            font-size: 12px;
            font-weight: normal;
            margin: 0px 7px;
            padding: 0px 15px;
            color: rgb(255, 255, 255);
            border: 1px solid rgb(0, 100, 182);
            background: no-repeat rgb(0, 113, 206);
            border-radius: 3px;
            display: inline-block;
            height: 30px;
            line-height: 30px;
            text-align: center;
            vertical-align: middle;
            text-decoration: none;
            outline: none;
            box-sizing: content-box;
        }
        .showPhotoModal .bottom div span:last-child {
            font-size: 12px;
            font-weight: normal;
            margin: 0px 7px;
            padding: 0px 15px;
            color: black;
            border: 1px solid #bbb;
            background: no-repeat #fff;
            border-radius: 3px;
            display: inline-block;
            height: 30px;
            line-height: 30px;
            text-align: center;
            vertical-align: middle;
            text-decoration: none;
            outline: none;
            box-sizing: content-box;
        }
        .modals {
            position: absolute;
            width: 100%;
            height: 100%;
            top: 0;
            left: 0;
            z-index: 888;
            display: none;
            overflow: hidden;
            background-color: rgb(0, 0, 0);
            opacity: 0.3;
        }
    </style>
</head>
<body class="white-bg">
<div class="wrapper wrapper-content animated fadeInRight ibox-content">
    <form class="form-horizontal m-t" id="signupForm">
        <div class="form-group">
            <label class="col-sm-2 control-label">退款单id：</label>
            <div class="form-control-static" th:text="${KylinOrderRefundsAdminVo.orderRefundsId}"></div>
            <label class="col-sm-2 control-label">票务订单id：</label>
            <div class="form-control-static" th:text="${KylinOrderRefundsAdminVo.orderTicketsId}"></div>
            <label class="col-sm-2 control-label">实际支付方式：</label>
            <div class="form-control-static" th:text="*{@dict.getLabel('zhengzai_pay_type',KylinOrderRefundsAdminVo.payType)}"/>
            <label class="col-sm-2 control-label">取票方式：</label>
            <div class="form-control-static" th:text="${KylinOrderRefundsAdminVo.typeName}"></div>
        </div>
        <div class="form-group">
            <label class="col-sm-2 control-label">申请退款类型：</label>
            <div class="form-control-static" th:text="${KylinOrderRefundsAdminVo.getTicketType}"></div>
            <label class="col-sm-2 control-label">退款编号：</label>
            <div class="form-control-static" th:text="${KylinOrderRefundsAdminVo.orderRefundCode}"></div>
            <label class="col-sm-2 control-label">退款中心退款编号：</label>
            <div class="form-control-static" th:text="${KylinOrderRefundsAdminVo.RefundCode}"></div>
            <label class="col-sm-2 control-label">第三方退款编号：</label>
            <div class="form-control-static" th:text="${KylinOrderRefundsAdminVo.RefundId}"></div>
        </div>
        <div class="form-group">
            <label class="col-sm-2 control-label">退款票总金额：</label>
            <div class="form-control-static" th:text="${KylinOrderRefundsAdminVo.price}"></div>
            <label class="col-sm-2 control-label">退款快递费总金额：</label>
            <div class="form-control-static" th:text="${KylinOrderRefundsAdminVo.priceExpress}"></div>
            <label class="col-sm-2 control-label">退款状态：</label>
            <div class="form-control-static" th:text="${KylinOrderRefundsAdminVo.statusName}"></div>
            <label class="col-sm-2 control-label">成功退款时间：</label>
            <div class="form-control-static" th:text="${KylinOrderRefundsAdminVo.RefundAt}"></div>
        </div>
        <div class="form-group">
            <label class="col-sm-2 control-label">申请人名称：</label>
            <div class="form-control-static" th:text="${KylinOrderRefundsAdminVo.applicantName}"></div>
            <label class="col-sm-2 control-label">申请时间：</label>
            <div class="form-control-static" th:text="${KylinOrderRefundsAdminVo.applicantAt}"></div>
            <label class="col-sm-2 control-label">申请备注：</label>
            <div class="form-control-static" th:text="${KylinOrderRefundsAdminVo.reason}"></div>
        </div>
        <div class="form-group">
            <label class="col-sm-2 control-label">审核人名称：</label>
            <div class="form-control-static" th:text="${KylinOrderRefundsAdminVo.auditorName}"></div>
            <label class="col-sm-2 control-label">审核时间：</label>
            <div class="form-control-static" th:text="${KylinOrderRefundsAdminVo.auditorAt}"></div>
            <label class="col-sm-2 control-label">审核备注：</label>
            <div class="form-control-static" th:text="${KylinOrderRefundsAdminVo.reject}"></div>
        </div>
        <div class="form-group">
            <label class="col-sm-2 control-label">确认收货人名称：</label>
            <div class="form-control-static" th:text="${KylinOrderRefundsAdminVo.ticketAuditName}"></div>
            <label class="col-sm-2 control-label">确认收货执行时间：</label>
            <div class="form-control-static" th:text="${KylinOrderRefundsAdminVo.ticketAuditAt}"></div>
            <label class="col-sm-2 control-label">确认收货执行备注：</label>
            <div class="form-control-static" th:text="${KylinOrderRefundsAdminVo.ticketAuditRemark}"></div>
        </div>
        <div class="form-group">
            <label class="col-sm-2 control-label">执行人名称：</label>
            <div class="form-control-static" th:text="${KylinOrderRefundsAdminVo.executorName}"></div>
            <label class="col-sm-2 control-label">执行时间：</label>
            <div class="form-control-static" th:text="${KylinOrderRefundsAdminVo.executorAt}"></div>
            <label class="col-sm-2 control-label">执行备注：</label>
            <div class="form-control-static" th:text="${KylinOrderRefundsAdminVo.refuse}"></div>
        </div>

        <div class="form-group">
            <fieldset class="layui-elem-field layui-field-title" style="margin-top: 20px;">
                <legend>图片</legend>
            </fieldset>
            <table class="col-sm-8 select-table table-bordered">
                <tbody>
                <tr>
                    <td th:each="str : ${KylinOrderRefundsAdminVo.picList}" style="float: left">
                        <img th:src="${str}" onclick="showPic(this)" width="25%">
                    </td>
                </tr>
                </tbody>
            </table>
        </div>

        <div class="form-group">
            <fieldset class="layui-elem-field layui-field-title" style="margin-top: 20px;">
                <legend>票种</legend>
            </fieldset>
            <table class="col-sm-8 select-table table-bordered">
                <thead>
                <tr>
                    <th>票种名称</th>
                    <th>适用日期</th>
                    <th>入场人</th>
                    <th>状态</th>
                    <th>价格</th>
                </tr>
                </thead>
                <tbody>
                <tr th:each="v : ${KylinOrderRefundsAdminVo.entities}">
                    <td th:text="${v.title}"></td>
                    <td th:text="${v.useStart}"></td>
                    <td th:text="${v.enterName}"></td>
                    <td th:text="${v.isPaymentName}"></td>
                    <td th:text="${v.price}"></td>
                </tr>
                </tbody>
            </table>
        </div>
        <a id="downLoadImg" href="" download style="display: none;"></a>
        <div class="modals"></div>
        <div class="showPhotoModal">
            <div class="top">
                <div class="title">
                    图片展示
                </div>
                <div class="close" onclick="closeModal()">
                    x
                </div>
            </div>
            <div class="content">
                <img id="showPhoto" src="" alt="">
            </div>
            <div class="bottom">
                <div>
                    <span onclick="downloadImg()">下载</span>
                    <span onclick="closeModal()">关闭</span>
                </div>
            </div>
        </div>
    </form>
</div>
<th:block th:include="include :: footer"/>
</body>
<script>
    function showPic(e) {
        $(".showPhotoModal").show();
        $(".modals").show();
        $("#showPhoto").attr('src', $(e).attr('src'));
    };
    function downloadImg() {
        $("#downLoadImg").attr('href', $("#showPhoto").attr('src')+'?response-content-type=application/octet-stream');
        $("#downLoadImg")[0].click();
        closeModal();
    };
    function closeModal() {
        $(".showPhotoModal").hide();
        $(".modals").hide();
    };
</script>
</html>
