| | |
| | | <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-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-exit"><i class="layui-icon layui-icon-return"></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> |
| | |
| | | |
| | | var option = { |
| | | elem: '#mainTable' |
| | | //, toolbar: '#toolbarDemo' |
| | | , toolbar: '#toolbarDemo' |
| | | ,height: 'full-50' |
| | | , page: true |
| | | ,cellMinWidth: 90 |
| | | , 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 } |
| | | , { field: 'é¨é¨ä»£ç ', title: 'é¨é¨ä»£ç ' } |
| | | , { field: 'é¨é¨', title: 'é¨é¨' } |
| | | , { field: 'HMaterID', title: 'HMaterID' } |
| | | , { field: 'ç©æä»£ç ', title: 'ç©æä»£ç ' } |
| | | , { field: 'ç©æåç§°', title: 'ç©æåç§°', width: 115 } |
| | | , { field: 'è§æ ¼åå·', title: 'è§æ ¼åå·', width: 115 } |
| | | , { field: 'HUnitID', title: 'HUnitID' } |
| | | , { field: '计éåä½ä»£ç ', title: '计éåä½ä»£ç ', width: 160 } |
| | | , { field: '计éåä½', title: '计éåä½', width: 160 } |
| | | , { field: 'HprocID ', title: 'HprocID', width: 215 } |
| | | , { field: 'å·¥åºä»£ç ', title: 'å·¥åºä»£ç ', width: 115 } |
| | | , { field: 'å·¥åº', title: 'å·¥åº' } |
| | | , { field: 'HGroupID ', title: 'HGroupID', width: 100 } |
| | | , { field: 'çç»ä»£ç ', title: 'çç»ä»£ç ' } |
| | | , { field: 'çç»åç§°', title: 'çç»åç§°' } |
| | | , { field: 'HSourceID', title: 'HSourceID' } |
| | | , { field: 'èµæºä»£ç ', title: 'èµæºä»£ç ' } |
| | | , { field: 'çäº§èµæº', title: 'çäº§èµæº' } |
| | | , { field: 'HWorkerID ', title: 'HWorkerID' } |
| | | , { field: 'èå代ç ', title: 'èå代ç ' } |
| | | , { field: 'èå ', title: 'èå' } |
| | | , { field: 'hsubid', title: 'hsubid', hide: true } |
| | | , { field: 'æ°é', title: 'æ°é' } |
| | | , { field: '计åå¼å·¥æ¥æ', title: '计åå¼å·¥æ¥æ' } |
| | | , { field: '计åå®å·¥æ¥æ', title: '计åå®å·¥æ¥æ' } |
| | | , { field: '计åå·¥æ¶', title: '计åå·¥æ¶' } |
| | | , { field: '表ä½å¤æ³¨', title: '表ä½å¤æ³¨' } |
| | | , { field: 'HICMOInterID', title: 'HICMOInterID ' } |
| | | , { field: 'ç产任å¡åå·', title: 'ç产任å¡åå·' } |
| | | , { field: 'HSeOrderInterID', title: 'HSeOrderInterID' } |
| | | , { 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: 'HBillType', title: 'HBillType' } |
| | | , { field: 'HQtyDecimal', title: 'HQtyDecimal' } |
| | | , { field: 'HPriceDecimal', title: 'HPriceDecimal' } |
| | | |
| | | ]] |
| | | }; |
| | | |
| | | //头工å
·æ äºä»¶ |
| | | 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 '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({ |