<!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-SSpglProductdetails-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="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="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="genericName" placeholder="通用名称" th:value="${genericName}" 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="productCategory" placeholder="商品分类" th:value="${productCategory}" 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="brandName" placeholder="商品品牌" th:value="${brandName}" 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="retailPrice" placeholder="零售价/元" th:value="${retailPrice}" 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="salesAttributes" placeholder="销售属性" th:value="${salesAttributes}" 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="minimumPrice" placeholder="最低限价" th:value="${minimumPrice}" 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="productionLicenseNumber" placeholder="生产许可证号/备案凭证编号" th:value="${productionLicenseNumber}" 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="productionLicenseValidUntil" placeholder="生产许可证号有效期" th:value="${productionLicenseValidUntil}" 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="unitOfDispensing" placeholder="拆零单位" th:value="${unitOfDispensing}" 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="isDispensable" placeholder="是否可拆零" th:value="${isDispensable}" 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="dispensingRatio" placeholder="拆零比例" th:value="${dispensingRatio}" 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="uniqueCode" placeholder="本位码" th:value="${uniqueCode}" 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="marketingAuthorizationHolder" placeholder="上市许可持有人" th:value="${marketingAuthorizationHolder}" 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="prescriptionCategory" placeholder="处方类别" th:value="${prescriptionCategory}" 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="prescriptionCategorySecondLevel" placeholder="处方类别二级" th:value="${prescriptionCategorySecondLevel}" 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="prescriptionCategoryThirdLevel" placeholder="处方类别三级" th:value="${prescriptionCategoryThirdLevel}" 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="approvalNumber" placeholder="批准文号" th:value="${approvalNumber}" 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="approvalNumberValidUntil" placeholder="批准文号有效期" th:value="${approvalNumberValidUntil}" class="styled-input" type="text" maxlength="255" required>
                        </div>
                    </div>
                    <label class="col-sm-1 control-label">批准文号2:</label>
                    <div class="col-sm-2">
                        <div class="input-group">
                            <input name="approvalNumberTwo" placeholder="批准文号2" th:value="${approvalNumberTwo}" class="styled-input" type="text" maxlength="255" required>
                        </div>
                    </div>
                    <label class="col-sm-1 control-label">批准文号2有效期:</label>
                    <div class="col-sm-2">
                        <div class="input-group">
                            <input name="approvalNumberTwoValidUntil" placeholder="批准文号2有效期" th:value="${approvalNumberTwoValidUntil}" class="styled-input" type="text" maxlength="255" required>
                        </div>
                    </div>
                    <label class="col-sm-1 control-label">批准文号3:</label>
                    <div class="col-sm-2">
                        <div class="input-group">
                            <input name="approvalNumberThree" placeholder="批准文号3" th:value="${approvalNumberThree}" class="styled-input" type="text" maxlength="255" required>
                        </div>
                    </div>
                    <label class="col-sm-1 control-label">批准文号3有效期:</label>
                    <div class="col-sm-2">
                        <div class="input-group">
                            <input name="approvalNumberThreeValidUntil" placeholder="批准文号3有效期" th:value="${approvalNumberThreeValidUntil}" 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="registrationNumber" placeholder="注册证号" th:value="${registrationNumber}" 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="registrationNumberValidUntil" placeholder="注册证号有效期" th:value="${registrationNumberValidUntil}" class="styled-input" type="text" maxlength="255" required>
                        </div>
                    </div>
                    <label class="col-sm-1 control-label">注册证号2:</label>
                    <div class="col-sm-2">
                        <div class="input-group">
                            <input name="registrationNumberTwo" placeholder="注册证号2" th:value="${registrationNumberTwo}" class="styled-input" type="text" maxlength="255" required>
                        </div>
                    </div>
                    <label class="col-sm-1 control-label">注册证号2有效期:</label>
                    <div class="col-sm-2">
                        <div class="input-group">
                            <input name="registrationNumberTwoValidUntil" placeholder="注册证号2有效期" th:value="${registrationNumberTwoValidUntil}" 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 + "spgl/sspglproductdetails";
        if ($.validate.form()) {
            var data = $("#form-SSpglProductdetails-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 + "/sSpglProductdetailsEdit", data);
        }
    }
</script>
