<!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-SKcCrkWeeklyrequisitionstats-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="week" placeholder="周" th:value="${week}" 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="requisitionOrderCount" placeholder="请货单数量" th:value="${requisitionOrderCount}" 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="requisitionItemRows" placeholder="商品请货行数" th:value="${requisitionItemRows}" 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="deliveryOrderCount" placeholder="对应配送单数量" th:value="${deliveryOrderCount}" 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="deliveryItemRows" placeholder="商品到货行数" th:value="${deliveryItemRows}" 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="deliveryRowRatio" placeholder="行数到货比率" th:value="${deliveryRowRatio}" 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="requisitionQuantity" placeholder="商品请货数量" th:value="${requisitionQuantity}" 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="deliveryQuantity" placeholder="商品配送数量" th:value="${deliveryQuantity}" 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="deliveryQuantityRatio" placeholder="数量到货比率" th:value="${deliveryQuantityRatio}" 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="validAutoRequisitionRows" placeholder="有效自动请货单商品行数" th:value="${validAutoRequisitionRows}" 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="modifiedAutoRequisitionRows" placeholder="修改自动请货单行数" th:value="${modifiedAutoRequisitionRows}" 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="manuallyAddedRows" placeholder="手工新增行数" th:value="${manuallyAddedRows}" 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="manuallyDeletedRows" placeholder="手工删除行数" th:value="${manuallyDeletedRows}" 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="modifiedPercentage" placeholder="修改占比" th:value="${modifiedPercentage}" 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="addedPercentage" placeholder="新增占比" th:value="${addedPercentage}" 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="deletedPercentage" placeholder="删除占比" th:value="${deletedPercentage}" 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="confirmedSubmissionRows" placeholder="确认提交行数" th:value="${confirmedSubmissionRows}" 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="autoGeneratedRequisitionQuantity" placeholder="自动生成请货数量" th:value="${autoGeneratedRequisitionQuantity}" 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="confirmedSubmissionQuantity" placeholder="确认提交数量" th:value="${confirmedSubmissionQuantity}" 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-SKcCrkWeeklyrequisitionstats-edit").serializeArray();
        $.ajax({
            cache : true,
            type : "POST",
            url : ctx + "kc/skccrkweeklyrequisitionstats/sKcCrkWeeklyrequisitionstatsEdit",
            data : data,
            async : false,
            error : function(request) {
                $.modal.alertError("系统错误");
            },
            success : function(data) {
                $.operate.successCallback(data);
            }
        });
    }

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