| | |
| | | } |
| | | |
| | | /** |
| | | * 台机绑定作业库位 |
| | | * 机台绑定作业库位 |
| | | * |
| | | * @param |
| | | * @return |
| | |
| | | return R.error("参数不能为空"); |
| | | } |
| | | if (Cools.isEmpty(params.getDevNo())) { |
| | | return R.error("台机号不能为空"); |
| | | return R.error("机台号不能为空"); |
| | | } |
| | | if (Cools.isEmpty(params.getStartRow())) { |
| | | return R.error("起始排不能为空"); |
| | |
| | | private Long id; |
| | | |
| | | /** |
| | | * 台机ID |
| | | * 机台ID |
| | | */ |
| | | @ApiModelProperty(value= "台机ID") |
| | | @ApiModelProperty(value= "机台ID") |
| | | @TableField("dev_id") |
| | | private Long devId; |
| | | |
| | | /** |
| | | * 台机号 |
| | | * 机台号 |
| | | */ |
| | | @ApiModelProperty(value= "台机号") |
| | | @ApiModelProperty(value= "机台号") |
| | | @TableField("dev_no") |
| | | private String devNo; |
| | | |
| | |
| | | } |
| | | |
| | | // LocAroundBind locAroundBind = new LocAroundBind( |
| | | // null, // 台机ID[非空] |
| | | // null, // 台机号[非空] |
| | | // null, // 机台ID[非空] |
| | | // null, // 机台号[非空] |
| | | // null, // 库位ID[非空] |
| | | // null // 库位码[非空] |
| | | // ); |
| | |
| | | import io.swagger.annotations.ApiModel; |
| | | |
| | | @Data |
| | | @ApiModel(value = "InitDeviceLocParams", description = "初始化台机库位参数") |
| | | @ApiModel(value = "InitDeviceLocParams", description = "初始化机台库位参数") |
| | | @Accessors(chain = true) |
| | | public class InitDeviceLocParams implements Serializable { |
| | | |
| | | private static final long serialVersionUID = 1L; |
| | | |
| | | // 台机号 |
| | | // 机台号 |
| | | private String devNo; |
| | | |
| | | // 起始排 |
| | |
| | | } |
| | | List<LocAroundBind> binds = locAroundBindService.selectList(new EntityWrapper<LocAroundBind>().eq("dev_no", basDevice.getDevNo())); |
| | | if (Objects.isNull(binds) || binds.isEmpty()) { |
| | | throw new CoolException("台机未绑定工作站台!!"); |
| | | throw new CoolException("机台未绑定工作站台!!"); |
| | | } |
| | | Set<String> locs = binds.stream().map(LocAroundBind::getBLocNo).collect(Collectors.toSet()); |
| | | |
| | |
| | | cols: [[ |
| | | { type: 'checkbox' } |
| | | , { field: 'id', align: 'center', title: 'ID' } |
| | | , { field: 'devId', align: 'center', title: '台机ID' } |
| | | , { field: 'devNo', align: 'center', title: '台机号' } |
| | | , { field: 'devId', align: 'center', title: '机台ID' } |
| | | , { field: 'devNo', align: 'center', title: '机台号' } |
| | | , { field: 'blocId', align: 'center', title: '库位ID', hide: true } |
| | | , { field: 'blocNo', align: 'center', title: '库位码' } |
| | | , { fixed: 'right', title: '操作', align: 'center', toolbar: '#operate', width: 120 } |
| | |
| | | if (res.data) { |
| | | layer.open({ |
| | | type: 1, |
| | | title: '台机绑定作业库位', |
| | | title: '机台绑定作业库位', |
| | | area: ["400px"], |
| | | maxmin: true, |
| | | shadeClose: true, |
| | |
| | | {field: 'matnr', title: '商品编码', width: 160}, |
| | | {field: 'maktx', title: '商品名称', width: 160}, |
| | | {field: 'batch', title: '批号'}, |
| | | {field: 'standby1', title: '台机'}, |
| | | {field: 'standby1', title: '机台'}, |
| | | {field: 'anfme', title: '数量'}, |
| | | {field: 'workQty', title: '作业数量'}, |
| | | {field: 'qty', title: '完成数量', style: 'font-weight: bold'}, |
| | |
| | | {field: 'maktx', title: '商品名称', width: 200}, |
| | | {field: 'batch', title: '批号', edit: true}, |
| | | {field: 'specs', title: '规格'}, |
| | | {field: 'standby1', title: '台机', edit: true}, |
| | | {field: 'standby1', title: '机台', edit: true}, |
| | | {field: 'anfme', title: '数量(修改)', style: 'color: blue;font-weight: bold', edit: true, minWidth: 110, width: 110}, |
| | | {field: 'workQty', title: '作业数量', minWidth: 100, width: 100}, |
| | | // {field: 'unit', title: '单位', width: 80}, |
| | |
| | | ,{field: 'orderNo', align: 'center',title: '单据编号', templet: '#orderNoTpl', width: 160} |
| | | ,{field: 'matnr', align: 'center',title: '商品编码', width: 160} |
| | | ,{field: 'maktx', align: 'center',title: '商品名称', width: 200} |
| | | ,{field: 'standby1', align: 'center',title: '台机号'} |
| | | ,{field: 'standby1', align: 'center',title: '机台号'} |
| | | ,{field: 'specs', align: 'center',title: '规格'} |
| | | // ,{field: 'anfme', align: 'center',title: '数量'} |
| | | // ,{field: 'qty', align: 'center',title: '作业数量', style: 'font-weight: bold'} |
| | |
| | | // {type: 'checkbox', merge: ['orderNo']}, |
| | | {field: 'orderNo', title: '单据编号', merge: true, align: 'center'}, |
| | | {field: 'title', title: '商品', merge: true, align: 'center', width: 350}, |
| | | {field: 'standby1', title: '台机号', align: 'center'}, |
| | | {field: 'standby1', title: '机台号', align: 'center'}, |
| | | {field: 'anfme', title: '数量', align: 'center', width: 90, style: 'font-weight: bold'}, |
| | | {field: 'locNo', title: '货位', align: 'center', width: 100, templet: '#locNoTpl'}, |
| | | {field: 'frozen$', title: '明细', align: 'center', width: 90, templet: '#locFrozen'}, |
| | |
| | | <div class="layui-form-item"> |
| | | <label class="layui-form-label layui-form-required">机台: </label> |
| | | <div class="layui-input-block"> |
| | | <input class="layui-input" name="devNo" placeholder="请输入台机号" lay-vertype="tips" lay-verify="required"> |
| | | <input class="layui-input" name="devNo" placeholder="请输入机台号" lay-vertype="tips" lay-verify="required"> |
| | | </div> |
| | | </div> |
| | | <div class="layui-form-item"> |
| | |
| | | <div id="resetLocDiv" style="margin: 20px 0 10px 30px; display: none"> |
| | | <div class="layui-form layui-form-pane"> |
| | | <div class="layui-form-item"> |
| | | <label class="layui-form-label">台机号</label> |
| | | <label class="layui-form-label">机台号</label> |
| | | <div class="layui-input-inline"> |
| | | <input type="text" name="devNo" autocomplete="off" class="layui-input"> |
| | | </div> |
| | |
| | | </div> |
| | | </div> |
| | | <div class="layui-inline"> |
| | | <label class="layui-form-label">台机号:</label> |
| | | <label class="layui-form-label">机台号:</label> |
| | | <div class="layui-input-inline"> |
| | | <input name="standby1" class="layui-input" placeholder="台机号"/> |
| | | <input name="standby1" class="layui-input" placeholder="机台号"/> |
| | | </div> |
| | | </div> |
| | | <!-- <div class="layui-inline">--> |