| | |
| | | <i class="layui-icon layui-icon-search layuiadmin-button-btn"></i> |
| | | </button> |
| | | <button class="layui-btn layuiadmin-btn-order" type="button" lay-submit="" lay-filter="btnReSearch" id="btnReSearch" style="padding:0 5px">éç½®</button> |
| | | <div class="layui-colla-content" style="padding: 0px; margin-left: 6%;"> |
| | | <div class="layui-row" style="margin-top:10px;"> |
| | | <!--å
¶ä»æ¡ä»¶--> |
| | | <div class="layui-inline"> |
| | | <label class="layui-form-label" style="width: 76px;">ç©æåç§°</label> |
| | | <div class="layui-input-block" style="margin-left: 107px;"> |
| | | <input type="text" class="layui-input" name="HMaterName" id="HMaterName"> |
| | | </div> |
| | | </div> |
| | | <div class="layui-inline"> |
| | | <label class="layui-form-label" style="width: 85px;">è§æ ¼åå·</label> |
| | | <div class="layui-input-block" style="margin-left: 120px;"> |
| | | <input type="text" class="layui-input" name="HModel" id="HModel"> |
| | | </div> |
| | | <div class="layui-row" style="margin-top:10px;margin-left:5%;"> |
| | | <!--å
¶ä»æ¡ä»¶--> |
| | | <div class="layui-inline"> |
| | | <label class="layui-form-label" style="width: 76px;">ç©æåç§°</label> |
| | | <div class="layui-input-block" style="margin-left: 107px;"> |
| | | <input type="text" class="layui-input" name="HMaterName" id="HMaterName"> |
| | | </div> |
| | | </div> |
| | | <div class="layui-inline"> |
| | | <label class="layui-form-label" style="width: 85px;">è§æ ¼åå·</label> |
| | | <div class="layui-input-block" style="margin-left: 120px;"> |
| | | <input type="text" class="layui-input" name="HModel" id="HModel"> |
| | | </div> |
| | | </div> |
| | | </div> |
| | | <div class="layui-colla-content" style="padding: 0px; margin-left: 6%;"> |
| | | |
| | | <div class="layui-row" style="margin-top: 10px; margin-bottom: 10px "> |
| | | <div class="layui-inline"> |
| | | <label class="layui-form-label">è¿æ»¤</label> |
| | |
| | | <button type="button" class="layui-btn layui-btn-sm" lay-event="set_DeleteBill"><i class="layui-icon layui-icon-delete"></i>å é¤</button> |
| | | <button type="button" class="layui-btn layui-btn-sm" lay-event="get_Refresh"><i class="layui-icon layui-icon-refresh-3"></i>å·æ°</button> |
| | | <button type="button" class="layui-btn layui-btn-sm" lay-event="get_Exit"><i class="layui-icon layui-icon-logout"></i>éåº</button> |
| | | <button type="button" class="layui-btn layui-btn-sm" lay-event="set_CheckBill" id="CheckBill"><i class="layui-icon layui-icon-form"></i>å®¡æ ¸</button> |
| | | <button type="button" class="layui-btn layui-btn-sm" lay-event="set_AbandonCheck" id="AbandonCheck"><i class="layui-icon layui-icon-form"></i>åå®¡æ ¸</button> |
| | | <button type="button" class="layui-btn layui-btn-sm" lay-event="set_CloseBill" id="set_CloseBill"><i class="layui-icon layui-icon-form"></i>å
³é</button> |
| | | <button type="button" class="layui-btn layui-btn-sm" lay-event="set_CancelCloseBill" id="set_CancelCloseBill"><i class="layui-icon layui-icon-form"></i>åå
³é</button> |
| | | <!--<button type="button" class="layui-btn layui-btn-sm" lay-event="btn-view"><i class="layui-icon layui-icon-tips"></i>é¢è§</button> |
| | | <button type="button" class="layui-btn layui-btn-sm" lay-event="btn-print"><i class="layui-icon layui-icon-print"></i>æå°</button> |
| | | <button type="button" class="layui-btn layui-btn-sm" lay-event="btn-audit"><i class="layui-icon layui-icon-repeat"></i>å®¡æ ¸</button> |
| | | <button type="button" class="layui-btn layui-btn-sm" lay-event="btn-Faudit"><i class="layui-icon layui-icon-refresh"></i>åå®¡æ ¸</button>--> |
| | | <button type="button" class="layui-btn layui-btn-sm" lay-event="set_HideColumn"><i class="layui-icon layui-icon-form"></i>å设置</button> |
| | | <button type="button" class="layui-btn layui-btn-sm" lay-event="get_export" id="export"><i class="layui-icon layui-icon-export"></i>导åº</button> |
| | | </div> |
| | | </script> |
| | | </form> |
| | |
| | | //var sWhere = " 产å代ç = 'BX0002'"; |
| | | var sWhere = ""; |
| | | var option = []; |
| | | var ins; //ç¨äºå¯¼åºexcel |
| | | var HModName = "Gy_RoutingBillList"; |
| | | |
| | | //#endregion |
| | |
| | | //å·æ° |
| | | case 'get_Refresh': get_Refresh(); |
| | | break; |
| | | //å®¡æ ¸ |
| | | case 'set_CheckBill': set_CheckBill(1); |
| | | break; |
| | | //åå®¡æ ¸ |
| | | case 'set_AbandonCheck': set_CheckBill(2); |
| | | break; |
| | | //å
³é |
| | | case 'set_CloseBill': set_CloseBill(1); |
| | | break; |
| | | //åå
³é |
| | | case 'set_CancelCloseBill': set_CloseBill(2); |
| | | break; |
| | | //éåºæé® |
| | | case 'get_Exit': Pub_Close(2); |
| | | break; |
| | | //å设置 |
| | | case 'set_HideColumn': get_HideColumn(); |
| | | break; |
| | | //导åºexcel |
| | | case 'get_export': |
| | | get_Export(); |
| | | break; |
| | | }; |
| | | }); |
| | |
| | | , toolbar: '#toolbarDemo' |
| | | , height: 'full-50' |
| | | , page: true |
| | | , cellMinWidth: 90 |
| | | //, cellMinWidth: 90 |
| | | , limit: 50 |
| | | , limits: [50, 500, 5000, 20000] |
| | | , cols: [[ |
| | | { type: 'checkbox', fixed: 'left' } |
| | | /* { field: 'hmainid', title: 'hmainid', width: 110 }*/ |
| | | , { field: 'åæ®å·', title: 'åæ®å·', sort: true, width: 165 } |
| | | , { field: 'åæ®ç±»å', title: 'åæ®ç±»å' } |
| | | , { field: 'å·¥èºåç§°', title: 'å·¥èºåç§°', width: 170 } |
| | | //, { field: 'hmaterid', title: 'hmaterid', width: 165 } |
| | | , { field: 'ç©æä»£ç ', title: 'ç©æä»£ç ', width: 160 } |
| | | , { field: 'ç©æåç§°', title: 'ç©æåç§°', width: 160 } |
| | | , { field: 'è§æ ¼åå·', title: 'è§æ ¼åå·', width: 215 } |
| | | , { field: 'è§æ ¼åå·', title: 'è§æ ¼åå·', width: 160 } |
| | | , { field: '计éåä½ä»£ç ', title: '计éåä½ä»£ç ', width: 115 } |
| | | , { field: '计éåä½', title: '计éåä½' } |
| | | , { field: 'é»è®¤å·¥èº', title: 'é»è®¤å·¥èº' } |
| | | , { field: 'è¡¨å¤´å¤æ³¨', title: 'è¡¨å¤´å¤æ³¨' } |
| | | , { field: 'ç»ç»', title: 'ç»ç»' } |
| | | //, { field: 'hsubid', title: 'hsubid', width: 80 } |
| | | , { field: 'å·¥åºå·', title: 'å·¥åºå·' } |
| | | , { field: 'å§å¤æ è®°', title: 'å§å¤æ è®°' } |
| | | //, { field: 'hprocid', title: 'hprocid', width: 105 } |
| | | , { field: 'å·¥åºä»£ç ', title: 'å·¥åºä»£ç ' } |
| | | , { field: 'å·¥åº', title: 'å·¥åº' } |
| | | //, { field: 'HSupID', title: 'HSupID', width: 105 } |
| | | , { field: 'ä¾åºå代ç ', title: 'ä¾åºå代ç ' } |
| | | , { field: 'ä¾åºå', title: 'ä¾åºå' } |
| | | //, { field: 'HCenterID', title: 'HCenterID', width: 105 } |
| | | , { field: 'å·¥ä½ä¸å¿ä»£ç ', title: 'å·¥ä½ä¸å¿ä»£ç ', width: 115 } |
| | | , { field: 'å·¥ä½ä¸å¿åç§°', title: 'å·¥ä½ä¸å¿åç§°', width: 115 } |
| | | , { field: 'æ¶é´åä½', title: 'æ¶é´åä½' } |
| | | , { field: 'è¿è¡æ¶é´', title: 'è¿è¡æ¶é´' } |
| | | , { field: 'å å·¥æ°é', title: 'å å·¥æ°é' } |
| | | , { field: 'å夿¶é´', title: 'å夿¶é´' } |
| | | , { field: 'æéæ¶é´', title: 'æéæ¶é´' } |
| | | , { field: '转移æ¶é´', title: '转移æ¶é´' } |
| | | , { field: 'è¯ç', title: 'è¯ç' } |
| | | , { field: '累计è¯ç', title: '累计è¯ç' } |
| | | , { field: '表ä½å¤æ³¨', title: '表ä½å¤æ³¨' } |
| | | , { field: 'å¶å人', title: 'å¶å人' } |
| | | , { field: 'å¶åæ¥æ', title: 'å¶åæ¥æ', width: 195 } |
| | | , { field: 'å®¡æ ¸äºº', title: 'å®¡æ ¸äºº' } |
| | | , { field: 'å®¡æ ¸æ¥æ', title: 'å®¡æ ¸æ¥æ', width: 180 } |
| | | , { field: 'ä¿®æ¹äºº', title: 'ä¿®æ¹äºº' } |
| | | , { field: 'ä¿®æ¹æ¥æ', title: 'ä¿®æ¹æ¥æ', width: 180 } |
| | | , { field: 'ä½åºäºº', title: 'ä½åºäºº' } |
| | | , { field: 'ä½åºæ¥æ', title: 'ä½åºæ¥æ' } |
| | | //, { field: 'HDayWorkQty', title: 'HDayWorkQty', width: 105 } |
| | | //, { field: 'HGroupID', title: 'HGroupID', width: 105 } |
| | | //, { field: 'HWorkerID', title: 'HWorkerID', width: 105 } |
| | | //, { field: 'HSourceID', title: 'HSourceID', width: 105 } |
| | | , { field: 'å å·¥åä»·', title: 'å å·¥åä»·' } |
| | | //, { field: 'HNextProcFlag', title: 'HNextProcFlag', width: 105 } |
| | | , { field: 'ä¸éæµè½¬å·¥åº', title: 'ä¸éæµè½¬å·¥åº', width: 150 } |
| | | , { field: 'æµè½¬å·¥åº', title: 'æµè½¬å·¥åº' } |
| | | , { field: 'é»è®¤å·¥èº', title: 'é»è®¤å·¥èº' } |
| | | //, { field: 'åæ®ç±»å', title: 'åæ®ç±»å' } |
| | | ////, { field: 'hmaterid', title: 'hmaterid', width: 165 } |
| | | //, { field: 'ç»ç»', title: 'ç»ç»' } |
| | | ////, { field: 'hsubid', title: 'hsubid', width: 80 } |
| | | //, { field: 'å§å¤æ è®°', title: 'å§å¤æ è®°' } |
| | | ////, { field: 'hprocid', title: 'hprocid', width: 105 } |
| | | ////, { field: 'HSupID', title: 'HSupID', width: 105 } |
| | | //, { field: 'ä¾åºå代ç ', title: 'ä¾åºå代ç ' } |
| | | //, { field: 'ä¾åºå', title: 'ä¾åºå' } |
| | | ////, { field: 'HCenterID', title: 'HCenterID', width: 105 } |
| | | //, { field: 'æ¶é´åä½', title: 'æ¶é´åä½' } |
| | | //, { field: 'è¿è¡æ¶é´', title: 'è¿è¡æ¶é´' } |
| | | //, { field: 'å å·¥æ°é', title: 'å å·¥æ°é' } |
| | | //, { field: 'å夿¶é´', title: 'å夿¶é´' } |
| | | //, { field: 'æéæ¶é´', title: 'æéæ¶é´' } |
| | | //, { field: '转移æ¶é´', title: '转移æ¶é´' } |
| | | //, { field: 'è¯ç', title: 'è¯ç' } |
| | | //, { field: '累计è¯ç', title: '累计è¯ç' } |
| | | //, { field: '表ä½å¤æ³¨', title: '表ä½å¤æ³¨' } |
| | | //, { field: 'ä½åºäºº', title: 'ä½åºäºº' } |
| | | //, { field: 'ä½åºæ¥æ', title: 'ä½åºæ¥æ' } |
| | | ////, { field: 'HDayWorkQty', title: 'HDayWorkQty', width: 105 } |
| | | ////, { field: 'HGroupID', title: 'HGroupID', width: 105 } |
| | | ////, { field: 'HWorkerID', title: 'HWorkerID', width: 105 } |
| | | ////, { field: 'HSourceID', title: 'HSourceID', width: 105 } |
| | | //, { field: 'å å·¥åä»·', title: 'å å·¥åä»·' } |
| | | ////, { field: 'HNextProcFlag', title: 'HNextProcFlag', width: 105 } |
| | | //, { field: 'ä¸éæµè½¬å·¥åº', title: 'ä¸éæµè½¬å·¥åº', width: 150 } |
| | | //, { field: 'æµè½¬å·¥åº', title: 'æµè½¬å·¥åº' } |
| | | ]] |
| | | }; |
| | | } |
| | |
| | | success: function (data1) { |
| | | if (data1.count == 1) { |
| | | option.data = data1.data; |
| | | table.render(option); |
| | | ins = table.render(option); |
| | | layer.close(ajaxLoad); |
| | | |
| | | if ($("#Comparator").val() == 0 && $("#ColContent").val() == "") { |
| | |
| | | set_ClearQuery(); |
| | | get_Display(sWhere); |
| | | } |
| | | |
| | | //å®¡æ ¸ [1 å®¡æ ¸ã2 åå®¡æ ¸] |
| | | function set_CheckBill(num) { |
| | | var checkStatus = table.checkStatus('mainTable') |
| | | , data = checkStatus.data; |
| | | |
| | | if (data.length == 1) { |
| | | layer.confirm("确认è¦å®¡æ ¸å?", function (index) { |
| | | var wait = layer.load(); |
| | | var HInterID = data[0].hmainid; |
| | | $.ajax({ |
| | | url: GetWEBURL() + '/Gy_RoutingBill/CheckGy_RoutingBill', |
| | | type: "GET", |
| | | data: { "HInterID": HInterID, "Type": num, "user": sessionStorage["HUserName"] }, |
| | | success: function (result) { |
| | | if (result.count == 1) { |
| | | get_FastQuery(); |
| | | layer.msg(result.Message, { icon: 1 }); |
| | | layer.close(wait); |
| | | } else { |
| | | layer.alert(result.code + result.Message, { icon: 5 }); |
| | | layer.close(wait); |
| | | } |
| | | }, error: function () { |
| | | layer.alert("æ¥å£è¯·æ±å¤±è´¥!", { icon: 5 }); |
| | | layer.close(wait); |
| | | } |
| | | }); |
| | | }) |
| | | } else { |
| | | layer.msg("è¯·éæ©ä¸æ¡æ°æ®!"); |
| | | } |
| | | } |
| | | |
| | | |
| | | //å
³é [1 å
³éã2 åå
³é] |
| | | function set_CloseBill(num) { |
| | | var checkStatus = table.checkStatus('mainTable') |
| | | , data = checkStatus.data; |
| | | |
| | | if (data.length == 1) { |
| | | layer.confirm("确认è¦å
³éå?", function (index) { |
| | | var wait = layer.load(); |
| | | var HInterID = data[0].hmainid; |
| | | $.ajax({ |
| | | url: GetWEBURL() + '/Gy_RoutingBill/CloseGy_RoutingBill_1', |
| | | type: "GET", |
| | | data: { "HInterID": HInterID, "Type": num, "user": sessionStorage["HUserName"] }, |
| | | success: function (result) { |
| | | if (result.count == 1) { |
| | | layer.msg(result.Message, { icon: 1 }); |
| | | layer.close(wait); |
| | | } else { |
| | | layer.alert(result.code + result.Message, { icon: 5 }); |
| | | layer.close(wait); |
| | | } |
| | | }, error: function () { |
| | | layer.alert("æ¥å£è¯·æ±å¤±è´¥!", { icon: 5 }); |
| | | layer.close(wait); |
| | | } |
| | | }); |
| | | }) |
| | | } |
| | | else { |
| | | layer.msg("è¯·éæ©ä¸æ¡æ°æ®!"); |
| | | } |
| | | } |
| | | |
| | | |
| | | |
| | | //导åºExecel |
| | | function get_Export() { |
| | | table.exportFile(ins.config.id, option.data, "xls"); |
| | | } |
| | | |
| | | |
| | | //#endregion |
| | | //éèå设置 |
| | | function get_HideColumn() { |