| | |
| | | </head> |
| | | <body style="overflow-x: hidden;overflow-y: hidden"> |
| | | <div class="layuimini-container"> |
| | | <div id="xxs" style="width: 100%;height: 130px;position: absolute;background-color: white;box-shadow: 2px -2px 20px #c2c2c2;display: none"></div> |
| | | <div id="xxs" style="width: 100%;height: 130px;position: absolute;background-color: white;display: none"></div> |
| | | <div class="layuimini-main"> |
| | | <div > |
| | | <div class="layui-card"> |
| | |
| | | <div class="layui-carousel" id="stepForm" lay-filter="stepForm" > |
| | | <div carousel-item style="height: 800px"> |
| | | <div style="background: none"> |
| | | <%-- <script type="text/html" id="toolbarDemo">--%> |
| | | <%-- <div class="layui-btn-container" style="margin-left: 0px;margin-top: 20px;display: inline-block;position: relative">--%> |
| | | <%-- <button class="layui-btn layui-btn-danger" lay-submit lay-filter="formStep1" id="xyb" lay-event="getadd" style="position: relative;top: 600px;left: 1500px">下一步</button>--%> |
| | | <%-- </div>--%> |
| | | |
| | | |
| | | <%-- </script>--%> |
| | | |
| | | <div id="main1" style="display: inline-block;width: 100%;margin-top: -10px"> |
| | | <table id="demo" lay-filter="demo"></table> |
| | | </div> |
| | | <span style="position: relative;top: 10px;left: 1290px;font-size: 16px">已选待开票金额:<span style="color: orange;font-size: 16px" id="jine">0</span></span> |
| | | </div> |
| | | <div style="background: none;"> |
| | | <form class="layui-form" style="float: left;padding-top: 40px;width: 45%"> |
| | | <form class="layui-form" style="padding-top: 40px;"> |
| | | <div class="layui-form-item"> |
| | | <label class="layui-form-label">发票抬头:</label> |
| | | <div class="layui-input-block"> |
| | |
| | | <div class="layui-form-item"> |
| | | <label class="layui-form-label">发票类型:</label> |
| | | <div class="layui-input-block"> |
| | | <input type="radio" name="sex" checked value="增值税普通发票(电子)" title="增值税普通发票(电子)" id="dianzi"> |
| | | <input type="radio" name="sex" value="增值税专用发票(纸质)" title="增值税专用发票(纸质)" id="zhizhi"> |
| | | <input type="radio" name="sex" checked value="增值税普通发票" title="增值税普通发票" id="dianzi"> |
| | | <input type="radio" name="sex" value="增值税专用发票" title="增值税专用发票" id="zhizhi"> |
| | | </div> |
| | | </div> |
| | | <div class="layui-form-item"> |
| | |
| | | </div> |
| | | </div> |
| | | </form> |
| | | <div style="float: right;width: 45%;height: 480px;border: 1px solid #cccccc;margin-top: 40px"> |
| | | <div style="height: 50px"> |
| | | <div style="width: 68%;float: left;text-align: center;height: 70px;line-height: 70px"><h2 style="display: inline-block;color: firebrick">xx增值税XX票XX发票</h2></div> |
| | | <div style="width: 30%;float:right;;height: 70px;text-align: center"> |
| | | <span style="font-size: 8px;color: firebrick">发票代码:</span><span style="font-size: 8px">xxxxxxxxxxxxx</span><br> |
| | | <span style="font-size: 8px;color: firebrick">发票号码:</span><span style="font-size: 8px">xxxxxxxxxxxxx</span><br> |
| | | <span style="font-size: 8px;color: firebrick">开票日期:</span><span style="font-size: 8px">xxxxxxxxxxxxx</span><br> |
| | | <span style="font-size: 8px;color: firebrick">效 验 码:</span><span style="font-size: 8px">xxxxxxxxxxxxx</span><br> |
| | | </div> |
| | | </div> |
| | | <div style="border-top:1px solid firebrick;width: 95%;margin: 0px auto;margin-top: 42px"> |
| | | <div style="border-left: 1px solid firebrick;height: 90px;width: 5%;font-size: 12px;text-align: center;color: firebrick;border-right: 1px solid firebrick;border-bottom: 1px solid firebrick;float: left">购</br>买</br>方</div> |
| | | <div style="border-bottom: 1px solid firebrick;border-right: 1px solid firebrick;height: 90px;float: left;width: 60%"> |
| | | <div style="margin-left: 10px"> |
| | | <span style="color: #eb7350;font-size: 6px">名 称:</span><span style="font-size: 8px">个人</span> |
| | | </div> |
| | | <div style="color: #eb7350;font-size: 8px;margin-left: 10px">纳税人识别号:</div> |
| | | <div style="color: #eb7350;font-size: 8px;margin-left: 10px">地址、 电话:</div> |
| | | <div style="color: #eb7350;font-size: 8px;margin-left: 10px">开户行及账号:</div> |
| | | </div> |
| | | <div style="border-bottom: 1px solid firebrick;border-right: 1px solid firebrick;height: 90px;float: left;width: 5%;color: firebrick;text-align: center;font-size: 12px">密</br>码</br>区</div> |
| | | <div style="border-bottom: 1px solid firebrick;height: 90px;float: left;border-right: 1px solid firebrick;width: 29.2%"></div> |
| | | </div> |
| | | <div style="border:1px solid firebrick;width: 94.6%;margin: 0px auto;margin-top: 90px;height: 120px"> |
| | | <div style="text-align: center;margin: auto;width: 94%"> |
| | | <table> |
| | | <tr style="height: 50px"> |
| | | <td style="font-size: 10px;color: #eb7350;margin: 15px 25px;display: inline-block">货物或应税劳务、服务名称</td> |
| | | <td style="font-size: 10px;color: #eb7350;margin: 15px 25px;display: inline-block">规格型号</td> |
| | | <td style="font-size: 10px;color: #eb7350;margin: 15px 25px;display: inline-block">单位</td> |
| | | <td style="font-size: 10px;color: #eb7350;margin: 15px 25px;display: inline-block">数量</td> |
| | | <td style="font-size: 10px;color: #eb7350;margin: 15px 25px;display: inline-block">金额</td> |
| | | <td style="font-size: 10px;color: #eb7350;margin: 15px 25px;display: inline-block">税率</td> |
| | | <td style="font-size: 10px;color: #eb7350;margin: 15px 25px;display: inline-block">税额</td> |
| | | </tr> |
| | | <tr style="height: 50px"> |
| | | <td style="font-size: 10px;margin: 15px 25px;display: inline-block;text-align: center">技术服务费</td> |
| | | <td style="font-size: 10px;margin: 15px 25px;display: inline-block"></td> |
| | | <td style="font-size: 10px;margin: 15px 25px;display: inline-block;margin-left: 140px">套</td> |
| | | <td style="font-size: 10px;margin: 15px 25px;display: inline-block;margin-left: 40px">1</td> |
| | | <td style="font-size: 10px;margin: 15px 25px;display: inline-block;margin-left: 35px" id="ZMoney1"></td> |
| | | <td style="font-size: 10px;margin: 15px 25px;display: inline-block">6.00%</td> |
| | | <td style="font-size: 10px;margin: 15px 18px;display: inline-block" id="ZMoney2"></td> |
| | | </tr> |
| | | </table> |
| | | </div> |
| | | </div> |
| | | <div style="width: 94.6%;border: 1px solid firebrick;height: 30px;border-top: 0px;margin: auto"> |
| | | <div style="width: 25%;border-right: 1px solid firebrick;margin-left: 21px;border-bottom: 1px solid firebrick;height: 30px;line-height: 30px;float: left"> |
| | | <span style="font-size: 10px;color: #eb7350;margin-left: 40px">价税合计 (大写)</span> |
| | | </div> |
| | | <div style="width: 69.6%;border-bottom: 1px solid firebrick;height: 30px;line-height: 30px;float: left"> |
| | | <span style="font-size: 10px;color: #eb7350;margin-left: 40px" id="daxie"></span><span STYLE="margin-left:220px;font-size: 10px;color: #eb7350">(小写) ¥</span><span STYLE="font-size: 10px;color: #eb7350" id="xiaoxie"></span> |
| | | </div> |
| | | </div> |
| | | <div style="border-top:0px solid firebrick;width: 95%;margin: 0px auto;"> |
| | | <div style="border-left: 1px solid firebrick;height: 100px;width: 5%;font-size: 12px;text-align: center;color: firebrick;border-right: 1px solid firebrick;border-bottom: 1px solid firebrick;float: left">销</br>售</br>方</div> |
| | | <div style="border-bottom: 1px solid firebrick;border-right: 1px solid firebrick;height: 100px;float: left;width: 60%"> |
| | | <div style="margin-left: 10px"> |
| | | <span style="color: #eb7350;font-size: 6px">名 称:</span> <span style="font-size: 8px">北京华星北斗智控技术有限公司</span> |
| | | </div> |
| | | <div style="color: #eb7350;font-size: 8px;margin-left: 10px">纳税人识别号:<span style="color: black">91110108MA001JXF7X</span></div> |
| | | <div style="color: #eb7350;font-size: 8px;margin-left: 10px">地址、 电话:<span style="color: black">京市丰台区五里店北里一区4号楼6层607室 010-68214881</span></div> |
| | | <div style="color: #eb7350;font-size: 8px;margin-left: 10px">开户行及账号:<span style="color: black">招商银行北京玉泉路支行 110919469410101</span></div> |
| | | </div> |
| | | <div style="border-bottom: 1px solid firebrick;border-right: 1px solid firebrick;height: 100px;float: left;width: 5%;color: firebrick;text-align: center;font-size: 12px">备</br>注</div> |
| | | <div style="border-bottom: 1px solid firebrick;height: 100px;float: left;border-right: 1px solid firebrick;width: 29.2%"></div> |
| | | </div> |
| | | <div style="width: 95%"> |
| | | <span style="color: #eb7350;font-size: 10px;margin-right: 130px;margin-left: 30px">收款人:</span> |
| | | <span style="color: #eb7350;font-size: 10px;margin-right: 130px">复核:</span> |
| | | <span style="color: #eb7350;font-size: 10px;margin-right: 130px">开票人:</span> |
| | | <span style="color: #eb7350;font-size: 10px;margin-right: 130px">销售方(章):</span> |
| | | </div> |
| | | </div> |
| | | <%-- <div style="float: right;width: 45%;height: 480px;border: 1px solid #cccccc;margin-top: 40px">--%> |
| | | <%-- <div style="height: 50px">--%> |
| | | <%-- <div style="width: 68%;float: left;text-align: center;height: 70px;line-height: 70px"><h2 style="display: inline-block;color: firebrick">xx增值税XX票XX发票</h2></div>--%> |
| | | <%-- <div style="width: 30%;float:right;;height: 70px;text-align: center">--%> |
| | | <%-- <span style="font-size: 8px;color: firebrick">发票代码:</span><span style="font-size: 8px">xxxxxxxxxxxxx</span><br>--%> |
| | | <%-- <span style="font-size: 8px;color: firebrick">发票号码:</span><span style="font-size: 8px">xxxxxxxxxxxxx</span><br>--%> |
| | | <%-- <span style="font-size: 8px;color: firebrick">开票日期:</span><span style="font-size: 8px">xxxxxxxxxxxxx</span><br>--%> |
| | | <%-- <span style="font-size: 8px;color: firebrick">效 验 码:</span><span style="font-size: 8px">xxxxxxxxxxxxx</span><br>--%> |
| | | <%-- </div>--%> |
| | | <%-- </div>--%> |
| | | <%-- <div style="border-top:1px solid firebrick;width: 95%;margin: 0px auto;margin-top: 42px">--%> |
| | | <%-- <div style="border-left: 1px solid firebrick;height: 90px;width: 5%;font-size: 12px;text-align: center;color: firebrick;border-right: 1px solid firebrick;border-bottom: 1px solid firebrick;float: left">购</br>买</br>方</div>--%> |
| | | <%-- <div style="border-bottom: 1px solid firebrick;border-right: 1px solid firebrick;height: 90px;float: left;width: 60%">--%> |
| | | <%-- <div style="margin-left: 10px">--%> |
| | | <%-- <span style="color: #eb7350;font-size: 6px">名 称:</span><span style="font-size: 8px">个人</span>--%> |
| | | <%-- </div>--%> |
| | | <%-- <div style="color: #eb7350;font-size: 8px;margin-left: 10px">纳税人识别号:</div>--%> |
| | | <%-- <div style="color: #eb7350;font-size: 8px;margin-left: 10px">地址、 电话:</div>--%> |
| | | <%-- <div style="color: #eb7350;font-size: 8px;margin-left: 10px">开户行及账号:</div>--%> |
| | | <%-- </div>--%> |
| | | <%-- <div style="border-bottom: 1px solid firebrick;border-right: 1px solid firebrick;height: 90px;float: left;width: 5%;color: firebrick;text-align: center;font-size: 12px">密</br>码</br>区</div>--%> |
| | | <%-- <div style="border-bottom: 1px solid firebrick;height: 90px;float: left;border-right: 1px solid firebrick;width: 29.2%"></div>--%> |
| | | <%-- </div>--%> |
| | | <%-- <div style="border:1px solid firebrick;width: 94.6%;margin: 0px auto;margin-top: 90px;height: 120px">--%> |
| | | <%-- <div style="text-align: center;margin: auto;width: 94%">--%> |
| | | <%-- <table>--%> |
| | | <%-- <tr style="height: 50px">--%> |
| | | <%-- <td style="font-size: 10px;color: #eb7350;margin: 15px 25px;display: inline-block">货物或应税劳务、服务名称</td>--%> |
| | | <%-- <td style="font-size: 10px;color: #eb7350;margin: 15px 25px;display: inline-block">规格型号</td>--%> |
| | | <%-- <td style="font-size: 10px;color: #eb7350;margin: 15px 25px;display: inline-block">单位</td>--%> |
| | | <%-- <td style="font-size: 10px;color: #eb7350;margin: 15px 25px;display: inline-block">数量</td>--%> |
| | | <%-- <td style="font-size: 10px;color: #eb7350;margin: 15px 25px;display: inline-block">金额</td>--%> |
| | | <%-- <td style="font-size: 10px;color: #eb7350;margin: 15px 25px;display: inline-block">税率</td>--%> |
| | | <%-- <td style="font-size: 10px;color: #eb7350;margin: 15px 25px;display: inline-block">税额</td>--%> |
| | | <%-- </tr>--%> |
| | | <%-- <tr style="height: 50px">--%> |
| | | <%-- <td style="font-size: 10px;margin: 15px 25px;display: inline-block;text-align: center">技术服务费</td>--%> |
| | | <%-- <td style="font-size: 10px;margin: 15px 25px;display: inline-block"></td>--%> |
| | | <%-- <td style="font-size: 10px;margin: 15px 25px;display: inline-block;margin-left: 140px">套</td>--%> |
| | | <%-- <td style="font-size: 10px;margin: 15px 25px;display: inline-block;margin-left: 40px">1</td>--%> |
| | | <%-- <td style="font-size: 10px;margin: 15px 25px;display: inline-block;margin-left: 35px" id="ZMoney1"></td>--%> |
| | | <%-- <td style="font-size: 10px;margin: 15px 25px;display: inline-block">6.00%</td>--%> |
| | | <%-- <td style="font-size: 10px;margin: 15px 18px;display: inline-block" id="ZMoney2"></td>--%> |
| | | <%-- </tr>--%> |
| | | <%-- </table>--%> |
| | | <%-- </div>--%> |
| | | <%-- </div>--%> |
| | | <%-- <div style="width: 94.6%;border: 1px solid firebrick;height: 30px;border-top: 0px;margin: auto">--%> |
| | | <%-- <div style="width: 25%;border-right: 1px solid firebrick;margin-left: 21px;border-bottom: 1px solid firebrick;height: 30px;line-height: 30px;float: left">--%> |
| | | <%-- <span style="font-size: 10px;color: #eb7350;margin-left: 40px">价税合计 (大写)</span>--%> |
| | | <%-- </div>--%> |
| | | <%-- <div style="width: 69.6%;border-bottom: 1px solid firebrick;height: 30px;line-height: 30px;float: left">--%> |
| | | <%-- <span style="font-size: 10px;color: #eb7350;margin-left: 40px" id="daxie"></span><span STYLE="margin-left:220px;font-size: 10px;color: #eb7350">(小写) ¥</span><span STYLE="font-size: 10px;color: #eb7350" id="xiaoxie"></span>--%> |
| | | <%-- </div>--%> |
| | | <%-- </div>--%> |
| | | <%-- <div style="border-top:0px solid firebrick;width: 95%;margin: 0px auto;">--%> |
| | | <%-- <div style="border-left: 1px solid firebrick;height: 100px;width: 5%;font-size: 12px;text-align: center;color: firebrick;border-right: 1px solid firebrick;border-bottom: 1px solid firebrick;float: left">销</br>售</br>方</div>--%> |
| | | <%-- <div style="border-bottom: 1px solid firebrick;border-right: 1px solid firebrick;height: 100px;float: left;width: 60%">--%> |
| | | <%-- <div style="margin-left: 10px">--%> |
| | | <%-- <span style="color: #eb7350;font-size: 6px">名 称:</span> <span style="font-size: 8px">北京华星北斗智控技术有限公司</span>--%> |
| | | <%-- </div>--%> |
| | | <%-- <div style="color: #eb7350;font-size: 8px;margin-left: 10px">纳税人识别号:<span style="color: black">91110108MA001JXF7X</span></div>--%> |
| | | <%-- <div style="color: #eb7350;font-size: 8px;margin-left: 10px">地址、 电话:<span style="color: black">京市丰台区五里店北里一区4号楼6层607室 010-68214881</span></div>--%> |
| | | <%-- <div style="color: #eb7350;font-size: 8px;margin-left: 10px">开户行及账号:<span style="color: black">招商银行北京玉泉路支行 110919469410101</span></div>--%> |
| | | <%-- </div>--%> |
| | | <%-- <div style="border-bottom: 1px solid firebrick;border-right: 1px solid firebrick;height: 100px;float: left;width: 5%;color: firebrick;text-align: center;font-size: 12px">备</br>注</div>--%> |
| | | <%-- <div style="border-bottom: 1px solid firebrick;height: 100px;float: left;border-right: 1px solid firebrick;width: 29.2%"></div>--%> |
| | | <%-- </div>--%> |
| | | <%-- <div style="width: 95%">--%> |
| | | <%-- <span style="color: #eb7350;font-size: 10px;margin-right: 130px;margin-left: 30px">收款人:</span>--%> |
| | | <%-- <span style="color: #eb7350;font-size: 10px;margin-right: 130px">复核:</span>--%> |
| | | <%-- <span style="color: #eb7350;font-size: 10px;margin-right: 130px">开票人:</span>--%> |
| | | <%-- <span style="color: #eb7350;font-size: 10px;margin-right: 130px">销售方(章):</span>--%> |
| | | <%-- </div>--%> |
| | | <%-- </div>--%> |
| | | </div> |
| | | <div style="background: none"> |
| | | <div> |
| | | <p style="text-align: center;margin: auto;margin-top: 70px"><img src="/HxzkFlow/images/successful.png" style="width: 100px"></p> |
| | | <h1 style="text-align: center;margin: auto;margin-top: 50px">申请开票成功</h1> |
| | | <h1 style="text-align: center;margin: auto;margin-top: 50px;color: #c24f4a">提交成功请等待开票...</h1> |
| | | <h3 style="text-align: center;margin: auto;margin-top:20px">可在开票记录查看开票是否成功</h3> |
| | | <form> |
| | | <p style="text-align: center;margin: auto;margin-top: 50px"> |
| | | <button class="layui-btn" lay-submit lay-filter="saveBtn">再次开票</button> |
| | | <%-- <button class="layui-btn" lay-submit lay-filter="saveBtn">再次开票</button>--%> |
| | | <button data-refresh="刷新" onclick="reloads()" class="layui-btn layui-btn-danger">返回</button></p> |
| | | </form> |
| | | </div> |
| | |
| | | </div> |
| | | </div> |
| | | <script type="text/html" id="toolbarDemo"> |
| | | |
| | | <button class="layui-btn layui-btn-danger" lay-event="getDelete" id="btnde" style="display: none" >删除</button> |
| | | |
| | | |
| | | <div class="layui-btn-container" style="margin-left: 0px;margin-top: 20px;display: inline-block;position: relative"> |
| | | <button class="layui-btn layui-btn-danger" lay-submit lay-filter="formStep1" id="xyb" lay-event="getadd" style="position: relative;top: 600px;left: 1500px">下一步</button> |
| | | </div> |
| | | </script> |
| | | <script type="text/html" id="checkboxTpl"> |
| | | |
| | | <input type="checkbox" name="layTableCheckbox" lay-event="getchange" lay-skin="primary" lay-filter="clickCheckbox" data-id="{{d.id}}"> |
| | | </script> |
| | | <script type="text/html" id="titleTpl"> |
| | | {{# if(d.status === '未开票') { }} |
| | | <span style="color: orange">未开票</span> |
| | | {{# } else if(d.status === '已申请') { }} |
| | | <span style="color: green">已申请</span> |
| | | {{# } else if(d.status === '已开具') { }} |
| | | <span style="color: green">已开具</span> |
| | | {{# } else if(d.status === '已作废') { }} |
| | | <span style="color: green">已作废</span> |
| | | {{# } else if(d.status === '已开票') { }} |
| | | <span style="color: green">已开票</span> |
| | | {{# } }} |
| | |
| | | <script src="https://code.jquery.com/jquery-3.1.1.min.js"></script> |
| | | <link rel="stylesheet" href="/HxzkFlow/js/step.js" media="all"> |
| | | <script> |
| | | var juese = localStorage.getItem("getjuese") |
| | | setTimeout(function () { |
| | | if (juese=="超级管理员"){ |
| | | var button = document.getElementById('btnde'); |
| | | console.log(button) |
| | | // 设置样式属性来隐藏按钮 |
| | | button.style.display = ''; |
| | | } |
| | | },500) |
| | | // setTimeout(function () { |
| | | // menu.tryChangeActive(); |
| | | // }, 100); |
| | | |
| | | var Zong = localStorage.getItem("gsjc") |
| | | var youji = "company="+localStorage.getItem("gsjc"); |
| | | $.post("/HxzkFlow/hxzk/findMailUser",youji,function (data){ |
| | |
| | | $("#ffp7").val(data.mailingaddress); |
| | | $("#ffpphone").val(data.phone); |
| | | }) |
| | | // //删除 |
| | | // function buttonDelete(){ |
| | | // console.log("打印数据=====》》》》》》》》》》") |
| | | // layui.use(['jquery','table'],function (){ |
| | | // //引用layui方法 |
| | | // var $ = layui.jquery ; |
| | | // var table = layui.table ; |
| | | // // 监听操作按钮的点击事件 |
| | | // table.on('tool(demo)', function(obj){ |
| | | // |
| | | // console.log(obj) |
| | | // var data = obj.data; // 获取当前行的数据 |
| | | // var cid = data.num; |
| | | // console.log(cid); // 输出cid值,可以做其他处理 |
| | | // |
| | | // // var nums = []; |
| | | // // for (var i = 0; i < obj.length; i++) { |
| | | // // nums.push(JSON.stringify(obj.data[i].num)) |
| | | // var datas = "chongZhiId=" + cid |
| | | // $.post("/HxzkFlow/hxzk/DeleteChongZhi", datas, function (data) { |
| | | // |
| | | // }); |
| | | // // } |
| | | // layer.alert("删除成功1") |
| | | // |
| | | // // var datas = "id=" + cid |
| | | // // $.get("/HxzkFlow/hxzk/downloadDocument", datas, function (data) { |
| | | // // |
| | | // // }); |
| | | // // $.ajax({ |
| | | // // url:'/HxzkFlow/hxzk/downloadDocument', |
| | | // // type:'get', |
| | | // // data:{ |
| | | // // id:cid |
| | | // // } |
| | | // // |
| | | // // }) |
| | | // }); |
| | | // }) |
| | | // } |
| | | |
| | | layui.use([ 'form', 'step'], function () { |
| | | var $ = layui.$, |
| | | form = layui.form, |
| | |
| | | return false; |
| | | }else{ |
| | | |
| | | var data = "jynum="+localStorage.getItem("fapiaonum")+"&status=已开票" |
| | | var data = "jynum="+localStorage.getItem("fapiaonum")+"&status=已申请" |
| | | $.post("/HxzkFlow/hxzk/upstatus",data,function (data){ |
| | | |
| | | }) |
| | |
| | | var sqkpmoney = $("#ZgMoney").text(); |
| | | var shuilv1 = $(".shuilv").text(); |
| | | var shuilv = shuilv1[0] |
| | | var fpstate1 = "已开票" |
| | | var fpstate1 = "已申请" |
| | | var data = "sqdate="+sqdate+"&fptt="+fptt+"&xydm="+xydm+"&khh="+khh+"&zcaddress="+zcaddress+"&zcphone="+zcphone+"&fptype="+fptype+"&sqkpmoney="+sqkpmoney+"&shuilv="+shuilv+"&fpstate="+fpstate1+"&company="+localStorage.getItem("gsmc")+"&youji="+ $("#ffp7").val()+"&lxphone="+$("#ffpphone").val(); |
| | | $.post("/HxzkFlow/hxzk/zongfpadd",data,function (data){ |
| | | |
| | |
| | | table.render({ |
| | | elem: '#demo' |
| | | , layEvent: 'LAYTABLE_TIPS' |
| | | , height: 780 |
| | | , height: 620 |
| | | , url: '/HxzkFlow/hxzk/FindChongzhi' //数据接口 |
| | | ,cellMinWidth: 80 |
| | | , page: true //开启分页 |
| | |
| | | , cols: [[ //表头 |
| | | {type: 'checkbox', fixed: 'left', templet: '#checkboxTpl'} |
| | | , {field: 'num', title: '序号', sort: true,width:'5%'} |
| | | , {field: 'company', title: '充值公司',} |
| | | , {field: 'jynum', title: '交易记录号',} |
| | | , {field: 'czmoney', title: '充值金额', sort: true} |
| | | , {field: 'czdate', title: '充值时间',} |
| | | , {field: 'kaimoney', title: '可开票金额'} |
| | | ,{field:'status', title: '状态',templet: '#titleTpl'} |
| | | ]], |
| | | limit: 10, |
| | | limit: 90, |
| | | limits: [10, 20, 30, 40, 50, 60, 70, 80, 90], |
| | | }); |
| | | }else{ |
| | |
| | | }] |
| | | , cols: [[ //表头 |
| | | {type: 'checkbox', fixed: 'left', templet: '#checkboxTpl'} |
| | | , {field: 'company', title: '充值公司',} |
| | | , {field: 'jynum', title: '交易记录号',} |
| | | , {field: 'czmoney', title: '充值金额', sort: true} |
| | | , {field: 'czdate', title: '充值时间',} |
| | | , {field: 'kaimoney', title: '可开票金额',} |
| | | ,{field:'status', title: '状态',templet: '#titleTpl'} |
| | | ]], |
| | | limit: 90, |
| | | limits: [10, 20, 30, 40, 50, 60, 70, 80, 90], |
| | | }); |
| | | }) |
| | | } |
| | |
| | | |
| | | var money = 0; |
| | | table.on('checkbox(demo)', function(obj){ |
| | | console.log(obj) |
| | | if(obj.type === 'one'){ |
| | | if (obj.checked) { |
| | | money = parseFloat(money) + parseFloat(obj.data.czmoney) |
| | |
| | | var money1 = $("#jine").text() |
| | | money = parseFloat(money1) - parseFloat(obj.data.czmoney) |
| | | } |
| | | $("#jine").text(money) |
| | | $("#jine").text(money.toFixed(2)) |
| | | }else{ |
| | | if (obj.checked) { |
| | | var gsjc = localStorage.getItem("gsjc") |
| | |
| | | console.log(obj) |
| | | var checkStatus = table.checkStatus(obj.config.id); |
| | | switch(obj.event) { |
| | | case 'getDelete': |
| | | var data = checkStatus.data; |
| | | if (data.length == 0) { |
| | | layer.alert("请选中一条数据") |
| | | } else { |
| | | var nums = []; |
| | | for (var i = 0; i < data.length; i++) { |
| | | nums.push(JSON.stringify(data[i].num)) |
| | | var datas = "chongZhiId=" + JSON.stringify(data[i].num) |
| | | $.post("/HxzkFlow/hxzk/DeleteChongZhi", datas, function (data) { |
| | | |
| | | }); |
| | | } |
| | | layer.alert("删除成功") |
| | | } |
| | | location.reload(); |
| | | // layui.table.reload('demo') |
| | | break; |
| | | case 'getadd': |
| | | var data = checkStatus.data; |
| | | if(data.length == 0){ |
| | | alert("请先选择一条记录") |
| | | }else{ |
| | | |
| | | localStorage.removeItem("fapiaonum") |
| | | localStorage.removeItem("fapiaomoney") |
| | | //保存发票号码,和发票金额, |
| | |
| | | fapiaonum += data[i].jynum+"," |
| | | fapiaomoney = parseInt(data[i].czmoney) + parseInt(fapiaomoney); |
| | | } |
| | | if(data[i].status == "已开票"){ |
| | | if(data[i].status == "已申请"){ |
| | | fa = false |
| | | } |
| | | } |
| | | if(fa == false){ |
| | | alert("当前选择的记录中,已经有存在开票过的记录") |
| | | }else{ |
| | | var data = "company="+localStorage.getItem("gsmc") |
| | | $.get("/HxzkFlow/hxzk/Invoices",data,function (data){ |
| | | var dataq = checkStatus.data; |
| | | console.log(dataq) |
| | | // var data = "company="+localStorage.getItem("gsmc") |
| | | var data = "company="+dataq[0].company |
| | | console.log(data) |
| | | $.post("/HxzkFlow/hxzk/Invoices",data,function (data){ |
| | | |
| | | if(data == "" || data == null){ |
| | | alert("请先去开票管理页面保存发票信息!") |
| | | }else{ |
| | | console.log(data.defaultinvoicetype) |
| | | if(data.defaultinvoicetype == "增值税普通发票(电子)"){ |
| | | if(data.defaultinvoicetype == "增值税普通发票"){ |
| | | document.getElementById("dianzi").checked = true; |
| | | console.log("1123") |
| | | }else{ |
| | |
| | | return chinese; |
| | | } |
| | | |
| | | |
| | | </script> |
| | | </body> |
| | | </html> |