Commit 562e5af31720b0fc3b6a8044265c2a135d76dd57
Merge branch 'develop4' into develop
Conflicts: ant-design-vue-jeecg/src/views/system/inventory/InventoryMaterialSummaryList.vue huaheng-wms-core/src/main/java/org/jeecg/modules/wms/receipt/receiptHeader/controller/ReceiptHeaderController.java huaheng-wms-core/src/main/java/org/jeecg/modules/wms/receipt/receiptHeader/service/IReceiptDetailService.java huaheng-wms-core/src/main/java/org/jeecg/modules/wms/receipt/receiptHeader/service/impl/ReceiptDetailServiceImpl.java huaheng-wms-core/src/main/java/org/jeecg/modules/wms/receipt/receiptHeader/service/impl/ReceiptHeaderServiceImpl.java huaheng-wms-core/src/main/java/org/jeecg/modules/wms/receipt/receiptHeaderHistory/service/impl/ReceiptHeaderHistoryServiceImpl.java huaheng-wms-core/src/main/java/org/jeecg/modules/wms/task/taskHeader/service/impl/TaskHeaderServiceImpl.java
Showing
15 changed files
with
116 additions
and
18 deletions
ant-design-vue-jeecg/src/views/system/config/modules/ContainerEditModal.vue
... | ... | @@ -8,8 +8,7 @@ |
8 | 8 | :okButtonProps="{ class:{'jee-hidden': disableSubmit} }" |
9 | 9 | @cancel="handleCancel" |
10 | 10 | cancelText="关闭"> |
11 | - <location | |
12 | - ="realForm" @ok="submitCallback" :disabled="disableSubmit"></container-edit-form> | |
11 | + <container-edit-form ref="realForm" @ok="submitCallback" :disabled="disableSubmit"></container-edit-form> | |
13 | 12 | </j-modal> |
14 | 13 | </template> |
15 | 14 | |
... | ... |
ant-design-vue-jeecg/src/views/system/inventory/InventoryMaterialSummaryList.vue
... | ... | @@ -4,6 +4,38 @@ |
4 | 4 | <div class="table-page-search-wrapper"> |
5 | 5 | <a-form layout="inline" @keyup.enter.native="searchQuery"> |
6 | 6 | <a-row :gutter="24"> |
7 | + <a-col :xl="6" :lg="7" :md="8" :sm="24"> | |
8 | + <a-form-item label="货主"> | |
9 | + <a-input placeholder="请输入货主" v-model="queryParam.companyCode"></a-input> | |
10 | + </a-form-item> | |
11 | + </a-col> | |
12 | + <a-col :xl="6" :lg="7" :md="8" :sm="24"> | |
13 | + <a-form-item label="物料编码"> | |
14 | + <a-input placeholder="请输入物料编码" v-model="queryParam.materialCode"></a-input> | |
15 | + </a-form-item> | |
16 | + </a-col> | |
17 | + <template v-if="toggleSearchStatus"> | |
18 | + <a-col :xl="6" :lg="7" :md="8" :sm="24"> | |
19 | + <a-form-item label="物料名称"> | |
20 | + <a-input placeholder="请输入物料名称" v-model="queryParam.materialName"></a-input> | |
21 | + </a-form-item> | |
22 | + </a-col> | |
23 | + <a-col :xl="6" :lg="7" :md="8" :sm="24"> | |
24 | + <a-form-item label="物料规格"> | |
25 | + <a-input placeholder="请输入物料规格" v-model="queryParam.materialSpec"></a-input> | |
26 | + </a-form-item> | |
27 | + </a-col> | |
28 | + </template> | |
29 | + <a-col :xl="6" :lg="7" :md="8" :sm="24"> | |
30 | + <span style="float: left;overflow: hidden;" class="table-page-search-submitButtons"> | |
31 | + <a-button type="primary" @click="searchQuery" icon="search">查询</a-button> | |
32 | + <a-button type="primary" @click="searchReset" icon="reload" style="margin-left: 8px">重置</a-button> | |
33 | + <a @click="handleToggleSearch" style="margin-left: 8px"> | |
34 | + {{ toggleSearchStatus ? '收起' : '展开' }} | |
35 | + <a-icon :type="toggleSearchStatus ? 'up' : 'down'"/> | |
36 | + </a> | |
37 | + </span> | |
38 | + </a-col> | |
7 | 39 | </a-row> |
8 | 40 | </a-form> |
9 | 41 | </div> |
... | ... | @@ -40,6 +72,12 @@ |
40 | 72 | class="j-table-force-nowrap" |
41 | 73 | @change="handleTableChange"> |
42 | 74 | |
75 | + <span slot="companyCode" slot-scope="companyCode"> | |
76 | + <a-tag :key="companyCode" color=blue> | |
77 | + {{ solutionCompany(companyCode) }} | |
78 | + </a-tag> | |
79 | + </span> | |
80 | + | |
43 | 81 | <template slot="htmlSlot" slot-scope="text"> |
44 | 82 | <div v-html="text"></div> |
45 | 83 | </template> |
... | ... | @@ -78,6 +116,7 @@ |
78 | 116 | import '@/assets/less/TableExpand.less' |
79 | 117 | import { mixinDevice } from '@/utils/mixin' |
80 | 118 | import { JeecgListMixin } from '@/mixins/JeecgListMixin' |
119 | + import {getCompanyList} from '@/api/api' | |
81 | 120 | import InventoryDetailList from './InventoryDetailList' |
82 | 121 | import InventoryDetailSubTable from './subTables/InventoryDetailSubTable' |
83 | 122 | |
... | ... | @@ -93,17 +132,18 @@ |
93 | 132 | selectedMainId: '', |
94 | 133 | description: '物料汇总主表管理页面', |
95 | 134 | // 表头 |
135 | + companyList: [], | |
96 | 136 | columns: [ |
97 | 137 | // { |
98 | 138 | // title: '库存ID', |
99 | 139 | // align: "center", |
100 | 140 | // dataIndex: 'id' |
101 | 141 | // }, |
102 | - { | |
103 | - title:'仓库', | |
104 | - align:"center", | |
105 | - dataIndex: 'warehouseCode' | |
106 | - }, | |
142 | + // { | |
143 | + // title:'仓库', | |
144 | + // align:"center", | |
145 | + // dataIndex: 'warehouseCode' | |
146 | + // }, | |
107 | 147 | { |
108 | 148 | title:'库区', |
109 | 149 | align:"center", |
... | ... | @@ -112,7 +152,9 @@ |
112 | 152 | { |
113 | 153 | title:'货主', |
114 | 154 | align:"center", |
115 | - dataIndex: 'companyCode' | |
155 | + dataIndex: 'companyCode', | |
156 | + key: 'companyCode', | |
157 | + scopedSlots: {customRender: 'companyCode'} | |
116 | 158 | }, |
117 | 159 | { |
118 | 160 | title:'物料编码', |
... | ... | @@ -152,6 +194,7 @@ |
152 | 194 | }, |
153 | 195 | created() { |
154 | 196 | this.getSuperFieldList(); |
197 | + this.loadFrom(); | |
155 | 198 | }, |
156 | 199 | computed: { |
157 | 200 | importExcelUrl: function(){ |
... | ... | @@ -159,6 +202,14 @@ |
159 | 202 | }, |
160 | 203 | }, |
161 | 204 | methods: { |
205 | + loadFrom() { | |
206 | + getCompanyList().then((res) => { | |
207 | + if (res.success) { | |
208 | + this.companyList = res.result | |
209 | + } | |
210 | + }); | |
211 | + }, | |
212 | + | |
162 | 213 | clickThenSelect(record) { |
163 | 214 | return { |
164 | 215 | on: { |
... | ... | @@ -180,11 +231,24 @@ |
180 | 231 | }, |
181 | 232 | initDictConfig(){ |
182 | 233 | }, |
234 | + | |
235 | + solutionCompany(value) { | |
236 | + debugger | |
237 | + var actions = [] | |
238 | + Object.keys(this.companyList).some((key) => { | |
239 | + if (this.companyList[key].code == ('' + value)) { | |
240 | + actions.push(this.companyList[key].name) | |
241 | + return true | |
242 | + } | |
243 | + }) | |
244 | + return actions.join('') | |
245 | + }, | |
246 | + | |
183 | 247 | getSuperFieldList(){ |
184 | 248 | let fieldList=[]; |
185 | 249 | fieldList.push({type:'string',value:'warehouseCode',text:'仓库',dictCode:''}) |
186 | 250 | fieldList.push({type:'string',value:'zoneCode',text:'库区',dictCode:''}) |
187 | - fieldList.push({type:'string',value:'companyCode',text:'货主',dictCode:''}) | |
251 | + fieldList.push({type:'string',value:'companyCode_dec',text:'货主',dictCode:''}) | |
188 | 252 | fieldList.push({type:'string',value:'materialCode',text:'物料编码',dictCode:''}) |
189 | 253 | fieldList.push({type:'string',value:'materialName',text:'物料名称',dictCode:''}) |
190 | 254 | fieldList.push({type:'string',value:'materialSpec',text:'物料规格',dictCode:''}) |
... | ... |
ant-design-vue-jeecg/src/views/system/inventory/subTables/InventoryDetailSubTable.vue
... | ... | @@ -220,12 +220,15 @@ export default { |
220 | 220 | { |
221 | 221 | title: '更新日期', |
222 | 222 | align: "center", |
223 | - fixed: "right", | |
224 | - dataIndex: 'updateTime', | |
225 | - width: 147, | |
226 | - scopedSlots: {customRender: 'action'}, | |
227 | - | |
228 | - } | |
223 | + }, | |
224 | + { | |
225 | + title: '操作', | |
226 | + dataIndex: 'action', | |
227 | + align:"center", | |
228 | + fixed:"right", | |
229 | + width:147, | |
230 | + scopedSlots: { customRender: 'action' } | |
231 | + }, | |
229 | 232 | ], |
230 | 233 | url: { |
231 | 234 | list: "/InventoryMaterialSummary/inventoryMaterialSummary/inventoryMaterialSummaryChild", |
... | ... |
ant-design-vue-jeecg/src/views/system/receipt/ReceiptDetailList.vue
ant-design-vue-jeecg/src/views/system/receipt/ReceiptHeaderList.vue
ant-design-vue-jeecg/src/views/system/shipment/ShipmentDetailList.vue
ant-design-vue-jeecg/src/views/system/shipment/ShipmentHeaderList.vue
ant-design-vue-jeecg/src/views/system/task/CircleTaskHeaderList.vue
... | ... | @@ -224,11 +224,13 @@ export default { |
224 | 224 | title: '任务ID', |
225 | 225 | align: "center", |
226 | 226 | dataIndex: 'id', |
227 | + sorter: true, | |
227 | 228 | }, |
228 | 229 | { |
229 | 230 | title: '任务类型', |
230 | 231 | align: "center", |
231 | 232 | dataIndex: 'taskType_dictText', |
233 | + customFilterDropdown: true, | |
232 | 234 | }, |
233 | 235 | { |
234 | 236 | title: '容器号', |
... | ... |
huaheng-wms-core/src/main/java/org/jeecg/modules/wms/inventory/inventoryTransaction/service/IInventoryTransactionService.java
... | ... | @@ -3,6 +3,8 @@ package org.jeecg.modules.wms.inventory.inventoryTransaction.service; |
3 | 3 | import com.baomidou.mybatisplus.extension.service.IService; |
4 | 4 | import org.jeecg.modules.wms.inventory.inventoryTransaction.entity.InventoryTransaction; |
5 | 5 | |
6 | +import java.util.List; | |
7 | + | |
6 | 8 | /** |
7 | 9 | * @Description: 库存交易记录 |
8 | 10 | * @Author: jeecg-boot |
... | ... | @@ -11,4 +13,6 @@ import org.jeecg.modules.wms.inventory.inventoryTransaction.entity.InventoryTran |
11 | 13 | */ |
12 | 14 | public interface IInventoryTransactionService extends IService<InventoryTransaction> { |
13 | 15 | |
16 | + boolean batchSave(List<InventoryTransaction> inventoryTransactionList); | |
17 | + | |
14 | 18 | } |
... | ... |
huaheng-wms-core/src/main/java/org/jeecg/modules/wms/inventory/inventoryTransaction/service/impl/InventoryTransactionServiceImpl.java
... | ... | @@ -7,6 +7,8 @@ import org.springframework.stereotype.Service; |
7 | 7 | |
8 | 8 | import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl; |
9 | 9 | |
10 | +import java.util.List; | |
11 | + | |
10 | 12 | /** |
11 | 13 | * @Description: 库存交易记录 |
12 | 14 | * @Author: jeecg-boot |
... | ... | @@ -16,4 +18,8 @@ import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl; |
16 | 18 | @Service |
17 | 19 | public class InventoryTransactionServiceImpl extends ServiceImpl<InventoryTransactionMapper, InventoryTransaction> implements IInventoryTransactionService { |
18 | 20 | |
21 | + @Override | |
22 | + public boolean batchSave(List<InventoryTransaction> inventoryTransactionList) { | |
23 | + return this.saveBatch(inventoryTransactionList); | |
24 | + } | |
19 | 25 | } |
... | ... |
huaheng-wms-core/src/main/java/org/jeecg/modules/wms/receipt/receiptHeader/controller/ReceiptHeaderController.java
... | ... | @@ -143,8 +143,10 @@ public class ReceiptHeaderController extends JeecgController<ReceiptHeader, IRec |
143 | 143 | @RequiresPermissions("receiptHeader:delete") |
144 | 144 | @DeleteMapping(value = "/delete") |
145 | 145 | public Result<String> delete(@RequestParam(name = "id", required = true) String id) { |
146 | - receiptHeaderService.delMain(id, QuantityConstant.WMS_DELETE_RECEIPT); | |
147 | - return Result.OK("删除成功!"); | |
146 | + if (!receiptHeaderService.delMain(id, QuantityConstant.WMS_DELETE_RECEIPT)) { | |
147 | + return Result.error("删除失败"); | |
148 | + } | |
149 | + return Result.ok("删除成功"); | |
148 | 150 | } |
149 | 151 | |
150 | 152 | /** |
... | ... |
huaheng-wms-core/src/main/java/org/jeecg/modules/wms/receipt/receiptHeader/service/IReceiptDetailService.java
... | ... | @@ -22,4 +22,6 @@ public interface IReceiptDetailService extends IService<ReceiptDetail> { |
22 | 22 | public Result removeDetailById(String id); |
23 | 23 | |
24 | 24 | public Result removeDetailListById(List<String> idList); |
25 | + | |
26 | + boolean batchSave(List<ReceiptDetail> receiptDetailList); | |
25 | 27 | } |
... | ... |
huaheng-wms-core/src/main/java/org/jeecg/modules/wms/receipt/receiptHeader/service/impl/ReceiptDetailServiceImpl.java
... | ... | @@ -142,4 +142,9 @@ public class ReceiptDetailServiceImpl extends ServiceImpl<ReceiptDetailMapper, R |
142 | 142 | } |
143 | 143 | return result; |
144 | 144 | } |
145 | + | |
146 | + @Override | |
147 | + public boolean batchSave(List<ReceiptDetail> receiptDetailList) { | |
148 | + return this.saveBatch(receiptDetailList); | |
149 | + } | |
145 | 150 | } |
... | ... |
huaheng-wms-core/src/main/java/org/jeecg/modules/wms/shipment/shipmentHeader/service/IShipmentDetailService.java
... | ... | @@ -20,4 +20,6 @@ public interface IShipmentDetailService extends IService<ShipmentDetail> { |
20 | 20 | public Result saveShipmentDetail(ShipmentDetail shipmentDetail); |
21 | 21 | |
22 | 22 | public List<ShipmentDetail> getShipmentDetailListByShipmentId(Integer id); |
23 | + | |
24 | + boolean batchSave(List<ShipmentDetail> shipmentDetailList); | |
23 | 25 | } |
... | ... |
huaheng-wms-core/src/main/java/org/jeecg/modules/wms/shipment/shipmentHeader/service/impl/ShipmentDetailServiceImpl.java
... | ... | @@ -94,4 +94,9 @@ public class ShipmentDetailServiceImpl extends ServiceImpl<ShipmentDetailMapper, |
94 | 94 | List<ShipmentDetail> shipmentDetailList = shipmentDetailService.list(shipmentDetailLambdaQueryWrapper); |
95 | 95 | return shipmentDetailList; |
96 | 96 | } |
97 | + | |
98 | + @Override | |
99 | + public boolean batchSave(List<ShipmentDetail> shipmentDetailList) { | |
100 | + return this.saveBatch(shipmentDetailList); | |
101 | + } | |
97 | 102 | } |
... | ... |