|
@@ -0,0 +1,278 @@
|
|
|
+<!-- 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>
|
|
|
+<script src="<?= WEB_SITE_GLOBAL ?>js/invoice.validator.js"></script>
|
|
|
+<script src="<?= WEB_SITE_GLOBAL ?>js/invoice.js"></script>
|
|
|
+<link rel=stylesheet href="<?= WEB_SITE_GLOBAL ?>js/DataTables/jquery.dataTables.css">
|
|
|
+<script type="text/javascript" src="<?= WEB_SITE_GLOBAL ?>js/DataTables/jquery.dataTables.min.js"></script>
|
|
|
+<script type="text/javascript" src="<?= WEB_SITE_GLOBAL ?>js/dataTables.fixedColumns.min.js"></script>
|
|
|
+<link href="<?= WEB_SITE_GLOBAL ?>css/datepicker.min.css" rel="stylesheet" type="text/css">
|
|
|
+<script src="<?= WEB_SITE_GLOBAL ?>js/datepicker.min.js"></script>
|
|
|
+<script src="<?= WEB_SITE_GLOBAL ?>js/datepicker.zh.js"></script>
|
|
|
+<body>
|
|
|
+ <div class="mainLayout">
|
|
|
+ <div class="mainMenu">
|
|
|
+ <div class="menuItem">
|
|
|
+ <a href="#" class="mLogo">CLD</a>
|
|
|
+ <ul>
|
|
|
+ <!-- include 'menuReceipt' -->
|
|
|
+ </ul>
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
+ <div class="warpContent">
|
|
|
+ <div class="subMenu fL">
|
|
|
+ <div class="menuItem">
|
|
|
+ <!-- include 'invoiceMenu' -->
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
+ <div class="adminContent autoHeight">
|
|
|
+ <legend>
|
|
|
+ 纸质发票</legend>
|
|
|
+ <div class="demandCate">
|
|
|
+
|
|
|
+ <form action="/invoicePaper" id="iaa" method="get" >
|
|
|
+
|
|
|
+ <ul class="cateList">
|
|
|
+ <li>
|
|
|
+ <select name="invoiceType" node-invoiceType class="select">
|
|
|
+ <option <!-- if {{invoiceType}}=='ALL' --> selected <!-- endif --> value="ALL">全部</option>
|
|
|
+ <option <!-- if {{invoiceType}}=='ORDINARY' --> selected <!-- endif --> value="ORDINARY" >普通发票</option>
|
|
|
+ <option <!-- if {{invoiceType}}=='SPECIAL' --> selected <!-- endif --> value="SPECIAL" >专用发票</option>
|
|
|
+ </select>
|
|
|
+ </li>
|
|
|
+ <li><select name="status" node-invoiceType class="select">
|
|
|
+ <option <!-- if {{status}}=='ALL' --> selected <!-- endif --> value="ALL" >全部</option>
|
|
|
+ <option <!-- if {{status}}=='PRINTED' --> selected <!-- endif --> value="PRINTED" >已打印</option>
|
|
|
+ <option <!-- if {{status}}=='UNPRINT' --> selected <!-- endif --> value="UNPRINT" >未打印</option>
|
|
|
+ <option <!-- if {{status}}=='TICKET' --> selected <!-- endif --> value="TICKET" >退票</option>
|
|
|
+ </select>
|
|
|
+ </li>
|
|
|
+ <li>
|
|
|
+ <div class="search">
|
|
|
+ <div class="input-append">
|
|
|
+ <input class="datepicker-here span3" name="date" value="{{dateString}}" placeholder="按时间筛选" type="text" data-range="true" data-multiple-dates-separator=" : " data-language="zh">
|
|
|
+ <button class="btn btn-small" type="submit">查询</button>
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
+ </li>
|
|
|
+
|
|
|
+ <li>
|
|
|
+ <a class="button" href="#addpaper" data-toggle="modal">生成纸质发票</a>
|
|
|
+ </li>
|
|
|
+ </ul>
|
|
|
+
|
|
|
+ </form>
|
|
|
+
|
|
|
+ </div>
|
|
|
+ <div class="saeaList">
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+ <table id="example" class="stripe row-border order-column" cellspacing="0" width="2400" >
|
|
|
+ <thead>
|
|
|
+ <tr class="thead">
|
|
|
+ <th>操作</th>
|
|
|
+ <th>发票代码</th>
|
|
|
+ <th>发票号</th>
|
|
|
+ <th>开票流水号</th>
|
|
|
+ <th>开票单位(抬头)</th>
|
|
|
+ <th>开票金额</th>
|
|
|
+ <th>开票内容</th>
|
|
|
+ <th>发票申请人</th>
|
|
|
+ <th>打印时间</th>
|
|
|
+ </tr>
|
|
|
+ </thead>
|
|
|
+ <tbody>
|
|
|
+
|
|
|
+ </tbody>
|
|
|
+
|
|
|
+ </table>
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+ </div>
|
|
|
+
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
+ <!--弹出 纸质-->
|
|
|
+ <div class="modal hide fade" id="addpaper">
|
|
|
+ <form action="/invoicePaperAdd" id="IPA" method="post">
|
|
|
+ <div class="modal-dialog ">
|
|
|
+ <div class="modal-content">
|
|
|
+ <div class="modal-header">
|
|
|
+ <h3>生成纸质发票</h3>
|
|
|
+ </div>
|
|
|
+ <div class="modal-body saeaList">
|
|
|
+ <table class="table table-bordered table-condensed">
|
|
|
+ <tbody>
|
|
|
+ <tr>
|
|
|
+ <th colspan="2" class="taC">填写生成规则</th>
|
|
|
+ </tr>
|
|
|
+ <tr>
|
|
|
+ <th class="taC" width="100"><span class="colRed">*</span>发票类型</th>
|
|
|
+ <td>
|
|
|
+ <label for="invoicePlain" class="radio inline"><input type="radio" checked name="invoiceType" value="0" data-rule="checked" >增值税普通发票</label>
|
|
|
+ <label for="invoiceSpecial" class="radio inline"><input type="radio" name="invoiceType" value="1" >增值税专用发票</label>
|
|
|
+ </td>
|
|
|
+ </tr>
|
|
|
+ <tr>
|
|
|
+ <th class="taC" width="100"><span class="colRed">*</span>发票代码</th>
|
|
|
+ <td><input type="number" name="invoiceCode" id="invoiceCode" value=""></td>
|
|
|
+ </tr>
|
|
|
+ <tr>
|
|
|
+ <th class="taC" width="100"><span class="colRed">*</span>起始编号</th>
|
|
|
+ <td><input type="number" name="invoiceNoStart" id="invoiceNoStart" value=""></td>
|
|
|
+ </tr>
|
|
|
+ <tr>
|
|
|
+ <th class="taC" width="100"><span class="colRed">*</span>发票数量</th>
|
|
|
+ <td><input type="number" name="invoiceNoTotal" id="invoiceNoTotal" step="1"></td>
|
|
|
+ </tr>
|
|
|
+ <tr>
|
|
|
+ <th class="taC" width="100">末张编号</th>
|
|
|
+ <td><input value="" id="invoiceNoEnd" disabled type="text"></td>
|
|
|
+ </tr>
|
|
|
+ </tbody>
|
|
|
+ </table>
|
|
|
+ </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>
|
|
|
+ </form>
|
|
|
+ </div>
|
|
|
+
|
|
|
+ <div loading-msg='true' style="position:absolute; left:50%; top:50%; "></div>
|
|
|
+ <div class="modal fade" id="approvalInvice">
|
|
|
+
|
|
|
+ <div id="nc"></div>
|
|
|
+ </div>
|
|
|
+
|
|
|
+ <!--退票-->
|
|
|
+<script type="text/javascript">autoFlashHeight();</script>
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+<script type="text/javascript">
|
|
|
+$(document).ready( function () {
|
|
|
+
|
|
|
+ var table =$('#example').DataTable({
|
|
|
+
|
|
|
+ language: {
|
|
|
+ "sProcessing": "处理中...",
|
|
|
+ "sLengthMenu": "显示 _MENU_ 项结果",
|
|
|
+ "sSearch": "搜索:",
|
|
|
+ "sInfoEmpty": "显示第 0 至 0 项结果,共 0 项",
|
|
|
+ "sEmptyTable": "表中数据为空",
|
|
|
+ "oPaginate": {
|
|
|
+ "sFirst": "首页",
|
|
|
+ "sPrevious": "上页",
|
|
|
+ "sNext": "下页",
|
|
|
+ "sLast": "末页"
|
|
|
+ },
|
|
|
+ "sInfo": "显示第 _START_ 至 _END_ 项结果,共 _TOTAL_ 项",
|
|
|
+ },
|
|
|
+ "paging": false,
|
|
|
+ "ordering": false,
|
|
|
+ "info": false,
|
|
|
+ //'filter':false,
|
|
|
+ scrollY: "700px",
|
|
|
+ scrollX: true,
|
|
|
+ scrollCollapse: true,
|
|
|
+ paging: true,
|
|
|
+
|
|
|
+ serverSide: true,
|
|
|
+ ajax: {
|
|
|
+ url: '/ajaxGetinvoicePaperAchieve',
|
|
|
+ type: 'POST',
|
|
|
+ "data": function ( d ) {
|
|
|
+ return $.extend( {}, d, {
|
|
|
+ "status": '{{status}}',
|
|
|
+ 'invoiceType':'{{invoiceType}}',
|
|
|
+ 'date':'{{dateString}}',
|
|
|
+ } );
|
|
|
+ }
|
|
|
+ }
|
|
|
+
|
|
|
+ });
|
|
|
+
|
|
|
+
|
|
|
+ setSearchLo('invoicepaper');
|
|
|
+
|
|
|
+} );
|
|
|
+
|
|
|
+function nodeInvoiceApproval(iidKey){
|
|
|
+ var postData = iidKey;
|
|
|
+ var type =$(this).attr("data-type");
|
|
|
+ $("#nc").html('');
|
|
|
+
|
|
|
+ $("div[loading-msg='true']").html("<img src='/global/img/loadIco.gif' />");
|
|
|
+ var url = "/ajaxGetInvoiceApprovalDetail";
|
|
|
+ $.ajax({
|
|
|
+ url : url,
|
|
|
+ type : "post",
|
|
|
+ cache : false,
|
|
|
+ dataType : "json",
|
|
|
+ data : {
|
|
|
+ serial : postData
|
|
|
+ },
|
|
|
+ global : true,
|
|
|
+ success : function(data) {
|
|
|
+ if (data.status == 1) {
|
|
|
+ $("#nc").html(data.html);
|
|
|
+ } else
|
|
|
+ $("div[loading-msg='true']").html("illegal request");
|
|
|
+ },
|
|
|
+ error : function(err) {
|
|
|
+ $("div[loading-msg='true']").html("");
|
|
|
+ }
|
|
|
+ });
|
|
|
+}
|
|
|
+
|
|
|
+function nodeInvoice(iidKey){
|
|
|
+
|
|
|
+ var postData = iidKey;
|
|
|
+ var type =$(this).attr("data-type");
|
|
|
+ $("#nc").html('');
|
|
|
+ var po='INVOICE';
|
|
|
+
|
|
|
+ $("div[loading-msg='true']").html("<img src='/global/img/loadIco.gif' />");
|
|
|
+ var url = "/ajaxGetInvoiceInfoByType";
|
|
|
+ $.ajax({
|
|
|
+ url : url,
|
|
|
+ type : "post",
|
|
|
+ cache : false,
|
|
|
+ dataType : "json",
|
|
|
+ data : {
|
|
|
+ serial : postData,
|
|
|
+ type:po
|
|
|
+ },
|
|
|
+ global : true,
|
|
|
+ success : function(data) {
|
|
|
+ if (data.status == 1) {
|
|
|
+ $("div[loading-msg='true']").html("");
|
|
|
+ if(type=='receivables')
|
|
|
+ $("#nr").html(data.html);
|
|
|
+ else
|
|
|
+ $("#nc").html(data.html);
|
|
|
+ } else
|
|
|
+ $("div[loading-msg='true']").html("illegal request");
|
|
|
+ },
|
|
|
+ error : function(err) {
|
|
|
+ $("div[loading-msg='true']").html("");
|
|
|
+ }
|
|
|
+
|
|
|
+ });
|
|
|
+ }
|
|
|
+
|
|
|
+</script>
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+</body>
|