| | |
| | | <script src="../../../layuiadmin/Scripts/webConfig.js"></script> |
| | | <script src="../../../layuiadmin/PubCustom.js"></script> |
| | | <script src="../../../layuiadmin/zgqCustom/zgqCustom.js"></script> |
| | | <script src="../../../layuiadmin/HideButton.js"></script> |
| | | <script src="../../../layuiadmin/soulTable.slim.js"></script> |
| | | <script src="../../../layuiadmin/PageTitle.js"></script> |
| | | <style type="text/css"> |
| | | input.layui-input.layui-unselect { |
| | | padding-right: 0; |
| | |
| | | <table class="" id="mainTable" lay-filter="mainTable"></table> |
| | | <script type="text/html" id="toolbarDemo"> |
| | | <div class="layui-btn-container"> |
| | | <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-view"><i class="layui-icon layui-icon-tips"></i>é¢è§</button> |
| | | <button type="button" class="layui-btn layui-btn-sm" lay-event="btn-print"><i class="layui-icon layui-icon-print"></i>æå°</button> |
| | | <button type="button" class="layui-btn layui-btn-sm" lay-event="btn-audit"><i class="layui-icon layui-icon-repeat"></i>å®¡æ ¸</button> |
| | | <button type="button" class="layui-btn layui-btn-sm" lay-event="btn-Faudit"><i class="layui-icon layui-icon-refresh"></i>åå®¡æ ¸</button> |
| | | <button type="button" class="layui-btn layui-btn-sm" lay-event="btn-Delete"><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="set_HideColumn"><i class="layui-icon layui-icon-form"></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" style="display:none;" id="btn-Add" lay-event="btn-Add"><i class="layui-icon layui-icon-file-b"></i>æ°å¢</button> |
| | | <button type="button" class="layui-btn layui-btn-sm" style="display:none;" id="btn-Edit" lay-event="btn-Edit"><i class="layui-icon layui-icon-form"></i>ç¼è¾</button> |
| | | <button type="button" class="layui-btn layui-btn-sm" style="display:none;" id="btn-view" lay-event="btn-view"><i class="layui-icon layui-icon-tips"></i>é¢è§</button> |
| | | <button type="button" class="layui-btn layui-btn-sm" style="display:none;" id="btn-print" lay-event="btn-print"><i class="layui-icon layui-icon-print"></i>æå°</button> |
| | | <button type="button" class="layui-btn layui-btn-sm" style="display:none;" id="btn-audit" lay-event="btn-audit"><i class="layui-icon layui-icon-repeat"></i>å®¡æ ¸</button> |
| | | <button type="button" class="layui-btn layui-btn-sm" style="display:none;" id="btn-Faudit" lay-event="btn-Faudit"><i class="layui-icon layui-icon-refresh"></i>åå®¡æ ¸</button> |
| | | <button type="button" class="layui-btn layui-btn-sm" style="display:none;" id="btn-Delete" lay-event="btn-Delete"><i class="layui-icon layui-icon-delete"></i>å é¤</button> |
| | | <button type="button" class="layui-btn layui-btn-sm" style="display:none;" id="get_Refresh" lay-event="get_Refresh"><i class="layui-icon layui-icon-refresh-3"></i>å·æ°</button> |
| | | <button type="button" class="layui-btn layui-btn-sm" style="display:none;" id="set_HideColumn" lay-event="set_HideColumn"><i class="layui-icon layui-icon-form"></i>å设置</button> |
| | | <button type="button" class="layui-btn layui-btn-sm" style="display:none;" lay-event="set_HideButton" id="HideButton"><i class="layui-icon layui-icon-form"></i>æé®è®¾ç½®</button> |
| | | <button type="button" class="layui-btn layui-btn-sm" style="display:none;" id="get_Exit" lay-event="get_Exit"><i class="layui-icon layui-icon-logout"></i>éåº</button> |
| | | </div> |
| | | </script> |
| | | </form> |
| | |
| | | base: '../../../layuiadmin/' //éæèµæºæå¨è·¯å¾ |
| | | }).extend({ |
| | | index: 'lib/index', //主å
¥å£æ¨¡å |
| | | }).use(['index', 'form', 'table', 'element', 'laypage', 'laydate'], function () { |
| | | }).use(['index', 'form', 'table', 'element', 'laypage', 'laydate','soulTable'], function () { |
| | | //#region å
Œ
±åé |
| | | var $ = layui.$ |
| | | , admin = layui.admin |
| | |
| | | , laypage = layui.laypage |
| | | , laydate = layui.laydate |
| | | , util = layui.util |
| | | , soulTable = layui.soulTable |
| | | //æ¥è¯¢æ¡ä»¶ |
| | | var sWhere = ""; |
| | | var option = []; |
| | | |
| | | |
| | | //#region ã卿è·å模ååç§°ã |
| | | var HModuleType = "1243"; |
| | | //éè¿åæ®ç±»åï¼ä»æ°æ®åºå¨æè·ååæ®æ¨¡åå½å,å¼ç¨jsæä»¶ PageTitle.js |
| | | var HPageTitle = get_PageTitle(HModuleType) == "" ? document.title : get_PageTitle(HModuleType); |
| | | //#endregion |
| | | //#endregion |
| | | |
| | | //#region è¿å
¥é¡µé¢å è½½ |
| | |
| | | table.on('toolbar(mainTable)', function (obj) { |
| | | switch (obj.event) { |
| | | //æ°å¢ |
| | | case 'set_AddNew': set_AddNew(); |
| | | case 'btn-Add': set_AddNew(); |
| | | break; |
| | | //ç¼è¾ |
| | | case 'set_ShowBill': set_ShowBill(); |
| | | break; |
| | | //å é¤ |
| | | case 'set_DeleteBill': set_DeleteBill(); |
| | | case 'btn-Delete': set_DeleteBill(); |
| | | break; |
| | | //å
³é |
| | | case 'set_CloseBill': set_CloseBill(); |
| | | break; |
| | | //å设置 |
| | | case 'set_HideColumn': get_HideColumn(); |
| | | break; |
| | | //æé®è®¾ç½® |
| | | case 'set_HideButton': |
| | | var btns = document.getElementsByTagName("button"); //è·åæ¬é¡µæææé®å¯¹è±¡ |
| | | var HBillType = "1243"; |
| | | get_HideButton(btns, HBillType, HModName, sessionStorage["HUserName"]); |
| | | break; |
| | | }; |
| | | }); |
| | |
| | | , toolbar: '#toolbarDemo' |
| | | , height: 'full-50' |
| | | , page: true |
| | | , totalRow: true |
| | | , cellMinWidth: 90 |
| | | , limits: [50, 500, 5000, 20000] |
| | | , limit: 50 |
| | | , done: function (res, curr, count) { |
| | | soulTable.render(this); |
| | | } |
| | | , cols: [[ |
| | | { field: 'hmainid', title: '忮ID', hide: true } |
| | | , { field: 'æ¥æ', title: 'æ¥æ', width: 160 } |
| | | , { field: 'åæ®å·', title: 'åæ®å·', width: 160 } |
| | | , { field: 'HEmpID', title: 'HEmpID', width: 160, hide: true } |
| | | , { field: 'ä¸å¡å代ç ', title: 'ä¸å¡å代ç ', width: 200 } |
| | | , { field: 'ä¸å¡å', title: 'ä¸å¡å', width: 200 } |
| | | , { field: 'HMangerID', title: 'HMangerID', width: 200, hide: true } |
| | | , { field: '主管代ç ', title: '主管代ç ', width: 200 } |
| | | , { field: '主管', title: '主管', width: 200 } |
| | | , { field: 'hsecmanagerid', title: 'hsecmanagerid', width: 200, hide: true } |
| | | , { field: 'éªæ¶å代ç ', title: 'éªæ¶å代ç ', width: 200 } |
| | | , { field: 'éªæ¶å', title: 'éªæ¶å', width: 160 } |
| | | , { field: 'hkeeperid', title: 'hkeeperid', width: 160, hide: true } |
| | | , { field: 'ä¿ç®¡å代ç ', title: 'ä¿ç®¡å代ç ', width: 160 } |
| | | , { field: 'ä¿ç®¡å', title: 'ä¿ç®¡å', width: 200 } |
| | | , { field: 'æè¦', title: 'æè¦', width: 200 } |
| | | , { field: 'è¡¨å¤´å¤æ³¨', title: 'è¡¨å¤´å¤æ³¨', width: 200 } |
| | | // , { field: '红èåæ è®°', title: '红èåæ è®°', width: 200 } |
| | | , { field: 'hsubid', title: 'hsubid', width: 200, hide: true } |
| | | , { field: 'ç©æä»£ç ', title: 'ç©æä»£ç ', width: 200 } |
| | | , { field: 'ç©æåç§°', title: 'ç©æåç§°', width: 200 } |
| | | , { field: 'è§æ ¼åå·', title: 'è§æ ¼åå·', width: 115 } |
| | | , { field: 'hunitid', title: 'hunitid', width: 115, hide: true } |
| | | , { field: '计éåä½ä»£ç ', title: '计éåä½ä»£ç ', width: 200 } |
| | | , { field: '计éåä½', title: '计éåä½', width: 200 } |
| | | , { field: 'åºæ¶æ°é', title: 'åºæ¶æ°é', width: 115 } |
| | | , { field: '宿¶æ°é', title: '宿¶æ°é', width: 200 } |
| | | , { field: 'åä»·', title: 'åä»·', width: 200 } |
| | | , { field: 'éé¢', title: 'éé¢', width: 200 } |
| | | , { field: 'è°å
¥ä»åºä»£ç ', title: 'è°å
¥ä»åºä»£ç ', width: 200 } |
| | | , { field: 'è°å
¥ä»åº', title: 'è°å
¥ä»åº', width: 115 } |
| | | , { field: 'è°åºä»åºä»£ç ', title: 'è°åºä»åºä»£ç ', width: 200 } |
| | | , { field: 'è°åºä»åº', title: 'è°åºä»åº', width: 200 } |
| | | , { field: '表ä½å¤æ³¨', title: '表ä½å¤æ³¨', width: 200 } |
| | | , { field: 'æºååå·', title: 'æºååå·', width: 115 } |
| | | , { field: 'éè´è®¢åå·', title: 'éè´è®¢åå·', width: 200 } |
| | | , { field: 'éå®è®¢åå·', title: 'éå®è®¢åå·', width: 200 } |
| | | , { field: 'å¶å人', title: 'å¶å人', width: 200 } |
| | | , { field: 'å¶åæ¥æ', title: 'å¶åæ¥æ', width: 200 } |
| | | , { field: 'å®¡æ ¸äºº', title: 'å®¡æ ¸äºº', width: 200 } |
| | | , { field: 'å®¡æ ¸æ¥æ', title: 'å®¡æ ¸æ¥æ', width: 200 } |
| | | , { field: 'ä¿®æ¹äºº', title: 'ä¿®æ¹äºº', width: 115 } |
| | | , { field: 'ä¿®æ¹æ¥æ', title: 'ä¿®æ¹æ¥æ', width: 200 } |
| | | , { field: 'å
³é人', title: 'å
³é人', width: 200 } |
| | | , { field: 'å
³éæ¥æ', title: 'å
³éæ¥æ', width: 200 } |
| | | , { field: 'ä½åºäºº', title: 'ä½åºäºº', width: 200 } |
| | | , { field: 'ä½åºæ¥æ', title: 'ä½åºæ¥æ', width: 200 } |
| | | , { field: 'è¡å
³é人', title: 'è¡å
³é人', width: 200 } |
| | | , { field: 'å
³éç±»å', title: 'å
³éç±»å', width: 200 } |
| | | { type: 'checkbox', fixed: 'left', totalRowText: 'å计' } |
| | | , { field: 'hmainid', title: '忮ID', hide: true, sort: true } |
| | | , { field: 'HBillSubType', title: 'åæ®ç±»å', hide: true, sort: true } |
| | | , { field: 'æ¥æ', title: 'æ¥æ', width: 160, sort: true } |
| | | , { field: 'åæ®å·', title: 'åæ®å·', width: 160, sort: true } |
| | | , { field: 'ç¶æ', title: 'ç¶æ', width: 160, sort: true } |
| | | , { field: 'è¡ç¶æ', title: 'è¡ç¶æ', width: 160, sort: true } |
| | | , { field: 'HEmpID', title: 'HEmpID', width: 160, hide: true, sort: true } |
| | | , { field: 'ä¸å¡å代ç ', title: 'ä¸å¡å代ç ', width: 200, sort: true } |
| | | , { field: 'ä¸å¡å', title: 'ä¸å¡å', width: 200, sort: true } |
| | | , { field: 'HMangerID', title: 'HMangerID', width: 200, hide: true, sort: true } |
| | | , { field: '主管代ç ', title: '主管代ç ', width: 200, sort: true } |
| | | , { field: '主管', title: '主管', width: 200, sort: true } |
| | | , { field: 'hsecmanagerid', title: 'hsecmanagerid', width: 200, hide: true, sort: true } |
| | | , { field: 'éªæ¶å代ç ', title: 'éªæ¶å代ç ', width: 200, sort: true } |
| | | , { field: 'éªæ¶å', title: 'éªæ¶å', width: 160, sort: true } |
| | | , { field: 'hkeeperid', title: 'hkeeperid', width: 160, hide: true, sort: true } |
| | | , { field: 'ä¿ç®¡å代ç ', title: 'ä¿ç®¡å代ç ', width: 160, sort: true } |
| | | , { field: 'ä¿ç®¡å', title: 'ä¿ç®¡å', width: 200, sort: true } |
| | | , { field: 'æè¦', title: 'æè¦', width: 200, sort: true } |
| | | , { field: 'è¡¨å¤´å¤æ³¨', title: 'è¡¨å¤´å¤æ³¨', width: 200, sort: true } |
| | | // , { field: '红èåæ è®°', title: '红èåæ è®°', width: 200 , sort: true} |
| | | , { field: 'hsubid', title: 'hsubid', width: 200, hide: true, sort: true } |
| | | , { field: 'HMaterID', title: 'HMaterID', width: 200, hide: true, sort: true } |
| | | , { field: 'ç©æä»£ç ', title: 'ç©æä»£ç ', width: 200, sort: true } |
| | | , { field: 'ç©æåç§°', title: 'ç©æåç§°', width: 200, sort: true } |
| | | , { field: 'è§æ ¼åå·', title: 'è§æ ¼åå·', width: 115, sort: true } |
| | | , { field: 'HPropertyID', title: 'HPropertyID', width: 115, hide: true, sort: true } |
| | | , { field: 'è¾
å©å±æ§', title: 'è¾
å©å±æ§', width: 200, hide: true,sort: true } |
| | | , { field: 'HUnitID', title: 'HUnitID', width: 115, hide: true, sort: true } |
| | | , { field: '计éåä½ä»£ç ', title: '计éåä½ä»£ç ', width: 200, sort: true } |
| | | , { field: '计éåä½', title: '计éåä½', width: 200, sort: true } |
| | | , { field: 'åºæ¶æ°é', title: 'åºæ¶æ°é', width: 115, sort: true, totalRow: true} |
| | | , { field: '宿¶æ°é', title: '宿¶æ°é', width: 200, sort: true, totalRow: true } |
| | | , { field: 'å
³èæ°é', title: 'å
³èæ°é', width: 200, sort: true, totalRow: true } |
| | | , { field: 'åä»·', title: 'åä»·', width: 200, sort: true, totalRow: true } |
| | | , { field: 'éé¢', title: 'éé¢', width: 200, sort: true, totalRow: true } |
| | | , { field: 'HWHID', title: 'HWHID', width: 115, hide: true, sort: true } |
| | | , { field: 'è°å
¥ä»åºä»£ç ', title: 'è°å
¥ä»åºä»£ç ', width: 200, sort: true } |
| | | , { field: 'è°å
¥ä»åº', title: 'è°å
¥ä»åº', width: 115, sort: true } |
| | | , { field: 'HSCWHID', title: 'HSCWHID', width: 115, hide: true, sort: true } |
| | | , { field: 'è°åºä»åºä»£ç ', title: 'è°åºä»åºä»£ç ', width: 200, sort: true } |
| | | , { field: 'è°åºä»åº', title: 'è°åºä»åº', width: 200, sort: true } |
| | | , { field: '表ä½å¤æ³¨', title: '表ä½å¤æ³¨', width: 200, sort: true } |
| | | , { field: 'æºååå·', title: 'æºååå·', width: 115, sort: true } |
| | | , { field: 'HPOOrderInterID', title: 'HPOOrderInterID', width: 115, hide: true, sort: true } |
| | | , { field: 'HPOOrderEntryID', title: 'HPOOrderEntryID', width: 115, hide: true, sort: true } |
| | | , { field: 'éè´è®¢åå·', title: 'éè´è®¢åå·', width: 200, sort: true } |
| | | , { field: 'HSeOrderInterID', title: 'HSeOrderInterID', width: 115, hide: true, sort: true } |
| | | , { field: 'HSeOrderEntryID', title: 'HSeOrderEntryID', width: 115, hide: true, sort: true } |
| | | , { field: 'éå®è®¢åå·', title: 'éå®è®¢åå·', width: 200, sort: true } |
| | | , { field: 'å¶å人', title: 'å¶å人', width: 200, sort: true } |
| | | , { field: 'å¶åæ¥æ', title: 'å¶åæ¥æ', width: 200, sort: true } |
| | | , { field: 'å®¡æ ¸äºº', title: 'å®¡æ ¸äºº', width: 200, sort: true } |
| | | , { field: 'å®¡æ ¸æ¥æ', title: 'å®¡æ ¸æ¥æ', width: 200, sort: true } |
| | | , { field: 'ä¿®æ¹äºº', title: 'ä¿®æ¹äºº', width: 115, sort: true } |
| | | , { field: 'ä¿®æ¹æ¥æ', title: 'ä¿®æ¹æ¥æ', width: 200, sort: true } |
| | | , { field: 'å
³é人', title: 'å
³é人', width: 200, sort: true } |
| | | , { field: 'å
³éæ¥æ', title: 'å
³éæ¥æ', width: 200, sort: true } |
| | | , { field: 'ä½åºäºº', title: 'ä½åºäºº', width: 200, sort: true } |
| | | , { field: 'ä½åºæ¥æ', title: 'ä½åºæ¥æ', width: 200, sort: true } |
| | | , { field: 'è¡å
³é人', title: 'è¡å
³é人', width: 200, sort: true } |
| | | , { field: 'å
³éç±»å', title: 'å
³éç±»å', width: 200, sort: true } |
| | | ]] |
| | | }; |
| | | } |
| | |
| | | option.data = data1.data; |
| | | table.render(option); |
| | | layer.close(ajaxLoad); |
| | | |
| | | //å·æ°æé®æ¾ç¤º |
| | | var btns = document.getElementsByTagName("button"); //è·åæ¬é¡µæææé®å¯¹è±¡ |
| | | var HBillType = "1243"; |
| | | Display_HideButton(btns, HBillType, HModName, sessionStorage["HUserName"]); |
| | | } else { |
| | | layer.close(ajaxLoad); |
| | | layer.alert(data1.code + data1.Message, { icon: 5 }); |
| | |
| | | DisPlay_HideColumn(); |
| | | } |
| | | |
| | | //æ°å¢ |
| | | function set_AddNew() { |
| | | layer.open({ |
| | | type: 2, |
| | | skin: 'layui-layer-rim', //å ä¸è¾¹æ¡ |
| | | title: 'æ°å¢' + HPageTitle, |
| | | closeBtn: 1, |
| | | shift: 2, |
| | | area: ['100%', '100%'], |
| | | maxmin: true, |
| | | content: './Kf_MoveStockRequestBillEdit.html?OperationType=1&linterid=&HSouceBillType=0&closeType=1', |
| | | end: function () { |
| | | //å·æ°é¡µé¢, |
| | | get_FastQuery(table, option); |
| | | }, |
| | | success: function (layero, index) { |
| | | |
| | | } |
| | | }); |
| | | } |
| | | |
| | | //ç¼è¾ |
| | | function set_ShowBill() { |
| | | var checkStatus = table.checkStatus('mainTable') |
| | | , data = checkStatus.data; |
| | | if (checkStatus.data.length === 1) { |
| | | var hID = data[0].hmainid.toString(); |
| | | //if (AllowLoadData(sSubStr) != false) {//é空éªè¯ |
| | | layer.open({ |
| | | type: 2 |
| | | , area: ['100%', '100%'] |
| | | , title: 'ç¼è¾ç´æ¥è°æ¨å' |
| | | , closeBtn: 1 |
| | | , shade: 0.6 //é®ç½©éæåº¦ |
| | | , maxmin: true //å
许å
¨å±æå°å |
| | | , anim: 0 //0-6çå¨ç»å½¢å¼ï¼-1ä¸å¼å¯ |
| | | , content: './Kf_MoveStockRequestBillEdit.html?OperationType=3&linterid=' + hID + '&HSouceBillType=0&closeType=1' |
| | | , resize: false, |
| | | end: function () { |
| | | //å·æ°é¡µé¢, |
| | | location.reload(); |
| | | } |
| | | , cancel: function () { |
| | | //$(".layui-btn").removeClass("layui-btn-disabled"); |
| | | } |
| | | }) |
| | | |
| | | } else { |
| | | layer.msg('è¯·éæ©ä¸è¡æ°æ®ç¼è¾ï¼'); |
| | | } |
| | | } |
| | | |
| | | //å é¤ |
| | | function set_DeleteBill() { |
| | | var checkStatus = table.checkStatus('mainTable') |
| | | , data = checkStatus.data; |
| | | if (checkStatus.data.length === 1) { |
| | | var InterID = data[0].hmainid.toString(); |
| | | //é»è¾å 餿¹æ³ |
| | | layer.confirm("确认è¦å é¤åï¼å é¤åä¸è½æ¢å¤", { title: "å é¤ç¡®è®¤" }, function (index) { |
| | | var wait = layer.load(); |
| | | $.ajax({ |
| | | type: "GET", |
| | | url: GetWEBURL() + "/Kf_MoveStockRequestBill/DeltetKf_MoveStockRequestBill", //æ¹æ³æå¨é¡µé¢åæ¹æ³å |
| | | data: { "HInterID": InterID }, |
| | | 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 }); |
| | | } |
| | | layer.close(wait); |
| | | }, error: function () { |
| | | layer.close(wait); |
| | | layer.alert("æ¥å£è¯·æ±å¤±è´¥!", { icon: 5 }); |
| | | } |
| | | }); |
| | | }) |
| | | } |
| | | else { |
| | | layer.msg('è¯·éæ©ä¸è¡æ°æ®å é¤ï¼'); |
| | | } |
| | | } |
| | | |
| | | //éèå设置 |
| | | function get_HideColumn() { |
| | |
| | | } else { |
| | | table.render(option); |
| | | } |
| | | |
| | | //å·æ°æé®æ¾ç¤º |
| | | var btns = document.getElementsByTagName("button"); //è·åæ¬é¡µæææé®å¯¹è±¡ |
| | | var HBillType = "1243"; |
| | | Display_HideButton(btns, HBillType, HModName, sessionStorage["HUserName"]); |
| | | |
| | | }, error: function () { |
| | | layer.alert("æ¥å£è¯·æ±å¤±è´¥!", { icon: 5 }); |
| | | } |