| | |
| | | @Autowired |
| | | private OpenService openService; |
| | | |
| | | /*@PostMapping("/order/matSync/default/v1") |
| | | @PostMapping("/order/matSync/default/v1") |
| | | @AppAuth(memo = "商品信息同步接口") |
| | | public synchronized R syncMatInfo(@RequestHeader(required = false) String appkey, |
| | | @RequestBody(required = false) MatSyncParam param, |
| | |
| | | } |
| | | openService.syncMat(param); |
| | | return R.ok(); |
| | | }*/ |
| | | } |
| | | |
| | | /** |
| | | * 添加入库单 |
| | |
| | | import com.core.common.SpringUtils; |
| | | import com.zy.asrs.service.BasBoxTypeService; |
| | | import com.zy.asrs.service.LocMastService; |
| | | import com.zy.asrs.service.MatService; |
| | | import com.zy.common.utils.Synchro; |
| | | import com.zy.system.entity.User; |
| | | import com.zy.system.service.UserService; |
| | |
| | | return new SimpleDateFormat("yyyy-MM-dd HH:mm:ss").format(this.appeTime); |
| | | } |
| | | |
| | | public long getStoreDate(){ |
| | | long timeNow = new Date().getTime(); |
| | | long timeCreate = this.appeTime.getTime(); |
| | | |
| | | return (timeNow - timeCreate) /24/60/60/1000; |
| | | } |
| | | |
| | | public String getStoreMax$(){ |
| | | MatService matService = SpringUtils.getBean(MatService.class); |
| | | Mat mat = matService.selectByMatnr(this.matnr); |
| | | if (!Cools.isEmpty(mat)){ |
| | | return String.valueOf(mat.getStoreMin()); |
| | | } |
| | | return null; |
| | | } |
| | | |
| | | |
| | | public String getStoreMin$(){ |
| | | MatService matService = SpringUtils.getBean(MatService.class); |
| | | Mat mat = matService.selectByMatnr(this.matnr); |
| | | if (!Cools.isEmpty(mat)){ |
| | | return String.valueOf(mat.getStoreMax()); |
| | | } |
| | | return null; |
| | | } |
| | | |
| | | |
| | | public void sync(Object source) { |
| | | Synchro.Copy(source, this); |
| | | } |
| | |
| | | @ExcelProperty(value = "备注") |
| | | private String memo; |
| | | |
| | | /** |
| | | * 库存预警数量上限 |
| | | */ |
| | | @TableField("store_max") |
| | | private Double storeMax; |
| | | |
| | | /** |
| | | * 库存预警数量下限 |
| | | */ |
| | | @TableField("store_min") |
| | | private Double storeMin; |
| | | |
| | | /** |
| | | * 库龄预警上限 |
| | | */ |
| | | @TableField("store_max_date") |
| | | private Integer storeMaxDate; |
| | | |
| | | public Mat() {} |
| | | |
| | | public Mat(String uuid,Long tagId,String matnr,String maktx,String name,String specs,String model,String color,String brand,String unit,Double price,String sku,Double units,String barcode,String origin,String manu,String manuDate,String itemNum,Double safeQty,Double weight,Double length,Double volume,String threeCode,String supp,String suppCode,Integer beBatch,String deadTime,Integer deadWarn,Integer source,Integer inspect,Integer danger,Integer status,Long createBy,Date createTime,Long updateBy,Date updateTime,String memo) { |
| | |
| | | <result column="update_by" property="updateBy" /> |
| | | <result column="update_time" property="updateTime" /> |
| | | <result column="memo" property="memo" /> |
| | | <result column="store_max" property="storeMax" /> |
| | | <result column="store_min" property="storeMin" /> |
| | | <result column="store_max_date" property="storeMaxDate" /> |
| | | |
| | | <result column="stock" property="stock" /> |
| | | </resultMap> |
| | |
| | | function getCol() { |
| | | var cols = [ |
| | | {field: 'locNo$', align: 'center',title: '库位号'}, |
| | | {field: 'matnr', align: 'center',title: '规格', sort:true} |
| | | {field: 'storeDate', align: 'center',title: '库龄(天)', sort:true} |
| | | ,{field: 'storeMax$', align: 'center',title: '库存上限'} |
| | | ,{field: 'storeMin$', align: 'center',title: '库存下限'} |
| | | ,{field: 'matnr', align: 'center',title: '规格', sort:true} |
| | | ,{field: 'maktx', align: 'center',title: '商品名称', sort:true} |
| | | ,{field: 'orderNo', align: 'center',title: '单据编号', hide: true} |
| | | ,{field: 'batch', align: 'center',title: '箱号', width: 300, sort:true} |
| | |
| | | var cols = [ |
| | | {type: 'checkbox'} |
| | | ,{field: 'tagId$', align: 'center',title: '归类', templet: '#tagTpl'} |
| | | ,{field: 'store_max', align: 'center',title: '库存上限'} |
| | | ,{field: 'store_min', align: 'center',title: '库存下限'} |
| | | ,{field: 'store_max_date', align: 'center',title: '库龄上限(天)'} |
| | | ]; |
| | | cols.push.apply(cols, matCols); |
| | | cols.push( |