|
@@ -33,13 +33,13 @@
|
|
|
return false;
|
|
|
}
|
|
|
$(document).ready(function() {
|
|
|
- var chargeCriterionH = $("#chargeCriterionH").val();
|
|
|
+ /*var chargeCriterionH = $("#chargeCriterionH").val();
|
|
|
if(chargeCriterionH.indexOf("4")!=-1){
|
|
|
// document.getElementById("otherDetails").readOnly=false
|
|
|
}else{
|
|
|
// document.getElementById("otherDetails").readOnly=true
|
|
|
$("#otherDetails").val("");
|
|
|
- }
|
|
|
+ }*/
|
|
|
validateForm = $("#inputForm").validate({
|
|
|
submitHandler: function(form){
|
|
|
loading('正在提交,请稍等...');
|
|
@@ -101,12 +101,16 @@
|
|
|
$("#contractPrice").parent().parent().hide();
|
|
|
$("#contractPrice").removeClass("required")
|
|
|
$("#chargeCriterionList").find("label").eq(0).html("<span class=\"require-item\">*</span>收费标准:")
|
|
|
+ $("#describeContentDiv").find("label").eq(0).html("<span class=\"require-item\">*</span>描述内容:")
|
|
|
$("#otherDetails").attr("class","form-control layui-input required")
|
|
|
+ $("#describeContent").attr("class","form-control required")
|
|
|
}else{
|
|
|
$("#contractPrice").parent().parent().show();
|
|
|
$("#contractPrice").attr("class","form-control required number layui-input")
|
|
|
$("#chargeCriterionList").find("label").eq(0).html("收费标准:")
|
|
|
+ $("#describeContentDiv").find("label").eq(0).html("描述内容:")
|
|
|
$("#otherDetails").attr("class","form-control layui-input")
|
|
|
+ $("#describeContent").attr("class","form-control")
|
|
|
}
|
|
|
|
|
|
|
|
@@ -656,6 +660,12 @@
|
|
|
<form:input placeholder="请选择收费标准" path="otherDetails" id="otherDetails" htmlEscape="false" maxlength="255" class="form-control layui-input required"/>
|
|
|
</div>
|
|
|
</div>
|
|
|
+ <div class="layui-item layui-col-sm12 with-textarea" id="describeContentDiv">
|
|
|
+ <label class="layui-form-label ">描述内容:</label>
|
|
|
+ <div class="layui-input-block">
|
|
|
+ <form:textarea placeholder="请输入描述内容" path="describeContent" htmlEscape="false" rows="4" maxlength="500" class="form-control "/>
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
<div class="layui-item layui-col-sm12 with-textarea">
|
|
|
<label class="layui-form-label ">合同特别条款:</label>
|
|
|
<div class="layui-input-block">
|
|
@@ -1149,13 +1159,19 @@
|
|
|
$("#contractPrice").parent().parent().hide();
|
|
|
$("#contractPrice").removeClass("required")
|
|
|
$("#chargeCriterionList").find("label").eq(0).html("<span class=\"require-item\">*</span>收费标准:")
|
|
|
- $("#otherDetails").attr("class","form-control layui-input required")
|
|
|
+ $("#describeContentDiv").find("label").eq(0).html("<span class=\"require-item\">*</span>描述内容:")
|
|
|
+ $("#otherDetails").attr("class","form-control layui-input re" +
|
|
|
+ "" +
|
|
|
+ "quired")
|
|
|
+ $("#describeContent").attr("class","form-control required")
|
|
|
|
|
|
}else{
|
|
|
$("#contractPrice").parent().parent().show();
|
|
|
$("#contractPrice").attr("class","form-control required number layui-input")
|
|
|
$("#chargeCriterionList").find("label").eq(0).html("收费标准:")
|
|
|
+ $("#describeContentDiv").find("label").eq(0).html("描述内容:")
|
|
|
$("#otherDetails").attr("class","form-control layui-input")
|
|
|
+ $("#describeContent").attr("class","form-control")
|
|
|
}
|
|
|
})
|
|
|
});
|