| | |
| | | } |
| | | } |
| | | |
| | | public String formatMappedLocNo(String locNo){ |
| | | if (Cools.isEmpty(locNo)){ |
| | | return locNo; |
| | | } |
| | | String[] locParts = locNo.split("-"); |
| | | if (locParts.length < 3){ |
| | | return locNo; |
| | | } |
| | | try { |
| | | Integer locationRow = Integer.valueOf(locParts[0]); |
| | | Integer commandRow = getCommandRow(locationRow); |
| | | if (commandRow == null || commandRow.equals(locationRow)){ |
| | | return locNo; |
| | | } |
| | | String mappedLocNo = commandRow + "-" + locParts[1] + "-" + locParts[2]; |
| | | return locNo + "(" + mappedLocNo + ")"; |
| | | } catch (Exception exception) { |
| | | return locNo; |
| | | } |
| | | } |
| | | |
| | | } |
| | |
| | | LocMastService service = SpringUtils.getBean(LocMastService.class); |
| | | LocMast locMast = service.getById(this.locNo); |
| | | if (!Cools.isEmpty(locMast)){ |
| | | return String.valueOf(locMast.getLocNo()); |
| | | return formatMappedLocNo(String.valueOf(locMast.getLocNo())); |
| | | } |
| | | return null; |
| | | } |
| | |
| | | LocMastService service = SpringUtils.getBean(LocMastService.class); |
| | | LocMast locMast = service.getById(this.sourceLocNo); |
| | | if (!Cools.isEmpty(locMast)){ |
| | | return String.valueOf(locMast.getLocNo()); |
| | | return formatMappedLocNo(String.valueOf(locMast.getLocNo())); |
| | | } |
| | | return null; |
| | | } |
| | | |
| | | private String formatMappedLocNo(String locNo){ |
| | | if (Cools.isEmpty(this.crnNo)){ |
| | | return locNo; |
| | | } |
| | | BasCrnpService basCrnpService = SpringUtils.getBean(BasCrnpService.class); |
| | | BasCrnp basCrnp = basCrnpService.getById(this.crnNo); |
| | | if (Cools.isEmpty(basCrnp)){ |
| | | return locNo; |
| | | } |
| | | return basCrnp.formatMappedLocNo(locNo); |
| | | } |
| | | |
| | | public String getIoTime$(){ |
| | | if (Cools.isEmpty(this.ioTime)){ |
| | | return ""; |
| | |
| | | import com.core.common.SpringUtils; |
| | | import com.zy.asrs.mapper.BasWrkIotypeMapper; |
| | | import com.zy.asrs.mapper.BasWrkStatusMapper; |
| | | import com.zy.asrs.service.BasCrnpService; |
| | | import com.zy.asrs.service.LocMastService; |
| | | import com.zy.asrs.service.WrkMastService; |
| | | import com.zy.common.utils.Synchro; |
| | |
| | | LocMastService service = SpringUtils.getBean(LocMastService.class); |
| | | LocMast locMast = service.getById(this.locNo); |
| | | if (!Cools.isEmpty(locMast)){ |
| | | return String.valueOf(locMast.getLocNo()); |
| | | return formatMappedLocNo(String.valueOf(locMast.getLocNo())); |
| | | } |
| | | return null; |
| | | } |
| | |
| | | LocMastService service = SpringUtils.getBean(LocMastService.class); |
| | | LocMast locMast = service.getById(this.sourceLocNo); |
| | | if (!Cools.isEmpty(locMast)){ |
| | | return String.valueOf(locMast.getLocNo()); |
| | | return formatMappedLocNo(String.valueOf(locMast.getLocNo())); |
| | | } |
| | | return null; |
| | | } |
| | | |
| | | private String formatMappedLocNo(String locNo){ |
| | | if (Cools.isEmpty(this.crnNo)){ |
| | | return locNo; |
| | | } |
| | | BasCrnpService basCrnpService = SpringUtils.getBean(BasCrnpService.class); |
| | | BasCrnp basCrnp = basCrnpService.getById(this.crnNo); |
| | | if (Cools.isEmpty(basCrnp)){ |
| | | return locNo; |
| | | } |
| | | return basCrnp.formatMappedLocNo(locNo); |
| | | } |
| | | |
| | | public String getIoTime$(){ |
| | | if (Cools.isEmpty(this.ioTime)){ |
| | | return ""; |
| | |
| | | { key: "ioPri", prop: "ioPri", label: "优先级", width: 90, sortable: true, align: "center" }, |
| | | { key: "sourceStaNo", prop: "sourceStaNo", label: "源站", width: 90, sortable: true, align: "center" }, |
| | | { key: "staNo", prop: "staNo", label: "目标站", width: 90, sortable: true, align: "center" }, |
| | | { key: "sourceLocNo", prop: "sourceLocNo", label: "源库位", minWidth: 140, sortable: true }, |
| | | { key: "locNo", prop: "locNo", label: "目标库位", minWidth: 140, sortable: true }, |
| | | { key: "sourceLocNo", prop: "sourceLocNo$", label: "源库位", minWidth: 170, sortable: true }, |
| | | { key: "locNo", prop: "locNo$", label: "目标库位", minWidth: 170, sortable: true }, |
| | | { key: "modiTime$", prop: "modiTime$", label: "修改时间", minWidth: 168, sortable: true }, |
| | | { key: "barcode", prop: "barcode", label: "托盘码", minWidth: 150, sortable: true }, |
| | | { key: "crnNo", prop: "crnNo", label: "堆垛机", width: 90, sortable: true, align: "center" }, |
| | |
| | | field: 'locNo', |
| | | columnName: 'loc_no', |
| | | label: '目标库位', |
| | | tableProp: 'locNo', |
| | | exportField: 'locNo', |
| | | tableProp: 'locNo$', |
| | | exportField: 'locNo$', |
| | | kind: 'text', |
| | | valueType: 'string', |
| | | required: false, |
| | |
| | | field: 'sourceLocNo', |
| | | columnName: 'source_loc_no', |
| | | label: '源库位', |
| | | tableProp: 'sourceLocNo', |
| | | exportField: 'sourceLocNo', |
| | | tableProp: 'sourceLocNo$', |
| | | exportField: 'sourceLocNo$', |
| | | kind: 'text', |
| | | valueType: 'string', |
| | | required: false, |
| | |
| | | var wrkMastLogFieldOrder = [ |
| | | 'wrkNo', |
| | | 'wmsWrkNo', |
| | | 'mk', |
| | | 'wrkSts', |
| | | 'ioType', |
| | | 'ioTime', |
| | | 'appeTime', |
| | | 'ioPri', |
| | | 'sourceStaNo', |
| | | 'staNo', |
| | |
| | | 'barcode', |
| | | 'modiUser', |
| | | 'modiTime', |
| | | 'appeTime', |
| | | 'appeUser', |
| | | 'systemMsg', |
| | | 'errorTime', |
| | |
| | | }, |
| | | wmsWrkNo: { |
| | | label: 'WMS任务号', |
| | | searchable: true, |
| | | quickSearch: true, |
| | | minWidth: 140 |
| | | }, |
| | | mk: { |
| | | label: 'mk', |
| | | searchable: true, |
| | | quickSearch: true, |
| | | minWidth: 140 |
| | |
| | | defaultVisible: false, |
| | | minWidth: 300 |
| | | }, |
| | | appeTime: { |
| | | label: '工作时间', |
| | | tableProp: 'appeTime$', |
| | | exportField: 'appeTime$', |
| | | sortable: true, |
| | | minWidth: 168 |
| | | }, |
| | | ioPri: { |
| | | label: '优先级', |
| | | minWidth: 90 |
| | |
| | | }, |
| | | sourceLocNo: { |
| | | label: '源库位', |
| | | tableProp: 'sourceLocNo$', |
| | | exportField: 'sourceLocNo$', |
| | | searchable: true, |
| | | minWidth: 120 |
| | | minWidth: 170 |
| | | }, |
| | | locNo: { |
| | | label: '目标库位', |
| | | tableProp: 'locNo$', |
| | | exportField: 'locNo$', |
| | | searchable: true, |
| | | quickSearch: true, |
| | | minWidth: 120 |
| | | minWidth: 170 |
| | | }, |
| | | crnNo: { |
| | | label: '堆垛机', |
| | |
| | | label: '修改时间', |
| | | tableProp: 'modiTime$', |
| | | exportField: 'modiTime$', |
| | | defaultVisible: false, |
| | | minWidth: 168 |
| | | }, |
| | | appeTime: { |
| | | label: '添加时间', |
| | | tableProp: 'appeTime$', |
| | | exportField: 'appeTime$', |
| | | minWidth: 168 |
| | | }, |
| | | appeUser: { |