<!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-SKcBbInventoryvariation-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="sequenceNumber" placeholder="序号" th:value="${sequenceNumber}" 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="period" placeholder="期间" th:value="${period}" 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="productCode" placeholder="商品编码" th:value="${productCode}" 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="productName" placeholder="商品名称" th:value="${productName}" 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="specification" placeholder="规格" th:value="${specification}" 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="unit" placeholder="单位" th:value="${unit}" 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="manufacturer" placeholder="生产企业" th:value="${manufacturer}" 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="dosageForm" placeholder="剂型" th:value="${dosageForm}" 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="batchNumber" placeholder="批号" th:value="${batchNumber}" 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="batch" placeholder="批次" th:value="${batch}" 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="initialStockQuantity" placeholder="期初库存数量" th:value="${initialStockQuantity}" 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="initialStockCost" placeholder="期初库存成本金额/元" th:value="${initialStockCost}" 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="warehouseDeliveryQuantity" placeholder="大仓配送数量" th:value="${warehouseDeliveryQuantity}" 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="warehouseDeliveryCost" placeholder="大仓配送成本金额/元" th:value="${warehouseDeliveryCost}" 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="transferInQuantity" placeholder="调拨调入配送数量" th:value="${transferInQuantity}" 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="transferInCost" placeholder="调拨调入配送成本金额/元" th:value="${transferInCost}" 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="storeReceiptQuantity" placeholder="店采收货数量" th:value="${storeReceiptQuantity}" 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="storeReceiptCost" placeholder="店采收货成本金额" th:value="${storeReceiptCost}" 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="storeReturnQuantity" placeholder="店采退货数量" th:value="${storeReturnQuantity}" 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="storeReturnAmount" placeholder="店采退货金额/元" th:value="${storeReturnAmount}" 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="transferOutQuantity" placeholder="调拨调出数量" th:value="${transferOutQuantity}" 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="transferOutCost" placeholder="调拨调出成本金额/元" th:value="${transferOutCost}" 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="storeReturnWarehouseQuantity" placeholder="门店退仓数量" th:value="${storeReturnWarehouseQuantity}" 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="storeReturnWarehouseCost" placeholder="门店退仓成本金额/元" th:value="${storeReturnWarehouseCost}" 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="offlineSalesQuantity" placeholder="线下销售数量" th:value="${offlineSalesQuantity}" 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="offlineSalesCost" placeholder="线下销售成本金额/元" th:value="${offlineSalesCost}" 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="offlineSalesReturnQuantity" placeholder="线下销售退货数量" th:value="${offlineSalesReturnQuantity}" 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="offlineSalesReturnAmount" placeholder="线下销售退货金额/元" th:value="${offlineSalesReturnAmount}" 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="onlineSalesQuantity" placeholder="线上销售数量" th:value="${onlineSalesQuantity}" 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="onlineSalesCost" placeholder="线上销售成本金额/元" th:value="${onlineSalesCost}" 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="onlineSalesReturnQuantity" placeholder="线上销售退货数量" th:value="${onlineSalesReturnQuantity}" 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="onlineSalesReturnAmount" placeholder="线上销售退货金额/元" th:value="${onlineSalesReturnAmount}" 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="lossQuantity" placeholder="报损数量" th:value="${lossQuantity}" 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="lossCost" placeholder="报损成本金额" th:value="${lossCost}" 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="gainQuantity" placeholder="报溢数量" th:value="${gainQuantity}" 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="gainCost" placeholder="报溢成本金额/元" th:value="${gainCost}" 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="finalStockQuantity" placeholder="期末库存数量" th:value="${finalStockQuantity}" 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="finalStockCost" placeholder="期末库存成本金额/元" th:value="${finalStockCost}" 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="initialImportQuantity" placeholder="期初导入库存数量" th:value="${initialImportQuantity}" 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="initialImportCost" placeholder="期初导入库存成本金额/元" th:value="${initialImportCost}" 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-SKcBbInventoryvariation-edit").serializeArray();
        $.ajax({
            cache : true,
            type : "POST",
            url : ctx + "kc/skcbbinventoryvariation/sKcBbInventoryvariationEdit",
            data : data,
            async : false,
            error : function(request) {
                $.modal.alertError("系统错误");
            },
            success : function(data) {
                $.operate.successCallback(data);
            }
        });
    }

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