ShipmentContainerAdviceList.vue
14 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
<template>
<a-card :bordered="false">
<!-- 查询区域 -->
<div class="table-page-search-wrapper">
<a-form layout="inline" @keyup.enter.native="searchQuery">
<a-row :gutter="24">
<a-col :xl="6" :lg="7" :md="8" :sm="24">
<a-form-item label="移动类型单号">
<a-input placeholder="请输入移动类型单号" v-model="queryParam.movementTypeRecordCode"></a-input>
</a-form-item>
</a-col>
<a-col :xl="6" :lg="7" :md="8" :sm="24">
<a-form-item label="物料凭证号">
<a-input placeholder="请输入物料凭证号" v-model="queryParam.materialDocument"></a-input>
</a-form-item>
</a-col>
<a-col :xl="6" :lg="7" :md="8" :sm="24">
<a-form-item label="物料编码">
<a-input placeholder="请输入物料编码" v-model="queryParam.materialCode"></a-input>
</a-form-item>
</a-col>
<a-col :xl="6" :lg="7" :md="8" :sm="24">
<a-form-item label="库区">
<a-form-model-item prop="zoneOptions">
<j-multi-select-tag
v-model="queryParam.zoneCode"
:options="zoneOptions"
placeholder="请选择库区">
</j-multi-select-tag>
</a-form-model-item>
</a-form-item>
</a-col>
<a-col :xl="6" :lg="7" :md="8" :sm="24">
<a-form-item label="库位编码">
<a-input placeholder="请输入库位编码" v-model="queryParam.locationCode"></a-input>
</a-form-item>
</a-col>
<a-col :xl="6" :lg="7" :md="8" :sm="24">
<a-form-item label="容器编码">
<a-input placeholder="请输入容器编码" v-model="queryParam.containerCode"></a-input>
</a-form-item>
</a-col>
<a-col :xl="6" :lg="7" :md="8" :sm="24">
<a-form-item label="唯一号">
<a-input placeholder="请输入唯一号" v-model="queryParam.suNumber"></a-input>
</a-form-item>
</a-col>
<template v-if="toggleSearchStatus">
<a-col :xl="6" :lg="7" :md="8" :sm="24">
<a-form-item label="状态">
<j-dict-select-tag placeholder="请选择状态" v-model="queryParam.status" dictCode="shipment_container_status" />
</a-form-item>
</a-col>
<a-col :xl="6" :lg="7" :md="8" :sm="24">
<a-form-item label="特殊库存标记1">
<a-input placeholder="请输入特殊库存标记1" v-model="queryParam.specialStockIndicator"></a-input>
</a-form-item>
</a-col>
<a-col :xl="6" :lg="7" :md="8" :sm="24">
<a-form-item label="特殊库存标记2">
<a-input placeholder="请输入特殊库存标记2" v-model="queryParam.wbsElement"></a-input>
</a-form-item>
</a-col>
<a-col :xl="6" :lg="7" :md="8" :sm="24">
<a-form-item label="采购订单号">
<a-input placeholder="请输入采购订单号" v-model="queryParam.purchaseOrder"></a-input>
</a-form-item>
</a-col>
<a-col :xl="6" :lg="7" :md="8" :sm="24">
<a-form-item label="拣货批次号">
<a-input placeholder="请输入拣货批次号" v-model="queryParam.batch"></a-input>
</a-form-item>
</a-col>
<a-col :xl="6" :lg="7" :md="8" :sm="24">
<a-form-item label="拣货托盘">
<a-input placeholder="请输入拣货托盘" v-model="queryParam.toContainerCode"></a-input>
</a-form-item>
</a-col>
<a-col :xl="6" :lg="7" :md="8" :sm="24">
<a-form-item label="送货位置">
<j-dict-select-tag placeholder="请选择送货位置" v-model="queryParam.receivingLocationId" dictCode="receiving_location" />
</a-form-item>
</a-col>
<a-col :xl="12" :lg="14" :md="16" :sm="24">
<a-form-item label="送货时间">
<j-date :show-date="true" date-format="YYYY-MM-DD" placeholder="请选择开始时间" class="query-group-cust"
v-model="queryParam.receivingTime_begin"></j-date>
<span class="query-group-split-cust"></span>
<j-date :show-date="true" date-format="YYYY-MM-DD" placeholder="请选择结束时间" class="query-group-cust"
v-model="queryParam.receivingTime_end"></j-date>
</a-form-item>
</a-col>
</template>
<a-col :xl="6" :lg="7" :md="8" :sm="24">
<span style="float: left;overflow: hidden;" class="table-page-search-submitButtons">
<a-button type="primary" @click="searchQuery" icon="search">查询</a-button>
<a-button type="primary" @click="searchReset" icon="reload" style="margin-left: 8px">重置</a-button>
<a @click="handleToggleSearch" style="margin-left: 8px">
{{ toggleSearchStatus ? '收起' : '展开' }}
<a-icon :type="toggleSearchStatus ? 'up' : 'down'"/>
</a>
</span>
</a-col>
</a-row>
</a-form>
</div>
<!-- 查询区域-END -->
<!-- 操作按钮区域 -->
<div class="table-operator">
<a-button type="primary" icon="download" @click="handleExportXls('出库预配盘')">导出</a-button>
</div>
<!-- table区域-begin -->
<div>
<a-table
ref="table"
size="middle"
:scroll="{x:true}"
bordered
rowKey="id"
:columns="columns"
:dataSource="dataSource"
:pagination="ipagination"
:loading="loading"
class="j-table-force-nowrap"
@change="handleTableChange">
<span slot="zoneCode" slot-scope="zoneCode">
<a-tag :key="zoneCode" :color="getStatusColor(solutionZoneCode(zoneCode))">
{{ solutionZoneCode(zoneCode) }}
</a-tag>
</span>
<span slot="status_dictText" slot-scope="status_dictText">
<a-tag :key="status_dictText" :color="getStatusColor(status_dictText)">
{{ status_dictText }}
</a-tag>
</span>
</a-table>
</div>
<shipment-container-advice-modal ref="modalForm" @ok="modalFormOk"></shipment-container-advice-modal>
</a-card>
</template>
<script>
import '@/assets/less/TableExpand.less'
import { mixinDevice } from '@/utils/mixin'
import { JeecgListMixin } from '@/mixins/JeecgListMixin'
import ShipmentContainerAdviceModal from './modules/ShipmentContainerAdviceModal'
import { getZoneList } from '@/api/api'
export default {
name: 'ShipmentContainerAdviceList',
mixins:[JeecgListMixin, mixinDevice],
components: {
ShipmentContainerAdviceModal
},
data () {
return {
description: '出库预配盘管理页面',
zoneList: [],
zoneOptions:[],
// 表头
columns: [
{
title: '预配盘ID',
align: 'center',
dataIndex: 'id'
},
{
title: '移动类型单号',
align: 'center',
width: 150,
dataIndex: 'movementTypeRecordCode'
},
{
title: '物料凭证号',
align: 'center',
width: 110,
dataIndex: 'materialDocument'
},
{
title: '物料凭证年号',
align: 'center',
width: 110,
dataIndex: 'materialDocYear'
},
{
title: '物料凭证行号',
align: 'center',
width: 110,
dataIndex: 'materialDocItem'
},
{
title: '库区',
align: 'center',
dataIndex: 'zoneCode',
key: 'zoneCode',
scopedSlots: {customRender: 'zoneCode'},
// filterMultiple: true,
// filters: []
},
{
title: '库位编码',
align: 'center',
dataIndex: 'locationCode'
},
{
title: '容器编码',
align: 'center',
dataIndex: 'containerCode'
},
{
title: '物料编码',
align: 'center',
dataIndex: 'materialCode'
},
{
title: '唯一号',
align: 'center',
dataIndex: 'suNumber'
},
{
title: '物料单位',
align: 'center',
dataIndex: 'materialUnit'
},
{
title: '数量',
align: 'center',
dataIndex: 'qty'
},
{
title: '状态',
align: 'center',
dataIndex: 'status_dictText',
key: 'status_dictText',
scopedSlots: {customRender: 'status_dictText'},
filterMultiple: false,
filters: []
},
{
title: '特殊库存标记1',
align: 'center',
dataIndex: 'specialStockIndicator'
},
{
title: '特殊库存标记2',
align: 'center',
dataIndex: 'wbsElement'
},
{
title: '采购订单号',
align: 'center',
dataIndex: 'purchaseOrder'
},
{
title: '采购订单行号',
align: 'center',
dataIndex: 'item'
},
{
title: '拣货批次号',
align: 'center',
dataIndex: 'batch'
},
{
title: '拣货托盘',
align: 'center',
dataIndex: 'toContainerCode'
},
{
title: '拣货人',
align: 'center',
dataIndex: 'picker'
},
{
title: '拣货唯一号',
align: 'center',
dataIndex: 'pickSuNumber'
},
{
title: '已拣数量',
align: 'center',
dataIndex: 'taskQty'
},
{
title: '送货位置',
align: 'center',
dataIndex: 'receivingLocation_dictText',
customRender: (text, record) => {
// 如果有值直接显示,否则显示 receivingLocation
return text || record.receivingLocation;
}
},
{
title: '送货时间',
align: 'center',
dataIndex: 'receivingTime'
},
{
title: '接收人',
align: 'center',
dataIndex: 'receiver'
},
{
title: '接收供应商',
align: 'center',
dataIndex: 'receivingVendorName'
},
{
title: '创建人',
align: 'center',
dataIndex: 'createBy'
},
{
title: '创建日期',
align: 'center',
dataIndex: 'createTime'
},
{
title: '更新人',
align: 'center',
dataIndex: 'updateBy'
},
{
title: '更新日期',
align: 'center',
dataIndex: 'updateTime'
},
{
title: '物料描述',
align: 'center',
dataIndex: 'materialText'
},
],
url: {
list: "/shipment/shipmentContainerAdvice/list",
delete: "/shipment/shipmentContainerAdvice/delete",
deleteBatch: "/shipment/shipmentContainerAdvice/deleteBatch",
exportXlsUrl: "/shipment/shipmentContainerAdvice/exportXls",
importExcelUrl: "/shipment/shipmentContainerAdvice/importExcel",
},
dictOptions:{},
superFieldList:[],
}
},
created() {
this.getSuperFieldList();
this.loadFrom();
},
computed: {
importExcelUrl: function(){
return `${window._CONFIG['domianURL']}/${this.url.importExcelUrl}`;
},
},
methods: {
initDictConfig(){
},
loadFrom() {
getZoneList().then((res) => {
if (res.success) {
this.zoneList = res.result
//延迟半秒执行,避免组件未加载完,数据已经加载完
setTimeout(()=>{
//slice可以在数组的任何位置进行删除/添加操作
this.zoneOptions.splice(0, 1);
for (let i = 0; i < res.result.length; i++) {
this.zoneOptions.push({value:res.result[i].code,text:res.result[i].name})
}
},500)
}
});
},
getSuperFieldList(){
let fieldList=[];
fieldList.push({type:'string',value:'containerCode',text:'容器编码',dictCode:''})
fieldList.push({type:'string',value:'locationCode',text:'库位编码',dictCode:''})
fieldList.push({type:'int',value:'inventoryDetailId',text:'库存明细id',dictCode:''})
fieldList.push({type:'int',value:'shipmentContainerId',text:'出库配盘ID',dictCode:''})
fieldList.push({type:'string',value:'shipmentCode',text:'出库单编码',dictCode:''})
fieldList.push({type:'int',value:'shipmentId',text:'出库单ID',dictCode:''})
fieldList.push({type:'int',value:'shipmentDetailId',text:'出库明细id',dictCode:''})
fieldList.push({type:'string',value:'companyCode',text:'货主',dictCode:''})
fieldList.push({type:'string',value:'materialCode',text:'物料编码',dictCode:''})
fieldList.push({type:'string',value:'materialName',text:'物料名称',dictCode:''})
fieldList.push({type:'string',value:'materialSpec',text:'物料规格',dictCode:''})
fieldList.push({type:'string',value:'materialUnit',text:'物料单位',dictCode:''})
fieldList.push({type:'string',value:'batch',text:'批次',dictCode:''})
fieldList.push({type:'int',value:'status',text:'状态',dictCode:''})
fieldList.push({type:'BigDecimal',value:'qty',text:'数量',dictCode:''})
fieldList.push({type:'string',value:'createBy',text:'创建人',dictCode:''})
fieldList.push({type:'datetime',value:'createTime',text:'创建日期'})
fieldList.push({type:'string',value:'updateBy',text:'更新人',dictCode:''})
fieldList.push({type:'datetime',value:'updateTime',text:'更新日期'})
this.superFieldList = fieldList
}
}
}
</script>
<style scoped>
@import '~@assets/less/common.less';
</style>