From e15f561a1f9eddfde503d59baf45a860b131928e Mon Sep 17 00:00:00 2001 From: fei.wang <wf18701153496@163.com> Date: 星期三, 13 八月 2025 14:22:50 +0800 Subject: [PATCH] 更新最新版代码 --- src/webapp/page/ChongZhi.jsp | 322 +++++++++++++++++++++++++++++++++++------------------ 1 files changed, 213 insertions(+), 109 deletions(-) diff --git a/src/webapp/page/ChongZhi.jsp b/src/webapp/page/ChongZhi.jsp index dd082df..9bda497 100644 --- a/src/webapp/page/ChongZhi.jsp +++ b/src/webapp/page/ChongZhi.jsp @@ -31,21 +31,29 @@ </head> <body style="overflow-x: hidden;overflow-y: hidden"> <div class="layuimini-container"> - <div id="xxs" style="width: 100%;height: 130px;position: absolute;top: 700px;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 class="layui-fluid"> + <div > <div class="layui-card"> - <div class="layui-card-body" style="padding-top: 30px;"> - <div class="layui-carousel" id="stepForm" lay-filter="stepForm" style="margin: 0 auto;"> + <div > + <div class="layui-carousel" id="stepForm" lay-filter="stepForm" > <div carousel-item style="height: 800px"> <div style="background: none"> - <div id="main1" style=""> +<%-- <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"> @@ -86,8 +94,8 @@ <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"> @@ -140,90 +148,90 @@ </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绁╔X鍙戠エ</h2></div> - <div style="width: 30%;float:right;;height: 70px;text-align: center"> - <span style="font-size: 8px;color: firebrick">鍙戠エ浠g爜:</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绁╔X鍙戠エ</h2></div>--%> +<%-- <div style="width: 30%;float:right;;height: 70px;text-align: center">--%> +<%-- <span style="font-size: 8px;color: firebrick">鍙戠エ浠g爜:</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> @@ -236,16 +244,27 @@ </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> {{# } }} @@ -255,13 +274,67 @@ <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 Zong = localStorage.getItem("gsjc") + 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("gsmc") var youji = "company="+localStorage.getItem("gsjc"); $.post("/HxzkFlow/hxzk/findMailUser",youji,function (data){ console.log(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, @@ -293,7 +366,7 @@ return false; }else{ - var data = "jynum="+localStorage.getItem("fapiaonum")+"&status=宸插紑绁�" + var data = "jynum="+localStorage.getItem("fapiaonum")+"&status=宸茬敵璇�" $.post("/HxzkFlow/hxzk/upstatus",data,function (data){ }) @@ -323,7 +396,7 @@ 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){ @@ -351,8 +424,8 @@ layui.use('table', function() { var table = layui.table; //绗竴涓疄渚� - - var data ="Zong="+Zong + // var Zong = localStorage.getItem("gsmc") + var data ="Zong="+localStorage.getItem("gsjc") if(Zong == null){ }else{ @@ -374,13 +447,14 @@ , cols: [[ //琛ㄥご {type: 'checkbox', fixed: 'left', templet: '#checkboxTpl'} , {field: 'num', title: '搴忓彿', sort: true,width:'5%'} - , {field: 'jynum', title: '浜ゆ槗璁板綍鍙�',} - , {field: 'czmoney', title: '鍏呭�奸噾棰�', sort: true} - , {field: 'czdate', title: '鍏呭�兼椂闂�',} - , {field: 'kaimoney', title: '鍙紑绁ㄩ噾棰�'} - ,{field:'status', title: '鐘舵��',templet: '#titleTpl'} + , {field: 'company', title: '鍏呭�煎叕鍙�',width:'300'} + , {field: 'jynum', title: '浜ゆ槗璁板綍鍙�',width:'400'} + , {field: 'czmoney', title: '鍏呭�奸噾棰�', sort: true,width:'120'} + , {field: 'czdate', title: '鍏呭�兼椂闂�',width:'200'} + , {field: 'kaimoney', title: '鍙紑绁ㄩ噾棰�',width:'120'} + ,{field:'status', title: '鐘舵��',templet: '#titleTpl',width:'120'} ]], - limit: 10, + limit: 90, limits: [10, 20, 30, 40, 50, 60, 70, 80, 90], }); }else{ @@ -392,8 +466,10 @@ , layEvent: 'LAYTABLE_TIPS' , height: 620 , width: 1800 - , url: '/HxzkFlow/hxzk/FindChongzhiZi?Zong='+jc //鏁版嵁鎺ュ彛 + , url: '/HxzkFlow/hxzk/FindChongzhiZi' //鏁版嵁鎺ュ彛 ,cellMinWidth: 80 + ,method:'post' + , where: {Zong: jc} // 鎼滅储鐨勫瓧娈� , page: true //寮�鍚垎椤� , toolbar: '#toolbarDemo' , defaultToolbar: ['filter', 'exports', 'print', { //鑷畾涔夊ご閮ㄥ伐鍏锋爮鍙充晶鍥炬爣銆傚鏃犻渶鑷畾涔夛紝鍘婚櫎璇ュ弬鏁板嵆鍙� @@ -403,12 +479,15 @@ }] , cols: [[ //琛ㄥご {type: 'checkbox', fixed: 'left', templet: '#checkboxTpl'} - , {field: 'jynum', title: '浜ゆ槗璁板綍鍙�',} - , {field: 'czmoney', title: '鍏呭�奸噾棰�', sort: true} - , {field: 'czdate', title: '鍏呭�兼椂闂�',} - , {field: 'kaimoney', title: '鍙紑绁ㄩ噾棰�',} - ,{field:'status', title: '鐘舵��',templet: '#titleTpl'} + , {field: 'company', title: '鍏呭�煎叕鍙�',width:'300'} + , {field: 'jynum', title: '浜ゆ槗璁板綍鍙�',width:'400'} + , {field: 'czmoney', title: '鍏呭�奸噾棰�', sort: true,width:'120'} + , {field: 'czdate', title: '鍏呭�兼椂闂�',width:'200'} + , {field: 'kaimoney', title: '鍙紑绁ㄩ噾棰�',width:'120'} + ,{field:'status', title: '鐘舵��',templet: '#titleTpl',width:'120'} ]], + limit: 90, + limits: [10, 20, 30, 40, 50, 60, 70, 80, 90], }); }) } @@ -417,7 +496,6 @@ 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) @@ -426,7 +504,7 @@ 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") @@ -471,11 +549,32 @@ 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 { + layer.confirm("姝ゆ搷浣滃皢姘镐箙鍒犻櫎璇ユ暟鎹�, 鏄惁缁х画?",{icon: 3, title:'鎻愮ず'}, function () { + 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) { + location.reload(); + }); + } + 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") //淇濆瓨鍙戠エ鍙风爜锛屽拰鍙戠エ閲戦锛� @@ -490,21 +589,25 @@ 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{ @@ -535,7 +638,7 @@ $("#xiaoxie").text($("#jine").text()) $(".FuWuFei").text($("#jine").text()) var nums = localStorage.getItem("fapiaonum") - var numleng = nums.split(",") + var numleng = nums.split(/锛寍,/) $("#nnum").empty(); $("#nnum").text(numleng.length) $("#daxie").text("") @@ -609,6 +712,7 @@ return chinese; } + </script> </body> </html> -- Gitblit v1.9.3