| | |
| | | @ApiModelProperty(value= "授权商户") |
| | | private Long hostId; |
| | | |
| | | @ApiModelProperty(value= "拍照图片") |
| | | private String pic; |
| | | |
| | | public LocMast() {} |
| | | |
| | | public LocMast(String locNo,Long whsType,String locSts,Integer crnNo,Integer row1,Integer bay1,Integer lev1,String fullPlt,Short locType1,Short locType2,Short locType3,Date ioTime,Date firstTime,Long modiUser,Date modiTime,Long appeUser,Date appeTime,Date errorTime,String errorMemo,String mk,String barcode,String memo,Long hostId) { |
| | |
| | | @ApiModelProperty(value= "堆垛机号") |
| | | private Integer crnNo; |
| | | |
| | | @ApiModelProperty(value= "拍照图片") |
| | | private String pic; |
| | | |
| | | public WrkMast() {} |
| | | |
| | | public WrkMast(Integer wrkNo, Long wrkSts, Integer ioType, Double ioPri, String locNo, Integer staNo, Integer sourceStaNo, String sourceLocNo, String picking, String exitMk, Integer pltType, String emptyMk, Date ioTime, Integer ctnType, String modiUser, Date modiTime, String appeUser, Date appeTime, Date errorTime, String errorMemo, String manuType, String memo, String barcode, String fullPlt, Long hostId, String oveMk, String invWh, Integer crnNo) { |
| | |
| | | @ApiModelProperty(value= "堆垛机号") |
| | | private Integer crnNo; |
| | | |
| | | @ApiModelProperty(value= "拍照图片") |
| | | private String pic; |
| | | |
| | | public WrkMastLog() {} |
| | | |
| | | public WrkMastLog(Long id,Integer wrkNo,Long wrkSts,Integer ioType,Double ioPri,String locNo,Integer staNo,Integer sourceStaNo,String sourceLocNo,String picking,String exitMk,Integer pltType,String emptyMk,Date ioTime,Integer ctnType,String modiUser,Date modiTime,String appeUser,Date appeTime,Date errorTime,String errorMemo,String manuType,String memo,String barcode,String fullPlt,Long hostId) { |
| | |
| | | package com.zy.asrs.wms.controller; |
| | | |
| | | import com.alibaba.fastjson.JSONArray; |
| | | import com.alibaba.fastjson.JSONObject; |
| | | import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper; |
| | | import com.baomidou.mybatisplus.extension.plugins.pagination.Page; |
| | | import com.zy.asrs.common.domain.entity.Parameter; |
| | |
| | | import com.zy.asrs.framework.common.DateUtils; |
| | | import com.zy.asrs.common.web.BaseController; |
| | | import org.springframework.beans.factory.annotation.Autowired; |
| | | import org.springframework.beans.factory.annotation.Value; |
| | | import org.springframework.transaction.annotation.Transactional; |
| | | import org.springframework.web.bind.annotation.*; |
| | | |
| | | import java.util.*; |
| | | |
| | | @RestController |
| | |
| | | private LocMastService locMastService; |
| | | @Autowired |
| | | private LocDetlService locDetlService; |
| | | |
| | | @Value("${wcs.url}") |
| | | private String WCS_URL; |
| | | |
| | | @RequestMapping(value = "/locMast/{id}/auth") |
| | | @ManagerAuth |
| | |
| | | return R.ok("初始化成功"); |
| | | } |
| | | |
| | | @GetMapping("/locMast/picUrl") |
| | | @ManagerAuth |
| | | public R getPicUrl(@RequestParam String locNo) { |
| | | LocMast locMast = locMastService.getOne(new LambdaQueryWrapper<LocMast>() |
| | | .eq(LocMast::getLocNo, locNo) |
| | | .eq(LocMast::getHostId, getHostId())); |
| | | if (locMast == null) { |
| | | return R.error(); |
| | | } |
| | | |
| | | String pic = locMast.getPic(); |
| | | ArrayList<String> list = new ArrayList<>(); |
| | | list.add("http://" + WCS_URL + "/image/" + pic + "-1.jpg"); |
| | | list.add("http://" + WCS_URL + "/image/" + pic + "-2.jpg"); |
| | | return R.ok().add(list); |
| | | } |
| | | |
| | | } |
| | |
| | | locMast.setLocSts("D"); |
| | | locMast.setIoTime(now); |
| | | locMast.setModiTime(now); |
| | | locMast.setPic(wrkMast.getPic()); |
| | | if (!locMastService.updateById(locMast)) { |
| | | exceptionHandle("空板入库 ===>> 修改库位状态失败;[workNo={0}],[locNo={1}]", wrkMast.getWrkNo(), wrkMast.getLocNo()); |
| | | } |
| | |
| | | locMast.setBarcode(wrkMast.getBarcode()); |
| | | locMast.setIoTime(now); |
| | | locMast.setModiTime(now); |
| | | locMast.setPic(wrkMast.getPic()); |
| | | if (!locMastService.updateById(locMast)) { |
| | | exceptionHandle("全板入库 ===>> 修改库位状态失败;[workNo={0}],[locNo={1}]", wrkMast.getWrkNo(), wrkMast.getLocNo()); |
| | | } |
| | |
| | | locMast.setBarcode(wrkMast.getBarcode()); |
| | | locMast.setIoTime(now); |
| | | locMast.setModiTime(now); |
| | | locMast.setPic(wrkMast.getPic()); |
| | | if (!locMastService.updateById(locMast)) { |
| | | exceptionHandle("拣料入库 ===>> 修改库位状态失败;[workNo={0}],[locNo={1}]", wrkMast.getWrkNo(), wrkMast.getLocNo()); |
| | | } |
| | |
| | | locMast.setBarcode(wrkMast.getBarcode()); |
| | | locMast.setIoTime(now); |
| | | locMast.setModiTime(now); |
| | | locMast.setPic(wrkMast.getPic()); |
| | | if (!locMastService.updateById(locMast)) { |
| | | exceptionHandle("并板入库 ===>> 修改库位状态失败;[workNo={0}],[locNo={1}]", wrkMast.getWrkNo(), wrkMast.getLocNo()); |
| | | } |
| | |
| | | locMast.setBarcode(wrkMast.getBarcode()); |
| | | locMast.setIoTime(now); |
| | | locMast.setModiTime(now); |
| | | locMast.setPic(wrkMast.getPic()); |
| | | if (!locMastService.updateById(locMast)) { |
| | | exceptionHandle("盘点入库 ===>> 修改库位状态失败;[workNo={0}],[locNo={1}]", wrkMast.getWrkNo(), wrkMast.getLocNo()); |
| | | } |
| | |
| | | locMast.setBarcode(""); |
| | | locMast.setModiTime(now); |
| | | locMast.setIoTime(now); |
| | | locMast.setPic(""); |
| | | if (!locMastService.updateById(locMast)) { |
| | | exceptionHandle("全板出库 ===>> 修改源库位状态失败;[workNo={0}],[sourceLocNo={1}]", wrkMast.getWrkNo(), wrkMast.getSourceLocNo()); |
| | | } |
| | |
| | | locMast.setBarcode(""); |
| | | locMast.setModiTime(now); |
| | | locMast.setIoTime(now); |
| | | locMast.setPic(""); |
| | | if (!locMastService.updateById(locMast)) { |
| | | exceptionHandle("空板出库 ===>> 修改源库位状态失败;[workNo={0}],[sourceLocNo={1}]", wrkMast.getWrkNo(), wrkMast.getSourceLocNo()); |
| | | } |
| | |
| | | |
| | | super: |
| | | pwd: xltys1995 |
| | | |
| | | wcs: |
| | | url: 127.0.0.1:9090/ncwcs |
| | |
| | | },width:80} |
| | | ,{field: 'modiUser$', align: 'center',title: '修改人员'} |
| | | ,{field: 'modiTime$', align: 'center',title: '修改时间', width: 180} |
| | | ,{ fixed: 'right', title:'操作', align: 'center', toolbar: '#operate'} |
| | | ,{ fixed: 'right', title:'操作', align: 'center', toolbar: '#operate', width: 300} |
| | | ]], |
| | | request: { |
| | | pageName: 'curr', |
| | |
| | | } |
| | | locDetlToLayer(data.locNo); |
| | | break; |
| | | // 查看图片 |
| | | case 'showPic': |
| | | let imgHtml = '<div style="height:100%;display: flex;justify-content: space-around;align-items: center;">'; |
| | | $.ajax({ |
| | | url: baseUrl+"/locMast/picUrl", |
| | | headers: {'token': localStorage.getItem('token')}, |
| | | data: { |
| | | locNo: data.locNo |
| | | }, |
| | | method: 'GET', |
| | | traditional:true, |
| | | success: function (res) { |
| | | if (res.code === 200){ |
| | | res.data.forEach((item) => { |
| | | let tmp = '<img width="600" src="' + item + '" />\''; |
| | | imgHtml += tmp; |
| | | }) |
| | | imgHtml += "</div>"; |
| | | |
| | | layer.open({ |
| | | type: 1, |
| | | title: '查看图片', |
| | | area: [top.detailWidth, top.detailHeight], |
| | | shadeClose: true, |
| | | content: imgHtml, |
| | | success: function(layero, index){ |
| | | } |
| | | }); |
| | | |
| | | } else if (res.code === 403){ |
| | | top.location.href = baseUrl+"/"; |
| | | } else { |
| | | layer.msg(res.msg) |
| | | } |
| | | } |
| | | }); |
| | | break; |
| | | } |
| | | }); |
| | | |
| | |
| | | |
| | | <script type="text/html" id="operate"> |
| | | <a class="layui-btn layui-btn-xs loc-detl" lay-event="locDetl">查看明细</a> |
| | | <a class="layui-btn layui-btn-xs loc-detl" lay-event="showPic">查看图片</a> |
| | | </script> |
| | | |
| | | <!--明细表--> |