|
@@ -129,6 +129,18 @@
|
|
|
type : 'date'
|
|
|
, trigger: 'click'
|
|
|
});
|
|
|
+
|
|
|
+ if("${workContractInfo.contractInformation}" == "1"){
|
|
|
+ $("#contractPrice").parent().parent().hide();
|
|
|
+ $("#contractPrice").removeClass("judgment")
|
|
|
+ $("#chargeCriterionList").find("label").eq(0).html("<span class=\"require-item\">*</span>收费标准:")
|
|
|
+ $("#otherDetails").attr("class","form-control layui-input judgment")
|
|
|
+ }else{
|
|
|
+ $("#contractPrice").parent().parent().show();
|
|
|
+ $("#contractPrice").attr("class","form-control judgment number layui-input")
|
|
|
+ $("#chargeCriterionList").find("label").eq(0).html("收费标准:")
|
|
|
+ $("#otherDetails").attr("class","form-control layui-input")
|
|
|
+ }
|
|
|
});
|
|
|
|
|
|
function addRow(list, idx, tpl, row){
|
|
@@ -631,6 +643,13 @@
|
|
|
</div>
|
|
|
</div>
|
|
|
<div class="layui-item layui-col-sm6">
|
|
|
+ <label class="layui-form-label double-line"><span class="require-item">*</span>合同金额类别:</label>
|
|
|
+ <div class="layui-input-block">
|
|
|
+ <input type="radio" title="金额合同" lay-filter="jine" name="contractInformation" checked id="jine" value="0" <c:if test="${workContractInfo.contractInformation=='0'}">checked</c:if>>
|
|
|
+ <input type="radio" title="框架合同" lay-filter="jine" name="contractInformation" id="jine1" value="1" <c:if test="${workContractInfo.contractInformation=='1'}">checked</c:if>>
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
+ <div class="layui-item layui-col-sm6">
|
|
|
<label class="layui-form-label double-line"><span class="require-item">*</span>合同金额 (元)预计金额:</label>
|
|
|
<div class="layui-input-block">
|
|
|
<form:input path="contractPrice" htmlEscape="false" pattern="#.00" class="form-control required number layui-input"/>
|
|
@@ -656,7 +675,7 @@
|
|
|
</div>
|
|
|
</div>
|
|
|
</c:if>
|
|
|
- <div class="layui-item layui-col-sm12">
|
|
|
+ <div class="layui-item layui-col-sm12" id="chargeCriterionList">
|
|
|
<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')}" />
|
|
@@ -883,8 +902,23 @@
|
|
|
$("#otherDetails").val("");
|
|
|
}
|
|
|
});
|
|
|
+ layui.form.on('radio(jine)', function(data){
|
|
|
+ var span=data.value;
|
|
|
+ if(span==1){
|
|
|
+ $("#contractPrice").parent().parent().hide();
|
|
|
+ $("#contractPrice").removeClass("judgment")
|
|
|
+ $("#chargeCriterionList").find("label").eq(0).html("<span class=\"require-item\">*</span>收费标准:")
|
|
|
+ $("#otherDetails").attr("class","form-control layui-input judgment")
|
|
|
+
|
|
|
+ }else{
|
|
|
+ $("#contractPrice").parent().parent().show();
|
|
|
+ $("#contractPrice").attr("class","form-control judgment number layui-input")
|
|
|
+ $("#chargeCriterionList").find("label").eq(0).html("收费标准:")
|
|
|
+ $("#otherDetails").attr("class","form-control layui-input")
|
|
|
+ }
|
|
|
+ })
|
|
|
});
|
|
|
</script>
|
|
|
</div>
|
|
|
</body>
|
|
|
-</html>
|
|
|
+</html>
|