| | |
| | | ,{field: 'orderNo', align: 'center',title: '订单编号'} |
| | | ,{field: 'orderTime', align: 'center',title: '单据日期'} |
| | | ,{field: 'docType$', align: 'center',title: '单据类型'} |
| | | ,{field: 'itemId$', align: 'center',title: '项目编号'} |
| | | ,{field: 'itemName', align: 'center',title: '项目'} |
| | | ,{field: 'allotItemId$', align: 'center',title: '调拨项目编号', hide: true} |
| | | ,{field: 'defNumber', align: 'center',title: '初始票据号', hide: true} |
| | | ,{field: 'number', align: 'center',title: '票据号'} |
| | |
| | | /* 表格2头工具栏点击事件 */ |
| | | table.on('toolbar(orderTable)', function (obj) { |
| | | if (obj.event === 'add') { // 添加 |
| | | showEditModel2(); |
| | | // showEditModel2(); |
| | | right(); |
| | | } else if (obj.event === 'del') { // 删除 |
| | | var checkRows = table.checkStatus('orderTable'); |
| | | if (checkRows.data.length === 0) { |
| | |
| | | |
| | | }); |
| | | |
| | | function right(){ |
| | | top.popupRight = top.layui.admin.popupRight({ |
| | | id: 'LAY_adminPopupLayerTest' |
| | | , area: '750px' |
| | | , type: 2 |
| | | , shade: [0.5,'#000'] |
| | | , content:'order/matQuery.html' |
| | | , success: function(){ |
| | | // $('#'+ this.id).html('<div style="padding: 20px;">放入内容</div>'); |
| | | //admin.view(this.id).render('system/xxx') |
| | | } |
| | | , end: function () { |
| | | $(".layui-laypage-btn")[0].click(); |
| | | } |
| | | }); |
| | | } |
| | | |
| | | // 关闭动作 |
| | | $(document).on('click','#data-detail-close', function () { |
| | | parent.layer.closeAll(); |