|
@@ -81,6 +81,14 @@
|
|
|
}
|
|
|
|
|
|
$(document).ready(function() {
|
|
|
+ var billingContent = $("#billingContent").val();
|
|
|
+ if(8 != billingContent){
|
|
|
+ $(".contractType").hide();
|
|
|
+ $("#contractTypeDoc").attr("class","form-control");
|
|
|
+ }else{
|
|
|
+ $(".contractType").show();
|
|
|
+ $("#contractTypeDoc").attr("class","form-control judgment");
|
|
|
+ }
|
|
|
layui.use(['form', 'layer'], function () {
|
|
|
var form = layui.form;
|
|
|
form.on("radio(invoiceType)", function(event){
|
|
@@ -102,6 +110,15 @@
|
|
|
$("#telephone").attr("class","form-control isTel layui-input");
|
|
|
}
|
|
|
});
|
|
|
+ form.on('select(billingContent)', function(data){
|
|
|
+ if(data.value == 8){
|
|
|
+ $(".contractType").show();
|
|
|
+ $("#contractTypeDoc").attr("class","form-control judgment");
|
|
|
+ }else{
|
|
|
+ $(".contractType").hide();
|
|
|
+ $("#contractTypeDoc").attr("class","form-control");
|
|
|
+ }
|
|
|
+ });
|
|
|
$("#attachment_btn").click(function () {
|
|
|
$("#attachment_file").click();
|
|
|
});
|
|
@@ -847,7 +864,7 @@
|
|
|
<div class="layui-item layui-col-sm6">
|
|
|
<label class="layui-form-label"><span class="require-item">*</span>开票内容:</label>
|
|
|
<div class="layui-input-block readOnlyFFF">
|
|
|
- <form:select path="billingContent" class="form-control simple-select judgment">
|
|
|
+ <form:select path="billingContent" class="form-control simple-select judgment" lay-filter="billingContent">
|
|
|
<form:options items="${fns:getMainDictList('billing_content')}" itemLabel="label" itemValue="value" htmlEscape="false"/>
|
|
|
</form:select>
|
|
|
</div>
|
|
@@ -861,7 +878,7 @@
|
|
|
</div>
|
|
|
</div>
|
|
|
<div class="layui-item layui-col-sm12 with-textarea">
|
|
|
- <label class="layui-form-label double-line">开票内容要求:</label>
|
|
|
+ <label class="layui-form-label double-line"><span class="require-item contractType">*</span>开票内容要求:</label>
|
|
|
<div class="layui-input-block">
|
|
|
<form:textarea path="content" id="contractTypeDoc" placeholder="请输入开票内容要求" htmlEscape="false" rows="4" class="form-control"/>
|
|
|
</div>
|