|
@@ -90,8 +90,21 @@
|
|
$(".contractType").show();
|
|
$(".contractType").show();
|
|
$("#contractTypeDoc").attr("class","form-control judgment");
|
|
$("#contractTypeDoc").attr("class","form-control judgment");
|
|
}
|
|
}
|
|
|
|
+
|
|
|
|
+ var newDrawerRadio = '${workInvoice.newDrawer}';//后端获取值
|
|
|
|
+ if(undefined == newDrawerRadio || null == newDrawerRadio || '' == newDrawerRadio || newDrawerRadio == "1"){
|
|
|
|
+ document.getElementsByName("newDrawer")[0].checked = true;
|
|
|
|
+ $(".count2").hide();
|
|
|
|
+ $(".count1").show();
|
|
|
|
+ }else{
|
|
|
|
+ document.getElementsByName("newDrawer")[1].checked = true;
|
|
|
|
+ $(".count1").hide();
|
|
|
|
+ $(".count2").show();
|
|
|
|
+ }
|
|
|
|
+
|
|
layui.use(['form', 'layer'], function () {
|
|
layui.use(['form', 'layer'], function () {
|
|
var form = layui.form;
|
|
var form = layui.form;
|
|
|
|
+
|
|
form.on("radio(invoiceType)", function(event){
|
|
form.on("radio(invoiceType)", function(event){
|
|
var radioVal = $(this).val();
|
|
var radioVal = $(this).val();
|
|
//专票必填
|
|
//专票必填
|
|
@@ -112,6 +125,18 @@
|
|
}
|
|
}
|
|
});
|
|
});
|
|
|
|
|
|
|
|
+ form.on('radio(newDrawerRadio)',function (event) {
|
|
|
|
+ var radioVal = $(this).val();
|
|
|
|
+ if(radioVal == 1 || radioVal == 1){
|
|
|
|
+ $(".count2").hide();
|
|
|
|
+ $(".count1").show();
|
|
|
|
+ }else if(radioVal == 2 || radioVal == 2){
|
|
|
|
+ $(".count1").hide();
|
|
|
|
+ $(".count2").show();
|
|
|
|
+ }
|
|
|
|
+ form.render();
|
|
|
|
+ })
|
|
|
|
+
|
|
form.on('select(billingContent)', function(data){
|
|
form.on('select(billingContent)', function(data){
|
|
if(data.value == 8){
|
|
if(data.value == 8){
|
|
$(".contractType").show();
|
|
$(".contractType").show();
|
|
@@ -121,6 +146,7 @@
|
|
$("#contractTypeDoc").attr("class","form-control");
|
|
$("#contractTypeDoc").attr("class","form-control");
|
|
}
|
|
}
|
|
});
|
|
});
|
|
|
|
+
|
|
});
|
|
});
|
|
/*$('#money').keyup(function(){
|
|
/*$('#money').keyup(function(){
|
|
var c=$(this);
|
|
var c=$(this);
|
|
@@ -820,6 +846,14 @@
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
<div class="layui-item layui-col-sm6">
|
|
<div class="layui-item layui-col-sm6">
|
|
|
|
+ <label class="layui-form-label"><span class="require-item">*</span>开票人:</label>
|
|
|
|
+ <div class="layui-input-block">
|
|
|
|
+ <input type="radio" name="newDrawer" lay-filter="newDrawerRadio" title="企业开票" value="1">
|
|
|
|
+ <input type="radio" name="newDrawer" lay-filter="newDrawerRadio" title="个人开票" value="2">
|
|
|
|
+ </div>
|
|
|
|
+ </div>
|
|
|
|
+ <div class="layui-form-item count1">
|
|
|
|
+ <div class="layui-item layui-col-sm6">
|
|
<label class="layui-form-label double-line"><span class="require-item">*</span>实际开票单位:</label>
|
|
<label class="layui-form-label double-line"><span class="require-item">*</span>实际开票单位:</label>
|
|
<div class="layui-input-block with-icon">
|
|
<div class="layui-input-block with-icon">
|
|
<sys:gridselect url="${ctx}/workinvoiceTwo/workinvoiceTwo/selectclient" id="client" name="client.id" value="${workInvoice.client.id}" title="选择开票单位" labelName="workInvoice.client.name" cssStyle="background-color: #fff"
|
|
<sys:gridselect url="${ctx}/workinvoiceTwo/workinvoiceTwo/selectclient" id="client" name="client.id" value="${workInvoice.client.id}" title="选择开票单位" labelName="workInvoice.client.name" cssStyle="background-color: #fff"
|
|
@@ -856,6 +890,16 @@
|
|
<form:input id="bankNumber" path="bankNumber" htmlEscape="false" placeholder="请输入银行账号" onkeyup="this.value=this.value.replace(/[^\d-]/g,'')" class="form-control layui-input"/>
|
|
<form:input id="bankNumber" path="bankNumber" htmlEscape="false" placeholder="请输入银行账号" onkeyup="this.value=this.value.replace(/[^\d-]/g,'')" class="form-control layui-input"/>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
|
|
+ </div>
|
|
|
|
+ <div class="layui-form-item count2">
|
|
|
|
+ <div class="layui-item layui-col-sm6">
|
|
|
|
+ <label class="layui-form-label"><span class="require-item">*</span>姓名:</label>
|
|
|
|
+ <div class="layui-input-block with-icon">
|
|
|
|
+ <sys:treeselect id="newDrawer" name="newDrawerId" value="${workInvoice.newDrawerId}" labelName="newDrawerName" labelValue="${workInvoice.newDrawerName}"
|
|
|
|
+ cssStyle="background-color: #fff" title="用户" url="/sys/office/treeDataAll?type=3" cssClass="form-control judgment layui-input" allowClear="true" notAllowSelectParent="true"/>
|
|
|
|
+ </div>
|
|
|
|
+ </div>
|
|
|
|
+ </div>
|
|
|
|
|
|
<div class="layui-item layui-col-sm6">
|
|
<div class="layui-item layui-col-sm6">
|
|
<label class="layui-form-label"><span class="require-item">*</span>收款类型:</label>
|
|
<label class="layui-form-label"><span class="require-item">*</span>收款类型:</label>
|