From 930bf78c099dea100af3dc05a0ac7b51d919b4f2 Mon Sep 17 00:00:00 2001
From: wtt <1985833171@qq.com>
Date: 星期二, 10 九月 2024 16:26:40 +0800
Subject: [PATCH] 采购模块查询完成

---
 WebTM/views/采购管理/应付单/Cg_PayableBillQuery.html |  237 +++++++++-------------------------------------------------
 1 files changed, 38 insertions(+), 199 deletions(-)

diff --git "a/WebTM/views/\351\207\207\350\264\255\347\256\241\347\220\206/\345\272\224\344\273\230\345\215\225/Cg_PayableBillQuery.html" "b/WebTM/views/\351\207\207\350\264\255\347\256\241\347\220\206/\345\272\224\344\273\230\345\215\225/Cg_PayableBillQuery.html"
index ee7a60e..5ed1588 100644
--- "a/WebTM/views/\351\207\207\350\264\255\347\256\241\347\220\206/\345\272\224\344\273\230\345\215\225/Cg_PayableBillQuery.html"
+++ "b/WebTM/views/\351\207\207\350\264\255\347\256\241\347\220\206/\345\272\224\344\273\230\345\215\225/Cg_PayableBillQuery.html"
@@ -2,7 +2,7 @@
 <html>
 <head>
     <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
-    <title>閲囪喘璁㈠崟鏌ヨ</title>
+    <title>搴斾粯鍗曟煡璇�</title>
     <meta name="renderer" content="webkit">
     <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
     <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
@@ -87,13 +87,6 @@
                                                 <input type="text" class="layui-input ForFilteringSchemes" name="HSupName" id="HSupName" style="width:190px;">
                                             </div>
                                         </div>
-                                        <div class="layui-inline">
-                                            <label class="layui-form-label">鍗曟嵁鍙�</label>
-                                            <div class="layui-input-block">
-                                                <input type="text" class="layui-input ForFilteringSchemes" name="HBillno2" id="HBillno2" style="width:190px;">
-                                            </div>
-                                        </div>
-                                        <button class="layui-btn layuiadmin-btn-order" type="button" lay-submit="" lay-filter="btnResCnz" id="btnReSearch" style="padding:0 5px">閲嶆柊鍚屾</button>
                                     </div>
                                     <div class="layui-inline">
                                         <div class="layui-row" style="margin-top:5px">
@@ -190,7 +183,6 @@
                                 <button type="button" class="layui-btn layui-btn-sm" lay-event="btn-Add" id="Add"><i class="layui-icon layui-icon-file-b"></i>鏂板</button>
                                 <button type="button" class="layui-btn layui-btn-sm" lay-event="btn-Edit" id="Edit"><i class="layui-icon layui-icon-form"></i>缂栬緫</button>
                                 <button type="button" class="layui-btn layui-btn-sm" lay-event="btn-Delete" id="Delete"><i class="layui-icon layui-icon-delete"></i>鍒犻櫎</button>
-                                <button type="button" class="layui-btn layui-btn-sm" lay-event="btn-print" id="print"><i class="layui-icon layui-icon-print"></i>鎵撳嵃</button>
                                 <button type="button" class="layui-btn layui-btn-sm" lay-event="get_Refresh" id="Refresh"><i class="layui-icon layui-icon-refresh-3"></i>鍒锋柊</button>
                                 <button type="button" class="layui-btn layui-btn-sm" style="display:none;" lay-event="set_CheckBill" id="CheckBill"><i class="layui-icon layui-icon-form"></i>瀹℃牳</button>
                                 <button type="button" class="layui-btn layui-btn-sm" style="display:none;" lay-event="set_AbandonCheck" id="AbandonCheck"><i class="layui-icon layui-icon-form"></i>鍙嶅鏍�</button>
@@ -213,8 +205,8 @@
                         <table class="" id="mainTableSub" lay-filter="mainTableSub"></table>
                         <script type="text/html" id="toolbarDemoSub">
                             <div class="layui-btn-container">
-                                <button type="button" class="layui-btn layui-btn-sm" style="display:none;" lay-event="set_CloseRow" id="set_CloseRow"><i class="layui-icon layui-icon-form"></i>琛屽叧闂�</button>
-                                <button type="button" class="layui-btn layui-btn-sm" style="display:none;" lay-event="set_CancelCloseRow" id="set_CancelCloseRow"><i class="layui-icon layui-icon-form"></i>琛屽弽鍏抽棴</button>
+                                <!--<button type="button" class="layui-btn layui-btn-sm" style="display:none;" lay-event="set_CloseRow" id="set_CloseRow"><i class="layui-icon layui-icon-form"></i>琛屽叧闂�</button>
+                                <button type="button" class="layui-btn layui-btn-sm" style="display:none;" lay-event="set_CancelCloseRow" id="set_CancelCloseRow"><i class="layui-icon layui-icon-form"></i>琛屽弽鍏抽棴</button>-->
                                 <button type="button" class="layui-btn layui-btn-sm" lay-event="set_HideColumnSub" id="HideColumnSub"><i class="layui-icon layui-icon-form"></i>鍒楄缃�</button>
                             </div>
                         </script>
@@ -244,11 +236,11 @@
             var sWhere = "";
             var option = [];
             var optionSub = [];
-            var HModName = "Cg_POOrderBillQuery";
-            var HModNameSub = "Cg_POOrderBillQuerySub";
-            var HBillType = "1102";
+            var HModName = "Cg_PayableBillQuery";
+            var HModNameSub = "Cg_PayableBillQuerySub";
+            var HBillType = "1114";
             //#region 銆愬姩鎬佽幏鍙栨ā鍧楀悕绉般��
-            var HModuleType = "1102";
+            var HModuleType = "1114";
             //閫氳繃鍗曟嵁绫诲瀷锛屼粠鏁版嵁搴撳姩鎬佽幏鍙栧崟鎹ā鍧楀懡鍚�,寮曠敤js鏂囦欢 PageTitle.js
             var HPageTitle = get_PageTitle(HModuleType) == "" ? document.title : get_PageTitle(HModuleType);
             //#endregion
@@ -262,7 +254,7 @@
             //杩囨护鏉′欢鐨刢lass绫�
             var HClassTag = "ForFilteringSchemes";
             //妯″潡鍚嶇О锛堜腑鏂囩増锛� 姣忎釜妯″潡椤甸潰閮介渶瑕佷慨鏀�
-            window.HModuleName = "閲囪喘璁㈠崟鏌ヨ";
+            window.HModuleName = "搴斾粯鍗曟煡璇�";
             //鏄惁宸茬粡閫夋嫨浜嗚繃婊ゆ柟妗堬紙鍏ㄥ眬鍙橀噺锛�
             window.HDefaultFilter = "";
             //閫夋嫨鐨勮繃婊ゆ柟妗堝唴鐮侊紙鍏ㄥ眬鍙橀噺锛�
@@ -320,21 +312,21 @@
                     //椹冲洖
                     case 'set_RejectCheck_Flow': set_RejectCheck_Flow();
                         break;
-                    //鍏抽棴鎸夐挳        锛�1:鍏抽棴銆�2:鍙嶅叧闂級
+                    //鍏抽棴鎸夐挳        锛�0:鍏抽棴銆�1:鍙嶅叧闂級
                     case 'btn-Close':
-                        set_CloseBill(1);
+                        set_CloseBill(0);
                         break;
                     //鍙嶅叧闂寜閽�
                     case 'btn-DeClose':
-                        set_CloseBill(2);
+                        set_CloseBill(1);
                         break;
-                    //浣滃簾鎸夐挳        锛�1:浣滃簾銆�2:鍙嶄綔搴燂級
+                    //浣滃簾鎸夐挳        锛�0:浣滃簾銆�1:鍙嶄綔搴燂級
                     case 'btn-Drop':
-                        set_DropBill(1);
+                        set_DropBill(0);
                         break;
                     //鍙嶄綔搴熸寜閽�
                     case 'btn-DeDrop':
-                        set_DropBill(2);
+                        set_DropBill(1);
                         break;
                     //閫�鍑�
                     case 'get_Exit': Pub_Close(2);
@@ -345,7 +337,7 @@
                     //鎸夐挳璁剧疆
                     case 'set_HideButton':
                         var btns = document.getElementsByTagName("button");     //鑾峰彇鏈〉鎵�鏈夋寜閽璞�
-                        var HBillType = "1102";
+                        var HBillType = "1114";
                         get_HideButton(btns, HBillType, HModName, sessionStorage["HUserName"]);
                         break;
                     //淇濆瓨鏂规
@@ -372,12 +364,6 @@
             });
             //琛ㄦ牸鐐瑰嚮浜嬩欢
 
-
-            //閲嶆柊鍚屾鎸夐挳
-            form.on('submit(btnResCnz)', function (data) {
-                set_ResCnz();
-            });
-
             //閲嶇疆鎸夐挳
             form.on('submit(btnReSearch)', function (data) {
                 set_ClearQuery();
@@ -396,7 +382,7 @@
                         , shade: 0.6 //閬僵閫忔槑搴�
                         , maxmin: true //鍏佽鍏ㄥ睆鏈�灏忓寲
                         , anim: 0 //0-6鐨勫姩鐢诲舰寮忥紝-1涓嶅紑鍚�
-                        , content: './Cg_POOrderBillEdit.html?OperationType=3&linterid=' + linterid + '&HSouceBillType=0&closeType=1'
+                        , content: './Cg_PayableBill.html?OperationType=3&linterid=' + linterid + '&HSouceBillType=0&closeType=1'
                         , resize: false,
                         end: function () {
                             get_FastQuery(table, option);
@@ -469,102 +455,7 @@
                     , cellMinWidth: 90
                     , limit: 50
                     , limits: [50, 500, 5000, 20000]
-                    , cols: [[
-                        { type: 'checkbox', fixed: 'left', totalRowText: '鍚堣' }
-                        ,{ field: 'hmainid', title: 'hmainid', sort: true, hide: true }
-                        , { field: '鏃ユ湡', title: '鏃ユ湡', width: 120, templet: "<div>{{d.鏃ユ湡 ==null ?'':layui.util.toDateString(d.鏃ユ湡, 'yyyy-MM-dd')}}</div>" }
-                        , { field: '鍗曟嵁鍙�', title: '鍗曟嵁鍙�', width: 150, }
-                        , { field: '鐘舵��', title: '鐘舵��', width: 100, sort: true }
-                        , { field: 'HBillType', title: 'HBillType', hide: true, sort: true }
-                        , { field: '琛岀姸鎬�', title: '琛岀姸鎬�', width: 125, sort: true }
-                        , { field: '渚涘簲鍟�', title: '渚涘簲鍟�', width: 150 }
-                        , { field: '涓氬姟鍛�', title: '涓氬姟鍛�', width: 100 }
-                        //, { field: 'HBillType', title: 'HBillType', hide: true }
-                        //, { field: 'HSupID', title: 'HSupID', hide: true }
-                        //, { field: '涓氬姟鐘舵��', title: '涓氬姟鐘舵��', width: 100, hide: true }
-                        , { field: '鍒嗛厤鐘舵��', title: '鍒嗛厤鐘舵��', width: 100 }
-                        , { field: '鍙戝竷鐘舵��', title: '鍙戝竷鐘舵��', width: 100 }
-                        , { field: '渚涘簲鍟嗗崗鍚岀姸鎬�', title: '渚涘簲鍟嗗崗鍚岀姸鎬�', width: 135 }/*鐗╂枡浠g爜锛岀墿鏂欏悕绉帮紝瑙勬牸鍨嬪彿锛屾壒鍙凤紝鏁伴噺锛屽崟浣嶏紝婧愬崟鍗曞彿*/
-                        , { field: '鍙嶉鐘舵��', title: '渚涘簲鍟嗗弽棣堢姸鎬�', width: 135 }
-                        , { field: '鐗╂枡缂栫爜', title: '鐗╂枡缂栫爜', width: 120 }
-                        , { field: '鐗╂枡浠g爜', title: '鐗╂枡浠g爜', width: 130 }
-                        , { field: '鏃х墿鏂欑紪鐮�', title: '鏃х墿鏂欑紪鐮�', width: 130 }
-                        , { field: '鐗╂枡鍚嶇О', title: '鐗╂枡鍚嶇О', width: 130 }
-                        , { field: '鏁伴噺', title: '璁㈠崟鏁伴噺', width: 100, totalRow: true }
-                        , { field: '鎵撳嵃鏉$爜鏁伴噺', title: '鎵撳嵃鏉$爜鏁伴噺', width: 120, totalRow: true  }
-                        /* 瀹夌憺鏂板瀛楁 begin */
-                        , { field: '鍙墦鍗版潯鐮佹暟閲�', title: '鍙墦鍗版潯鐮佹暟閲�', width: 120, totalRow: true}
-                        /* 瀹夌憺鏂板瀛楁 end */
-                        , { field: '鍏宠仈鏁伴噺', title: '宸插彂璐ф暟閲�', width: 120, totalRow: true}
-                        , { field: '鏈叧鑱旀暟閲�', title: '鍙彂璐ф暟閲�', width: 120, totalRow: true}
-                        /* 瀹夌憺鏂板瀛楁 begin */
-                        , { field: '閫�鏂欐暟閲�', title: '閫�鏂欐暟閲�', width: 120, totalRow: true}
-                        , { field: '瀹炴敹鏁伴噺', title: '瀹炴敹鏁伴噺', width: 120, totalRow: true}
-                        , { field: '鍏ュ簱鏁伴噺', title: '鍏ュ簱鏁伴噺', width: 120, totalRow: true}
-                        , { field: '鍓╀綑鍏ュ簱鏁伴噺', title: '鍓╀綑鍏ュ簱鏁伴噺', width: 120, totalRow: true}
-                        , { field: '鍓╀綑鏀舵枡鏁伴噺', title: '鍓╀綑鏀舵枡鏁伴噺', width: 120, totalRow: true}
-                        /* 瀹夌憺鏂板瀛楁 end */
-                        , { field: '瀹屾垚鐘舵��', title: '瀹屾垚鐘舵��', width: 100 }
-                        , { field: 'HUnitID', title: 'HUnitID', hide: true }
-                        , { field: '瑙勬牸鍨嬪彿', title: '瑙勬牸鍨嬪彿', width: 100 }
-                        //, { field: 'HUnitID', title: 'HUnitID', hide: true }  閲嶅
-                        , { field: '璁¢噺鍗曚綅浠g爜', title: '璁¢噺鍗曚綅浠g爜', width: 120 , hide: true }
-                        , { field: '璁¢噺鍗曚綅', title: '璁¢噺鍗曚綅', width: 100 }
-                        , { field: '鎵瑰彿', title: '鎵瑰彿', width: 100 }
-                        , { field: '鏁伴噺', title: '鏁伴噺', width: 100, totalRow: true }
-                        , { field: '婧愬崟鍗曞彿', title: '婧愬崟鍗曞彿', width: 100 }
-                        //, { field: '渚涘簲鍟嗕唬鐮�', title: '渚涘簲鍟嗕唬鐮�', width: 120, hide: true}
-                        //, { field: '涓氬姟鍛樹唬鐮�', title: '涓氬姟鍛樹唬鐮�', width: 100, hide: true}
-                        //, { field: 'HPriority', title: 'HPriority', width: 100, hide: true }
-                        , { field: '浼樺厛绾�', title: '浼樺厛绾�', width: 100 }
-                        , { field: '浜よ揣鍦扮偣', title: '浜よ揣鍦扮偣', width: 100}
-                        , { field: 'HPSStyleID', title: 'HPSStyleID', hide: true }
-                        , { field: '閲囪喘鏂瑰紡浠g爜', title: '閲囪喘鏂瑰紡浠g爜', width: 120, hide: true }
-                        , { field: '閲囪喘鏂瑰紡', title: '閲囪喘鏂瑰紡', width: 100}
-                        , { field: 'HSSID', title: 'HSSID', hide: true }
-                        , { field: '缁撶畻鏂瑰紡浠g爜', title: '缁撶畻鏂瑰紡浠g爜', width: 120}
-                        , { field: '缁撶畻鏂瑰紡', title: '缁撶畻鏂瑰紡', width: 100}
-                        , { field: '缁撶畻鏃ユ湡', title: '缁撶畻鏃ユ湡', width: 120, templet: "<div>{{d.鏃ユ湡 ==null ?'':layui.util.toDateString(d.缁撶畻鏃ユ湡, 'yyyy-MM-dd')}}</div>" }
-                        , { field: 'HCurID', title: 'HCurID', hide: true }
-                        , { field: '甯佸埆浠g爜', title: '甯佸埆浠g爜', width: 100, hide: true }
-                        , { field: '甯佸埆', title: '甯佸埆', width: 100}
-                        , { field: '姹囩巼', title: '姹囩巼', width: 100}
-                        , { field: 'HDeptID', title: 'HDeptID', hide: true }
-                        , { field: '閮ㄩ棬浠g爜', title: '閮ㄩ棬浠g爜', width: 100, hide: true }
-                        , { field: '閮ㄩ棬', title: '閮ㄩ棬', width: 100}
-                        , { field: 'HManagerID', title: 'HManagerID', hide: true }
-                        , { field: '涓荤浠g爜', title: '涓荤浠g爜', width: 100, hide: true }
-                        , { field: '涓荤', title: '涓荤', width: 100}
-                        , { field: 'HEmpID', title: 'HEmpID', hide: true }
-                        , { field: '鎽樿', title: '鎽樿', width: 100 }
-                        , { field: 'HWHID', title: '涓昏〃浠撳簱ID', width: 120, hide: true}
-                        , { field: '浠撳簱', title: '涓昏〃浠撳簱', width: 100, hide: true}
-                        , { field: '琛ㄥご澶囨敞', title: '琛ㄥご澶囨敞', width: 100}
-                        , { field: 'hsubid', title: 'hsubid', hide: true }
-                        , { field: 'HMaterID', title: 'HMaterID', hide: true }
-                        , { field: '鍗曚环', title: '鍗曚环', width: 100}
-                        , { field: '閲戦', title: '閲戦', width: 100, totalRow: true }
-                        , { field: '绋庣巼', title: '绋庣巼', width: 100}
-                        , { field: '绋庨', title: '绋庨', width: 100}
-                        , { field: '鎶樻墸鐜�', title: '鎶樻墸鐜�', width: 100}
-                        , { field: '浠风◣鍚堣', title: '浠风◣鍚堣', width: 100}
-                        , { field: '浜よ揣鏃ユ湡', title: '浜よ揣鏃ユ湡', width: 120, templet: "<div>{{d.浜よ揣鏃ユ湡 ==null ?'':layui.util.toDateString(d.浜よ揣鏃ユ湡, 'yyyy-MM-dd')}}</div>" }
-                        , { field: '璁″垝璺熻釜鍙�', title: '璁″垝璺熻釜鍙�', width: 100}
-                        , { field: '琛ㄤ綋澶囨敞', title: '琛ㄤ綋澶囨敞', width: 100}
-                        , { field: '鍒跺崟浜�', title: '鍒跺崟浜�', width: 100}
-                        , { field: '鍒跺崟鏃ユ湡', title: '鍒跺崟鏃ユ湡', width: 200, templet: "<div>{{d.鍒跺崟鏃ユ湡 ==null ?'':layui.util.toDateString(d.鍒跺崟鏃ユ湡, 'yyyy-MM-dd HH:mm:ss')}}</div>", sort: true }
-                        , { field: '瀹℃牳浜�', title: '瀹℃牳浜�', width: 100}
-                        , { field: '瀹℃牳鏃ユ湡', title: '瀹℃牳鏃ユ湡', width: 120, templet: "<div>{{d.瀹℃牳鏃ユ湡 ==null ?'':layui.util.toDateString(d.瀹℃牳鏃ユ湡, 'yyyy-MM-dd HH:mm:ss')}}</div>" }
-                        , { field: '淇敼浜�', title: '淇敼浜�', width: 100}
-                        , { field: '淇敼鏃ユ湡', title: '淇敼鏃ユ湡', width: 120, templet: "<div>{{d.淇敼鏃ユ湡 ==null ?'':layui.util.toDateString(d.淇敼鏃ユ湡, 'yyyy-MM-dd HH:mm:ss')}}</div>" }
-                        , { field: '鍏抽棴浜�', title: '鍏抽棴浜�', width: 100}
-                        , { field: '鍏抽棴鏃ユ湡', title: '鍏抽棴鏃ユ湡', width: 120, templet: "<div>{{d.鍏抽棴鏃ユ湡 ==null ?'':layui.util.toDateString(d.鍏抽棴鏃ユ湡, 'yyyy-MM-dd HH:mm:ss')}}</div>" }
-                        , { field: '琛屽叧闂汉', title: '琛屽叧闂汉', width: 125, sort: true }
-                       , { field: '琛屽叧闂棩鏈�', title: '琛屽叧闂棩鏈�', width: 200, templet: "<div>{{d.琛屽叧闂汉 == ''?'':layui.util.toDateString(d.琛屽叧闂棩鏈�, 'yyyy-MM-dd HH:mm:ss')}}</div>", sort: true }
-                        , { field: '浣滃簾浜�', title: '浣滃簾浜�', width: 100}
-                        , { field: '浣滃簾鏃ユ湡', title: '浣滃簾鏃ユ湡', width: 120, templet: "<div>{{d.浣滃簾鏃ユ湡 ==null ?'':layui.util.toDateString(d.浣滃簾鏃ユ湡, 'yyyy-MM-dd HH:mm:ss')}}</div>" }
-
-                ]]
+                    , cols: [[]]
 
                     , done: function (res, curr, count) {
                         soulTable.render(this);
@@ -591,7 +482,7 @@
             function get_Display(sWhere) {
                 var ajaxLoad = layer.load();
                 $.ajax({
-                    url: GetWEBURL() + '/Cg_POOrderBill/QueryList',
+                    url: GetWEBURL() + '/Cg_PayableBill/QueryList',
                     type: "GET",
                     data: { "sWhere": sWhere  , "user": sessionStorage["HUserName"]},
                     success: function (data1) {
@@ -673,7 +564,7 @@
                 var HMainID = datas.hmainid;
                 var wait = layer.load();
                 $.ajax({
-                    url: GetWEBURL() + '/Cg_POOrderBill/QuerySubList',
+                    url: GetWEBURL() + '/Cg_PayableBill/QuerySubList',
                     type: "GET",
                     data: { "hmainid": HMainID, "user": sessionStorage["HUserName"] },
                     async: false,
@@ -753,7 +644,7 @@
                     shift: 2,
                     area: ['100%', '100%'],
                     maxmin: true,
-                    content: './Cg_POOrderBillEdit.html?OperationType=1&linterid=&HSouceBillType=0&closeType=1',
+                    content: './Cg_PayableBill.html?OperationType=1&linterid=&HSouceBillType=0&closeType=1',
                     end: function () {
                         //鍒锋柊椤甸潰,
                         get_FastQuery(table, option);
@@ -778,7 +669,7 @@
                         , shade: 0.6 //閬僵閫忔槑搴�
                         , maxmin: true //鍏佽鍏ㄥ睆鏈�灏忓寲
                         , anim: 0 //0-6鐨勫姩鐢诲舰寮忥紝-1涓嶅紑鍚�
-                        , content: './Cg_POOrderBillEdit.html?OperationType=3&linterid=' + linterid + '&HSouceBillType=0&closeType=1'
+                        , content: './Cg_PayableBill.html?OperationType=3&linterid=' + linterid + '&HSouceBillType=0&closeType=1'
                         , resize: false,
                         end: function () {
                             get_FastQuery(table, option);
@@ -800,10 +691,10 @@
                     //閫昏緫鍒犻櫎鏂规硶
                     layer.confirm("纭瑕佸垹闄ゅ悧锛屽垹闄ゅ悗涓嶈兘鎭㈠", { title: "鍒犻櫎纭" }, function (index) {
 
-                        /*if (data[0].鐘舵�� == "鍒涘缓") {*/
+                        if (data[0].鐘舵�� == "鍒涘缓") {
                             $.ajax({
                                 type: "GET",
-                                url: GetWEBURL() + "/Cg_POOrderBill/DeltetCg_POOrderBill", //鏂规硶鎵�鍦ㄩ〉闈㈠拰鏂规硶鍚�
+                                url: GetWEBURL() + "/Cg_PayableBill/delete", //鏂规硶鎵�鍦ㄩ〉闈㈠拰鏂规硶鍚�
                                 data: { "HInterID": InterID, "user": sessionStorage["HUserName"] },
                                 success: function (result) {
                                     if (result.count == 1) {
@@ -813,7 +704,7 @@
                                             //鍏抽棴褰撳墠frame
                                             layer.close(index);
                                             //淇敼涓哄姛鍚庡埛鏂扮晫闈�
-                                            window.location.reload();
+                                            $("#btnSearch").trigger('click');
                                         });
 
                                     } else {
@@ -825,40 +716,15 @@
                                     layer.alert("鎺ュ彛璇锋眰澶辫触!", { icon: 5 });
                                 }
                             });
-                        //} else {
-                        //    layer.msg('璇ユ潯鏁版嵁涓嶆槸鍒涘缓鐘舵��,鏃犳硶鍒犻櫎锛�');
+                        } else {
+                            layer.msg('璇ユ潯鏁版嵁涓嶆槸鍒涘缓鐘舵��,鏃犳硶鍒犻櫎锛�');
 
-                        //}
+                        }
 
                     })
                 }
                 else {
                     layer.msg('璇烽�夋嫨涓�琛屾暟鎹垹闄わ紒');
-                }
-            }
-
-            //鎵撳嵃
-            function get_PrintReport() {
-                var checkStatus = table.checkStatus('mainTable')
-                    , data = checkStatus.data;
-
-                if (checkStatus.data.length === 0) {
-                    return layer.msg('璇烽�夋嫨鏁版嵁鎵撳嵃锛�');
-                }
-                else {
-
-                    var hmainid = data[0].hmainid.toString();
-
-                    layer.open({
-                        type: 2
-                        , area: ['50%', '50%']
-                        , title: '鎵撳嵃妯$増閫夋嫨'
-                        , shade: 0.6 //閬僵閫忔槑搴�
-                        , maxmin: false //鍏佽鍏ㄥ睆鏈�灏忓寲
-                        , anim: 0 //0-6鐨勫姩鐢诲舰寮忥紝-1涓嶅紑鍚�
-                        , content: ['../../BaseSet/SRM_OpenTmpList.html?linterid=' + hmainid.toString() + '&MyMsg=' + hmainid.toString() + '&Type=HPOOrderBillByID', 'yes']
-                        , resize: false
-                    })
                 }
             }
 
@@ -871,7 +737,7 @@
                     //閫昏緫瀹℃牳鏂规硶
                     $.ajax({
                         type: "GET",
-                        url: GetWEBURL() + "/Cg_POOrderBill/AuditCg_POOrderBill", //鏂规硶鎵�鍦ㄩ〉闈㈠拰鏂规硶鍚�
+                        url: GetWEBURL() + "/Cg_PayableBill/AuditCg_PayableBill", //鏂规硶鎵�鍦ㄩ〉闈㈠拰鏂规硶鍚�
                         data: { "HInterID": InterID, "IsAudit": num, "CurUserName": sessionStorage["HUserName"] },
                         success: function (result) {
                             if (result.count == 1) {
@@ -907,7 +773,7 @@
                     //閫昏緫瀹℃牳鏂规硶
                     $.ajax({
                         type: "GET",
-                        url: GetWEBURL() + "/Cg_POOrderBill/StartCheckFlow_POOrderBill", //鏂规硶鎵�鍦ㄩ〉闈㈠拰鏂规硶鍚�
+                        url: GetWEBURL() + "/Cg_PayableBill/StartCheckFlow_POOrderBill", //鏂规硶鎵�鍦ㄩ〉闈㈠拰鏂规硶鍚�
                         data: { "HInterID": InterID, "CurUserName": sessionStorage["HUserName"] },
                         success: function (result) {
                             if (result.count == 1) {
@@ -984,7 +850,7 @@
                     //閫昏緫瀹℃牳鏂规硶
                     $.ajax({
                         type: "GET",
-                        url: GetWEBURL() + "/Cg_POOrderBill/AuditCg_POOrderBill_Flow", //鏂规硶鎵�鍦ㄩ〉闈㈠拰鏂规硶鍚�
+                        url: GetWEBURL() + "/Cg_PayableBill/AuditCg_PayableBill_Flow", //鏂规硶鎵�鍦ㄩ〉闈㈠拰鏂规硶鍚�
                         data: { "HInterID": InterID, "IsAudit": num, "CurUserName": sessionStorage["HUserName"], "CurUserID": sessionStorage["Czybm"] },
                         success: function (result) {
                             if (result.count == 1) {
@@ -1020,7 +886,7 @@
                     //閫昏緫瀹℃牳鏂规硶
                     $.ajax({
                         type: "GET",
-                        url: GetWEBURL() + "/Cg_POOrderBill/RejectCheckFlow_POOrderBill", //鏂规硶鎵�鍦ㄩ〉闈㈠拰鏂规硶鍚�
+                        url: GetWEBURL() + "/Cg_PayableBill/RejectCheckFlow_POOrderBill", //鏂规硶鎵�鍦ㄩ〉闈㈠拰鏂规硶鍚�
                         data: { "HInterID": InterID, "CurUserID": sessionStorage["Czybm"] },
                         success: function (result) {
                             if (result.count == 1) {
@@ -1055,8 +921,8 @@
                     //閫昏緫瀹℃牳鏂规硶
                     $.ajax({
                         type: "GET",
-                        url: GetWEBURL() + "/Cg_POOrderBill/CloseCg_POOrderBill", //鏂规硶鎵�鍦ㄩ〉闈㈠拰鏂规硶鍚�
-                        data: { "HInterID": InterID, "Type": num, "user": sessionStorage["HUserName"] },
+                        url: GetWEBURL() + "/Cg_PayableBill/CloseCg_PayableBill", //鏂规硶鎵�鍦ㄩ〉闈㈠拰鏂规硶鍚�
+                        data: { "HInterID": InterID, "IsAudit": num, "CurUserName": sessionStorage["HUserName"] },
                         success: function (result) {
                             if (result.count == 1) {
                                 layer.msg(result.Message, { time: 1 * 1000, icon: 1 }, function () {
@@ -1082,7 +948,7 @@
             }
             //#endregion
 
-            //#region 琛屽弽鍏抽棴/琛屽叧闂暟鎹�
+            //#region 琛屽弽鍏抽棴/琛屽叧闂暟鎹�(鏆傛椂鏃犵敤)
             function set_CloseRow(num) {
                 var checkStatus = table.checkStatus('mainTableSub')
                     , data = checkStatus.data;
@@ -1093,7 +959,7 @@
                     //閫昏緫瀹℃牳鏂规硶
                     $.ajax({
                         type: "GET",
-                        url: GetWEBURL() + "/Cg_POOrderBill/CloseRowCg_POOrderBill", //鏂规硶鎵�鍦ㄩ〉闈㈠拰鏂规硶鍚�
+                        url: GetWEBURL() + "/Cg_PayableBill/CloseRowCg_PayableBill", //鏂规硶鎵�鍦ㄩ〉闈㈠拰鏂规硶鍚�
                         data: { "HInterID": InterID, "HEntryID": hsubid, "IsAudit": num, "CurUserName": sessionStorage["HUserName"] },
                         success: function (result) {
                             if (result.count == 1) {
@@ -1129,8 +995,8 @@
                     //閫昏緫瀹℃牳鏂规硶
                     $.ajax({
                         type: "GET",
-                        url: GetWEBURL() + "/Cg_POOrderBill/DropCg_POOrderBill", //鏂规硶鎵�鍦ㄩ〉闈㈠拰鏂规硶鍚�
-                        data: { "HInterID": InterID, "Type": num, "user": sessionStorage["HUserName"] },
+                        url: GetWEBURL() + "/Cg_PayableBill/DeleteCg_PayableBill", //鏂规硶鎵�鍦ㄩ〉闈㈠拰鏂规硶鍚�
+                        data: { "HInterID": InterID, "IsAudit": num, "CurUserName": sessionStorage["HUserName"] },
                         success: function (result) {
                             if (result.count == 1) {
                                 layer.msg(result.Message, { time: 1 * 1000, icon: 1 }, function () {
@@ -1279,7 +1145,7 @@
                 $("#HBillNo").val("");
                 $("#HEmpName").val("");
                 $("#HSupName").val("");
-                $("#HOrgID").val(sessionStorage["OrganizationID"]);
+                /*$("#HOrgID").val(sessionStorage["OrganizationID"]);*/
                 $("#ColContent").val("");
                 $("#ColName").val("0");
                 $("#Comparator").val("0");
@@ -1296,33 +1162,6 @@
                 form.render('select');
                 sWhere = "";
                 get_Display(sWhere);
-            }
-            //閲嶆柊鍚屾鎸夐挳
-            function set_ResCnz() {
-                var HBillno2 = $('#HBillno2').val();
-                $.ajax({
-                    url: GetWEBURL() + '/Cg_POOrderBill/Cg_POOrderBillViewApi',
-                    type: "GET",
-                    data: { "BillNo": HBillno2,"BillType":1102 },
-                    success: function (result) {
-                        if (result.count == 1) {
-                            layer.msg(result.Message, { time: 1 * 1000, icon: 1 }, function () {
-                                // 寰楀埌frame绱㈠紩
-                                var index = layer.getFrameIndex(window.name);
-                                //鍏抽棴褰撳墠frame
-                                layer.close(index);
-                                //淇敼涓哄姛鍚庡埛鏂扮晫闈�
-                                window.location.reload();
-                            });
-
-                        } else {
-                            layer.alert(result.code + result.Message, { icon: 5 });
-                        }
-                    }, error: function () {
-                        layer.close(wait);
-                        layer.alert("鎺ュ彛璇锋眰澶辫触!", { icon: 5 });
-                    }
-                });
             }
 
             //#endregion

--
Gitblit v1.9.1