| | |
| | | <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-Pushdown"><i class="layui-icon layui-icon-form"></i>䏿¨</button> |
| | | <button type="button" class="layui-btn layui-btn-sm" lay-event="add"><i class="layui-icon"></i>æ·»å </button> |
| | | |
| | | </div> |
| | | </script> |
| | |
| | | </div> |
| | | </div> |
| | | </div> |
| | | |
| | | <script type="text/html" id="barDemo"> |
| | | <a class="layui-btn layui-btn-xs" lay-event="edit">ç¼è¾</a> |
| | | <a class="layui-btn layui-btn-danger layui-btn-xs" lay-event="del">å é¤</a> |
| | | </script> |
| | | <script src="../../../layuiadmin/layui/layui.js"></script> |
| | | <script src="../../../layuiadmin/Scripts/json2.js"></script> |
| | | <script src="../../../layuiadmin/Scripts/jquery-1.4.1.js"></script> |
| | |
| | | |
| | | var option = { |
| | | elem: '#mainTable' |
| | | //, toolbar: '#toolbarDemo' |
| | | , toolbar: '#toolbarDemo' |
| | | ,height: 'full-50' |
| | | , page: true |
| | | ,cellMinWidth: 90 |
| | | , cols: [[ |
| | | { type: 'checkbox' } |
| | | //{ field: 'hmainid', title: 'hmainid', sort: true, width: 165 } |
| | | { field: 'HDate', title: 'æ¥æ', sort: true, width: 120 } |
| | | , { field: 'HBillNo', title: 'åæ®å·', sort: true, width: 170 } |
| | | , { field: 'hmainid', title: 'hmainid', sort: true, fixed: true, hide: true } |
| | | ,{ field: 'æ¥æ', title: 'æ¥æ', sort: true, width: 120 } |
| | | , { field: 'åæ®å·', title: 'åæ®å·', sort: true, width: 170 } |
| | | //, { field: 'HBillStatus ', title: 'åæ®ç¶æ', width: 105 } |
| | | , { field: 'HICMOBillNo', title: 'ä»»å¡åå·' } |
| | | , { field: 'HMaterID', title: 'HMaterID' } |
| | | ////, { field: 'hunitid', title: 'hunitid' } |
| | | , { field: 'HMaterID ', title: '产åID ', width: 115 } |
| | | , { field: 'HMaterNumber', title: '产å代ç ' } |
| | | , { field: 'ç©æä»£ç ', title: 'ç©æä»£ç ', width: 115 } |
| | | , { field: 'ç©æåç§°', title: 'ç©æåç§°' } |
| | | ////, { field: 'hempid', title: 'hempid' } |
| | | , { field: 'HUnitID', title: 'åä½ID', width: 100 } |
| | | , { field: 'è§æ ¼åå·', title: 'è§æ ¼åå·', width: 100 } |
| | | , { field: 'HUnitNumber', title: 'åä½ä»£ç ' } |
| | | , { field: 'HPlanQty', title: 'ç产æ°é' } |
| | | , { field: 'HPlanBeginDate', title: '计åå¼å·¥æ¥æ' } |
| | | , { field: 'HPlanEndDate', title: '计åå®å·¥æ¥æ' } |
| | | , { field: 'åä½', title: 'åä½' } |
| | | , { field: 'hunitid', title: 'hunitid' } |
| | | , { field: '计éåä½ä»£ç ', title: '计éåä½ä»£ç ' } |
| | | ////, { field: 'HCenterID', title: 'HCenterID' } |
| | | , { field: 'HExplanation', title: 'æè¦' } |
| | | , { field: 'HRemark ', title: '夿³¨' } |
| | | , { field: '计éåä½', title: '计éåä½' } |
| | | , { field: 'ç产æ°é ', title: 'ç产æ°é' } |
| | | ////, { field: 'hbomid', title: 'hbomid' } |
| | | , { field: 'HInnerBillNo', title: 'å
é¨åæ®å·' } |
| | | , { field: 'HSupID', title: 'å§å¤å å·¥åä½' } |
| | | , { field: 'HMarker', title: 'æ£éªäºº' } |
| | | , { field: 'HBacker', title: 'éå人' } |
| | | , { field: 'HBackDate', title: 'é忥æ' } |
| | | , { field: 'HChecker', title: 'å®¡æ ¸äºº' } |
| | | , { field: 'HCheckDate', title: 'å®¡æ ¸æ¥æ' } |
| | | , { field: 'HMaker', title: 'å¶å人' } |
| | | , { field: 'HMakeDate', title: 'å¶åæ¥æ' } |
| | | , { field: 'HUpDater', title: 'ä¿®æ¹äºº' } |
| | | , { field: 'HUpDateDate', title: 'ä¿®æ¹æ¥æ' } |
| | | , { field: 'HCloseMan', title: 'å
³é人' } |
| | | , { field: 'HCloseDate', title: 'å
³éæ¥æ' } |
| | | , { field: 'HCloseType', title: 'å
³éç±»å' } |
| | | , { field: '计åå¼å·¥æ¥æ', title: '计åå¼å·¥æ¥æ' } |
| | | , { field: '计åå®å·¥æ¥æ', title: '计åå®å·¥æ¥æ' } |
| | | , { field: 'æè¦', title: 'æè¦' } |
| | | , { field: 'è¡¨å¤´å¤æ³¨', title: 'è¡¨å¤´å¤æ³¨' } |
| | | , { field: 'å
é¨åæ®å·', title: 'å
é¨åæ®å·' } |
| | | , { field: 'hicmointerid', title: 'hicmointerid' } |
| | | , { field: 'ä»»å¡åå·', title: 'ä»»å¡åå·' } |
| | | , { field: 'å¶å人', title: 'å¶å人' } |
| | | , { field: 'å¶åæ¥æ', title: 'å¶åæ¥æ' } |
| | | , { field: 'å®¡æ ¸äºº', title: 'å®¡æ ¸äºº' } |
| | | , { field: 'å®¡æ ¸æ¥æ', title: 'å®¡æ ¸æ¥æ' } |
| | | , { field: 'ä¿®æ¹äºº', title: 'ä¿®æ¹äºº' } |
| | | , { field: 'ä¿®æ¹æ¥æ', title: 'ä¿®æ¹æ¥æ' } |
| | | , { field: 'å
³é人', title: 'å
³é人' } |
| | | ////, { field: 'hsubid', title: 'hsubid' } |
| | | , { field: 'HDeleteMan', title: 'ä½åºäºº' } |
| | | , { field: 'HDeleteDate', 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: 'ä½åºäºº', title: 'ä½åºäºº' } |
| | | , { field: 'ä½åºæ¥æ', title: 'ä½åºæ¥æ' } |
| | | , { field: 'hsubid', title: 'hsubid' , fixed: true, hide: true} |
| | | , { field: 'å·¥åºè®¡ååå·', title: 'å·¥åºè®¡ååå·' } |
| | | , { field: 'å·¥åºå·', title: 'å·¥åºå·' } |
| | | , { field: 'hprocid', title: 'hprocid' } |
| | | , { field: 'å·¥åºä»£ç ', title: 'å·¥åºä»£ç ' } |
| | | , { field: 'å·¥åº', title: 'å·¥åº' } |
| | | , { field: 'å 工说æ', title: 'å 工说æ' } |
| | | , { field: 'å¼å·¥åºå¤©', title: 'å¼å·¥åºå¤©' } |
| | | , { field: 'å¼å·¥åºæ°', title: 'å¼å·¥åºæ°' } |
| | | , { field: 'HCenterID', title: 'HCenterID' } |
| | | , { field: 'å·¥ä½ä¸å¿ä»£ç ', title: 'å·¥ä½ä¸å¿ä»£ç ' } |
| | | , { field: 'å·¥ä½ä¸å¿', title: 'å·¥ä½ä¸å¿' } |
| | | , { field: 'HDeptID', title: 'HDeptID' } |
| | | , { field: 'å 工车é´ä»£ç ', title: 'å 工车é´ä»£ç ' } |
| | | , { field: 'å 工车é´', title: 'å 工车é´' } |
| | | , { field: 'HGroupID', title: 'HGroupID' } |
| | | , { field: 'çç»ä»£ç ', title: 'çç»ä»£ç ' } |
| | | , { field: 'çç»åç§°', title: 'çç»åç§°' } |
| | | , { field: 'HWorkerID', title: 'HWorkerID' } |
| | | , { field: 'æä½å代ç ', title: 'æä½å代ç ' } |
| | | , { field: 'æä½å', title: 'æä½å' } |
| | | , { field: 'HSourceID', title: 'HSourceID' } |
| | | , { 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' } |
| | | , { field: 'éå®è®¢ååID', title: 'éå®è®¢ååID' } |
| | | , { field: 'éå®è®¢åå·', title: 'éå®è®¢åå·' } |
| | | , { field: 'HBillType', title: 'HBillType' } |
| | | , { field: 'åæ®ç±»å', title: 'åæ®ç±»å' } |
| | | , { field: 'HBillSubType', title: 'HBillSubType' } |
| | | , { field: 'HQtyDecimal', title: 'HQtyDecimal' } |
| | | , { field: 'HPriceDecimal', title: 'HPriceDecimal' } |
| | | |
| | | //,{fixed: 'right', title:'æä½', toolbar: '#barDemo', width:150} |
| | | ]] |
| | | }; |
| | | |
| | | |
| | | //çå¬è¡å·¥å
·äºä»¶ |
| | | //table.on('tool(mainTable)', function(obj){ |
| | | // var data = obj.data; |
| | | // //console.log(obj) |
| | | // if(obj.event == 'del'){ |
| | | // layer.confirm('ççå é¤è¡ä¹', function(index){ |
| | | // obj.del(); |
| | | // layer.close(index); |
| | | // }); |
| | | // } else if(obj.event == 'edit'){ |
| | | // layer.prompt({ |
| | | // formType: 2 |
| | | // ,value: data.HDate |
| | | // }, function(value, index){ |
| | | // obj.update({ |
| | | // HDate: value |
| | | // }); |
| | | // layer.close(index); |
| | | // }); |
| | | // //layer.alert('ææ¯ç¼è¾ä¸'); |
| | | // } |
| | | //}); |
| | | //头工å
·æ äºä»¶ |
| | | 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_ProcessSendWork.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 'add': |
| | | var date = new Date(); |
| | | var day = date.getDate(); |
| | | var month = date.getMonth() + 1; |
| | | var year = date.getFullYear(); |
| | | var shijian = year + "/" + month + "/" + day; |
| | | layer.msg(shijian); |
| | | break; |
| | | case '': |
| | | layer.msg(''); |
| | | break; |
| | | |
| | | }; |
| | | }); |
| | | |
| | | //è¿å
¥é¡µé¢æ¾ç¤ºçç¼åå表 |
| | | var index0 = layer.load(0, { shade: false }); |
| | | $.ajax({ |
| | | //url: "http://61.130.49.162:9090/WMSAPI///Web/GetMAXNum", |
| | | url: GetWEBURL() + '/LEMS/MES_Sc_ProcessPlanMain_Json', |
| | | url: GetWEBURL() + '/Sc_ProcessMangement/MES_Sc_ProcessPlanMain_Json', |
| | | type: "GET", |
| | | data: { "sWhere": sWhere }, |
| | | success: function (data1) { |
| | |
| | | } |
| | | var index = layer.load(0, { shade: false }); |
| | | $.ajax({ |
| | | url: GetWEBURL() + '/LEMS/MES_Sc_ProcessPlanMain_Json', |
| | | url: GetWEBURL() + '/Sc_ProcessMangement/MES_Sc_ProcessPlanMain_Json', |
| | | type: "GET", |
| | | data: { "sWhere": sWhere }, |
| | | success: function (data1) { |