Commit 6e5b170d8b3d491462453d588d92298d917d36c5
Merge remote-tracking branch 'origin/develop' into develop
Showing
4 changed files
with
22 additions
and
18 deletions
ant-design-vue-jeecg/src/views/system/shipment/modules/ShipmentContainerSelectModal.vue
@@ -67,7 +67,11 @@ export default { | @@ -67,7 +67,11 @@ export default { | ||
67 | }, | 67 | }, |
68 | 68 | ||
69 | confirmLoading: false, | 69 | confirmLoading: false, |
70 | - validatorRules: {}, | 70 | + validatorRules: { |
71 | + toPort: [ | ||
72 | + {required: true, message: '请输入出库口!'}, | ||
73 | + ], | ||
74 | + }, | ||
71 | url: { | 75 | url: { |
72 | createTask: "/shipment/shipmentContainerHeader/createShipmentTask", | 76 | createTask: "/shipment/shipmentContainerHeader/createShipmentTask", |
73 | } | 77 | } |
ant-design-vue-jeecg/src/views/system/shipment/modules/ShipmentDetailCombineModal.vue
@@ -14,17 +14,17 @@ | @@ -14,17 +14,17 @@ | ||
14 | <a-row> | 14 | <a-row> |
15 | <a-col :span="24"> | 15 | <a-col :span="24"> |
16 | <a-form-model-item label="物料编码" :labelCol="labelCol" :wrapperCol="wrapperCol" prop="materialCode"> | 16 | <a-form-model-item label="物料编码" :labelCol="labelCol" :wrapperCol="wrapperCol" prop="materialCode"> |
17 | - <a-input v-model="model.materialCode" placeholder="请输入物料编码" style="width: 100%" /> | 17 | + <a-input disabled="disabled" v-model="model.materialCode" placeholder="请输入物料编码" style="width: 100%" /> |
18 | </a-form-model-item> | 18 | </a-form-model-item> |
19 | </a-col> | 19 | </a-col> |
20 | <a-col :span="24"> | 20 | <a-col :span="24"> |
21 | <a-form-model-item label="物料名称" :labelCol="labelCol" :wrapperCol="wrapperCol" prop="materialName"> | 21 | <a-form-model-item label="物料名称" :labelCol="labelCol" :wrapperCol="wrapperCol" prop="materialName"> |
22 | - <a-input v-model="model.materialName" placeholder="请输入物料名称" style="width: 100%" /> | 22 | + <a-input disabled="disabled" v-model="model.materialName" placeholder="请输入物料名称" style="width: 100%" /> |
23 | </a-form-model-item> | 23 | </a-form-model-item> |
24 | </a-col> | 24 | </a-col> |
25 | <a-col :span="24"> | 25 | <a-col :span="24"> |
26 | - <a-form-model-item label="可出数量" :labelCol="labelCol" :wrapperCol="wrapperCol" prop="qty"> | ||
27 | - <a-input-number v-model="model.qty" placeholder="请输入可出数量" style="width: 100%" /> | 26 | + <a-form-model-item label="可出数量" :labelCol="labelCol" :wrapperCol="wrapperCol" prop="qty"> |
27 | + <a-input disabled="disabled" v-model="model.qty" placeholder="请输入可出数量" style="width: 100%" /> | ||
28 | </a-form-model-item> | 28 | </a-form-model-item> |
29 | </a-col> | 29 | </a-col> |
30 | <a-col :span="24"> | 30 | <a-col :span="24"> |
huaheng-wms-core/src/main/java/org/jeecg/modules/wms/stocktaking/cycleCountDetail/service/impl/CycleCountDetailChildServiceImpl.java
@@ -88,7 +88,7 @@ public class CycleCountDetailChildServiceImpl extends ServiceImpl<CycleCountDeta | @@ -88,7 +88,7 @@ public class CycleCountDetailChildServiceImpl extends ServiceImpl<CycleCountDeta | ||
88 | detailChild1.setGapQty(adjQty); | 88 | detailChild1.setGapQty(adjQty); |
89 | detailChild1.setCountedQty(qty); | 89 | detailChild1.setCountedQty(qty); |
90 | detailChild1.setChildStatus(QuantityConstant.CYCLECOUNT_STATUS_REGISTERED); | 90 | detailChild1.setChildStatus(QuantityConstant.CYCLECOUNT_STATUS_REGISTERED); |
91 | - if (!this.updateById(detailChild)) { | 91 | + if (!this.updateById(detailChild1)) { |
92 | throw new JeecgBootException("实盘登记更新盘点子单数量失败"); | 92 | throw new JeecgBootException("实盘登记更新盘点子单数量失败"); |
93 | } | 93 | } |
94 | 94 | ||
@@ -130,16 +130,16 @@ public class CycleCountDetailChildServiceImpl extends ServiceImpl<CycleCountDeta | @@ -130,16 +130,16 @@ public class CycleCountDetailChildServiceImpl extends ServiceImpl<CycleCountDeta | ||
130 | } | 130 | } |
131 | 131 | ||
132 | TaskDetail taskDetail = new TaskDetail(); | 132 | TaskDetail taskDetail = new TaskDetail(); |
133 | - taskDetail.setId(Integer.parseInt(id)); | 133 | + taskDetail.setId(detailChild.getTaskDetailId()); |
134 | taskDetail.setCircleQty(qty); | 134 | taskDetail.setCircleQty(qty); |
135 | taskDetail.setCircleStatus(QuantityConstant.CIRCLE_REGISTER_STATUS_COMPLETE); | 135 | taskDetail.setCircleStatus(QuantityConstant.CIRCLE_REGISTER_STATUS_COMPLETE); |
136 | if (!taskDetailService.updateById(taskDetail)) { | 136 | if (!taskDetailService.updateById(taskDetail)) { |
137 | throw new JeecgBootException("更新任务详情失败"); | 137 | throw new JeecgBootException("更新任务详情失败"); |
138 | } | 138 | } |
139 | - Result<Integer> result = new Result<Integer>(); | ||
140 | - result.setCode(200); | ||
141 | - result.setMessage("调整成功"); | ||
142 | - result.setResult(cycleCountHeader.getId()); | ||
143 | - return result; | 139 | + // Result<Integer> result = new Result<Integer>(); |
140 | + // result.setCode(200); | ||
141 | + // result.setMessage("调整成功"); | ||
142 | + // result.setResult(cycleCountHeader.getId()); | ||
143 | + return Result.OK("调整成功"); | ||
144 | } | 144 | } |
145 | } | 145 | } |
huaheng-wms-core/src/main/java/org/jeecg/modules/wms/task/taskHeader/service/impl/TaskHeaderServiceImpl.java
@@ -1193,18 +1193,18 @@ public class TaskHeaderServiceImpl extends ServiceImpl<TaskHeaderMapper, TaskHea | @@ -1193,18 +1193,18 @@ public class TaskHeaderServiceImpl extends ServiceImpl<TaskHeaderMapper, TaskHea | ||
1193 | if (taskHeader.getStatus() >= QuantityConstant.TASK_STATUS_RELEASE) { | 1193 | if (taskHeader.getStatus() >= QuantityConstant.TASK_STATUS_RELEASE) { |
1194 | return Result.error("下发wcs任务时, 任务" + taskId + "已经下发,请不要重复下发,操作中止"); | 1194 | return Result.error("下发wcs任务时, 任务" + taskId + "已经下发,请不要重复下发,操作中止"); |
1195 | } | 1195 | } |
1196 | + taskHeader.setStatus(QuantityConstant.TASK_STATUS_RELEASE); | ||
1197 | + boolean success = taskHeaderService.updateStatusById(QuantityConstant.TASK_STATUS_RELEASE, taskHeader.getId()); | ||
1198 | + if (!success) { | ||
1199 | + throw new JeecgBootException("下发wcs任务时, 更新任务状态失败"); | ||
1200 | + } | ||
1196 | int toWcs = taskHeader.getToWcs(); | 1201 | int toWcs = taskHeader.getToWcs(); |
1197 | if (toWcs == QuantityConstant.TO_WCS) { | 1202 | if (toWcs == QuantityConstant.TO_WCS) { |
1198 | Result result = wcsService.wcsTaskAssign(taskHeader); | 1203 | Result result = wcsService.wcsTaskAssign(taskHeader); |
1199 | if (!result.isSuccess()) { | 1204 | if (!result.isSuccess()) { |
1200 | - return Result.error(result.getMessage()); | 1205 | + throw new JeecgBootException(result.getMessage()); |
1201 | } | 1206 | } |
1202 | } | 1207 | } |
1203 | - taskHeader.setStatus(QuantityConstant.TASK_STATUS_RELEASE); | ||
1204 | - boolean success = taskHeaderService.updateStatusById(QuantityConstant.TASK_STATUS_RELEASE, taskHeader.getId()); | ||
1205 | - if (!success) { | ||
1206 | - throw new JeecgBootException("下发wcs任务时, 更新任务状态失败"); | ||
1207 | - } | ||
1208 | return Result.ok("下发wcs任务成功"); | 1208 | return Result.ok("下发wcs任务成功"); |
1209 | } | 1209 | } |
1210 | 1210 |