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,7 +90,7 @@ | ||
90 | </a-table> | 90 | </a-table> |
91 | </div> | 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 | <receipt-detail-edit-modal ref="modalEditForm" @ok="modalFormOk" :mainId="mainId"></receipt-detail-edit-modal> | 94 | <receipt-detail-edit-modal ref="modalEditForm" @ok="modalFormOk" :mainId="mainId"></receipt-detail-edit-modal> |
95 | </a-card> | 95 | </a-card> |
96 | </template> | 96 | </template> |
@@ -269,7 +269,9 @@ export default { | @@ -269,7 +269,9 @@ export default { | ||
269 | this.searchQuery(); | 269 | this.searchQuery(); |
270 | }); | 270 | }); |
271 | }, | 271 | }, |
272 | - | 272 | + dataSearch() { |
273 | + this.$emit('dataSearch'); | ||
274 | + }, | ||
273 | batchPrint() { | 275 | batchPrint() { |
274 | if (this.selectedRowKeys.length <= 0) { | 276 | if (this.selectedRowKeys.length <= 0) { |
275 | this.$message.warning('请选择一条记录!'); | 277 | this.$message.warning('请选择一条记录!'); |
ant-design-vue-jeecg/src/views/system/receipt/ReceiptHeaderList.vue
@@ -222,7 +222,7 @@ | @@ -222,7 +222,7 @@ | ||
222 | 222 | ||
223 | <a-tabs defaultActiveKey="1"> | 223 | <a-tabs defaultActiveKey="1"> |
224 | <a-tab-pane tab="入库单详情" key="1"> | 224 | <a-tab-pane tab="入库单详情" key="1"> |
225 | - <ReceiptDetailList :mainId="selectedMainId"/> | 225 | + <ReceiptDetailList :mainId="selectedMainId" @dataSearch="dataSearch"/> |
226 | </a-tab-pane> | 226 | </a-tab-pane> |
227 | </a-tabs> | 227 | </a-tabs> |
228 | 228 | ||
@@ -510,6 +510,21 @@ export default { | @@ -510,6 +510,21 @@ export default { | ||
510 | this.selectedRowKeys = selectedRowKeys; | 510 | this.selectedRowKeys = selectedRowKeys; |
511 | this.selectionRows = selectionRows; | 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 | loadData(arg) { | 528 | loadData(arg) { |
514 | if (!this.url.list) { | 529 | if (!this.url.list) { |
515 | this.$message.error("请设置url.list属性!") | 530 | this.$message.error("请设置url.list属性!") |
ant-design-vue-jeecg/src/views/system/receipt/modules/ReceiptDetailModal.vue
@@ -138,7 +138,8 @@ export default { | @@ -138,7 +138,8 @@ export default { | ||
138 | .then(res => { | 138 | .then(res => { |
139 | if (res.success) { | 139 | if (res.success) { |
140 | that.$message.success(res.message) | 140 | that.$message.success(res.message) |
141 | - that.$emit('ok') | 141 | + that.$emit('ok'); |
142 | + this.$emit('dataSearch'); | ||
142 | } else { | 143 | } else { |
143 | that.$message.warning(res.message) | 144 | that.$message.warning(res.message) |
144 | } | 145 | } |
ant-design-vue-jeecg/src/views/system/shipment/ShipmentDetailList.vue
@@ -70,7 +70,7 @@ | @@ -70,7 +70,7 @@ | ||
70 | </a-table> | 70 | </a-table> |
71 | </div> | 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 | <shipment-detail-edit-modal ref="modalEditForm" @ok="modalFormOk" @close="searchQuery" :mainId="mainId"></shipment-detail-edit-modal> | 74 | <shipment-detail-edit-modal ref="modalEditForm" @ok="modalFormOk" @close="searchQuery" :mainId="mainId"></shipment-detail-edit-modal> |
75 | <shipment-detail-combine-modal ref="modalCombineForm" @ok="modalFormOk" @close="searchQuery" :mainId="mainId"></shipment-detail-combine-modal> | 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,6 +275,9 @@ export default { | ||
275 | this.$refs.modalEditForm.title = "编辑"; | 275 | this.$refs.modalEditForm.title = "编辑"; |
276 | this.$refs.modalEditForm.disableSubmit = false; | 276 | this.$refs.modalEditForm.disableSubmit = false; |
277 | }, | 277 | }, |
278 | + dataSearch() { | ||
279 | + this.$emit('dataSearch'); | ||
280 | + } | ||
278 | } | 281 | } |
279 | } | 282 | } |
280 | </script> | 283 | </script> |
ant-design-vue-jeecg/src/views/system/shipment/ShipmentHeaderList.vue
@@ -247,7 +247,7 @@ | @@ -247,7 +247,7 @@ | ||
247 | 247 | ||
248 | <a-tabs defaultActiveKey="1"> | 248 | <a-tabs defaultActiveKey="1"> |
249 | <a-tab-pane tab="出库单详情" key="1"> | 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 | </a-tab-pane> | 251 | </a-tab-pane> |
252 | </a-tabs> | 252 | </a-tabs> |
253 | 253 | ||
@@ -691,6 +691,21 @@ export default { | @@ -691,6 +691,21 @@ export default { | ||
691 | this.searchQuery(); | 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 | loadData(arg) { | 709 | loadData(arg) { |
695 | if (!this.url.list) { | 710 | if (!this.url.list) { |
696 | this.$message.error("请设置url.list属性!") | 711 | this.$message.error("请设置url.list属性!") |
ant-design-vue-jeecg/src/views/system/shipment/modules/ReduceInventoryBySnModal.vue
@@ -108,11 +108,9 @@ export default { | @@ -108,11 +108,9 @@ export default { | ||
108 | this.close() | 108 | this.close() |
109 | }, | 109 | }, |
110 | getPortList(record) { | 110 | getPortList(record) { |
111 | - console.log("getPortList"); | ||
112 | selectSortingPort(record).then((res) => { | 111 | selectSortingPort(record).then((res) => { |
113 | if (res.success) { | 112 | if (res.success) { |
114 | this.portList = res.result; | 113 | this.portList = res.result; |
115 | - console.log("getPortList11"); | ||
116 | this.model = Object.assign({}, record); | 114 | this.model = Object.assign({}, record); |
117 | this.visible = true; | 115 | this.visible = true; |
118 | } | 116 | } |
ant-design-vue-jeecg/src/views/system/shipment/modules/ShipmentDetailModal.vue
@@ -140,6 +140,7 @@ export default { | @@ -140,6 +140,7 @@ export default { | ||
140 | if (res.success) { | 140 | if (res.success) { |
141 | that.$message.success(res.message); | 141 | that.$message.success(res.message); |
142 | that.$emit('ok'); | 142 | that.$emit('ok'); |
143 | + that.$emit('dataSearch'); | ||
143 | } else { | 144 | } else { |
144 | that.$message.warning(res.message); | 145 | that.$message.warning(res.message); |
145 | } | 146 | } |
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,14 +1446,8 @@ public class ShipmentCombinationServiceImpl implements IShipmentCombinationServi | ||
1446 | if (!success) { | 1446 | if (!success) { |
1447 | throw new JeecgBootException("生成出库任务时, 创建任务详情失败"); | 1447 | throw new JeecgBootException("生成出库任务时, 创建任务详情失败"); |
1448 | } | 1448 | } |
1449 | - value = parameterConfigurationService.getValueByZoneCode(QuantityConstant.RULE_TASK_LOCATION, container.getZoneCode()); | ||
1450 | - int taskLocationRule = Integer.parseInt(value); | ||
1451 | int shipmentContainerHeaderId = shipmentContainerHeader.getId(); | 1449 | int shipmentContainerHeaderId = shipmentContainerHeader.getId(); |
1452 | shipmentContainerHeader = new ShipmentContainerHeader(); | 1450 | shipmentContainerHeader = new ShipmentContainerHeader(); |
1453 | - if (taskLocationRule == QuantityConstant.RULE_TASK_SET_LOCATION) { | ||
1454 | - toLocationCode = fromLocationCode; | ||
1455 | - shipmentContainerHeader.setToLocationCode(toLocationCode); | ||
1456 | - } | ||
1457 | shipmentContainerHeader.setToPort(toPort); | 1451 | shipmentContainerHeader.setToPort(toPort); |
1458 | shipmentContainerHeader.setId(shipmentContainerHeaderId); | 1452 | shipmentContainerHeader.setId(shipmentContainerHeaderId); |
1459 | shipmentContainerHeader.setTaskType(taskType); | 1453 | shipmentContainerHeader.setTaskType(taskType); |