|
@@ -53,9 +53,9 @@
|
|
|
$(document).ready(function() {
|
|
|
var chargeCriterionH = $("#chargeCriterionH").val();
|
|
|
if(chargeCriterionH.indexOf("4")!=-1){
|
|
|
- document.getElementById("otherDetails").readOnly=false
|
|
|
+ // document.getElementById("otherDetails").readOnly=false
|
|
|
}else{
|
|
|
- document.getElementById("otherDetails").readOnly=true
|
|
|
+ // document.getElementById("otherDetails").readOnly=true
|
|
|
$("#otherDetails").val("");
|
|
|
}
|
|
|
if($("#createDate").val()==null || $("#createDate").val()==''){
|
|
@@ -663,15 +663,16 @@
|
|
|
<div class="layui-item layui-col-sm12">
|
|
|
<label class="layui-form-label">收费标准</label>
|
|
|
<div class="layui-input-block">
|
|
|
- <form:checkboxes path="chargeCriterionList" lay-filter="chargeCriterionList" lay-skin="primary" itemLabel="label" itemValue="value" htmlEscape="false" items="${fns:getMainDictList('charge_criterion')}" />
|
|
|
+ <form:checkboxes path="chargeCriterionList" lay-filter="chargeCriterionList" lay-skin="primary" itemLabel="label" itemValue="label" htmlEscape="true" items="${fns:getMainDictList('charge_criterion')}" />
|
|
|
+<%-- <form:checkboxes path="chargeCriterionList" cssStyle="display: none;" lay-filter="chargeCriterionList" lay-skin="primary" itemLabel="label" itemValue="value" htmlEscape="true" items="${fns:getMainDictList('charge_criterion')}" />--%>
|
|
|
</div>
|
|
|
</div>
|
|
|
|
|
|
|
|
|
<div class="layui-item layui-col-sm12">
|
|
|
- <label class="layui-form-label ">其他详情:</label>
|
|
|
+ <label class="layui-form-label "><!--其他详情:--></label>
|
|
|
<div class="layui-input-block">
|
|
|
- <form:input path="otherDetails" readonly="true" htmlEscape="false" maxlength="255" class="form-control layui-input"/>
|
|
|
+ <form:input path="otherDetails" htmlEscape="false" maxlength="255" class="form-control layui-input"/>
|
|
|
</div>
|
|
|
</div>
|
|
|
<div class="layui-item layui-col-sm12 with-textarea">
|
|
@@ -852,15 +853,17 @@
|
|
|
|
|
|
//复选框监听器
|
|
|
form.on('checkbox(chargeCriterionList)', function(data){
|
|
|
+
|
|
|
var ids = [];
|
|
|
$("input[name='chargeCriterionList']:checked").each(function(i){
|
|
|
- ids.push($(this).val())
|
|
|
+ ids.push($(this).val());
|
|
|
})
|
|
|
+
|
|
|
if(ids.indexOf("4")!=-1){
|
|
|
- document.getElementById("otherDetails").readOnly=false
|
|
|
+ // document.getElementById("otherDetails").readOnly=false
|
|
|
}else{
|
|
|
- document.getElementById("otherDetails").readOnly=true
|
|
|
- $("#otherDetails").val("");
|
|
|
+ // document.getElementById("otherDetails").readOnly=true
|
|
|
+ $("#otherDetails").val(ids);
|
|
|
}
|
|
|
});
|
|
|
});
|