Commit 02e47a621a504e5d28510ccdac43486dfe266e4d

Authored by 肖超群
2 parents 2fee4725 562e5af3

Merge branch 'develop' of http://www.huahengrobot.com:90/wms/wms4 into develop

Showing 16 changed files with 116 additions and 22 deletions
ant-design-vue-jeecg/src/views/system/config/modules/ContainerEditModal.vue
@@ -8,8 +8,7 @@ @@ -8,8 +8,7 @@
8 :okButtonProps="{ class:{'jee-hidden': disableSubmit} }" 8 :okButtonProps="{ class:{'jee-hidden': disableSubmit} }"
9 @cancel="handleCancel" 9 @cancel="handleCancel"
10 cancelText="关闭"> 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 </j-modal> 12 </j-modal>
14 </template> 13 </template>
15 14
ant-design-vue-jeecg/src/views/system/inventory/InventoryMaterialSummaryList.vue
@@ -4,6 +4,38 @@ @@ -4,6 +4,38 @@
4 <div class="table-page-search-wrapper"> 4 <div class="table-page-search-wrapper">
5 <a-form layout="inline" @keyup.enter.native="searchQuery"> 5 <a-form layout="inline" @keyup.enter.native="searchQuery">
6 <a-row :gutter="24"> 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 </a-row> 39 </a-row>
8 </a-form> 40 </a-form>
9 </div> 41 </div>
@@ -40,6 +72,12 @@ @@ -40,6 +72,12 @@
40 class="j-table-force-nowrap" 72 class="j-table-force-nowrap"
41 @change="handleTableChange"> 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 <template slot="htmlSlot" slot-scope="text"> 81 <template slot="htmlSlot" slot-scope="text">
44 <div v-html="text"></div> 82 <div v-html="text"></div>
45 </template> 83 </template>
@@ -78,6 +116,7 @@ @@ -78,6 +116,7 @@
78 import '@/assets/less/TableExpand.less' 116 import '@/assets/less/TableExpand.less'
79 import { mixinDevice } from '@/utils/mixin' 117 import { mixinDevice } from '@/utils/mixin'
80 import { JeecgListMixin } from '@/mixins/JeecgListMixin' 118 import { JeecgListMixin } from '@/mixins/JeecgListMixin'
  119 + import {getCompanyList} from '@/api/api'
81 import InventoryDetailList from './InventoryDetailList' 120 import InventoryDetailList from './InventoryDetailList'
82 import InventoryDetailSubTable from './subTables/InventoryDetailSubTable' 121 import InventoryDetailSubTable from './subTables/InventoryDetailSubTable'
83 122
@@ -93,17 +132,18 @@ @@ -93,17 +132,18 @@
93 selectedMainId: '', 132 selectedMainId: '',
94 description: '物料汇总主表管理页面', 133 description: '物料汇总主表管理页面',
95 // 表头 134 // 表头
  135 + companyList: [],
96 columns: [ 136 columns: [
97 // { 137 // {
98 // title: '库存ID', 138 // title: '库存ID',
99 // align: "center", 139 // align: "center",
100 // dataIndex: 'id' 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 title:'库区', 148 title:'库区',
109 align:"center", 149 align:"center",
@@ -112,7 +152,9 @@ @@ -112,7 +152,9 @@
112 { 152 {
113 title:'货主', 153 title:'货主',
114 align:"center", 154 align:"center",
115 - dataIndex: 'companyCode' 155 + dataIndex: 'companyCode',
  156 + key: 'companyCode',
  157 + scopedSlots: {customRender: 'companyCode'}
116 }, 158 },
117 { 159 {
118 title:'物料编码', 160 title:'物料编码',
@@ -152,6 +194,7 @@ @@ -152,6 +194,7 @@
152 }, 194 },
153 created() { 195 created() {
154 this.getSuperFieldList(); 196 this.getSuperFieldList();
  197 + this.loadFrom();
155 }, 198 },
156 computed: { 199 computed: {
157 importExcelUrl: function(){ 200 importExcelUrl: function(){
@@ -159,6 +202,14 @@ @@ -159,6 +202,14 @@
159 }, 202 },
160 }, 203 },
161 methods: { 204 methods: {
  205 + loadFrom() {
  206 + getCompanyList().then((res) => {
  207 + if (res.success) {
  208 + this.companyList = res.result
  209 + }
  210 + });
  211 + },
  212 +
162 clickThenSelect(record) { 213 clickThenSelect(record) {
163 return { 214 return {
164 on: { 215 on: {
@@ -180,11 +231,24 @@ @@ -180,11 +231,24 @@
180 }, 231 },
181 initDictConfig(){ 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 getSuperFieldList(){ 247 getSuperFieldList(){
184 let fieldList=[]; 248 let fieldList=[];
185 fieldList.push({type:'string',value:'warehouseCode',text:'仓库',dictCode:''}) 249 fieldList.push({type:'string',value:'warehouseCode',text:'仓库',dictCode:''})
186 fieldList.push({type:'string',value:'zoneCode',text:'库区',dictCode:''}) 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 fieldList.push({type:'string',value:'materialCode',text:'物料编码',dictCode:''}) 252 fieldList.push({type:'string',value:'materialCode',text:'物料编码',dictCode:''})
189 fieldList.push({type:'string',value:'materialName',text:'物料名称',dictCode:''}) 253 fieldList.push({type:'string',value:'materialName',text:'物料名称',dictCode:''})
190 fieldList.push({type:'string',value:'materialSpec',text:'物料规格',dictCode:''}) 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,12 +220,15 @@ export default {
220 { 220 {
221 title: '更新日期', 221 title: '更新日期',
222 align: "center", 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 url: { 233 url: {
231 list: "/InventoryMaterialSummary/inventoryMaterialSummary/inventoryMaterialSummaryChild", 234 list: "/InventoryMaterialSummary/inventoryMaterialSummary/inventoryMaterialSummaryChild",
ant-design-vue-jeecg/src/views/system/receipt/ReceiptDetailList.vue
@@ -123,6 +123,7 @@ export default { @@ -123,6 +123,7 @@ export default {
123 { 123 {
124 title: '单据详情ID', 124 title: '单据详情ID',
125 align: "center", 125 align: "center",
  126 + sorter: true,
126 dataIndex: 'id' 127 dataIndex: 'id'
127 }, 128 },
128 { 129 {
ant-design-vue-jeecg/src/views/system/receipt/ReceiptHeaderList.vue
@@ -230,6 +230,7 @@ export default { @@ -230,6 +230,7 @@ export default {
230 { 230 {
231 title: '单据ID', 231 title: '单据ID',
232 align: "center", 232 align: "center",
  233 + sorter: true,
233 dataIndex: 'id' 234 dataIndex: 'id'
234 }, 235 },
235 { 236 {
ant-design-vue-jeecg/src/views/system/shipment/ShipmentDetailList.vue
@@ -129,6 +129,7 @@ export default { @@ -129,6 +129,7 @@ export default {
129 { 129 {
130 title: '单据详情ID', 130 title: '单据详情ID',
131 align: "center", 131 align: "center",
  132 + sorter: true,
132 dataIndex: 'id' 133 dataIndex: 'id'
133 }, 134 },
134 { 135 {
ant-design-vue-jeecg/src/views/system/shipment/ShipmentHeaderList.vue
@@ -248,7 +248,8 @@ export default { @@ -248,7 +248,8 @@ export default {
248 { 248 {
249 title: '单据ID', 249 title: '单据ID',
250 align: "center", 250 align: "center",
251 - dataIndex: 'id' 251 + dataIndex: 'id',
  252 + sorter: true,
252 }, 253 },
253 { 254 {
254 title: '出库单编码', 255 title: '出库单编码',
ant-design-vue-jeecg/src/views/system/task/CircleTaskHeaderList.vue
@@ -224,11 +224,13 @@ export default { @@ -224,11 +224,13 @@ export default {
224 title: '任务ID', 224 title: '任务ID',
225 align: "center", 225 align: "center",
226 dataIndex: 'id', 226 dataIndex: 'id',
  227 + sorter: true,
227 }, 228 },
228 { 229 {
229 title: '任务类型', 230 title: '任务类型',
230 align: "center", 231 align: "center",
231 dataIndex: 'taskType_dictText', 232 dataIndex: 'taskType_dictText',
  233 + customFilterDropdown: true,
232 }, 234 },
233 { 235 {
234 title: '容器号', 236 title: '容器号',
huaheng-wms-core/src/main/java/org/jeecg/modules/wms/api/acs/controller/AcsController.java
@@ -40,10 +40,6 @@ public class AcsController extends HuahengBaseController { @@ -40,10 +40,6 @@ public class AcsController extends HuahengBaseController {
40 @PostMapping(value = "/testTokenCheck") 40 @PostMapping(value = "/testTokenCheck")
41 @OperationLog(bizType = "'物料追踪'", tag = "'入库完成'", bizId = "#paramMap.get('bizId')", extra = "#jsonString", msg = "'测试操作日志'", recordReturnValue = true) 41 @OperationLog(bizType = "'物料追踪'", tag = "'入库完成'", bizId = "#paramMap.get('bizId')", extra = "#jsonString", msg = "'测试操作日志'", recordReturnValue = true)
42 public Result<?> testTokenCheck(@RequestBody Map<String, String> paramMap, HttpServletRequest request) { 42 public Result<?> testTokenCheck(@RequestBody Map<String, String> paramMap, HttpServletRequest request) {
43 -// String audience = ApiAuthentication.getInstance().getAudience();  
44 -// String url = "http://localhost:8080/wms/api/wms/acs/testTokenCheck";  
45 -// String body = OkHttpUtils.sendPostByJsonStr(url, JSON.toJSONString(paramMap));  
46 -// String url = addressService.getUrlByParam(QuantityConstant.ADDRESS_AGV_TASK_ASSIGN);  
47 return Result.ok(); 43 return Result.ok();
48 } 44 }
49 45
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,6 +3,8 @@ package org.jeecg.modules.wms.inventory.inventoryTransaction.service;
3 import com.baomidou.mybatisplus.extension.service.IService; 3 import com.baomidou.mybatisplus.extension.service.IService;
4 import org.jeecg.modules.wms.inventory.inventoryTransaction.entity.InventoryTransaction; 4 import org.jeecg.modules.wms.inventory.inventoryTransaction.entity.InventoryTransaction;
5 5
  6 +import java.util.List;
  7 +
6 /** 8 /**
7 * @Description: 库存交易记录 9 * @Description: 库存交易记录
8 * @Author: jeecg-boot 10 * @Author: jeecg-boot
@@ -11,4 +13,6 @@ import org.jeecg.modules.wms.inventory.inventoryTransaction.entity.InventoryTran @@ -11,4 +13,6 @@ import org.jeecg.modules.wms.inventory.inventoryTransaction.entity.InventoryTran
11 */ 13 */
12 public interface IInventoryTransactionService extends IService<InventoryTransaction> { 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,6 +7,8 @@ import org.springframework.stereotype.Service;
7 7
8 import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl; 8 import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
9 9
  10 +import java.util.List;
  11 +
10 /** 12 /**
11 * @Description: 库存交易记录 13 * @Description: 库存交易记录
12 * @Author: jeecg-boot 14 * @Author: jeecg-boot
@@ -16,4 +18,8 @@ import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl; @@ -16,4 +18,8 @@ import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
16 @Service 18 @Service
17 public class InventoryTransactionServiceImpl extends ServiceImpl<InventoryTransactionMapper, InventoryTransaction> implements IInventoryTransactionService { 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&lt;ReceiptHeader, IRec @@ -143,8 +143,10 @@ public class ReceiptHeaderController extends JeecgController&lt;ReceiptHeader, IRec
143 @RequiresPermissions("receiptHeader:delete") 143 @RequiresPermissions("receiptHeader:delete")
144 @DeleteMapping(value = "/delete") 144 @DeleteMapping(value = "/delete")
145 public Result<String> delete(@RequestParam(name = "id", required = true) String id) { 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&lt;ReceiptDetail&gt; { @@ -22,4 +22,6 @@ public interface IReceiptDetailService extends IService&lt;ReceiptDetail&gt; {
22 public Result removeDetailById(String id); 22 public Result removeDetailById(String id);
23 23
24 public Result removeDetailListById(List<String> idList); 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&lt;ReceiptDetailMapper, R @@ -142,4 +142,9 @@ public class ReceiptDetailServiceImpl extends ServiceImpl&lt;ReceiptDetailMapper, R
142 } 142 }
143 return result; 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&lt;ShipmentDetail&gt; { @@ -20,4 +20,6 @@ public interface IShipmentDetailService extends IService&lt;ShipmentDetail&gt; {
20 public Result saveShipmentDetail(ShipmentDetail shipmentDetail); 20 public Result saveShipmentDetail(ShipmentDetail shipmentDetail);
21 21
22 public List<ShipmentDetail> getShipmentDetailListByShipmentId(Integer id); 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&lt;ShipmentDetailMapper, @@ -94,4 +94,9 @@ public class ShipmentDetailServiceImpl extends ServiceImpl&lt;ShipmentDetailMapper,
94 List<ShipmentDetail> shipmentDetailList = shipmentDetailService.list(shipmentDetailLambdaQueryWrapper); 94 List<ShipmentDetail> shipmentDetailList = shipmentDetailService.list(shipmentDetailLambdaQueryWrapper);
95 return shipmentDetailList; 95 return shipmentDetailList;
96 } 96 }
  97 +
  98 + @Override
  99 + public boolean batchSave(List<ShipmentDetail> shipmentDetailList) {
  100 + return this.saveBatch(shipmentDetailList);
  101 + }
97 } 102 }