| | |
| | | <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> |
| | | <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> |
| | | </div> |
| | | </div> |
| | | <div class="layui-inline"> |
| | | <label class="layui-form-label">ä¸å¡ç¶æ</label> |
| | | <div class="layui-input-block"> |
| | | <select name="HStatus" id="HStatus" lay-verify="required" lay-search class="layui-input"> |
| | | <!-- <option value="å
¨é¨">å
¨é¨</option>--> |
| | | <option value="å¼å·¥">å¼å·¥</option> |
| | | <option value="计å">计å</option> |
| | | <option value="计å确认">计å确认</option> |
| | | <option value="ä¸è¾¾">ä¸è¾¾</option> |
| | | |
| | | <option value="0">å
¨é¨</option> |
| | | <option value="å®å·¥">å®å·¥</option> |
| | | <option value="ç»æ¡">ç»æ¡</option> |
| | | </select> |
| | | |
| | | </div> |
| | | </div> |
| | | <div class="layui-inline"> |
| | | <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="å
¨é¨">å
¨é¨</option> |
| | | <option value="已䏿¨">已䏿¨</option> |
| | | <option value="æªä¸æ¨" selected="selected">æªä¸æ¨</option> |
| | | </select> |
| | | </div> |
| | | </div> |
| | | </div> |
| | | <div class="layui-row"> |
| | | <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"> |
| | |
| | | <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> |
| | | <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">ç©æç¼ç </label> |
| | | <div class="layui-input-block"> |
| | | <input type="text" class="layui-input" name="HMaterName" id="HMaterName"> |
| | | </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> |
| | | </div> |
| | | </div> |
| | | </div> |
| | | <table class="" id="mainTable" lay-filter="mainTable"></table> |
| | | <script type="text/html" id="toolbarDemo"> |
| | | <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-lg" lay-event="set_ShowBill"><i class="layui-icon layui-icon-form"></i>䏿¨</button> |
| | | <button type="button" class="layui-btn" lay-event="get_Refresh"><i class="layui-icon layui-icon-refresh-3"></i>å·æ°</button> |
| | | <button type="button" class="layui-btn" lay-event="get_Exit"><i class="layui-icon layui-icon-logout"></i>éåº</button> |
| | | <button type="button" class="layui-btn" 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_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_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_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="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> |
| | | <button type="button" class="layui-btn layui-btn-sm" lay-event="get_Exit"><i class="layui-icon layui-icon-logout"></i>éåº</button> |
| | | </div> |
| | | </script> |
| | | </form> |
| | |
| | | //var sWhere = " 产å代ç = 'BX0002'"; |
| | | var sWhere = ""; |
| | | var sWhere = ""; |
| | | var HModName = "Sc_ICMOBillList"; |
| | | var HDeptID = 0; |
| | | |
| | | var params = getUrlVars(); |
| | | var HDeptID = params[params[0]]; |
| | | |
| | | //夿æ¯å¦æåæ°ä¼ é |
| | | |
| | | |
| | | //åå§åè¡¨æ ¼ |
| | | DisPlay_HideColumn(); |
| | | //åå§åçé¢ |
| | | set_ClearBill(); |
| | | //è·å车é´å |
| | | var HDeptName = '<option value="0" style="color:red;" selected>å
¨é¨è½¦é´</option>'; |
| | | $.ajax({ |
| | | type: "get", |
| | | url: GetWEBURL() + "/Sc_ICMOBill/GetHDeptList", |
| | | 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>'; |
| | | |
| | | } |
| | | $("#HDeptName").append(HDeptName); |
| | | if (!isNaN(HDeptID)) { |
| | | $("#HDeptName").val(HDeptID); |
| | | } |
| | | form.render('select'); |
| | | } |
| | | layer.closeAll("loading"); |
| | | } |
| | | }) |
| | | //#endregion |
| | | |
| | | |
| | |
| | | table.on('toolbar(mainTable)', function (obj) { |
| | | switch (obj.event) { |
| | | //䏿¨ |
| | | case 'set_ShowBill': set_ShowBill(); |
| | | case 'set_ShowBill': set_ShowBill(); |
| | | break; |
| | | //æ¹é䏿¨ |
| | | case 'set_ShowBill_pl': set_ShowBill_pl(); //set_ShowBill_pl |
| | | break; |
| | | //æ°å¢ |
| | | case 'set_AddNew': set_AddNew(); |
| | | break; |
| | | //ç¼è¾ |
| | | case 'set_Edit': set_Edit(); |
| | | break; |
| | | //æ°å¢(æ å表) |
| | | case 'set_AddNew_NT': set_AddNew_NT(); |
| | | break; |
| | | //ç¼è¾(æ å表) |
| | | case 'set_Edit_NT': set_Edit_NT(); |
| | | break; |
| | | //å é¤ |
| | | case 'set_DeleteBill': set_DeleteBill(); |
| | | break; |
| | | //导å
¥ |
| | | case 'set_Excel': set_Excel(); |
| | | break; |
| | | case 'get-view': get_ViewReport(); |
| | | break; |
| | |
| | | //æå° |
| | | case 'btn-print': |
| | | get_PrintReport(); |
| | | break; |
| | | //å设置 |
| | | case 'set_HideColumn': |
| | | get_HideColumn(); |
| | | break; |
| | | }; |
| | | }); |
| | |
| | | //#endregion |
| | | |
| | | |
| | | option_YQN = { |
| | | elem: '#mainTable' |
| | | , toolbar: '#toolbarDemo' |
| | | , height: 'full-50' |
| | | , page: true |
| | | , cellMinWidth: 90 |
| | | , 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: 120, hide: true } |
| | | , { field: 'éå®è®¢åæ¥æ', title: 'éå®è®¢åæ¥æ', sort: true, width: 120, hide: true } |
| | | , { field: 'åæ®å·', title: 'åæ®å·', sort: true, width: 170, 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, width: 120, hide: true } |
| | | , { field: 'HDeptID', title: 'HDeptID', hide: true } |
| | | , { field: 'ç产车é´ä»£ç ', title: 'ç产车é´ä»£ç ', width: 115, hide: true } |
| | | , { field: 'ç产车é´', title: 'ç产车é´', width: 115, hide: true } |
| | | , { field: 'HMaterID', title: 'HMaterID', hide: true } |
| | | , { field: '产å代ç ', title: '产å代ç ', width: 160, hide: true } |
| | | , { field: '产ååç§°', title: '产ååç§°', width: 160, hide: true } |
| | | , { field: 'è§æ ¼åå·', title: 'è§æ ¼åå·', width: 215, hide: true } |
| | | , { field: 'hunitid', title: 'hunitid', hide: true } |
| | | , { field: '计éåä½ä»£ç ', title: '计éåä½ä»£ç ', width: 115, hide: true } |
| | | , { field: '计éåä½', title: '计éåä½', 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: '计åå¼å·¥æ¥æ', hide: true } |
| | | , { field: '计åå®å·¥æ¥æ', title: '计åå®å·¥æ¥æ', hide: true } |
| | | , { field: 'æè¿å¼å·¥æ¥æ', title: 'æè¿å¼å·¥æ¥æ', hide: true } |
| | | , { field: 'æè¿å®å·¥æ¥æ', title: 'æè¿å®å·¥æ¥æ', hide: true } |
| | | , { field: 'é½å¥æ°é', title: 'é½å¥æ°é', hide: true } |
| | | , { field: '计åç产æ°é', title: '计åç产æ°é', hide: true } |
| | | , { field: 'å
³èæ°é', title: 'å
³èæ°é', hide: true } |
| | | , { field: 'æªå
³èæ°é', title: 'æªå
³èæ°é', hide: true } |
| | | , { field: 'è¡¨å¤´å¤æ³¨', title: 'è¡¨å¤´å¤æ³¨', hide: true } |
| | | , { field: 'hsubid', title: 'hsubid', hide: true } |
| | | , { field: 'æºååå·', title: 'æºååå·', hide: true } |
| | | , { field: 'æºå主å
ç ', title: 'æºå主å
ç ', hide: true } |
| | | , { field: 'æºååå
ç ', title: 'æºååå
ç ', hide: true } |
| | | , { field: 'å¶å人', title: 'å¶å人', hide: true } |
| | | , { field: 'å¶åæ¥æ', title: 'å¶åæ¥æ', hide: true } |
| | | , { field: 'å®¡æ ¸äºº', title: 'å®¡æ ¸äºº', hide: true } |
| | | , { field: 'å®¡æ ¸æ¥æ', title: 'å®¡æ ¸æ¥æ', hide: true } |
| | | , { field: 'ä¿®æ¹äºº', title: 'ä¿®æ¹äºº', hide: true } |
| | | , { field: 'ä¿®æ¹æ¥æ', title: 'ä¿®æ¹æ¥æ', hide: true } |
| | | , { field: 'å
³é人', title: 'å
³é人', hide: true } |
| | | , { field: 'å
³éæ¥æ', title: 'å
³éæ¥æ', hide: true } |
| | | , { field: 'ä½åºäºº', title: 'ä½åºäºº', hide: true } |
| | | , { field: 'ä½åºæ¥æ', title: 'ä½åºæ¥æ', hide: true } |
| | | , { field: 'è¡å
³é人', title: 'è¡å
³é人', hide: true } |
| | | , { field: 'å
³éç±»å', title: 'å
³éç±»å', hide: true } |
| | | , { field: 'åæ®ç±»å', title: 'åæ®ç±»å', hide: true } |
| | | , { field: '计åè·è¸ªå·', title: '计åè·è¸ªå·', hide: true } |
| | | ]] |
| | | }; |
| | | |
| | | function set_InitGrid() { |
| | | $("#HDate").val(Format(new Date(new Date() - 1000 * 60 * 60 * 24 * 30), "yyyy-MM-dd")); |
| | | $("#HDate1").val(Format(new Date(), "yyyy-MM-dd")); |
| | |
| | | , height: 'full-50' |
| | | , page: true |
| | | , cellMinWidth: 90 |
| | | , totalRow: true |
| | | , limit: 50 |
| | | , limits: [50, 500, 5000, 20000] |
| | | , cols: [[ |
| | | { type: 'checkbox', fixed: 'left' } |
| | | { type: 'checkbox', fixed: 'left', totalRowText: 'å计' } |
| | | , { 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: 120 } |
| | | , { field: 'åæ®å·', title: 'åæ®å·', sort: true, width: 170 } |
| | | , { field: '订åè·è¸ªå·', title: '订åè·è¸ªå·', width: 105 } |
| | | , { field: 'HDeptID', title: 'HDeptID', hide: true} |
| | | , { field: 'ç产车é´ä»£ç ', title: 'ç产车é´ä»£ç ', width: 115 } |
| | | , { field: 'ç产车é´', title: 'ç产车é´', width: 115 } |
| | | , { field: 'HMaterID', title: 'HMaterID' , hide: true} |
| | | , { field: 'ç¶æ', title: 'ç¶æ', sort: true, width: 170 } |
| | | , { field: 'å¯ä¸ID', title: 'å¯ä¸ID', sort: true, width: 170 } |
| | | , { field: 'æ¯å¦ä¸æ¨çææµè½¬å¡', title: 'æ¯å¦ä¸æ¨çææµè½¬å¡', sort: true, width: 170 } |
| | | , { field: 'æ¥æ', title: 'æ¥æ' } |
| | | , { field: '产å代ç ', title: '产å代ç ', width: 160 } |
| | | , { field: '产ååç§°', title: '产ååç§°', width: 160 } |
| | | , { field: 'è§æ ¼åå·', title: 'è§æ ¼åå·', width: 215 } |
| | | , { field: 'hunitid', title: 'hunitid' , hide: true} |
| | | , { field: 'ç产车é´ä»£ç ', title: 'ç产车é´ä»£ç ', width: 115 } |
| | | , { field: 'ç产车é´', title: 'ç产车é´', width: 115 } |
| | | , { field: 'ç产任å¡åæ°é', title: 'çäº§è®¢åæ°é', width: 115, totalRow: true } |
| | | , { field: 'å
è£
æ è¯ä»£ç ', title: 'å
è£
æ è¯ä»£ç ', width: 115 } |
| | | , { field: 'å
è£
æ è¯', title: 'å
è£
æ è¯', width: 115 } |
| | | , { field: '计éåä½ä»£ç ', title: '计éåä½ä»£ç ', width: 115 } |
| | | , { field: '计éåä½', title: '计éåä½' } |
| | | , { field: 'hempid', title: 'hempid' , hide: true} |
| | | , { field: 'ä¸å¡å代ç ', title: 'ä¸å¡å代ç ', width: 100 } |
| | | , { field: 'ä¸å¡å', title: 'ä¸å¡å' } |
| | | , { field: 'hcusid', title: 'hcusid' } |
| | | , { field: '客æ·ä»£ç ', title: '客æ·ä»£ç ' } |
| | | , { field: '客æ·', title: '客æ·' } |
| | | , { field: 'HCenterID', title: 'HCenterID' , hide: true} |
| | | , { field: 'å·¥ä½ä¸å¿ä»£ç ', title: 'å·¥ä½ä¸å¿ä»£ç ' } |
| | | , { field: 'å·¥ä½ä¸å¿', title: 'å·¥ä½ä¸å¿' } |
| | | , { field: 'hbomid', title: 'hbomid' , hide: true} |
| | | , { field: 'BOMåç¼ç ', title: 'BOMåç¼ç ' } |
| | | , { field: 'HRoutingInterID', title: 'HRoutingInterID' , hide: true} |
| | | , { field: 'å·¥èºè·¯çº¿ä»£ç ', title: 'å·¥èºè·¯çº¿ä»£ç ' } |
| | | , { field: 'å·¥èºè·¯çº¿', title: 'å·¥èºè·¯çº¿' } |
| | | , { field: '计åå¼å·¥æ¥æ', title: '计åå¼å·¥æ¥æ' } |
| | | , { field: '计åå®å·¥æ¥æ', title: '计åå®å·¥æ¥æ' } |
| | | , { field: 'æè¿å¼å·¥æ¥æ', title: 'æè¿å¼å·¥æ¥æ' } |
| | |
| | | , { field: 'å
³èæ°é', title: 'å
³èæ°é' } |
| | | , { field: 'æªå
³èæ°é', title: 'æªå
³èæ°é' } |
| | | , { field: 'è¡¨å¤´å¤æ³¨', title: 'è¡¨å¤´å¤æ³¨' } |
| | | , { field: 'hsubid', title: 'hsubid' , hide: true} |
| | | , { 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: 'ä½åºäºº', 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, 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: 'å·¥èºè·¯çº¿ä»£ç '} |
| | | , { field: 'å·¥èºè·¯çº¿', title: 'å·¥èºè·¯çº¿'} |
| | | //, { field: 'hsubid', title: 'hsubid' , hide: true} |
| | | //, { field: 'æºååå·', title: 'æºååå·', hide: true} |
| | | //, { field: 'æºå主å
ç ', title: 'æºå主å
ç ', hide: true} |
| | | //, { field: 'æºååå
ç ', title: 'æºååå
ç ', hide: true} |
| | | //, { field: 'è¡å
³é人', title: 'è¡å
³é人', hide: true} |
| | | //, { field: 'å
³éç±»å', title: 'å
³éç±»å', hide: true} |
| | | //, { field: 'åæ®ç±»å', title: 'åæ®ç±»å', hide: true} |
| | | //, { field: '计åè·è¸ªå·', title: '计åè·è¸ªå·', hide: true} |
| | | ]] |
| | | }; |
| | | } |
| | |
| | | option.data = data1.data; |
| | | table.render(option); |
| | | layer.close(ajaxLoad); |
| | | //layer.alert("æ¥è¯¢æå", { icon: 1 }); |
| | | |
| | | 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 HMaterName = $("#HMaterName").val();//åæ®å· |
| | | var HErpID = $("#HERPID").val();//å¯ä¸æ è¯ |
| | | var HDeptName = $("#HDeptName").val();//åæ®å· |
| | | var HStatus = $("#HStatus").val();//åæ®å· |
| | | var HBillType = $("#HBillType").val();//åæ®ç±»å |
| | | var HSF = $("#HSF").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 += ""; |
| | | } |
| | | if (HSF == "已䏿¨") { |
| | | sWhere += " and æ¯å¦ä¸æ¨çææµè½¬å¡ like '%" + HSF + "%' "; |
| | | } |
| | | if (HSF == "æªä¸æ¨") { |
| | | sWhere += " and æ¯å¦ä¸æ¨çææµè½¬å¡ like '%" + HSF + "%' "; |
| | | } |
| | | } |
| | | if (HDate) { |
| | | sWhere += " and æ¥æ >= '" + HDate + "'"; |
| | | } |
| | |
| | | if (WorkCenter) { |
| | | sWhere += " and åæ®å· like '%" + WorkCenter + "%'"; |
| | | } |
| | | if (HMaterName) { |
| | | sWhere += " and 产å代ç like '%" + HMaterName + "%'"; |
| | | } |
| | | if (HDeptName && HDeptName!=0) { |
| | | sWhere += " and HDeptID = " + HDeptName ; |
| | | } |
| | | if (HStatus && HStatus != 0) { |
| | | sWhere += " and ç¶æ like '%" + HStatus + "%'"; |
| | | } |
| | | if (HBillType) { |
| | | sWhere += " and åæ®ç±»å like '%" + HBillType + "%'"; |
| | | } |
| | | if (HErpID) { |
| | | sWhere += " and å¯ä¸ID like '%" + HErpID + "%'"; |
| | | } |
| | | //if (HSF) { |
| | | // sWhere += " and æ¯å¦ä¸æ¨çææµè½¬å¡ like '%" + HSF + "%'"; |
| | | //} |
| | | get_Display(sWhere); |
| | | sWhere = "";//è°ç¨æ¥å£åæ¸
空sWhereç¼å |
| | | } |
| | |
| | | |
| | | //#region éç½®è¿æ»¤æ¡ä»¶æ¹æ³ |
| | | function set_ClearQuery() { |
| | | $("#HDate").val("");//å¼å§æ¥æ |
| | | $("#HDate1").val("");//ç»ææ¥æ |
| | | $("#HDate").val(Format(new Date(new Date() - 1000 * 60 * 60 * 24 * 30), "yyyy-MM-dd"));//å¼å§æ¥æ |
| | | $("#HDate1").val(Format(new Date(), "yyyy-MM-dd"));;//ç»ææ¥æ |
| | | $("#HOrderProcNO").val("");//订åè·è¸ªå· |
| | | $("#WorkCenter").val("");//åæ®å· |
| | | $("#HDeptName").val("");//åæ®å· |
| | | $("#HMaterName").val("");//åæ®å· |
| | | $("#HDeptName").val("");//åæ®å· |
| | | $("#HStatus").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; |
| | |
| | | }) |
| | | } else { |
| | | layer.msg('è¯·éæ©ä¸è¡æ°æ®ä¸æ¨ï¼'); |
| | | } |
| | | } |
| | | |
| | | //æ¹é䏿¨åæ® |
| | | function set_ShowBill_pl() { |
| | | var checkStatus = table.checkStatus('mainTable') |
| | | , data = checkStatus.data; |
| | | if (data.length === 1) { |
| | | var linterid = data[0].hmainid.toString(); |
| | | var HEntryID = data[0].HEntryID.toString(); |
| | | layer.open({ |
| | | type: 2 |
| | | , area: ['100%', '100%'] |
| | | , title: 'å·¥åºæµè½¬å¡-ç¼è¾' |
| | | , shift: 0//å¼¹åºå¨ç» |
| | | , content: '../../车é´ç®¡ç/å·¥åºæµè½¬å¡/Sc_ProcessExchangeBill_Mul.html?OperationType=2&linterid=' + linterid + '&HEntryID=' + HEntryID + '&HSouceBillType=3772' |
| | | }) |
| | | } 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_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('è¯·éæ©ä¸è¡æ°æ®ç¼è¾ï¼'); |
| | | } |
| | | } |
| | | |
| | |
| | | } |
| | | //#endregion |
| | | |
| | | //导å
¥ |
| | | 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 () { |
| | |
| | | } |
| | | } |
| | | |
| | | //éèå设置 |
| | | function get_HideColumn() { |
| | | var colName = ""; |
| | | var contentUrl = ""; |
| | | for (var i = 1; i < option.cols[0].length - 1; i++) { |
| | | colName += option.cols[0][i]["title"] + ","; |
| | | } |
| | | var urlStr = window.document.location.pathname;//è·åæä»¶è·¯å¾ |
| | | var urlLen = urlStr.split('/'); |
| | | for (var i = 0; i < urlLen.length - 4; i++) { |
| | | contentUrl += "../"; |
| | | } |
| | | colName = encodeURI(colName.substring(0, colName.length - 1));//对 URI è¿è¡ç¼ç |
| | | |
| | | contentUrl += 'åºç¡èµæ/éèå设置/Gy_GridView_Hide.html?HModName=' + HModName + '&colName=' + colName; |
| | | |
| | | layer.open({ |
| | | type: 2 |
| | | , skin: "layui-layer-rim" //å ä¸è¾¹æ¡ |
| | | , title: "éèå设置" //æ é¢ |
| | | , closeBtn: 1 //çªä½å³ä¸è§å
³é ç æ ·å¼ |
| | | , shift: 2 //å¼¹åºå¨ç» |
| | | , area: ["50%", "90%"] //çªä½å¤§å° |
| | | , maxmin: true //设置æå¤§æå°æé®æ¯å¦æ¾ç¤º |
| | | , content: [contentUrl, "yes"] |
| | | , btn: ["ç¡®å®", "åæ¶"] |
| | | , btn1: function (index, laero) { |
| | | //å·æ°è¡¨æ ¼æ°æ® |
| | | DisPlay_HideColumn(); |
| | | //æ´æ°è¡¨æ ¼ç¼åçæ°æ® |
| | | layer.close(index);//å
³éå¼¹çª |
| | | } |
| | | }) |
| | | } |
| | | |
| | | //æ¾ç¤ºåæ°æ® |
| | | function DisPlay_HideColumn() { |
| | | $.ajax({ |
| | | url: GetWEBURL() + '/Xt_grdAlignment_WMES/grdAlignmentWMESList', |
| | | type: "GET", |
| | | data: { "HModName": HModName, "user": sessionStorage["HUserName"] }, |
| | | success: function (data1) { |
| | | if (data1.data.length != 0) { |
| | | |
| | | |
| | | var dataCol = [];//æ°æ®åºæ¥è¯¢åºçåæ°æ® |
| | | var titleData = ["hmainid", "HEntryID", "ä½åºäºº", "ä½åºæ¥æ", "éå®è®¢åæ¥æ", "订åè·è¸ªå·", "HDeptID", "HMaterID", "hunitid", "hempid", "ä¸å¡å代ç ", "ä¸å¡å", "hcusid", "客æ·ä»£ç ", "客æ·", "HCenterID", "å·¥ä½ä¸å¿ä»£ç ", "å·¥ä½ä¸å¿", "hbomid", "BOMåç¼ç ", "HRoutingInterID", "å·¥èºè·¯çº¿ä»£ç ", "å·¥èºè·¯çº¿", "hsubid", "æºååå·", "æºå主å
ç ", "æºååå
ç ", "è¡å
³é人", "å
³éç±»å", "åæ®ç±»å", "计åè·è¸ªå·"];//ä¸éè¦æ¾ç¤ºçåæ®µ 坿©å± |
| | | |
| | | dataCol = data1.data[0].HGridString.split(','); |
| | | |
| | | for (var i = 0; i < option.cols[0].length - 2; i++) { |
| | | if (dataCol[i]) { |
| | | var dataCols = dataCol[i].split('|'); |
| | | } |
| | | //éèå |
| | | if (dataCols[1] == 1) { |
| | | option.cols[0][i + 1]["hide"] = true; |
| | | } |
| | | //设置å宽 |
| | | if (dataCols[3] > 0) { |
| | | option.cols[0][i + 1]["width"] = dataCols[3]; |
| | | } |
| | | //设置å
容åä½å¤§å° |
| | | if (data1.data[0].HFontSize != 0) { |
| | | option.cols[0][i + 1]["style"] = "font-size:" + data1.data[0].HFontSize + "px;"; |
| | | } else { |
| | | option.cols[0][i + 1]["style"] = "font-size:100%"; |
| | | } |
| | | //设置å宽 |
| | | //if (data1.data[0].HColumnWidth != 0) { |
| | | // option.cols[0][i + 1]["width"] = data1.data[0].HColumnWidth + "px;"; |
| | | //} else { |
| | | // option.cols[0][i + 1]["width"] = ""; |
| | | //} |
| | | //æ¾ç¤ºå |
| | | if (dataCols[1] == 0 && $.inArray(option.cols[0][i + 1]["title"], titleData) == -1) { |
| | | option.cols[0][i + 1]["hide"] = false; |
| | | } |
| | | //å使å¨ä½ç½®(å·¦ å±
ä¸ å³) |
| | | switch (dataCols[2]) { |
| | | case "L": |
| | | option.cols[0][i + 1]["align"] = "left"; |
| | | break; |
| | | case "M": |
| | | option.cols[0][i + 1]["align"] = "center"; |
| | | break; |
| | | case "R": |
| | | option.cols[0][i + 1]["align"] = "right"; |
| | | break; |
| | | } |
| | | } |
| | | |
| | | //åæ¶å»ç»å |
| | | for (var i = 1; i < option.cols[0].length - 1; i++) { |
| | | if (option.cols[0][i]["fixed"] != null) { |
| | | option.cols[0][i]["fixed"] = null; |
| | | } |
| | | else { |
| | | break; |
| | | } |
| | | } |
| | | //å»ç»å |
| | | if (data1.data[0].HFixCols != 0) { |
| | | for (var i = 0; i < data1.data[0].HFixCols; i++) { |
| | | if ($.inArray(option.cols[0][i + 1]["title"], titleData) != -1) { |
| | | data1.data[0].HFixCols += 1; |
| | | } |
| | | option.cols[0][i + 1]["fixed"] = "left"; |
| | | } |
| | | } |
| | | table.render(option); |
| | | } else { |
| | | table.render(option); |
| | | } |
| | | }, error: function () { |
| | | layer.alert("æ¥å£è¯·æ±å¤±è´¥!", { icon: 5 }); |
| | | } |
| | | }) |
| | | } |
| | | |
| | | //åææ¾ç¤ºä¸ææ¡ |
| | | 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模å |