| | |
| | | } |
| | | } |
| | | }); |
| | | |
| | | //监听选择数据事件 |
| | | table.on('tool(tableListProgressData)', function (obj) { |
| | | var data = obj.data; |
| | | if (obj.event === 'select') { |
| | | flushData(data.intelCard, null); |
| | | layer.closeAll(); |
| | | } |
| | | }); |
| | | }); |
| | | |
| | | //显示流程环节 |
| | |
| | | }); |
| | | return; |
| | | } |
| | | paramIdCard = data.idNum; |
| | | // $("#userId").val(data.idNum); |
| | | $("#text-param").text("识别身份证:" + paramIdCard); |
| | | |
| | |
| | | // } |
| | | // |
| | | // // ---------------------------通知单 -结束 -------------------// |
| | | |
| | | /** |
| | | * 手动选择,获取待称重的数据,弹出选择 |
| | | */ |
| | | function selectByHand() { |
| | | var param = { |
| | | deptId: deptId, |
| | | type: type, |
| | | timer: Math.random() |
| | | }; |
| | | $.ajax({ |
| | | type: "POST", |
| | | url: "../../basic/inout/list-only-progress", |
| | | dataType: "json", |
| | | contentType: "application/json;charset=UTF-8", |
| | | data: JSON.stringify(param), |
| | | success: function (result) { |
| | | if (result.code != "0000") { |
| | | layer.msg(result.msg); |
| | | } else { |
| | | renderTableProgressData(result.data); |
| | | } |
| | | }, |
| | | error: function () { |
| | | layer.msg("系统获取数据出现异常,重新尝试"); |
| | | } |
| | | }); |
| | | } |
| | | |
| | | function renderTableProgressData(list) { |
| | | // 清空数据 |
| | | $("#tableListProgressData").empty(); |
| | | layer.open({ |
| | | type: 1, |
| | | title: "选择流程中车辆", |
| | | offset: ['120px', '100px'], |
| | | area: ['1000px', '520px'], |
| | | shade: 0, |
| | | content: $('#listProgressData'), |
| | | closeBtn: 1 |
| | | }); |
| | | |
| | | table.render({ |
| | | elem: '#tableListProgressData', |
| | | data: list, |
| | | page: false, |
| | | even: true, |
| | | cols: [[ |
| | | {type: 'numbers'}, { |
| | | field: 'id', |
| | | title: '单据号', |
| | | align: 'center' |
| | | }, { |
| | | field: 'userName', |
| | | title: '承运人', |
| | | align: 'center' |
| | | }, { |
| | | field: 'plateNum', |
| | | title: '车牌号', |
| | | align: 'center' |
| | | }, {fixed: 'right', title: '选择操作', align: 'center', toolbar: '#barSelectProgress'}]] |
| | | }); |
| | | $("thead tr").css({ |
| | | "border-bottom": "2px solid #53adce", |
| | | "background": "#eff4f6" |
| | | }); |
| | | } |