<!DOCTYPE html>
<html lang="zh" xmlns:th="http://www.thymeleaf.org" >
<head>
	<th:block th:include="include :: header('订单详细信息')" />
    <th:block th:include="include :: summernote-css" />
</head>
<body class="white-bg">
    <div class="wrapper wrapper-content animated fadeInRight ibox-content">
        <form class="form-horizontal m" id="form-account-edit">
            <div class="form-group">
                <label class="col-sm-3 control-label is-required">订单编号：</label>
                <div class="col-sm-8">
                    <input class="form-control" id="comOrderId" type="text" readonly>
                </div>
            </div>
            <div class="form-group">
                <label class="col-sm-3 control-label is-required">产品名称：</label>
                <div class="col-sm-8">
                    <input class="form-control" id="productCategory" type="text" readonly>
                </div>
            </div>
            <div class="form-group">
                <label class="col-sm-3 control-label is-required">支付时间：</label>
                <div class="col-sm-8">
                    <input class="form-control" id="createTime" type="text" readonly>
                </div>
            </div>
            <div class="form-group">
                <label class="col-sm-3 control-label is-required">订单状态：</label>
                <div class="col-sm-8">
                    <input class="form-control" id="orderStatus" type="text" readonly>
                </div>
            </div>
            <div class="form-group">
                <label class="col-sm-3 control-label is-required">订单配置状态：</label>
                <div class="col-sm-8">
                    <input class="form-control" id="orderDeployStatus" type="text" readonly>
                </div>
            </div>
            <div class="form-group">
                <label class="col-sm-3 control-label is-required">总价（元）：</label>
                <div class="col-sm-8">
                    <input class="form-control" id="amount" type="text" readonly>
                </div>
            </div>
            <div class="form-group">
                <label class="col-sm-3 control-label is-required">购方名称：</label>
                <div class="col-sm-8">
                    <input class="form-control" id="comName" type="text" readonly>
                </div>
                <input id="orderDetailListStr"  class="easyui-textbox" name="orderDetailListStr" type="hidden"/>
            </div>
            <div class="form-group">
                <label class="col-sm-3 control-label is-required">产品详情：</label>
                <div class="col-sm-8">
                    <div id="editor" class="summernote"></div>
                </div>
            </div>

    	</form>
    </div>
    <th:block th:include="include :: footer" />
    <th:block th:include="include :: summernote-js" />
    <script type="text/javascript">
        var pageParam = parent.pageParam;
        if(pageParam.row != null){
            $('#comOrderId').val(pageParam.row.comOrderId);
            $('#productCategory').val(pageParam.row.productCategory);
            $('#createTime').val(pageParam.row.createTime);
            $('#orderStatus').val(pageParam.row.orderStatus);
            $('#orderDeployStatus').val(pageParam.row.orderDeployStatus);
            $('#amount').val(pageParam.row.amount);
            $('#comName').val(pageParam.row.comName);
            $('#orderDetailListStr').val(pageParam.row.orderDetailListStr);
        }
	    var prefix = ctx + "manage/order";

        function submitHandler() {
            $.operate.save(prefix + "/change-deploy-status", {"comOrderId": pageParam.row.comOrderId});
        }

        $(function(){
            $('.summernote').summernote({
                placeholder: '产品详情',
                height : 192,
                lang : 'zh-CN',
                followingToolbar: false
            });
            $('#editor').summernote('code', pageParam.row.orderDetailListStr);
            $('#editor').summernote('disable');
        })

    </script>
</body>
</html>
