| | |
| | | WrkDetl wrkDetl = new WrkDetl(); |
| | | wrkDetl.setWrkNo(wrkMast.getWrkNo()); |
| | | wrkDetl.setModiTime(now); |
| | | wrkDetl.setMatType(locDetl.getMatType()); |
| | | |
| | | wrkDetl.sync(locDetl); |
| | | wrkDetlService.insert(wrkDetl); |
| | |
| | | wrkDetl.setOrderNo(orderNo); |
| | | wrkDetl.setIoTime(wrkMast.getIoTime()); |
| | | wrkDetl.setWrkNo(wrkNo); |
| | | wrkDetl.setMatType(locDetl.getMatType()); |
| | | return R.ok().add(wrkDetl); |
| | | } |
| | | } |
| | |
| | | wrkDetl.setModiTime(now); |
| | | wrkDetl.setAppeUser(1L); |
| | | wrkDetl.setModiUser(1L); |
| | | wrkDetl.setMatType(locDetl.getMatType()); |
| | | wrkDetlService.insert(wrkDetl); |
| | | |
| | | } |
| | |
| | | return locMast.getLocType2$(); |
| | | } |
| | | |
| | | public Integer getMatType() { |
| | | if (Cools.isEmpty(this.matnr)) { |
| | | return null; |
| | | } |
| | | MatService matService = SpringUtils.getBean(MatService.class); |
| | | Mat mat = matService.selectByMatnr(this.matnr); |
| | | if (mat == null) { |
| | | return null; |
| | | } |
| | | return mat.getMatType(); |
| | | } |
| | | |
| | | public String getMatType$() { |
| | | if (Cools.isEmpty(this.matnr)) { |
| | | return ""; |
| | |
| | | private Boolean inoutEveryday; |
| | | |
| | | /** |
| | | * 物料类型{1:单品区,2:高频混放区,3:低频混放区} |
| | | * 上架区域{1:单品区,2:高频混放区,3:低频混放区} |
| | | */ |
| | | @ApiModelProperty(value= "物料类型") |
| | | @ApiModelProperty(value= "上架区域") |
| | | @TableField("mat_type") |
| | | private Integer matType; |
| | | |
| | |
| | | @ApiModelProperty(value= "是否冻结") |
| | | private Integer frozen; |
| | | |
| | | /** |
| | | * 上架区域{1:单品区,2:高频混放区,3:低频混放区} |
| | | */ |
| | | @ApiModelProperty(value= "上架区域") |
| | | @TableField("mat_type") |
| | | private Integer matType; |
| | | |
| | | public String getIoTime$(){ |
| | | if (Cools.isEmpty(this.ioTime)){ |
| | | return ""; |
| | |
| | | Synchro.Copy(source, this); |
| | | } |
| | | |
| | | public String getMatType$() { |
| | | if (this.matType == null) { |
| | | return ""; |
| | | } |
| | | switch (this.matType) { |
| | | case 1: |
| | | return "单品区"; |
| | | case 2: |
| | | return "高频混放区"; |
| | | case 3: |
| | | return "低频混放区"; |
| | | default: |
| | | return ""; |
| | | } |
| | | } |
| | | |
| | | } |
| | |
| | | @ApiModelProperty(value= "备注") |
| | | private String memo; |
| | | |
| | | /** |
| | | * 上架区域{1:单品区,2:高频混放区,3:低频混放区} |
| | | */ |
| | | @ApiModelProperty(value= "上架区域") |
| | | @TableField("mat_type") |
| | | private Integer matType; |
| | | |
| | | public String getIoTime$(){ |
| | | if (Cools.isEmpty(this.ioTime)){ |
| | | return ""; |
| | |
| | | return new SimpleDateFormat("yyyy-MM-dd HH:mm:ss").format(this.appeTime); |
| | | } |
| | | |
| | | public String getMatType$() { |
| | | if (this.matType == null) { |
| | | return ""; |
| | | } |
| | | switch (this.matType) { |
| | | case 1: |
| | | return "单品区"; |
| | | case 2: |
| | | return "高频混放区"; |
| | | case 3: |
| | | return "低频混放区"; |
| | | default: |
| | | return ""; |
| | | } |
| | | } |
| | | |
| | | } |
| | |
| | | wrkDetl.setModiTime(now); |
| | | wrkDetl.setModiUser(userId); |
| | | wrkDetl.setSpecs(locDetl.getSpecs()); |
| | | wrkDetl.setMatType(locDetl.getMatType()); |
| | | if (!wrkDetlService.insert(wrkDetl)) { |
| | | throw new CoolException("保存工作档明细失败"); |
| | | } |
| | |
| | | wrkDetl.setModiTime(now); |
| | | wrkDetl.setModiUser(userId); |
| | | wrkDetl.setSpecs(detlDto.getLocDetl().getSpecs()); |
| | | wrkDetl.setMatType(detlDto.getLocDetl().getMatType()); |
| | | if (!wrkDetlService.insert(wrkDetl)) { |
| | | throw new CoolException("保存工作档明细失败"); |
| | | } |
| | |
| | | wrkDetl.setAppeUser(userId); |
| | | wrkDetl.setModiTime(now); |
| | | wrkDetl.setModiUser(userId); |
| | | wrkDetl.setMatType(locDetl.getMatType()); |
| | | if (!wrkDetlService.insert(wrkDetl)) { |
| | | throw new CoolException("保存工作档明细失败"); |
| | | } |
| | |
| | | wrkDetl.setAppeUser(userId); |
| | | wrkDetl.setModiTime(now); |
| | | wrkDetl.setModiUser(userId); |
| | | wrkDetl.setMatType(locDetl.getMatType()); |
| | | if (!wrkDetlService.insert(wrkDetl)) { |
| | | throw new CoolException("保存工作档明细失败"); |
| | | } |
| | |
| | | wrkDetl.setAppeUser(9527L); |
| | | wrkDetl.setModiTime(now); |
| | | wrkDetl.setModiUser(9527L); |
| | | wrkDetl.setMatType(locDetl.getMatType()); |
| | | if (!wrkDetlService.insert(wrkDetl)) { |
| | | throw new CoolException("保存工作档明细失败"); |
| | | } |
| | |
| | | <result column="appe_user" property="appeUser" /> |
| | | <result column="appe_time" property="appeTime" /> |
| | | <result column="memo" property="memo" /> |
| | | <result column="mat_type" property="matType" /> |
| | | </resultMap> |
| | | |
| | | </mapper> |
| | |
| | | <result column="appe_user" property="appeUser" /> |
| | | <result column="appe_time" property="appeTime" /> |
| | | <result column="memo" property="memo" /> |
| | | <result column="mat_type" property="matType" /> |
| | | </resultMap> |
| | | |
| | | <sql id="batchSeq"> |
| | |
| | | ,{field: 'check$', align: 'center',title: '要求检验', hide: true} |
| | | ,{field: 'danger$', align: 'center',title: '危险品', hide: true} |
| | | ,{field: 'memo', align: 'center',title: '备注', hide: false} |
| | | ,{field: 'locType2$', align: 'center',title: '上架区域', width: 90} |
| | | // ,{field: 'locType2$', align: 'center',title: '上架区域', width: 90} |
| | | ,{field: 'matType$', align: 'center',title: '上架区域'} |
| | | ] |
| | | |
| | | function getQueryVariable(variable) |
| | |
| | | var locDetlData = []; |
| | | function getCol() { |
| | | var cols = [ |
| | | {field: 'count', align: 'center',title: '出库数量', edit:'text', width: 130, style:'color: blue;font-weight: bold'} |
| | | {field: 'count', align: 'center',title: '出库数量', width: 130, style:'color: blue;font-weight: bold'} |
| | | ,{field: 'anfme', align: 'center',title: '库存数量'} |
| | | ]; |
| | | arrRemove(detlCols, 'field', 'anfme'); |
| | |
| | | function getCol() { |
| | | var cols = [ {type: 'checkbox'} ]; |
| | | cols.push.apply(cols, detlCols); |
| | | cols.push({field: 'matType$', align: 'center',title: '物料类型'}) |
| | | cols.push({field: 'status', align: 'center',title: '数据状态', templet:function(row){ |
| | | var html = "<input value='status' type='checkbox' lay-skin='switch' lay-text='正常|锁定'' lay-filter='tableCheckbox' disabled='disabled' table-index='"+row.LAY_TABLE_INDEX+"'"; |
| | | if(row.status === 'Y'){html += " checked ";} |
| | |
| | | var cols = [ |
| | | ]; |
| | | cols.push.apply(cols, detlCols); |
| | | cols.push({field: 'matType$', align: 'center',title: '物料类型'}) |
| | | cols.push({field: 'status', align: 'center',title: '数据状态', templet:function(row){ |
| | | var html = "<input value='status' type='checkbox' lay-skin='switch' lay-text='正常|锁定' lay-filter='tableCheckbox' disabled='disabled' table-index='"+row.LAY_TABLE_INDEX+"'"; |
| | | if(row.status === 'Y'){html += " checked ";} |