|
@@ -210,13 +210,6 @@
|
|
|
<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>
|
|
|
-
|
|
|
<!-- 商品大类 -->
|
|
|
<div class="customize-form-group edit">
|
|
|
<label>商品大类:</label>
|
|
@@ -256,6 +249,7 @@
|
|
|
<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>
|
|
@@ -405,6 +399,7 @@
|
|
|
<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>
|
|
@@ -433,6 +428,7 @@
|
|
|
<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>
|
|
@@ -456,6 +452,7 @@
|
|
|
<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>
|
|
@@ -465,6 +462,7 @@
|
|
|
<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>
|
|
@@ -488,6 +486,7 @@
|
|
|
<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_select_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>
|
|
@@ -497,6 +496,7 @@
|
|
|
<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_select_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>
|
|
@@ -506,6 +506,7 @@
|
|
|
<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_select_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>
|
|
@@ -515,6 +516,7 @@
|
|
|
<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_select_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>
|
|
@@ -524,6 +526,7 @@
|
|
|
<div class="customize-form-group edit">
|
|
|
<label>慈善援助品:</label>
|
|
|
<select name="charity_aid_item" 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}==${charity_aid_item}" th:text="${dict.dictLabel}"></option>
|
|
|
</select>
|
|
|
<span class="span_line" readonly></span>
|
|
@@ -544,6 +547,7 @@
|
|
|
<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>
|
|
@@ -574,6 +578,7 @@
|
|
|
<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>
|
|
@@ -590,6 +595,7 @@
|
|
|
<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>
|
|
@@ -606,6 +612,7 @@
|
|
|
<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>
|
|
@@ -629,6 +636,7 @@
|
|
|
<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>
|
|
@@ -666,6 +674,7 @@
|
|
|
<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>
|
|
@@ -675,6 +684,7 @@
|
|
|
<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>
|
|
@@ -697,6 +707,7 @@
|
|
|
<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>
|
|
@@ -713,6 +724,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>
|
|
@@ -722,6 +734,7 @@
|
|
|
<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>
|
|
@@ -731,6 +744,7 @@
|
|
|
<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>
|
|
@@ -768,6 +782,7 @@
|
|
|
<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>
|
|
@@ -791,6 +806,7 @@
|
|
|
<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>
|
|
@@ -807,6 +823,7 @@
|
|
|
<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>
|
|
@@ -816,6 +833,7 @@
|
|
|
<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>
|
|
@@ -825,6 +843,7 @@
|
|
|
<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>
|
|
@@ -852,6 +871,7 @@
|
|
|
<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>
|
|
@@ -861,6 +881,7 @@
|
|
|
<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>
|
|
@@ -870,6 +891,7 @@
|
|
|
<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>
|
|
@@ -921,6 +943,7 @@
|
|
|
<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>
|
|
@@ -941,6 +964,7 @@
|
|
|
<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>
|
|
@@ -1048,6 +1072,7 @@
|
|
|
<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>
|
|
@@ -1057,6 +1082,7 @@
|
|
|
<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>
|
|
@@ -1143,6 +1169,7 @@
|
|
|
<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>
|
|
@@ -1159,6 +1186,7 @@
|
|
|
<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>
|
|
@@ -1189,6 +1217,7 @@
|
|
|
<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>
|
|
@@ -1212,6 +1241,7 @@
|
|
|
<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>
|
|
@@ -1246,6 +1276,7 @@
|
|
|
<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>
|
|
@@ -1276,6 +1307,7 @@
|
|
|
<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>
|
|
@@ -1285,6 +1317,7 @@
|
|
|
<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>
|
|
@@ -1294,6 +1327,7 @@
|
|
|
<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>
|
|
@@ -1303,6 +1337,7 @@
|
|
|
<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>
|
|
@@ -1333,6 +1368,7 @@
|
|
|
<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>
|
|
@@ -1342,6 +1378,7 @@
|
|
|
<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>
|
|
@@ -1351,6 +1388,7 @@
|
|
|
<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>
|
|
@@ -1360,6 +1398,7 @@
|
|
|
<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>
|
|
@@ -1390,6 +1429,7 @@
|
|
|
<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>
|
|
@@ -1508,121 +1548,68 @@
|
|
|
$("#form-server-edit12")
|
|
|
];
|
|
|
|
|
|
- // 获取 product_code 并验证是否已填写
|
|
|
- var productCodeData = $("#form-server-edit1").serializeArray().find(item => item.name === 'product_code');
|
|
|
- if (productCodeData.value === '') {
|
|
|
- $.modal.alertWarning("请先填写【基本属性】产品编码!");
|
|
|
- return null;
|
|
|
- }
|
|
|
- var product_name = $("#form-server-edit1").serializeArray().find(item => item.name === 'product_name');
|
|
|
- if (product_name.value === '') {
|
|
|
- $.modal.alertWarning("请先填写【基本属性】商品名称!");
|
|
|
- return null;
|
|
|
- }
|
|
|
- var manufacturer = $("#form-server-edit1").serializeArray().find(item => item.name === 'manufacturer');
|
|
|
- if (manufacturer.value === '') {
|
|
|
- $.modal.alertWarning("请先填写【基本属性】生产厂家!");
|
|
|
- return null;
|
|
|
- }
|
|
|
- var product_status = $("#form-server-edit1").serializeArray().find(item => item.name === 'product_status');
|
|
|
- if (product_status.value === '') {
|
|
|
- $.modal.alertWarning("请先填写【基本属性】商品状态!");
|
|
|
- return null;
|
|
|
- }
|
|
|
- var category_maj = $("#form-server-edit1").serializeArray().find(item => item.name === 'category_maj');
|
|
|
- if (category_maj.value === '') {
|
|
|
- $.modal.alertWarning("请先填写【基本属性】商品大类!");
|
|
|
- return null;
|
|
|
- }
|
|
|
- var category_min = $("#form-server-edit1").serializeArray().find(item => item.name === 'category_min');
|
|
|
- if (category_min.value === '') {
|
|
|
- $.modal.alertWarning("请先填写【基本属性】商品小类!");
|
|
|
- return null;
|
|
|
- }
|
|
|
- var specification = $("#form-server-edit1").serializeArray().find(item => item.name === 'specification');
|
|
|
- if (specification.value === '') {
|
|
|
- $.modal.alertWarning("请先填写【基本属性】规格!");
|
|
|
- return null;
|
|
|
- }
|
|
|
- var packaging = $("#form-server-edit1").serializeArray().find(item => item.name === 'packaging');
|
|
|
- if (packaging.value === '') {
|
|
|
- $.modal.alertWarning("请先填【基本属性】写包装!");
|
|
|
- return null;
|
|
|
- }
|
|
|
- var reference_purchase_price = $("#form-server-edit2").serializeArray().find(item => item.name === 'reference_purchase_price');
|
|
|
- if (reference_purchase_price.value === '') {
|
|
|
- $.modal.alertWarning("请先填写【采购属性】参考进价!");
|
|
|
- return null;
|
|
|
- }
|
|
|
- var national_negotiated_price = $("#form-server-edit2").serializeArray().find(item => item.name === 'national_negotiated_price');
|
|
|
- if (national_negotiated_price.value === '') {
|
|
|
- $.modal.alertWarning("请先填写【采购属性】国谈价格!");
|
|
|
- return null;
|
|
|
- }
|
|
|
- var storage_category = $("#form-server-edit3").serializeArray().find(item => item.name === 'storage_category');
|
|
|
- if (storage_category.value === '') {
|
|
|
- $.modal.alertWarning("请先填写【存储分类】存储分类!");
|
|
|
- return null;
|
|
|
- }
|
|
|
-
|
|
|
- var approval_number_1 = $("#form-server-edit4").serializeArray().find(item => item.name === 'approval_number_1');
|
|
|
- if (approval_number_1.value === '') {
|
|
|
- $.modal.alertWarning("请先填写【质管属性】批准文号1!");
|
|
|
- return null;
|
|
|
- }
|
|
|
- var reference_retail_price = $("#form-server-edit5").serializeArray().find(item => item.name === 'reference_retail_price');
|
|
|
- if (reference_retail_price.value === '') {
|
|
|
- $.modal.alertWarning("请先填写【销售属性】参考零售价!");
|
|
|
- return null;
|
|
|
- }
|
|
|
- var platform_property = $("#form-server-edit6").serializeArray().find(item => item.name === 'platform_property');
|
|
|
- if (platform_property.value === '') {
|
|
|
- $.modal.alertWarning("请先填写【业态属性】平台属性!");
|
|
|
- return null;
|
|
|
- }
|
|
|
-
|
|
|
- var follow_up_item = $("#form-server-edit12").serializeArray().find(item => item.name === 'follow_up_item');
|
|
|
- if (follow_up_item.value === '') {
|
|
|
- $.modal.alertWarning("请选择是【DTP属性】否随访品!");
|
|
|
- return null;
|
|
|
- }
|
|
|
-
|
|
|
- var cold_chain_item = $("#form-server-edit12").serializeArray().find(item => item.name === 'cold_chain_item');
|
|
|
- if (cold_chain_item.value === '') {
|
|
|
- $.modal.alertWarning("请选择【DTP属性】是否冷链品!");
|
|
|
- return null;
|
|
|
- }
|
|
|
-
|
|
|
- var registered_item = $("#form-server-edit12").serializeArray().find(item => item.name === 'registered_item');
|
|
|
- if (registered_item.value === '') {
|
|
|
- $.modal.alertWarning("请选择【DTP属性】是否登记品!");
|
|
|
- return null;
|
|
|
- }
|
|
|
-
|
|
|
- var flow_item = $("#form-server-edit12").serializeArray().find(item => item.name === 'flow_item');
|
|
|
- if (flow_item.value === '') {
|
|
|
- $.modal.alertWarning("请选择【DTP属性】是否流向品!");
|
|
|
- return null;
|
|
|
- }
|
|
|
+ // 初始化合并后的数据对象
|
|
|
+ var formData = {};
|
|
|
|
|
|
- var prescription_required = $("#form-server-edit12").serializeArray().find(item => item.name === 'prescription_required');
|
|
|
- if (prescription_required.value === '') {
|
|
|
- $.modal.alertWarning("请选择【DTP属性】是否是否凭处方销售!");
|
|
|
- return null;
|
|
|
- }
|
|
|
-
|
|
|
- // 初始化合并后的数据数组
|
|
|
- var allData = [];
|
|
|
-
|
|
|
- // 遍历每个表单并将数据添加到 allData 中
|
|
|
+ // 遍历每个表单并将数据添加到 formData 对象中
|
|
|
forms.forEach(function(form) {
|
|
|
- var formData = $(form).serializeArray();
|
|
|
- // 确保 product_code 存在于每个表单数据中
|
|
|
- formData.push({ name: 'product_code', value: productCodeData.value });
|
|
|
- allData = allData.concat(formData);
|
|
|
+ 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;
|
|
|
+ }
|
|
|
+ }
|
|
|
+ });
|
|
|
});
|
|
|
|
|
|
- return allData;
|
|
|
+ // 定义必填字段及其对应的提示信息
|
|
|
+ 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()) {
|