Commit 496c64caf648eb9e553e10ac53d2cb18d171b734
Merge branch 'develop' of http://172.16.29.40:8010/wms/wms4.git into develop
Showing
8 changed files
with
43 additions
and
14 deletions
ant-design-vue-jeecg/src/views/system/receipt/ReceiptDetailList.vue
... | ... | @@ -90,7 +90,7 @@ |
90 | 90 | </a-table> |
91 | 91 | </div> |
92 | 92 | |
93 | - <receiptDetail-modal ref="modalForm" @ok="modalFormOk" :mainId="mainId"></receiptDetail-modal> | |
93 | + <receiptDetail-modal ref="modalForm" @ok="modalFormOk" :mainId="mainId" @dataSearch="dataSearch"></receiptDetail-modal> | |
94 | 94 | <receipt-detail-edit-modal ref="modalEditForm" @ok="modalFormOk" :mainId="mainId"></receipt-detail-edit-modal> |
95 | 95 | </a-card> |
96 | 96 | </template> |
... | ... | @@ -269,7 +269,9 @@ export default { |
269 | 269 | this.searchQuery(); |
270 | 270 | }); |
271 | 271 | }, |
272 | - | |
272 | + dataSearch() { | |
273 | + this.$emit('dataSearch'); | |
274 | + }, | |
273 | 275 | batchPrint() { |
274 | 276 | if (this.selectedRowKeys.length <= 0) { |
275 | 277 | this.$message.warning('请选择一条记录!'); |
... | ... |
ant-design-vue-jeecg/src/views/system/receipt/ReceiptHeaderList.vue
... | ... | @@ -222,7 +222,7 @@ |
222 | 222 | |
223 | 223 | <a-tabs defaultActiveKey="1"> |
224 | 224 | <a-tab-pane tab="入库单详情" key="1"> |
225 | - <ReceiptDetailList :mainId="selectedMainId"/> | |
225 | + <ReceiptDetailList :mainId="selectedMainId" @dataSearch="dataSearch"/> | |
226 | 226 | </a-tab-pane> |
227 | 227 | </a-tabs> |
228 | 228 | |
... | ... | @@ -510,6 +510,21 @@ export default { |
510 | 510 | this.selectedRowKeys = selectedRowKeys; |
511 | 511 | this.selectionRows = selectionRows; |
512 | 512 | }, |
513 | + dataSearch(){ | |
514 | + //加载数据 若传入参数1则加载第一页的内容 | |
515 | + var params = this.getQueryParams();//查询条件 | |
516 | + this.loading = true; | |
517 | + getAction(this.url.list, params).then((res) => { | |
518 | + if (res.success) { | |
519 | + this.dataSource = res.result.records; | |
520 | + this.ipagination.total = res.result.total; | |
521 | + } | |
522 | + if (res.code === 510) { | |
523 | + this.$message.warning(res.message) | |
524 | + } | |
525 | + this.loading = false; | |
526 | + }) | |
527 | + }, | |
513 | 528 | loadData(arg) { |
514 | 529 | if (!this.url.list) { |
515 | 530 | this.$message.error("请设置url.list属性!") |
... | ... |
ant-design-vue-jeecg/src/views/system/receipt/modules/ReceiptDetailModal.vue
ant-design-vue-jeecg/src/views/system/shipment/ShipmentDetailList.vue
... | ... | @@ -70,7 +70,7 @@ |
70 | 70 | </a-table> |
71 | 71 | </div> |
72 | 72 | |
73 | - <shipmentDetail-modal ref="modalForm" @ok="modalFormOk" :mainId="mainId"></shipmentDetail-modal> | |
73 | + <shipmentDetail-modal ref="modalForm" @ok="modalFormOk" @dataSearch="dataSearch" :mainId="mainId"></shipmentDetail-modal> | |
74 | 74 | <shipment-detail-edit-modal ref="modalEditForm" @ok="modalFormOk" @close="searchQuery" :mainId="mainId"></shipment-detail-edit-modal> |
75 | 75 | <shipment-detail-combine-modal ref="modalCombineForm" @ok="modalFormOk" @close="searchQuery" :mainId="mainId"></shipment-detail-combine-modal> |
76 | 76 | |
... | ... | @@ -275,6 +275,9 @@ export default { |
275 | 275 | this.$refs.modalEditForm.title = "编辑"; |
276 | 276 | this.$refs.modalEditForm.disableSubmit = false; |
277 | 277 | }, |
278 | + dataSearch() { | |
279 | + this.$emit('dataSearch'); | |
280 | + } | |
278 | 281 | } |
279 | 282 | } |
280 | 283 | </script> |
... | ... |
ant-design-vue-jeecg/src/views/system/shipment/ShipmentHeaderList.vue
... | ... | @@ -247,7 +247,7 @@ |
247 | 247 | |
248 | 248 | <a-tabs defaultActiveKey="1"> |
249 | 249 | <a-tab-pane tab="出库单详情" key="1"> |
250 | - <ShipmentDetailList :mainId="selectedMainId" :flowStatus="flowStatus" :flowOff="flowOff"/> | |
250 | + <ShipmentDetailList :mainId="selectedMainId" :flowStatus="flowStatus" :flowOff="flowOff" @dataSearch="dataSearch"/> | |
251 | 251 | </a-tab-pane> |
252 | 252 | </a-tabs> |
253 | 253 | |
... | ... | @@ -691,6 +691,21 @@ export default { |
691 | 691 | this.searchQuery(); |
692 | 692 | }); |
693 | 693 | }, |
694 | + dataSearch(){ | |
695 | + //加载数据 若传入参数1则加载第一页的内容 | |
696 | + var params = this.getQueryParams();//查询条件 | |
697 | + this.loading = true; | |
698 | + getAction(this.url.list, params).then((res) => { | |
699 | + if (res.success) { | |
700 | + this.dataSource = res.result.records; | |
701 | + this.ipagination.total = res.result.total; | |
702 | + } | |
703 | + if (res.code === 510) { | |
704 | + this.$message.warning(res.message) | |
705 | + } | |
706 | + this.loading = false; | |
707 | + }) | |
708 | + }, | |
694 | 709 | loadData(arg) { |
695 | 710 | if (!this.url.list) { |
696 | 711 | this.$message.error("请设置url.list属性!") |
... | ... |
ant-design-vue-jeecg/src/views/system/shipment/modules/ReduceInventoryBySnModal.vue
... | ... | @@ -108,11 +108,9 @@ export default { |
108 | 108 | this.close() |
109 | 109 | }, |
110 | 110 | getPortList(record) { |
111 | - console.log("getPortList"); | |
112 | 111 | selectSortingPort(record).then((res) => { |
113 | 112 | if (res.success) { |
114 | 113 | this.portList = res.result; |
115 | - console.log("getPortList11"); | |
116 | 114 | this.model = Object.assign({}, record); |
117 | 115 | this.visible = true; |
118 | 116 | } |
... | ... |
ant-design-vue-jeecg/src/views/system/shipment/modules/ShipmentDetailModal.vue
huaheng-wms-core/src/main/java/org/jeecg/modules/wms/shipment/shipmentCombination/service/impl/ShipmentCombinationServiceImpl.java
... | ... | @@ -1446,14 +1446,8 @@ public class ShipmentCombinationServiceImpl implements IShipmentCombinationServi |
1446 | 1446 | if (!success) { |
1447 | 1447 | throw new JeecgBootException("生成出库任务时, 创建任务详情失败"); |
1448 | 1448 | } |
1449 | - value = parameterConfigurationService.getValueByZoneCode(QuantityConstant.RULE_TASK_LOCATION, container.getZoneCode()); | |
1450 | - int taskLocationRule = Integer.parseInt(value); | |
1451 | 1449 | int shipmentContainerHeaderId = shipmentContainerHeader.getId(); |
1452 | 1450 | shipmentContainerHeader = new ShipmentContainerHeader(); |
1453 | - if (taskLocationRule == QuantityConstant.RULE_TASK_SET_LOCATION) { | |
1454 | - toLocationCode = fromLocationCode; | |
1455 | - shipmentContainerHeader.setToLocationCode(toLocationCode); | |
1456 | - } | |
1457 | 1451 | shipmentContainerHeader.setToPort(toPort); |
1458 | 1452 | shipmentContainerHeader.setId(shipmentContainerHeaderId); |
1459 | 1453 | shipmentContainerHeader.setTaskType(taskType); |
... | ... |