| | |
| | | <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="btn-Audit" id="btn-Audit"><i class="layui-icon layui-icon-radio"></i>å®¡æ ¸</button> |
| | | <button type="button" class="layui-btn layui-btn-sm" lay-event="btn-DeAudit" id="btn-DeAudit"><i class="layui-icon layui-icon-circle"></i>åå®¡æ ¸</button> |
| | | <button type="button" class="layui-btn layui-btn-sm" lay-event="btn-Case" id="btn-Case" style="display:none;"><i class="layui-icon layui-icon-note"></i>ç»æ¡</button> |
| | | <button type="button" class="layui-btn layui-btn-sm" lay-event="btn-XTReceive" id="btn-XTReceive"><i class="layui-icon layui-icon-radio"></i>䏿¨å¼å¸¸å馿¥æ¶å</button> |
| | | <button type="button" class="layui-btn layui-btn-sm" lay-event="btn-XTSign-in" id="btn-XTSign-in"><i class="layui-icon layui-icon-radio"></i>䏿¨å¼å¸¸åé¦ç¾å°å</button> |
| | | <button type="button" class="layui-btn layui-btn-sm" lay-event="btn-Test" id="btn-Test" style="display:none;"><i class="layui-icon layui-icon-circle"></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> |
| | |
| | | break; |
| | | //åå®¡æ ¸æé® |
| | | case 'btn-DeAudit': set_DeAuditBill(); |
| | | break; |
| | | //䏿¨å¼å¸¸å馿¥æ¶å |
| | | case 'btn-XTReceive': set_XTReceive(); |
| | | break; |
| | | |
| | | //䏿¨å¼å¸¸åé¦ç¾å°å |
| | | case 'btn-XTSign-in': set_XTSign(); |
| | | break; |
| | | //å·æ° |
| | | case 'get_Refresh': set_Refresh(); |
| | |
| | | option = { |
| | | elem: '#mainTable' |
| | | , toolbar: '#toolbarDemo' |
| | | , totalRow: true |
| | | , page: true |
| | | , cellMinWidth: 120 |
| | | , height: 'full-50' |
| | |
| | | data.push({ "id": data1.list[key].ColmCols, "name": data1.list[key].ColmCols, "Type": data1.list[key].ColmType }); |
| | | } |
| | | //å¨å表左边添å å¾éæ¡ |
| | | col.push({ type: 'checkbox', fixed: 'left' }); |
| | | col.push({ type: 'checkbox', fixed: 'left', totalRowText: 'å计è¡' }); |
| | | for (var i = 0; i < data.length; i++) { |
| | | // if (data[i].name == 'HInterID' || data[i].name == 'HBillType' || data[i].name == 'hmainid') { |
| | | if ($.inArray(data[i].name, titleData) > -1) { |
| | |
| | | case 'DateTime': |
| | | col.push({ field: data[i].id, title: data[i].name, align: 'center', sort: true, templet: "<div>{{d." + data[i].name + " ==null ?'':layui.util.toDateString(d." + data[i].name + ", 'yyyy-MM-dd')}}</div>", width: 120 }); |
| | | break; |
| | | case 'long': |
| | | case 'Int32': |
| | | case 'Int64': |
| | | case 'double': |
| | | case 'Decimal': |
| | | col.push({ field: data[i].id, title: data[i].name, align: 'center', sort: true, width: 120, totalRow: true }); |
| | | break; |
| | | default: |
| | | col.push({ field: data[i].id, title: data[i].name, align: 'center', sort: true, width: 120 }); |
| | | } |
| | |
| | | , shade: 0.6 //é®ç½©éæåº¦ |
| | | , maxmin: true //å
许å
¨å±æå°å |
| | | , anim: 0 //0-6çå¨ç»å½¢å¼ï¼-1ä¸å¼å¯ |
| | | , content: 'Sc_Add_MESExecptFeedBackBillList.html?OperationType=3&linterid=' + HInterID + '&HEntryID=' + HEntryID+'&HSouceBillType=' |
| | | , content: 'Sc_Add_MESExecptFeedBackBillList.html?OperationType=3&linterid=' + HInterID + '&HEntryID=' + HEntryID + '&HSouceBillType=' |
| | | , resize: false, |
| | | end: function () { |
| | | get_FastQuery(table, option); |
| | |
| | | } |
| | | } |
| | | |
| | | //䏿¨å¼å¸¸å馿¥æ¶å |
| | | function set_XTReceive() { |
| | | var checkStatus = table.checkStatus('mainTable') |
| | | , data = checkStatus.data; |
| | | if (checkStatus.data.length === 1) { |
| | | var HInterID = data[0].HInterID.toString(); |
| | | var HEntryID = data[0].HEntryID.toString(); |
| | | layer.open({ |
| | | type: 2 |
| | | , skin: 'layui-layer-rim' //å ä¸è¾¹æ¡ |
| | | , area: ['100%', '100%'] |
| | | , title: 'æ°å¢å¼å¸¸å馿¥æ¶å' |
| | | , shift: 0//å¼¹åºå¨ç» |
| | | , content: '../../ç产管ç/å¼å¸¸åé¦å/OA_ErrMsgBackReceiveBillMain.html?OperationType=2&linterid=' + HInterID + '&HEntryID=' + HEntryID + '&HSouceBillType=' + 4502+'' |
| | | , btn: [], |
| | | end: function (index, layero, that) { |
| | | //å·æ°é¡µé¢ |
| | | $("#btnSearch").trigger('click'); |
| | | } |
| | | }) |
| | | } |
| | | } |
| | | |
| | | |
| | | //䏿¨å¼å¸¸åé¦ç¾å°å |
| | | function set_XTSign() { |
| | | var checkStatus = table.checkStatus('mainTable') |
| | | , data = checkStatus.data; |
| | | if (checkStatus.data.length === 1) { |
| | | var HInterID = data[0].HInterID.toString(); |
| | | var HEntryID = data[0].HEntryID.toString(); |
| | | layer.open({ |
| | | type: 2 |
| | | , skin: 'layui-layer-rim' //å ä¸è¾¹æ¡ |
| | | , area: ['100%', '100%'] |
| | | , title: 'æ°å¢å¼å¸¸åé¦ç¾å°å' |
| | | , shift: 0//å¼¹åºå¨ç» |
| | | , content: '../../ç产管ç/å¼å¸¸åé¦å/OA_ErrMsgBackSignBillMain.html?OperationType=2&linterid=' + HInterID + '&HEntryID=' + HEntryID + '&HSouceBillType=' + 4502 + '' |
| | | , btn: [], |
| | | end: function (index, layero, that) { |
| | | //å·æ°é¡µé¢ |
| | | $("#btnSearch").trigger('click'); |
| | | } |
| | | }) |
| | | } |
| | | } |
| | | |
| | | //åå¤åæ® |
| | | function set_ReplyBill() { |
| | | var checkStatus = table.checkStatus('mainTable') |