| | |
| | | this.type = type; |
| | | this.desc = desc; |
| | | } |
| | | |
| | | public static String getTagName(String type) { |
| | | if (type.equals(MatLocType.AUTOMATED.type)) { |
| | | return MatLocType.AUTOMATED.desc; |
| | | } else if (type.equals(MatLocType.SO_HOLDING.type)) { |
| | | return MatLocType.SO_HOLDING.desc; |
| | | } else if (type.equals(MatLocType.EO_HOLDING.type)) { |
| | | return MatLocType.EO_HOLDING.desc; |
| | | } else { |
| | | return null; |
| | | } |
| | | } |
| | | } |
| | |
| | | import com.baomidou.mybatisplus.mapper.EntityWrapper; |
| | | import com.core.common.Cools; |
| | | import com.core.common.SpringUtils; |
| | | import com.zy.asrs.service.BasProcessProceduresService; |
| | | import com.zy.asrs.service.BasQualityTestingService; |
| | | import com.zy.asrs.service.LocMastService; |
| | | import com.zy.asrs.service.LocOwnerService; |
| | | import com.zy.asrs.service.*; |
| | | import com.zy.common.utils.Synchro; |
| | | import com.zy.system.entity.User; |
| | | import com.zy.system.service.UserService; |
| | |
| | | } |
| | | } |
| | | |
| | | public String getTag$() { |
| | | MatService service = SpringUtils.getBean(MatService.class); |
| | | Mat order = service.selectOne(new EntityWrapper<Mat>().eq("matnr", this.matnr)); |
| | | if (Cools.isEmpty(order)){ |
| | | return null; |
| | | } |
| | | return order.getTagId$(); |
| | | } |
| | | |
| | | public String getSource$(){ |
| | | if (null == this.source){ return null; } |
| | | switch (this.source){ |
| | |
| | | import com.baomidou.mybatisplus.enums.IdType; |
| | | import com.core.common.Cools; |
| | | import com.core.common.SpringUtils; |
| | | import com.zy.api.enums.MatLocType; |
| | | import com.zy.asrs.enums.ContainerType; |
| | | import com.zy.asrs.service.BasContainerService; |
| | | import com.zy.asrs.service.TagService; |
| | |
| | | // ); |
| | | |
| | | public String getTagId$(){ |
| | | TagService service = SpringUtils.getBean(TagService.class); |
| | | Tag tag = service.selectById(this.tagId); |
| | | if (!Cools.isEmpty(tag)){ |
| | | return String.valueOf(tag.getName()); |
| | | } |
| | | return null; |
| | | // TagService service = SpringUtils.getBean(TagService.class); |
| | | // Tag tag = service.selectById(this.tagId); |
| | | // if (!Cools.isEmpty(tag)){ |
| | | // return String.valueOf(tag.getName()); |
| | | // } |
| | | return MatLocType.getTagName(this.tagId + ""); |
| | | } |
| | | |
| | | public String getLocType$(){ |
| | |
| | | import com.baomidou.mybatisplus.mapper.EntityWrapper; |
| | | import com.core.common.Cools; |
| | | import com.core.common.SpringUtils; |
| | | import com.zy.api.enums.MatLocType; |
| | | import com.zy.asrs.service.BasProcessProceduresService; |
| | | import com.zy.asrs.service.BasQualityTestingService; |
| | | import com.zy.asrs.service.MatService; |
| | | import com.zy.asrs.service.TagService; |
| | | import com.zy.common.utils.Synchro; |
| | | import io.swagger.annotations.ApiModelProperty; |
| | | import lombok.Data; |
| | |
| | | import java.io.Serializable; |
| | | import java.text.SimpleDateFormat; |
| | | import java.util.Date; |
| | | import java.util.Objects; |
| | | |
| | | @Data |
| | | @TableName("cust_wait_pakin") |
| | |
| | | } |
| | | } |
| | | |
| | | public String getTag$() { |
| | | MatService service = SpringUtils.getBean(MatService.class); |
| | | Mat order = service.selectOne(new EntityWrapper<Mat>().eq("matnr", this.matnr)); |
| | | if (Cools.isEmpty(order)){ |
| | | return null; |
| | | } |
| | | return order.getTagId$(); |
| | | } |
| | | |
| | | public String getType$(){ |
| | | if (null == this.type){ return null; } |
| | | switch (this.type){ |
| | |
| | | ,{field: 'maktx', align: 'center',title: '商品名称(品名)', sort:true} |
| | | ,{field: 'anfme', align: 'center',title: '数量', hide: false} |
| | | ,{field: 'specs', align: 'center',title: '规格', hide: false} |
| | | ,{field: 'model', align: 'center',title: '代码', hide: true} |
| | | ,{field: 'color', align: 'center',title: '颜色', hide: true} |
| | | ,{field: 'brand', align: 'center',title: '品牌', hide: true} |
| | | ,{field: 'unit', align: 'center',title: '单位', hide: false} |
| | | ,{field: 'batch', align: 'center',title: '批号', sort:true} |
| | | ,{field: 'tag$', align: 'center',title: '零件类型', hide: false} |
| | | ,{field: 'threeCode', align: 'center',title: 'BS Code', hide: false} |
| | | ,{field: 'length', align: 'center',title: '重量', hide: false} |
| | | ,{field: 'volume', align: 'center',title: '尺寸', hide: false} |
| | | ,{field: 'frozen$', align: 'center',title: '冻结否',hide: true, |
| | | templet: function(d) { |
| | | // 根据条件判断字体颜色 |
| | |
| | | ,{field: 'orderNo', align: 'center',title: '单据编号', hide: false} |
| | | ,{field: 'suppCode', align: 'center',title: '供应商编码', hide: false} |
| | | ,{field: 'threeCode', align: 'center',title: 'BS Code', hide: false} |
| | | ,{field: 'batch', align: 'center',title: '批号', sort:true} |
| | | ,{field: 'tag$', align: 'center',title: '零件类型', hide: false} |
| | | ,{field: 'batch', align: 'center',title: '批号', hide: true} |
| | | ,{field: 'anfme', align: 'center',title: '数量', hide: false} |
| | | ,{field: 'zpallet', align: 'center',title: '托盘条码', hide: false} |
| | | ,{field: 'specs', align: 'center',title: '规格', hide: false} |
| | | ,{field: 'length', align: 'center',title: '重量', hide: false} |
| | | ,{field: 'volume', align: 'center',title: '尺寸', hide: false} |
| | | ,{field: 'modiTime', align: 'center',title: '更新时间', hide: false} |
| | | ,{field: 'supp', align: 'center',title: '供应商', hide: true} |
| | | ,{field: 'specs', align: 'center',title: '规格', hide: true} |
| | | ,{field: 'model', align: 'center',title: '代码', hide: true} |
| | | ,{field: 'color', align: 'center',title: '颜色', hide: true} |
| | | ,{field: 'brand', align: 'center',title: '品牌', hide: true} |
| | | ,{field: 'unit', align: 'center',title: '单位', hide: false} |
| | | ,{field: 'unit', align: 'center',title: '单位', hide: true} |
| | | ,{field: 'price', align: 'center',title: '单价', hide: true} |
| | | ,{field: 'sku', align: 'center',title: 'sku', hide: true} |
| | | ,{field: 'units', align: 'center',title: '单位量', hide: true} |
| | |
| | | ,{field: 'itemNum', align: 'center',title: '品项数', hide: true} |
| | | ,{field: 'safeQty', align: 'center',title: '安全库存量', hide: true} |
| | | ,{field: 'weight', align: 'center',title: '单箱净重', hide: true} |
| | | ,{field: 'length', align: 'center',title: '单箱毛重', hide: true} |
| | | ,{field: 'volume', align: 'center',title: '单箱体积', hide: true} |
| | | ,{field: 'supp', align: 'center',title: '供应商', hide: true} |
| | | ,{field: 'beBatch$', align: 'center',title: '是否批次', hide: true} |
| | | ,{field: 'deadTime', align: 'center',title: '保质期', hide: true} |
| | | ,{field: 'deadWarn', align: 'center',title: '预警天数', hide: true} |
| | |
| | | cellMinWidth: 100, |
| | | cols: [[ |
| | | { type: 'numbers' }, |
| | | { field: 'orderNo', title: '单据编号', templet: '#orderNoTpl' }, |
| | | { field: 'docType$', align: 'center', title: '类型', minWidth: 160, width: 160 }, |
| | | { field: 'orderNo', title: '单据编号', templet: '#orderNoTpl' , minWidth: 180}, |
| | | { field: 'defNumber', align: 'center', title: '流水号', minWidth: 160, width: 160 }, |
| | | { field: 'number', align: 'center', title: '派工单号', minWidth: 160, width: 160 }, |
| | | { field: 'cstmrName', align: 'center', title: '公司ID', minWidth: 160, width: 160 }, |
| | | { field: 'itemName', align: 'center', title: '箱号', minWidth: 160, width: 160 }, |
| | | { field: 'docType$', align: 'center', title: '类型', minWidth: 130}, |
| | | { field: 'orderTime', align: 'center', title: '派工时间', minWidth: 160, width: 160 }, |
| | | { field: 'createTime$', title: '创建时间', minWidth: 160, width: 160 }, |
| | | { field: 'settle$', align: 'center', title: '状态', templet: '#settleTpl', minWidth: 100, width: 100 }, |
| | | { 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 } |
| | | ]], |
| | | request: { |
| | |
| | | { field: 'matnr', title: '商品编码', width: 160 }, |
| | | { field: 'maktx', title: '商品名称', width: 160 }, |
| | | { field: 'standby1', title: '供应商编码', width: 160 }, |
| | | { field: 'threeCode', title: 'BS Code', width: 160 }, |
| | | { field: 'tag$', title: '物料种类' }, |
| | | // { field: 'batch', title: '批号' }, |
| | | { field: 'anfme', title: '数量' }, |
| | | { field: 'tag$', title: '物料种类' }, |
| | | { field: 'workQty', title: '作业数量' }, |
| | | { field: 'qty', title: '完成数量', style: 'font-weight: bold' }, |
| | | { field: 'specs', title: '规格' } |
| | |
| | | var cols = [ |
| | | {field: 'locNo', align: 'center', title: '库位号'} |
| | | ]; |
| | | cols.push.apply(cols, cacheCols); |
| | | cols.push.apply(cols, detlCols); |
| | | return cols; |
| | | } |
| | | |