1.捡货单打印里面显示备注和发货时间
2.拣货单界面,仓库管理员角色拣货单发货时间超过当天16:00则当天不显示
| | |
| | | |
| | | String custName = Cools.isEmpty(param.get("cust_name")) ? "" : param.get("cust_name").toString(); |
| | | |
| | | List<PakOutDTO> pakOutDTOS = manPakOutService.selectPakOut(docnum, stime, etime, curr, limit,userId,custName); |
| | | // 仓库管理员 发货时间超过当天16.00则当天不显示 |
| | | // getUser().getRoleId() = 24 |
| | | List<PakOutDTO> pakOutDTOS = manPakOutService.selectPakOut(docnum, stime, etime, curr, limit,userId,custName,getUser().getRoleId()); |
| | | for (PakOutDTO pakOutDTO:pakOutDTOS){ |
| | | List<ManPakOut> manPakOuts = manPakOutService.selectList(new EntityWrapper<ManPakOut>().eq("doc_num", pakOutDTO.getDoc_num())); |
| | | for (ManPakOut manPakOut:manPakOuts){ |
| | |
| | | |
| | | } |
| | | |
| | | int count = manPakOutService.selectPakOutCount(docnum, stime, etime,curr, limit,userId,custName); |
| | | int count = manPakOutService.selectPakOutCount(docnum, stime, etime,curr, limit,userId,custName,getUser().getRoleId()); |
| | | Page<PakOutDTO> page = new Page<>(); |
| | | // 最后按状态未出库->已出库排序 |
| | | // page.setRecords(pakOutDTOS.stream().sorted(Comparator.comparingInt(PakOutDTO::getStatus)).collect(Collectors.toList())); |
| | |
| | | manPakOut.setNodeId(plaQty.getId()); |
| | | manPakOut.setCustName(plaQty.getCustomer()); |
| | | manPakOut.setCreateBy(userId); |
| | | manPakOut.setMemo(plaQty.getMemo()); // 备注 |
| | | //预计发货时间 |
| | | manPakOut.setSpecs(plaQty.getPakoutTime()); |
| | | //manPakOut.setNodeId(plaQty.getOrderDetlId()); |
| | |
| | | |
| | | |
| | | |
| | | List<PakOutDTO> selectPakOut(@Param("docnum") String docnum,@Param("stime") Date stime, @Param("etime") Date etime, @Param("curr") Integer curr, @Param("limit") Integer limit, @Param("userId") Long userId, @Param("custName") String custName); |
| | | List<PakOutDTO> selectPakOut(@Param("docnum") String docnum,@Param("stime") Date stime, @Param("etime") Date etime, @Param("curr") Integer curr, @Param("limit") Integer limit, |
| | | @Param("userId") Long userId, @Param("custName") String custName, @Param("roleId") Long roleId); |
| | | |
| | | int selectPakOutCount(@Param("docnum") String docnum,@Param("stime") Date stime, @Param("etime") Date etime,@Param("curr") Integer curr,@Param("limit") Integer limit, @Param("userId") Long userId, @Param("custName") String custName); |
| | | int selectPakOutCount(@Param("docnum") String docnum,@Param("stime") Date stime, @Param("etime") Date etime,@Param("curr") Integer curr,@Param("limit") Integer limit, |
| | | @Param("userId") Long userId, @Param("custName") String custName, @Param("roleId") Long roleId); |
| | | } |
| | |
| | | import java.util.List; |
| | | |
| | | public interface ManPakOutService extends IService<ManPakOut> { |
| | | List<PakOutDTO> selectPakOut(String docnum, Date stime, Date etime, Integer curr, Integer limit, Long userId,String custName); |
| | | List<PakOutDTO> selectPakOut(String docnum, Date stime, Date etime, Integer curr, Integer limit, Long userId,String custName,Long roleId); |
| | | |
| | | int selectPakOutCount(String docnum, Date stime, Date etime,Integer curr, Integer limit, Long userId,String custName); |
| | | int selectPakOutCount(String docnum, Date stime, Date etime,Integer curr, Integer limit, Long userId,String custName,Long roleId); |
| | | } |
| | |
| | | |
| | | |
| | | @Override |
| | | public List<PakOutDTO> selectPakOut(String docnum, Date stime, Date etime, Integer curr, Integer limit, Long userId,String custName) { |
| | | return this.baseMapper.selectPakOut(docnum,stime,etime,curr,limit,userId,custName); |
| | | public List<PakOutDTO> selectPakOut(String docnum, Date stime, Date etime, Integer curr, Integer limit, Long userId,String custName,Long roleId) { |
| | | return this.baseMapper.selectPakOut(docnum,stime,etime,curr,limit,userId,custName,roleId); |
| | | } |
| | | |
| | | @Override |
| | | public int selectPakOutCount(String docnum, Date stime, Date etime,Integer curr, Integer limit, Long userId,String custName) { |
| | | return this.baseMapper.selectPakOutCount(docnum,stime, etime,curr,limit,userId,custName); |
| | | public int selectPakOutCount(String docnum, Date stime, Date etime,Integer curr, Integer limit, Long userId,String custName,Long roleId) { |
| | | return this.baseMapper.selectPakOutCount(docnum,stime, etime,curr,limit,userId,custName,roleId); |
| | | } |
| | | } |
| | |
| | | <if test="userId != null"> |
| | | and (create_by = #{userId} or create_by is null) |
| | | </if> |
| | | <if test="roleId == 24"> |
| | | and TRY_CAST(specs AS datetime) <= DATEADD(hour, 16, CAST(CAST(GETDATE() AS date) AS datetime)) |
| | | </if> |
| | | |
| | | </sql> |
| | | |
| | |
| | | } |
| | | json.anfmeSum = sum; |
| | | json.custName = json.data[0].custName; |
| | | json.specs = json.data[0].specs; |
| | | json.memo = json.data[0].memo; |
| | | var barcodeUrl = baseUrl + "/ManPakOut/code/auth?type=1¶m=" + res.data[0].docNum; |
| | | console.log("barcodeUrl:"+barcodeUrl); |
| | | json.barcodeUrl = barcodeUrl; |
| | |
| | | <div style="height: 40px;text-align: left;line-height: 40px;font-size: 20px;">出库单号:{{docNum}}</div> |
| | | <div style="height: 40px;text-align: left;line-height: 40px;font-size: 20px;">总数量:{{anfmeSum}}</div> |
| | | <div style="height: 40px;text-align: left;line-height: 40px;font-size: 20px;">客户名称:{{custName}}</div> |
| | | <div style="height: 40px;text-align: left;line-height: 40px;font-size: 20px;">发货时间:{{specs}}</div> |
| | | <div style="height: 40px;text-align: left;line-height: 40px;font-size: 20px;">备注:{{memo}}</div> |
| | | </div> |
| | | {{#each data}} |
| | | <table width="100%" style="border:0;border-bottom:#0C0C0C solid 2px; margin-bottom:20px;padding:0;overflow: hidden;font-size: xx-small;table-layout: fixed;"> |