| | |
| | | <!DOCTYPE html> |
| | | <html xmlns="http://www.w3.org/1999/xhtml"> |
| | | <head> |
| | | <meta http-equiv="Content-Type" content="text/html; charset=utf-8"/> |
| | | <title>çäº§å·¥åºæ±æ¥åå表</title> |
| | | <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> |
| | | <title>çäº§å·¥åºæ´¾å·¥åå表</title> |
| | | <meta name="renderer" content="webkit"> |
| | | <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1"> |
| | | <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1"> |
| | | <link rel="stylesheet" href="../../../layuiadmin/layui/css/layui.css" media="all"> |
| | | <link rel="stylesheet" href="../../../layuiadmin/style/admin.css" media="all"> |
| | | <script src="../../../layuiadmin/layui/layui.js"></script> |
| | | |
| | | <script src="../../../layuiadmin/soulTable.slim.js"></script> |
| | | |
| | | </head> |
| | | <body> |
| | | <div class="layui-fluid"> |
| | |
| | | <script type="text/html" id="toolbarDemo"> |
| | | <div class="layui-btn-container"> |
| | | <!--<button type="button" class="layui-btn layui-btn-sm" lay-event="btn-getCheckData"><i class="layui-icon layui-icon-tips"></i>é¢è§</button>--> |
| | | <button type="button" class="layui-btn layui-btn-sm" lay-event="btn-reload"><i class="layui-icon layui-icon-refresh"></i>å·æ°</button> |
| | | <button type="button" class="layui-btn layui-btn-sm" lay-event="btn-confirm" id="btn_confirm"><i class="layui-icon layui-icon-ok-circle"></i>确认</button> |
| | | <button type="button" class="layui-btn layui-btn-sm" lay-event="btn-back" id="btn_back"><i class="layui-icon layui-icon-close-fill"></i>驳å</button> |
| | | <button type="button" class="layui-btn layui-btn-sm" lay-event="btn-details"><i class="layui-icon layui-icon-form"></i>详æ
</button> |
| | | <button type="button" class="layui-btn layui-btn-sm" lay-event="btn-generate"><i class="layui-icon layui-icon-file"></i>çæéè´§å</button> |
| | | <button type="button" class="layui-btn layui-btn-sm" lay-event="btn-exit"><i class="layui-icon layui-icon-return"></i>éåº</button> |
| | | <!--<button type="button" class="layui-btn layui-btn-sm" lay-event="btn-reload"><i class="layui-icon layui-icon-refresh"></i>å·æ°</button> |
| | | <button type="button" class="layui-btn layui-btn-sm" lay-event="btn-confirm" id="btn_confirm"><i class="layui-icon layui-icon-ok-circle"></i>确认</button> |
| | | <button type="button" class="layui-btn layui-btn-sm" lay-event="btn-back" id="btn_back"><i class="layui-icon layui-icon-close-fill"></i>驳å</button> |
| | | <button type="button" class="layui-btn layui-btn-sm" lay-event="btn-details"><i class="layui-icon layui-icon-form"></i>详æ
</button> |
| | | <button type="button" class="layui-btn layui-btn-sm" lay-event="btn-generate"><i class="layui-icon layui-icon-file"></i>çæéè´§å</button> |
| | | <button type="button" class="layui-btn layui-btn-sm" lay-event="btn-exit"><i class="layui-icon layui-icon-return"></i>éåº</button>--> |
| | | <button type="button" class="layui-btn layui-btn-sm" lay-event="btn-Add"><i class="layui-icon layui-icon-file-b"></i>æ°å¢</button> |
| | | <button type="button" class="layui-btn layui-btn-sm" lay-event="btn-Edit"><i class="layui-icon layui-icon-form"></i>ç¼è¾</button> |
| | | <button type="button" class="layui-btn layui-btn-sm" lay-event="btn-Pushdown"><i class="layui-icon layui-icon-form"></i>䏿¨</button> |
| | | |
| | | </div> |
| | | </script> |
| | |
| | | base: '../../../layuiadmin/' //éæèµæºæå¨è·¯å¾ |
| | | }).extend({ |
| | | index: 'lib/index', //主å
¥å£æ¨¡å |
| | | }).use(['index', 'form', 'table', 'element', 'laypage','laydate'], function () { |
| | | }).use(['index', 'form', 'table', 'element', 'laypage', 'laydate','soulTable'], function () { |
| | | var $ = layui.$ |
| | | , admin = layui.admin |
| | | , layer = layui.layer |
| | |
| | | , element = layui.element |
| | | , laypage = layui.laypage |
| | | , laydate = layui.laydate |
| | | , soulTable = layui.soulTable |
| | | //var sWhere = " 产å代ç = 'BX0002'"; |
| | | var sWhere = ""; |
| | | |
| | | var option = { |
| | | elem: '#mainTable' |
| | | //, toolbar: '#toolbarDemo' |
| | | , toolbar: '#toolbarDemo' |
| | | ,height: 'full-50' |
| | | , page: true |
| | | ,cellMinWidth: 90 |
| | | , cellMinWidth: 90 |
| | | , limit: 50 |
| | | , limits: [50, 500, 5000, 20000] |
| | | , done: function (res, curr, count) { |
| | | soulTable.render(this); |
| | | } |
| | | , cols: [[ |
| | | //{ field: 'hmainid', title: 'hmainid', sort: true, width: 165 } |
| | | { type: 'checkbox' } |
| | | ,{ field: 'HDate', title: 'æ¥æ', sort: true, width: 120 } |
| | | , { field: 'HBillNo', title: 'åæ®å·', sort: true, width: 170 } |
| | | , { field: 'HBillStatus ', title: 'åæ®ç¶æ', width: 105 } |
| | | , { field: 'HICMOBillNo', title: 'ä»»å¡åå·' } |
| | | , { field: 'HCheckItemNowID', title: 'å½åå®¡æ ¸é¡¹ç®' } |
| | | , { field: 'HCheckItemNextID', title: 'å¾
å®¡æ ¸é¡¹ç®' } |
| | | , { field: 'HCheckFlowID', title: 'å®¡æ¹æµ' } |
| | | , { field: 'HICMOInterID', title: 'ä»»å¡åID', width: 115 } |
| | | , { field: 'HProcPlanBillNo', title: 'å·¥åºè®¡ååå·', width: 115 } |
| | | , { field: 'HPlanBeginDate', title: 'å·¥åºè®¡åå¼å·¥æ¥æ' } |
| | | , { field: 'HPlanEndDate', title: 'å·¥åºè®¡åå®å·¥æ¥æ', width: 160 } |
| | | , { field: 'HBatchNo', title: 'æ¹å·', width: 160 } |
| | | , { field: 'HSeOrderInterID ', title: 'éå®è®¢å主ID', width: 215 } |
| | | ////, { field: 'hunitid', title: 'hunitid' } |
| | | , { field: 'HSeOrderEntryID ', title: 'éå®åID ', width: 115 } |
| | | , { field: 'HSeOrderBillNo', title: 'éå®è®¢åå·' } |
| | | ////, { field: 'hempid', title: 'hempid' } |
| | | , { field: 'HProcID ', title: 'å·¥åºID', width: 100 } |
| | | , { field: 'HProcNumber', title: 'å·¥åºä»£ç ' } |
| | | , { field: 'HDeptID', title: 'é¨é¨ID' } |
| | | , { field: 'HDeptNumber', title: 'é¨é¨ä»£ç ' } |
| | | , { field: 'HGroupID', title: 'çç»ID' } |
| | | ////, { field: 'HCenterID', title: 'HCenterID' } |
| | | , { field: 'HGroupNumber', title: 'çç»ä»£ç ' } |
| | | , { field: 'HMaterID ', title: '产åID' } |
| | | ////, { field: 'hbomid', title: 'hbomid' } |
| | | , { field: 'HMaterNumber', title: '产å代ç ' } |
| | | ////, { field: 'HRoutingInterID', title: 'HRoutingInterID' } |
| | | , { field: 'HUnitID ', title: 'åä½ID' } |
| | | , { field: 'HUnitNumber', title: 'åä½ä»£ç ' } |
| | | , { field: 'HRoutingInterID', title: 'å·¥åºè·¯çº¿ID' } |
| | | , { field: 'HPlanQty', title: 'å·¥åºè®¡åç产æ°é' } |
| | | , { field: 'HExplanation', title: 'æè¦' } |
| | | , { field: 'HInnerBillNo', title: 'å
é¨åæ®å·' } |
| | | , { field: 'HBacker', title: 'éå人' } |
| | | , { field: 'HBackDate', title: 'é忥æ ' } |
| | | , { field: 'HChecker', title: 'å®¡æ ¸äºº' } |
| | | , { field: 'HCheckDate', title: 'å®¡æ ¸æ¥æ' } |
| | | , { field: 'HMaker', title: 'å¶å人' } |
| | | ////, { field: 'hsubid', title: 'hsubid' } |
| | | , { field: 'HMakeDate', title: 'å¶åæ¥æ' } |
| | | , { field: 'HUpDater', title: 'ä¿®æ¹äºº' } |
| | | , { field: 'HUpDateDate', title: 'ä¿®æ¹æ¥æ' } |
| | | , { field: 'HCloseMan', title: 'å
³é人' } |
| | | , { field: 'HCloseDate', title: 'å
³éæ¥æ' } |
| | | , { field: 'HCloseType', title: 'å
³éç±»å ' } |
| | | , { field: 'HDeleteMan', title: 'ä½åºäºº' } |
| | | , { field: 'HDeleteDate', title: 'ä½åºæ¥æ' } |
| | | //, { field: 'ä¿®æ¹æ¥æ', title: 'ä¿®æ¹æ¥æ' } |
| | | //, { field: 'HDeleteMan', title: 'å
³é人' } |
| | | //, { field: 'å
³éæ¥æ', title: 'å
³éæ¥æ' } |
| | | //, { field: 'ä½åºäºº', title: 'ä½åºäºº' } |
| | | //, { field: 'ä½åºæ¥æ', title: 'ä½åºæ¥æ' } |
| | | //, { field: 'è¡å
³é人', title: 'è¡å
³é人' } |
| | | //, { field: 'å
³éç±»å', title: 'å
³éç±»å' } |
| | | //, { field: 'åæ®ç±»å', title: 'åæ®ç±»å' } |
| | | //, { field: '计åè·è¸ªå·', title: '计åè·è¸ªå·' } |
| | | { type: 'checkbox' } |
| | | ,{ field: 'hmainid', title: 'hmainid', sort: true, fixed: true, hide: true } |
| | | ,{ field: 'æ¥æ', title: 'æ¥æ', sort: true, width: 120 } |
| | | , { field: 'åæ®å·', title: 'åæ®å·', sort: true, width: 170 } |
| | | , { field: 'HDeptID ', title: 'HDeptID', width: 105, sort: true } |
| | | , { field: 'é¨é¨ä»£ç ', title: 'é¨é¨ä»£ç ', sort: true } |
| | | , { field: 'é¨é¨', title: 'é¨é¨', sort: true } |
| | | , { field: 'HMaterID', title: 'HMaterID', sort: true } |
| | | , { field: 'ç©æä»£ç ', title: 'ç©æä»£ç ', sort: true } |
| | | , { field: 'ç©æåç§°', title: 'ç©æåç§°', width: 115, sort: true } |
| | | , { field: 'è§æ ¼åå·', title: 'è§æ ¼åå·', width: 115, sort: true } |
| | | , { field: 'HUnitID', title: 'HUnitID', sort: true } |
| | | , { field: '计éåä½ä»£ç ', title: '计éåä½ä»£ç ', width: 160, sort: true } |
| | | , { field: '计éåä½', title: '计éåä½', width: 160, sort: true } |
| | | , { field: 'HprocID ', title: 'HprocID', width: 215, sort: true } |
| | | , { field: 'å·¥åºä»£ç ', title: 'å·¥åºä»£ç ', width: 115, sort: true } |
| | | , { field: 'å·¥åº', title: 'å·¥åº', sort: true } |
| | | , { field: 'HGroupID ', title: 'HGroupID', width: 100, sort: true } |
| | | , { field: 'çç»ä»£ç ', title: 'çç»ä»£ç ', sort: true } |
| | | , { field: 'çç»åç§°', title: 'çç»åç§°', sort: true } |
| | | , { field: 'HSourceID', title: 'HSourceID', sort: true } |
| | | , { field: 'èµæºä»£ç ', title: 'èµæºä»£ç ', sort: true } |
| | | , { field: 'çäº§èµæº', title: 'çäº§èµæº', sort: true } |
| | | , { field: 'HWorkerID ', title: 'HWorkerID', sort: true } |
| | | , { field: 'èå代ç ', title: 'èå代ç ', sort: true } |
| | | , { field: 'èå ', title: 'èå', sort: true } |
| | | , { field: 'hsubid', title: 'hsubid', hide: true, sort: true } |
| | | , { field: 'æ°é', title: 'æ°é', sort: true } |
| | | , { field: '计åå¼å·¥æ¥æ', title: '计åå¼å·¥æ¥æ', sort: true } |
| | | , { field: '计åå®å·¥æ¥æ', title: '计åå®å·¥æ¥æ', sort: true } |
| | | , { field: '计åå·¥æ¶', title: '计åå·¥æ¶', sort: true } |
| | | , { field: '表ä½å¤æ³¨', title: '表ä½å¤æ³¨', sort: true } |
| | | , { field: 'HICMOInterID', title: 'HICMOInterID ', sort: true } |
| | | , { field: 'ç产任å¡åå·', title: 'ç产任å¡åå·', sort: true } |
| | | , { field: 'HSeOrderInterID', title: 'HSeOrderInterID', 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 } |
| | | , { 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 } |
| | | , { field: 'æºåç±»å', title: 'æºåç±»å', sort: true } |
| | | , { field: 'è¡å
³é人', title: 'è¡å
³é人', sort: true } |
| | | , { field: 'HBillType', title: 'HBillType', sort: true } |
| | | , { field: 'HQtyDecimal', title: 'HQtyDecimal', sort: true } |
| | | , { field: 'HPriceDecimal', title: 'HPriceDecimal', sort: true } |
| | | |
| | | ]] |
| | | }; |
| | | |
| | | //头工å
·æ äºä»¶ |
| | | table.on('toolbar(mainTable)', function (obj) { |
| | | var checkStatus = table.checkStatus(obj.config.id); |
| | | switch (obj.event) { |
| | | case 'btn-Pushdown': |
| | | var checkStatus = table.checkStatus('mainTable') |
| | | , data = checkStatus.data; |
| | | ajaxLabelData = data; |
| | | var rows = ''; |
| | | var HEntry = ''; |
| | | for (var i = 0; i < data.length; i++) { |
| | | rows += data[i].hmainid.toString() + ',' ; |
| | | |
| | | } |
| | | if (checkStatus.data.length < 1) |
| | | { |
| | | layer.msg('è¯·éæ©ä¸è¡æ°æ®ä¸æ¨'); |
| | | } else |
| | | { |
| | | |
| | | //页é¢å± |
| | | layer.open({ |
| | | type: 2 //pageå±ç±»å |
| | | ,area: ['100%', '100%'] |
| | | ,title: 'æ°å¢å·¥åºæ±æ¥å' |
| | | ,shade: 0.6 //é®ç½©éæåº¦ |
| | | ,maxmin: false //å
许å
¨å±æå°å |
| | | , anim: 0 //0-6çå¨ç»å½¢å¼ï¼-1ä¸å¼å¯ |
| | | , content: ['../å·¥åºæ±æ¥å/Sc_Add_ProcessReportList.html?hinterid=' + data[0].hmainid.toString() + '&lentryid=' + rows.toString().substring(0, rows.length - 1), |
| | | '&PlanBeginDate=' + data[0].计åå¼å·¥æ¥æ.toString(), '&PlanEndDate=' + data[0].计åå®å·¥æ¥æ.toString(), |
| | | |
| | | 'yes'] |
| | | |
| | | , resize: false |
| | | , cancel: function () { |
| | | //$(".layui-btn").removeclass("layui-btn-disabled"); |
| | | } |
| | | |
| | | }); |
| | | |
| | | } |
| | | break; |
| | | //æ·»å |
| | | case 'btn-Add': |
| | | //页é¢å±-èªå®ä¹ |
| | | layer.open({ |
| | | type: 2, |
| | | skin: 'layui-layer-rim', //å ä¸è¾¹æ¡ |
| | | title: 'å·¥åºè®¡åå', |
| | | closeBtn: 1, |
| | | shift: 2, |
| | | area: ['100%', '100%'], |
| | | maxmin: true, |
| | | content: '../../ç产工åºç®¡ç/å·¥åºæ±æ¥å/Sc_Add_ProcessReportList.html?HInterID=-1&OperationType=1&linterid=0&HSouceBillType=0&linteridSub=-1', |
| | | end: function () { |
| | | //å·æ°é¡µé¢, |
| | | location.reload(); |
| | | }, |
| | | success: function (layero, index) { |
| | | |
| | | } |
| | | }); |
| | | break; |
| | | case '': |
| | | layer.msg(''); |
| | | break; |
| | | |
| | | }; |
| | | }); |
| | | |
| | | //è¿å
¥é¡µé¢æ¾ç¤ºçç¼åå表 |
| | | var index0 = layer.load(0, { shade: false }); |
| | |
| | | //url: "http://61.130.49.162:9090/WMSAPI///Web/GetMAXNum", |
| | | url: GetWEBURL() + '/Sc_ProcessMangement/MES_Sc_ProcessSendWorkMain_Json', |
| | | type: "GET", |
| | | data: { "sWhere": sWhere }, |
| | | data: { "sWhere": sWhere, "user": sessionStorage["HUserName"] }, |
| | | success: function (data1) { |
| | | if (data1.count == 1) { |
| | | option.data = data1.data; |
| | |
| | | $.ajax({ |
| | | url: GetWEBURL() + '/Sc_ProcessMangement/MES_Sc_ProcessSendWorkMain_Json', |
| | | type: "GET", |
| | | data: { "sWhere": sWhere }, |
| | | data: { "sWhere": sWhere, "user": sessionStorage["HUserName"]}, |
| | | success: function (data1) { |
| | | if (data1.count == 1) { |
| | | option.data = data1.data; |