<!DOCTYPE html>
<html lang="zh" xmlns:th="http://www.thymeleaf.org" >
<head>
    <th:block th:include="include :: header('药品说明书表新增')" />
    <th:block th:include="include :: ztree-css" />
</head>
<body class="white-bg">
<div class="wrapper wrapper-content animated fadeInRight ibox-content">
    <form id="form-SDtpZskcxDrugInstructions-add" class="customize-search-form">
        <div class="customize-form-group-container">
            <div class="customize-form-group">
                <label>MDM编码:</label>
                <input name="mdmCode" placeholder="MDM编码"  id="mdmCode" class="styled-input" type="text" required>
            </div>
            <div class="customize-form-group">
                <label>商品名:</label>
                <input name="productName" placeholder="商品名"  id="productName" class="styled-input" type="text" required>
            </div>
            <div class="customize-form-group">
                <label>通用名:</label>
                <input name="genericName" placeholder="通用名"  id="genericName" class="styled-input" type="text">
            </div>
            <div class="customize-form-group">
                <label>规格:</label>
                <input name="specification" placeholder="规格"  id="specification" class="styled-input" type="text">
            </div>
            <div class="customize-form-group">
                <label>生产厂家:</label>
                <input name="manufacturer" placeholder="生产厂家"  id="manufacturer" class="styled-input" type="text">
            </div>
            <div class="customize-form-group">
                <label>产地:</label>
                <input name="origin" placeholder="产地"  id="origin" class="styled-input" type="text">
            </div>
            <div class="customize-form-group">
                <label>是否弃用:</label>
                <select name="isDeprecated"  class="styled-input">
                    <option value="是">是</option>
                    <option value="否">否</option>
                </select>
            </div>
            <div class="customize-form-group select-time">
                <label>创建时间:</label>
                <input name="createdAt" placeholder="创建时间"  id="createdAt" class="time-input2 time-input" type="text">
            </div>
            <div class="customize-form-group select-time">
                <label>更新时间:</label>
                <input name="updatedAt" placeholder="更新时间"  id="updatedAt" class="time-input time-input2" type="text">
            </div>
        </div>
    </form>
</div>
<th:block th:include="include :: footer" />
<th:block th:include="include :: ztree-js" />
<script type="text/javascript">

    function submitHandler() {
        if ($.validate.form()) {
            add();
        }
    }

    function add() {
        var data = $("#form-SDtpZskcxDrugInstructions-add").serializeArray();
        $.ajax({
            cache : true,
            type : "POST",
            url : ctx + "dtp/sdtpzskcxdruginstructions/sDtpZskcxDrugInstructionsAdd",
            data : data,
            async : false,
            error : function(request) {
                $.modal.alertError("系统错误");
            },
            success : function(data) {
                $.operate.successCallback(data);
            }
        });
    }
</script>
</body>
</html>
