<!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-SXsglMdlsSalesinventoryinfo-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">连锁Id:</label>
                    <div class="col-sm-2">
                        <div class="input-group">
                            <input name="chainId" placeholder="连锁Id" th:value="${chainId}" 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="organizationId" placeholder="组织Id" th:value="${organizationId}" 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="organizationName" placeholder="组织名称" th:value="${organizationName}" 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="storeId" placeholder="门店Id" th:value="${storeId}" 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="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="actualAmount" placeholder="实际金额" th:value="${actualAmount}" 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="salesBudget" placeholder="销售额预算值" th:value="${salesBudget}" 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="grossProfitBudget" placeholder="毛利额预算" th:value="${grossProfitBudget}" 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="grossProfitAmount" placeholder="毛利额" th:value="${grossProfitAmount}" 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="grossProfitMargin" placeholder="毛利率" th:value="${grossProfitMargin}" 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="nearExpiryQuantity" placeholder="近效期数量" th:value="${nearExpiryQuantity}" 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="threeMonthInactiveQuantity" placeholder="三月不动效数量" th:value="${threeMonthInactiveQuantity}" 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="customerVisits" placeholder="来客数" th:value="${customerVisits}" 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="memberSalesAmount" placeholder="会员销售金额" th:value="${memberSalesAmount}" 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="memberSalesGrossProfit" placeholder="会员销售毛利" th:value="${memberSalesGrossProfit}" 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="memberCustomerCount" placeholder="会员客户数" th:value="${memberCustomerCount}" 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="healthSupplements" placeholder="保健品" th:value="${healthSupplements}" class="styled-input" type="text" maxlength="255" required>
                        </div>
                    </div>
                    <label class="col-sm-1 control-label">OTC:</label>
                    <div class="col-sm-2">
                        <div class="input-group">
                            <input name="otc" placeholder="OTC" th:value="${otc}" 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="others" placeholder="其他" th:value="${others}" 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="prescription" placeholder="处方" th:value="${prescription}" 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="chineseMedicineAndGinseng" placeholder="中药参茸" th:value="${chineseMedicineAndGinseng}" 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="chineseAndWesternMedicines" placeholder="中西成药" th:value="${chineseAndWesternMedicines}" 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="convenienceFood" placeholder="便利食品" th:value="${convenienceFood}" 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="dailyChemicals" placeholder="日化用品" th:value="${dailyChemicals}" 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="servicesAndNonSellableItems" placeholder="服务与非卖品" th:value="${servicesAndNonSellableItems}" 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="maternityProducts" placeholder="母婴用品" th:value="${maternityProducts}" 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="disinfectionSupplies" placeholder="消杀用品" th:value="${disinfectionSupplies}" class="styled-input" type="text" maxlength="255" required>
                        </div>
                    </div>
                    <label class="col-sm-1 control-label">A1:</label>
                    <div class="col-sm-2">
                        <div class="input-group">
                            <input name="categoryA1" placeholder="A1" th:value="${categoryA1}" class="styled-input" type="text" maxlength="255" required>
                        </div>
                    </div>
                    <label class="col-sm-1 control-label">A2:</label>
                    <div class="col-sm-2">
                        <div class="input-group">
                            <input name="categoryA2" placeholder="A2" th:value="${categoryA2}" class="styled-input" type="text" maxlength="255" required>
                        </div>
                    </div>
                    <label class="col-sm-1 control-label">A3:</label>
                    <div class="col-sm-2">
                        <div class="input-group">
                            <input name="categoryA3" placeholder="A3" th:value="${categoryA3}" class="styled-input" type="text" maxlength="255" required>
                        </div>
                    </div>
                    <label class="col-sm-1 control-label">A4:</label>
                    <div class="col-sm-2">
                        <div class="input-group">
                            <input name="categoryA4" placeholder="A4" th:value="${categoryA4}" class="styled-input" type="text" maxlength="255" required>
                        </div>
                    </div>
                    <label class="col-sm-1 control-label">AA:</label>
                    <div class="col-sm-2">
                        <div class="input-group">
                            <input name="categoryAA" placeholder="AA" th:value="${categoryAA}" 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="otherMarketingLevels" placeholder="其它营销级别" th:value="${otherMarketingLevels}" 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="lowProfit" placeholder="低毛利" th:value="${lowProfit}" 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="marginalProfit" placeholder="微毛利" th:value="${marginalProfit}" 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="negativeProfit" placeholder="负毛利" th:value="${negativeProfit}" 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="elimination" placeholder="淘汰" th:value="${elimination}" 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="oneMonthInactiveStock" placeholder="一月不动销剩余库存" th:value="${oneMonthInactiveStock}" 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="threeMonthInactiveStock" placeholder="三月不动效剩余库存" th:value="${threeMonthInactiveStock}" 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="nearExpiryRemainingStock" placeholder="近效期剩余库存" th:value="${nearExpiryRemainingStock}" 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="environmentIdentifier" placeholder="环境标识" th:value="${environmentIdentifier}" 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="recordStatus" placeholder="记录状态" th:value="${recordStatus}" 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="creatorId" placeholder="创建人id" th:value="${creatorId}" 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="createTime" placeholder="创建时间" th:value="${createTime}" 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="updaterId" placeholder="更新人id" th:value="${updaterId}" 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="updateTime" placeholder="更新时间" th:value="${updateTime}" 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 + "xsgl/sxsglmdlssalesinventoryinfo";
        if ($.validate.form()) {
            var data = $("#form-SXsglMdlsSalesinventoryinfo-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 + "/sXsglMdlsSalesinventoryinfoEdit", data);
        }
    }
</script>
