| | |
| | | <script src="../../../layuiadmin/Scripts/jquery-1.4.1.js"></script> |
| | | <script src="../../../layuiadmin/Scripts/webConfig.js"></script> |
| | | <script src="../../../layuiadmin/PubCustom.js"></script> |
| | | <script src="../../../layuiadmin/HideButton.js"></script> |
| | | </head> |
| | | <body> |
| | | <div class="layui-fluid"> |
| | |
| | | <span>æ´å¤</span> |
| | | </div> |
| | | </div> |
| | | <div class="layui-inline"> |
| | | <label class="layui-form-label">å¼å§æ¥æ</label> |
| | | <div class="layui-input-block"> |
| | | <input type="date" class="layui-input" id="HDate"> |
| | | </div> |
| | | </div> |
| | | <div class="layui-inline"> |
| | | <label class="layui-form-label">ç»ææ¥æ</label> |
| | | <div class="layui-input-block"> |
| | | <input type="date" class="layui-input" id="HDate1"> |
| | | </div> |
| | | </div> |
| | | <div class="layui-inline"> |
| | | <label class="layui-form-label">åæ®å·</label> |
| | | <div class="layui-input-block"> |
| | | <input type="text" class="layui-input" name="WorkCenter" id="WorkCenter"> |
| | | </div> |
| | | </div> |
| | | <button class="layui-btn layuiadmin-btn-order" type="button" lay-submit="" lay-filter="btnSearch" id="btnSearch"> |
| | | <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-inline"> |
| | | <label class="layui-form-label">åæ®å·</label> |
| | | <div class="layui-input-block"> |
| | | <input type="text" class="layui-input" 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 class="layui-colla-content"> |
| | | <div class="layui-row"> |
| | | <div class="layui-inline"> |
| | | <div class="layui-inline"> |
| | | <span>å
¶ä»æ¡ä»¶></span> |
| | | </div> |
| | | </div> |
| | | <div class="layui-inline"> |
| | | <label class="layui-form-label">ç产车é´</label> |
| | | <label class="layui-form-label">è§æ ¼åå·</label> |
| | | <div class="layui-input-block"> |
| | | <select name="HDeptName" id="HDeptName" lay-verify="required" lay-search class="layui-input"> |
| | | |
| | | <!--å¨ææ¸²æè½¦é´--> |
| | | </select> |
| | | |
| | | <input type="text" class="layui-input" name="HModel" id="HModel"> |
| | | </div> |
| | | </div> |
| | | <div class="layui-inline"> |
| | |
| | | </div> |
| | | </div> |
| | | <div class="layui-inline"> |
| | | <label class="layui-form-label">åæ®ç±»å</label> |
| | | <div class="layui-input-block"> |
| | | <input type="text" class="layui-input" name="HBillType" id="HBillType"> |
| | | <label class="layui-form-label">æ¯å¦ä¸æ¨çææµè½¬å¡</label> |
| | | <div class="layui-input-block" style="margin-top:10px"> |
| | | <select name="HSF" id="HSF" lay-verify="required" lay-search class="layui-input"> |
| | | <!-- <option value="å
¨é¨">å
¨é¨</option>--> |
| | | <option value="å
¨é¨" selected="selected">å
¨é¨</option> |
| | | <option value="已䏿¨">已䏿¨</option> |
| | | <option value="æªä¸æ¨">æªä¸æ¨</option> |
| | | </select> |
| | | </div> |
| | | </div> |
| | | </div> |
| | | <div class="layui-row"> |
| | | <div class="layui-inline"> |
| | | <label class="layui-form-label">ç©æç¼ç </label> |
| | | <div class="layui-input-block"> |
| | |
| | | </div> |
| | | </div> |
| | | <div class="layui-inline"> |
| | | <label class="layui-form-label">å¯ä¸ID</label> |
| | | <label class="layui-form-label">ç产车é´</label> |
| | | <div class="layui-input-block"> |
| | | <input type="text" class="layui-input" name="HERPID" id="HERPID"> |
| | | <select name="HDeptName" id="HDeptName" lay-verify="required" lay-search class="layui-input"> |
| | | |
| | | <!--å¨ææ¸²æè½¦é´--> |
| | | </select> |
| | | </div> |
| | | </div> |
| | | <div class="layui-inline"> |
| | | <label class="layui-form-label">æ¯å¦ä¸æ¨çææµè½¬å¡</label> |
| | | <label class="layui-form-label">åæ®å·</label> |
| | | <div class="layui-input-block"> |
| | | <select name="HSF" id="HSF" lay-verify="required" lay-search class="layui-input"> |
| | | <!-- <option value="å
¨é¨">å
¨é¨</option>--> |
| | | <option value="已䏿¨">已䏿¨</option> |
| | | <option value="æªä¸æ¨">æªä¸æ¨</option> |
| | | <option value="å
¨é¨">å
¨é¨</option> |
| | | </select> |
| | | <input type="text" class="layui-input" name="WorkCenter" id="WorkCenter"> |
| | | </div> |
| | | </div> |
| | | <button class="layui-btn layuiadmin-btn-order" style="display:none;" type="button" lay-submit="" lay-filter="btnSearch" id="btnSearch"> |
| | | <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;display:none;">éç½®</button> |
| | | </div> |
| | | <div class="layui-colla-content"> |
| | | <div class="layui-row"> |
| | | <div class="layui-inline"> |
| | | <label class="layui-form-label">åæ®ç±»å</label> |
| | | <div class="layui-input-block"> |
| | | <input type="text" class="layui-input" name="HBillType" id="HBillType"> |
| | | </div> |
| | | </div> |
| | | |
| | | <div class="layui-inline"> |
| | | <label class="layui-form-label">å¯ä¸ID</label> |
| | | <div class="layui-input-block"> |
| | | <input type="text" class="layui-input" name="HERPID" id="HERPID"> |
| | | </div> |
| | | </div> |
| | | </div> |
| | | <div class="layui-row" style="margin-top:5px"> |
| | | <div class="layui-inline"> |
| | | <label class="layui-form-label">è¿æ»¤</label> |
| | | <div class="layui-input-block"> |
| | | <select name="ColName" id="ColName" lay-filter="ColName" style="width:190px;"> |
| | | </select> |
| | | </div> |
| | | </div> |
| | | <div class="layui-inline"> |
| | | <select name="Comparator" id="Comparator" lay-filter="Comparator" style="width:190px;"> |
| | | <option value="0" selected="selected"></option> |
| | | <option value="=">=</option> |
| | | <option value=">=">>=</option> |
| | | <option value=">">></option> |
| | | <option value="<="><=</option> |
| | | <option value="<"><</option> |
| | | <option value="<>"><></option> |
| | | <option value="7">å
å«</option> |
| | | <option value="8">å·¦å
å«</option> |
| | | <option value="9">å³å
å«</option> |
| | | <option value="10">ä¸å
å«</option> |
| | | </select> |
| | | </div> |
| | | <div class="layui-inline"> |
| | | <input type="text" class="layui-input" value="" name="ColContent" id="ColContent"> |
| | | </div> |
| | | </div> |
| | | <div class="layui-row" style="margin-top:5px"> |
| | | <div class="layui-inline"> |
| | | <label class="layui-form-label">åæ®å·</label> |
| | | <div class="layui-input-block"> |
| | | <input type="text" class="layui-input" 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 class="layui-inline"> |
| | | <label class="layui-form-label">å¼å§æ¥æ</label> |
| | | <div class="layui-input-block"> |
| | | <input type="date" class="layui-input" id="HDate"> |
| | | </div> |
| | | </div> |
| | | <div class="layui-inline"> |
| | | <label class="layui-form-label">ç»ææ¥æ</label> |
| | | <div class="layui-input-block"> |
| | | <input type="date" class="layui-input" id="HDate1"> |
| | | </div> |
| | | </div> |
| | | </div> |
| | | </div> |
| | |
| | | </div> |
| | | <table class="" id="mainTable" lay-filter="mainTable"></table> |
| | | <script type="text/html" id="toolbarDemo"> |
| | | <div class="layui-btn-container"> |
| | | <!--<div class="layui-btn-container"> |
| | | <button type="button" class="layui-btn layui-btn-sm" lay-event="set_ShowBill"><i class="layui-icon layui-icon-form"></i>䏿¨</button> |
| | | <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-view"><i class="layui-icon layui-icon-tips"></i>é¢è§</button> |
| | | <button type="button" class="layui-btn layui-btn-sm" lay-event="get-print"><i class="layui-icon layui-icon-print"></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_HideColumn"><i class="layui-icon layui-icon-form"></i>å设置</button> |
| | | <button type="button" class="layui-btn layui-btn-sm" lay-event="set_ShowBill_pl"><i class="layui-icon layui-icon-form"></i>æ¹é䏿¨</button> |
| | | <button type="button" class="layui-btn layui-btn-sm" lay-event="set_ShowBill_dh"><i class="layui-icon layui-icon-form"></i>å¤è¡ä¸æ¨</button> |
| | | <button type="button" class="layui-btn layui-btn-sm" lay-event="set_AddNew"><i class="layui-icon layui-icon-file-b"></i>æ°å¢</button> |
| | | <button type="button" class="layui-btn layui-btn-sm" lay-event="set_Edit"><i class="layui-icon layui-icon-form"></i>ç¼è¾</button> |
| | | <button type="button" class="layui-btn layui-btn-sm" lay-event="set_copy"><i class="layui-icon layui-icon-form"></i>å¤å¶</button> |
| | | <button type="button" class="layui-btn layui-btn-sm" lay-event="set_AddNew_NT"><i class="layui-icon layui-icon-file-b"></i>æ°å¢(æ å表)</button> |
| | | <button type="button" class="layui-btn layui-btn-sm" lay-event="set_Edit_NT"><i class="layui-icon layui-icon-form"></i>ç¼è¾(æ å表)</button> |
| | | <button type="button" class="layui-btn layui-btn-sm" lay-event="set_copy_NT"><i class="layui-icon layui-icon-form"></i>å¤å¶(æ å表)</button> |
| | | <button type="button" class="layui-btn layui-btn-sm" lay-event="set_CheckBill"><i class="layui-icon layui-icon-form"></i>å®¡æ ¸</button> |
| | | <button type="button" class="layui-btn layui-btn-sm" lay-event="set_AbandonCheck"><i class="layui-icon layui-icon-form"></i>åå®¡æ ¸</button> |
| | | <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="set_Xc"><i class="layui-icon layui-icon-form"></i>䏿¥</button>--> |
| | | <!--<button type="button" class="layui-btn layui-btn-sm" lay-event="set_Excel"><i class="layui-icon layui-icon-file-b"></i>Excel导å
¥</button>--> |
| | | <!--<button type="button" class="layui-btn layui-btn-sm" lay-event="get-view"><i class="layui-icon layui-icon-tips"></i>é¢è§</button> |
| | | <button type="button" class="layui-btn layui-btn-sm" lay-event="get-print"><i class="layui-icon layui-icon-print"></i>æå°</button>--> |
| | | <div class="layui-btn-container" id="HideButtonList"> |
| | | <button type="button" class="layui-btn layui-btn-sm" style="display:none;" lay-event="set_ShowBill" id="ShowBill"><i class="layui-icon layui-icon-form"></i>䏿¨</button> |
| | | <button type="button" class="layui-btn layui-btn-sm" style="display:none;" 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="get_Exit" id="Exits"><i class="layui-icon layui-icon-logout"></i>éåº</button> |
| | | <button type="button" class="layui-btn layui-btn-sm" style="display:none;" lay-event="set_HideColumn" id="HideColumn"><i class="layui-icon layui-icon-form"></i>å设置</button> |
| | | <button type="button" class="layui-btn layui-btn-sm" style="display:none;" lay-event="set_ShowBill_pl" id="ShowBill_pl"><i class="layui-icon layui-icon-form"></i>æ¹é䏿¨</button> |
| | | <button type="button" class="layui-btn layui-btn-sm" style="display:none;" lay-event="set_ShowBill_dh"><i class="layui-icon layui-icon-form"></i>å¤è¡ä¸æ¨</button> |
| | | <button type="button" class="layui-btn layui-btn-sm" style="display:none;" lay-event="set_AddNew" id="AddNew"><i class="layui-icon layui-icon-file-b"></i>æ°å¢</button> |
| | | <button type="button" class="layui-btn layui-btn-sm" style="display:none;" lay-event="set_Edit" id="Edit"><i class="layui-icon layui-icon-form"></i>ç¼è¾</button> |
| | | <button type="button" class="layui-btn layui-btn-sm" style="display:none;" lay-event="set_copy" id="copy"><i class="layui-icon layui-icon-form"></i>å¤å¶</button> |
| | | <button type="button" class="layui-btn layui-btn-sm" style="display:none;" lay-event="set_AddNew_NT" id="AddNew_NT"><i class="layui-icon layui-icon-file-b"></i>æ°å¢(æ å表)</button> |
| | | <button type="button" class="layui-btn layui-btn-sm" style="display:none;" lay-event="set_Edit_NT" id="Edit_NT"><i class="layui-icon layui-icon-form"></i>ç¼è¾(æ å表)</button> |
| | | <button type="button" class="layui-btn layui-btn-sm" style="display:none;" lay-event="set_copy_NT" id="copy_NT"><i class="layui-icon layui-icon-form"></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> |
| | | <button type="button" class="layui-btn layui-btn-sm" style="display:none;" 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" style="display:none;" 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" style="display:none;" lay-event="set_DeleteBill" id="DeleteBill"><i class="layui-icon layui-icon-delete"></i>å é¤</button> |
| | | <button type="button" class="layui-btn layui-btn-sm" style="display:none;" lay-event="set_Xc"><i class="layui-icon layui-icon-form"></i>䏿¥</button> |
| | | <!--<button type="button" class="layui-btn layui-btn-sm" style="display:none;" lay-event="set_Excel" id="Excel"><i class="layui-icon layui-icon-file-b"></i>Excel导å
¥</button>--> |
| | | <button type="button" class="layui-btn layui-btn-sm" style="display:none;" lay-event="get-view" id="view"><i class="layui-icon layui-icon-tips"></i>é¢è§</button> |
| | | <button type="button" class="layui-btn layui-btn-sm" style="display:none;" lay-event="get-print" id="print"><i class="layui-icon layui-icon-print"></i>æå°</button> |
| | | <button type="button" class="layui-btn layui-btn-sm" style="display:none;" lay-event="get_export" id="export"><i class="layui-icon layui-icon-export"></i>导åº</button> |
| | | <button type="button" class="layui-btn layui-btn-sm" style="display:none;" lay-event="set_HideButton" id="HideButton"><i class="layui-icon layui-icon-form"></i>æé®è®¾ç½®</button> |
| | | <button type="button" class="layui-btn layui-btn-sm" lay-event="btn-FirstPieceCheck" id="btn-FirstPieceCheck">馿£</button> |
| | | </div> |
| | | </script> |
| | | </form> |
| | |
| | | var sWhere = ""; |
| | | var sWhere = ""; |
| | | var HModName = "Sc_ICMOBillList"; |
| | | var HDeptID = 0; |
| | | |
| | | var params = getUrlVars(); |
| | | var HDeptID = params[params[0]]; |
| | | |
| | | var option = []; |
| | | var ins; //ç¨äºå¯¼åºexcel |
| | | //夿æ¯å¦æåæ°ä¼ é |
| | | |
| | | |
| | | //åå§åè¡¨æ ¼ |
| | | DisPlay_HideColumn(); |
| | | //åå§åçé¢ |
| | | set_ClearBill(); |
| | | |
| | | //è·å车é´å |
| | | var HDeptName = '<option value="0" style="color:red;" selected>å
¨é¨è½¦é´</option>'; |
| | | $.ajax({ |
| | | type: "get", |
| | | url: GetWEBURL() + "/Sc_ICMOBill/GetHDeptList", |
| | | async: false, |
| | | data: { "HOrgID": sessionStorage["OrganizationID"] }, |
| | | success: function (result) { |
| | | if (result.count == 1) { // 说æéªè¯æåäºï¼ |
| | | var data = result.data; |
| | | for (var i = 0; i < data.length; i++) { |
| | | if (i == 0) |
| | | HDeptName += '<option style="color:blue;" value="' + data[i].HItemID + '" >' + data[i].HName + '</option>'; |
| | | else |
| | | HDeptName += '<option style="color:blue;" value="' + data[i].HItemID + '">' + data[i].HName + '</option>'; |
| | | if (sessionStorage["OrganizationID"] == 100014) { |
| | | HDeptName += '<option style="color:blue;" value="2679633" >æ°´ç®±ä¸æ¡æµ</option>'; |
| | | HDeptName += '<option style="color:blue;" value="1592361" >é¨ä»¶æ²¹å·å¨å·´</option>'; |
| | | HDeptName += '<option style="color:blue;" value="1592371" >å°è½¦è£
è¯å·´</option>'; |
| | | HDeptName += '<option style="color:blue;" value="1592374" >å°è½¦æ»æå·´</option>'; |
| | | HDeptName += '<option style="color:blue;" value="1743766" >å¡è½¦è£
è¯å·´</option>'; |
| | | HDeptName += '<option style="color:blue;" value="1743767" >å¡è½¦æ»æå·´</option>'; |
| | | HDeptName += '<option style="color:blue;" value="2679647" >å¡è½¦æ°´ç®±ä¸æ¡æµ</option>'; |
| | | } else { |
| | | for (var i = 0; i < data.length; i++) { |
| | | if (i == 0) |
| | | HDeptName += '<option style="color:blue;" value="' + data[i].HItemID + '" >' + data[i].HName + '</option>'; |
| | | else |
| | | HDeptName += '<option style="color:blue;" value="' + data[i].HItemID + '">' + data[i].HName + '</option>'; |
| | | |
| | | } |
| | | } |
| | | $("#HDeptName").append(HDeptName); |
| | | if (!isNaN(HDeptID)) { |
| | | $("#HDeptName").val(HDeptID); |
| | | } |
| | | form.render('select'); |
| | | } |
| | | layer.closeAll("loading"); |
| | | } |
| | | }) |
| | | |
| | | //åå§åçé¢ |
| | | set_ClearBill(); |
| | | //#endregion |
| | | |
| | | |
| | |
| | | //䏿¨ |
| | | case 'set_ShowBill': set_ShowBill(); |
| | | break; |
| | | //æ¹é䏿¨ |
| | | case 'set_ShowBill_pl': set_ShowBill_pl(); //set_ShowBill_pl |
| | | break; |
| | | //å¤è¡ä¸æ¨ |
| | | case 'set_ShowBill_dh': set_ShowBill_dh(); |
| | | break; |
| | | //æ°å¢ |
| | | case 'set_AddNew': set_AddNew(); |
| | | break; |
| | | //ç¼è¾ |
| | | case 'set_Edit': set_Edit(); |
| | | break; |
| | | //å¤å¶ |
| | | case 'set_copy': set_copy(); |
| | | break; |
| | | //æ°å¢(æ å表) |
| | | case 'set_AddNew_NT': set_AddNew_NT(); |
| | | break; |
| | | //ç¼è¾(æ å表) |
| | | case 'set_Edit_NT': set_Edit_NT(); |
| | | break; |
| | | //å¤å¶(æ å表) |
| | | case 'set_copy_NT': set_copy_NT(); |
| | | break; |
| | | //å®¡æ ¸ |
| | | case 'set_CheckBill': set_CheckBill(); |
| | | break; |
| | | //åå®¡æ ¸ |
| | | case 'set_AbandonCheck': set_AbandonCheck(); |
| | | break; |
| | | //å
³é |
| | | case 'set_CloseBill': set_CloseBill(); |
| | | break; |
| | | //åå
³é |
| | | case 'set_CancelCloseBill': set_CancelCloseBill(); |
| | | break; |
| | | //å é¤ |
| | | case 'set_DeleteBill': set_DeleteBill(); |
| | | break; |
| | | //䏿¥ |
| | | case 'set_Xc': set_Xc(); |
| | | break; |
| | | //导å
¥ |
| | | case 'set_Excel': set_Excel(); |
| | | break; |
| | | case 'get-view': get_ViewReport(); |
| | | break; |
| | |
| | | //å设置 |
| | | case 'set_HideColumn': |
| | | get_HideColumn(); |
| | | break; |
| | | //导åºexcel |
| | | case 'get_export': |
| | | get_Export(); |
| | | break; |
| | | //æé®è®¾ç½® |
| | | case 'set_HideButton': |
| | | var btns = document.getElementsByTagName("button"); //è·åæ¬é¡µæææé®å¯¹è±¡ |
| | | var HBillType = "3710"; |
| | | get_HideButton(btns, HBillType, HModName, sessionStorage["HUserName"]); |
| | | break; |
| | | //馿£ |
| | | case 'btn-FirstPieceCheck': set_FirstPieceCheck(); |
| | | break; |
| | | }; |
| | | }); |
| | |
| | | get_FastQuery(); |
| | | }); |
| | | |
| | | //è¡çå¬äºä»¶ |
| | | table.on('row(mainTable)', function (obj) { |
| | | var flag = !obj.tr.find(':checkbox:first').prop('checked'); |
| | | obj.tr.find(':checkbox').prop('checked', flag); |
| | | if (flag) { |
| | | obj.tr.find('.layui-form-checkbox').addClass('layui-form-checked'); //设置å¤éæ¡é䏿 ·å¼ |
| | | $(obj.tr.selector).attr({ "style": "background:#ceedfa;color:black" });//æ¹åå½åtrèæ¯é¢è²ååä½é¢è² |
| | | } else { |
| | | obj.tr.find('.layui-form-checkbox').removeClass('layui-form-checked');//åæ¶å¤éæ¡é䏿 ·å¼ |
| | | $(obj.tr.selector).attr({ "style": "background:" });//åæ¶å½åtré¢è² |
| | | } |
| | | //mainTable ä¸ºè¡¨æ ¼ID æ³¨ææ¤å¤å¦æID䏿£ç¡®å°å¯¼è´ä½ å¨çå¬å¤éæ¡æ¶è·åä¸å°ä½ éæ©çæ°æ®ï¼åé¢çåªæ¯æ·»å æå é¤é䏿ªé䏿 ·å¼ä»¥åè®¾ç½®èæ¯è²ï¼åä½é¢è² |
| | | layui.each(table.cache.mainTable, function (i, l) { |
| | | if (obj.tr.index() == l.LAY_TABLE_INDEX) { |
| | | l.LAY_CHECKED = flag; |
| | | } |
| | | }); |
| | | }); |
| | | |
| | | //#region åå§åçé¢ |
| | | function set_ClearBill() { |
| | | //åå§åè¡¨æ ¼ |
| | | set_InitGrid(); |
| | | //æ¥è¯¢ |
| | | get_FastQuery(); |
| | | |
| | | } |
| | | //#endregion |
| | | |
| | |
| | | , toolbar: '#toolbarDemo' |
| | | , height: 'full-50' |
| | | , page: true |
| | | , cellMinWidth: 90 |
| | | , cellMinWidth: 'auto' |
| | | , totalRow: true |
| | | , limit: 50 |
| | | , limits: [50, 500, 5000, 20000] |
| | | , cols: [[ |
| | | { type: 'checkbox', fixed: 'left' } |
| | | , { field: 'hmainid', title: 'hmainid', sort: true, width: 165, hide: true } |
| | | , { field: 'HEntryID', title: 'HEntryID', sort: true, width: 165, hide: true } |
| | | , { field: 'åæ®å·', title: 'åæ®å·', sort: true, width: 170 } |
| | | , { field: 'ç¶æ', title: 'ç¶æ', sort: true, width: 170 } |
| | | , { field: 'å¯ä¸ID', title: 'å¯ä¸ID', sort: true, width: 170 } |
| | | , { field: 'æ¯å¦ä¸æ¨çææµè½¬å¡', title: 'æ¯å¦ä¸æ¨çææµè½¬å¡', sort: true, width: 170 } |
| | | { type: 'checkbox', fixed: 'left', totalRowText: 'å计' } |
| | | , { field: 'hmainid', title: 'hmainid', sort: true, hide: true } |
| | | , { field: 'HEntryID', title: 'HEntryID', sort: true, hide: true } |
| | | , { field: 'æ¥æ', title: 'æ¥æ' } |
| | | , { field: '产å代ç ', title: '产å代ç ', width: 160 } |
| | | , { field: '产ååç§°', title: '产ååç§°', width: 160 } |
| | | , { field: 'è§æ ¼åå·', title: 'è§æ ¼åå·', width: 215 } |
| | | , { field: 'ç产车é´ä»£ç ', title: 'ç产车é´ä»£ç ', width: 115 } |
| | | , { field: 'ç产车é´', title: 'ç产车é´', width: 115 } |
| | | , { field: 'ç产任å¡åæ°é', title: 'çäº§è®¢åæ°é', width: 115 } |
| | | , { field: '计éåä½ä»£ç ', title: '计éåä½ä»£ç ', width: 115 } |
| | | , { field: 'åæ®å·', title: 'åæ®å·', sort: true } |
| | | , { field: '产å代ç ', title: '产å代ç ' } |
| | | , { field: '产ååç§°', title: '产ååç§°' } |
| | | , { field: '客æ·', title: '客æ·' } |
| | | , { field: 'ä¸å¡å', title: 'ä¸å¡å' } |
| | | , { field: 'HWidth', title: 'é¨å¹
' } |
| | | , { field: 'è§æ ¼åå·', title: 'è§æ ¼åå·' } |
| | | , { field: 'ç产任å¡åæ°é', title: 'çäº§è®¢åæ°é', totalRow: true } |
| | | , { field: '计éåä½', title: '计éåä½' } |
| | | , { field: 'æ¯å¦ä¸æ¨çææµè½¬å¡', title: 'æ¯å¦ä¸æ¨çææµè½¬å¡', sort: true } |
| | | , { field: 'æ¯å¦ååºå', title: 'æ¯å¦ååºå', sort: true } |
| | | , { field: 'å¶å人', title: 'å¶å人' } |
| | | , { field: 'å¶åæ¥æ', title: 'å¶åæ¥æ' } |
| | | , { field: 'ç¶æ', title: 'ç¶æ', sort: true } |
| | | //, { field: '计éåä½ä»£ç ', title: '计éåä½ä»£ç ', width: 115 } |
| | | , { field: 'HAuxQty', title: 'è¾
æ°é' } |
| | | , { field: 'HAuxUnitName', title: 'è¾
å©åä½' } |
| | | , { field: '计åå¼å·¥æ¥æ', title: '计åå¼å·¥æ¥æ' } |
| | | , { field: '计åå®å·¥æ¥æ', title: '计åå®å·¥æ¥æ' } |
| | | , { field: 'æè¿å¼å·¥æ¥æ', title: 'æè¿å¼å·¥æ¥æ' } |
| | | , { field: 'æè¿å®å·¥æ¥æ', title: 'æè¿å®å·¥æ¥æ' } |
| | | , { field: 'é½å¥æ°é', title: 'é½å¥æ°é' } |
| | | , { field: '计åç产æ°é', title: '计åç产æ°é' } |
| | | , { field: 'å
³èæ°é', title: 'å
³èæ°é' } |
| | | , { field: 'æªå
³èæ°é', title: 'æªå
³èæ°é' } |
| | | , { field: 'è¡¨å¤´å¤æ³¨', title: 'è¡¨å¤´å¤æ³¨' } |
| | | , { field: 'å¶å人', title: 'å¶å人' } |
| | | , { field: 'å¶åæ¥æ', title: 'å¶åæ¥æ' } |
| | | , { field: 'å®¡æ ¸äºº', title: 'å®¡æ ¸äºº' } |
| | | , { field: 'å®¡æ ¸æ¥æ', title: 'å®¡æ ¸æ¥æ' } |
| | | , { field: 'ä¿®æ¹äºº', title: 'ä¿®æ¹äºº' } |
| | | , { field: 'ä¿®æ¹æ¥æ', title: 'ä¿®æ¹æ¥æ' } |
| | | , { field: 'å
³é人', title: 'å
³é人' } |
| | | , { field: 'å
³éæ¥æ', title: 'å
³éæ¥æ' } |
| | | , { field: 'å¯ä¸ID', title: 'å¯ä¸ID', sort: true, } |
| | | , { field: 'ç产车é´ä»£ç ', title: 'ç产车é´ä»£ç ' } |
| | | , { field: 'ç产车é´', title: 'ç产车é´', } |
| | | , { field: 'å
è£
æ è¯ä»£ç ', title: 'å
è£
æ è¯ä»£ç ' } |
| | | , { field: 'å
è£
æ è¯', title: 'å
è£
æ è¯', } |
| | | , { field: 'é½å¥æ°é', title: 'é½å¥æ°é' } |
| | | , { field: '计åç产æ°é', title: '计åç产æ°é' } |
| | | , { field: 'å
³èæ°é', title: 'å
³èæ°é' } |
| | | , { field: 'æªå
³èæ°é', title: 'æªå
³èæ°é' } |
| | | , { field: 'è¡¨å¤´å¤æ³¨', title: 'è¡¨å¤´å¤æ³¨' } |
| | | //, { field: 'ä½åºäºº', title: 'ä½åºäºº', hide: true } |
| | | //, { field: 'ä½åºæ¥æ', title: 'ä½åºæ¥æ', hide: true } |
| | | //, { field: 'éå®è®¢åæ¥æ', title: 'éå®è®¢åæ¥æ', sort: true, width: 120, hide: true } |
| | | |
| | | , { field: 'éå®è®¢åæ¥æ', title: 'éå®è®¢åæ¥æ', sort: true, width: 200 } |
| | | , { field: 'éå®è®¢åç¼å·', title: 'éå®è®¢åç¼å·', sort: true, width: 200 } |
| | | , { field: 'éå®ç©æåç§°', title: 'éå®ç©æåç§°', sort: true, width: 200 } |
| | | , { field: 'å
è£
æ¹å¼', title: 'å
è£
æ¹å¼', sort: true, width: 150 } |
| | | , { field: 'é宿°é', title: 'é宿°é', sort: true, width: 150 } |
| | | , { field: 'éå®è®¢åè系人', title: 'éå®è®¢åè系人', sort: true, width: 150 } |
| | | , { field: 'ä¸å¡ç¶æ', title: 'ä¸å¡ç¶æ', sort: true, width: 150 } |
| | | , { field: 'éå®è®¢åæ¥æ', title: 'éå®è®¢åæ¥æ', sort: true } |
| | | , { field: 'éå®è®¢åå·', title: 'éå®è®¢åå·', sort: true } |
| | | , { field: 'éå®ç©æåç§°', title: 'éå®ç©æåç§°', sort: true } |
| | | , { field: 'å
è£
æ¹å¼', title: 'å
è£
æ¹å¼', sort: true } |
| | | , { field: 'é宿°é', title: 'é宿°é', sort: true } |
| | | , { field: 'éå®è®¢åè系人', title: 'éå®è®¢åè系人', sort: true } |
| | | , { field: 'ä¸å¡ç¶æ', title: 'ä¸å¡ç¶æ', sort: true } |
| | | //, { field: '订åè·è¸ªå·', title: '订åè·è¸ªå·', sort: true, width: 120, hide: true } |
| | | //, { field: 'HDeptID', title: 'HDeptID', hide: true} |
| | | //, { field: 'HMaterID', title: 'HMaterID', hide: true } |
| | | //, { field: 'hunitid', title: 'hunitid', hide: true } |
| | | //, { field: 'hempid', title: 'hempid' , hide: true} |
| | | //, { field: 'ä¸å¡å代ç ', title: 'ä¸å¡å代ç ', width: 100, hide: true} |
| | | //, { field: 'ä¸å¡å', title: 'ä¸å¡å', hide: true} |
| | | |
| | | //, { field: 'hcusid', title: 'hcusid', hide: true } |
| | | //, { field: '客æ·ä»£ç ', title: '客æ·ä»£ç ', hide: true } |
| | | //, { field: '客æ·', title: '客æ·', hide: true } |
| | | |
| | | //, { field: 'HCenterID', title: 'HCenterID' , hide: true} |
| | | //, { field: 'å·¥ä½ä¸å¿ä»£ç ', title: 'å·¥ä½ä¸å¿ä»£ç ', hide: true} |
| | | //, { field: 'å·¥ä½ä¸å¿', title: 'å·¥ä½ä¸å¿', hide: true} |
| | | //, { field: 'hbomid', title: 'hbomid' , hide: true} |
| | | //, { field: 'BOMåç¼ç ', title: 'BOMåç¼ç ', hide: true } |
| | | //, { field: 'HRoutingInterID', title: 'HRoutingInterID' , hide: true} |
| | | //, { field: 'å·¥èºè·¯çº¿ä»£ç ', title: 'å·¥èºè·¯çº¿ä»£ç ', hide: true } |
| | | //, { field: 'å·¥èºè·¯çº¿', title: 'å·¥èºè·¯çº¿', hide: true} |
| | | , { field: 'å·¥èºè·¯çº¿ä»£ç ', title: 'å·¥èºè·¯çº¿ä»£ç ' } |
| | | , { field: 'å·¥èºè·¯çº¿', title: 'å·¥èºè·¯çº¿' } |
| | | //, { field: 'hsubid', title: 'hsubid' , hide: true} |
| | | //, { field: 'æºååå·', title: 'æºååå·', hide: true} |
| | | //, { field: 'æºå主å
ç ', title: 'æºå主å
ç ', hide: true} |
| | |
| | | success: function (data1) { |
| | | if (data1.count == 1) { |
| | | option.data = data1.data; |
| | | table.render(option); |
| | | ins = table.render(option); |
| | | layer.close(ajaxLoad); |
| | | //layer.alert("æ¥è¯¢æå", { icon: 1 }); |
| | | |
| | | //å·æ°æé®æ¾ç¤º |
| | | var btns = document.getElementsByTagName("button"); //è·åæ¬é¡µæææé®å¯¹è±¡ |
| | | var HBillType = "3710"; |
| | | Display_HideButton(btns, HBillType, HModName, sessionStorage["HUserName"]); |
| | | |
| | | if ($("#Comparator").val() == 0 && $("#ColContent").val() == "") { |
| | | ColFilter(); |
| | | } |
| | | layer.close(ajaxLoad); |
| | | } else { |
| | | layer.close(ajaxLoad); |
| | | layer.alert(data1.code + data1.Message, { icon: 5 }); |
| | |
| | | |
| | | //#region å¿«éè¿æ»¤ |
| | | function get_FastQuery() { |
| | | var HDate = $("#HDate").val();;//å¼å§æ¥æ |
| | | var HDate = $("#HDate").val();;//å¼å§æ¥æ |
| | | var HDate1 = $("#HDate1").val();//ç»ææ¥æ |
| | | var HOrderProcNO = $("#HOrderProcNO").val();//订åè·è¸ªå· |
| | | var WorkCenter = $("#WorkCenter").val();//åæ®å· |
| | |
| | | var HStatus = $("#HStatus").val();//åæ®å· |
| | | var HBillType = $("#HBillType").val();//åæ®ç±»å |
| | | var HSF = $("#HSF").val();//åæ®ç±»å |
| | | var HModel = $("#HModel").val();//è§æ ¼åå· |
| | | var ColName = $("#ColName").val();//å¤éæ¡ |
| | | var Comparator = $("#Comparator").val() |
| | | var ColContent = $("#ColContent").val(); |
| | | |
| | | if (ColName != 0 && Comparator != 0) { |
| | | var com = ""; |
| | | switch (Comparator) { |
| | | case "7": |
| | | com = "like'%" + ColContent + "%'"; |
| | | break; |
| | | case "8": |
| | | com = "like'%" + ColContent + "'"; |
| | | break; |
| | | case "9": |
| | | com = "like'" + ColContent + "%'"; |
| | | break; |
| | | case "10": |
| | | com = "not like'%" + ColContent + "%'"; |
| | | break; |
| | | default: |
| | | com = "" + Comparator + "'" + ColContent + "'"; |
| | | break; |
| | | } |
| | | sWhere += " and " + ColName + " " + com; |
| | | } |
| | | |
| | | //ä¼ éçåæ°ä¸ä¸ºNAN |
| | | if (!isNaN(HDeptID) && HDeptName == 0) { |
| | | HDeptName = HDeptID; |
| | | } |
| | | if (!isNaN(HDeptID)) { |
| | | HStatus = "å¼å·¥"; |
| | | } |
| | | |
| | | if (HSF) {//夿æå°ç¶æ |
| | | if (HSF == "å
¨é¨") { |
| | | sWhere = ""; |
| | | sWhere += ""; |
| | | } |
| | | if (HSF == "已䏿¨") { |
| | | sWhere = " and æ¯å¦ä¸æ¨çææµè½¬å¡ like '%" + HSF + "%' "; |
| | | sWhere += " and æ¯å¦ä¸æ¨çææµè½¬å¡ like '%" + HSF + "%' "; |
| | | } |
| | | if (HSF == "æªä¸æ¨") { |
| | | sWhere = " and æ¯å¦ä¸æ¨çææµè½¬å¡ like '%" + HSF + "%' "; |
| | | sWhere += " and æ¯å¦ä¸æ¨çææµè½¬å¡ like '%" + HSF + "%' "; |
| | | } |
| | | } |
| | | if (HDate) { |
| | |
| | | if (HMaterName) { |
| | | sWhere += " and 产å代ç like '%" + HMaterName + "%'"; |
| | | } |
| | | if (HDeptName && HDeptName!=0) { |
| | | sWhere += " and HDeptID = " + HDeptName ; |
| | | if (HDeptName && HDeptName != 0) { |
| | | sWhere += " and HDeptID = " + HDeptName; |
| | | } |
| | | if (HStatus && HStatus != 0) { |
| | | sWhere += " and ç¶æ like '%" + HStatus + "%'"; |
| | |
| | | } |
| | | if (HErpID) { |
| | | sWhere += " and å¯ä¸ID like '%" + HErpID + "%'"; |
| | | } |
| | | if (HModel) { |
| | | sWhere += " and è§æ ¼åå· like '%" + HModel + "%'"; |
| | | } |
| | | //if (HSF) { |
| | | // sWhere += " and æ¯å¦ä¸æ¨çææµè½¬å¡ like '%" + HSF + "%'"; |
| | |
| | | $("#HDate1").val(Format(new Date(), "yyyy-MM-dd"));;//ç»ææ¥æ |
| | | $("#HOrderProcNO").val("");//订åè·è¸ªå· |
| | | $("#WorkCenter").val("");//åæ®å· |
| | | $("#HDeptName").val("");//åæ®å· |
| | | $("#HDeptName").val("0");//åæ®å· |
| | | $("#HMaterName").val("");//åæ®å· |
| | | $("#HDeptName").val("");//åæ®å· |
| | | $("#HStatus").val("");//åæ®å· |
| | | $("#HStatus").val("å¼å·¥");//åæ®å· |
| | | $("#HModel").val("");//è§æ ¼åå· |
| | | $("#btnSearch").click(); |
| | | $("#ColContent").val(""); |
| | | $("#ColName").val("0"); |
| | | $("#Comparator").val("0"); |
| | | form.render('select'); |
| | | sWhere = ""; |
| | | } |
| | | //#endregion |
| | |
| | | // layer.alert("æ¥å£è¯·æ±å¤±è´¥!", { icon: 5 }); |
| | | // } |
| | | //}); |
| | | //ç¼è¾åæ® |
| | | |
| | | //䏿¨åæ® |
| | | function set_ShowBill() { |
| | | var checkStatus = table.checkStatus('mainTable') |
| | | , data = checkStatus.data; |
| | | if (data.length != 0) { |
| | | |
| | | for (var i = 0; i < data.length; i++) { |
| | | var linterid = data[i].hmainid.toString(); |
| | | var HEntryID = data[i].HEntryID.toString(); |
| | | layer.open({ |
| | | type: 2 |
| | | , area: ['100%', '100%'] |
| | | , title: 'å·¥åºæµè½¬å¡-ç¼è¾' |
| | | , shift: 0//å¼¹åºå¨ç» |
| | | , content: '../../车é´ç®¡ç/å·¥åºæµè½¬å¡/Sc_ProcessExchangeBill.html?OperationType=2&linterid=' + linterid + '&HEntryID=' + HEntryID + '&HSouceBillType=3772' |
| | | }) |
| | | } |
| | | } else { |
| | | layer.msg('è¯·éæ©æ°æ®ä¸æ¨ï¼'); |
| | | } |
| | | } |
| | | |
| | | //æ¹é䏿¨åæ® |
| | | function set_ShowBill_pl() { |
| | | var checkStatus = table.checkStatus('mainTable') |
| | | , data = checkStatus.data; |
| | | if (data.length === 1) { |
| | |
| | | , area: ['100%', '100%'] |
| | | , title: 'å·¥åºæµè½¬å¡-ç¼è¾' |
| | | , shift: 0//å¼¹åºå¨ç» |
| | | , content: '../../车é´ç®¡ç/å·¥åºæµè½¬å¡/Sc_ProcessExchangeBill.html?OperationType=2&linterid=' + linterid + '&HEntryID=' + HEntryID+'&HSouceBillType=3772' |
| | | , content: '../../车é´ç®¡ç/å·¥åºæµè½¬å¡/Sc_ProcessExchangeBill_Mul.html?OperationType=2&linterid=' + linterid + '&HEntryID=' + HEntryID + '&HSouceBillType=3772' |
| | | }) |
| | | } else { |
| | | layer.msg('è¯·éæ©ä¸è¡æ°æ®ä¸æ¨ï¼'); |
| | | } |
| | | } |
| | | |
| | | //å¤è¡æ¹é䏿¨åæ® |
| | | function set_ShowBill_dh() { |
| | | var checkStatus = table.checkStatus('mainTable') |
| | | , data = checkStatus.data; |
| | | if (data.length != 0) { |
| | | layer.confirm("确认è¦ä¸æ¨å?", function (index) { |
| | | var wait = layer.load(); |
| | | var hmainid = []; |
| | | for (var i = 0; i < checkStatus.data.length; i++) { |
| | | var linterid = data[i].hmainid.toString(); |
| | | var HEntryID = data[i].HEntryID.toString(); |
| | | hmainid.push(linterid + "|" + HEntryID); |
| | | } |
| | | |
| | | $.ajax({ |
| | | url: GetWEBURL() + '/Sc_ICMOBill/Sc_ICMOReportBill_dh', |
| | | type: "GET", |
| | | data: { "HInterID": hmainid.toString(), "user": sessionStorage["HUserName"], "OrganizationID": sessionStorage["OrganizationID"] }, |
| | | success: function (result) { |
| | | if (result.count == 1) { |
| | | layer.alert(result.Message); |
| | | 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('è¯·éæ©æ°æ®ä¸æ¨ï¼'); |
| | | } |
| | | } |
| | | |
| | | //æ°å¢ |
| | | function set_AddNew() { |
| | | layer.open({ |
| | | type: 2 |
| | | , skin: 'layui-layer-rim' //å ä¸è¾¹æ¡ |
| | | , area: ['100%', '100%'] |
| | | , title: 'çäº§è®¢åæ°å¢' |
| | | , shift: 0//å¼¹åºå¨ç» |
| | | , content: '../ç产任å¡å/Sc_ICMOBillEdit.html?OperationType=1&linterid=' |
| | | , end: function () { |
| | | //å·æ°é¡µé¢, |
| | | location.reload(); |
| | | } |
| | | }) |
| | | } |
| | | |
| | | // ç¼è¾ |
| | | function set_Edit() { |
| | | var checkStatus = table.checkStatus('mainTable') |
| | | , data = checkStatus.data; |
| | | if (checkStatus.data.length === 1) { |
| | | var linterid = data[0].hmainid; |
| | | |
| | | layer.open({ |
| | | type: 2 |
| | | , area: ['100%', '100%'] |
| | | , title: 'ç产订åç¼è¾' |
| | | , shift: 0//å¼¹åºå¨ç» |
| | | , content: '../ç产任å¡å/Sc_ICMOBillEdit.html?OperationType=3&linterid=' + linterid + '' |
| | | , end: function () { |
| | | //å·æ°é¡µé¢, |
| | | location.reload(); |
| | | } |
| | | }) |
| | | } else { |
| | | layer.msg('è¯·éæ©ä¸è¡æ°æ®ç¼è¾ï¼'); |
| | | } |
| | | } |
| | | |
| | | //馿£ |
| | | function set_FirstPieceCheck() { |
| | | var checkStatus = table.checkStatus('mainTable') |
| | | , data = checkStatus.data; |
| | | if (checkStatus.data.length === 1) { |
| | | var linterid = data[0].hmainid.toString(); |
| | | var OperationType = 2; |
| | | layer.open({ |
| | | type: 2 |
| | | , area: ['100%', '100%'] |
| | | , title: 'é¦ä»¶æ£éªå-ç¼è¾' |
| | | , shade: 0.6 |
| | | , maxmin: false |
| | | , anim: 0 |
| | | , content: ['../../è´¨é管ç/é¦ä»¶æ£éªå/QC_Add_Edit_FirstPieceCheckBill.html?OperationType=' + OperationType + '&linterid=' + linterid + '&HSouceBillType=3710&HICMOEntryID=0', 'yes'] |
| | | , resize: false |
| | | , cancel: function () { |
| | | btnIs(); |
| | | } |
| | | , end: function () { |
| | | get_FastQuery(table, option); |
| | | } |
| | | }) |
| | | } else { |
| | | layer.msg('è¯·éæ©ä¸è¡æ°æ®ç¼è¾ï¼'); |
| | | } |
| | | } |
| | | |
| | | // å¤å¶ |
| | | function set_copy() { |
| | | var checkStatus = table.checkStatus('mainTable') |
| | | , data = checkStatus.data; |
| | | if (checkStatus.data.length === 1) { |
| | | var linterid = data[0].hmainid; |
| | | |
| | | layer.open({ |
| | | type: 2 |
| | | , area: ['100%', '100%'] |
| | | , title: 'ç产订åç¼è¾' |
| | | , shift: 0//å¼¹åºå¨ç» |
| | | , content: '../ç产任å¡å/Sc_ICMOBillEdit.html?OperationType=2&linterid=' + linterid + '' |
| | | , end: function () { |
| | | //å·æ°é¡µé¢, |
| | | location.reload(); |
| | | } |
| | | }) |
| | | } else { |
| | | layer.msg('è¯·éæ©ä¸è¡æ°æ®ç¼è¾ï¼'); |
| | | } |
| | | } |
| | | |
| | | //æ°å¢(æ å表) |
| | | function set_AddNew_NT() { |
| | | layer.open({ |
| | | type: 2 |
| | | , skin: 'layui-layer-rim' //å ä¸è¾¹æ¡ |
| | | , area: ['100%', '100%'] |
| | | , title: 'çäº§è®¢åæ°å¢' |
| | | , shift: 0//å¼¹åºå¨ç» |
| | | , content: '../ç产任å¡å/Sc_ICMOBillEdit_NoTable.html?OperationType=1&linterid=&HEntryID=1' |
| | | , end: function () { |
| | | //å·æ°é¡µé¢, |
| | | location.reload(); |
| | | } |
| | | }) |
| | | } |
| | | |
| | | // ç¼è¾(æ å表) |
| | | function set_Edit_NT() { |
| | | var checkStatus = table.checkStatus('mainTable') |
| | | , data = checkStatus.data; |
| | | if (checkStatus.data.length === 1) { |
| | | var linterid = data[0].hmainid; |
| | | var HEntryID = data[0].hsubid; |
| | | |
| | | layer.open({ |
| | | type: 2 |
| | | , area: ['100%', '100%'] |
| | | , title: 'ç产订åç¼è¾' |
| | | , shift: 0//å¼¹åºå¨ç» |
| | | , content: '../ç产任å¡å/Sc_ICMOBillEdit_NoTable.html?OperationType=3&linterid=' + linterid + '&HEntryID=' + HEntryID |
| | | , end: function () { |
| | | //å·æ°é¡µé¢, |
| | | location.reload(); |
| | | } |
| | | }) |
| | | } else { |
| | | layer.msg('è¯·éæ©ä¸è¡æ°æ®ç¼è¾ï¼'); |
| | | } |
| | | } |
| | | |
| | | // å¤å¶(æ å表) |
| | | function set_copy_NT() { |
| | | var checkStatus = table.checkStatus('mainTable') |
| | | , data = checkStatus.data; |
| | | if (checkStatus.data.length === 1) { |
| | | var linterid = data[0].hmainid; |
| | | var HEntryID = data[0].hsubid; |
| | | |
| | | layer.open({ |
| | | type: 2 |
| | | , area: ['100%', '100%'] |
| | | , title: 'ç产订åç¼è¾' |
| | | , shift: 0//å¼¹åºå¨ç» |
| | | , content: '../ç产任å¡å/Sc_ICMOBillEdit_NoTable.html?OperationType=2&linterid=' + linterid + '&HEntryID=' + HEntryID |
| | | , end: function () { |
| | | //å·æ°é¡µé¢, |
| | | location.reload(); |
| | | } |
| | | }) |
| | | } else { |
| | | layer.msg('è¯·éæ©ä¸è¡æ°æ®ç¼è¾ï¼'); |
| | | } |
| | | } |
| | | |
| | |
| | | $.ajax({ |
| | | url: GetWEBURL() + '/Sc_ICMOBill/DeltetSc_ICMOReportBill', |
| | | type: "GET", |
| | | data: { "HInterID": hmainid, "user": sessionStorage["HUserName"]}, |
| | | data: { "HInterID": hmainid, "user": sessionStorage["HUserName"] }, |
| | | success: function (result) { |
| | | if (result.count == 1) { |
| | | layer.msg(result.Message, { icon: 1 }, function () { |
| | |
| | | } |
| | | //#endregion |
| | | |
| | | |
| | | //䏿¥ |
| | | function set_Xc() { |
| | | var checkStatus = table.checkStatus('mainTable') |
| | | , data = checkStatus.data; |
| | | if (checkStatus.data.length == 1) { |
| | | var HSouceInterID = data[0].hmainid; |
| | | var HSourceEntryID = data[0].hsubid; |
| | | |
| | | layer.open({ |
| | | type: 2 |
| | | , skin: 'layui-layer-rim' //å ä¸è¾¹æ¡ |
| | | , area: ['80%', '80%'] |
| | | , title: 'å·¥åºæµè½¬å¡å表' |
| | | , shift: 0//å¼¹åºå¨ç» |
| | | , content: '../çäº§å«æå¹³å°/JIT_HlpBillList.html?HSourceInterID=' + HSouceInterID + '&HSourceEntryID=' + HSourceEntryID + '&Type=3772' |
| | | , end: function () { |
| | | } |
| | | }) |
| | | } |
| | | else { |
| | | layer.msg('è¯·éæ©ä¸è¡æ°æ®å é¤ï¼'); |
| | | } |
| | | |
| | | } |
| | | |
| | | |
| | | //导å
¥ |
| | | function set_Excel() { |
| | | layer.open({ |
| | | type: 2 |
| | | , skin: 'layui-layer-rim' //å ä¸è¾¹æ¡ |
| | | , area: ['100%', '100%'] |
| | | , title: 'ç产订å导å
¥' |
| | | , shift: 0//å¼¹åºå¨ç» |
| | | , content: '../ç产任å¡å/Sc_ICMOBillImport.html?OperationType=1' |
| | | , end: function () { |
| | | //å·æ°é¡µé¢, |
| | | location.reload(); |
| | | } |
| | | }) |
| | | } |
| | | |
| | | //鿰忥æé® |
| | | function set_ResCnz() { |
| | | var HBillno2 = $('#HBillno2').val(); |
| | | $.ajax({ |
| | | url: GetWEBURL() + '/Cg_POOrderBill/Resynchronize', |
| | | url: GetWEBURL() + '/Sc_ICMOBill/Sc_ICMOBillViewApi', |
| | | type: "GET", |
| | | data: { "HBillNo": HBillno2, "HBillType": 3710 }, |
| | | data: { "BillNo": HBillno2, "BillType": 3710 }, |
| | | success: function (result) { |
| | | if (result.count == 1) { |
| | | layer.msg(result.Message, { time: 1 * 1000, icon: 1 }, function () { |
| | |
| | | }); |
| | | } |
| | | //#endregion |
| | | |
| | | |
| | | //#region å·æ° |
| | | function get_Refresh() { |
| | | set_ClearQuery(); |
| | | get_Display(sWhere); |
| | | //set_ClearQuery(); |
| | | get_FastQuery(); |
| | | } |
| | | //#endregion |
| | | |
| | |
| | | var PrintIds = ""; |
| | | if (checkStatus.data.length >= 1) { |
| | | for (var i = 0; i < data.length; i++) { |
| | | PrintIds += data[i].hmainid+"0"+data[i].HEntryID + "," |
| | | PrintIds += data[i].hmainid + "0" + data[i].HEntryID + "," |
| | | } |
| | | PrintIds = PrintIds.substring(0, PrintIds.length - 1); |
| | | layer.open({ |
| | |
| | | layer.msg('è¯·éæ©è³å°ä¸è¡æ°æ®æå°ï¼'); |
| | | } |
| | | } |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | //导åºExecel |
| | | function get_Export() { |
| | | table.exportFile(ins.config.id, option.data, "xls"); |
| | | } |
| | | |
| | | |
| | | |
| | | |
| | | //éèå设置 |
| | | function get_HideColumn() { |
| | |
| | | dataCol = data1.data[0].HGridString.split(','); |
| | | |
| | | for (var i = 0; i < option.cols[0].length - 2; i++) { |
| | | var dataCols = dataCol[i].split('|'); |
| | | if (dataCol[i]) { |
| | | var dataCols = dataCol[i].split('|'); |
| | | } |
| | | //éèå |
| | | if (dataCols[1] == 1) { |
| | | option.cols[0][i + 1]["hide"] = true; |
| | |
| | | } else { |
| | | table.render(option); |
| | | } |
| | | |
| | | var btns = document.getElementsByTagName("button"); //è·åæ¬é¡µæææé®å¯¹è±¡ |
| | | var HBillType = "3710"; |
| | | Display_HideButton(btns, HBillType, HModName, sessionStorage["HUserName"]); |
| | | |
| | | }, error: function () { |
| | | layer.alert("æ¥å£è¯·æ±å¤±è´¥!", { icon: 5 }); |
| | | } |
| | | }) |
| | | } |
| | | |
| | | //å®¡æ ¸ |
| | | function set_CheckBill() { |
| | | 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() + '/Sc_ICMOBill/CheckSc_ICMOReportBill', |
| | | type: "GET", |
| | | data: { "HInterID": HInterID, "Type": 1, "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("è¯·éæ©ä¸æ¡æ°æ®!"); |
| | | } |
| | | } |
| | | |
| | | //åå®¡æ ¸ |
| | | function set_AbandonCheck() { |
| | | 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() + '/Sc_ICMOBill/CheckSc_ICMOReportBill', |
| | | type: "GET", |
| | | data: { "HInterID": HInterID, "Type": 2, "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("è¯·éæ©ä¸æ¡æ°æ®!"); |
| | | } |
| | | } |
| | | |
| | | //å
³é |
| | | function set_CloseBill() { |
| | | 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() + '/Sc_ICMOBill/CloseSc_ICMOReportBill', |
| | | type: "GET", |
| | | data: { "HInterID": HInterID, "Type": 1, "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("è¯·éæ©ä¸æ¡æ°æ®!"); |
| | | } |
| | | } |
| | | |
| | | //åå
³é |
| | | function set_CancelCloseBill() { |
| | | 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() + '/Sc_ICMOBill/CloseSc_ICMOReportBill', |
| | | type: "GET", |
| | | data: { "HInterID": HInterID, "Type": 2, "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("è¯·éæ©ä¸æ¡æ°æ®!"); |
| | | } |
| | | } |
| | | |
| | | //åææ¾ç¤ºä¸ææ¡ |
| | | function ColFilter() { |
| | | var Organization = '<option value="0" selected="selected" ></option>'; |
| | | for (var i = 1; i < option.cols[0].length; i++) { |
| | | if (option.cols[0][i].hide != true) { |
| | | Organization += '<option style="color:blue;" value="' + option.cols[0][i].field + '">' + option.cols[0][i].field + '</option>'; |
| | | } |
| | | } |
| | | $("#ColName").empty(); |
| | | $("#ColName").append(Organization); |
| | | form.render('select'); |
| | | } |
| | | |
| | | |
| | | //è·ååæ° |
| | | function getUrlVars() { |
| | | var vars = [], hash; |
| | | var hashes = window.location.href.slice(window.location.href.indexOf('?') + 1).split('&'); |
| | | for (var i = 0; i < hashes.length; i++) { |
| | | hash = hashes[i].split('='); |
| | | vars.push(hash[0]); |
| | | vars[hash[0]] = hash[1]; |
| | | } |
| | | return vars; |
| | | } |
| | | //#endregion |
| | | |
| | | //以䏿¯layui模å |
| | | |
| | | |
| | | }); |
| | | |
| | | </script> |