finish outstore and instore details jump to detail
| | |
| | | |
| | | private Long goodsSortId; |
| | | |
| | | private Long id; |
| | | |
| | | public Long getId() { |
| | | return id; |
| | | } |
| | | |
| | | public void setId(Long id) { |
| | | this.id = id; |
| | | } |
| | | |
| | | public Date getCreateTime() { |
| | | return createTime; |
| | |
| | | FROM |
| | | ( |
| | | SELECT |
| | | b.id id, |
| | | b.create_time as createTime, |
| | | e.CODE, |
| | | e.NAME, |
| | |
| | | |
| | | UNION ALL |
| | | SELECT |
| | | t2_b.id id, |
| | | t2_b.create_time, |
| | | t2_e.CODE, |
| | | t2_e.NAME, |
| | |
| | | <th data-field="amount" data-footer-formatter="countColumn">出库数量</th> |
| | | <th data-field="goodsPrice" >出库单价</th> |
| | | <th data-field="totalPrice" data-footer-formatter="countColumn">出库金额</th> |
| | | <th data-field="orderNo">单据编号</th> |
| | | <th data-field="orderNo" data-formatter="buildJumpToDetailInfo" >单据编号</th> |
| | | <th data-field="orderType">单据类型</th> |
| | | <th data-field="batch">库存批次</th> |
| | | <th data-field="userName">操作人</th> |
| | |
| | | }); |
| | | } |
| | | |
| | | function buildJumpToDetailInfo(value, row, index) { |
| | | console.log(row) |
| | | var html = []; |
| | | if (row.orderType.indexOf("入库") > 0) { |
| | | html[0] = '<a onClick="lookInstore( \'' + row.id +'\')" class="text-primary " >'+value+'</a>'; |
| | | } else { |
| | | html[0] = '<a onClick="lookOutstore( \'' + row.id +'\')" class="text-primary " >'+value+'</a>'; |
| | | } |
| | | return html; |
| | | } |
| | | |
| | | function lookInstore(id) { |
| | | layer.full( |
| | | layer.open({ |
| | | type: 2, |
| | | title: "查看入库单", |
| | | area: [MUI.SIZE_L, '400px'], |
| | | maxmin: true, |
| | | content: [basePath+'/admin/instore/lookInfo?id=' + id] |
| | | })); |
| | | } |
| | | |
| | | function lookOutstore(id){ |
| | | layer.full( |
| | | layer.open({ |
| | | type : 2, |
| | | title : "查看出库单", |
| | | area : [ MUI.SIZE_L, '400px' ], |
| | | maxmin : true, |
| | | content : [ basePath+'/admin/outstore/lookForm?id=' + id] |
| | | })); |
| | | } |
| | | |
| | | </script> |
| | | </body> |