| | |
| | | <script src="../../../layuiadmin/Scripts/jquery-1.4.1.js"></script> |
| | | <script src="../../../layuiadmin/Scripts/webConfig.js"></script> |
| | | <script src="../../../layuiadmin/PubCustom.js"></script> |
| | | <script src="../../../layuiadmin/soulTable.slim.js"></script> |
| | | <style type="text/css"> |
| | | input.layui-input.layui-unselect { |
| | | padding-right: 0; |
| | |
| | | <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-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="get_Exit"><i class="layui-icon layui-icon-logout"></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.$ |
| | | , admin = layui.admin |
| | |
| | | , laypage = layui.laypage |
| | | , laydate = layui.laydate |
| | | , util = layui.util |
| | | , soulTable = layui.soulTable |
| | | //æ¥è¯¢æ¡ä»¶ |
| | | var sWhere = ""; |
| | | var option = []; |
| | |
| | | break; |
| | | //å é¤ |
| | | case 'btn-Delete': set_DeleteBill(); |
| | | break; |
| | | //å®¡æ ¸ |
| | | case 'btn-audit': get_Audit(); |
| | | break; |
| | | //åå®¡æ ¸ |
| | | case 'btn-Faudit': get_FAudit(); |
| | | break; |
| | | //å·æ° |
| | | case 'get_Refresh': get_Refresh(); |
| | |
| | | , height: 'full-50' |
| | | , page: true |
| | | , 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: 195 } |
| | | , { field: 'å¼å§æ¥æ', title: 'å¼å§æ¥æ', width: 125, templet: "<div>{{d.å¼å§æ¥æ ==null ?'':layui.util.toDateString(d.å¼å§æ¥æ, 'yyyy-MM-dd')}}</div>" } |
| | | , { field: 'ç»ææ¥æ', title: 'ç»ææ¥æ', width: 125, templet: "<div>{{d.ç»ææ¥æ ==null ?'':layui.util.toDateString(d.ç»ææ¥æ, 'yyyy-MM-dd')}}</div>" } |
| | | , { field: 'åæ®ç±»å', title: 'åæ®ç±»å', width: 110, hide: true } |
| | | , { field: '模å
·ä»£ç ', title: 'å¨å
·ä»£ç ', width: 125 } |
| | | , { field: '模å
·åç§°', title: 'å¨å
·åç§°', width: 125 } |
| | | , { field: 'è§æ ¼åå·', title: 'è§æ ¼åå·', width: 125 } |
| | | , { field: '计åå·¥æ¶', title: '计åå·¥æ¶', width: 125 } |
| | | , { field: 'å®é
å·¥æ¶', title: 'å®é
å·¥æ¶', width: 125 } |
| | | , { field: 'æ¹å¶æ°é', title: 'æ¹å¶æ°é', width: 125 } |
| | | , { field: 'HNewMaterID', title: 'HNewMaterID', width: 200, hide: true } |
| | | , { field: 'æ°ç©æä»£ç ', title: 'æ°ç©æä»£ç ', width: 115 } |
| | | , { field: 'æ°ç©æ', title: 'æ°ç©æ', width: 125 } |
| | | , { field: 'HRepairID', title: 'HRepairID', width: 200, hide: true } |
| | | , { field: 'æ¹å¶é¡¹ç®ä»£ç ', title: 'æ¹å¶é¡¹ç®ä»£ç ', width: 115 } |
| | | , { field: 'æ¹å¶é¡¹ç®', title: 'æ¹å¶é¡¹ç®', width: 125 } |
| | | , { field: 'HDeptID', title: 'HDeptID', width: 200, hide: true } |
| | | , { field: 'é¨é¨ä»£ç ', title: 'é¨é¨ä»£ç ', width: 115 } |
| | | , { field: 'é¨é¨', title: 'é¨é¨', width: 125 } |
| | | , { field: 'HEmpID', title: 'ç³è¯·äººID', width: 125,hide: true } |
| | | , { field: 'ç³è¯·äºº', title: 'ç³è¯·äºº', width: 125 } |
| | | , { field: 'HManagerID', title: 'è´è´£äººID', width: 125, hide: true } |
| | | , { field: 'è´è´£äºº', title: 'è´è´£äºº', width: 125 } |
| | | , { field: 'æ¹å¶è¦æ±', title: 'æ¹å¶è¦æ±', width: 125 } |
| | | , { field: 'æ¹å¶å
容', title: 'æ¹å¶å
容', width: 125 } |
| | | , { field: '夿³¨', title: '夿³¨', width: 125 } |
| | | , { field: 'å
é¨åæ®å·', title: 'å
é¨åæ®å·', width: 115 } |
| | | , { field: 'hsubid', title: 'hsubid', width: 200, hide: true } |
| | | , { field: 'HMaterID', title: 'HMaterID', width: 200, hide: true } |
| | | , { field: 'å¶å人', title: 'å¶å人', width: 125 } |
| | | , { field: 'å¶åæ¥æ', title: 'å¶åæ¥æ', width: 200, templet: "<div>{{d.å¶åæ¥æ ==null ?'':layui.util.toDateString(d.å¶åæ¥æ, 'yyyy-MM-dd HH:mm:ss')}}</div>" } |
| | | , { field: 'å®¡æ ¸äºº', title: 'å®¡æ ¸äºº', width: 125 } |
| | | , { field: 'å®¡æ ¸æ¥æ', title: 'å®¡æ ¸æ¥æ', width: 200, templet: "<div>{{d.å®¡æ ¸æ¥æ ==null ? '':layui.util.toDateString(d.å®¡æ ¸æ¥æ, 'yyyy-MM-dd HH:mm:ss')}}</div>" } |
| | | , { field: 'ä¿®æ¹äºº', title: 'ä¿®æ¹äºº', width: 125 } |
| | | , { field: 'ä¿®æ¹æ¥æ', title: 'ä¿®æ¹æ¥æ', width: 200, templet: "<div>{{d.ä¿®æ¹æ¥æ ==null ?'':layui.util.toDateString(d.ä¿®æ¹æ¥æ, 'yyyy-MM-dd HH:mm:ss')}}</div>" } |
| | | , { field: 'å
³é人', title: 'å
³é人', width: 125 } |
| | | , { field: 'å
³éæ¥æ', title: 'å
³éæ¥æ', width: 200, templet: "<div>{{d.å
³éæ¥æ ==null ?'':layui.util.toDateString(d.å
³éæ¥æ, 'yyyy-MM-dd HH:mm:ss')}}</div>" } |
| | | , { field: 'ä½åºäºº', title: 'ä½åºäºº', width: 125 } |
| | | , { field: 'ä½åºæ¥æ', title: 'ä½åºæ¥æ', width: 200, templet: "<div>{{d.ä½åºæ¥æ ==null ?'':layui.util.toDateString(d.ä½åºæ¥æ, 'yyyy-MM-dd HH:mm:ss')}}</div>" } |
| | | , { field: 'è¡å
³é人', title: 'è¡å
³é人', width: 125 } |
| | | , { field: 'å
³éç±»å', title: 'å
³éç±»å', width: 125 } |
| | | , { field: 'æºå主å
ç ', title: 'æºå主å
ç ', width: 200, hide: true } |
| | | , { field: 'æºååå
ç ', title: 'æºååå
ç ', width: 200, hide: true } |
| | | , { field: 'æºååå·', title: 'æºååå·', width: 125 } |
| | | , { field: 'æºåç±»å', title: 'æºåç±»å', width: 125 } |
| | | , { field: 'hmainid', title: '忮ID', hide: true, sort: true } |
| | | , { field: 'åæ®å·', title: 'åæ®å·', width: 195, sort: true } |
| | | , { field: 'å¼å§æ¥æ', title: 'å¼å§æ¥æ', width: 125, templet: "<div>{{d.å¼å§æ¥æ ==null ?'':layui.util.toDateString(d.å¼å§æ¥æ, 'yyyy-MM-dd')}}</div>", sort: true } |
| | | , { field: 'ç»ææ¥æ', title: 'ç»ææ¥æ', width: 125, templet: "<div>{{d.ç»ææ¥æ ==null ?'':layui.util.toDateString(d.ç»ææ¥æ, 'yyyy-MM-dd')}}</div>", sort: true } |
| | | , { field: 'åæ®ç±»å', title: 'åæ®ç±»å', width: 110, hide: true, sort: true } |
| | | |
| | | , { field: 'HRepairID', title: 'HRepairID', width: 200, hide: true, sort: true } |
| | | , { field: 'æ¹å¶é¡¹ç®ä»£ç ', title: 'æ¹å¶é¡¹ç®ä»£ç ', width: 115, sort: true } |
| | | , { field: 'æ¹å¶é¡¹ç®', title: 'æ¹å¶é¡¹ç®', width: 125, sort: true } |
| | | |
| | | , { field: 'HDeptID', title: 'HDeptID', width: 200, hide: true, sort: true } |
| | | , { field: 'é¨é¨ä»£ç ', title: 'æ¹å¶é¨é¨ä»£ç ', width: 115, sort: true } |
| | | , { field: 'é¨é¨', title: 'æ¹å¶é¨é¨', width: 125, sort: true } |
| | | , { field: 'HSupID', title: 'HDeptID', width: 200, hide: true, sort: true } |
| | | , { field: 'ä¾åºå代ç ', title: 'ä¾åºå代ç ', width: 115, sort: true } |
| | | , { field: 'ä¾åºå', title: 'ä¾åºå', width: 125, sort: true } |
| | | |
| | | , { field: 'HEmpID', title: 'ç³è¯·äººID', width: 125, hide: true, sort: true } |
| | | , { field: 'ç³è¯·äºº', title: 'ç³è¯·äºº', width: 125, sort: true } |
| | | , { field: 'HManagerID', title: 'è´è´£äººID', width: 125, hide: true, sort: true } |
| | | , { field: 'è´è´£äºº', title: 'è´è´£äºº', width: 125, sort: true } |
| | | |
| | | , { field: 'æ¹å¶ç±»å', title: 'æ¹å¶ç±»å', width: 125, sort: true } |
| | | , { field: 'HNewMaterID', title: 'HNewMaterID', width: 125, hide: true, sort: true } |
| | | , { field: 'æ°ç©æä»£ç ', title: 'æ°ç©æä»£ç ', width: 125, sort: true } |
| | | , { field: 'æ°ç©æ', title: 'æ°ç©æ', width: 125, sort: true } |
| | | , { field: 'æ°åç§°', title: 'æ°åç§°', width: 125, sort: true } |
| | | , { field: 'æ°è§æ ¼', title: 'æ°è§æ ¼', width: 125, sort: true } |
| | | , { field: 'æ°åå·', title: 'æ°åå·', width: 125, sort: true } |
| | | |
| | | , { field: '计åå·¥æ¶', title: '计åå·¥æ¶', width: 125, sort: true } |
| | | , { field: 'å®é
å·¥æ¶', title: 'å®é
å·¥æ¶', width: 125, sort: true } |
| | | , { field: 'æ¹å¶æ°é', title: 'æ¹å¶æ°é', width: 125, sort: true } |
| | | |
| | | , { field: 'æ¹å¶è¦æ±', title: 'æ¹å¶è¦æ±', width: 125, sort: true } |
| | | , { field: 'æ¹å¶å
容', title: 'æ¹å¶å
容', width: 125, sort: true } |
| | | , { field: '夿³¨', title: '夿³¨', width: 125, sort: true } |
| | | , { field: 'å
é¨åæ®å·', title: 'å
é¨åæ®å·', width: 115, 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: 125, sort: true } |
| | | , { field: 'å¶åæ¥æ', title: 'å¶åæ¥æ', width: 200, templet: "<div>{{d.å¶åæ¥æ ==null ?'':layui.util.toDateString(d.å¶åæ¥æ, 'yyyy-MM-dd HH:mm:ss')}}</div>", sort: true } |
| | | , { field: 'å®¡æ ¸äºº', title: 'å®¡æ ¸äºº', width: 125, sort: true } |
| | | , { field: 'å®¡æ ¸æ¥æ', title: 'å®¡æ ¸æ¥æ', width: 200, templet: "<div>{{d.å®¡æ ¸æ¥æ ==null ? '':layui.util.toDateString(d.å®¡æ ¸æ¥æ, 'yyyy-MM-dd HH:mm:ss')}}</div>", sort: true } |
| | | , { field: 'ä¿®æ¹äºº', title: 'ä¿®æ¹äºº', width: 125, sort: true } |
| | | , { field: 'ä¿®æ¹æ¥æ', title: 'ä¿®æ¹æ¥æ', width: 200, templet: "<div>{{d.ä¿®æ¹æ¥æ ==null ?'':layui.util.toDateString(d.ä¿®æ¹æ¥æ, 'yyyy-MM-dd HH:mm:ss')}}</div>", sort: true } |
| | | , { field: 'å
³é人', title: 'å
³é人', width: 125, sort: true } |
| | | , { field: 'å
³éæ¥æ', title: 'å
³éæ¥æ', width: 200, templet: "<div>{{d.å
³éæ¥æ ==null ?'':layui.util.toDateString(d.å
³éæ¥æ, 'yyyy-MM-dd HH:mm:ss')}}</div>", sort: true } |
| | | , { field: 'ä½åºäºº', title: 'ä½åºäºº', width: 125, sort: true } |
| | | , { field: 'ä½åºæ¥æ', title: 'ä½åºæ¥æ', width: 200, templet: "<div>{{d.ä½åºæ¥æ ==null ?'':layui.util.toDateString(d.ä½åºæ¥æ, 'yyyy-MM-dd HH:mm:ss')}}</div>", sort: true } |
| | | , { field: 'è¡å
³é人', title: 'è¡å
³é人', width: 125, sort: true } |
| | | , { field: 'å
³éç±»å', title: 'å
³éç±»å', width: 125, sort: true } |
| | | , { field: 'æºå主å
ç ', title: 'æºå主å
ç ', width: 200, hide: true, sort: true } |
| | | , { field: 'æºååå
ç ', title: 'æºååå
ç ', width: 200, hide: true, sort: true } |
| | | , { field: 'æºååå·', title: 'æºååå·', width: 125, sort: true } |
| | | , { field: 'æºåç±»å', title: 'æºåç±»å', width: 125, sort: true } |
| | | ]] |
| | | }; |
| | | } |
| | |
| | | layer.msg('è¯·éæ©ä¸è¡æ°æ®å é¤ï¼'); |
| | | } |
| | | } |
| | | //å®¡æ ¸ |
| | | function get_Audit() { |
| | | var checkStatus = table.checkStatus('mainTable') |
| | | , data = checkStatus.data; |
| | | if (checkStatus.data.length === 1) { |
| | | var InterID = data[0].hmainid.toString(); |
| | | $.ajax({ |
| | | type: "GET", |
| | | url: GetWEBURL() + "Sc_MouldRepairChangeHouseBill/AuditMouldRepairChangeBill", //æ¹æ³æå¨é¡µé¢åæ¹æ³å |
| | | data: { "HInterID": InterID, "user": sessionStorage["HUserName"], "flag": 1 }, |
| | | success: function (result) { |
| | | if (result.count == 1) { |
| | | layer.msg(result.Message, { time: 1 * 1000, icon: 1 }, function () { |
| | | var index = layer.getFrameIndex(window.name); |
| | | //å
³éå½åframe |
| | | layer.close(index); |
| | | //ä¿®æ¹ä¸ºååå·æ°çé¢ |
| | | window.location.reload(); |
| | | }); |
| | | |
| | | } else { |
| | | layer.alert(result.code + result.Message, { icon: 5 }); |
| | | } |
| | | }, error: function () { |
| | | layer.alert("æ¥å£è¯·æ±å¤±è´¥!", { icon: 5 }); |
| | | } |
| | | }); |
| | | } |
| | | else { |
| | | layer.msg('è¯·éæ©ä¸è¡æ°æ®ï¼'); |
| | | } |
| | | } |
| | | //åå®¡æ ¸ |
| | | function get_FAudit() { |
| | | var checkStatus = table.checkStatus('mainTable') |
| | | , data = checkStatus.data; |
| | | if (checkStatus.data.length === 1) { |
| | | var InterID = data[0].hmainid.toString(); |
| | | $.ajax({ |
| | | type: "GET", |
| | | url: GetWEBURL() + "Sc_MouldRepairChangeHouseBill/AuditMouldRepairChangeBill", //æ¹æ³æå¨é¡µé¢åæ¹æ³å |
| | | data: { "HInterID": InterID, "user": sessionStorage["HUserName"], "flag": 2}, |
| | | success: function (result) { |
| | | if (result.count == 1) { |
| | | layer.msg(result.Message, { time: 1 * 1000, icon: 1 }, function () { |
| | | var index = layer.getFrameIndex(window.name); |
| | | //å
³éå½åframe |
| | | layer.close(index); |
| | | //ä¿®æ¹ä¸ºååå·æ°çé¢ |
| | | window.location.reload(); |
| | | }); |
| | | |
| | | } else { |
| | | layer.alert(result.code + result.Message, { icon: 5 }); |
| | | } |
| | | }, error: function () { |
| | | layer.alert("æ¥å£è¯·æ±å¤±è´¥!", { icon: 5 }); |
| | | } |
| | | }); |
| | | } |
| | | else { |
| | | layer.msg('è¯·éæ©ä¸è¡æ°æ®ï¼'); |
| | | } |
| | | } |
| | | //å·æ° |
| | | function get_Refresh() { |
| | | set_ClearQuery(); |