| | |
| | | package com.ld.igds.inout.controller; |
| | | |
| | | import ch.qos.logback.classic.pattern.ClassNameOnlyAbbreviator; |
| | | import com.bstek.bdf2.core.business.IUser; |
| | | import com.bstek.bdf2.core.model.DefaultDept; |
| | | import com.ld.igds.check.dto.CheckItemData; |
| | |
| | | |
| | | /** |
| | | * 出库登记 |
| | | * |
| | | * @param sort 表示使用的出入库设备配套号,不传递默认为1 |
| | | * @return |
| | | */ |
| | |
| | | view.addObject("type", InoutConstant.TYPE_OUT); |
| | | |
| | | // 仓库列表做下拉框使用 |
| | | List<SimpleDepot> listDepot = commonManager.getCacheDeptOut(user.getCompanyId(),deptId); |
| | | List<SimpleDepot> listDepot = commonManager.getCacheDeptOut(user.getCompanyId(), deptId); |
| | | view.addObject(Constant.MODEL_KEY_DEPOT_LIST, listDepot); |
| | | |
| | | //出库流程 |
| | |
| | | |
| | | IUser user = ContextUtil.getLoginUser(); |
| | | |
| | | String deptId = ContextUtil.subDeptId(user); |
| | | String deptId = ContextUtil.subDeptId(user); |
| | | view.addObject(Constant.MODEL_KEY_LOGIN_USER, user); |
| | | view.addObject("bizType", BizType.INOUT_OUT.getCode()); |
| | | view.addObject("deptId",deptId); |
| | | view.addObject("deptId", deptId); |
| | | view.addObject("type", InoutConstant.TYPE_OUT); |
| | | |
| | | |
| | | // 仓库列表做下拉框使用 |
| | | List<SimpleDepot> listDepot = commonManager.getCacheDeptOut(user.getCompanyId(),deptId); |
| | | List<SimpleDepot> listDepot = commonManager.getCacheDeptOut(user.getCompanyId(), deptId); |
| | | view.addObject(Constant.MODEL_KEY_DEPOT_LIST, listDepot); |
| | | |
| | | |
| | |
| | | */ |
| | | @RequestMapping("/inout-query") |
| | | public PageResponse<InoutData> inoutQuery(@RequestBody InoutParam param) { |
| | | if(null == param.getCompanyId()) param.setCompanyId(ContextUtil.getCompanyId()); |
| | | if (null == param.getCompanyId()) param.setCompanyId(ContextUtil.getCompanyId()); |
| | | return inoutManager.inoutQuery(param); |
| | | } |
| | | |
| | |
| | | } |
| | | |
| | | /** |
| | | * 出入库称重环节提交 |
| | | * |
| | | * @param data |
| | | * @return |
| | | */ |
| | | @RequestMapping("/submit-weight") |
| | | @Transactional |
| | | public PageResponse<InoutData> submitWeight(@RequestBody InoutData data) throws Exception { |
| | | |
| | | if(null == data.getJjlx()) data.setJjlx("0"); |
| | | |
| | | if (InoutConstant.TYPE_IN.equals(data.getType())) { |
| | | return inoutManager.submitWeightIn(data); |
| | | } else { |
| | | return inoutManager.submitWeightOut(data); |
| | | } |
| | | } |
| | | |
| | | /** |
| | | * 卡回收页面提交,如果是正常流程卡回收则走正常完成流程,否则执行删除逻辑并回收卡 |
| | | * |
| | | * @param data |