<!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">
    <h4 class="form-header h4">商品修改</h4>
    <div class="col-sm-12">
        <div class="tabs-container">
            <ul class="nav nav-tabs" id="myTabs3">
                <li class="active"><a data-toggle="tab" href="#tab-1" aria-expanded="true"> 基本信息</a>
                </li>
                <li class=""><a data-toggle="tab" href="#tab-12" aria-expanded="false">DTP属性</a>
                </li>
                <li class=""><a data-toggle="tab" href="#tab-2" aria-expanded="false">采购属性</a>
                </li>
                <li class=""><a data-toggle="tab" href="#tab-3" aria-expanded="false" >物流属性</a>
                </li>
                <li class=""><a data-toggle="tab" href="#tab-4" aria-expanded="false">质管属性</a>
                </li>
                <li class=""><a data-toggle="tab" href="#tab-5" aria-expanded="false">销售属性</a>
                </li>
                <li class=""><a data-toggle="tab" href="#tab-6" aria-expanded="false">业态属性</a>
                </li>
                <li class=""><a data-toggle="tab" href="#tab-7" aria-expanded="false">图片属性</a>
                </li>
                <!-- 下面再看 先把上面的弄完-->
                <li class=""><a data-toggle="tab" href="#tab-8" aria-expanded="false">处方属性</a>
                </li>
                <li class=""><a data-toggle="tab" href="#tab-9" aria-expanded="false">D值配置属性</a>
                </li>
                <li class=""><a data-toggle="tab" href="#tab-10" aria-expanded="false">说明书属性</a>
                </li>
                <li class=""><a data-toggle="tab" href="#tab-11" aria-expanded="false">知识库属性</a>
                </li>

            </ul>
            <div class="tab-content">
                <!-- 基本信息 -->
                <div id="tab-1" class="tab-pane active">
                    <form class="customize-search-form" id="form-server-edit1" >
                        <!-- 商品编码 -->
                        <div class="customize-form-group edit">
                            <label class="is-required">商品编码：</label>
                            <input type="text" name="product_code" class="styled-input edit_inputs" th:value="${product_code}" disabled/>
                            <span class="span_line" readonly></span>
                        </div>

                        <!-- 商品名称 -->
                        <div class="customize-form-group edit">
                            <label class="is-required">商品名称：</label>
                            <input type="text" name="product_name" class="styled-input edit_inputs" th:value="${product_name}" />
                            <span class="span_line" readonly></span>
                        </div>

                        <!-- 助记码 -->
                        <div class="customize-form-group edit">
                            <label>助记码：</label>
                            <input type="text" name="mnemonic_code" class="styled-input edit_inputs" th:value="${mnemonic_code}" />
                            <span class="span_line" readonly></span>
                        </div>

                        <!-- 商品描述 -->
                        <div class="customize-form-group edit">
                            <label>商品描述：</label>
                            <textarea name="product_description" class="styled-input edit_inputs" th:text="${product_description}"></textarea>
                            <span class="span_line" readonly></span>
                        </div>

                        <!-- 通用名 -->
                        <div class="customize-form-group edit">
                            <label class="is-required">通用名：</label>
                            <input type="text" name="generic_name" class="styled-input edit_inputs" th:value="${generic_name}" />
                            <span class="span_line" readonly></span>
                        </div>

                        <!-- 通用名助记码 -->
                        <div class="customize-form-group edit">
                            <label>通用名助记码：</label>
                            <input type="text" name="generic_mnemonic_code" class="styled-input edit_inputs" th:value="${generic_mnemonic_code}" />
                            <span class="span_line" readonly></span>
                        </div>

                        <!-- 通用名曾用名 -->
                        <div class="customize-form-group edit">
                            <label>通用名曾用名：</label>
                            <input type="text" name="generic_previous_names" class="styled-input edit_inputs" th:value="${generic_previous_names}" />
                            <span class="span_line" readonly></span>
                        </div>

                        <!-- 基本计量单位 -->
                        <div class="customize-form-group edit">
                            <label>基本计量单位：</label>
                            <input type="text" name="base_unit" class="styled-input edit_inputs" th:value="${base_unit}" />
                            <span class="span_line" readonly></span>
                        </div>

                        <!-- 商标 -->
                        <div class="customize-form-group edit">
                            <label>商标：</label>
                            <input type="text" name="trademark" class="styled-input edit_inputs" th:value="${trademark}" />
                            <span class="span_line" readonly></span>
                        </div>

                        <!-- 规格 -->
                        <div class="customize-form-group edit">
                            <label class="is-required">规格：</label>
                            <input type="text" name="specification" class="styled-input edit_inputs" th:value="${specification}" />
                            <span class="span_line" readonly></span>
                        </div>

                        <!-- 包装 -->
                        <div class="customize-form-group edit">
                            <label class="is-required">包装：</label>
                            <input type="text" name="packaging" class="styled-input edit_inputs" th:value="${packaging}" />
                            <span class="span_line" readonly></span>
                        </div>

                        <!-- 国际条形码 (EAN-13) -->
                        <div class="customize-form-group edit">
                            <label>国际条形码 (EAN-13)：</label>
                            <input type="text" name="international_barcode" class="styled-input edit_inputs" th:value="${international_barcode}" />
                            <span class="span_line" readonly></span>
                        </div>

                        <!-- 生产厂家 -->
                        <div class="customize-form-group edit">
                            <label class="is-required">生产厂家：</label>
                            <input type="text" name="manufacturer" class="styled-input edit_inputs" th:value="${manufacturer}" />
                            <span class="span_line" readonly></span>
                        </div>

                        <!-- 委托厂家 -->
                        <div class="customize-form-group edit">
                            <label>委托厂家：</label>
                            <input type="text" name="entrusted_manufacturer" class="styled-input edit_inputs" th:value="${entrusted_manufacturer}" />
                            <span class="span_line" readonly></span>
                        </div>

                        <!-- 厂家缩写 -->
                        <div class="customize-form-group edit">
                            <label>厂家缩写：</label>
                            <input type="text" name="manufacturer_abbreviation" class="styled-input edit_inputs" th:value="${manufacturer_abbreviation}" />
                            <span class="span_line" readonly></span>
                        </div>

                        <!-- 产地 -->
                        <div class="customize-form-group edit">
                            <label>产地：</label>
                            <input type="text" name="origin" class="styled-input edit_inputs" th:value="${origin}" />
                            <span class="span_line" readonly></span>
                        </div>

                        <!-- 商品大类 -->
                        <div class="customize-form-group edit">
                            <label class="is-required">商品大类：</label>
                            <input type="text" name="category_maj" class="styled-input edit_inputs" th:value="${category_maj}" />
                            <span class="span_line" readonly></span>
                        </div>

                        <!-- 商品子类 -->
                        <div class="customize-form-group edit">
                            <label class="is-required">商品子类：</label>
                            <input type="text" name="category_min" class="styled-input edit_inputs" th:value="${category_min}" />
                            <span class="span_line" readonly></span>
                        </div>

                        <!-- 商品类型 -->
                        <div class="customize-form-group edit">
                            <label>商品类型：</label>
                            <input type="text" name="product_type" class="styled-input edit_inputs" th:value="${product_type}" />
                            <span class="span_line" readonly></span>
                        </div>

                        <!-- 商品状态 -->
                        <div class="customize-form-group edit">
                            <label class="is-required">商品状态：</label>
                            <input type="text" name="product_status" class="styled-input edit_inputs" th:value="${product_status}" />
                            <span class="span_line" readonly></span>
                        </div>

                        <!-- 进项税率 -->
                        <div class="customize-form-group edit">
                            <label>进项税率：</label>
                            <input type="text" name="purchase_tax_rate" class="styled-input edit_inputs" th:value="${purchase_tax_rate}" />
                            <span class="span_line" readonly></span>
                        </div>

                        <!-- 销项税率 -->
                        <div class="customize-form-group edit">
                            <label>销项税率：</label>
                            <input type="text" name="sales_tax_rate" class="styled-input edit_inputs" th:value="${sales_tax_rate}" />
                            <span class="span_line" readonly></span>
                        </div>

                        <!-- 进口/国产商品 -->
                        <div class="customize-form-group edit">
                            <label>进口/国产商品：</label>
                            <select name="import_export_status" class="styled-input edit_inputs" th:with="type=${@dict.getType('sys_select_yes_no')}" >
                                <option value="">--  是（进口） / 否（国产）请选择  --</option>
                                <option th:each="dict : ${type}" th:value="${dict.dictValue}" th:selected="${dict.dictValue}==${import_export_status}" th:text="${dict.dictLabel}"></option>
                            </select>
                            <span class="span_line" readonly></span>
                        </div>

                        <!-- 商品大类 -->
                        <div class="customize-form-group edit">
                            <label>商品大类：</label>
                            <input type="text" name="major_category" class="styled-input edit_inputs" th:value="${major_category}" />
                            <span class="span_line" readonly></span>
                        </div>

                        <!-- 商品中类 -->
                        <div class="customize-form-group edit">
                            <label>商品中类：</label>
                            <input type="text" name="medium_category" class="styled-input edit_inputs" th:value="${medium_category}" />
                            <span class="span_line" readonly></span>
                        </div>

                        <!-- 商品小类 -->
                        <div class="customize-form-group edit">
                            <label>商品小类：</label>
                            <input type="text" name="minor_category" class="styled-input edit_inputs" th:value="${minor_category}" />
                            <span class="span_line" readonly></span>
                        </div>

                        <!-- 商品子类 -->
                        <div class="customize-form-group edit">
                            <label>商品子类：</label>
                            <input type="text" name="sub_category" class="styled-input edit_inputs" th:value="${sub_category}" />
                            <span class="span_line" readonly></span>
                        </div>

                        <!-- 成分 -->
                        <div class="customize-form-group edit">
                            <label>成分：</label>
                            <input type="text" name="ingredients" class="styled-input edit_inputs" th:value="${ingredients}" />
                            <span class="span_line" readonly></span>
                        </div>

                        <!-- DTP商品标识 -->
                        <div class="customize-form-group edit">
                            <label>DTP商品标识：</label>
                            <select name="dtp_flag" class="styled-input edit_inputs" th:with="type=${@dict.getType('sys_select_yes_no')}" >
                                <option value="">请选择</option>
                                <option th:each="dict : ${type}" th:value="${dict.dictValue}" th:selected="${dict.dictValue}==${dtp_flag}" th:text="${dict.dictLabel}"></option>
                            </select>
                            <span class="span_line" readonly></span>
                        </div>

                        <!-- 日标准消耗量 -->
                        <div class="customize-form-group edit">
                            <label>日标准消耗量：</label>
                            <input type="text" name="daily_standard_consumption" class="styled-input edit_inputs" th:value="${daily_standard_consumption}" />
                            <span class="span_line" readonly></span>
                        </div>

                        <!-- 疑似重复 -->
                        <div class="customize-form-group edit">
                            <label>疑似重复：</label>
                            <input type="text" name="duplicate_suspected" class="styled-input edit_inputs" th:value="${duplicate_suspected}" />
                            <span class="span_line" readonly></span>
                        </div>

                        <!-- 替代编码 -->
                        <div class="customize-form-group edit">
                            <label>替代编码：</label>
                            <input type="text" name="alternative_code" class="styled-input edit_inputs" th:value="${alternative_code}" />
                            <span class="span_line" readonly></span>
                        </div>

                        <!-- 上市许可持有人/注册人/备案人 -->
                        <div class="customize-form-group edit">
                            <label>上市许可持有人/注册人/备案人：</label>
                            <input type="text" name="marketing_authorization_holder" class="styled-input edit_inputs" th:value="${marketing_authorization_holder}" />
                            <span class="span_line" readonly></span>
                        </div>

                        <!-- 用药天数 -->
                        <div class="customize-form-group edit">
                            <label>用药天数：</label>
                            <input type="text" name="medication_days" class="styled-input edit_inputs" th:value="${medication_days}" />
                            <span class="span_line" readonly></span>
                        </div>

                        <!-- 小码华南专用 -->
                        <div class="customize-form-group edit">
                            <label>小码华南专用：</label>
                            <input type="text" name="small_code_southchina_specific" class="styled-input edit_inputs" th:value="${small_code_southchina_specific}" />
                            <span class="span_line" readonly></span>
                        </div>

                        <!-- 对应大码 -->
                        <div class="customize-form-group edit">
                            <label>对应大码：</label>
                            <input type="text" name="corresponding_major_code" class="styled-input edit_inputs" th:value="${corresponding_major_code}" />
                            <span class="span_line" readonly></span>
                        </div>

                        <!-- 与替代编码转换比 -->
                        <div class="customize-form-group edit">
                            <label>与替代编码转换比：</label>
                            <input type="text" name="conversion_ratio_to_alternative" class="styled-input edit_inputs" th:value="${conversion_ratio_to_alternative}" />
                            <span class="span_line" readonly></span>
                        </div>

                        <!-- 疾病种 -->
                        <div class="customize-form-group edit">
                            <label>疾病种：</label>
                            <input type="text" name="disease_type" class="styled-input edit_inputs" th:value="${disease_type}" />
                            <span class="span_line" readonly></span>
                        </div>

                        <!-- 品牌厂家名称 -->
                        <div class="customize-form-group edit">
                            <label>品牌厂家名称：</label>
                            <input type="text" name="brand_manufacturer_name" class="styled-input edit_inputs" th:value="${brand_manufacturer_name}" />
                            <span class="span_line" readonly></span>
                        </div>

                        <!-- 集团名称 -->
                        <div class="customize-form-group edit">
                            <label>集团名称：</label>
                            <input type="text" name="group_name" class="styled-input edit_inputs" th:value="${group_name}" />
                            <span class="span_line" readonly></span>
                        </div>

                        <!-- 外部组织机构 -->
                        <div class="customize-form-group edit">
                            <label>外部组织机构：</label>
                            <input type="text" name="external_organization" class="styled-input edit_inputs" th:value="${external_organization}" />
                            <span class="span_line" readonly></span>
                        </div>

                        <!-- 国谈品种 -->
                        <div class="customize-form-group edit">
                            <label>国谈品种：</label>
                            <input type="text" name="national_negotiated_product" class="styled-input edit_inputs" th:value="${national_negotiated_product}" />
                            <span class="span_line" readonly></span>
                        </div>

                        <!-- 国家贯标码 -->
                        <div class="customize-form-group edit">
                            <label>国家贯标码：</label>
                            <input type="text" name="national_standard_code" class="styled-input edit_inputs" th:value="${national_standard_code}" />
                            <span class="span_line" readonly></span>
                        </div>

                        <!-- 国家贯标码2 -->
                        <div class="customize-form-group edit">
                            <label>国家贯标码2：</label>
                            <input type="text" name="national_standard_code_2" class="styled-input edit_inputs" th:value="${national_standard_code_2}" />
                            <span class="span_line" readonly></span>
                        </div>

                        <!-- 医保最小剂量单位 -->
                        <div class="customize-form-group edit">
                            <label>医保最小剂量单位：</label>
                            <input type="text" name="medical_insurance_min_dose_unit" class="styled-input edit_inputs" th:value="${medical_insurance_min_dose_unit}" />
                            <span class="span_line" readonly></span>
                        </div>

                        <!-- 医保市场状态 -->
                        <div class="customize-form-group edit">
                            <label>医保市场状态：</label>
                            <input type="text" name="medical_market_status" class="styled-input edit_inputs" th:value="${medical_market_status}" />
                            <span class="span_line" readonly></span>
                        </div>

                        <!-- 核算厂家 -->
                        <div class="customize-form-group edit">
                            <label>核算厂家：</label>
                            <input type="text" name="accounting_manufacturer" class="styled-input edit_inputs" th:value="${accounting_manufacturer}" />
                            <span class="span_line" readonly></span>
                        </div>

                        <!-- 部门归属 -->
                        <div class="customize-form-group edit">
                            <label>部门归属：</label>
                            <input type="text" name="department_affiliation" class="styled-input edit_inputs" th:value="${department_affiliation}" />
                            <span class="span_line" readonly></span>
                        </div>

                        <!-- 慢病一线治疗用药 -->
                        <div class="customize-form-group edit">
                            <label>慢病一线治疗用药：</label>
                            <input type="text" name="chronic_disease_first_line_treatment" class="styled-input edit_inputs" th:value="${chronic_disease_first_line_treatment}" />
                            <span class="span_line" readonly></span>
                        </div>

                        <!-- 是否医保通用名 -->
                        <div class="customize-form-group edit">
                            <label>是否医保通用名：</label>
                            <select name="is_medical_generic_name" class="styled-input edit_inputs" th:with="type=${@dict.getType('sys_select_yes_no')}" >
                                <option value="">请选择</option>
                                <option th:each="dict : ${type}" th:value="${dict.dictValue}" th:selected="${dict.dictValue}==${is_medical_generic_name}" th:text="${dict.dictLabel}"></option>
                            </select>
                            <span class="span_line" readonly></span>
                        </div>

                        <!-- 新冠商品标签 -->
                        <div class="customize-form-group edit">
                            <label>新冠商品标签：</label>
                            <input type="text" name="covid_tag" class="styled-input edit_inputs" th:value="${covid_tag}" />
                            <span class="span_line" readonly></span>
                        </div>

                        <!-- 备注 -->
                        <div class="customize-form-group edit">
                            <label>备注：</label>
                            <textarea name="product_remarks" class="styled-input edit_inputs" th:text="${product_remarks}"></textarea>
                            <span class="span_line" readonly></span>
                        </div>

                    </form>
                </div>
                <!-- dtp -->
                <div id="tab-12" class="tab-pane">
                    <form class="customize-search-form" id="form-server-edit12" >
                        <!-- 是否医保药品 -->
                        <div class="customize-form-group edit">
                            <label>是否医保药品：</label>
                            <select name="is_insurance_drug" class="styled-input edit_inputs" th:with="type=${@dict.getType('sys_select_yes_no')}">
                                <option value="">请选择</option>
                                <option th:each="dict : ${type}" th:value="${dict.dictValue}" th:selected="${dict.dictValue}==${is_insurance_drug}" th:text="${dict.dictLabel}"></option>
                            </select>
                            <span class="span_line" readonly></span>
                        </div>

                        <!-- 医保类别 -->
                        <div class="customize-form-group edit">
                            <label>医保类别：</label>
                            <input type="text" name="insurance_category" class="styled-input edit_inputs" th:value="${insurance_category}" />
                            <span class="span_line" readonly></span>
                        </div>

                        <!-- 限购数量 -->
                        <div class="customize-form-group edit">
                            <label>限购数量：</label>
                            <input type="number" name="purchase_limit_quantity" class="styled-input edit_inputs" th:value="${purchase_limit_quantity}" />
                            <span class="span_line" readonly></span>
                        </div>

                        <!-- 是否凭处方销售 -->
                        <div class="customize-form-group edit">
                            <label class="is-required">是否凭处方销售：</label>
                            <select name="prescription_required" class="styled-input edit_inputs" th:with="type=${@dict.getType('sys_select_yes_no')}">
                                <option value="">请选择</option>
                                <option th:each="dict : ${type}" th:value="${dict.dictValue}" th:selected="${dict.dictValue}==${prescription_required}" th:text="${dict.dictLabel}"></option>
                            </select>
                            <span class="span_line" readonly></span>
                        </div>

                        <!-- 禁止请货 -->
                        <div class="customize-form-group edit">
                            <label>禁止请货：</label>
                            <select name="prohibit_ordering" class="styled-input edit_inputs" th:with="type=${@dict.getType('sys_select_yes_no')}">
                                <option value="">请选择</option>
                                <option th:each="dict : ${type}" th:value="${dict.dictValue}" th:selected="${dict.dictValue}==${prohibit_ordering}" th:text="${dict.dictLabel}"></option>
                            </select>
                            <span class="span_line" readonly></span>
                        </div>

                        <!-- 中包装请货逻辑 -->
                        <div class="customize-form-group edit">
                            <label>中包装请货逻辑：</label>
                            <textarea name="mid_pack_order_logic" class="styled-input edit_inputs" th:text="${mid_pack_order_logic}"></textarea>
                            <span class="span_line" readonly></span>
                        </div>

                        <!-- 请货最大上限 -->
                        <div class="customize-form-group edit">
                            <label>请货最大上限：</label>
                            <input type="number" name="max_order_limit" class="styled-input edit_inputs" th:value="${max_order_limit}" />
                            <span class="span_line" readonly></span>
                        </div>

                        <!-- 登记品 -->
                        <div class="customize-form-group edit">
                            <label class="is-required">登记品：</label>
                            <select name="registered_item" class="styled-input edit_inputs" th:with="type=${@dict.getType('sys_gxhpz_yes_no')}">
                                <option value="">请选择</option>
                                <option th:each="dict : ${type}" th:value="${dict.dictValue}" th:selected="${dict.dictValue}==${registered_item}" th:text="${dict.dictLabel}"></option>
                            </select>
                            <span class="span_line" readonly></span>
                        </div>

                        <!-- 随访品 -->
                        <div class="customize-form-group edit">
                            <label class="is-required">随访品：</label>
                            <select name="follow_up_item" class="styled-input edit_inputs" th:with="type=${@dict.getType('sys_gxhpz_yes_no')}">
                                <option value="">请选择</option>
                                <option th:each="dict : ${type}" th:value="${dict.dictValue}" th:selected="${dict.dictValue}==${follow_up_item}" th:text="${dict.dictLabel}"></option>
                            </select>
                            <span class="span_line" readonly></span>
                        </div>

                        <!-- 冷链品 -->
                        <div class="customize-form-group edit">
                            <label class="is-required">冷链品：</label>
                            <select name="cold_chain_item" class="styled-input edit_inputs"  th:with="type=${@dict.getType('sys_gxhpz_yes_no')}">
                                <option value="">请选择</option>
                                <option th:each="dict : ${type}" th:value="${dict.dictValue}" th:selected="${dict.dictValue}==${cold_chain_item}" th:text="${dict.dictLabel}"></option>
                            </select>
                            <span class="span_line" readonly></span>
                        </div>

                        <!-- 流向品 -->
                        <div class="customize-form-group edit">
                            <label class="is-required">流向品：</label>
                            <select name="flow_item" class="styled-input edit_inputs" th:with="type=${@dict.getType('sys_gxhpz_yes_no')}">
                                <option value="">请选择</option>
                                <option th:each="dict : ${type}" th:value="${dict.dictValue}" th:selected="${dict.dictValue}==${flow_item}" th:text="${dict.dictLabel}"></option>
                            </select>
                            <span class="span_line" readonly></span>
                        </div>

                        <!-- 慈善援助品 -->
                        <div class="customize-form-group edit">
                            <label>慈善援助品：</label>
                            <select name="charity_aid_item" class="styled-input edit_inputs" th:with="type=${@dict.getType('sys_gxhpz_yes_no')}">
                                <option value="">请选择</option>
                                <option th:each="dict : ${type}" th:value="${dict.dictValue}" th:selected="${dict.dictValue}==${charity_aid_item}" th:text="${dict.dictLabel}"></option>
                            </select>
                            <span class="span_line" readonly></span>
                        </div>
                        <div class="form-grid1">
                            <div class="form-field-left">
                                <label class="is-required">最大剂量数量：</label>
                                <input type="number" name="dosage_max"  placeholder="最大剂量数量" th:value="${dosage_max}" class="styled-input1" required />
                            </div>
                            <div class="form-field-right">
                                <label class="is-required">最大剂量单位：</label>
                                <select name="unit_max" class="styled-input1"  placeholder="最大剂量单位" th:with="type=${@dict.getType('sys_gxhpz_gg_unitall')}" required>
                                    <option value="">请选择</option>
                                    <option th:each="dict : ${type}" th:value="${dict.dictValue}" th:selected="${dict.dictValue}==${unit_max}" th:text="${dict.dictLabel}"></option>
                                </select>
                            </div>

                            <div class="form-field-left">
                                <label>常用剂量数量：</label>
                                <input type="number" name="dosage_normal"  placeholder="常用剂量数量" th:value="${dosage_normal}"   class="styled-input1" />
                            </div>
                            <div class="form-field-right">
                                <label>常用剂量单位：</label>
                                <select name="unit_normal" class="styled-input1"  placeholder="常用剂量单位" th:with="type=${@dict.getType('sys_gxhpz_gg_unitall')}">
                                    <option value="">请选择</option>
                                    <option th:each="dict : ${type}" th:value="${dict.dictValue}" th:selected="${dict.dictValue}==${unit_normal}" th:text="${dict.dictLabel}"></option>
                                </select>
                            </div>
                        </div>
                        <div class="form-grid2">
                            <div class="form-field-left">
                                <label class="is-required">最小剂量数量：</label>
                                <input type="number" name="dosage_min"  placeholder="最小剂量数量" th:value="${dosage_min}"  class="styled-input1" required />
                            </div>
                            <div class="form-field-right">
                                <label class="is-required">最小剂量单位：</label>
                                <select name="unit_min" class="styled-input1"  placeholder="最小剂量单位" th:with="type=${@dict.getType('sys_gxhpz_gg_unitall')}" required>
                                    <option value="">请选择</option>
                                    <option th:each="dict : ${type}" th:value="${dict.dictValue}" th:selected="${dict.dictValue}==${unit_min}" th:text="${dict.dictLabel}"></option>
                                </select>
                            </div>
                            <div class="form-field-left">
                                <label class="is-required">购药包装单位数值：</label>
                                <input type="number" name="packing_value"  placeholder="购药包装单位数值" th:value="${packing_value}"  class="styled-input1" required />
                            </div>
                            <div class="form-field-right">
                                <label>包装单位：</label>
                                <select name="packing_unit" class="styled-input1" placeholder="包装单位"  th:with="type=${@dict.getType('sys_gxhpz_gg_unitall')}">
                                    <option value="">请选择</option>
                                    <option th:each="dict : ${type}" th:value="${dict.dictValue}" th:selected="${dict.dictValue}==${packing_unit}" th:text="${dict.dictLabel}"></option>
                                </select>
                            </div>
                        </div>
                    </form>
                </div>
                <!-- 采购属性 -->
                <div id="tab-2" class="tab-pane">
                    <form class="customize-search-form" id="form-server-edit2" >
                        <!-- 参考进价 -->
                        <div class="customize-form-group edit">
                            <label class="is-required">参考进价：</label>
                            <input type="text" name="reference_purchase_price" class="styled-input edit_inputs" th:value="${reference_purchase_price}" />
                            <span class="span_line" readonly></span>
                        </div>

                        <!-- 是否越库 -->
                        <div class="customize-form-group edit">
                            <label>是否越库：</label>
                            <select name="is_direct_to_warehouse" class="styled-input edit_inputs" th:with="type=${@dict.getType('sys_select_yes_no')}">
                                <option value="">请选择</option>
                                <option th:each="dict : ${type}" th:value="${dict.dictValue}" th:selected="${dict.dictValue}==${is_direct_to_warehouse}" th:text="${dict.dictLabel}"></option>
                            </select>
                            <span class="span_line" readonly></span>
                        </div>

                        <!-- 采购组 -->
                        <div class="customize-form-group edit">
                            <label>采购组：</label>
                            <input type="text" name="purchase_group" class="styled-input edit_inputs" th:value="${purchase_group}" />
                            <span class="span_line" readonly></span>
                        </div>

                        <!-- 渠道属性 -->
                        <div class="customize-form-group edit">
                            <label>渠道属性：</label>
                            <input type="text" name="channel_attribute" class="styled-input edit_inputs" th:value="${channel_attribute}" />
                            <span class="span_line" readonly></span>
                        </div>

                        <!-- 采购组织 -->
                        <div class="customize-form-group edit">
                            <label>采购组织：</label>
                            <input type="text" name="purchase_organization" class="styled-input edit_inputs" th:value="${purchase_organization}" />
                            <span class="span_line" readonly></span>
                        </div>

                        <!-- 禁止采购 -->
                        <div class="customize-form-group edit">
                            <label>禁止采购：</label>
                            <select name="is_purchase_prohibited" class="styled-input edit_inputs" th:with="type=${@dict.getType('sys_select_yes_no')}">
                                <option value="">请选择</option>
                                <option th:each="dict : ${type}" th:value="${dict.dictValue}" th:selected="${dict.dictValue}==${is_purchase_prohibited}" th:text="${dict.dictLabel}"></option>
                            </select>
                            <span class="span_line" readonly></span>
                        </div>

                        <!-- 集团商品采购属性 -->
                        <div class="customize-form-group edit">
                            <label>集团商品采购属性：</label>
                            <input type="text" name="group_product_purchase_attribute" class="styled-input edit_inputs" th:value="${group_product_purchase_attribute}" />
                            <span class="span_line" readonly></span>
                        </div>

                        <!-- 是否原研 -->
                        <div class="customize-form-group edit">
                            <label>是否原研：</label>
                            <select name="is_original_research" class="styled-input edit_inputs" th:with="type=${@dict.getType('sys_select_yes_no')}">
                                <option value="">请选择</option>
                                <option th:each="dict : ${type}" th:value="${dict.dictValue}" th:selected="${dict.dictValue}==${is_original_research}" th:text="${dict.dictLabel}"></option>
                            </select>
                            <span class="span_line" readonly></span>
                        </div>

                        <!-- 品牌属性 -->
                        <div class="customize-form-group edit">
                            <label>品牌属性：</label>
                            <input type="text" name="brand_attribute" class="styled-input edit_inputs" th:value="${brand_attribute}" />
                            <span class="span_line" readonly></span>
                        </div>

                        <!-- 消费健康自有品牌商品 -->
                        <div class="customize-form-group edit">
                            <label>消费健康自有品牌商品：</label>
                            <select name="consumer_health_own_brand" class="styled-input edit_inputs" th:with="type=${@dict.getType('sys_select_yes_no')}">
                                <option value="">请选择</option>
                                <option th:each="dict : ${type}" th:value="${dict.dictValue}" th:selected="${dict.dictValue}==${consumer_health_own_brand}" th:text="${dict.dictLabel}"></option>
                            </select>
                            <span class="span_line" readonly></span>
                        </div>

                        <!-- 大健康品类 -->
                        <div class="customize-form-group edit">
                            <label>大健康品类：</label>
                            <input type="text" name="health_category" class="styled-input edit_inputs" th:value="${health_category}" />
                            <span class="span_line" readonly></span>
                        </div>

                        <!-- 注册人营业执照统一信用代码 -->
                        <div class="customize-form-group edit">
                            <label>注册人营业执照统一信用代码：</label>
                            <input type="text" name="registrant_unified_social_credit_code" class="styled-input edit_inputs" th:value="${registrant_unified_social_credit_code}" />
                            <span class="span_line" readonly></span>
                        </div>

                        <!-- 是否泛DTP -->
                        <div class="customize-form-group edit">
                            <label>是否泛DTP：</label>
                            <select name="is_broad_dtp" class="styled-input edit_inputs" th:with="type=${@dict.getType('sys_select_yes_no')}">
                                <option value="">请选择</option>
                                <option th:each="dict : ${type}" th:value="${dict.dictValue}" th:selected="${dict.dictValue}==${is_broad_dtp}" th:text="${dict.dictLabel}"></option>
                            </select>
                            <span class="span_line" readonly></span>
                        </div>

                        <!-- 采购属性 -->
                        <div class="customize-form-group edit">
                            <label>采购属性：</label>
                            <input type="text" name="purchase_attribute" class="styled-input edit_inputs" th:value="${purchase_attribute}" />
                            <span class="span_line" readonly></span>
                        </div>

                        <!-- 经营属性 -->
                        <div class="customize-form-group edit">
                            <label>经营属性：</label>
                            <input type="text" name="operation_attribute" class="styled-input edit_inputs" th:value="${operation_attribute}" />
                            <span class="span_line" readonly></span>
                        </div>

                        <!-- 档案号 -->
                        <div class="customize-form-group edit">
                            <label>档案号：</label>
                            <input type="text" name="archive_number" class="styled-input edit_inputs" th:value="${archive_number}" />
                            <span class="span_line" readonly></span>
                        </div>

                        <!-- 特殊销售属性 -->
                        <div class="customize-form-group edit">
                            <label>特殊销售属性：</label>
                            <input type="text" name="special_sales_attribute" class="styled-input edit_inputs" th:value="${special_sales_attribute}" />
                            <span class="span_line" readonly></span>
                        </div>

                        <!-- 大仓是否正常备货 -->
                        <div class="customize-form-group edit">
                            <label>大仓是否正常备货：</label>
                            <select name="is_normal_stock_in_central_warehouse" class="styled-input edit_inputs" th:with="type=${@dict.getType('sys_select_yes_no')}">
                                <option value="">请选择</option>
                                <option th:each="dict : ${type}" th:value="${dict.dictValue}" th:selected="${dict.dictValue}==${is_normal_stock_in_central_warehouse}" th:text="${dict.dictLabel}"></option>
                            </select>
                            <span class="span_line" readonly></span>
                        </div>

                        <!-- 是否已首营 -->
                        <div class="customize-form-group edit">
                            <label>是否已首营：</label>
                            <select name="is_first_operation" class="styled-input edit_inputs" th:with="type=${@dict.getType('sys_select_yes_no')}">
                                <option value="">请选择</option>
                                <option th:each="dict : ${type}" th:value="${dict.dictValue}" th:selected="${dict.dictValue}==${is_first_operation}" th:text="${dict.dictLabel}"></option>
                            </select>
                            <span class="span_line" readonly></span>
                        </div>

                        <!-- 数据创建时间 -->
                        <div class="customize-form-group edit">
                            <label>数据创建时间：</label>
                            <input type="datetime-local" name="data_creation_time" class="styled-input edit_inputs" th:value="${data_creation_time}" />
                            <span class="span_line" readonly></span>
                        </div>

                        <!-- 商品中码策略 -->
                        <div class="customize-form-group edit">
                            <label>商品中码策略：</label>
                            <input type="text" name="product_mid_code_strategy" class="styled-input edit_inputs" th:value="${product_mid_code_strategy}" />
                            <span class="span_line" readonly></span>
                        </div>
                        <!-- 是否完成成分梳理 -->
                        <div class="customize-form-group edit">
                            <label>是否完成成分梳理：</label>
                            <select name="is_completed_component_analysis" class="styled-input edit_inputs" th:with="type=${@dict.getType('sys_select_yes_no')}">
                                <option value="">请选择</option>
                                <option th:each="dict : ${type}" th:value="${dict.dictValue}" th:selected="${dict.dictValue}==${is_completed_component_analysis}" th:text="${dict.dictLabel}"></option>
                            </select>
                            <span class="span_line" readonly></span>
                        </div>

                        <!-- 控制销售属性标识 -->
                        <div class="customize-form-group edit">
                            <label>控制销售属性标识：</label>
                            <input type="text" name="sales_control_attribute" class="styled-input edit_inputs" th:value="${sales_control_attribute}" />
                            <span class="span_line" readonly></span>
                        </div>

                        <!-- 4+7标识 -->
                        <div class="customize-form-group edit">
                            <label>4+7标识：</label>
                            <select name="four_plus_seven_label" class="styled-input edit_inputs" th:with="type=${@dict.getType('sys_select_yes_no')}">
                                <option value="">请选择</option>
                                <option th:each="dict : ${type}" th:value="${dict.dictValue}" th:selected="${dict.dictValue}==${four_plus_seven_label}" th:text="${dict.dictLabel}"></option>
                            </select>
                            <span class="span_line" readonly></span>
                        </div>

                        <!-- 平台共性首推 -->
                        <div class="customize-form-group edit">
                            <label>平台共性首推：</label>
                            <select name="platform_common_recommendation" class="styled-input edit_inputs" th:with="type=${@dict.getType('sys_select_yes_no')}">
                                <option value="">请选择</option>
                                <option th:each="dict : ${type}" th:value="${dict.dictValue}" th:selected="${dict.dictValue}==${platform_common_recommendation}" th:text="${dict.dictLabel}"></option>
                            </select>
                            <span class="span_line" readonly></span>
                        </div>

                        <!-- 商业大流通商品 -->
                        <div class="customize-form-group edit">
                            <label>商业大流通商品：</label>
                            <select name="commercial_large_circulation_product" class="styled-input edit_inputs" th:with="type=${@dict.getType('sys_select_yes_no')}">
                                <option value="">请选择</option>
                                <option th:each="dict : ${type}" th:value="${dict.dictValue}" th:selected="${dict.dictValue}==${commercial_large_circulation_product}" th:text="${dict.dictLabel}"></option>
                            </select>
                            <span class="span_line" readonly></span>
                        </div>

                        <!-- 统采淘汰时间 -->
                        <div class="customize-form-group edit">
                            <label>统采淘汰时间：</label>
                            <input type="date" name="unified_procurement_elimination_time" class="styled-input edit_inputs" th:value="${unified_procurement_elimination_time}" />
                            <span class="span_line" readonly></span>
                        </div>

                        <!-- 集采淘汰时间 -->
                        <div class="customize-form-group edit">
                            <label>集采淘汰时间：</label>
                            <input type="date" name="centralized_procurement_elimination_time" class="styled-input edit_inputs" th:value="${centralized_procurement_elimination_time}" />
                            <span class="span_line" readonly></span>
                        </div>

                        <!-- 中参特殊属性 -->
                        <div class="customize-form-group edit">
                            <label>中参特殊属性：</label>
                            <input type="text" name="zc_special_attributes" class="styled-input edit_inputs" th:value="${zc_special_attributes}" />
                            <span class="span_line" readonly></span>
                        </div>

                        <!-- 新旧编码转换比例 -->
                        <div class="customize-form-group edit">
                            <label>新旧编码转换比例：</label>
                            <input type="text" name="old_new_code_conversion_ratio" class="styled-input edit_inputs" th:value="${old_new_code_conversion_ratio}" />
                            <span class="span_line" readonly></span>
                        </div>

                        <!-- 双通道药品 -->
                        <div class="customize-form-group edit">
                            <label>双通道药品：</label>
                            <select name="dual_channel_drug" class="styled-input edit_inputs" th:with="type=${@dict.getType('sys_select_yes_no')}">
                                <option value="">请选择</option>
                                <option th:each="dict : ${type}" th:value="${dict.dictValue}" th:selected="${dict.dictValue}==${dual_channel_drug}" th:text="${dict.dictLabel}"></option>
                            </select>
                            <span class="span_line" readonly></span>
                        </div>

                        <!-- 国谈价格 -->
                        <div class="customize-form-group edit">
                            <label class="is-required">国谈价格：</label>
                            <input type="text" name="national_negotiated_price" class="styled-input edit_inputs" th:value="${national_negotiated_price}" required />
                            <span class="span_line" readonly></span>
                        </div>

                        <!-- 广州药监商品码 -->
                        <div class="customize-form-group edit">
                            <label>广州药监商品码：</label>
                            <input type="text" name="guangzhou_pharmaceutical_supervision_code" class="styled-input edit_inputs" th:value="${guangzhou_pharmaceutical_supervision_code}" />
                            <span class="span_line" readonly></span>
                        </div>

                        <!-- 统筹报销商品 -->
                        <div class="customize-form-group edit">
                            <label>统筹报销商品：</label>
                            <select name="coordinated_reimbursement_product" class="styled-input edit_inputs" th:with="type=${@dict.getType('sys_select_yes_no')}">
                                <option value="">请选择</option>
                                <option th:each="dict : ${type}" th:value="${dict.dictValue}" th:selected="${dict.dictValue}==${coordinated_reimbursement_product}" th:text="${dict.dictLabel}"></option>
                            </select>
                            <span class="span_line" readonly></span>
                        </div>

                        <!-- 两盘货属性 -->
                        <div class="customize-form-group edit">
                            <label>两盘货属性：</label>
                            <input type="text" name="two_pantry_goods_attribute" class="styled-input edit_inputs" th:value="${two_pantry_goods_attribute}" />
                            <span class="span_line" readonly></span>
                        </div>

                        <!-- 是否限制门店经营 -->
                        <div class="customize-form-group edit">
                            <label>是否限制门店经营：</label>
                            <select name="is_store_operation_restricted" class="styled-input edit_inputs" th:with="type=${@dict.getType('sys_select_yes_no')}">
                                <option value="">请选择</option>
                                <option th:each="dict : ${type}" th:value="${dict.dictValue}" th:selected="${dict.dictValue}==${is_store_operation_restricted}" th:text="${dict.dictLabel}"></option>
                            </select>
                            <span class="span_line" readonly></span>
                        </div>

                        <!-- 是否可配加盟店 -->
                        <div class="customize-form-group edit">
                            <label>是否可配加盟店：</label>
                            <select name="can_be_allocated_to_franchise_stores" class="styled-input edit_inputs" th:with="type=${@dict.getType('sys_select_yes_no')}">
                                <option value="">请选择</option>
                                <option th:each="dict : ${type}" th:value="${dict.dictValue}" th:selected="${dict.dictValue}==${can_be_allocated_to_franchise_stores}" th:text="${dict.dictLabel}"></option>
                            </select>
                            <span class="span_line" readonly></span>
                        </div>

                        <!-- 加盟店是否享受统采政策 -->
                        <div class="customize-form-group edit">
                            <label>加盟店是否享受统采政策：</label>
                            <select name="franchise_stores_enjoy_unified_procurement_policy" class="styled-input edit_inputs" th:with="type=${@dict.getType('sys_select_yes_no')}">
                                <option value="">请选择</option>
                                <option th:each="dict : ${type}" th:value="${dict.dictValue}" th:selected="${dict.dictValue}==${franchise_stores_enjoy_unified_procurement_policy}" th:text="${dict.dictLabel}"></option>
                            </select>
                            <span class="span_line" readonly></span>
                        </div>

                        <!-- 医保采购类型 -->
                        <div class="customize-form-group edit">
                            <label>医保采购类型：</label>
                            <input type="text" name="medical_insurance_purchase_type" class="styled-input edit_inputs" th:value="${medical_insurance_purchase_type}" />
                            <span class="span_line" readonly></span>
                        </div>
                    </form>
                </div>
                <!-- 物流属性 -->
                <div id="tab-3" class="tab-pane">
                    <form class="customize-search-form" id="form-server-edit3" >
                        <!-- 存储分类 -->
                        <div class="customize-form-group edit">
                            <label class="is-required">存储分类：</label>
                            <input type="text" name="storage_category" class="styled-input edit_inputs" th:value="${storage_category}" required />
                            <span class="span_line" readonly></span>
                        </div>

                        <!-- 是否易碎 -->
                        <div class="customize-form-group edit">
                            <label>是否易碎：</label>
                            <select name="is_fragile" class="styled-input edit_inputs" th:with="type=${@dict.getType('sys_select_yes_no')}">
                                <option value="">请选择</option>
                                <option th:each="dict : ${type}" th:value="${dict.dictValue}" th:selected="${dict.dictValue}==${is_fragile}" th:text="${dict.dictLabel}"></option>
                            </select>
                            <span class="span_line" readonly></span>
                        </div>

                        <!-- 是否危险品 -->
                        <div class="customize-form-group edit">
                            <label>是否危险品：</label>
                            <select name="is_hazardous" class="styled-input edit_inputs" th:with="type=${@dict.getType('sys_select_yes_no')}">
                                <option value="">请选择</option>
                                <option th:each="dict : ${type}" th:value="${dict.dictValue}" th:selected="${dict.dictValue}==${is_hazardous}" th:text="${dict.dictLabel}"></option>
                            </select>
                            <span class="span_line" readonly></span>
                        </div>

                        <!-- 是否异形品 -->
                        <div class="customize-form-group edit">
                            <label>是否异形品：</label>
                            <select name="is_odd_shape" class="styled-input edit_inputs" th:with="type=${@dict.getType('sys_select_yes_no')}">
                                <option value="">请选择</option>
                                <option th:each="dict : ${type}" th:value="${dict.dictValue}" th:selected="${dict.dictValue}==${is_odd_shape}" th:text="${dict.dictLabel}"></option>
                            </select>
                            <span class="span_line" readonly></span>
                        </div>

                        <!-- 基本包装长 -->
                        <div class="customize-form-group edit">
                            <label>基本包装长：</label>
                            <input type="text" name="basic_package_length" class="styled-input edit_inputs" th:value="${basic_package_length}" />
                            <span class="span_line" readonly></span>
                        </div>

                        <!-- 基本包装宽 -->
                        <div class="customize-form-group edit">
                            <label>基本包装宽：</label>
                            <input type="text" name="basic_package_width" class="styled-input edit_inputs" th:value="${basic_package_width}" />
                            <span class="span_line" readonly></span>
                        </div>

                        <!-- 基本包装高 -->
                        <div class="customize-form-group edit">
                            <label>基本包装高：</label>
                            <input type="text" name="basic_package_height" class="styled-input edit_inputs" th:value="${basic_package_height}" />
                            <span class="span_line" readonly></span>
                        </div>

                        <!-- 饮片最小包装量 -->
                        <div class="customize-form-group edit">
                            <label>饮片最小包装量：</label>
                            <input type="text" name="minimum_package_quantity" class="styled-input edit_inputs" th:value="${minimum_package_quantity}" />
                            <span class="span_line" readonly></span>
                        </div>

                        <!-- 中包装量 -->
                        <div class="customize-form-group edit">
                            <label>中包装量：</label>
                            <input type="text" name="medium_package_quantity" class="styled-input edit_inputs" th:value="${medium_package_quantity}" />
                            <span class="span_line" readonly></span>
                        </div>

                        <!-- 箱包装量 -->
                        <div class="customize-form-group edit">
                            <label>箱包装量：</label>
                            <input type="text" name="box_package_quantity" class="styled-input edit_inputs" th:value="${box_package_quantity}" />
                            <span class="span_line" readonly></span>
                        </div>

                        <!-- 是否启用中包装 -->
                        <div class="customize-form-group edit">
                            <label>是否启用中包装：</label>
                            <select name="is_medium_package_enabled" class="styled-input edit_inputs" th:with="type=${@dict.getType('sys_select_yes_no')}">
                                <option value="">请选择</option>
                                <option th:each="dict : ${type}" th:value="${dict.dictValue}" th:selected="${dict.dictValue}==${is_medium_package_enabled}" th:text="${dict.dictLabel}"></option>
                            </select>
                            <span class="span_line" readonly></span>
                        </div>

                        <!-- 中包装起请比例 -->
                        <div class="customize-form-group edit">
                            <label>中包装起请比例：</label>
                            <input type="text" name="medium_package_request_ratio" class="styled-input edit_inputs" th:value="${medium_package_request_ratio}" />
                            <span class="span_line" readonly></span>
                        </div>
                    </form>
                </div>
                <!-- 质管属性 -->
                <div id="tab-4" class="tab-pane">
                    <form class="customize-search-form" id="form-server-edit4" >
                        <!-- 是否生产批号管理 -->
                        <div class="customize-form-group edit">
                            <label>是否生产批号管理：</label>
                            <select name="is_production_batch_management" class="styled-input edit_inputs" th:with="type=${@dict.getType('sys_select_yes_no')}">
                                <option value="">请选择</option>
                                <option th:each="dict : ${type}" th:value="${dict.dictValue}" th:selected="${dict.dictValue}==${is_production_batch_management}" th:text="${dict.dictLabel}"></option>
                            </select>
                            <span class="span_line" readonly></span>
                        </div>

                        <!-- 经营范围 -->
                        <div class="customize-form-group edit">
                            <label>经营范围：</label>
                            <textarea name="business_scope" class="styled-input edit_inputs" th:text="${business_scope}"></textarea>
                            <span class="span_line" readonly></span>
                        </div>

                        <!-- 处方类别 -->
                        <div class="customize-form-group edit">
                            <label>处方类别：</label>
                            <input type="text" name="prescription_category" class="styled-input edit_inputs" th:value="${prescription_category}" />
                            <span class="span_line" readonly></span>
                        </div>

                        <!-- 处方类别二级 -->
                        <div class="customize-form-group edit">
                            <label>处方类别二级：</label>
                            <input type="text" name="prescription_category_secondary" class="styled-input edit_inputs" th:value="${prescription_category_secondary}" />
                            <span class="span_line" readonly></span>
                        </div>

                        <!-- 处方类别三级 -->
                        <div class="customize-form-group edit">
                            <label>处方类别三级：</label>
                            <input type="text" name="prescription_category_tertiary" class="styled-input edit_inputs" th:value="${prescription_category_tertiary}" />
                            <span class="span_line" readonly></span>
                        </div>

                        <!-- 批准文号1 -->
                        <div class="customize-form-group edit">
                            <label class="is-required">批准文号1：</label>
                            <input type="text" name="approval_number_1" class="styled-input edit_inputs" th:value="${approval_number_1}" required />
                            <span class="span_line" readonly></span>
                        </div>

                        <!-- 批准文号1有效期 -->
                        <div class="customize-form-group edit">
                            <label>批准文号1有效期：</label>
                            <input type="date" name="approval_number_1_expiry" class="styled-input edit_inputs" th:value="${approval_number_1_expiry}" />
                            <span class="span_line" readonly></span>
                        </div>

                        <!-- 批准文号2 -->
                        <div class="customize-form-group edit">
                            <label>批准文号2：</label>
                            <input type="text" name="approval_number_2" class="styled-input edit_inputs" th:value="${approval_number_2}" />
                            <span class="span_line" readonly></span>
                        </div>

                        <!-- 批准文号2有效期 -->
                        <div class="customize-form-group edit">
                            <label>批准文号2有效期：</label>
                            <input type="date" name="approval_number_2_expiry" class="styled-input edit_inputs" th:value="${approval_number_2_expiry}" />
                            <span class="span_line" readonly></span>
                        </div>

                        <!-- 注册证号1 -->
                        <div class="customize-form-group edit">
                            <label>注册证号1：</label>
                            <input type="text" name="registration_certificate_1" class="styled-input edit_inputs" th:value="${registration_certificate_1}" />
                            <span class="span_line" readonly></span>
                        </div>

                        <!-- 注册证号1有效期 -->
                        <div class="customize-form-group edit">
                            <label>注册证号1有效期：</label>
                            <input type="date" name="registration_certificate_1_expiry" class="styled-input edit_inputs" th:value="${registration_certificate_1_expiry}" />
                            <span class="span_line" readonly></span>
                        </div>

                        <!-- 注册证号2 -->
                        <div class="customize-form-group edit">
                            <label>注册证号2：</label>
                            <input type="text" name="registration_certificate_2" class="styled-input edit_inputs" th:value="${registration_certificate_2}" />
                            <span class="span_line" readonly></span>
                        </div>

                        <!-- 注册证号2有效期 -->
                        <div class="customize-form-group edit">
                            <label>注册证号2有效期：</label>
                            <input type="date" name="registration_certificate_2_expiry" class="styled-input edit_inputs" th:value="${registration_certificate_2_expiry}" />
                            <span class="span_line" readonly></span>
                        </div>

                        <!-- 生产许可证号/备案 -->
                        <div class="customize-form-group edit">
                            <label>生产许可证号/备案：</label>
                            <input type="text" name="production_license" class="styled-input edit_inputs" th:value="${production_license}" />
                            <span class="span_line" readonly></span>
                        </div>

                        <!-- 生产许可证号有效期 -->
                        <div class="customize-form-group edit">
                            <label>生产许可证号有效期：</label>
                            <input type="date" name="production_license_expiry" class="styled-input edit_inputs" th:value="${production_license_expiry}" />
                            <span class="span_line" readonly></span>
                        </div>

                        <!-- 是否冷链药品 -->
                        <div class="customize-form-group edit">
                            <label>是否冷链药品：</label>
                            <select name="is_cold_chain_drug" class="styled-input edit_inputs" th:with="type=${@dict.getType('sys_select_yes_no')}">
                                <option value="">请选择</option>
                                <option th:each="dict : ${type}" th:value="${dict.dictValue}" th:selected="${dict.dictValue}==${is_cold_chain_drug}" th:text="${dict.dictLabel}"></option>
                            </select>
                            <span class="span_line" readonly></span>
                        </div>

                        <!-- 是否二次验复 -->
                        <div class="customize-form-group edit">
                            <label>是否二次验复：</label>
                            <select name="is_second_inspection" class="styled-input edit_inputs" th:with="type=${@dict.getType('sys_select_yes_no')}">
                                <option value="">请选择</option>
                                <option th:each="dict : ${type}" th:value="${dict.dictValue}" th:selected="${dict.dictValue}==${is_second_inspection}" th:text="${dict.dictLabel}"></option>
                            </select>
                            <span class="span_line" readonly></span>
                        </div>

                        <!-- 本位码 -->
                        <div class="customize-form-group edit">
                            <label>本位码：</label>
                            <input type="text" name="local_code" class="styled-input edit_inputs" th:value="${local_code}" />
                            <span class="span_line" readonly></span>
                        </div>

                        <!-- 药理毒理 -->
                        <div class="customize-form-group edit">
                            <label>药理毒理：</label>
                            <textarea name="pharmacology_toxicology" class="styled-input edit_inputs" th:text="${pharmacology_toxicology}"></textarea>
                            <span class="span_line" readonly></span>
                        </div>

                        <!-- 临床试验 -->
                        <div class="customize-form-group edit">
                            <label>临床试验：</label>
                            <textarea name="clinical_trial" class="styled-input edit_inputs" th:text="${clinical_trial}"></textarea>
                            <span class="span_line" readonly></span>
                        </div>

                        <!-- 药物过量 -->
                        <div class="customize-form-group edit">
                            <label>药物过量：</label>
                            <textarea name="drug_overdose" class="styled-input edit_inputs" th:text="${drug_overdose}"></textarea>
                            <span class="span_line" readonly></span>
                        </div>

                        <!-- 老年患者用药 -->
                        <div class="customize-form-group edit">
                            <label>老年患者用药：</label>
                            <textarea name="elderly_patient_usage" class="styled-input edit_inputs" th:text="${elderly_patient_usage}"></textarea>
                            <span class="span_line" readonly></span>
                        </div>

                        <!-- 儿童患者用药 -->
                        <div class="customize-form-group edit">
                            <label>儿童患者用药：</label>
                            <textarea name="pediatric_patient_usage" class="styled-input edit_inputs" th:text="${pediatric_patient_usage}"></textarea>
                            <span class="span_line" readonly></span>
                        </div>

                        <!-- 孕妇及哺乳期用药 -->
                        <div class="customize-form-group edit">
                            <label>孕妇及哺乳期用药：</label>
                            <textarea name="pregnant_breastfeeding_usage" class="styled-input edit_inputs" th:text="${pregnant_breastfeeding_usage}"></textarea>
                            <span class="span_line" readonly></span>
                        </div>

                        <!-- 药品成份 -->
                        <div class="customize-form-group edit">
                            <label>药品成份：</label>
                            <textarea name="ingredients" class="styled-input edit_inputs" rows="4" th:text="${ingredients}"></textarea>
                            <span class="span_line" readonly></span>
                        </div>

                        <!-- 集团质量状态 -->
                        <div class="customize-form-group edit">
                            <label>集团质量状态：</label>
                            <input type="text" name="group_quality_status" class="styled-input edit_inputs" th:value="${group_quality_status}" />
                            <span class="span_line" readonly></span>
                        </div>

                        <!-- 包装规格 -->
                        <div class="customize-form-group edit">
                            <label>包装规格：</label>
                            <input type="text" name="package_specification" class="styled-input edit_inputs" th:value="${package_specification}" />
                            <span class="span_line" readonly></span>
                        </div>

                        <!-- 贮藏 -->
                        <div class="customize-form-group edit">
                            <label>贮藏：</label>
                            <textarea name="storage_conditions" class="styled-input edit_inputs" rows="4" th:text="${storage_conditions}"></textarea>
                            <span class="span_line" readonly></span>
                        </div>

                        <!-- 包装是否含追溯码 -->
                        <div class="customize-form-group edit">
                            <label>包装是否含追溯码：</label>
                            <select name="has_traceability_code" class="styled-input edit_inputs" th:with="type=${@dict.getType('sys_select_yes_no')}">
                                <option value="">请选择</option>
                                <option th:each="dict : ${type}" th:value="${dict.dictValue}" th:selected="${dict.dictValue}==${has_traceability_code}" th:text="${dict.dictLabel}"></option>
                            </select>
                            <span class="span_line" readonly></span>
                        </div>

                        <!-- 允收期(天) -->
                        <div class="customize-form-group edit">
                            <label>允收期(天)：</label>
                            <input type="number" name="acceptance_period_days" class="styled-input edit_inputs" min="0" th:value="${acceptance_period_days}" />
                            <span class="span_line" readonly></span>
                        </div>

                        <!-- 是否管理序列号 -->
                        <div class="customize-form-group edit">
                            <label>是否管理序列号：</label>
                            <select name="is_serial_number_managed" class="styled-input edit_inputs" th:with="type=${@dict.getType('sys_select_yes_no')}">
                                <option value="">请选择</option>
                                <option th:each="dict : ${type}" th:value="${dict.dictValue}" th:selected="${dict.dictValue}==${is_serial_number_managed}" th:text="${dict.dictLabel}"></option>
                            </select>
                            <span class="span_line" readonly></span>
                        </div>

                        <!-- 近效期 -->
                        <div class="customize-form-group edit">
                            <label>近效期：</label>
                            <input type="date" name="near_expiry_date" class="styled-input edit_inputs" th:value="${near_expiry_date}" />
                            <span class="span_line" readonly></span>
                        </div>

                        <!-- 企业持有批准文号有效期 -->
                        <div class="customize-form-group edit">
                            <label>企业持有批准文号有效期：</label>
                            <input type="date" name="company_approval_expiry" class="styled-input edit_inputs" th:value="${company_approval_expiry}" />
                            <span class="span_line" readonly></span>
                        </div>

                        <!-- 企业持有注册证号有效期 -->
                        <div class="customize-form-group edit">
                            <label>企业持有注册证号有效期：</label>
                            <input type="date" name="company_registration_expiry" class="styled-input edit_inputs" th:value="${company_registration_expiry}" />
                            <span class="span_line" readonly></span>
                        </div>

                        <!-- 是否扫码追溯商品 -->
                        <div class="customize-form-group edit">
                            <label>是否扫码追溯商品：</label>
                            <select name="is_scan_traceable" class="styled-input edit_inputs" th:with="type=${@dict.getType('sys_select_yes_no')}">
                                <option value="">请选择</option>
                                <option th:each="dict : ${type}" th:value="${dict.dictValue}" th:selected="${dict.dictValue}==${is_scan_traceable}" th:text="${dict.dictLabel}"></option>
                            </select>
                            <span class="span_line" readonly></span>
                        </div>

                        <!-- 中国野生动物经营利用管理专用标识 -->
                        <div class="customize-form-group edit">
                            <label>中国野生动物经营利用管理专用标识：</label>
                            <input type="text" name="wildlife_management_identification" class="styled-input edit_inputs" th:value="${wildlife_management_identification}" />
                            <span class="span_line" readonly></span>
                        </div>

                        <!-- 特定药品销售管控 -->
                        <div class="customize-form-group edit">
                            <label>特定药品销售管控：</label>
                            <textarea name="special_sales_control" class="styled-input edit_inputs" rows="4" th:text="${special_sales_control}"></textarea>
                            <span class="span_line" readonly></span>
                        </div>

                        <!-- 是否UDI扫码 -->
                        <div class="customize-form-group edit">
                            <label>是否UDI扫码：</label>
                            <select name="is_udi_scanned" class="styled-input edit_inputs" th:with="type=${@dict.getType('sys_select_yes_no')}">
                                <option value="">请选择</option>
                                <option th:each="dict : ${type}" th:value="${dict.dictValue}" th:selected="${dict.dictValue}==${is_udi_scanned}" th:text="${dict.dictLabel}"></option>
                            </select>
                            <span class="span_line" readonly></span>
                        </div>

                        <!-- 处方最大用药天数 -->
                        <div class="customize-form-group edit">
                            <label>处方最大用药天数：</label>
                            <input type="number" name="max_prescription_days" class="styled-input edit_inputs" min="0" th:value="${max_prescription_days}" />
                            <span class="span_line" readonly></span>
                        </div>

                        <!-- 限制用药 -->
                        <div class="customize-form-group edit">
                            <label>限制用药：</label>
                            <textarea name="restricted_usage" class="styled-input edit_inputs" rows="4" th:text="${restricted_usage}"></textarea>
                            <span class="span_line" readonly></span>
                        </div>
                    </form>
                </div>
                <!-- 销售属性 -->
                <div id="tab-5" class="tab-pane">
                    <form class="customize-search-form" id="form-server-edit5" >
                        <!-- 参考零售价 -->
                        <div class="customize-form-group edit">
                            <label>参考零售价：</label>
                            <input type="number" name="reference_retail_price" class="styled-input edit_inputs" step="0.01" th:value="${reference_retail_price}" />
                            <span class="span_line" readonly></span>
                        </div>

                        <!-- 线上销售 -->
                        <div class="customize-form-group edit">
                            <label>线上销售：</label>
                            <select name="online_sales" class="styled-input edit_inputs" th:with="type=${@dict.getType('sys_select_yes_no')}">
                                <option value="">请选择</option>
                                <option th:each="dict : ${type}" th:value="${dict.dictValue}" th:selected="${dict.dictValue}==${online_sales}" th:text="${dict.dictLabel}"></option>
                            </select>
                            <span class="span_line" readonly></span>
                        </div>

                        <!-- 中台商品SPUID -->
                        <div class="customize-form-group edit">
                            <label>中台商品SPUID：</label>
                            <input type="text" name="mid_platform_product_spuid" class="styled-input edit_inputs" th:value="${mid_platform_product_spuid}" />
                            <span class="span_line" readonly></span>
                        </div>

                        <!-- 中台商品类型 -->
                        <div class="customize-form-group edit">
                            <label>中台商品类型：</label>
                            <input type="text" name="mid_platform_product_type" class="styled-input edit_inputs" th:value="${mid_platform_product_type}" />
                            <span class="span_line" readonly></span>
                        </div>

                        <!-- 外部传输系统 -->
                        <div class="customize-form-group edit">
                            <label>外部传输系统：</label>
                            <input type="text" name="external_transmission_system" class="styled-input edit_inputs" th:value="${external_transmission_system}" />
                            <span class="span_line" readonly></span>
                        </div>

                        <!-- 线上O2O -->
                        <div class="customize-form-group edit">
                            <label>线上O2O：</label>
                            <select name="online_o2o" class="styled-input edit_inputs" th:with="type=${@dict.getType('sys_select_yes_no')}">
                                <option value="">请选择</option>
                                <option th:each="dict : ${type}" th:value="${dict.dictValue}" th:selected="${dict.dictValue}==${online_o2o}" th:text="${dict.dictLabel}"></option>
                            </select>
                            <span class="span_line" readonly></span>
                        </div>

                        <!-- 线上B2C -->
                        <div class="customize-form-group edit">
                            <label>线上B2C：</label>
                            <select name="online_b2c" class="styled-input edit_inputs" th:with="type=${@dict.getType('sys_select_yes_no')}">
                                <option value="">请选择</option>
                                <option th:each="dict : ${type}" th:value="${dict.dictValue}" th:selected="${dict.dictValue}==${online_b2c}" th:text="${dict.dictLabel}"></option>
                            </select>
                            <span class="span_line" readonly></span>
                        </div>

                        <!-- 线上互医 -->
                        <div class="customize-form-group edit">
                            <label>线上互医：</label>
                            <select name="online_mutual_medical" class="styled-input edit_inputs" th:with="type=${@dict.getType('sys_select_yes_no')}">
                                <option value="">请选择</option>
                                <option th:each="dict : ${type}" th:value="${dict.dictValue}" th:selected="${dict.dictValue}==${online_mutual_medical}" th:text="${dict.dictLabel}"></option>
                            </select>
                            <span class="span_line" readonly></span>
                        </div>

                        <!-- 线上品牌健康 -->
                        <div class="customize-form-group edit">
                            <label>线上品牌健康：</label>
                            <select name="online_brand_health" class="styled-input edit_inputs" th:with="type=${@dict.getType('sys_select_yes_no')}">
                                <option value="">请选择</option>
                                <option th:each="dict : ${type}" th:value="${dict.dictValue}" th:selected="${dict.dictValue}==${online_brand_health}" th:text="${dict.dictLabel}"></option>
                            </select>
                            <span class="span_line" readonly></span>
                        </div>

                        <!-- 商品名 -->
                        <div class="customize-form-group edit">
                            <label>商品名：</label>
                            <input type="text" name="xproduct_name" class="styled-input edit_inputs" th:value="${xproduct_name}" />
                            <span class="span_line" readonly></span>
                        </div>

                        <!-- 最小陈列量 -->
                        <div class="customize-form-group edit">
                            <label>最小陈列量：</label>
                            <input type="number" name="minimum_display_quantity" class="styled-input edit_inputs" min="0" th:value="${minimum_display_quantity}" />
                            <span class="span_line" readonly></span>
                        </div>

                        <!-- 销售属性 -->
                        <div class="customize-form-group edit">
                            <label>销售属性：</label>
                            <textarea name="sales_attributes" class="styled-input edit_inputs" rows="4" th:text="${sales_attributes}"></textarea>
                            <span class="span_line" readonly></span>
                        </div>

                        <!-- 禁止配送 -->
                        <div class="customize-form-group edit">
                            <label>禁止配送：</label>
                            <select name="prohibit_delivery" class="styled-input edit_inputs" th:with="type=${@dict.getType('sys_select_yes_no')}">
                                <option value="">请选择</option>
                                <option th:each="dict : ${type}" th:value="${dict.dictValue}" th:selected="${dict.dictValue}==${prohibit_delivery}" th:text="${dict.dictLabel}"></option>
                            </select>
                            <span class="span_line" readonly></span>
                        </div>

                        <!-- 禁止返仓 -->
                        <div class="customize-form-group edit">
                            <label>禁止返仓：</label>
                            <select name="prohibit_return_warehouse" class="styled-input edit_inputs" th:with="type=${@dict.getType('sys_select_yes_no')}">
                                <option value="">请选择</option>
                                <option th:each="dict : ${type}" th:value="${dict.dictValue}" th:selected="${dict.dictValue}==${prohibit_return_warehouse}" th:text="${dict.dictLabel}"></option>
                            </select>
                            <span class="span_line" readonly></span>
                        </div>

                        <!-- 禁止销售 -->
                        <div class="customize-form-group edit">
                            <label>禁止销售：</label>
                            <select name="prohibit_sales" class="styled-input edit_inputs" th:with="type=${@dict.getType('sys_select_yes_no')}">
                                <option value="">请选择</option>
                                <option th:each="dict : ${type}" th:value="${dict.dictValue}" th:selected="${dict.dictValue}==${prohibit_sales}" th:text="${dict.dictLabel}"></option>
                            </select>
                            <span class="span_line" readonly></span>
                        </div>

                        <!-- 是否可拆零 -->
                        <div class="customize-form-group edit">
                            <label>是否可拆零：</label>
                            <select name="can_be_divided" class="styled-input edit_inputs" th:with="type=${@dict.getType('sys_select_yes_no')}">
                                <option value="">请选择</option>
                                <option th:each="dict : ${type}" th:value="${dict.dictValue}" th:selected="${dict.dictValue}==${can_be_divided}" th:text="${dict.dictLabel}"></option>
                            </select>
                            <span class="span_line" readonly></span>
                        </div>

                        <!-- 拆零单位 -->
                        <div class="customize-form-group edit">
                            <label>拆零单位：</label>
                            <input type="text" name="division_unit" class="styled-input edit_inputs" th:value="${division_unit}" />
                            <span class="span_line" readonly></span>
                        </div>

                        <!-- 拆零比例 -->
                        <div class="customize-form-group edit">
                            <label>拆零比例：</label>
                            <input type="number" name="division_ratio" class="styled-input edit_inputs" step="0.01" th:value="${division_ratio}" />
                            <span class="span_line" readonly></span>
                        </div>

                        <!-- DAAS业态 -->
                        <div class="customize-form-group edit">
                            <label>DAAS业态：</label>
                            <input type="text" name="daas_business_model" class="styled-input edit_inputs" th:value="${daas_business_model}" />
                            <span class="span_line" readonly></span>
                        </div>

                        <!-- 促销审批 -->
                        <div class="customize-form-group edit">
                            <label>促销审批：</label>
                            <select name="promotion_approval" class="styled-input edit_inputs" th:with="type=${@dict.getType('sys_select_yes_no')}">
                                <option value="">请选择</option>
                                <option th:each="dict : ${type}" th:value="${dict.dictValue}" th:selected="${dict.dictValue}==${promotion_approval}" th:text="${dict.dictLabel}"></option>
                            </select>
                            <span class="span_line" readonly></span>
                        </div>

                        <!-- 批发主推等级 -->
                        <div class="customize-form-group edit">
                            <label>批发主推等级：</label>
                            <input type="text" name="wholesale_priority_level" class="styled-input edit_inputs" th:value="${wholesale_priority_level}" />
                            <span class="span_line" readonly></span>
                        </div>
                    </form>
                </div>
                <!-- 业态属性 -->
                <div id="tab-6" class="tab-pane">
                    <form class="customize-search-form" id="form-server-edit6" >
                        <!-- 平台属性 -->
                        <div class="customize-form-group edit">
                            <label>平台属性：</label>
                            <input type="text" name="platform_property" class="styled-input edit_inputs" th:value="${platform_property}" />
                            <span class="span_line" readonly></span>
                        </div>

                        <!-- 企业属性 -->
                        <div class="customize-form-group edit">
                            <label>企业属性：</label>
                            <input type="text" name="company_property" class="styled-input edit_inputs" th:value="${company_property}" />
                            <span class="span_line" readonly></span>
                        </div>

                        <!-- 商品加盟属性 -->
                        <div class="customize-form-group edit">
                            <label>商品加盟属性：</label>
                            <textarea name="product_franchise_attribute" class="styled-input edit_inputs" rows="4" th:text="${product_franchise_attribute}"></textarea>
                            <span class="span_line" readonly></span>
                        </div>
                    </form>
                </div>
                <!-- 图片属性 -->
                <div id="tab-7" class="tab-pane">
                    <div class="ibox-content">
                        <div class="fileinput fileinput-new" data-provides="fileinput">
                            <div class="fileinput-preview thumbnail" data-trigger="fileinput" style="width: 200px; height: 150px;">
                                <span class="preview-text">点击上传图片</span>
                            </div>
                            <div>
                                <input type="file" id="external_packaging_file" style="display: none;" />
                                <a href="javascript:;" class="btn btn-white fileinput-exists clear-button" data-dismiss="fileinput">清除</a>
                            </div>
                        </div>
                    </div>
                </div>
            </div>
        </div>
    </div>
    <div class="main-content" id="content-main">
        <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>
</div>
<th:block th:include="include :: footer" />
<th:block th:include="include :: select2-css" />
<th:block th:include="include :: bootstrap-select-css" />
<th:block th:include="include :: select2-js" />
<th:block th:include="include :: bootstrap-select-js" />
<th:block th:include="include :: jasny-bootstrap-js" />
</body>
</html>
<style>
    .fileinput-preview {
        position: relative;
        width: 200px;
        height: 150px;
        border: 1px solid #ccc;
        display: flex;
        justify-content: center;
        align-items: center;
    }

    .plus-sign {
        font-size: 36px;
        color: #ccc;
        position: absolute;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
    }

    .preview-text {
        font-size: 14px;
        color: #999;
        position: absolute;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
    }

    .clear-button {
        margin-top: 10px;
    }
    .form-grid1 {
        padding-left: 160px;
        display: grid;
        grid-template-columns: 1fr 1fr; /* 创建两列 */
        gap: 20px; /* 设置列之间的间距 */
    }
    .form-grid2 {
        padding-left: 330px;
        display: grid;
        grid-template-columns: 1fr 1fr; /* 创建两列 */
        gap: 20px; /* 设置列之间的间距 */
    }

    .form-field-left, .form-field-right {
        display: flex;
        flex-direction: column;
    }

    .form-field-left , .form-field-right {
        margin-bottom: 5px; /* 给标签与输入框之间留出一些空间 */
    }

    .styled-input1 {
        padding: 8px;
        border: 1px solid #ccc;
        border-radius: 4px;
        width: 100%; /* 确保输入框占满整个宽度 */
    }

    .span_line1 {
        display: block;
        height: 1px;
        background-color: #e0e0e0;
        margin-top: 10px;
    }
</style>
<script th:inline="javascript">
    var prefix = ctx + "sp/sp";

    function collectFormData() {
        // 定义要收集的表单
        var forms = [
            $("#form-server-edit1"),
            $("#form-server-edit2"),
            $("#form-server-edit3"),
            $("#form-server-edit4"),
            $("#form-server-edit5"),
            $("#form-server-edit6"),
            $("#form-server-edit12")
        ];

        // 初始化合并后的数据对象
        var formData = {};

        // 遍历每个表单并将数据添加到 formData 对象中
        forms.forEach(function(form) {
            form.find("[name]").each(function() {
                var $this = $(this),
                    name = $this.attr('name'),
                    value;

                // 获取不同类型的值
                if ($this.is(':input') || $this.is('[contenteditable]')) {
                    value = $this.is('[contenteditable]') ? $this.text().trim() : $this.val();

                    // 处理多选框和复选框
                    if ($this.is('select[multiple], input[type="checkbox"], input[type="radio"]')) {
                        if ($this.is(':checked')) {
                            if (!formData[name]) {
                                formData[name] = [];
                            }
                            formData[name].push(value);
                        }
                    } else if (value !== null && value !== undefined && value !== '') {
                        formData[name] = value;
                    }
                }
            });
        });

        // 定义必填字段及其对应的提示信息
        var requiredFields = {
            'product_code': "请先填写【基本属性】产品编码！",
            'product_name': "请先填写【基本属性】商品名称！",
            'manufacturer': "请先填写【基本属性】生产厂家！",
            'product_status': "请先填写【基本属性】商品状态！",
            'category_maj': "请先填写【基本属性】商品大类！",
            'category_min': "请先填写【基本属性】商品小类！",
            'specification': "请先填写【基本属性】规格！",
            'packaging': "请先填写【基本属性】包装！",
            'reference_purchase_price': "请先填写【采购属性】参考进价！",
            'national_negotiated_price': "请先填写【采购属性】国谈价格！",
            'storage_category': "请先填写【存储分类】存储分类！",
            'approval_number_1': "请先填写【质管属性】批准文号1！",
            'reference_retail_price': "请先填写【销售属性】参考零售价！",
            'platform_property': "请先填写【业态属性】平台属性！",
            'follow_up_item': "请选择是【DTP属性】否随访品！",
            'cold_chain_item': "请选择【DTP属性】是否冷链品！",
            'registered_item': "请选择【DTP属性】是否登记品！",
            'flow_item': "请选择【DTP属性】是否流向品！",
            'prescription_required': "请选择【DTP属性】是否凭处方销售！"
        };

        // 验证必填字段
        for (var field in requiredFields) {
            if (!formData[field] || (Array.isArray(formData[field]) && formData[field].length === 0)) {
                $.modal.alertWarning(requiredFields[field]);
                return null;
            }
        }

        // 返回最终的数据对象
        return formData;
    }
    function submitHandler() {
        if ($.validate.form()) {
            var dosage_max = $("#form-server-edit12").serializeArray().find(item => item.name === 'dosage_max');
            if (dosage_max.value === '') {
                $.modal.alertWarning("请选择【D值配置属性】最大剂量数量！");
                return null;
            }
            var dosage_min = $("#form-server-edit12").serializeArray().find(item => item.name === 'dosage_min');
            if (dosage_min.value === '') {
                $.modal.alertWarning("请选择【D值配置属性】最小剂量数量！");
                return null;
            }
            var unit_max = $("#form-server-edit12").serializeArray().find(item => item.name === 'unit_max');
            if (unit_max.value === '') {
                $.modal.alertWarning("请选择【D值配置属性】最大剂量单位！");
                return null;
            }
            var unit_min = $("#form-server-edit12").serializeArray().find(item => item.name === 'unit_min');
            if (unit_min.value === '') {
                $.modal.alertWarning("请选择【D值配置属性】最小剂量单位！");
                return null;
            }
            var unit_normal = $("#form-server-edit12").serializeArray().find(item => item.name === 'unit_normal');
            if (unit_normal.value === '') {
                $.modal.alertWarning("请选择【D值配置属性】常见计量单位！");
                return null;
            }
            var dosage_normal = $("#form-server-edit12").serializeArray().find(item => item.name === 'dosage_normal');
            if (dosage_normal.value === '') {
                $.modal.alertWarning("请选择【D值配置属性】常见计量数量！");
                return null;
            }
            var packing_value = $("#form-server-edit12").serializeArray().find(item => item.name === 'packing_value');
            if (packing_value.value === '') {
                $.modal.alertWarning("请选择【D值配置属性】包装单位值！");
                return null;
            }
            var packing_unit = $("#form-server-edit12").serializeArray().find(item => item.name === 'packing_unit');
            if (packing_unit.value === '') {
                $.modal.alertWarning("请选择【D值配置属性】包装单位！");
                return null;
            }
            var allData = collectFormData();
            if (allData.product_code === '') {
                $.modal.alertWarning("请先填写产品编码！");
                return;
            }

            $.ajax({
                url: prefix + "/ProductUpdate", // 后台接口地址
                type: "post",
                dataType: "json",
                data: allData,
                beforeSend: function () {
                    $.modal.loading("正在处理中，请稍候...");
                },
                success: function(result) {
                    $.modal.closeLoading();
                    if (result.code===0) {
                        $.modal.alertSuccess(result.msg || "操作成功");
                        $.operate.successTabCallback(result);
                    } else {
                        $.modal.alertWarning(result.msg || "操作失败");
                    }
                },
                error: function(xhr, status, error) {
                    $.modal.closeLoading();
                    console.error("AJAX Error: ", status, error);
                    $.modal.alertWarning("服务器错误：" + error);
                }
            });
        }
    }
</script>
