| | |
| | | <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> |
| | | <style type="text/css"> |
| | | input.layui-input.layui-unselect { |
| | | padding-right: 0; |
| | |
| | | <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="btn-Audit" lay-event="btn-Audit"><i class="layui-icon layui-icon-radio"></i>å®¡æ ¸</button> |
| | | <button type="button" class="layui-btn layui-btn-sm" style="display:none;" id="btn-DeAudit" lay-event="btn-DeAudit"><i class="layui-icon layui-icon-circle"></i>åå®¡æ ¸</button> |
| | | <button type="button" class="layui-btn layui-btn-sm" lay-event="btn-Close" id="Close"><i class="layui-icon layui-icon-radio"></i>å
³é</button> |
| | | <button type="button" class="layui-btn layui-btn-sm" lay-event="btn-DeClose" id="DeClose"><i class="layui-icon layui-icon-radio"></i>åå
³é</button> |
| | | <button type="button" class="layui-btn layui-btn-sm" lay-event="btn-Drop" id="Drop"><i class="layui-icon layui-icon-radio"></i>ä½åº</button> |
| | | <button type="button" class="layui-btn layui-btn-sm" lay-event="btn-DeDrop" id="DeDrop"><i class="layui-icon layui-icon-radio"></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="set_HideColumn" lay-event="set_HideColumn"><i class="layui-icon layui-icon-form"></i>å设置</button> |
| | |
| | | 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.$ |
| | |
| | | , laypage = layui.laypage |
| | | , laydate = layui.laydate |
| | | , util = layui.util |
| | | , soulTable = layui.soulTable |
| | | //æ¥è¯¢æ¡ä»¶ |
| | | var sWhere = ""; |
| | | var option = []; |
| | |
| | | break; |
| | | //å é¤ |
| | | case 'set_DeleteBill': set_DeleteBill(); |
| | | break; |
| | | //å®¡æ ¸æé® |
| | | case 'btn-Audit': |
| | | set_CheckBill(1); |
| | | break; |
| | | //åå®¡æ ¸æé® |
| | | case 'btn-DeAudit': |
| | | set_CheckBill(2); |
| | | break; |
| | | //å
³éæé® ï¼1:å
³éã2:åå
³éï¼ |
| | | case 'btn-Close': |
| | | set_CloseBill(1); |
| | | break; |
| | | //åå
³éæé® |
| | | case 'btn-DeClose': |
| | | set_CloseBill(2); |
| | | break; |
| | | //ä½åºæé® ï¼1:ä½åºã2:åä½åºï¼ |
| | | case 'btn-Drop': |
| | | set_DropBill(1); |
| | | break; |
| | | //åä½åºæé® |
| | | case 'btn-DeDrop': |
| | | set_DropBill(2); |
| | | break; |
| | | //å
³é |
| | | case 'set_CloseBill': set_CloseBill(); |
| | |
| | | } |
| | | }) |
| | | } |
| | | |
| | | |
| | | //#region åå®¡æ ¸/å®¡æ ¸æ°æ® |
| | | function set_CheckBill(num) { |
| | | var checkStatus = table.checkStatus('mainTable') |
| | | , data = checkStatus.data; |
| | | if (checkStatus.data.length === 1) { |
| | | var InterID = data[0].hmainid.toString(); |
| | | //é»è¾å®¡æ ¸æ¹æ³ |
| | | $.ajax({ |
| | | type: "GET", |
| | | url: GetWEBURL() + "/Kf_EntrustInBill/AuditKf_EntrustInBill", //æ¹æ³æå¨é¡µé¢åæ¹æ³å |
| | | data: { "HInterID": InterID, "Type": num, "user": sessionStorage["HUserName"] }, |
| | | 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); |
| | | //ä¿®æ¹ä¸ºååå·æ°çé¢ |
| | | $("#btnSearch").trigger('click'); |
| | | }); |
| | | |
| | | } else { |
| | | layer.alert(result.code + result.Message, { icon: 5 }); |
| | | } |
| | | }, error: function () { |
| | | layer.alert("æ¥å£è¯·æ±å¤±è´¥!", { icon: 5 }); |
| | | } |
| | | }); |
| | | } |
| | | else { |
| | | layer.msg('è¯·éæ©ä¸è¡æ°æ®å®¡æ ¸ï¼'); |
| | | } |
| | | } |
| | | //#endregion |
| | | |
| | | //#region åå
³é/å
³éæ°æ® |
| | | function set_CloseBill(num) { |
| | | var checkStatus = table.checkStatus('mainTable') |
| | | , data = checkStatus.data; |
| | | if (checkStatus.data.length === 1) { |
| | | var InterID = data[0].hmainid.toString(); |
| | | //é»è¾å®¡æ ¸æ¹æ³ |
| | | $.ajax({ |
| | | type: "GET", |
| | | url: GetWEBURL() + "/Kf_EntrustInBill/CloseKf_EntrustInBill", //æ¹æ³æå¨é¡µé¢åæ¹æ³å |
| | | data: { "HInterID": InterID, "Type": num, "user": sessionStorage["HUserName"] }, |
| | | 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); |
| | | //ä¿®æ¹ä¸ºååå·æ°çé¢ |
| | | $("#btnSearch").trigger('click'); |
| | | }); |
| | | |
| | | } else { |
| | | layer.alert(result.code + result.Message, { icon: 5 }); |
| | | } |
| | | }, error: function () { |
| | | layer.alert("æ¥å£è¯·æ±å¤±è´¥!", { icon: 5 }); |
| | | } |
| | | }); |
| | | } |
| | | else { |
| | | layer.msg('è¯·éæ©ä¸è¡æ°æ®å®¡æ ¸ï¼'); |
| | | } |
| | | } |
| | | //#endregion |
| | | |
| | | //#region åä½åº/ä½åºæ°æ® |
| | | function set_DropBill(num) { |
| | | var checkStatus = table.checkStatus('mainTable') |
| | | , data = checkStatus.data; |
| | | if (checkStatus.data.length === 1) { |
| | | var InterID = data[0].hmainid.toString(); |
| | | //é»è¾å®¡æ ¸æ¹æ³ |
| | | $.ajax({ |
| | | type: "GET", |
| | | url: GetWEBURL() + "/Kf_EntrustInBill/DropKf_EntrustInBill", //æ¹æ³æå¨é¡µé¢åæ¹æ³å |
| | | data: { "HInterID": InterID, "Type": num, "user": sessionStorage["HUserName"] }, |
| | | 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); |
| | | //ä¿®æ¹ä¸ºååå·æ°çé¢ |
| | | $("#btnSearch").trigger('click'); |
| | | }); |
| | | |
| | | } else { |
| | | layer.alert(result.code + result.Message, { icon: 5 }); |
| | | } |
| | | }, error: function () { |
| | | layer.alert("æ¥å£è¯·æ±å¤±è´¥!", { icon: 5 }); |
| | | } |
| | | }); |
| | | } |
| | | else { |
| | | layer.msg('è¯·éæ©ä¸è¡æ°æ®å®¡æ ¸ï¼'); |
| | | } |
| | | } |
| | | //#endregion |
| | | |
| | | |
| | | //æ¡ç æç» |
| | | function get_BarCodeDetail() { |
| | |
| | | , cellMinWidth: 90 |
| | | , limit: 50 |
| | | , limits: [50, 500, 5000, 20000] |
| | | , done: function (res, curr, count) { |
| | | soulTable.render(this); |
| | | } |
| | | , cols: [[ |
| | | { type: 'checkbox', fixed: 'left' } |
| | | ,{ field: 'hmainid', title: '忮ID', hide: true } |
| | | , { field: 'æ¥æ', title: 'æ¥æ', width: 160 } |
| | | , { field: 'åæ®å·', title: 'åæ®å·', width: 160 } |
| | | , { field: 'hsupid', title: 'hsupid', width: 160, hide: true } |
| | | , { field: 'å å·¥åä½ä»£ç ', title: 'å å·¥åä½ä»£ç ', width: 200 } |
| | | , { field: 'å å·¥åä½åç§°', title: 'å å·¥åä½åç§°', width: 200 } |
| | | , { field: 'HEmpID', title: 'HEmpID', width: 200, hide: true } |
| | | , { field: 'ä¸å¡å代ç ', title: 'ä¸å¡å代ç ', width: 200 } |
| | | , { field: 'ä¸å¡å', title: 'ä¸å¡å', width: 200 } |
| | | , { field: 'hmanagerid', title: 'hmanagerid', width: 200, hide: true } |
| | | , { field: '主管代ç ', title: '主管代ç ', width: 160 } |
| | | , { field: '主管', title: '主管', width: 160 } |
| | | , { field: 'hsecmanagerid', title: 'hsecmanagerid', width: 160, hide: true } |
| | | , { field: 'éªæ¶å代ç ', title: 'éªæ¶å代ç ', width: 200 } |
| | | , { field: 'éªæ¶å', title: 'éªæ¶å', width: 200 } |
| | | , { field: 'hkeeperid', title: 'hkeeperid', width: 200, hide: true } |
| | | , { field: 'ä¿ç®¡å代ç ', title: 'ä¿ç®¡å代ç ', width: 200 } |
| | | , { field: 'ä¿ç®¡å', title: 'ä¿ç®¡å', width: 200 } |
| | | , { field: 'HDeptID', title: 'HDeptID', width: 200, hide: true } |
| | | , { field: 'é¨é¨ä»£ç ', title: 'é¨é¨ä»£ç ', width: 200 } |
| | | , { field: 'é¨é¨', title: 'é¨é¨', width: 115 } |
| | | , { field: 'æè¦', title: 'æè¦', width: 115 } |
| | | , { 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: 'hsubid', title: 'hsubid', width: 115, hide: true } |
| | | , { field: 'hmaterid', title: 'hmaterid', width: 200, hide: true } |
| | | , { field: 'ç©æä»£ç ', title: 'ç©æä»£ç ', width: 200 } |
| | | , { field: 'ç©æåç§°', title: 'ç©æåç§°', width: 200 } |
| | | , { field: 'è§æ ¼åå·', title: 'è§æ ¼åå·', width: 200 } |
| | | , { field: 'éå 屿§', title: 'éå 屿§', width: 200 } |
| | | , { field: 'é¢è²', title: 'é¢è²', width: 200 } |
| | | , { field: 'hunitid', title: 'hunitid', width: 200, hide: true } |
| | | , { 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: 'hwhid', title: 'hwhid', width: 200, hide: true } |
| | | , { field: 'åè´§ä»åºä»£ç ', title: 'åè´§ä»åºä»£ç ', width: 200 } |
| | | , { field: 'åè´§ä»åº', title: 'åè´§ä»åº', width: 200 } |
| | | , { field: 'è¡å
³é人', title: 'è¡å
³é人', width: 200 } |
| | | , { field: 'å
³éç±»å', title: 'å
³éç±»å', width: 200 } |
| | | , { field: '表ä½å¤æ³¨', title: '表ä½å¤æ³¨', width: 200 } |
| | | , { field: 'æºå主å
ç ', title: 'æºå主å
ç ', width: 200, hide: true } |
| | | , { field: 'æºååå
ç ', title: 'æºååå
ç ', width: 200 } |
| | | , { field: 'æºååå·', title: 'æºååå·', width: 200 } |
| | | , { field: 'æºåç±»å', title: 'æºåç±»å', width: 200 } |
| | | , { field: 'éè´è®¢å主ID', title: 'éè´è®¢å主ID', width: 200, hide: true } |
| | | , { field: 'éè´è®¢ååID', title: 'éè´è®¢ååID', width: 200, hide: true } |
| | | , { field: 'éè´è®¢åå·', title: 'éè´è®¢åå·', width: 200 } |
| | | , { field: 'éå®è®¢å主ID', title: 'éå®è®¢å主ID', width: 200, hide: true } |
| | | , { field: 'éå®è®¢ååID', title: 'éå®è®¢ååID', width: 200, hide: true } |
| | | , { field: 'éå®è®¢åå·', title: 'éå®è®¢åå·', width: 200 } |
| | | , { field: 'å
³èæ°é', title: 'å
³èæ°é', width: 200 } |
| | | , { field: 'HBillType', title: 'HBillType', width: 200, hide: true } |
| | | , { field: 'hmainid', title: '忮ID', hide: true, sort: true } |
| | | , { field: 'æ¥æ', title: 'æ¥æ', width: 160, sort: true } |
| | | , { field: 'åæ®å·', title: 'åæ®å·', width: 160, sort: true } |
| | | , { field: 'hsupid', title: 'hsupid', width: 160, hide: true, sort: true } |
| | | , { field: 'å å·¥åä½ä»£ç ', title: 'å å·¥åä½ä»£ç ', width: 200, sort: true } |
| | | , { field: 'å å·¥åä½åç§°', title: 'å å·¥åä½åç§°', width: 200, sort: true } |
| | | , { field: 'HEmpID', title: 'HEmpID', width: 200, hide: true, sort: true } |
| | | , { field: 'ä¸å¡å代ç ', title: 'ä¸å¡å代ç ', width: 200, sort: true } |
| | | , { field: 'ä¸å¡å', title: 'ä¸å¡å', width: 200, sort: true } |
| | | , { field: 'hmanagerid', title: 'hmanagerid', width: 200, hide: true, sort: true } |
| | | , { field: '主管代ç ', title: '主管代ç ', width: 160, sort: true } |
| | | , { field: '主管', title: '主管', width: 160, sort: true } |
| | | , { field: 'hsecmanagerid', title: 'hsecmanagerid', width: 160, hide: true, sort: true } |
| | | , { field: 'éªæ¶å代ç ', title: 'éªæ¶å代ç ', width: 200, sort: true } |
| | | , { field: 'éªæ¶å', title: 'éªæ¶å', width: 200, sort: true } |
| | | , { field: 'hkeeperid', title: 'hkeeperid', width: 200, hide: true, sort: true } |
| | | , { field: 'ä¿ç®¡å代ç ', title: 'ä¿ç®¡å代ç ', width: 200, sort: true } |
| | | , { field: 'ä¿ç®¡å', title: 'ä¿ç®¡å', width: 200, sort: true } |
| | | , { field: 'HDeptID', title: 'HDeptID', width: 200, hide: true, sort: true } |
| | | , { field: 'é¨é¨ä»£ç ', title: 'é¨é¨ä»£ç ', width: 200, sort: true } |
| | | , { field: 'é¨é¨', title: 'é¨é¨', width: 115, sort: true } |
| | | , { field: 'æè¦', title: 'æè¦', width: 115, 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: 115, 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: 115, 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: 200, sort: true } |
| | | , { field: 'éå 屿§', title: 'éå 屿§', width: 200, sort: true } |
| | | , { field: 'é¢è²', title: 'é¢è²', width: 200, sort: true } |
| | | , { field: 'hunitid', title: 'hunitid', width: 200, 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: 200, sort: true } |
| | | , { field: 'hwhid', title: 'hwhid', width: 200, 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: 200, hide: true, sort: true } |
| | | , { field: 'æºååå
ç ', title: 'æºååå
ç ', width: 200, sort: true } |
| | | , { field: 'æºååå·', title: 'æºååå·', width: 200, sort: true } |
| | | , { field: 'æºåç±»å', title: 'æºåç±»å', width: 200, sort: true } |
| | | , { field: 'éè´è®¢å主ID', title: 'éè´è®¢å主ID', width: 200, hide: true, sort: true } |
| | | , { field: 'éè´è®¢ååID', title: 'éè´è®¢ååID', width: 200, hide: true, sort: true } |
| | | , { field: 'éè´è®¢åå·', title: 'éè´è®¢åå·', width: 200, sort: true } |
| | | , { field: 'éå®è®¢å主ID', title: 'éå®è®¢å主ID', width: 200, hide: true, sort: true } |
| | | , { field: 'éå®è®¢ååID', title: 'éå®è®¢ååID', width: 200, hide: true, sort: true } |
| | | , { field: 'éå®è®¢åå·', title: 'éå®è®¢åå·', width: 200, sort: true } |
| | | , { field: 'å
³èæ°é', title: 'å
³èæ°é', width: 200, sort: true } |
| | | , { field: 'HBillType', title: 'HBillType', width: 200, hide: true, sort: true } |
| | | ]] |
| | | }; |
| | | } |