Commit e38555798dd020628039c804935d59b76712602f
1 parent
cb13fb08
完善平库入库
Showing
13 changed files
with
207 additions
and
65 deletions
ant-design-vue-jeecg/src/api/api.js
@@ -257,7 +257,7 @@ export const auditShipment = (params) => getAction("/audit/audit/auditShipment", | @@ -257,7 +257,7 @@ export const auditShipment = (params) => getAction("/audit/audit/auditShipment", | ||
257 | //查询是否开启审核流程 | 257 | //查询是否开启审核流程 |
258 | export const getDocumentAduitFlow = (params) => getAction("/config/parameterConfiguration/getDocumentAduitFlow", params); | 258 | export const getDocumentAduitFlow = (params) => getAction("/config/parameterConfiguration/getDocumentAduitFlow", params); |
259 | //库位监控-快速入库 | 259 | //库位监控-快速入库 |
260 | -export const monitoringQuickReceipt = (params) => postAction("/config/location/quickReceipt", params); | 260 | +export const monitoringQuickReceipt = (params) => postAction("/receipt/receiveHeader/flatQuickReceipt", params); |
261 | //快速入库 | 261 | //快速入库 |
262 | export const quickReceipt = (params) => postAction("/task/taskHeader/quickReceipt", params); | 262 | export const quickReceipt = (params) => postAction("/task/taskHeader/quickReceipt", params); |
263 | //快速出库,批量快速出整托 | 263 | //快速出库,批量快速出整托 |
@@ -265,7 +265,7 @@ export const shipmentInventoryHeader = (params) => postAction('/inventory/invent | @@ -265,7 +265,7 @@ export const shipmentInventoryHeader = (params) => postAction('/inventory/invent | ||
265 | //快速出库,批量快速出库存详情 | 265 | //快速出库,批量快速出库存详情 |
266 | export const shipmentInventoryDetail = (params) => postAction('/inventory/inventoryHeader/shipmentInventoryDetail', params); | 266 | export const shipmentInventoryDetail = (params) => postAction('/inventory/inventoryHeader/shipmentInventoryDetail', params); |
267 | // 快速出库,通过库存ID | 267 | // 快速出库,通过库存ID |
268 | -export const autoShipmentByID = (params) => postAction('/config/location/quickShipment', params); | 268 | +export const flatQuickShipment = (params) => postAction('/shipment/shipmentCombination/flatQuickShipment', params); |
269 | //呼叫入库托盘 | 269 | //呼叫入库托盘 |
270 | export const callReceiptBox = (params) => postAction('/receipt/receiptHeader/callbox', params); | 270 | export const callReceiptBox = (params) => postAction('/receipt/receiptHeader/callbox', params); |
271 | //批量呼叫入库托盘 | 271 | //批量呼叫入库托盘 |
@@ -316,6 +316,8 @@ export const quickShipment = (params) => postAction("/task/taskHeader/quickShipm | @@ -316,6 +316,8 @@ export const quickShipment = (params) => postAction("/task/taskHeader/quickShipm | ||
316 | export const shipmentCheck = (params) => postAction("/shipment/shipmentCombination/shipmentCheck", params); | 316 | export const shipmentCheck = (params) => postAction("/shipment/shipmentCombination/shipmentCheck", params); |
317 | //查询盘点明细子表 | 317 | //查询盘点明细子表 |
318 | export const listCycleDetailChildByDetailId = (params) => postAction("/cycleCountDetail/cycleCountDetail/listCycleDetailChildByDetailId", params); | 318 | export const listCycleDetailChildByDetailId = (params) => postAction("/cycleCountDetail/cycleCountDetail/listCycleDetailChildByDetailId", params); |
319 | +//平库上架 | ||
320 | +export const flatOnShell = (params) => postAction("/receipt/receiveHeader/flatOnShell", params); | ||
319 | 321 | ||
320 | // 中转HTTP请求 | 322 | // 中转HTTP请求 |
321 | export const transitRESTful = { | 323 | export const transitRESTful = { |
ant-design-vue-jeecg/src/views/system/config/MaterialList.vue
@@ -5,7 +5,7 @@ | @@ -5,7 +5,7 @@ | ||
5 | <a-form layout="inline" @keyup.enter.native="searchQuery"> | 5 | <a-form layout="inline" @keyup.enter.native="searchQuery"> |
6 | <a-row :gutter="24"> | 6 | <a-row :gutter="24"> |
7 | <a-col :xl="6" :lg="7" :md="8" :sm="24"> | 7 | <a-col :xl="6" :lg="7" :md="8" :sm="24"> |
8 | - <a-form-item label="物料编码">dy | 8 | + <a-form-item label="物料编码"> |
9 | <a-input placeholder="请输入物料编码" v-model="queryParam.code"></a-input> | 9 | <a-input placeholder="请输入物料编码" v-model="queryParam.code"></a-input> |
10 | </a-form-item> | 10 | </a-form-item> |
11 | </a-col> | 11 | </a-col> |
ant-design-vue-jeecg/src/views/system/monitor/modules/ExpressDeliveryModal.vue
@@ -66,7 +66,7 @@ | @@ -66,7 +66,7 @@ | ||
66 | <script> | 66 | <script> |
67 | 67 | ||
68 | import JEditableTable from '@/components/jeecg/JEditableTable' | 68 | import JEditableTable from '@/components/jeecg/JEditableTable' |
69 | -import {execute, autoShipmentByID} from '@/api/api' | 69 | +import {execute, flatQuickShipment} from '@/api/api' |
70 | import JDate from '@/components/jeecg/JDate' | 70 | import JDate from '@/components/jeecg/JDate' |
71 | import JSelectMultiCanUseContainer from "../../../../components/jeecgbiz/JSelectMultiCanUseContainer"; | 71 | import JSelectMultiCanUseContainer from "../../../../components/jeecgbiz/JSelectMultiCanUseContainer"; |
72 | 72 | ||
@@ -152,7 +152,7 @@ export default { | @@ -152,7 +152,7 @@ export default { | ||
152 | debugger | 152 | debugger |
153 | this.confirmLoading = true | 153 | this.confirmLoading = true |
154 | this.model = Object.assign({}, record); | 154 | this.model = Object.assign({}, record); |
155 | - autoShipmentByID(record.receiptEntityList).then((res) => { | 155 | + flatQuickShipment(record.receiptEntityList).then((res) => { |
156 | this.loading = false; | 156 | this.loading = false; |
157 | if (res.success) { | 157 | if (res.success) { |
158 | this.$message.success(res.message); | 158 | this.$message.success(res.message); |
ant-design-vue-jeecg/src/views/system/receipt/ReceiptContainerHeaderList.vue
@@ -133,7 +133,7 @@ | @@ -133,7 +133,7 @@ | ||
133 | <a v-if="record.status == 0 && record.taskType == 200" @click="selectPort(record)" v-has="'receiptContainerHeader:createTask'"><a-button type="primary">生成任务</a-button></a> | 133 | <a v-if="record.status == 0 && record.taskType == 200" @click="selectPort(record)" v-has="'receiptContainerHeader:createTask'"><a-button type="primary">生成任务</a-button></a> |
134 | <a v-else-if="record.status == 0" @click="createTask(record)" v-has="'receiptContainerHeader:createTask'"><a-button type="primary">生成任务</a-button></a> | 134 | <a v-else-if="record.status == 0" @click="createTask(record)" v-has="'receiptContainerHeader:createTask'"><a-button type="primary">生成任务</a-button></a> |
135 | <a-popconfirm v-if="record.status == 0" v-has="'receiptContainerHeader:delete'" title="确定取消配盘吗?" @confirm="() => handleDelete(record.id)"> | 135 | <a-popconfirm v-if="record.status == 0" v-has="'receiptContainerHeader:delete'" title="确定取消配盘吗?" @confirm="() => handleDelete(record.id)"> |
136 | - <a><a-button type="danger">取消配盘</a-button> <a-divider type="vertical"/></a> | 136 | + <a><a-button type="danger">取消配盘</a-button></a> |
137 | </a-popconfirm> | 137 | </a-popconfirm> |
138 | 138 | ||
139 | <a v-has="'receiptContainerHeader:edit'" @click="handleEdit(record)"><a-button type="default">编辑</a-button></a> | 139 | <a v-has="'receiptContainerHeader:edit'" @click="handleEdit(record)"><a-button type="default">编辑</a-button></a> |
@@ -151,6 +151,7 @@ | @@ -151,6 +151,7 @@ | ||
151 | <receiptContainerSelect-modal ref="modalForm2" @ok="modalFormOk"></receiptContainerSelect-modal> | 151 | <receiptContainerSelect-modal ref="modalForm2" @ok="modalFormOk"></receiptContainerSelect-modal> |
152 | <receiptContainerFillSelect-modal ref="modalForm3" @ok="modalFormOk"></receiptContainerFillSelect-modal> | 152 | <receiptContainerFillSelect-modal ref="modalForm3" @ok="modalFormOk"></receiptContainerFillSelect-modal> |
153 | <receiptContainerStatusSelect-modal ref="modalForm4" @ok="modalFormOk"></receiptContainerStatusSelect-modal> | 153 | <receiptContainerStatusSelect-modal ref="modalForm4" @ok="modalFormOk"></receiptContainerStatusSelect-modal> |
154 | + <receipt-container-on-shell-modal ref="modalForm4" @ok="modalFormOk"></receipt-container-on-shell-modal> | ||
154 | 155 | ||
155 | </a-card> | 156 | </a-card> |
156 | </template> | 157 | </template> |
@@ -169,11 +170,13 @@ import ReceiptContainerSelectModal from "./modules/ReceiptContainerSelectModal"; | @@ -169,11 +170,13 @@ import ReceiptContainerSelectModal from "./modules/ReceiptContainerSelectModal"; | ||
169 | import ReceiptContainerFillSelectModal from "./modules/ReceiptContainerFillSelectModal"; | 170 | import ReceiptContainerFillSelectModal from "./modules/ReceiptContainerFillSelectModal"; |
170 | import ReceiptContainerStatusSelectModal from "./modules/ReceiptContainerStatusSelectModal"; | 171 | import ReceiptContainerStatusSelectModal from "./modules/ReceiptContainerStatusSelectModal"; |
171 | import '@/assets/less/TableExpand.less' | 172 | import '@/assets/less/TableExpand.less' |
173 | +import ReceiptContainerOnShellModal from "@views/system/receipt/modules/ReceiptContainerOnShellModal.vue"; | ||
172 | 174 | ||
173 | export default { | 175 | export default { |
174 | name: "ReceiptContainerHeaderList", | 176 | name: "ReceiptContainerHeaderList", |
175 | mixins: [JeecgListMixin], | 177 | mixins: [JeecgListMixin], |
176 | components: { | 178 | components: { |
179 | + ReceiptContainerOnShellModal, | ||
177 | ReceiptContainerSelectModal, | 180 | ReceiptContainerSelectModal, |
178 | ReceiptContainerDetailList, | 181 | ReceiptContainerDetailList, |
179 | ReceiptContainerHeaderModal, | 182 | ReceiptContainerHeaderModal, |
ant-design-vue-jeecg/src/views/system/receipt/modules/ReceiptContainerOnShellModal.vue
0 → 100644
1 | +<template> | ||
2 | + <j-modal | ||
3 | + :title="title" | ||
4 | + :width="width" | ||
5 | + :visible="visible" | ||
6 | + :confirmLoading="confirmLoading" | ||
7 | + switchFullscreen | ||
8 | + @ok="handleOk" | ||
9 | + @cancel="handleCancel" | ||
10 | + cancelText="关闭"> | ||
11 | + <div class="table-page-search-wrapper"> | ||
12 | + <a-spin :spinning="confirmLoading"> | ||
13 | + <a-form-model ref="form" :model="model" :rules="validatorRules" > | ||
14 | + <a-row> | ||
15 | + <a-col :span="24"> | ||
16 | + <a-form-model-item label="库位编码" :labelCol="labelCol" :wrapperCol="wrapperCol" prop="toLocationCode"> | ||
17 | + <a-input v-model="model.remark" placeholder="请输入库位编码"></a-input> | ||
18 | + </a-form-model-item> | ||
19 | + </a-col> | ||
20 | + </a-row> | ||
21 | + </a-form-model> | ||
22 | + </a-spin> | ||
23 | + </div> | ||
24 | + </j-modal> | ||
25 | +</template> | ||
26 | + | ||
27 | +<script> | ||
28 | + | ||
29 | +import {httpAction} from '@/api/manage' | ||
30 | +import {validateDuplicateValue} from '@/utils/util' | ||
31 | +import {flatOnShell} from '@/api/api' | ||
32 | + | ||
33 | +export default { | ||
34 | + name: "ReceiptContainerOnShellModal", | ||
35 | + components: {}, | ||
36 | + props: { | ||
37 | + mainId: { | ||
38 | + type: String, | ||
39 | + required: false, | ||
40 | + default: '' | ||
41 | + } | ||
42 | + }, | ||
43 | + data() { | ||
44 | + return { | ||
45 | + title: "操作", | ||
46 | + portList: [], | ||
47 | + flag:'0', | ||
48 | + width: 500, | ||
49 | + visible: false, | ||
50 | + model: {}, | ||
51 | + labelCol: { | ||
52 | + xs: {span: 24}, | ||
53 | + sm: {span: 5}, | ||
54 | + }, | ||
55 | + wrapperCol: { | ||
56 | + xs: {span: 24}, | ||
57 | + sm: {span: 16}, | ||
58 | + }, | ||
59 | + confirmLoading: false, | ||
60 | + validatorRules: { | ||
61 | + toLocationCode: [{ required: true, message: '请输入库位编码!' }] | ||
62 | + }, | ||
63 | + url: { | ||
64 | + } | ||
65 | + } | ||
66 | + }, | ||
67 | + created() { | ||
68 | + //备份model原始值 | ||
69 | + this.modelDefault = JSON.parse(JSON.stringify(this.model)); | ||
70 | + }, | ||
71 | + methods: { | ||
72 | + add() { | ||
73 | + this.edit(this.modelDefault); | ||
74 | + }, | ||
75 | + edit(record) { | ||
76 | + this.model = Object.assign({}, record); | ||
77 | + this.visible = true; | ||
78 | + }, | ||
79 | + close() { | ||
80 | + this.$emit('close'); | ||
81 | + this.visible = false; | ||
82 | + this.$refs.form.clearValidate(); | ||
83 | + }, | ||
84 | + handleOk() { | ||
85 | + const that = this; | ||
86 | + // 触发表单验证 | ||
87 | + this.$refs.form.validate(valid => { | ||
88 | + if (valid) { | ||
89 | + that.confirmLoading = true; | ||
90 | + flatOnShell(this.model).then((res) => { | ||
91 | + if (res.success) { | ||
92 | + that.$message.success(res.message); | ||
93 | + that.$emit('ok'); | ||
94 | + } else { | ||
95 | + that.$message.warning(res.message); | ||
96 | + } | ||
97 | + }).finally(() => { | ||
98 | + that.confirmLoading = false; | ||
99 | + that.close(); | ||
100 | + }); | ||
101 | + } else { | ||
102 | + return false | ||
103 | + } | ||
104 | + }); | ||
105 | + }, | ||
106 | + handleCancel() { | ||
107 | + this.close() | ||
108 | + }, | ||
109 | + } | ||
110 | +} | ||
111 | +</script> |
huaheng-wms-core/src/main/java/org/jeecg/modules/wms/config/container/service/IContainerService.java
@@ -19,6 +19,8 @@ public interface IContainerService extends IService<Container> { | @@ -19,6 +19,8 @@ public interface IContainerService extends IService<Container> { | ||
19 | 19 | ||
20 | Container getContainerByCode(String containCode, String warehouseCode); | 20 | Container getContainerByCode(String containCode, String warehouseCode); |
21 | 21 | ||
22 | + Container getContainerByLocationCode(String locationCode, String warehouseCode); | ||
23 | + | ||
22 | boolean updateStatus(String containerCode, String status, String warehouseCode); | 24 | boolean updateStatus(String containerCode, String status, String warehouseCode); |
23 | 25 | ||
24 | boolean updateFillStatus(String containerCode, String fillStatus, String warehouseCode); | 26 | boolean updateFillStatus(String containerCode, String fillStatus, String warehouseCode); |
huaheng-wms-core/src/main/java/org/jeecg/modules/wms/config/container/service/impl/ContainerServiceImpl.java
@@ -91,6 +91,20 @@ public class ContainerServiceImpl extends ServiceImpl<ContainerMapper, Container | @@ -91,6 +91,20 @@ public class ContainerServiceImpl extends ServiceImpl<ContainerMapper, Container | ||
91 | } | 91 | } |
92 | 92 | ||
93 | @Override | 93 | @Override |
94 | + public Container getContainerByLocationCode(String locationCode, String warehouseCode) { | ||
95 | + if (StringUtils.isEmpty(locationCode)) { | ||
96 | + throw new JeecgBootException("库位编码为空"); | ||
97 | + } | ||
98 | + if (StringUtils.havaLowerCase(locationCode)) { | ||
99 | + throw new JeecgBootException("库位不能有小字母" + locationCode); | ||
100 | + } | ||
101 | + LambdaQueryWrapper<Container> containerLambdaQueryWrapper = Wrappers.lambdaQuery(); | ||
102 | + containerLambdaQueryWrapper.eq(Container::getLocationCode, locationCode).eq(Container::getWarehouseCode, warehouseCode); | ||
103 | + Container container = containerService.getOne(containerLambdaQueryWrapper); | ||
104 | + return container; | ||
105 | + } | ||
106 | + | ||
107 | + @Override | ||
94 | @Transactional | 108 | @Transactional |
95 | public boolean updateStatus(String containerCode, String status, String warehouseCode) { | 109 | public boolean updateStatus(String containerCode, String status, String warehouseCode) { |
96 | LambdaUpdateWrapper<Container> updateWrapper = Wrappers.lambdaUpdate(); | 110 | LambdaUpdateWrapper<Container> updateWrapper = Wrappers.lambdaUpdate(); |
huaheng-wms-core/src/main/java/org/jeecg/modules/wms/config/location/controller/LocationController.java
@@ -12,19 +12,15 @@ import org.jeecg.common.api.vo.Result; | @@ -12,19 +12,15 @@ import org.jeecg.common.api.vo.Result; | ||
12 | import org.jeecg.common.aspect.annotation.AutoLog; | 12 | import org.jeecg.common.aspect.annotation.AutoLog; |
13 | import org.jeecg.common.system.base.controller.JeecgController; | 13 | import org.jeecg.common.system.base.controller.JeecgController; |
14 | import org.jeecg.common.system.query.QueryGenerator; | 14 | import org.jeecg.common.system.query.QueryGenerator; |
15 | -import org.jeecg.modules.wms.api.mobile.entity.QuickReceiptBean; | ||
16 | -import org.jeecg.modules.wms.config.container.service.IContainerService; | ||
17 | import org.jeecg.modules.wms.config.location.dto.*; | 15 | import org.jeecg.modules.wms.config.location.dto.*; |
18 | import org.jeecg.modules.wms.config.location.entity.BatchLocation; | 16 | import org.jeecg.modules.wms.config.location.entity.BatchLocation; |
19 | import org.jeecg.modules.wms.config.location.entity.Location; | 17 | import org.jeecg.modules.wms.config.location.entity.Location; |
20 | import org.jeecg.modules.wms.config.location.service.ILocationService; | 18 | import org.jeecg.modules.wms.config.location.service.ILocationService; |
21 | import org.jeecg.modules.wms.framework.service.IHuahengMultiHandlerService; | 19 | import org.jeecg.modules.wms.framework.service.IHuahengMultiHandlerService; |
22 | -import org.jeecg.modules.wms.shipment.shipmentCombination.entity.FlatShipment; | ||
23 | import org.jeecg.utils.HuahengJwtUtil; | 20 | import org.jeecg.utils.HuahengJwtUtil; |
24 | import org.jeecg.utils.PageUtil; | 21 | import org.jeecg.utils.PageUtil; |
25 | import org.jeecg.utils.StringUtils; | 22 | import org.jeecg.utils.StringUtils; |
26 | import org.jeecg.utils.constant.QuantityConstant; | 23 | import org.jeecg.utils.constant.QuantityConstant; |
27 | -import org.jeecg.utils.support.ApiLogger; | ||
28 | import org.springframework.beans.factory.annotation.Autowired; | 24 | import org.springframework.beans.factory.annotation.Autowired; |
29 | import org.springframework.validation.annotation.Validated; | 25 | import org.springframework.validation.annotation.Validated; |
30 | import org.springframework.web.bind.annotation.*; | 26 | import org.springframework.web.bind.annotation.*; |
@@ -94,9 +90,9 @@ public class LocationController extends JeecgController<Location, ILocationServi | @@ -94,9 +90,9 @@ public class LocationController extends JeecgController<Location, ILocationServi | ||
94 | @RequestParam(name = "pageSize", defaultValue = "10") Integer pageSize, HttpServletRequest req) { | 90 | @RequestParam(name = "pageSize", defaultValue = "10") Integer pageSize, HttpServletRequest req) { |
95 | Page<Location> page = new Page<Location>(pageNo, pageSize); | 91 | Page<Location> page = new Page<Location>(pageNo, pageSize); |
96 | HuahengJwtUtil.setWarehouseCode(req, location); | 92 | HuahengJwtUtil.setWarehouseCode(req, location); |
97 | - IPage<Location> pageList = locationService.getContainerInLocation(page, QuantityConstant.STATUS_LOCATION_EMPTY, | ||
98 | - QuantityConstant.STATUS_CONTAINER_EMPTY, QuantityConstant.STATUS_CONTAINER_FILL_SOME, HuahengJwtUtil.getWarehouseCodeByToken(req), | ||
99 | - location.getZoneCode(), location.getContainerCode(), location.getCode(), location.getRoadWay()); | 93 | + IPage<Location> pageList = locationService.getContainerInLocation(page, QuantityConstant.STATUS_LOCATION_EMPTY, QuantityConstant.STATUS_CONTAINER_EMPTY, |
94 | + QuantityConstant.STATUS_CONTAINER_FILL_SOME, HuahengJwtUtil.getWarehouseCodeByToken(req), location.getZoneCode(), location.getContainerCode(), | ||
95 | + location.getCode(), location.getRoadWay()); | ||
100 | return Result.OK(pageList); | 96 | return Result.OK(pageList); |
101 | } | 97 | } |
102 | 98 | ||
@@ -111,9 +107,9 @@ public class LocationController extends JeecgController<Location, ILocationServi | @@ -111,9 +107,9 @@ public class LocationController extends JeecgController<Location, ILocationServi | ||
111 | @RequestParam(name = "pageSize", defaultValue = "10") Integer pageSize, HttpServletRequest req) { | 107 | @RequestParam(name = "pageSize", defaultValue = "10") Integer pageSize, HttpServletRequest req) { |
112 | Page<Location> page = new Page<Location>(pageNo, pageSize); | 108 | Page<Location> page = new Page<Location>(pageNo, pageSize); |
113 | HuahengJwtUtil.setWarehouseCode(req, location); | 109 | HuahengJwtUtil.setWarehouseCode(req, location); |
114 | - IPage<Location> pageList = locationService.getContainerInLocation(page, QuantityConstant.STATUS_LOCATION_EMPTY, | ||
115 | - QuantityConstant.STATUS_CONTAINER_EMPTY, QuantityConstant.STATUS_CONTAINER_EMPTY, HuahengJwtUtil.getWarehouseCodeByToken(req), | ||
116 | - location.getZoneCode(), location.getContainerCode(), location.getCode(), location.getRoadWay()); | 110 | + IPage<Location> pageList = locationService.getContainerInLocation(page, QuantityConstant.STATUS_LOCATION_EMPTY, QuantityConstant.STATUS_CONTAINER_EMPTY, |
111 | + QuantityConstant.STATUS_CONTAINER_EMPTY, HuahengJwtUtil.getWarehouseCodeByToken(req), location.getZoneCode(), location.getContainerCode(), | ||
112 | + location.getCode(), location.getRoadWay()); | ||
117 | return Result.OK(pageList); | 113 | return Result.OK(pageList); |
118 | } | 114 | } |
119 | 115 | ||
@@ -128,9 +124,9 @@ public class LocationController extends JeecgController<Location, ILocationServi | @@ -128,9 +124,9 @@ public class LocationController extends JeecgController<Location, ILocationServi | ||
128 | @RequestParam(name = "pageSize", defaultValue = "10") Integer pageSize, HttpServletRequest req) { | 124 | @RequestParam(name = "pageSize", defaultValue = "10") Integer pageSize, HttpServletRequest req) { |
129 | Page<Location> page = new Page<Location>(pageNo, pageSize); | 125 | Page<Location> page = new Page<Location>(pageNo, pageSize); |
130 | HuahengJwtUtil.setWarehouseCode(req, location); | 126 | HuahengJwtUtil.setWarehouseCode(req, location); |
131 | - IPage<Location> pageList = locationService.getContainerInLocation(page, QuantityConstant.STATUS_LOCATION_EMPTY, | ||
132 | - QuantityConstant.STATUS_CONTAINER_EMPTY, QuantityConstant.STATUS_CONTAINER_FILL_MANY, HuahengJwtUtil.getWarehouseCodeByToken(req), | ||
133 | - location.getZoneCode(), location.getContainerCode(), location.getCode(), location.getRoadWay()); | 127 | + IPage<Location> pageList = locationService.getContainerInLocation(page, QuantityConstant.STATUS_LOCATION_EMPTY, QuantityConstant.STATUS_CONTAINER_EMPTY, |
128 | + QuantityConstant.STATUS_CONTAINER_FILL_MANY, HuahengJwtUtil.getWarehouseCodeByToken(req), location.getZoneCode(), location.getContainerCode(), | ||
129 | + location.getCode(), location.getRoadWay()); | ||
134 | return Result.OK(pageList); | 130 | return Result.OK(pageList); |
135 | } | 131 | } |
136 | 132 | ||
@@ -317,23 +313,4 @@ public class LocationController extends JeecgController<Location, ILocationServi | @@ -317,23 +313,4 @@ public class LocationController extends JeecgController<Location, ILocationServi | ||
317 | return Result.OK(compareContainerTaskDtoPage); | 313 | return Result.OK(compareContainerTaskDtoPage); |
318 | } | 314 | } |
319 | 315 | ||
320 | - /** | ||
321 | - * 平库出库,通过库存ID | ||
322 | - * @return | ||
323 | - */ | ||
324 | - @ApiOperation(value = "库位监控-快速出库,通过库存ID", notes = "库位监控,通过库存ID") | ||
325 | - @PostMapping("/quickShipment") | ||
326 | - public Result quickShipment(@RequestBody List<FlatShipment> flatShipmentList, HttpServletRequest req){ | ||
327 | - String warehouseCode = HuahengJwtUtil.getWarehouseCodeByToken(req); | ||
328 | - return huahengMultiHandlerService.autoShipmentByIDService(flatShipmentList, warehouseCode); | ||
329 | - } | ||
330 | - | ||
331 | - @ApiOperation(value = "库位监控-快速入库", notes = "快速入库") | ||
332 | - @PostMapping("/quickReceipt") | ||
333 | - public Result<?> quickReceipt(@RequestBody QuickReceiptBean bean, HttpServletRequest req) { | ||
334 | - String warehouseCode = HuahengJwtUtil.getWarehouseCodeByToken(req); | ||
335 | - bean.setWarehouseCode(warehouseCode); | ||
336 | - Result result = huahengMultiHandlerService.quickReceiptService(bean, warehouseCode); | ||
337 | - return result; | ||
338 | - } | ||
339 | } | 316 | } |
huaheng-wms-core/src/main/java/org/jeecg/modules/wms/framework/service/impl/HuahengMultiHandlerServiceImpl.java
@@ -34,7 +34,6 @@ import org.jeecg.modules.wms.receipt.receiving.domain.Receive; | @@ -34,7 +34,6 @@ import org.jeecg.modules.wms.receipt.receiving.domain.Receive; | ||
34 | import org.jeecg.modules.wms.receipt.receiving.service.IReceiveService; | 34 | import org.jeecg.modules.wms.receipt.receiving.service.IReceiveService; |
35 | import org.jeecg.modules.wms.shipment.shipmentCombination.entity.CombinationModel; | 35 | import org.jeecg.modules.wms.shipment.shipmentCombination.entity.CombinationModel; |
36 | import org.jeecg.modules.wms.shipment.shipmentCombination.entity.FlatShipment; | 36 | import org.jeecg.modules.wms.shipment.shipmentCombination.entity.FlatShipment; |
37 | -import org.jeecg.modules.wms.shipment.shipmentCombination.entity.Shipment; | ||
38 | import org.jeecg.modules.wms.shipment.shipmentCombination.service.IShipmentCombinationService; | 37 | import org.jeecg.modules.wms.shipment.shipmentCombination.service.IShipmentCombinationService; |
39 | import org.jeecg.modules.wms.shipment.shipmentContainerHeader.entity.ShipmentContainerHeader; | 38 | import org.jeecg.modules.wms.shipment.shipmentContainerHeader.entity.ShipmentContainerHeader; |
40 | import org.jeecg.modules.wms.shipment.shipmentContainerHeader.service.IShipmentContainerHeaderService; | 39 | import org.jeecg.modules.wms.shipment.shipmentContainerHeader.service.IShipmentContainerHeaderService; |
@@ -46,12 +45,11 @@ import org.jeecg.modules.wms.shipment.shipmentHeader.service.IShipmentHeaderServ | @@ -46,12 +45,11 @@ import org.jeecg.modules.wms.shipment.shipmentHeader.service.IShipmentHeaderServ | ||
46 | import org.jeecg.modules.wms.task.taskHeader.entity.TaskHeader; | 45 | import org.jeecg.modules.wms.task.taskHeader.entity.TaskHeader; |
47 | import org.jeecg.modules.wms.task.taskHeader.service.ITaskHeaderService; | 46 | import org.jeecg.modules.wms.task.taskHeader.service.ITaskHeaderService; |
48 | import org.jeecg.utils.constant.QuantityConstant; | 47 | import org.jeecg.utils.constant.QuantityConstant; |
49 | -import org.springframework.beans.factory.annotation.Autowired; | ||
50 | import org.springframework.scheduling.annotation.Async; | 48 | import org.springframework.scheduling.annotation.Async; |
51 | import org.springframework.stereotype.Service; | 49 | import org.springframework.stereotype.Service; |
50 | +import org.springframework.transaction.annotation.Transactional; | ||
52 | 51 | ||
53 | import lombok.extern.slf4j.Slf4j; | 52 | import lombok.extern.slf4j.Slf4j; |
54 | -import org.springframework.transaction.annotation.Transactional; | ||
55 | 53 | ||
56 | /** | 54 | /** |
57 | * @author 游杰 | 55 | * @author 游杰 |
@@ -100,7 +98,6 @@ public class HuahengMultiHandlerServiceImpl extends HuahengBaseController implem | @@ -100,7 +98,6 @@ public class HuahengMultiHandlerServiceImpl extends HuahengBaseController implem | ||
100 | @Resource | 98 | @Resource |
101 | private ILocationService locationService; | 99 | private ILocationService locationService; |
102 | 100 | ||
103 | - | ||
104 | @Override | 101 | @Override |
105 | public Result sendTaskToWcs(TaskHeader taskHeader, String zoneCode) { | 102 | public Result sendTaskToWcs(TaskHeader taskHeader, String zoneCode) { |
106 | if (taskHeader == null) { | 103 | if (taskHeader == null) { |
@@ -144,17 +141,18 @@ public class HuahengMultiHandlerServiceImpl extends HuahengBaseController implem | @@ -144,17 +141,18 @@ public class HuahengMultiHandlerServiceImpl extends HuahengBaseController implem | ||
144 | if (flatShipmentList == null || flatShipmentList.size() == 0) { | 141 | if (flatShipmentList == null || flatShipmentList.size() == 0) { |
145 | return Result.error("参数不能为空"); | 142 | return Result.error("参数不能为空"); |
146 | } | 143 | } |
147 | - for (FlatShipment item :flatShipmentList){ | 144 | + for (FlatShipment item : flatShipmentList) { |
148 | if (item.getInventoryDetailId() == null) { | 145 | if (item.getInventoryDetailId() == null) { |
149 | return Result.error("库存ID不能为空"); | 146 | return Result.error("库存ID不能为空"); |
150 | } | 147 | } |
151 | - if (item.getShipQty() == null || item.getShipQty().compareTo(BigDecimal.ZERO) == 0){ | 148 | + if (item.getShipQty() == null || item.getShipQty().compareTo(BigDecimal.ZERO) == 0) { |
152 | return Result.error("出库数量不能为空"); | 149 | return Result.error("出库数量不能为空"); |
153 | } | 150 | } |
154 | } | 151 | } |
155 | // 通过库存ID查询库存详情数据 | 152 | // 通过库存ID查询库存详情数据 |
156 | - List<InventoryDetail> inventoryDetailList = inventoryDetailService.listByIds(flatShipmentList.stream().map(FlatShipment::getInventoryDetailId).collect(Collectors.toList())); | ||
157 | - if (inventoryDetailList == null || inventoryDetailList.size() == 0){ | 153 | + List<InventoryDetail> inventoryDetailList = |
154 | + inventoryDetailService.listByIds(flatShipmentList.stream().map(FlatShipment::getInventoryDetailId).collect(Collectors.toList())); | ||
155 | + if (inventoryDetailList == null || inventoryDetailList.size() == 0) { | ||
158 | return Result.error("根据库存ID查询库存信息失败!"); | 156 | return Result.error("根据库存ID查询库存信息失败!"); |
159 | } | 157 | } |
160 | // 根据库存详情创建出库单 | 158 | // 根据库存详情创建出库单 |
@@ -165,11 +163,11 @@ public class HuahengMultiHandlerServiceImpl extends HuahengBaseController implem | @@ -165,11 +163,11 @@ public class HuahengMultiHandlerServiceImpl extends HuahengBaseController implem | ||
165 | shipmentHeader.setZoneCode(QuantityConstant.ZONE_TYPE_FLAT); | 163 | shipmentHeader.setZoneCode(QuantityConstant.ZONE_TYPE_FLAT); |
166 | shipmentHeader.setCompanyCode(inventoryDetailList.get(0).getCompanyCode()); | 164 | shipmentHeader.setCompanyCode(inventoryDetailList.get(0).getCompanyCode()); |
167 | Result result = shipmentHeaderService.saveShipmentHeader(shipmentHeader); | 165 | Result result = shipmentHeaderService.saveShipmentHeader(shipmentHeader); |
168 | - if (!result.isSuccess()){ | 166 | + if (!result.isSuccess()) { |
169 | return result; | 167 | return result; |
170 | } | 168 | } |
171 | List<ShipmentDetail> shipmentDetailList = new ArrayList<>(); | 169 | List<ShipmentDetail> shipmentDetailList = new ArrayList<>(); |
172 | - for (FlatShipment item : flatShipmentList){ | 170 | + for (FlatShipment item : flatShipmentList) { |
173 | InventoryDetail inventoryDetail = inventoryDetailMap.get(item.getInventoryDetailId()); | 171 | InventoryDetail inventoryDetail = inventoryDetailMap.get(item.getInventoryDetailId()); |
174 | ShipmentDetail shipmentDetail = new ShipmentDetail(); | 172 | ShipmentDetail shipmentDetail = new ShipmentDetail(); |
175 | shipmentDetail.setShipmentId(shipmentHeader.getId()); | 173 | shipmentDetail.setShipmentId(shipmentHeader.getId()); |
@@ -181,23 +179,24 @@ public class HuahengMultiHandlerServiceImpl extends HuahengBaseController implem | @@ -181,23 +179,24 @@ public class HuahengMultiHandlerServiceImpl extends HuahengBaseController implem | ||
181 | shipmentDetail.setInventoryDetailId(item.getInventoryDetailId()); | 179 | shipmentDetail.setInventoryDetailId(item.getInventoryDetailId()); |
182 | shipmentDetail.setCompanyCode(shipmentHeader.getCompanyCode()); | 180 | shipmentDetail.setCompanyCode(shipmentHeader.getCompanyCode()); |
183 | result = shipmentDetailService.saveShipmentDetail(shipmentDetail); | 181 | result = shipmentDetailService.saveShipmentDetail(shipmentDetail); |
184 | - if (!result.isSuccess()){ | 182 | + if (!result.isSuccess()) { |
185 | throw new RuntimeException(result.getMessage()); | 183 | throw new RuntimeException(result.getMessage()); |
186 | } | 184 | } |
187 | shipmentDetailList.add(shipmentDetail); | 185 | shipmentDetailList.add(shipmentDetail); |
188 | } | 186 | } |
189 | // 将出库单详情转换为map存储 | 187 | // 将出库单详情转换为map存储 |
190 | - Map<Integer, ShipmentDetail> shipmentDetailMap = shipmentDetailList.stream().collect(Collectors.toMap(ShipmentDetail::getInventoryDetailId, Function.identity())); | ||
191 | - for (FlatShipment item : flatShipmentList){ | 188 | + Map<Integer, ShipmentDetail> shipmentDetailMap = |
189 | + shipmentDetailList.stream().collect(Collectors.toMap(ShipmentDetail::getInventoryDetailId, Function.identity())); | ||
190 | + for (FlatShipment item : flatShipmentList) { | ||
192 | item.setShipmentDetailId(shipmentDetailMap.get(item.getInventoryDetailId()).getId()); | 191 | item.setShipmentDetailId(shipmentDetailMap.get(item.getInventoryDetailId()).getId()); |
193 | item.setContainerCode(inventoryDetailMap.get(item.getInventoryDetailId()).getContainerCode()); | 192 | item.setContainerCode(inventoryDetailMap.get(item.getInventoryDetailId()).getContainerCode()); |
194 | } | 193 | } |
195 | // 将flatShipmentList根据容器进行分类合并为一个map | 194 | // 将flatShipmentList根据容器进行分类合并为一个map |
196 | Map<String, List<FlatShipment>> stringListMap = flatShipmentList.stream().collect(Collectors.groupingBy(FlatShipment::getContainerCode)); | 195 | Map<String, List<FlatShipment>> stringListMap = flatShipmentList.stream().collect(Collectors.groupingBy(FlatShipment::getContainerCode)); |
197 | // 遍历stringListMap并完成出库任务 | 196 | // 遍历stringListMap并完成出库任务 |
198 | - for (String containerCode :stringListMap.keySet()){ | 197 | + for (String containerCode : stringListMap.keySet()) { |
199 | result = shipmentCombinationService.flatShipmentByContainerCode(containerCode, stringListMap.get(containerCode), warehouseCode); | 198 | result = shipmentCombinationService.flatShipmentByContainerCode(containerCode, stringListMap.get(containerCode), warehouseCode); |
200 | - if (!result.isSuccess()){ | 199 | + if (!result.isSuccess()) { |
201 | throw new RuntimeException(result.getMessage()); | 200 | throw new RuntimeException(result.getMessage()); |
202 | } | 201 | } |
203 | } | 202 | } |
@@ -208,11 +207,25 @@ public class HuahengMultiHandlerServiceImpl extends HuahengBaseController implem | @@ -208,11 +207,25 @@ public class HuahengMultiHandlerServiceImpl extends HuahengBaseController implem | ||
208 | @Transactional(rollbackFor = Exception.class) | 207 | @Transactional(rollbackFor = Exception.class) |
209 | public Result quickReceiptService(QuickReceiptBean bean, String warehouseCode) { | 208 | public Result quickReceiptService(QuickReceiptBean bean, String warehouseCode) { |
210 | String containerCode = bean.getContainerCode(); | 209 | String containerCode = bean.getContainerCode(); |
210 | + String locationCode = bean.getLocationCode(); | ||
211 | + if (StringUtils.isEmpty(locationCode)) { | ||
212 | + return Result.error("平库入库,库位编码为空"); | ||
213 | + } | ||
214 | + Location location = locationService.getLocationByCode(locationCode, warehouseCode); | ||
215 | + if (location == null) { | ||
216 | + return Result.error("平库入库, 库位:" + locationCode + "不存在"); | ||
217 | + } | ||
218 | + if (StringUtils.isEmpty(containerCode)) { | ||
219 | + Container container = containerService.getContainerByLocationCode(locationCode, warehouseCode); | ||
220 | + if (container != null) { | ||
221 | + containerCode = container.getCode(); | ||
222 | + } | ||
223 | + } | ||
211 | if (StringUtils.isEmpty(containerCode)) { | 224 | if (StringUtils.isEmpty(containerCode)) { |
212 | Container container = containerService.createLSContainer(warehouseCode); | 225 | Container container = containerService.createLSContainer(warehouseCode); |
213 | containerCode = container.getCode(); | 226 | containerCode = container.getCode(); |
214 | } | 227 | } |
215 | - if (StringUtils.isEmpty(containerCode)){ | 228 | + if (StringUtils.isEmpty(containerCode)) { |
216 | return Result.error("托盘号containerCode不能为空"); | 229 | return Result.error("托盘号containerCode不能为空"); |
217 | } | 230 | } |
218 | if (bean.getReceiptDetails() == null || bean.getReceiptDetails().size() == 0) { | 231 | if (bean.getReceiptDetails() == null || bean.getReceiptDetails().size() == 0) { |
@@ -227,19 +240,15 @@ public class HuahengMultiHandlerServiceImpl extends HuahengBaseController implem | @@ -227,19 +240,15 @@ public class HuahengMultiHandlerServiceImpl extends HuahengBaseController implem | ||
227 | if (!rs1.isSuccess()) { | 240 | if (!rs1.isSuccess()) { |
228 | return rs1; | 241 | return rs1; |
229 | } | 242 | } |
230 | - Location location = locationService.getLocationByCode(bean.getLocationCode(), warehouseCode); | ||
231 | - if (location == null) { | ||
232 | - return Result.error("库位:"+bean.getLocationCode()+"不存在"); | ||
233 | - } | ||
234 | - if (!QuantityConstant.ZONE_TYPE_FLAT.equals(location.getZoneCode())){ | ||
235 | - return Result.error("库位:"+bean.getLocationCode()+"不是平库库位"); | 243 | + if (!QuantityConstant.ZONE_TYPE_FLAT.equals(location.getZoneCode())) { |
244 | + return Result.error("库位:" + bean.getLocationCode() + "不是平库库位"); | ||
236 | } | 245 | } |
237 | // 创建入库单明细 | 246 | // 创建入库单明细 |
238 | List<ReceiptDetail> receiptDetails = bean.getReceiptDetails(); | 247 | List<ReceiptDetail> receiptDetails = bean.getReceiptDetails(); |
239 | List<Receive> receiveList = new ArrayList<>(); | 248 | List<Receive> receiveList = new ArrayList<>(); |
240 | for (ReceiptDetail receiptDetail : receiptDetails) { | 249 | for (ReceiptDetail receiptDetail : receiptDetails) { |
241 | - if (receiptDetail.getQty() == null || receiptDetail.getQty().compareTo(BigDecimal.ZERO) == 0){ | ||
242 | - throw new JeecgBootException("物料编码:" + receiptDetail.getMaterialCode() + "入库数量不能为0!" ); | 250 | + if (receiptDetail.getQty() == null || receiptDetail.getQty().compareTo(BigDecimal.ZERO) == 0) { |
251 | + throw new JeecgBootException("物料编码:" + receiptDetail.getMaterialCode() + "入库数量不能为0!"); | ||
243 | } | 252 | } |
244 | Receive receive = new Receive(); | 253 | Receive receive = new Receive(); |
245 | receiptDetail.setReceiptId(receiptHeader.getId()); | 254 | receiptDetail.setReceiptId(receiptHeader.getId()); |
huaheng-wms-core/src/main/java/org/jeecg/modules/wms/receipt/receiving/controller/ReceiveController.java
@@ -10,10 +10,12 @@ import javax.servlet.http.HttpServletRequest; | @@ -10,10 +10,12 @@ import javax.servlet.http.HttpServletRequest; | ||
10 | import org.jeecg.common.api.vo.Result; | 10 | import org.jeecg.common.api.vo.Result; |
11 | import org.jeecg.common.aspect.annotation.AutoLog; | 11 | import org.jeecg.common.aspect.annotation.AutoLog; |
12 | import org.jeecg.common.system.query.QueryGenerator; | 12 | import org.jeecg.common.system.query.QueryGenerator; |
13 | +import org.jeecg.modules.wms.api.mobile.entity.QuickReceiptBean; | ||
13 | import org.jeecg.modules.wms.config.container.entity.Container; | 14 | import org.jeecg.modules.wms.config.container.entity.Container; |
14 | import org.jeecg.modules.wms.config.container.service.IContainerService; | 15 | import org.jeecg.modules.wms.config.container.service.IContainerService; |
15 | import org.jeecg.modules.wms.config.location.service.ILocationService; | 16 | import org.jeecg.modules.wms.config.location.service.ILocationService; |
16 | import org.jeecg.modules.wms.framework.controller.HuahengBaseController; | 17 | import org.jeecg.modules.wms.framework.controller.HuahengBaseController; |
18 | +import org.jeecg.modules.wms.framework.service.IHuahengMultiHandlerService; | ||
17 | import org.jeecg.modules.wms.inventory.inventoryHeader.entity.InventoryHeader; | 19 | import org.jeecg.modules.wms.inventory.inventoryHeader.entity.InventoryHeader; |
18 | import org.jeecg.modules.wms.inventory.inventoryHeader.service.IInventoryHeaderService; | 20 | import org.jeecg.modules.wms.inventory.inventoryHeader.service.IInventoryHeaderService; |
19 | import org.jeecg.modules.wms.receipt.receiptHeader.entity.ReceiptDetail; | 21 | import org.jeecg.modules.wms.receipt.receiptHeader.entity.ReceiptDetail; |
@@ -50,6 +52,8 @@ public class ReceiveController extends HuahengBaseController { | @@ -50,6 +52,8 @@ public class ReceiveController extends HuahengBaseController { | ||
50 | private ILocationService locationService; | 52 | private ILocationService locationService; |
51 | @Resource | 53 | @Resource |
52 | private IInventoryHeaderService inventoryHeaderService; | 54 | private IInventoryHeaderService inventoryHeaderService; |
55 | + @Resource | ||
56 | + private IHuahengMultiHandlerService huahengMultiHandlerService; | ||
53 | 57 | ||
54 | /** | 58 | /** |
55 | * 通过详情ID查询 | 59 | * 通过详情ID查询 |
@@ -228,4 +232,13 @@ public class ReceiveController extends HuahengBaseController { | @@ -228,4 +232,13 @@ public class ReceiveController extends HuahengBaseController { | ||
228 | }); | 232 | }); |
229 | return result; | 233 | return result; |
230 | } | 234 | } |
235 | + | ||
236 | + @ApiOperation(value = "平库快速入库", notes = "平库快速入库") | ||
237 | + @PostMapping("/flatQuickReceipt") | ||
238 | + public Result<?> flatQuickReceipt(@RequestBody QuickReceiptBean bean, HttpServletRequest req) { | ||
239 | + String warehouseCode = HuahengJwtUtil.getWarehouseCodeByToken(req); | ||
240 | + bean.setWarehouseCode(warehouseCode); | ||
241 | + Result result = huahengMultiHandlerService.quickReceiptService(bean, warehouseCode); | ||
242 | + return result; | ||
243 | + } | ||
231 | } | 244 | } |
huaheng-wms-core/src/main/java/org/jeecg/modules/wms/receipt/receiving/service/impl/ReceiveServiceImpl.java
@@ -161,7 +161,7 @@ public class ReceiveServiceImpl extends ServiceImpl<ReceiveMapper, Receive> impl | @@ -161,7 +161,7 @@ public class ReceiveServiceImpl extends ServiceImpl<ReceiveMapper, Receive> impl | ||
161 | String zoneCode = location.getZoneCode(); | 161 | String zoneCode = location.getZoneCode(); |
162 | Zone zone = zoneService.getZoneByCode(zoneCode, warehouseCode); | 162 | Zone zone = zoneService.getZoneByCode(zoneCode, warehouseCode); |
163 | if (!zone.getType().equals(QuantityConstant.ZONE_TYPE_STEREOSCOPIC)) { | 163 | if (!zone.getType().equals(QuantityConstant.ZONE_TYPE_STEREOSCOPIC)) { |
164 | - return Result.error("入库组盘,库区类型不是立库区"); | 164 | +// return Result.error("入库组盘,库区类型不是立库区"); |
165 | } | 165 | } |
166 | } | 166 | } |
167 | int callBox = QuantityConstant.NOT_CALL_BOX; | 167 | int callBox = QuantityConstant.NOT_CALL_BOX; |
@@ -676,7 +676,7 @@ public class ReceiveServiceImpl extends ServiceImpl<ReceiveMapper, Receive> impl | @@ -676,7 +676,7 @@ public class ReceiveServiceImpl extends ServiceImpl<ReceiveMapper, Receive> impl | ||
676 | @Transactional(rollbackFor = Exception.class) | 676 | @Transactional(rollbackFor = Exception.class) |
677 | public Result flatReceipt(List<Receive> receiveList, String containerCode, String toLocationCode, String warehouseCode) { | 677 | public Result flatReceipt(List<Receive> receiveList, String containerCode, String toLocationCode, String warehouseCode) { |
678 | Result result = receiveService.flatReceive(receiveList, containerCode, warehouseCode); | 678 | Result result = receiveService.flatReceive(receiveList, containerCode, warehouseCode); |
679 | - if (!result.isSuccess()){ | 679 | + if (!result.isSuccess()) { |
680 | throw new JeecgBootException(result.getMessage()); | 680 | throw new JeecgBootException(result.getMessage()); |
681 | } | 681 | } |
682 | result = receiveService.flatOnShell(containerCode, toLocationCode, warehouseCode); | 682 | result = receiveService.flatOnShell(containerCode, toLocationCode, warehouseCode); |
huaheng-wms-core/src/main/java/org/jeecg/modules/wms/shipment/shipmentCombination/controller/ShipmentCombinationController.java
@@ -398,4 +398,15 @@ public class ShipmentCombinationController extends HuahengBaseController { | @@ -398,4 +398,15 @@ public class ShipmentCombinationController extends HuahengBaseController { | ||
398 | }); | 398 | }); |
399 | return result; | 399 | return result; |
400 | } | 400 | } |
401 | + | ||
402 | + /** | ||
403 | + * 平库出库,通过库存ID | ||
404 | + * @return | ||
405 | + */ | ||
406 | + @ApiOperation(value = "库位监控-快速出库,通过库存ID", notes = "库位监控,通过库存ID") | ||
407 | + @PostMapping("/flatQuickShipment") | ||
408 | + public Result flatQuickShipment(@RequestBody List<FlatShipment> flatShipmentList, HttpServletRequest req) { | ||
409 | + String warehouseCode = HuahengJwtUtil.getWarehouseCodeByToken(req); | ||
410 | + return huahengMultiHandlerService.autoShipmentByIDService(flatShipmentList, warehouseCode); | ||
411 | + } | ||
401 | } | 412 | } |
huaheng-wms-core/src/main/java/org/jeecg/modules/wms/task/taskHeader/service/impl/TaskHeaderServiceImpl.java
@@ -317,7 +317,7 @@ public class TaskHeaderServiceImpl extends ServiceImpl<TaskHeaderMapper, TaskHea | @@ -317,7 +317,7 @@ public class TaskHeaderServiceImpl extends ServiceImpl<TaskHeaderMapper, TaskHea | ||
317 | Location location = locationService.getNear(fromLocation); | 317 | Location location = locationService.getNear(fromLocation); |
318 | String locationCode = location.getCode(); | 318 | String locationCode = location.getCode(); |
319 | if (StringUtils.isNotEmpty(location.getContainerCode())) { | 319 | if (StringUtils.isNotEmpty(location.getContainerCode())) { |
320 | - TaskHeader taskHeader = getUnCompleteTaskByFromLocationCode(fromLocationCode, warehouseCode); | 320 | + TaskHeader taskHeader = getUnCompleteTaskByFromLocationCode(locationCode, warehouseCode); |
321 | if (taskHeader != null) { | 321 | if (taskHeader != null) { |
322 | preTaskNo = taskHeader.getId(); | 322 | preTaskNo = taskHeader.getId(); |
323 | } else { | 323 | } else { |