|
@@ -35,9 +35,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("");
|
|
|
}
|
|
|
validateForm = $("#inputForm").validate({
|
|
@@ -612,13 +612,14 @@
|
|
|
<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" lay-filter="chargeCriterionList" lay-skin="primary" itemLabel="label" itemValue="label" htmlEscape="false" 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" id="otherDetails" htmlEscape="false" maxlength="255" class="form-control layui-input"/>
|
|
|
</div>
|
|
|
</div>
|
|
|
<div class="layui-item layui-col-sm12 with-textarea">
|
|
@@ -970,19 +971,22 @@
|
|
|
layui.use('form', function () {
|
|
|
var form = layui.form;
|
|
|
form.render();
|
|
|
-
|
|
|
+ var zhi=$("#otherDetails").val();
|
|
|
//复选框监听器
|
|
|
form.on('checkbox(chargeCriterionList)', function(data){
|
|
|
var ids = [];
|
|
|
$("input[name='chargeCriterionList']:checked").each(function(i){
|
|
|
ids.push($(this).val())
|
|
|
})
|
|
|
- if(ids.indexOf("4")!=-1){
|
|
|
- document.getElementById("otherDetails").readOnly=false
|
|
|
- }else{
|
|
|
- document.getElementById("otherDetails").readOnly=true
|
|
|
- $("#otherDetails").val("");
|
|
|
+ if ($(this).prop("checked")==true){
|
|
|
+ zhi+=$(this).val()+";"
|
|
|
}
|
|
|
+ // if(ids.indexOf("4")!=-1){
|
|
|
+ // document.getElementById("otherDetails").readOnly=false
|
|
|
+ // }else{
|
|
|
+ // document.getElementById("otherDetails").readOnly=true
|
|
|
+ $("#otherDetails").val(zhi);
|
|
|
+ // }
|
|
|
});
|
|
|
});
|
|
|
</script>
|