<!DOCTYPE html>
<html lang="zh" xmlns:th="http://www.thymeleaf.org" >
<head>
    <th:block th:include="include :: header('门店订单表修改')" />
</head>
<style>

</style>
<script>

</script>
<body>
<div class="ui-layout-center">
    <form class="form-horizontal" id="form-SDdglOrderStore-edit" th:object="${user}">
        <h4 class="form-header h4">基本信息</h4>
        <input type="hidden" id="id" name="id" th:value="${id}">
        <div class="row">
            <div class="col-sm-12">
                <div class="form-group">
                    <!--is-required 增加星号 显示为必填-->
                    <label class="col-sm-1 control-label">订单号:</label>
                    <div class="col-sm-2">
                        <div class="input-group">
                            <input name="orderId" placeholder="订单号" th:value="${orderId}" class="styled-input" type="text" maxlength="255" required>
                        </div>
                    </div>
                    <label class="col-sm-1 control-label">配送类型:</label>
                    <div class="col-sm-2">
                        <div class="input-group">
                            <input name="deliveryType" placeholder="配送类型" th:value="${deliveryType}" class="styled-input" type="text" maxlength="255" required>
                        </div>
                    </div>
                    <label class="col-sm-1 control-label">手机号:</label>
                    <div class="col-sm-2">
                        <div class="input-group">
                            <input name="mobileNumber" placeholder="手机号" th:value="${mobileNumber}" class="styled-input" type="text" maxlength="255" required>
                        </div>
                    </div>
                    <label class="col-sm-1 control-label">渠道名称:</label>
                    <div class="col-sm-2">
                        <div class="input-group">
                            <input name="channelName" placeholder="渠道名称" th:value="${channelName}" class="styled-input" type="text" maxlength="255" required>
                        </div>
                    </div>
                    <label class="col-sm-1 control-label">渠道单号:</label>
                    <div class="col-sm-2">
                        <div class="input-group">
                            <input name="channelOrderNo" placeholder="渠道单号" th:value="${channelOrderNo}" class="styled-input" type="text" maxlength="255" required>
                        </div>
                    </div>
                    <label class="col-sm-1 control-label">PSO销售单号:</label>
                    <div class="col-sm-2">
                        <div class="input-group">
                            <input name="psoSaleOrderNo" placeholder="PSO销售单号" th:value="${psoSaleOrderNo}" class="styled-input" type="text" maxlength="255" required>
                        </div>
                    </div>
                    <label class="col-sm-1 control-label">订单状态:</label>
                    <div class="col-sm-2">
                        <div class="input-group">
                            <input name="orderStatus" placeholder="订单状态" th:value="${orderStatus}" class="styled-input" type="text" maxlength="255" required>
                        </div>
                    </div>
                    <label class="col-sm-1 control-label">配送状态:</label>
                    <div class="col-sm-2">
                        <div class="input-group">
                            <input name="deliveryStatus" placeholder="配送状态" th:value="${deliveryStatus}" class="styled-input" type="text" maxlength="255" required>
                        </div>
                    </div>
                    <label class="col-sm-1 control-label">订单日期:</label>
                    <div class="col-sm-2">
                        <div class="input-group">
                            <input name="orderDate" placeholder="订单日期" th:value="${orderDate}" class="styled-input" type="text" maxlength="255" required>
                        </div>
                    </div>
                    <label class="col-sm-1 control-label">门店名称:</label>
                    <div class="col-sm-2">
                        <div class="input-group">
                            <input name="storeName" placeholder="门店名称" th:value="${storeName}" class="styled-input" type="text" maxlength="255" required>
                        </div>
                    </div>
                    <label class="col-sm-1 control-label">消费时间:</label>
                    <div class="col-sm-2">
                        <div class="input-group">
                            <input name="consumptionTime" placeholder="消费时间" th:value="${consumptionTime}" class="styled-input" type="text" maxlength="255" required>
                        </div>
                    </div>
                    <label class="col-sm-1 control-label">会员ID:</label>
                    <div class="col-sm-2">
                        <div class="input-group">
                            <input name="memberId" placeholder="会员ID" th:value="${memberId}" class="styled-input" type="text" maxlength="255" required>
                        </div>
                    </div>
                    <label class="col-sm-1 control-label">会员名称:</label>
                    <div class="col-sm-2">
                        <div class="input-group">
                            <input name="memberName" placeholder="会员名称" th:value="${memberName}" class="styled-input" type="text" maxlength="255" required>
                        </div>
                    </div>
                    <label class="col-sm-1 control-label">系统登录人Id:</label>
                    <div class="col-sm-2">
                        <div class="input-group">
                            <input name="systemLoginUserId" placeholder="系统登录人Id" th:value="${systemLoginUserId}" class="styled-input" type="text" maxlength="255" required>
                        </div>
                    </div>
                    <label class="col-sm-1 control-label">下单人:</label>
                    <div class="col-sm-2">
                        <div class="input-group">
                            <input name="orderPlacer" placeholder="下单人" th:value="${orderPlacer}" class="styled-input" type="text" maxlength="255" required>
                        </div>
                    </div>
                    <label class="col-sm-1 control-label">下单时间:</label>
                    <div class="col-sm-2">
                        <div class="input-group">
                            <input name="orderTime" placeholder="下单时间" th:value="${orderTime}" class="styled-input" type="text" maxlength="255" required>
                        </div>
                    </div>
                    <label class="col-sm-1 control-label">结账单id:</label>
                    <div class="col-sm-2">
                        <div class="input-group">
                            <input name="settlementId" placeholder="结账单id" th:value="${settlementId}" class="styled-input" type="text" maxlength="255" required>
                        </div>
                    </div>
                    <label class="col-sm-1 control-label">结账单code:</label>
                    <div class="col-sm-2">
                        <div class="input-group">
                            <input name="settlementCode" placeholder="结账单code" th:value="${settlementCode}" class="styled-input" type="text" maxlength="255" required>
                        </div>
                    </div>
                    <label class="col-sm-1 control-label">最后完成支付的支付时间:</label>
                    <div class="col-sm-2">
                        <div class="input-group">
                            <input name="finalPaymentTime" placeholder="最后完成支付的支付时间" th:value="${finalPaymentTime}" class="styled-input" type="text" maxlength="255" required>
                        </div>
                    </div>
                    <label class="col-sm-1 control-label">药品总数量:</label>
                    <div class="col-sm-2">
                        <div class="input-group">
                            <input name="totalDrugQuantity" placeholder="药品总数量" th:value="${totalDrugQuantity}" class="styled-input" type="text" maxlength="255" required>
                        </div>
                    </div>
                    <label class="col-sm-1 control-label">卡号:</label>
                    <div class="col-sm-2">
                        <div class="input-group">
                            <input name="cardNumber" placeholder="卡号" th:value="${cardNumber}" class="styled-input" type="text" maxlength="255" required>
                        </div>
                    </div>
                    <label class="col-sm-1 control-label">发货地址:</label>
                    <div class="col-sm-2">
                        <div class="input-group">
                            <input name="shippingAddress" placeholder="发货地址" th:value="${shippingAddress}" class="styled-input" type="text" maxlength="255" required>
                        </div>
                    </div>
                    <label class="col-sm-1 control-label">下单地址:</label>
                    <div class="col-sm-2">
                        <div class="input-group">
                            <input name="orderAddress" placeholder="下单地址" th:value="${orderAddress}" class="styled-input" type="text" maxlength="255" required>
                        </div>
                    </div>
                    <label class="col-sm-1 control-label">订单类型:</label>
                    <div class="col-sm-2">
                        <div class="input-group">
                            <input name="orderType" placeholder="订单类型" th:value="${orderType}" class="styled-input" type="text" maxlength="255" required>
                        </div>
                    </div>
                    <label class="col-sm-1 control-label">订单来源:</label>
                    <div class="col-sm-2">
                        <div class="input-group">
                            <input name="orderSource" placeholder="订单来源" th:value="${orderSource}" class="styled-input" type="text" maxlength="255" required>
                        </div>
                    </div>
                    <label class="col-sm-1 control-label">订单总金额:</label>
                    <div class="col-sm-2">
                        <div class="input-group">
                            <input name="totalAmount" placeholder="订单总金额" th:value="${totalAmount}" class="styled-input" type="text" maxlength="255" required>
                        </div>
                    </div>
                    <label class="col-sm-1 control-label">订单费用外送费:</label>
                    <div class="col-sm-2">
                        <div class="input-group">
                            <input name="deliveryFee" placeholder="订单费用外送费" th:value="${deliveryFee}" class="styled-input" type="text" maxlength="255" required>
                        </div>
                    </div>
                    <label class="col-sm-1 control-label">退款金额:</label>
                    <div class="col-sm-2">
                        <div class="input-group">
                            <input name="refundAmount" placeholder="退款金额" th:value="${refundAmount}" class="styled-input" type="text" maxlength="255" required>
                        </div>
                    </div>
                    <label class="col-sm-1 control-label">外送提货方式:</label>
                    <div class="col-sm-2">
                        <div class="input-group">
                            <input name="deliveryPickupMethod" placeholder="外送提货方式" th:value="${deliveryPickupMethod}" class="styled-input" type="text" maxlength="255" required>
                        </div>
                    </div>
                    <label class="col-sm-1 control-label">外送提货时间:</label>
                    <div class="col-sm-2">
                        <div class="input-group">
                            <input name="deliveryPickupTime" placeholder="外送提货时间" th:value="${deliveryPickupTime}" class="styled-input" type="text" maxlength="255" required>
                        </div>
                    </div>
                    <label class="col-sm-1 control-label">备注:</label>
                    <div class="col-sm-2">
                        <div class="input-group">
                            <input name="remarks" placeholder="备注" th:value="${remarks}" class="styled-input" type="text" maxlength="255" required>
                        </div>
                    </div>
                </div>
            </div>

        </div>
    </form>
</div>
<div class="main-content">
    <div class="col-sm-offset-5 col-sm-10">
        <button type="button" class="btn btn-sm btn-primary" onclick="submitHandler()"><i class="fa fa-check"></i>保 存</button>&nbsp;
        <button type="button" class="btn btn-sm btn-danger" onclick="closeItem()"><i class="fa fa-reply-all"></i>关 闭 </button>
    </div>
</div>
<th:block th:include="include :: footer" />
</body>
</html>

<script>
    function submitHandler() {
        var prefix = ctx + "ddgl/sddglorderstore";
        if ($.validate.form()) {
            var data = $("#form-SDdglOrderStore-edit").serializeArray();
            /*var status = $("input[id='status']").is(':checked') == true ? 0 : 1;
            var roleIds = $.form.selectCheckeds("role");
            var postIds = $.form.selectSelects("post");
            data.push({"name": "status", "value": status});
            data.push({"name": "roleIds", "value": roleIds});
            data.push({"name": "postIds", "value": postIds});*/
            $.operate.saveTab(prefix + "/sDdglOrderStoreEdit", data);
        }
    }
</script>
