|
@@ -294,11 +294,11 @@
|
|
|
|
|
|
<label class="form-label col-2 col-sm-2" style="width: 125px;"><span class="c-red">*</span>账户类型:</label>
|
|
|
<div class="radio-box">
|
|
|
- <input type="radio" id="accountType-1" name="accountType" value="1" checked>
|
|
|
+ <input type="radio" id="accountType-1" name="accountType" value="1" <#if billingInfo??><#if billingInfo.accountType == 1>checked</#if><#else>checked</#if>>
|
|
|
<label for="accountType-1">公司</label>
|
|
|
</div>
|
|
|
<div class="radio-box">
|
|
|
- <input type="radio" id="accountType-2" name="accountType" value="2">
|
|
|
+ <input type="radio" id="accountType-2" name="accountType" value="2" <#if billingInfo??><#if billingInfo.accountType == 2>checked</#if></#if>>
|
|
|
<label for="accountType-2">个人</label>
|
|
|
</div>
|
|
|
|
|
@@ -361,7 +361,7 @@
|
|
|
<label class="form-label col-9 skin-minimal">
|
|
|
<span class="tit-2">开票信息</span><span class="c-red"> *</span>是否开票
|
|
|
<div class="radio-box">
|
|
|
- <input type="radio" id="isOpenTicket-1" name="isOpenTicket" value="1" checked="checked" >
|
|
|
+ <input type="radio" id="isOpenTicket-1" name="isOpenTicket" value="1" checked="checked">
|
|
|
<label for="isOpenTicket-1">开票</label>
|
|
|
</div>
|
|
|
<div class="radio-box">
|
|
@@ -1056,6 +1056,7 @@
|
|
|
//付款/退款信息
|
|
|
var billingInfo = {};
|
|
|
billingInfo.billingId = $("[name='billingId']").val();
|
|
|
+ billingInfo.accountType = $("input[name='accountType']:checked").val();
|
|
|
billingInfo.accountOpeningBranch = $("[name='accountOpeningBranch']").val();
|
|
|
billingInfo.accountName = $("[name='accountName']").val();
|
|
|
billingInfo.accountNum = $("[name='accountNum']").val();
|
|
@@ -1090,9 +1091,9 @@
|
|
|
layer.msg("收款人手机不能为空");
|
|
|
return;
|
|
|
}else{
|
|
|
- var reg = /^(0?(13[0-9]|15[012356789]|17[013678]|18[0-9]|14[57])[0-9]{8})$/
|
|
|
- if(!reg.test(phone)){
|
|
|
- layer.msg("请填写正确的手机号码!", {icon: 5, time: 3000});
|
|
|
+ var reg = /^(0?(13[0-9]|15[012356789]|17[013678]|18[0-9]|14[57])[0-9]{8})$/;
|
|
|
+ if(!reg.test(billingInfo.receivablesPhone)){
|
|
|
+ layer.msg("请填写正确的收款人手机号码!", {icon: 5, time: 3000});
|
|
|
return;
|
|
|
}
|
|
|
}
|
|
@@ -1141,7 +1142,7 @@
|
|
|
}else{
|
|
|
var reg = /^(0?(13[0-9]|15[012356789]|17[013678]|18[0-9]|14[57])[0-9]{8})$/
|
|
|
if(!reg.test(ticketOpeningInfo.ticketOpeningPhone)){
|
|
|
- layer.msg("请填写正确的电话号码!", {icon: 5, time: 3000});
|
|
|
+ layer.msg("请填写正确的开票电话!", {icon: 5, time: 3000});
|
|
|
return;
|
|
|
}
|
|
|
}
|