From 61747a14819075bf6da2c1597b6c22e22e026686 Mon Sep 17 00:00:00 2001 From: fei.wang <wf18701153496@163.com> Date: 星期一, 15 四月 2024 14:25:11 +0800 Subject: [PATCH] 4-15修改提交 --- src/webapp/page/ChongZhi.jsp | 282 ++++++++++++++++++++++++++++++++++++++------------------ 1 files changed, 191 insertions(+), 91 deletions(-) diff --git a/src/webapp/page/ChongZhi.jsp b/src/webapp/page/ChongZhi.jsp index ae79c76..4fea270 100644 --- a/src/webapp/page/ChongZhi.jsp +++ b/src/webapp/page/ChongZhi.jsp @@ -31,7 +31,7 @@ </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"> @@ -39,13 +39,21 @@ <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"> @@ -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,6 +274,19 @@ <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){ @@ -262,6 +294,47 @@ $("#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){ @@ -361,7 +434,7 @@ table.render({ elem: '#demo' , layEvent: 'LAYTABLE_TIPS' - , height: 780 + , height: 620 , url: '/HxzkFlow/hxzk/FindChongzhi' //鏁版嵁鎺ュ彛 ,cellMinWidth: 80 , page: true //寮�鍚垎椤� @@ -374,13 +447,14 @@ , 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{ @@ -403,12 +477,15 @@ }] , 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], }); }) } @@ -417,7 +494,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 +502,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 +547,30 @@ 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") //淇濆瓨鍙戠エ鍙风爜锛屽拰鍙戠エ閲戦锛� @@ -490,21 +585,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{ @@ -609,6 +708,7 @@ return chinese; } + </script> </body> </html> -- Gitblit v1.9.3