<!DOCTYPE html>
<html lang="zh" xmlns:th="http://www.thymeleaf.org" >
<head>
    <th:block th:include="include :: header('修改支付')" />
</head>
<body class="white-bg">
    <div class="wrapper wrapper-content animated fadeInRight ibox-content">
        <form class="form-horizontal m" id="form-payment-edit" th:object="${tbPayment}">
            <input name="id" th:field="*{id}" type="hidden">
            <div class="form-group">    
                <label class="col-sm-3 control-label is-required">订单编号：</label>
                <div class="col-sm-8">
                    <input name="orderId" th:field="*{orderId}" class="form-control" type="text" required>
                </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label is-required">商户编号：</label>
                <div class="col-sm-8">
                    <input name="merId" th:field="*{merId}" class="form-control" type="text" required>
                </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label is-required">应用ID：</label>
                <div class="col-sm-8">
                    <input name="appId" th:field="*{appId}" class="form-control" type="text" required>
                </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label is-required">支付渠道(WECHAT：微信；ALIPAY：支付宝)：</label>
                <div class="col-sm-8">
                    <input name="payChannel" th:field="*{payChannel}" class="form-control" type="text" required>
                </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label is-required">渠道编码：</label>
                <div class="col-sm-8">
                    <input name="qudaoCode" th:field="*{qudaoCode}" class="form-control" type="text" required>
                </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label">卖家支付宝用户号：</label>
                <div class="col-sm-8">
                    <input name="sellerId" th:field="*{sellerId}" class="form-control" type="text">
                </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label">买家支付宝用户号：</label>
                <div class="col-sm-8">
                    <input name="buyerId" th:field="*{buyerId}" class="form-control" type="text">
                </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label is-required">用户编号：</label>
                <div class="col-sm-8">
                    <input name="userId" th:field="*{userId}" class="form-control" type="text" required>
                </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label is-required">微信/支付宝支付订单号：</label>
                <div class="col-sm-8">
                    <input name="transactionId" th:field="*{transactionId}" class="form-control" type="text" required>
                </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label is-required">支付状态(0：交易成功；1：交易失败)：</label>
                <div class="col-sm-8">
                    <input name="transState" th:field="*{transState}" class="form-control" type="text" required>
                </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label is-required">随机字符串：</label>
                <div class="col-sm-8">
                    <input name="nonceStr" th:field="*{nonceStr}" class="form-control" type="text" required>
                </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label is-required">业务结果,微信:SUCCESS/FAIL：</label>
                <div class="col-sm-8">
                    <input name="resultCode" th:field="*{resultCode}" class="form-control" type="text" required>
                </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label is-required">是否关注公众账号(Y-关注，N-未关注)：</label>
                <div class="col-sm-8">
                    <input name="isSubscribe" th:field="*{isSubscribe}" class="form-control" type="text" required>
                </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label is-required">订单金额/申请退款金额：</label>
                <div class="col-sm-8">
                    <input name="totalFee" th:field="*{totalFee}" class="form-control" type="text" required>
                </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label is-required">应结订单金额/退款金额/实收金额：</label>
                <div class="col-sm-8">
                    <input name="settlementTotalFee" th:field="*{settlementTotalFee}" class="form-control" type="text" required>
                </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label is-required">现金支付金额/付款金额：</label>
                <div class="col-sm-8">
                    <input name="cashFee" th:field="*{cashFee}" class="form-control" type="text" required>
                </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label is-required">集分宝金额：</label>
                <div class="col-sm-8">
                    <input name="pointAmount" th:field="*{pointAmount}" class="form-control" type="text" required>
                </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label">微信退款单号：</label>
                <div class="col-sm-8">
                    <input name="refundId" th:field="*{refundId}" class="form-control" type="text">
                </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label">商户退款单号：</label>
                <div class="col-sm-8">
                    <input name="outRefundNo" th:field="*{outRefundNo}" class="form-control" type="text">
                </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label">退款金额：</label>
                <div class="col-sm-8">
                    <input name="refundFee" th:field="*{refundFee}" class="form-control" type="text">
                </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label">退款入账账户：</label>
                <div class="col-sm-8">
                    <input name="refundRecvAccout" th:field="*{refundRecvAccout}" class="form-control" type="text">
                </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label">退款资金来源：</label>
                <div class="col-sm-8">
                    <input name="refundAccount" th:field="*{refundAccount}" class="form-control" type="text">
                </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label is-required">手机号：</label>
                <div class="col-sm-8">
                    <input name="mobile" th:field="*{mobile}" class="form-control" type="text" required>
                </div>
            </div>
            <div class="form-group">
                <label class="col-sm-3 control-label is-required">签名串：</label>
                <div class="col-sm-8">
                    <textarea name="signStr" class="form-control" required>[[*{signStr}]]</textarea>
                </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label is-required">支付完成时间,格式为yyyyMMddHHmmss：</label>
                <div class="col-sm-8">
                    <input name="transTime" th:field="*{transTime}" class="form-control" type="text" required>
                </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label is-required">统一下单接口返回码，微信：SUCCESS/FAIL：</label>
                <div class="col-sm-8">
                    <input name="returnCode" th:field="*{returnCode}" class="form-control" type="text" required>
                </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label is-required">统一下单接口返回码信息：</label>
                <div class="col-sm-8">
                    <input name="returnMsg" th:field="*{returnMsg}" class="form-control" type="text" required>
                </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label is-required">备注：</label>
                <div class="col-sm-8">
                    <input name="remark" th:field="*{remark}" class="form-control" type="text" required>
                </div>
            </div>
        </form>
    </div>
    <th:block th:include="include :: footer" />
    <script th:inline="javascript">
        var prefix = ctx + "business/payment";
        $("#form-payment-edit").validate({
            focusCleanup: true
        });

        function submitHandler() {
            if ($.validate.form()) {
                $.operate.save(prefix + "/edit", $('#form-payment-edit').serialize());
            }
        }
    </script>
</body>
</html>