|
@@ -1,4 +1,5 @@
|
|
|
<!-- include 'header' -->
|
|
|
+
|
|
|
<link rel=stylesheet href="<?= WEB_SITE_GLOBAL ?>css/jquery.validator.css">
|
|
|
<script type="text/javascript" src="<?= WEB_SITE_GLOBAL ?>js/jquery.validator.min.js"></script>
|
|
|
<script type="text/javascript" src="<?= WEB_SITE_GLOBAL ?>js/zh-CN.js"></script>
|
|
@@ -82,7 +83,7 @@ $('button[invoiceDetalfn]').click(function() {
|
|
|
}
|
|
|
|
|
|
var it=$("input[name='invoiceType']:checked").val();
|
|
|
-
|
|
|
+ var invoiceForm=$("input[name='invoiceForm']:checked").val();
|
|
|
|
|
|
var invoiceTitle=$("#invoiceTitle").val();
|
|
|
var TINT=$("#TINT").val();
|
|
@@ -113,6 +114,11 @@ $('button[invoiceDetalfn]').click(function() {
|
|
|
bankAccountT=bankAccount;
|
|
|
}
|
|
|
|
|
|
+ if(invoiceForm=='electronic'){
|
|
|
+ invoiceType='增值税普通发票(电子发票)';
|
|
|
+ }
|
|
|
+
|
|
|
+
|
|
|
var invoiceElement=$('#invoiceElement option:selected').html();
|
|
|
var invoiceQuantity=$("#invoiceQuantity").val();
|
|
|
var invoiceUnitPrice=$("#invoiceUnitPrice").val();
|
|
@@ -238,11 +244,30 @@ $("input[autoIFBTIN]").autocomplete({
|
|
|
});
|
|
|
|
|
|
|
|
|
+$('input[type=radio][name=invoiceForm]').change(function() {
|
|
|
+ if (this.value == 'paper') {
|
|
|
+ $('tr[paperTR]').show();
|
|
|
+ $('tr[electronicTR]').hide();
|
|
|
+ $('table[electronicContact]').hide();
|
|
|
+ $('div[paperMark]').show();
|
|
|
+ $('#electronicPhone').val('1');
|
|
|
+
|
|
|
+ } else if (this.value == 'electronic') {
|
|
|
+ $('tr[paperTR]').hide();
|
|
|
+ $('tr[electronicTR]').show();
|
|
|
+ $('table[electroniCcontact]').show();
|
|
|
+ $('div[paperMark]').hide();
|
|
|
+ $('#electronicPhone').val('');
|
|
|
+
|
|
|
+ }
|
|
|
+});
|
|
|
+
|
|
|
|
|
|
})
|
|
|
|
|
|
</script>
|
|
|
<body>
|
|
|
+
|
|
|
<div class="mainLayout">
|
|
|
<div class="mainMenu">
|
|
|
<div class="menuItem">
|
|
@@ -263,7 +288,7 @@ $("input[autoIFBTIN]").autocomplete({
|
|
|
<legend>填写申请开票</legend>
|
|
|
<div class="borad-news">
|
|
|
<div class="saeaList">
|
|
|
- <form action="/invoiceAddDo" method="post" id="invoice">
|
|
|
+ <form action="/invoiceAddDo" method="post" class="invoice" id="invoice" data-validator-option="{timely:3,showOk:''}">
|
|
|
<input type="hidden" name="token" value="{{token}}">
|
|
|
<input type="hidden" name="tokenTime" value="{{tokenTime}}">
|
|
|
<table class="table table-bordered table-condensed">
|
|
@@ -307,19 +332,25 @@ $("input[autoIFBTIN]").autocomplete({
|
|
|
|
|
|
</tr>
|
|
|
|
|
|
- <tr>
|
|
|
+ <tr >
|
|
|
<th class="taC">发票备注</th><td colspan="3"><textarea placeholder="用于发票右下角备注栏内容,如项目名称、项目地点" name="remark" style="width:550px"></textarea>
|
|
|
</td>
|
|
|
</tr>
|
|
|
|
|
|
<tr>
|
|
|
<th class="taC"><span class="colRed">*</span>发票形式</th><td colspan="3">
|
|
|
- <label class="radio inline"><input type="radio" checked name="invoiceForm" value="paper">纸质发票</label>
|
|
|
- <label class="radio inline"><input type="radio" name="invoiceForm" value="electronic">电子发票</label>
|
|
|
+ <label class="radio inline"><input type="radio" checked name="invoiceForm" value="paper">纸质发票</label>
|
|
|
+ <label class="radio inline" ><input type="radio" name="invoiceForm" id="invoiceForm" value="electronic" >电子发票</label>
|
|
|
</td>
|
|
|
</tr>
|
|
|
|
|
|
- <tr>
|
|
|
+ <tr style="display:none" electronicTR >
|
|
|
+ <th class="taC"><span class="colRed">*</span>发票类型</th><td colspan="3">
|
|
|
+ 增值税普通发票(电子发票)
|
|
|
+ </td>
|
|
|
+ </tr>
|
|
|
+
|
|
|
+ <tr paperTR>
|
|
|
<th class="taC"><span class="colRed">*</span>发票类型</th><td colspan="3">
|
|
|
<label class="radio inline"><input checked name="invoiceType" id="invoicePlain" onclick="invoiceShow()" value="0" type="radio" >增值税普通发票</label>
|
|
|
<label class="radio inline colRed"><input name="invoiceType" id="invoiceSpecial" onclick="invoiceShow()" value="1" type="radio">增值税专用发票</label>
|
|
@@ -449,9 +480,9 @@ $("input[autoIFBTIN]").autocomplete({
|
|
|
软件锁 (个)<br><input type="number" name="softLockNum" class="span1" placeholder="数量" value="1">
|
|
|
|
|
|
</div>
|
|
|
- <div class="checkbox">
|
|
|
+ <div paperMark class="checkbox">
|
|
|
|
|
|
- <input type="checkbox" checked disabled value="1">
|
|
|
+ <input type="checkbox" checked disabled value="1">
|
|
|
发票 (张)<br>1
|
|
|
|
|
|
</div>
|
|
@@ -483,30 +514,53 @@ $("input[autoIFBTIN]").autocomplete({
|
|
|
</div>
|
|
|
</td>
|
|
|
|
|
|
-
|
|
|
-<!-- <input placeholder="请详细填写需要邮寄的物品及数量,如:锁套装x1、合同x1" name="mailItems" type="text" class="span6"></td> -->
|
|
|
+
|
|
|
</tr>
|
|
|
</tbody>
|
|
|
</table>
|
|
|
+
|
|
|
+ <table style="display:none" electronicContact class="table table-bordered table-condensed">
|
|
|
+ <tbody>
|
|
|
+ <tr>
|
|
|
+ <th colspan="4" class="taC">电子发票发送</th>
|
|
|
+ </tr>
|
|
|
+ <tr>
|
|
|
+ <th class="taC" width="150">收件人手机</th>
|
|
|
+ <td><input class="contact" type="text" name="electronicPhone" id="electronicPhone" value="1" placeholder="手机号"
|
|
|
+ data-rule="required(from, .contact); digits" data-msg-required="请至少填写一种联系方式">
|
|
|
+ </td>
|
|
|
+ </tr>
|
|
|
+ <tr>
|
|
|
+ <th class="taC" width="150">收件人邮箱</th>
|
|
|
+ <td><input class="contact" type="text" name="electronicEmail" placeholder="邮箱"
|
|
|
+ data-rule="required(from, .contact); email">
|
|
|
+ </td>
|
|
|
+ </tr>
|
|
|
+ <tr>
|
|
|
+ <td class="taC" width="150" colspan="4"><span class="colRed">*电子发票收取方式二选一,手机和邮箱,请必填一项,推荐邮箱。</span></td>
|
|
|
+ </tr>
|
|
|
+ </tbody>
|
|
|
+ </table>
|
|
|
+
|
|
|
<p class="taR"><button type="button" class="button" invoiceDetalfn href="#confirm" data-toggle="modal">提交申请</button></p>
|
|
|
|
|
|
<div class="modal hide fade" id="confirm">
|
|
|
- <div class="modal-dialog">
|
|
|
- <div class="modal-content">
|
|
|
- <div class="modal-header">
|
|
|
- <h3>确认信息无误</h3>
|
|
|
- </div>
|
|
|
- <div class="modal-body" id="modalBody">
|
|
|
-
|
|
|
- </div>
|
|
|
- <div class="modal-footer">
|
|
|
- <input type="submit" class="button" value="无误,提交申请">
|
|
|
-
|
|
|
- <a href="#" class="button btn-gray" data-dismiss="modal" aria-hidden="true">我要检查一下</a>
|
|
|
- </div>
|
|
|
-</div>
|
|
|
-</div>
|
|
|
-</div>
|
|
|
+ <div class="modal-dialog">
|
|
|
+ <div class="modal-content">
|
|
|
+ <div class="modal-header">
|
|
|
+ <h3>确认信息无误</h3>
|
|
|
+ </div>
|
|
|
+ <div class="modal-body" id="modalBody">
|
|
|
+
|
|
|
+ </div>
|
|
|
+ <div class="modal-footer">
|
|
|
+ <input type="submit" class="button" value="无误,提交申请">
|
|
|
+
|
|
|
+ <a href="#" class="button btn-gray" data-dismiss="modal" aria-hidden="true">我要检查一下</a>
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
|
|
|
|
|
|
</form>
|