<!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-SMdyyglMdysjqStoreweightsetting-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="date" placeholder="日期" th:value="${date}" 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="storeRange" placeholder="门店范围" th:value="${storeRange}" 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">会员日 (0: 否, 1: 是):</label>
                    <div class="col-sm-2">
                        <div class="input-group">
                            <input name="memberDay" placeholder="会员日 (0: 否, 1: 是)" th:value="${memberDay}" class="styled-input" type="text" maxlength="255" required>
                        </div>
                    </div>
                    <label class="col-sm-1 control-label">超级会员日 (0: 否, 1: 是):</label>
                    <div class="col-sm-2">
                        <div class="input-group">
                            <input name="superMemberDay" placeholder="超级会员日 (0: 否, 1: 是)" th:value="${superMemberDay}" class="styled-input" type="text" maxlength="255" required>
                        </div>
                    </div>
                    <label class="col-sm-1 control-label">大促日 (0: 否, 1: 是):</label>
                    <div class="col-sm-2">
                        <div class="input-group">
                            <input name="promotionDay" placeholder="大促日 (0: 否, 1: 是)" th:value="${promotionDay}" 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="allChannelSalesBudget" placeholder="全渠道销售额预算" th:value="${allChannelSalesBudget}" 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="allChannelSalesPlan" placeholder="全渠道销售额计划" th:value="${allChannelSalesPlan}" 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="allChannelProfitBudget" placeholder="全渠道毛利额预算" th:value="${allChannelProfitBudget}" 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="allChannelProfitPlan" placeholder="全渠道毛利额计划" th:value="${allChannelProfitPlan}" 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="offlineSalesBudget" placeholder="线下销售额预算" th:value="${offlineSalesBudget}" 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="offlineSalesPlan" placeholder="线下销售额计划" th:value="${offlineSalesPlan}" 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="offlineProfitBudget" placeholder="线下毛利额预算" th:value="${offlineProfitBudget}" 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="offlineProfitPlan" placeholder="线下毛利额计划" th:value="${offlineProfitPlan}" class="styled-input" type="text" maxlength="255" required>
                        </div>
                    </div>
                    <label class="col-sm-1 control-label">O2O销售额计划:</label>
                    <div class="col-sm-2">
                        <div class="input-group">
                            <input name="o2oSalesPlan" placeholder="O2O销售额计划" th:value="${o2oSalesPlan}" class="styled-input" type="text" maxlength="255" required>
                        </div>
                    </div>
                    <label class="col-sm-1 control-label">O2O毛利额计划:</label>
                    <div class="col-sm-2">
                        <div class="input-group">
                            <input name="o2oProfitPlan" placeholder="O2O毛利额计划" th:value="${o2oProfitPlan}" 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="allChannelBrandSalesPlan" placeholder="全渠道自有品牌销售额计划" th:value="${allChannelBrandSalesPlan}" 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="allChannelBrandProfitPlan" placeholder="全渠道自有品牌毛利额计划" th:value="${allChannelBrandProfitPlan}" 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>
        <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 edit() {
        var data = $("#form-SMdyyglMdysjqStoreweightsetting-edit").serializeArray();
        $.ajax({
            cache : true,
            type : "POST",
            url : ctx + "mdyygl/smdyyglmdysjqstoreweightsetting/sMdyyglMdysjqStoreweightsettingEdit",
            data : data,
            async : false,
            error : function(request) {
                $.modal.alertError("系统错误");
            },
            success : function(data) {
                $.operate.successCallback(data);
            }
        });
    }

    function submitHandler() {
        if ($.validate.form()) {
            edit();
        }
    }
</script>
