| | |
| | | DateUtils.convert(now), // 单据日期 |
| | | param.getDocType(), // 单据类型 |
| | | null, // 项目编号 |
| | | null, // |
| | | param.getItemName(), // 区域ID |
| | | null, // 调拨项目编号 |
| | | null, // 初始票据号 |
| | | null, // 票据号 |
| | |
| | | * 批号 |
| | | */ |
| | | @ApiModelProperty(value= "批号") |
| | | private String batch; |
| | | private String batch = "1"; |
| | | |
| | | /** |
| | | * 规格 |
| | |
| | | this.memo = memo; |
| | | } |
| | | |
| | | //小松项目无批次,默认1方便后续修改 |
| | | public void setBatch(String batch) { |
| | | this.batch = batch == null ? "1" : batch; |
| | | } |
| | | |
| | | |
| | | public String getOrderId$(){ |
| | | OrderService service = SpringUtils.getBean(OrderService.class); |
| | | Order order = service.selectById(this.orderId); |
| | |
| | | import com.baomidou.mybatisplus.enums.IdType; |
| | | import com.core.common.Cools; |
| | | import com.core.common.SpringUtils; |
| | | import com.zy.asrs.entity.BasAreas; |
| | | import com.zy.asrs.service.BasAreasService; |
| | | import com.zy.asrs.service.DocTypeService; |
| | | import com.zy.asrs.service.OrderSettleService; |
| | | import com.zy.common.utils.Synchro; |
| | |
| | | @TableField("item_id") |
| | | private Long itemId; |
| | | |
| | | @ApiModelProperty(value= "") |
| | | @ApiModelProperty(value= "区域ID") |
| | | @TableField("item_name") |
| | | private String itemName; |
| | | |
| | |
| | | // null // 备注 |
| | | // ); |
| | | |
| | | |
| | | public String getItemName$() { |
| | | if (Cools.isEmpty(this.itemName)) { |
| | | return null; |
| | | } |
| | | try { |
| | | BasAreasService service = SpringUtils.getBean(BasAreasService.class); |
| | | BasAreas area = service.selectById(Long.parseLong(this.itemName)); |
| | | if (!Cools.isEmpty(area)) { |
| | | return area.getName(); |
| | | } |
| | | } catch (Exception e) { |
| | | return this.itemName; |
| | | } |
| | | return null; |
| | | } |
| | | |
| | | public String getDocType$(){ |
| | | DocTypeService service = SpringUtils.getBean(DocTypeService.class); |
| | | DocType docType = service.selectById(this.docType); |
| | |
| | | |
| | | private String orderNo; |
| | | |
| | | private String itemName; |
| | | |
| | | private List<OrderDetl> orderDetlList; |
| | | |
| | | private List<OrderDetlPakin> orderDetlPakinList; |
| | |
| | | cols: [[ |
| | | {type: 'numbers'}, |
| | | {field: 'orderNo', title: '单据编号', templet: '#orderNoTpl'}, |
| | | {field: 'itemName$', align: 'center', title: '出库区域', minWidth: 160, width: 160}, |
| | | {field: 'docType$', align: 'center', title: '类型', minWidth: 160, width: 160}, |
| | | {align: 'center', title: '明细', toolbar: '#tbLook', minWidth: 160, width: 160}, |
| | | {field: 'createTime$', title: '创建时间', minWidth: 200, width: 200}, |
| | | {field: 'settle$', align: 'center', title: '状态', templet: '#settleTpl', minWidth: 160, width: 160}, |
| | | {field: 'memo', align: 'center',title: '备注', hide: true}, |
| | | {align: 'center', title: '操作', toolbar: '#operate', width: 180} |
| | | {align: 'center', title: '操作', toolbar: '#operate'} |
| | | ]], |
| | | request: { |
| | | pageName: 'curr', |
| | |
| | | cellMinWidth: 100, |
| | | cols: [[ |
| | | {type: 'numbers'}, |
| | | {field: 'matnr', title: '商品编码', width: 160}, |
| | | {field: 'maktx', title: '商品名称', width: 160}, |
| | | {field: 'batch', title: '批号'}, |
| | | {field: 'matnr', title: '零件代码', width: 160}, |
| | | {field: 'maktx', title: '零件名称', width: 160}, |
| | | // {field: 'batch', title: '批号'}, |
| | | {field: 'standby1', title: '供应商代码'}, |
| | | {field: 'anfme', title: '数量'}, |
| | | {field: 'workQty', title: '作业数量'}, |
| | | {field: 'qty', title: '完成数量', style: 'font-weight: bold'}, |
| | |
| | | success: function (layero, dIndex) { |
| | | $(layero).children('.layui-layer-content').css('overflow', 'visible'); |
| | | var isExpAdd = !expTpe; |
| | | // 加载区域下拉数据 |
| | | $.ajax({ |
| | | url: baseUrl + "/basAreas/list/auth", |
| | | headers: {'token': localStorage.getItem('token')}, |
| | | data: { limit: 9999 }, |
| | | method: 'POST', |
| | | success: function (res) { |
| | | if (res.code === 200) { |
| | | var areaSelect = $(layero).find('select[name="itemName"]'); |
| | | var html = '<option value="">请选择区域</option>'; |
| | | var records = res.data.records || res.data; |
| | | for (var i = 0; i < records.length; i++) { |
| | | var selected = (expTpe && expTpe.itemName == records[i].id) ? ' selected' : ''; |
| | | html += '<option value="' + records[i].id + '"' + selected + '>' + records[i].name + '</option>'; |
| | | } |
| | | areaSelect.html(html); |
| | | form.render('select', 'editForm'); |
| | | } else if (res.code === 403) { |
| | | top.location.href = baseUrl + "/"; |
| | | } else { |
| | | layer.msg(res.msg, {icon: 2}); |
| | | } |
| | | } |
| | | }); |
| | | // 回显数据 |
| | | form.val('editForm', expTpe); |
| | | if (expTpe) { |
| | |
| | | orderId: Number(data.field.id), |
| | | docType: Number(data.field.docType), |
| | | orderNo: data.field.orderNo, |
| | | areaId: data.field.areaId ? Number(data.field.areaId) : null, |
| | | orderDetlPakoutList: nList |
| | | }), |
| | | contentType:'application/json;charset=UTF-8', |
| | |
| | | cellMinWidth: 100, |
| | | cols: [[ |
| | | {type: 'numbers', title: '#'}, |
| | | {field: 'matnr', title: '商品编码', width: 160}, |
| | | {field: 'maktx', title: '商品名称', width: 200}, |
| | | {field: 'batch', title: '批号', edit: true}, |
| | | {field: 'matnr', title: '零件代码', width: 160}, |
| | | {field: 'maktx', title: '零件名称', width: 200}, |
| | | // {field: 'batch', title: '批号', edit: true}, |
| | | {field: 'standby1', title: '供应商代码', edit: true}, |
| | | {field: 'specs', title: '规格'}, |
| | | {field: 'anfme', title: '数量(修改)', style: 'color: blue;font-weight: bold', edit: true, minWidth: 110, width: 110}, |
| | | {field: 'workQty', title: '作业数量', minWidth: 100, width: 100}, |
| | |
| | | <!-- lay-verify="required"--> |
| | | </div> |
| | | </div> |
| | | <div class="layui-form-item"> |
| | | <label class="layui-form-label">出库区域:</label> |
| | | <div class="layui-input-block"> |
| | | <select id="itemName" name="itemName" lay-verType="tips"> |
| | | <option value="">请选择区域</option> |
| | | </select> |
| | | </div> |
| | | </div> |
| | | <div class="layui-form-item" style="position: relative;"> |
| | | <label class="layui-form-label">单据明细:</label> |
| | | <div class="layui-input-block"> |