| | |
| | | <script type="text/html" id="toolbarDemo"> |
| | | <div class="layui-btn-container"> |
| | | <button type="button" class="layui-btn layui-btn-sm" lay-event="set_Issue"><i class="layui-icon layui-icon-file-b"></i>ä¸è¾¾</button> |
| | | <button type="button" class="layui-btn layui-btn-sm" lay-event="set_ShowBill"><i class="layui-icon layui-icon-file-b"></i>ç¼è¾</button> |
| | | <button type="button" class="layui-btn layui-btn-sm" lay-event="get_Refresh"><i class="layui-icon layui-icon-refresh-3"></i>å·æ°</button> |
| | | <button type="button" class="layui-btn layui-btn-sm" lay-event="get_Exit"><i class="layui-icon layui-icon-logout"></i>éåº</button> |
| | | <!--<button type="button" class="layui-btn layui-btn-sm" lay-event="set_StationOut"><i class="layui-icon layui-icon-form"></i>å·¥åºåºç«æ±æ¥å</button>--> |
| | |
| | | break; |
| | | //ç¼è¾ |
| | | case 'set_ShowBill': set_ShowBill(); |
| | | break; |
| | | //ä¸è¾¾ |
| | | case 'set_Issue': set_Issue(); |
| | | break; |
| | | //å é¤ |
| | | case 'set_DeleteBill': set_DeleteBill(); |
| | |
| | | , limits: [50, 500, 5000, 20000] |
| | | , cols: [[ |
| | | { type: 'checkbox', fixed: 'left' } |
| | | , { field: 'hmainid', title: 'hmainid', width: 90, hide: true} |
| | | , { field: 'hmainid', title: 'hmainid', width: 90, hide: true } |
| | | , { field: 'HEntryID', title: 'HEntryID', width: 90, hide: true } |
| | | , { field: 'ä¸è¾¾ç¶æ', title: 'ä¸è¾¾ç¶æ' } |
| | | , { field: 'æå°æ¬¡æ°', title: 'æå°æ¬¡æ°' } |
| | | , { field: 'ç±»å', title: 'ç±»å' } |
| | | , { |
| | |
| | | } |
| | | , { field: '订åè·è¸ªå·', title: '订åè·è¸ªå·', width: 120 } |
| | | , { field: 'åæ®å·', title: 'åæ®å·', width: 190 } |
| | | , { field: 'hicmointerid', title: 'hicmointerid', width: 80, hide: true} |
| | | , { field: 'hicmointerid', title: 'hicmointerid', width: 80, hide: true } |
| | | , { field: 'ä»»å¡åå·', title: 'ä»»å¡åå·', width: 140 } |
| | | , { field: 'HWorkShopID', title: 'HWorkShopID', width: 80, hide: true} |
| | | , { field: 'HDeptID', title: 'HDeptID', width: 80, hide: true} |
| | | , { field: 'HWorkShopID', title: 'HWorkShopID', width: 80, hide: true } |
| | | , { field: 'HDeptID', title: 'HDeptID', width: 80, hide: true } |
| | | , { field: 'ç产车é´ä»£ç ', title: 'ç产车é´ä»£ç ', width: 115 } |
| | | , { field: 'ç产车é´', title: 'ç产车é´' } |
| | | , { field: 'æµæ°´å·', title: 'æµæ°´å·' } |
| | |
| | | , { field: 'å·¥åºåç§°', title: 'å·¥åºåç§°' } |
| | | , { field: 'æµè½¬å¡æ°é', title: 'æµè½¬å¡æ°é', width: 100 } |
| | | , { field: 'å§å¤æ è®°', title: 'å§å¤æ è®°' } |
| | | , { field: 'HMaterID', title: 'HMaterID', width: 80, hide: true} |
| | | , { field: 'HMaterID', title: 'HMaterID', width: 80, hide: true } |
| | | , { field: 'å件代ç ', title: 'å件代ç ' } |
| | | , { field: 'åä»¶åç§°', title: 'åä»¶åç§°' } |
| | | , { field: 'åä»¶è§æ ¼', title: 'åä»¶è§æ ¼' } |
| | | , { field: 'æ¹å·', title: 'æ¹å·' } |
| | | , { field: 'åææ¹æ¬¡å·', title: 'åææ¹æ¬¡å·' } |
| | | , { field: 'HMaterID2', title: 'HMaterID2', width: 80, hide: true} |
| | | , { field: 'HMaterID2', title: 'HMaterID2', width: 80, hide: true } |
| | | , { field: '产å代ç ', title: '产å代ç ' } |
| | | , { field: '产ååç§°', title: '产ååç§°' } |
| | | , { field: 'è§æ ¼åå·', title: 'è§æ ¼åå·' } |
| | | , { field: 'HUnitID', title: 'HUnitID', width: 80, hide: true} |
| | | , { field: 'HUnitID', title: 'HUnitID', width: 80, hide: true } |
| | | , { field: 'åä½ä»£ç ', title: 'åä½ä»£ç ' } |
| | | , { field: 'åä½', title: 'åä½' } |
| | | , { field: 'è®¾å¤æ¨¡å
·ä»£ç ', title: 'è®¾å¤æ¨¡å
·ä»£ç ' } |
| | |
| | | , { field: 'å
³éæ¥æ', title: 'å
³éæ¥æ' } |
| | | , { field: 'ä½åºäºº', title: 'ä½åºäºº' } |
| | | , { field: 'ä½åºæ¥æ', title: 'ä½åºæ¥æ' } |
| | | , { field: 'HBillType', title: 'HBillType', width: 80, hide: true} |
| | | , { field: 'hsubid', title: 'hsubid', width: 80, hide: true} |
| | | , { field: 'HBillType', title: 'HBillType', width: 80, hide: true } |
| | | , { field: 'hsubid', title: 'hsubid', width: 80, hide: true } |
| | | , { field: 'æåæ°é', title: 'æåæ°é' } |
| | | , { field: 'æºå客æ·ç¼ç ', title: 'æºå客æ·ç¼ç ', width: 80 } |
| | | , { field: 'å
è£
æ è¯', title: 'å
è£
æ è¯', width: 80 } |
| | |
| | | function get_Display(sWhere) { |
| | | sWhere += " and HPRDORGID=" + sessionStorage["OrganizationID"] + " "; |
| | | var ajaxLoad = layer.load(); |
| | | $.ajax({ |
| | | $.ajax({ |
| | | url: GetWEBURL() + '/LEMS/MES_Sc_ProcessExchangeIssueBillList_Json', |
| | | type: "GET", |
| | | data: { "sWhere": sWhere, "user": sessionStorage["HUserName"]}, |
| | | data: { "sWhere": sWhere, "user": sessionStorage["HUserName"] }, |
| | | success: function (data1) { |
| | | if (data1.count == 1) { |
| | | option.data = data1.data; |
| | |
| | | layer.close(ajaxLoad); |
| | | layer.alert("æ¥å£è¯·æ±å¤±è´¥!", { icon: 5 }); |
| | | } |
| | | }); |
| | | }); |
| | | DisPlay_HideColumn(); |
| | | } |
| | | |
| | |
| | | $.ajax({ |
| | | url: GetWEBURL() + '/Xt_grdAlignment_WMES/grdAlignmentWMESList', |
| | | type: "GET", |
| | | data: { "HModName": HModName+"_Sec", "user": sessionStorage["HUserName"] }, |
| | | data: { "HModName": HModName + "_Sec", "user": sessionStorage["HUserName"] }, |
| | | success: function (data1) { |
| | | if (data1.data.length != 0) { |
| | | |
| | |
| | | } |
| | | //#endregion |
| | | |
| | | //#region ä¸è¾¾ |
| | | function set_Issue() { |
| | | var checkStatus = table.checkStatus('mainTable') |
| | | , data = checkStatus.data; |
| | | if (checkStatus.data.length === 0) { |
| | | layer.msg('è¯·éæ©éè¦ä¸è¾¾çæ°æ®ï¼'); |
| | | return; |
| | | } |
| | | var linterid = ""; |
| | | for (var i = 0; i < data.length; i++) { |
| | | linterid += data[i].hmainid + "-" + data[i].HEntryID + ","; |
| | | } |
| | | linterid = linterid.substring(0, linterid.length - 1); |
| | | //if (AllowLoadData(sSubStr) != false) {//é空éªè¯ |
| | | layer.open({ |
| | | type: 2 |
| | | //, area: ['30%', '40%'] |
| | | , area: ['100%', '100%'] |
| | | , title: 'å·¥åºå表-ä¸è¾¾' |
| | | , shift: 0//å¼¹åºå¨ç» |
| | | , content: '../å·¥åºæµè½¬å¡/Sc_ProcessExchangeIssue.html?linterid=' + linterid |
| | | }) |
| | | } |
| | | //#endregion |
| | | |
| | | //å é¤ |
| | | function set_DeleteBill() { |
| | | var checkStatus = table.checkStatus('mainTable') |
| | |
| | | , content: '../../车é´ç®¡ç/å·¥åºåºç«æ±æ¥å/Cj_StationOutBill.html?OperationType=2&HBillNo=' + HBillNo + '&HProcNo=' + HProcNo |
| | | }) |
| | | } |
| | | |
| | | |
| | | } else { |
| | | layer.msg('è¯·éæ©ä¸è¡æ°æ®ä¸æ¨ï¼'); |
| | | } |