| | |
| | | convert(param, wrapper); |
| | | allLike(AdjDetl.class, param.keySet(), wrapper, condition); |
| | | if (!Cools.isEmpty(orderByField)){wrapper.orderBy(humpToLine(orderByField), "asc".equals(orderByType));} |
| | | wrapper.orderBy("modi_time", false); |
| | | return R.ok(adjDetlService.selectPage(new Page<>(curr, limit), wrapper)); |
| | | } |
| | | |
| | |
| | | private String matnr; |
| | | |
| | | /** |
| | | * 商品规格 |
| | | */ |
| | | @ApiModelProperty(value= "商品规格") |
| | | private String specs; |
| | | |
| | | /** |
| | | * 序列码 |
| | | */ |
| | | @ApiModelProperty(value= "序列码") |
| | |
| | | |
| | | public AdjDetl() {} |
| | | |
| | | public AdjDetl(String locNo, String matnr, String batch, Double oriCtns, Double oriQty, Double oriWt, Double adjCtns, Double adjQty, Double adjWt, String memo, Long modiUser, Date modiTime, Long appeUser, Date appeTime, String manu) { |
| | | public AdjDetl(String locNo, String matnr, String specs,String batch, Double oriCtns, Double oriQty, Double oriWt, Double adjCtns, Double adjQty, Double adjWt, String memo, Long modiUser, Date modiTime, Long appeUser, Date appeTime, String manu) { |
| | | this.locNo = locNo; |
| | | this.matnr = matnr; |
| | | this.specs = specs; |
| | | this.batch = batch; |
| | | this.oriCtns = oriCtns; |
| | | this.oriQty = oriQty; |
| | |
| | | AdjDetl adjDetl = new AdjDetl(); |
| | | adjDetl.setLocNo(locDetl.getLocNo()); |
| | | adjDetl.setMatnr(locDetl.getMatnr()); |
| | | adjDetl.setSpecs(locDetl.getSpecs()); |
| | | adjDetl.setBatch(locDetl.getBatch()); |
| | | adjDetl.setOriQty(locDetl.getAnfme()); |
| | | adjDetl.setAdjQty(adjust.getCount()); |
| | |
| | | // {field: 'adjId', align: 'center',title: '序号'} |
| | | {field: 'locNo', align: 'center',title: '库位号'} |
| | | ,{field: 'matnr', align: 'center',title: '商品编号'} |
| | | ,{field: 'specs', align: 'center',title: '规格'} |
| | | ,{field: 'batch', align: 'center',title: '序列码'} |
| | | // ,{field: 'oriCtns', align: 'center',title: '原箱数'} |
| | | ,{field: 'oriQty', align: 'center',title: '原数量'} |
| | |
| | | pageSize: 'limit' |
| | | }, |
| | | parseData: function (res) { |
| | | console.log(res) |
| | | return { |
| | | 'code': res.code, |
| | | 'msg': res.msg, |