Commit 286bd9c05b288a492f7852237823a6246124fafc
1 parent
cd84e5b4
修复盘点登记问题
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 | 67 | }, |
68 | 68 | |
69 | 69 | confirmLoading: false, |
70 | - validatorRules: {}, | |
70 | + validatorRules: { | |
71 | + toPort: [ | |
72 | + {required: true, message: '请输入出库口!'}, | |
73 | + ], | |
74 | + }, | |
71 | 75 | url: { |
72 | 76 | createTask: "/shipment/shipmentContainerHeader/createShipmentTask", |
73 | 77 | } |
... | ... |
ant-design-vue-jeecg/src/views/system/shipment/modules/ShipmentDetailCombineModal.vue
... | ... | @@ -14,17 +14,17 @@ |
14 | 14 | <a-row> |
15 | 15 | <a-col :span="24"> |
16 | 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 | 18 | </a-form-model-item> |
19 | 19 | </a-col> |
20 | 20 | <a-col :span="24"> |
21 | 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 | 23 | </a-form-model-item> |
24 | 24 | </a-col> |
25 | 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 | 28 | </a-form-model-item> |
29 | 29 | </a-col> |
30 | 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 | 88 | detailChild1.setGapQty(adjQty); |
89 | 89 | detailChild1.setCountedQty(qty); |
90 | 90 | detailChild1.setChildStatus(QuantityConstant.CYCLECOUNT_STATUS_REGISTERED); |
91 | - if (!this.updateById(detailChild)) { | |
91 | + if (!this.updateById(detailChild1)) { | |
92 | 92 | throw new JeecgBootException("实盘登记更新盘点子单数量失败"); |
93 | 93 | } |
94 | 94 | |
... | ... | @@ -130,16 +130,16 @@ public class CycleCountDetailChildServiceImpl extends ServiceImpl<CycleCountDeta |
130 | 130 | } |
131 | 131 | |
132 | 132 | TaskDetail taskDetail = new TaskDetail(); |
133 | - taskDetail.setId(Integer.parseInt(id)); | |
133 | + taskDetail.setId(detailChild.getTaskDetailId()); | |
134 | 134 | taskDetail.setCircleQty(qty); |
135 | 135 | taskDetail.setCircleStatus(QuantityConstant.CIRCLE_REGISTER_STATUS_COMPLETE); |
136 | 136 | if (!taskDetailService.updateById(taskDetail)) { |
137 | 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
... | ... | @@ -1192,18 +1192,18 @@ public class TaskHeaderServiceImpl extends ServiceImpl<TaskHeaderMapper, TaskHea |
1192 | 1192 | if (taskHeader.getStatus() >= QuantityConstant.TASK_STATUS_RELEASE) { |
1193 | 1193 | return Result.error("下发wcs任务时, 任务" + taskId + "已经下发,请不要重复下发,操作中止"); |
1194 | 1194 | } |
1195 | + taskHeader.setStatus(QuantityConstant.TASK_STATUS_RELEASE); | |
1196 | + boolean success = taskHeaderService.updateStatusById(QuantityConstant.TASK_STATUS_RELEASE, taskHeader.getId()); | |
1197 | + if (!success) { | |
1198 | + throw new JeecgBootException("下发wcs任务时, 更新任务状态失败"); | |
1199 | + } | |
1195 | 1200 | int toWcs = taskHeader.getToWcs(); |
1196 | 1201 | if (toWcs == QuantityConstant.TO_WCS) { |
1197 | 1202 | Result result = wcsService.wcsTaskAssign(taskHeader); |
1198 | 1203 | if (!result.isSuccess()) { |
1199 | - return Result.error(result.getMessage()); | |
1204 | + throw new JeecgBootException(result.getMessage()); | |
1200 | 1205 | } |
1201 | 1206 | } |
1202 | - taskHeader.setStatus(QuantityConstant.TASK_STATUS_RELEASE); | |
1203 | - boolean success = taskHeaderService.updateStatusById(QuantityConstant.TASK_STATUS_RELEASE, taskHeader.getId()); | |
1204 | - if (!success) { | |
1205 | - throw new JeecgBootException("下发wcs任务时, 更新任务状态失败"); | |
1206 | - } | |
1207 | 1207 | return Result.ok("下发wcs任务成功"); |
1208 | 1208 | } |
1209 | 1209 | |
... | ... |