| | |
| | | height: 'full-120', |
| | | cols: [[ |
| | | {type: 'checkbox'} |
| | | ,{field: 'id', align: 'center',title: '编号'} |
| | | ,{field: 'channel', align: 'center',title: ''} |
| | | ,{field: 'locNo', align: 'center',title: '库位号'} |
| | | ,{field: 'barcode', align: 'center',title: 'PACK码'} |
| | | ,{field: 'userId', align: 'center',title: '用户码'} |
| | | ,{field: 'status$', align: 'center',title: '״̬'} |
| | | ,{field: 'modiTime$', align: 'center',title: '修改时间'} |
| | | ,{field: 'appeTime$', align: 'center',title: '添加时间'} |
| | | ,{field: 'id', align: 'center',title: '编码'} |
| | | ,{field: 'channel', align: 'center',title: '通道'} |
| | | ,{field: 'locNo', align: 'center',title: '库位号'} |
| | | ,{field: 'barcode', align: 'center',title: 'PACK码'} |
| | | ,{field: 'userId', align: 'center',title: '用户码'} |
| | | ,{field: 'status$', align: 'center',title: '状态'} |
| | | ,{field: 'modiTime$', align: 'center',title: '修改时间'} |
| | | ,{field: 'appeTime$', align: 'center',title: '添加时间'} |
| | | |
| | | ,{fixed: 'right', title:'操作', align: 'center', toolbar: '#operate', width:120} |
| | | ]], |
| | |
| | | break; |
| | | case 'deleteData': |
| | | if (checkStatus.length === 0) { |
| | | layer.msg('璇烽?夋嫨瑕佸垹闄ょ殑鏁版嵁', {icon: 2}); |
| | | layer.msg('请选择要删除的数据', {icon: 2}); |
| | | return; |
| | | } |
| | | del(checkStatus.map(function (d) { |
| | |
| | | })); |
| | | break; |
| | | case 'exportData': |
| | | admin.confirm('纭畾瀵煎嚭Excel鍚?', {shadeClose: true}, function(){ |
| | | admin.confirm('确定导出Excel表吗?', {shadeClose: true}, function(){ |
| | | var titles=[]; |
| | | var fields=[]; |
| | | obj.config.cols[0].map(function (col) { |
| | |
| | | } |
| | | }); |
| | | |
| | | // 鐩戝惉琛屽伐鍏蜂簨浠? |
| | | // 监听行工具事件 |
| | | table.on('tool(testMast)', function(obj){ |
| | | var data = obj.data; |
| | | switch (obj.event) { |
| | |
| | | } |
| | | }); |
| | | |
| | | /* 寮圭獥 - 鏂板銆佷慨鏀? */ |
| | | /* 弹窗 - 新增、修改 */ |
| | | function showEditModel(mData) { |
| | | admin.open({ |
| | | type: 1, |
| | | area: '600px', |
| | | title: (mData ? '淇敼' : '娣诲姞') + '璁㈠崟鐘舵??', |
| | | title: (mData ? '修改' : '添加') + '订单状态', |
| | | content: $('#editDialog').html(), |
| | | success: function (layero, dIndex) { |
| | | layDateRender(mData); |
| | |
| | | |
| | | /* 删除 */ |
| | | function del(ids) { |
| | | layer.confirm('纭畾瑕佸垹闄ら?変腑鏁版嵁鍚楋紵', { |
| | | layer.confirm('确定要删除选中的数据吗?', { |
| | | skin: 'layui-layer-admin', |
| | | shade: .1 |
| | | }, function (i) { |
| | |
| | | tableReload(false); |
| | | }); |
| | | |
| | | // 鏃堕棿閫夋嫨鍣? |
| | | // 时间选择 |
| | | function layDateRender(data) { |
| | | setTimeout(function () { |
| | | layDate.render({ |