<!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="${KylinOrderRefundsVo.orderRefundsId}"></div>
            <label class="col-sm-2 control-label">票务订单id：</label>
            <div class="form-control-static" th:text="${KylinOrderRefundsVo.orderTicketsId}"></div>
            <label class="col-sm-2 control-label">实际支付方式：</label>
            <div class="form-control-static" th:text="*{@dict.getLabel('zhengzai_pay_type',KylinOrderRefundsVo.payType)}"/>
        </div>
        <div class="form-group">
            <label class="col-sm-2 control-label">退款编号：</label>
            <div class="form-control-static" th:text="${KylinOrderRefundsVo.orderRefundCode}"></div>
            <label class="col-sm-2 control-label">退款中心退款编号：</label>
            <div class="form-control-static" th:text="${KylinOrderRefundsVo.RefundCode}"></div>
            <label class="col-sm-2 control-label">第三方退款编号：</label>
            <div class="form-control-static" th:text="${KylinOrderRefundsVo.RefundId}"></div>
        </div>
        <div class="form-group">
            <label class="col-sm-2 control-label">退款票总金额：</label>
            <div class="form-control-static" th:text="${KylinOrderRefundsVo.price}"></div>
            <label class="col-sm-2 control-label">退款快递费总金额：</label>
            <div class="form-control-static" th:text="${KylinOrderRefundsVo.priceExpress}"></div>
            <label class="col-sm-2 control-label">退款状态：</label>
            <div class="form-control-static" th:text="${KylinOrderRefundsVo.statusName}"></div>
            <label class="col-sm-2 control-label">成功退款时间：</label>
            <div class="form-control-static" th:text="${KylinOrderRefundsVo.RefundAt}"></div>
        </div>
        <div class="form-group">
            <label class="col-sm-2 control-label">申请人名称：</label>
            <div class="form-control-static" th:text="${KylinOrderRefundsVo.applicantName}"></div>
            <label class="col-sm-2 control-label">申请时间：</label>
            <div class="form-control-static" th:text="${KylinOrderRefundsVo.applicantAt}"></div>
            <label class="col-sm-2 control-label">申请备注：</label>
            <div class="form-control-static" th:text="${KylinOrderRefundsVo.reason}"></div>
        </div>
        <div class="form-group">
            <label class="col-sm-2 control-label">审核人名称：</label>
            <div class="form-control-static" th:text="${KylinOrderRefundsVo.auditorName}"></div>
            <label class="col-sm-2 control-label">审核时间：</label>
            <div class="form-control-static" th:text="${KylinOrderRefundsVo.auditorAt}"></div>
            <label class="col-sm-2 control-label">审核备注：</label>
            <div class="form-control-static" th:text="${KylinOrderRefundsVo.reject}"></div>
        </div>
        <div class="form-group">
            <label class="col-sm-2 control-label">确认收货人名称：</label>
            <div class="form-control-static" th:text="${KylinOrderRefundsVo.ticketAuditName}"></div>
            <label class="col-sm-2 control-label">确认收货执行时间：</label>
            <div class="form-control-static" th:text="${KylinOrderRefundsVo.ticketAuditAt}"></div>
            <label class="col-sm-2 control-label">确认收货执行备注：</label>
            <div class="form-control-static" th:text="${KylinOrderRefundsVo.ticketAuditRemark}"></div>
        </div>
        <div class="form-group">
            <label class="col-sm-2 control-label">执行人名称：</label>
            <div class="form-control-static" th:text="${KylinOrderRefundsVo.executorName}"></div>
            <label class="col-sm-2 control-label">执行时间：</label>
            <div class="form-control-static" th:text="${KylinOrderRefundsVo.executorAt}"></div>
            <label class="col-sm-2 control-label">执行备注：</label>
            <div class="form-control-static" th:text="${KylinOrderRefundsVo.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 : ${KylinOrderRefundsVo.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 : ${KylinOrderRefundsVo.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>
