| | |
| | | </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-inline"> |
| | | <div class="layui-inline"> |
| | |
| | | </div> |
| | | </div> |
| | | <div class="layui-inline"> |
| | | <label class="layui-form-label">åæ®å·</label> |
| | | <label class="layui-form-label">ç产车é´</label> |
| | | <div class="layui-input-block"> |
| | | <input type="text" class="layui-input" name="WorkCenter" id="WorkCenter"> |
| | | <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="0" selected>å
¨é¨</option> |
| | | <option value="计å">计å</option> |
| | | <option value="计å确认">计å确认</option> |
| | | <option value="ä¸è¾¾">ä¸è¾¾</option> |
| | | <option value="å¼å·¥">å¼å·¥</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"> |
| | | <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> |
| | |
| | | <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> |
| | | </div> |
| | | </script> |
| | |
| | | |
| | | //åå§åçé¢ |
| | | 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); |
| | | form.render('select'); |
| | | } |
| | | layer.closeAll("loading"); |
| | | } |
| | | }) |
| | | //#endregion |
| | | |
| | | |
| | |
| | | //å é¤ |
| | | case 'set_DeleteBill': set_DeleteBill(); |
| | | break; |
| | | case 'get-view': get_ViewReport(); |
| | | break; |
| | | case 'get-print': get_PrintReport(); |
| | | break; |
| | | //å·æ° |
| | | case 'get_Refresh': get_Refresh(); |
| | | break; |
| | | //éåºæé® |
| | | case 'get_Exit': Pub_Close(2); |
| | | break; |
| | | //æå° |
| | | case 'btn-print': |
| | | get_PrintReport(); |
| | | break; |
| | | }; |
| | | }); |
| | | |
| | | //鿰忥æé® |
| | | form.on('submit(btnResCnz)', function (data) { |
| | | set_ResCnz(); |
| | | }); |
| | | |
| | | //éç½®æé® |
| | |
| | | //#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")); |
| | |
| | | , limits: [50, 500, 5000, 20000] |
| | | , cols: [[ |
| | | { type: 'checkbox', fixed: 'left' } |
| | | //{ field: 'hmainid', title: 'hmainid', sort: true, width: 165 } |
| | | , { field: 'æ¥æ', title: 'æ¥æ', sort: true, width: 120 } |
| | | , { 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: '订åè·è¸ªå·', width: 105 } |
| | | //, { field: 'HDeptID', title: 'HDeptID' } |
| | | , { field: 'ç产车é´ä»£ç ', title: 'ç产车é´ä»£ç ', width: 115 } |
| | | , { field: 'ç产车é´', title: 'ç产车é´', width: 115 } |
| | | //, { field: 'HMaterID', title: 'HMaterID' } |
| | | , { field: 'æ¥æ', title: 'æ¥æ' } |
| | | , { field: '产å代ç ', title: '产å代ç ', width: 160 } |
| | | , { field: '产ååç§°', title: '产ååç§°', width: 160 } |
| | | , { field: 'è§æ ¼åå·', title: 'è§æ ¼åå·', width: 215 } |
| | | //, { field: 'hunitid', title: 'hunitid' } |
| | | , { field: 'ç产车é´ä»£ç ', title: 'ç产车é´ä»£ç ', width: 115 } |
| | | , { field: 'ç产车é´', title: 'ç产车é´', width: 115 } |
| | | , { field: 'ç产任å¡åæ°é', title: 'çäº§è®¢åæ°é', width: 115 } |
| | | , { field: '计éåä½ä»£ç ', title: '计éåä½ä»£ç ', width: 115 } |
| | | , { field: '计éåä½', title: '计éåä½' } |
| | | //, { field: 'hempid', title: 'hempid' } |
| | | , { field: 'ä¸å¡å代ç ', title: 'ä¸å¡å代ç ', width: 100 } |
| | | , { field: 'ä¸å¡å', title: 'ä¸å¡å' } |
| | | , { field: 'hcusid', title: 'hcusid' } |
| | | , { field: '客æ·ä»£ç ', title: '客æ·ä»£ç ' } |
| | | , { field: '客æ·', title: '客æ·' } |
| | | //, { field: 'HCenterID', title: 'HCenterID' } |
| | | , { field: 'å·¥ä½ä¸å¿ä»£ç ', title: 'å·¥ä½ä¸å¿ä»£ç ' } |
| | | , { field: 'å·¥ä½ä¸å¿', title: 'å·¥ä½ä¸å¿' } |
| | | //, { field: 'hbomid', title: 'hbomid' } |
| | | , { field: 'BOMåç¼ç ', title: 'BOMåç¼ç ' } |
| | | //, { field: 'HRoutingInterID', title: 'HRoutingInterID' } |
| | | , { field: 'å·¥èºè·¯çº¿ä»£ç ', title: 'å·¥èºè·¯çº¿ä»£ç ' } |
| | | , { field: 'å·¥èºè·¯çº¿', title: 'å·¥èºè·¯çº¿' } |
| | | , { field: '计åå¼å·¥æ¥æ', title: '计åå¼å·¥æ¥æ' } |
| | | , { field: '计åå®å·¥æ¥æ', title: '计åå®å·¥æ¥æ' } |
| | | , { field: 'æè¿å¼å·¥æ¥æ', title: 'æè¿å¼å·¥æ¥æ' } |
| | |
| | | , { field: 'å
³èæ°é', title: 'å
³èæ°é' } |
| | | , { field: 'æªå
³èæ°é', title: 'æªå
³èæ°é' } |
| | | , { field: 'è¡¨å¤´å¤æ³¨', title: 'è¡¨å¤´å¤æ³¨' } |
| | | //, { field: 'hsubid', title: 'hsubid' } |
| | | , { 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: 'å·¥èºè·¯çº¿ä»£ç ', 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} |
| | | ]] |
| | | }; |
| | | } |
| | |
| | | |
| | | //#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 HDeptName = $("#HDeptName").val();//åæ®å· |
| | | var HStatus = $("#HStatus").val();//åæ®å· |
| | | var HBillType = $("#HBillType").val();//åæ®ç±»å |
| | | 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 + "%'"; |
| | | } |
| | | 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(); |
| | | sWhere = ""; |
| | | } |
| | |
| | | , 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.html?OperationType=2&linterid=' + linterid + '&HSouceBillType=3772' |
| | | , content: '../../车é´ç®¡ç/å·¥åºæµè½¬å¡/Sc_ProcessExchangeBill.html?OperationType=2&linterid=' + linterid + '&HEntryID=' + HEntryID+'&HSouceBillType=3772' |
| | | }) |
| | | } else { |
| | | layer.msg('è¯·éæ©ä¸è¡æ°æ®ä¸æ¨ï¼'); |
| | |
| | | |
| | | } |
| | | //#endregion |
| | | //laydate.render({ |
| | | // elem: '#HDate' |
| | | // , type: 'datetime' |
| | | // , trigger: 'click' |
| | | // , format:'yyyy-MM-dd HH:mm' |
| | | //}); |
| | | |
| | | //鿰忥æé® |
| | | function set_ResCnz() { |
| | | var HBillno2 = $('#HBillno2').val(); |
| | | $.ajax({ |
| | | url: GetWEBURL() + '/Cg_POOrderBill/Resynchronize', |
| | | type: "GET", |
| | | data: { "HBillNo": HBillno2, "HBillType": 3710 }, |
| | | success: function (result) { |
| | | if (result.count == 1) { |
| | | layer.msg(result.Message, { time: 1 * 1000, icon: 1 }, function () { |
| | | // å¾å°frameç´¢å¼ |
| | | var index = layer.getFrameIndex(window.name); |
| | | //å
³éå½åframe |
| | | layer.close(index); |
| | | //ä¿®æ¹ä¸ºååå·æ°çé¢ |
| | | window.location.reload(); |
| | | }); |
| | | |
| | | } else { |
| | | layer.alert(result.code + result.Message, { icon: 5 }); |
| | | } |
| | | }, error: function () { |
| | | layer.close(wait); |
| | | layer.alert("æ¥å£è¯·æ±å¤±è´¥!", { icon: 5 }); |
| | | } |
| | | }); |
| | | } |
| | | //#endregion |
| | | |
| | | //#region å·æ° |
| | | function get_Refresh() { |
| | | set_ClearQuery(); |
| | |
| | | } |
| | | //#endregion |
| | | |
| | | //#region æå° |
| | | //é¢è§ |
| | | function get_ViewReport() { |
| | | var checkStatus = table.checkStatus('mainTable') |
| | | , data = checkStatus.data; |
| | | var PrintIds = ""; |
| | | if (checkStatus.data.length >= 1) { |
| | | for (var i = 0; i < data.length; i++) { |
| | | PrintIds += data[i].hmainid+"0"+data[i].HEntryID + "," |
| | | } |
| | | PrintIds = PrintIds.substring(0, PrintIds.length - 1); |
| | | layer.open({ |
| | | type: 2 |
| | | , area: ['50%', '50%'] |
| | | , title: 'æå°æ¨¡çéæ©' |
| | | , shade: 0.6 //é®ç½©éæåº¦ |
| | | , maxmin: false //å
许å
¨å±æå°å |
| | | , anim: 0 //0-6çå¨ç»å½¢å¼ï¼-1ä¸å¼å¯ |
| | | , content: ['../../BaseSet/SRM_OpenTmpList.html?linterid=' + PrintIds + '&MyMsg=' + data[0].hmainid.toString() + '&Type=HIcmoBill', 'yes'] |
| | | , resize: false |
| | | }) |
| | | } |
| | | else { |
| | | layer.msg('è¯·éæ©è³å°ä¸è¡æ°æ®æå°ï¼'); |
| | | } |
| | | } |
| | | |
| | | //æå° |
| | | function get_PrintReport() { |
| | | var checkStatus = table.checkStatus('mainTable') |
| | | , data = checkStatus.data; |
| | | var PrintIds = ""; |
| | | if (checkStatus.data.length >= 1) { |
| | | for (var i = 0; i < data.length; i++) { |
| | | PrintIds += data[i].hmainid + "-" + data[i].HEntryID + "," |
| | | } |
| | | PrintIds = PrintIds.substring(0, PrintIds.length - 1); |
| | | layer.open({ |
| | | type: 2 |
| | | , area: ['50%', '50%'] |
| | | , title: 'æå°æ¨¡çéæ©' |
| | | , shade: 0.6 //é®ç½©éæåº¦ |
| | | , maxmin: false //å
许å
¨å±æå°å |
| | | , anim: 0 //0-6çå¨ç»å½¢å¼ï¼-1ä¸å¼å¯ |
| | | , content: ['../../BaseSet/SRM_OpenTmpList.html?linterid=' + PrintIds + '&MyMsg=' + data[0].hmainid.toString() + '&Type=HIcmoBill', 'yes'] |
| | | , resize: false |
| | | }) |
| | | } |
| | | else { |
| | | layer.msg('è¯·éæ©è³å°ä¸è¡æ°æ®æå°ï¼'); |
| | | } |
| | | } |
| | | |
| | | //#endregion |
| | | |
| | | //以䏿¯layui模å |
| | | }); |
| | | |
| | | |
| | | |
| | | |
| | | </script> |
| | | |