@things-factory/operato-wms 4.3.465 → 4.3.467
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/client/pages/outbound/picking-product.js +25 -6
- package/client/pages/outbound/route-label-popup.js +97 -27
- package/client/pages/report/manifest-report.js +448 -0
- package/client/route.js +4 -0
- package/dist-server/graphql/resolvers/dashboard/inventory-expiry-monitor.js +5 -4
- package/dist-server/graphql/resolvers/dashboard/inventory-expiry-monitor.js.map +1 -1
- package/dist-server/graphql/resolvers/reports/index.js +3 -2
- package/dist-server/graphql/resolvers/reports/index.js.map +1 -1
- package/dist-server/graphql/resolvers/reports/manifest-report.js +96 -0
- package/dist-server/graphql/resolvers/reports/manifest-report.js.map +1 -0
- package/dist-server/graphql/types/dashboard/inventory-expiry-counter.js +1 -0
- package/dist-server/graphql/types/dashboard/inventory-expiry-counter.js.map +1 -1
- package/dist-server/graphql/types/reports/index.js +8 -3
- package/dist-server/graphql/types/reports/index.js.map +1 -1
- package/dist-server/graphql/types/reports/manifest-report-list.js +14 -0
- package/dist-server/graphql/types/reports/manifest-report-list.js.map +1 -0
- package/dist-server/graphql/types/reports/manifest-report-type.js +22 -0
- package/dist-server/graphql/types/reports/manifest-report-type.js.map +1 -0
- package/package.json +4 -4
- package/server/graphql/resolvers/dashboard/inventory-expiry-monitor.ts +9 -5
- package/server/graphql/resolvers/reports/index.ts +8 -3
- package/server/graphql/resolvers/reports/manifest-report.ts +109 -0
- package/server/graphql/types/dashboard/inventory-expiry-counter.ts +1 -0
- package/server/graphql/types/reports/index.ts +16 -5
- package/server/graphql/types/reports/manifest-report-list.ts +8 -0
- package/server/graphql/types/reports/manifest-report-type.ts +16 -0
- package/things-factory.config.js +4 -0
- package/translations/en.json +1 -0
- package/translations/ko.json +1 -0
- package/translations/ms.json +1 -0
- package/translations/zh.json +1 -0
|
@@ -9,14 +9,26 @@ import './tote-popup'
|
|
|
9
9
|
import './vas-list-popup'
|
|
10
10
|
|
|
11
11
|
import gql from 'graphql-tag'
|
|
12
|
-
import {
|
|
12
|
+
import {
|
|
13
|
+
css,
|
|
14
|
+
html
|
|
15
|
+
} from 'lit-element'
|
|
13
16
|
import { connect } from 'pwa-helpers/connect-mixin.js'
|
|
14
17
|
|
|
15
18
|
import { sleep } from '@operato/utils'
|
|
16
19
|
import { MultiColumnFormStyles } from '@things-factory/form-ui'
|
|
17
|
-
import {
|
|
20
|
+
import {
|
|
21
|
+
i18next,
|
|
22
|
+
localize
|
|
23
|
+
} from '@things-factory/i18n-base'
|
|
18
24
|
import { openPopup } from '@things-factory/layout-base'
|
|
19
|
-
import {
|
|
25
|
+
import {
|
|
26
|
+
client,
|
|
27
|
+
CustomAlert,
|
|
28
|
+
gqlContext,
|
|
29
|
+
PageView,
|
|
30
|
+
store
|
|
31
|
+
} from '@things-factory/shell'
|
|
20
32
|
import { CommonButtonStyles } from '@things-factory/styles'
|
|
21
33
|
import { isMobileDevice } from '@things-factory/utils'
|
|
22
34
|
|
|
@@ -36,6 +48,7 @@ const PICKING_TYPES = { PICKING, BATCH_PICKING }
|
|
|
36
48
|
class PickingProduct extends connect(store)(localize(i18next)(PageView)) {
|
|
37
49
|
static get properties() {
|
|
38
50
|
return {
|
|
51
|
+
_worksheetLoaded: Boolean,
|
|
39
52
|
_bizplaceName: String,
|
|
40
53
|
_crossDocking: Boolean,
|
|
41
54
|
_currentBinLocation: String,
|
|
@@ -159,7 +172,7 @@ class PickingProduct extends connect(store)(localize(i18next)(PageView)) {
|
|
|
159
172
|
})
|
|
160
173
|
}
|
|
161
174
|
|
|
162
|
-
if (this.
|
|
175
|
+
if (this._worksheetLoaded && !this._isReplenishment) {
|
|
163
176
|
actions.push({
|
|
164
177
|
title: i18next.t('button.plastic_pallet'),
|
|
165
178
|
action: this.openPalletOutbound.bind(this),
|
|
@@ -182,7 +195,7 @@ class PickingProduct extends connect(store)(localize(i18next)(PageView)) {
|
|
|
182
195
|
})
|
|
183
196
|
}
|
|
184
197
|
|
|
185
|
-
if (
|
|
198
|
+
if (this._worksheetLoaded && this.data.records.every(record => record.completed)) {
|
|
186
199
|
actions.push({
|
|
187
200
|
title: i18next.t('button.complete'),
|
|
188
201
|
action: this.complete.bind(this),
|
|
@@ -300,7 +313,7 @@ class PickingProduct extends connect(store)(localize(i18next)(PageView)) {
|
|
|
300
313
|
//set the initial value of object attributes
|
|
301
314
|
constructor() {
|
|
302
315
|
super()
|
|
303
|
-
|
|
316
|
+
this._worksheetLoaded = false
|
|
304
317
|
this.data = { records: [] }
|
|
305
318
|
this.locationSortingRules = []
|
|
306
319
|
this.locationNameSplit = []
|
|
@@ -767,6 +780,7 @@ class PickingProduct extends connect(store)(localize(i18next)(PageView)) {
|
|
|
767
780
|
this._isExecuting = false
|
|
768
781
|
this._locationName = null
|
|
769
782
|
this.toteNo = ''
|
|
783
|
+
this._worksheetLoaded = false
|
|
770
784
|
}
|
|
771
785
|
|
|
772
786
|
fillUpForm(form, data) {
|
|
@@ -1565,6 +1579,8 @@ class PickingProduct extends connect(store)(localize(i18next)(PageView)) {
|
|
|
1565
1579
|
let releaseGood = response.data.pickingWorksheet.worksheetInfo?.releaseGood
|
|
1566
1580
|
let replenishment = response.data.pickingWorksheet.worksheetInfo?.replenishment
|
|
1567
1581
|
|
|
1582
|
+
this._worksheetLoaded = true
|
|
1583
|
+
|
|
1568
1584
|
if (releaseGood) {
|
|
1569
1585
|
this._isReleaseGoodRecall = response.data.pickingWorksheet.worksheetInfo.releaseGood.recall
|
|
1570
1586
|
this.pickingOrderId = releaseGood.id
|
|
@@ -1715,6 +1731,9 @@ class PickingProduct extends connect(store)(localize(i18next)(PageView)) {
|
|
|
1715
1731
|
if (!response.errors) {
|
|
1716
1732
|
//if (!this._selectedOrderInventory) this.clearView()
|
|
1717
1733
|
this.taskNo = pickingRefNo
|
|
1734
|
+
|
|
1735
|
+
this._worksheetLoaded = true
|
|
1736
|
+
|
|
1718
1737
|
if (!response.data?.batchPickingWorksheet) return
|
|
1719
1738
|
|
|
1720
1739
|
const { worksheetInfo, worksheetDetailInfos } = response.data.batchPickingWorksheet
|
|
@@ -62,6 +62,16 @@ class RouteLabelPopup extends connect(store)(localize(i18next)(LitElement)) {
|
|
|
62
62
|
padding-bottom: 1px;
|
|
63
63
|
color: var(--search-form-icon-color);
|
|
64
64
|
}
|
|
65
|
+
|
|
66
|
+
.checkbox-container {
|
|
67
|
+
display: flex;
|
|
68
|
+
align-items: center;
|
|
69
|
+
gap: 10px; /* Adjust gap as needed */
|
|
70
|
+
}
|
|
71
|
+
|
|
72
|
+
.checkbox-container label {
|
|
73
|
+
margin-left: 5px; /* Adjust margin as needed */
|
|
74
|
+
}
|
|
65
75
|
`
|
|
66
76
|
]
|
|
67
77
|
}
|
|
@@ -71,6 +81,7 @@ class RouteLabelPopup extends connect(store)(localize(i18next)(LitElement)) {
|
|
|
71
81
|
config: Object,
|
|
72
82
|
data: Object,
|
|
73
83
|
partnerId: String,
|
|
84
|
+
refNoFilter: String,
|
|
74
85
|
worksheetType: String,
|
|
75
86
|
_binNumberList: Array,
|
|
76
87
|
_searchFields: Array,
|
|
@@ -113,7 +124,7 @@ class RouteLabelPopup extends connect(store)(localize(i18next)(LitElement)) {
|
|
|
113
124
|
render() {
|
|
114
125
|
return html`
|
|
115
126
|
<div>
|
|
116
|
-
<form class="multi-column-form"
|
|
127
|
+
<form class="multi-column-form">
|
|
117
128
|
${this.worksheetType == 'merged'
|
|
118
129
|
? html`
|
|
119
130
|
<label>${i18next.t('field.priority')}</label>
|
|
@@ -145,30 +156,47 @@ class RouteLabelPopup extends connect(store)(localize(i18next)(LitElement)) {
|
|
|
145
156
|
`
|
|
146
157
|
: ''}
|
|
147
158
|
|
|
159
|
+
<label for="refNo">${i18next.t('field.ref_no')}</label>
|
|
148
160
|
<input
|
|
149
|
-
type="
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
@change="${e => {
|
|
154
|
-
this._changeCheckbox()
|
|
161
|
+
type="text"
|
|
162
|
+
name="refNo"
|
|
163
|
+
@input="${e => {
|
|
164
|
+
this.refNoFilter = e.currentTarget.value
|
|
155
165
|
}}"
|
|
166
|
+
@keypress="${e => {
|
|
167
|
+
if (e.key === 'Enter') {
|
|
168
|
+
this.dataGrist.fetch()
|
|
169
|
+
e.preventDefault()
|
|
170
|
+
}
|
|
171
|
+
}}"
|
|
172
|
+
}}
|
|
156
173
|
/>
|
|
157
|
-
<
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
`
|
|
171
|
-
|
|
174
|
+
<div class="checkbox-container">
|
|
175
|
+
<input
|
|
176
|
+
type="checkbox"
|
|
177
|
+
checked
|
|
178
|
+
id="withSku"
|
|
179
|
+
name="withSku"
|
|
180
|
+
@change="${e => {
|
|
181
|
+
this._changeCheckbox()
|
|
182
|
+
}}"
|
|
183
|
+
/>
|
|
184
|
+
<label for="withSku">${i18next.t('field.sku')}</label>
|
|
185
|
+
|
|
186
|
+
${this._enableToteScanning
|
|
187
|
+
? html`
|
|
188
|
+
<input
|
|
189
|
+
type="checkbox"
|
|
190
|
+
id="withTote"
|
|
191
|
+
name="withTote"
|
|
192
|
+
@change="${e => {
|
|
193
|
+
this._changeCheckbox()
|
|
194
|
+
}}"
|
|
195
|
+
/>
|
|
196
|
+
<label for="withTote">${i18next.t('field.tote')}</label>
|
|
197
|
+
`
|
|
198
|
+
: ''}
|
|
199
|
+
</div>
|
|
172
200
|
</form>
|
|
173
201
|
<mwc-icon id="search" @click=${e => this.dataGrist.fetch()} search>search</mwc-icon>
|
|
174
202
|
</div>
|
|
@@ -294,6 +322,34 @@ class RouteLabelPopup extends connect(store)(localize(i18next)(LitElement)) {
|
|
|
294
322
|
header: i18next.t('field.ro'),
|
|
295
323
|
sortable: true,
|
|
296
324
|
width: 150
|
|
325
|
+
},
|
|
326
|
+
{
|
|
327
|
+
type: 'string',
|
|
328
|
+
name: 'refNo',
|
|
329
|
+
header: i18next.t('field.ref_no'),
|
|
330
|
+
sortable: true,
|
|
331
|
+
width: 150
|
|
332
|
+
},
|
|
333
|
+
{
|
|
334
|
+
type: 'string',
|
|
335
|
+
name: 'refNo2',
|
|
336
|
+
header: i18next.t('field.ref_no_2'),
|
|
337
|
+
sortable: true,
|
|
338
|
+
width: 150
|
|
339
|
+
},
|
|
340
|
+
{
|
|
341
|
+
type: 'string',
|
|
342
|
+
name: 'refNo3',
|
|
343
|
+
header: i18next.t('field.ref_no_3'),
|
|
344
|
+
sortable: true,
|
|
345
|
+
width: 150
|
|
346
|
+
},
|
|
347
|
+
{
|
|
348
|
+
type: 'string',
|
|
349
|
+
name: 'locationName',
|
|
350
|
+
header: i18next.t('field.location'),
|
|
351
|
+
sortable: false,
|
|
352
|
+
width: 150
|
|
297
353
|
}
|
|
298
354
|
)
|
|
299
355
|
|
|
@@ -339,6 +395,10 @@ class RouteLabelPopup extends connect(store)(localize(i18next)(LitElement)) {
|
|
|
339
395
|
filters.push({ name: 'withTote', operator: 'eq', value: true })
|
|
340
396
|
}
|
|
341
397
|
|
|
398
|
+
if (this.refNoFilter) {
|
|
399
|
+
filters.push({ name: 'refNo', operator: 'ilike', value: this.refNoFilter })
|
|
400
|
+
}
|
|
401
|
+
|
|
342
402
|
try {
|
|
343
403
|
const response = await client.query({
|
|
344
404
|
query: gql`
|
|
@@ -363,6 +423,11 @@ class RouteLabelPopup extends connect(store)(localize(i18next)(LitElement)) {
|
|
|
363
423
|
productName
|
|
364
424
|
releaseQty
|
|
365
425
|
releaseGoodName
|
|
426
|
+
releaseGood {
|
|
427
|
+
refNo
|
|
428
|
+
refNo2
|
|
429
|
+
refNo3
|
|
430
|
+
}
|
|
366
431
|
productDetails {
|
|
367
432
|
packingType
|
|
368
433
|
packingSize
|
|
@@ -376,6 +441,7 @@ class RouteLabelPopup extends connect(store)(localize(i18next)(LitElement)) {
|
|
|
376
441
|
storeName
|
|
377
442
|
stopId
|
|
378
443
|
createdAt
|
|
444
|
+
locationName
|
|
379
445
|
}
|
|
380
446
|
total
|
|
381
447
|
}
|
|
@@ -404,8 +470,11 @@ class RouteLabelPopup extends connect(store)(localize(i18next)(LitElement)) {
|
|
|
404
470
|
roName: itm.releaseGoodName,
|
|
405
471
|
productSku: itm.productSKU,
|
|
406
472
|
createdAt: createdAt,
|
|
407
|
-
|
|
408
|
-
|
|
473
|
+
refNo: itm.releaseGood.refNo,
|
|
474
|
+
refNo2: itm.releaseGood.refNo2,
|
|
475
|
+
refNo3: itm.releaseGood.refNo3,
|
|
476
|
+
packingType: itm.toteNumber ? null : itm.productDetail.packingType,
|
|
477
|
+
packingSize: itm.toteNumber ? null : itm.productDetail.packingSize
|
|
409
478
|
}
|
|
410
479
|
}) || {}
|
|
411
480
|
})
|
|
@@ -447,16 +516,17 @@ class RouteLabelPopup extends connect(store)(localize(i18next)(LitElement)) {
|
|
|
447
516
|
})
|
|
448
517
|
} else {
|
|
449
518
|
let index = 1
|
|
450
|
-
for (
|
|
519
|
+
for (let record of records) {
|
|
451
520
|
let max = record.releaseQty ? record.releaseQty / record.packingSize : 1
|
|
452
521
|
for (let qty = 1; qty <= max; qty++) {
|
|
453
|
-
|
|
522
|
+
let searchParams = new URLSearchParams()
|
|
454
523
|
|
|
455
524
|
/* for pallet record mapping */
|
|
456
525
|
searchParams.append('roName', record.roName)
|
|
457
526
|
if (record?.binNumber) {
|
|
458
527
|
searchParams.append('binNumber', record.binNumber)
|
|
459
528
|
}
|
|
529
|
+
searchParams.append('locationName', record.locationName)
|
|
460
530
|
if (!record?.toteNumber) {
|
|
461
531
|
searchParams.append('qty', record.qty)
|
|
462
532
|
searchParams.append('releaseQty', record.releaseQty)
|
|
@@ -486,7 +556,7 @@ class RouteLabelPopup extends connect(store)(localize(i18next)(LitElement)) {
|
|
|
486
556
|
throw `Error : Can't get label command from server (response: ${response.status})`
|
|
487
557
|
}
|
|
488
558
|
|
|
489
|
-
|
|
559
|
+
let command = await response.text()
|
|
490
560
|
|
|
491
561
|
if (!this.printer) {
|
|
492
562
|
this.printer = new DirectPrinter()
|