@things-factory/operato-wms 4.3.373 → 4.3.376
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/inventory-check/add-extra-inventory-popup.js +4 -1
- package/client/pages/inventory-check/check-inventory-popup.js +63 -16
- package/client/pages/inventory-check/cycle-count-report.js +48 -9
- package/client/pages/inventory-check/cycle-count-review.js +1 -1
- package/client/pages/inventory-check/cycle-count-worksheet-list.js +6 -6
- package/client/pages/inventory-check/inspecting-product.js +125 -96
- package/client/pages/inventory-check/inventory-check-list.js +1 -1
- package/client/pages/inventory-check/relocate-inventory-popup.js +31 -1
- package/client/pages/inventory-check/worksheet-cycle-count.js +1 -1
- package/client/pages/outbound/sorting-product.js +5 -0
- package/dist-server/graphql/resolvers/reports/cycle-count-report.js +25 -9
- package/dist-server/graphql/resolvers/reports/cycle-count-report.js.map +1 -1
- package/package.json +5 -5
- package/server/graphql/resolvers/reports/cycle-count-report.ts +25 -9
- package/translations/en.json +3 -0
- package/translations/ko.json +2 -0
- package/translations/ms.json +2 -0
- package/translations/zh.json +2 -0
|
@@ -130,13 +130,15 @@ class AddExtraInventoryPopup extends localize(i18next)(LitElement) {
|
|
|
130
130
|
<barcode-scanable-input name="inspectedLocation" custom-input></barcode-scanable-input>
|
|
131
131
|
<label>${i18next.t('label.sku')}</label>
|
|
132
132
|
<input name="sku" type="text" .value=${this.sku} custom-input @click="${this._openProductSelection}" />
|
|
133
|
+
<label>${i18next.t('label.uom')}</label>
|
|
134
|
+
<input name="uom" type="text" .value=${this.uom || ''} readonly />
|
|
133
135
|
<label>${i18next.t('label.inspected_batch_no')}</label>
|
|
134
136
|
<input name="inspectedBatchNo" type="text" .value=${this.inspectedBatchNo} custom-input />
|
|
135
137
|
<label>${i18next.t('label.inspected_qty')}</label>
|
|
136
138
|
<input name="inspectedQty" type="text" .value=${this.inspectedQty} custom-input />
|
|
137
139
|
${!this.enableCartonLabel
|
|
138
140
|
? html`
|
|
139
|
-
<label>${i18next.t('label.inspected_uom_value')}</label>
|
|
141
|
+
<label>${i18next.t('label.inspected_uom_value')} </label>
|
|
140
142
|
<input name="inspectedUomValue" type="text" .value=${this.inspectedUomValue} custom-input />
|
|
141
143
|
`
|
|
142
144
|
: ''}
|
|
@@ -167,6 +169,7 @@ class AddExtraInventoryPopup extends localize(i18next)(LitElement) {
|
|
|
167
169
|
this.productDetailId = e.detail.productDetailId
|
|
168
170
|
this.sku = e.detail.product.sku
|
|
169
171
|
this.productId = e.detail.product.id
|
|
172
|
+
this.uom = e.detail.uom
|
|
170
173
|
this.requestUpdate()
|
|
171
174
|
}
|
|
172
175
|
}}"
|
|
@@ -10,8 +10,10 @@ import { ScrollbarStyles } from '@things-factory/styles'
|
|
|
10
10
|
class CheckInventoryPopup extends localize(i18next)(LitElement) {
|
|
11
11
|
static get properties() {
|
|
12
12
|
return {
|
|
13
|
+
worksheetName: String,
|
|
13
14
|
bizplaceName: String,
|
|
14
15
|
bizplaceId: String,
|
|
16
|
+
cycleCountNo: String,
|
|
15
17
|
missingInventory: Object,
|
|
16
18
|
config: Object,
|
|
17
19
|
data: Object
|
|
@@ -142,7 +144,7 @@ class CheckInventoryPopup extends localize(i18next)(LitElement) {
|
|
|
142
144
|
initConfig() {
|
|
143
145
|
this.config = {
|
|
144
146
|
list: {
|
|
145
|
-
fields: ['locationName', 'productSku']
|
|
147
|
+
fields: ['locationName', 'productSku', 'status']
|
|
146
148
|
},
|
|
147
149
|
pagination: { infinite: true },
|
|
148
150
|
rows: {
|
|
@@ -156,14 +158,21 @@ class CheckInventoryPopup extends localize(i18next)(LitElement) {
|
|
|
156
158
|
name: 'locationName',
|
|
157
159
|
header: i18next.t('field.location'),
|
|
158
160
|
sortable: true,
|
|
159
|
-
width:
|
|
161
|
+
width: 100
|
|
160
162
|
},
|
|
161
163
|
{
|
|
162
164
|
type: 'string',
|
|
163
165
|
name: 'productSku',
|
|
164
166
|
header: i18next.t('field.sku'),
|
|
165
167
|
sortable: true,
|
|
166
|
-
width:
|
|
168
|
+
width: 230
|
|
169
|
+
},
|
|
170
|
+
{
|
|
171
|
+
type: 'string',
|
|
172
|
+
name: 'status',
|
|
173
|
+
header: i18next.t('field.status'),
|
|
174
|
+
sortable: true,
|
|
175
|
+
width: 130
|
|
167
176
|
}
|
|
168
177
|
]
|
|
169
178
|
}
|
|
@@ -185,6 +194,10 @@ class CheckInventoryPopup extends localize(i18next)(LitElement) {
|
|
|
185
194
|
return this.shadowRoot.querySelector('barcode-scanable-input[name=palletId]').shadowRoot.querySelector('input')
|
|
186
195
|
}
|
|
187
196
|
|
|
197
|
+
get productInfoInput() {
|
|
198
|
+
return this.shadowRoot.querySelector('barcode-scanable-input[name=productInfo]').shadowRoot.querySelector('input')
|
|
199
|
+
}
|
|
200
|
+
|
|
188
201
|
get infoForm() {
|
|
189
202
|
return this.renderRoot.querySelector('form#info-form')
|
|
190
203
|
}
|
|
@@ -228,6 +241,20 @@ class CheckInventoryPopup extends localize(i18next)(LitElement) {
|
|
|
228
241
|
}}"
|
|
229
242
|
></barcode-scanable-input>
|
|
230
243
|
`}
|
|
244
|
+
<label>${i18next.t('label.product_info')}</label>
|
|
245
|
+
<barcode-scanable-input
|
|
246
|
+
name="productInfo"
|
|
247
|
+
custom-input
|
|
248
|
+
@keypress="${async e => {
|
|
249
|
+
if (e.keyCode === 13) {
|
|
250
|
+
e.preventDefault()
|
|
251
|
+
if (this.productInfoInput.value) {
|
|
252
|
+
this.productInfo = this.productInfoInput.value
|
|
253
|
+
this.fetchHandler(this.bizplaceId)
|
|
254
|
+
}
|
|
255
|
+
}
|
|
256
|
+
}}"
|
|
257
|
+
></barcode-scanable-input>
|
|
231
258
|
</form>
|
|
232
259
|
<data-grist .mode=${'GRID'} .config=${this.config} .data=${this.data}></data-grist>
|
|
233
260
|
`
|
|
@@ -241,6 +268,10 @@ class CheckInventoryPopup extends localize(i18next)(LitElement) {
|
|
|
241
268
|
this.palletIdInput.focus()
|
|
242
269
|
}
|
|
243
270
|
|
|
271
|
+
focusOnProductInfoInput() {
|
|
272
|
+
this.productInfoInput.focus()
|
|
273
|
+
}
|
|
274
|
+
|
|
244
275
|
constructor() {
|
|
245
276
|
super()
|
|
246
277
|
this.data = { records: [] }
|
|
@@ -251,20 +282,35 @@ class CheckInventoryPopup extends localize(i18next)(LitElement) {
|
|
|
251
282
|
const variables = {
|
|
252
283
|
cartonId: this.enableCartonLabel ? this.cartonId : null,
|
|
253
284
|
palletId: !this.enableCartonLabel ? this.palletId : null,
|
|
254
|
-
bizplaceId
|
|
285
|
+
bizplaceId,
|
|
286
|
+
worksheetName: this.worksheetName,
|
|
287
|
+
cycleCountNo: this.cycleCountNo,
|
|
288
|
+
productInfo: this.productInfoInput.value
|
|
255
289
|
}
|
|
256
290
|
|
|
257
291
|
const response = await client.query({
|
|
258
292
|
query: gql`
|
|
259
|
-
query
|
|
260
|
-
|
|
293
|
+
query inventoryByCycleCount(
|
|
294
|
+
$cartonId: String
|
|
295
|
+
$palletId: String
|
|
296
|
+
$productInfo: String
|
|
297
|
+
$bizplaceId: String!
|
|
298
|
+
$cycleCountNo: String!
|
|
299
|
+
$worksheetName: String!
|
|
300
|
+
) {
|
|
301
|
+
inventoryByCycleCount(
|
|
302
|
+
cartonId: $cartonId
|
|
303
|
+
palletId: $palletId
|
|
304
|
+
productInfo: $productInfo
|
|
305
|
+
bizplaceId: $bizplaceId
|
|
306
|
+
cycleCountNo: $cycleCountNo
|
|
307
|
+
worksheetName: $worksheetName
|
|
308
|
+
) {
|
|
261
309
|
items {
|
|
262
|
-
|
|
263
|
-
|
|
264
|
-
|
|
265
|
-
|
|
266
|
-
sku
|
|
267
|
-
}
|
|
310
|
+
status
|
|
311
|
+
originLocationName
|
|
312
|
+
inspectedLocationName
|
|
313
|
+
sku
|
|
268
314
|
}
|
|
269
315
|
}
|
|
270
316
|
}
|
|
@@ -273,19 +319,20 @@ class CheckInventoryPopup extends localize(i18next)(LitElement) {
|
|
|
273
319
|
})
|
|
274
320
|
|
|
275
321
|
if (!response.errors) {
|
|
276
|
-
const { items } = response.data.
|
|
322
|
+
const { items } = response.data.inventoryByCycleCount
|
|
277
323
|
this.data = {
|
|
278
324
|
records:
|
|
279
325
|
items && items.length
|
|
280
326
|
? items.map(item => ({
|
|
281
|
-
|
|
282
|
-
|
|
327
|
+
status: item.status,
|
|
328
|
+
locationName: item.inspectedLocationName || item.originLocationName,
|
|
329
|
+
productSku: item.sku
|
|
283
330
|
}))
|
|
284
331
|
: []
|
|
285
332
|
}
|
|
286
333
|
|
|
287
334
|
if (!items.length) {
|
|
288
|
-
this._showToast({ message: i18next.t('text.
|
|
335
|
+
this._showToast({ message: i18next.t('text.the_inventory_not_in_this_worksheet') })
|
|
289
336
|
}
|
|
290
337
|
} else {
|
|
291
338
|
throw new Error(response.errors)
|
|
@@ -222,6 +222,12 @@ class CycleCountReport extends connect(store)(localize(i18next)(PageView)) {
|
|
|
222
222
|
header: i18next.t('field.product'),
|
|
223
223
|
width: 350
|
|
224
224
|
},
|
|
225
|
+
{
|
|
226
|
+
type: 'string',
|
|
227
|
+
name: 'description',
|
|
228
|
+
header: i18next.t('field.description'),
|
|
229
|
+
width: 100
|
|
230
|
+
},
|
|
225
231
|
{
|
|
226
232
|
type: 'string',
|
|
227
233
|
name: 'brand',
|
|
@@ -262,6 +268,12 @@ class CycleCountReport extends connect(store)(localize(i18next)(PageView)) {
|
|
|
262
268
|
},
|
|
263
269
|
hidden: this._enableCartonLabel
|
|
264
270
|
},
|
|
271
|
+
{
|
|
272
|
+
type: 'string',
|
|
273
|
+
name: 'uom',
|
|
274
|
+
header: i18next.t('field.uom'),
|
|
275
|
+
width: 80
|
|
276
|
+
},
|
|
265
277
|
{
|
|
266
278
|
type: 'integer',
|
|
267
279
|
name: 'originQty',
|
|
@@ -278,7 +290,7 @@ class CycleCountReport extends connect(store)(localize(i18next)(PageView)) {
|
|
|
278
290
|
type: 'string',
|
|
279
291
|
name: 'countVariance',
|
|
280
292
|
header: i18next.t('field.count_variance'),
|
|
281
|
-
width:
|
|
293
|
+
width: 120
|
|
282
294
|
},
|
|
283
295
|
{
|
|
284
296
|
type: 'string',
|
|
@@ -319,6 +331,12 @@ class CycleCountReport extends connect(store)(localize(i18next)(PageView)) {
|
|
|
319
331
|
inspectedUomValue
|
|
320
332
|
originQty
|
|
321
333
|
inspectedQty
|
|
334
|
+
originLocation {
|
|
335
|
+
name
|
|
336
|
+
}
|
|
337
|
+
inspectedLocation {
|
|
338
|
+
name
|
|
339
|
+
}
|
|
322
340
|
}
|
|
323
341
|
inventory {
|
|
324
342
|
id
|
|
@@ -329,9 +347,11 @@ class CycleCountReport extends connect(store)(localize(i18next)(PageView)) {
|
|
|
329
347
|
sku
|
|
330
348
|
name
|
|
331
349
|
brand
|
|
350
|
+
description
|
|
332
351
|
}
|
|
333
352
|
productDetail {
|
|
334
353
|
packingType
|
|
354
|
+
uom
|
|
335
355
|
}
|
|
336
356
|
originLocationId
|
|
337
357
|
inspectedLocationId
|
|
@@ -373,8 +393,8 @@ class CycleCountReport extends connect(store)(localize(i18next)(PageView)) {
|
|
|
373
393
|
inventory,
|
|
374
394
|
inventoryCheck: { name: inventoryCheckName },
|
|
375
395
|
inventoryCheckItem,
|
|
376
|
-
product: { sku, name: productName, brand },
|
|
377
|
-
productDetail: { packingType }
|
|
396
|
+
product: { sku, name: productName, brand, description },
|
|
397
|
+
productDetail: { packingType, uom }
|
|
378
398
|
} = item
|
|
379
399
|
|
|
380
400
|
// Parsing countData from string to object & convert to int or replace with "-"
|
|
@@ -399,8 +419,18 @@ class CycleCountReport extends connect(store)(localize(i18next)(PageView)) {
|
|
|
399
419
|
|
|
400
420
|
// Calculate countStatus
|
|
401
421
|
let countStatus
|
|
402
|
-
const {
|
|
403
|
-
|
|
422
|
+
const {
|
|
423
|
+
inspectedBatchNo,
|
|
424
|
+
inspectedQty,
|
|
425
|
+
inspectedUomValue,
|
|
426
|
+
originBatchNo,
|
|
427
|
+
originQty,
|
|
428
|
+
originUomValue,
|
|
429
|
+
originLocation,
|
|
430
|
+
inspectedLocation
|
|
431
|
+
} = inventoryCheckItem
|
|
432
|
+
const originLocationName = originLocation.name
|
|
433
|
+
const inspectedLocationName = inspectedLocation.name
|
|
404
434
|
const { id: inventoryId, cartonId, palletId } = inventory
|
|
405
435
|
|
|
406
436
|
if (finalCount === originQty) {
|
|
@@ -425,11 +455,15 @@ class CycleCountReport extends connect(store)(localize(i18next)(PageView)) {
|
|
|
425
455
|
originQty,
|
|
426
456
|
inspectedQty,
|
|
427
457
|
originLocationId: item.originLocationId,
|
|
458
|
+
originLocationName,
|
|
428
459
|
inspectedLocationId: item.inspectedLocationId,
|
|
460
|
+
inspectedLocationName,
|
|
429
461
|
sku,
|
|
430
462
|
productName,
|
|
431
463
|
brand,
|
|
464
|
+
description,
|
|
432
465
|
packingType,
|
|
466
|
+
uom,
|
|
433
467
|
runningNo: idx + 1,
|
|
434
468
|
batchNoVariance: item.batchNoVariance,
|
|
435
469
|
locationVariance: item.locationVariance,
|
|
@@ -664,11 +698,16 @@ class CycleCountReport extends connect(store)(localize(i18next)(PageView)) {
|
|
|
664
698
|
{ header: i18next.t('field.lot_id'), key: 'palletId', width: 25, type: 'string' },
|
|
665
699
|
{ header: i18next.t('field.sku'), key: 'sku', width: 25, type: 'string' },
|
|
666
700
|
{ header: i18next.t('field.product'), key: 'productName', width: 60, type: 'string' },
|
|
667
|
-
{ header: i18next.t('field.
|
|
701
|
+
{ header: i18next.t('field.product_description'), key: 'description', width: 60, type: 'string' },
|
|
702
|
+
{ header: i18next.t('field.brand'), key: 'brand', width: 20, type: 'string' },
|
|
668
703
|
{ header: i18next.t('field.packing_type'), key: 'packingType', width: 20, type: 'string' },
|
|
669
|
-
{ header: i18next.t('field.
|
|
670
|
-
{ header: i18next.t('field.
|
|
671
|
-
{ header: i18next.t('field.
|
|
704
|
+
{ header: i18next.t('field.system_batch_no'), key: 'originBatchNo', width: 25, type: 'string' },
|
|
705
|
+
{ header: i18next.t('field.inspected_batch_no'), key: 'inspectedBatchNo', width: 25, type: 'string' },
|
|
706
|
+
{ header: i18next.t('field.system_location'), key: 'originLocationName', width: 25, type: 'string' },
|
|
707
|
+
{ header: i18next.t('field.inspected_location'), key: 'inspectedLocationName', width: 25, type: 'string' },
|
|
708
|
+
{ header: i18next.t('field.system_uom_value'), key: 'originUomValue', width: 25, type: 'string' },
|
|
709
|
+
{ header: i18next.t('field.inspected_uom_value'), key: 'inspectedUomValue', width: 25, type: 'string' },
|
|
710
|
+
{ header: i18next.t('field.uom'), key: 'uom', width: 25, type: 'string' },
|
|
672
711
|
{ header: i18next.t('field.system_qty'), key: 'originQty', width: 20, type: 'string' },
|
|
673
712
|
{ header: i18next.t('field.final_count'), key: 'finalCount', width: 20, type: 'string' },
|
|
674
713
|
{ header: i18next.t('field.count_variance'), key: 'countVariance', width: 20, type: 'string' },
|
|
@@ -142,7 +142,7 @@ class CycleCountReview extends localize(i18next)(PageView) {
|
|
|
142
142
|
`
|
|
143
143
|
)}
|
|
144
144
|
</select>
|
|
145
|
-
<label>${i18next.t('label.
|
|
145
|
+
<label>${i18next.t('label.worksheet_no')}</label>
|
|
146
146
|
<input name="checkCount" readonly />
|
|
147
147
|
</fieldset>
|
|
148
148
|
</form>
|
|
@@ -117,7 +117,7 @@ class CycleCountWorksheetList extends localize(i18next)(PageView) {
|
|
|
117
117
|
},
|
|
118
118
|
{
|
|
119
119
|
name: 'status',
|
|
120
|
-
label: i18next.t('field.
|
|
120
|
+
label: i18next.t('field.worksheet_status'),
|
|
121
121
|
type: 'select',
|
|
122
122
|
options: [{ value: '' }, ..._worksheetStatus],
|
|
123
123
|
props: { searchOper: 'eq' }
|
|
@@ -181,11 +181,11 @@ class CycleCountWorksheetList extends localize(i18next)(PageView) {
|
|
|
181
181
|
{
|
|
182
182
|
type: 'string',
|
|
183
183
|
name: 'checkCount',
|
|
184
|
-
header: i18next.t('field.
|
|
184
|
+
header: i18next.t('field.worksheet_no'),
|
|
185
185
|
sortable: true,
|
|
186
186
|
width: 170,
|
|
187
187
|
imex: {
|
|
188
|
-
header: i18next.t('field.
|
|
188
|
+
header: i18next.t('field.worksheet_no'),
|
|
189
189
|
key: 'checkCount',
|
|
190
190
|
width: 50,
|
|
191
191
|
type: 'string'
|
|
@@ -234,11 +234,11 @@ class CycleCountWorksheetList extends localize(i18next)(PageView) {
|
|
|
234
234
|
{
|
|
235
235
|
type: 'string',
|
|
236
236
|
name: 'status',
|
|
237
|
-
header: i18next.t('field.
|
|
237
|
+
header: i18next.t('field.worksheet_status'),
|
|
238
238
|
sortable: true,
|
|
239
239
|
width: 120,
|
|
240
240
|
imex: {
|
|
241
|
-
header: i18next.t('field.
|
|
241
|
+
header: i18next.t('field.worksheet_status'),
|
|
242
242
|
key: 'status',
|
|
243
243
|
width: 20,
|
|
244
244
|
type: 'string'
|
|
@@ -299,7 +299,7 @@ class CycleCountWorksheetList extends localize(i18next)(PageView) {
|
|
|
299
299
|
return this.searchForm.shadowRoot.querySelector('input[name=bizplace]')
|
|
300
300
|
}
|
|
301
301
|
|
|
302
|
-
async fetchHandler({ page, limit, sorters = [] }) {
|
|
302
|
+
async fetchHandler({ page, limit, sorters = [{ name: 'updatedAt', desc: true }] }) {
|
|
303
303
|
const filters = await this.searchForm.getQueryFilters()
|
|
304
304
|
filters.push({
|
|
305
305
|
name: 'type',
|
|
@@ -24,6 +24,10 @@ class InspectingProduct extends connect(store)(localize(i18next)(PageView)) {
|
|
|
24
24
|
static get properties() {
|
|
25
25
|
return {
|
|
26
26
|
cycleCountNo: String,
|
|
27
|
+
locationName: String,
|
|
28
|
+
cartonId: String,
|
|
29
|
+
palletId: String,
|
|
30
|
+
inventoryCheckItemStatus: String,
|
|
27
31
|
countNo: Number,
|
|
28
32
|
isReleasing: Boolean,
|
|
29
33
|
_hideCCColumnSetting: Boolean,
|
|
@@ -33,7 +37,8 @@ class InspectingProduct extends connect(store)(localize(i18next)(PageView)) {
|
|
|
33
37
|
_editedCard: Object,
|
|
34
38
|
_pageSettings: Object,
|
|
35
39
|
_enableCartonLabel: Boolean,
|
|
36
|
-
bizplaceId: String
|
|
40
|
+
bizplaceId: String,
|
|
41
|
+
worksheetName: String
|
|
37
42
|
}
|
|
38
43
|
}
|
|
39
44
|
|
|
@@ -159,17 +164,20 @@ class InspectingProduct extends connect(store)(localize(i18next)(PageView)) {
|
|
|
159
164
|
@keypress="${async e => {
|
|
160
165
|
if (e.keyCode === 13) {
|
|
161
166
|
e.preventDefault()
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
if (
|
|
169
|
-
this.
|
|
167
|
+
if (this.locationNameInput?.value) {
|
|
168
|
+
this.clearView()
|
|
169
|
+
this.updateContext()
|
|
170
|
+
this.locationName = this.locationNameInput.value || null
|
|
171
|
+
this.cycleCountNo = this.cycleCountNoInput.value
|
|
172
|
+
this.fetchCycleCountWorksheet()
|
|
173
|
+
} else if (!e.target.value) {
|
|
174
|
+
this.updateContext({
|
|
175
|
+
locationName: ''
|
|
176
|
+
})
|
|
177
|
+
this.locationName = ''
|
|
178
|
+
this.cycleCountNo = this.cycleCountNoInput.value
|
|
179
|
+
this.fetchCycleCountWorksheet()
|
|
170
180
|
}
|
|
171
|
-
this.pageUpdated()
|
|
172
|
-
this.updateContext()
|
|
173
181
|
}
|
|
174
182
|
}}"
|
|
175
183
|
></barcode-scanable-input>
|
|
@@ -185,17 +193,20 @@ class InspectingProduct extends connect(store)(localize(i18next)(PageView)) {
|
|
|
185
193
|
@keypress="${async e => {
|
|
186
194
|
if (e.keyCode === 13) {
|
|
187
195
|
e.preventDefault()
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
196
|
+
if (this.cartonIdInput?.value) {
|
|
197
|
+
this.clearView()
|
|
198
|
+
this.updateContext()
|
|
199
|
+
this.cartonId = this.cartonIdInput.value || null
|
|
200
|
+
this.cycleCountNo = this.cycleCountNoInput?.value
|
|
201
|
+
this.fetchCycleCountWorksheet()
|
|
202
|
+
} else if (!e.target.value) {
|
|
203
|
+
this.updateContext({
|
|
204
|
+
cartonId: ''
|
|
205
|
+
})
|
|
206
|
+
this.cartonId = ''
|
|
207
|
+
this.cycleCountNo = this.cycleCountNoInput.value
|
|
208
|
+
this.fetchCycleCountWorksheet()
|
|
192
209
|
}
|
|
193
|
-
const matchedItem = await this.fetchOrFilterItem(filters)
|
|
194
|
-
if (matchedItem) {
|
|
195
|
-
this.updateInventoryState(matchedItem)
|
|
196
|
-
}
|
|
197
|
-
this.pageUpdated()
|
|
198
|
-
this.updateContext()
|
|
199
210
|
}
|
|
200
211
|
}}"
|
|
201
212
|
></barcode-scanable-input>
|
|
@@ -209,22 +220,42 @@ class InspectingProduct extends connect(store)(localize(i18next)(PageView)) {
|
|
|
209
220
|
@keypress="${async e => {
|
|
210
221
|
if (e.keyCode === 13) {
|
|
211
222
|
e.preventDefault()
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
if (
|
|
219
|
-
this.
|
|
223
|
+
if (this.palletIdInput?.value) {
|
|
224
|
+
this.clearView()
|
|
225
|
+
this.updateContext()
|
|
226
|
+
this.palletId = this.palletIdInput.value || null
|
|
227
|
+
this.cycleCountNo = this.cycleCountNoInput.value
|
|
228
|
+
this.fetchCycleCountWorksheet()
|
|
229
|
+
} else if (!e.target.value) {
|
|
230
|
+
this.updateContext({
|
|
231
|
+
palletId: ''
|
|
232
|
+
})
|
|
233
|
+
this.palletId = ''
|
|
234
|
+
this.cycleCountNo = this.cycleCountNoInput.value
|
|
235
|
+
this.fetchCycleCountWorksheet()
|
|
220
236
|
}
|
|
221
|
-
this.pageUpdated()
|
|
222
|
-
this.updateContext()
|
|
223
237
|
}
|
|
224
238
|
}}"
|
|
225
239
|
></barcode-scanable-input>
|
|
226
240
|
`
|
|
227
241
|
}
|
|
242
|
+
<label style="color: #ffffff">${i18next.t('label.status')}</label>
|
|
243
|
+
<select
|
|
244
|
+
name="inventoryCheckItemStatus"
|
|
245
|
+
@change="${async e => {
|
|
246
|
+
this.inventoryCheckItemStatus = e.target.value
|
|
247
|
+
this.updateContext({ inventoryCheckItemStatus: e.target.value })
|
|
248
|
+
await this.fetchCycleCountWorksheet()
|
|
249
|
+
}}"
|
|
250
|
+
>
|
|
251
|
+
<option value="" ?selected="${this.inventoryCheckItemStatus === ''}">Please select a status</option>
|
|
252
|
+
<option value="INSPECTED" ?selected="${this.inventoryCheckItemStatus === 'INSPECTED'}">Inspected</option>
|
|
253
|
+
<option value="RELOCATED" ?selected="${this.inventoryCheckItemStatus === 'RELOCATED'}">Relocated</option>
|
|
254
|
+
<option value="ADDED" ?selected="${this.inventoryCheckItemStatus === 'ADDED'}">Added</option>
|
|
255
|
+
<option value="INSPECTING" ?selected="${this.inventoryCheckItemStatus === 'INSPECTING'}">Inspecting</option>
|
|
256
|
+
<option value="MISSING" ?selected="${this.inventoryCheckItemStatus === 'MISSING'}">Missing</option>
|
|
257
|
+
<option value="NOT_TALLY" ?selected="${this.inventoryCheckItemStatus === 'NOT_TALLY'}">Not Tally</option>
|
|
258
|
+
</select>
|
|
228
259
|
</form>
|
|
229
260
|
</div>
|
|
230
261
|
|
|
@@ -285,6 +316,10 @@ class InspectingProduct extends connect(store)(localize(i18next)(PageView)) {
|
|
|
285
316
|
<br />
|
|
286
317
|
<label class="input-font">${this._currentCard.inventoryCheckItemStatus}</label>
|
|
287
318
|
<br />
|
|
319
|
+
<label>${i18next.t('label.uom')}</label>
|
|
320
|
+
<br />
|
|
321
|
+
<label class="input-font">${this._currentCard.uom}</label>
|
|
322
|
+
<br />
|
|
288
323
|
${
|
|
289
324
|
this._currentCard.inventoryCheckItemStatus == 'RELOCATED' ||
|
|
290
325
|
this._currentCard.inventoryCheckItemStatus == 'ADDED'
|
|
@@ -300,7 +335,7 @@ class InspectingProduct extends connect(store)(localize(i18next)(PageView)) {
|
|
|
300
335
|
</label>
|
|
301
336
|
<br />
|
|
302
337
|
<span class="input-font" ?hidden=${this._editMode.inspectedBatchNo}>${
|
|
303
|
-
this._currentCard.inspectedBatchNo
|
|
338
|
+
this._currentCard.inspectedBatchNo || this._currentCard.originBatchNo
|
|
304
339
|
}
|
|
305
340
|
<mwc-icon-button
|
|
306
341
|
icon="edit"
|
|
@@ -311,13 +346,16 @@ class InspectingProduct extends connect(store)(localize(i18next)(PageView)) {
|
|
|
311
346
|
<span ?hidden=${!this._editMode.inspectedBatchNo}>
|
|
312
347
|
<input
|
|
313
348
|
type="text"
|
|
314
|
-
.value=${this._editedCard.inspectedBatchNo}
|
|
349
|
+
.value=${this._editedCard.inspectedBatchNo || this._currentCard.originBatchNo}
|
|
315
350
|
@input=${e => this._handleEditInput('inspectedBatchNo', e.target.value)}
|
|
316
351
|
/>
|
|
317
352
|
<mwc-icon-button icon="save" @click=${() => this._saveEdit('inspectedBatchNo')}></mwc-icon-button>
|
|
318
353
|
<mwc-icon-button
|
|
319
354
|
icon="cancel"
|
|
320
|
-
@click=${() =>
|
|
355
|
+
@click=${() => {
|
|
356
|
+
this._editedCard.inspectedBatchNo = this._currentCard.originBatchNo
|
|
357
|
+
this._disableEditMode('inspectedBatchNo')
|
|
358
|
+
}}
|
|
321
359
|
></mwc-icon-button>
|
|
322
360
|
</span>
|
|
323
361
|
<br />
|
|
@@ -347,7 +385,7 @@ class InspectingProduct extends connect(store)(localize(i18next)(PageView)) {
|
|
|
347
385
|
${
|
|
348
386
|
!this._enableCartonLabel
|
|
349
387
|
? html`
|
|
350
|
-
<label>${i18next.t('label.inspected_uom_value')}
|
|
388
|
+
<label>${i18next.t('label.inspected_uom_value')}</label>
|
|
351
389
|
<br />
|
|
352
390
|
<span class="input-font" ?hidden=${this._editMode.inspectedUomValue}>
|
|
353
391
|
${this._currentCard.inspectedUomValue}
|
|
@@ -449,6 +487,10 @@ class InspectingProduct extends connect(store)(localize(i18next)(PageView)) {
|
|
|
449
487
|
return this.renderRoot.querySelector('barcode-scanable-input[name=palletId]')?.renderRoot.querySelector('input')
|
|
450
488
|
}
|
|
451
489
|
|
|
490
|
+
get palletIdInput() {
|
|
491
|
+
return this.renderRoot.querySelector('barcode-scanable-input[name=palletId]')?.renderRoot.querySelector('input')
|
|
492
|
+
}
|
|
493
|
+
|
|
452
494
|
get inspectedBatchNoInput() {
|
|
453
495
|
return this.renderRoot.querySelector('input[name=inspectedBatchNo]')
|
|
454
496
|
}
|
|
@@ -527,12 +569,17 @@ class InspectingProduct extends connect(store)(localize(i18next)(PageView)) {
|
|
|
527
569
|
|
|
528
570
|
const response = await client.query({
|
|
529
571
|
query: gql`
|
|
530
|
-
query ${worksheetQuery}($inventoryCheckNo: String!, $locationSortingRules: [Sorting]) {
|
|
572
|
+
query ${worksheetQuery}($inventoryCheckNo: String!, $locationSortingRules: [Sorting], $locationName: String, $cartonId: String, $palletId: String, $inventoryCheckItemStatus: String) {
|
|
531
573
|
${worksheetQuery}(
|
|
532
574
|
inventoryCheckNo: $inventoryCheckNo
|
|
533
575
|
locationSortingRules: $locationSortingRules
|
|
576
|
+
locationName: $locationName
|
|
577
|
+
cartonId: $cartonId
|
|
578
|
+
palletId: $palletId
|
|
579
|
+
inventoryCheckItemStatus: $inventoryCheckItemStatus
|
|
534
580
|
) {
|
|
535
581
|
worksheetInfo {
|
|
582
|
+
name
|
|
536
583
|
status
|
|
537
584
|
startedAt
|
|
538
585
|
bizplace {
|
|
@@ -586,6 +633,7 @@ class InspectingProduct extends connect(store)(localize(i18next)(PageView)) {
|
|
|
586
633
|
row
|
|
587
634
|
}
|
|
588
635
|
relatedInvCheckItem {
|
|
636
|
+
originBatchNo
|
|
589
637
|
inventory {
|
|
590
638
|
id
|
|
591
639
|
lockedQty
|
|
@@ -599,7 +647,11 @@ class InspectingProduct extends connect(store)(localize(i18next)(PageView)) {
|
|
|
599
647
|
`,
|
|
600
648
|
variables: {
|
|
601
649
|
inventoryCheckNo: this.cycleCountNo,
|
|
602
|
-
locationSortingRules: this.locationSortingRules
|
|
650
|
+
locationSortingRules: this.locationSortingRules,
|
|
651
|
+
locationName: this.locationName,
|
|
652
|
+
cartonId: this.cartonId,
|
|
653
|
+
palletId: this.palletId,
|
|
654
|
+
inventoryCheckItemStatus: this.inventoryCheckItemStatus
|
|
603
655
|
}
|
|
604
656
|
})
|
|
605
657
|
|
|
@@ -607,6 +659,7 @@ class InspectingProduct extends connect(store)(localize(i18next)(PageView)) {
|
|
|
607
659
|
const worksheetData = response.data[worksheetQuery]
|
|
608
660
|
const { worksheetInfo, worksheetDetailInfos } = worksheetData
|
|
609
661
|
const partnerDomainId = worksheetInfo.partnerDomainId
|
|
662
|
+
this.worksheetName = worksheetInfo.name
|
|
610
663
|
this.bizplaceName = worksheetInfo.bizplace.name
|
|
611
664
|
this.bizplaceId = worksheetInfo.bizplace.id
|
|
612
665
|
this.worksheetStatus = worksheetInfo.status
|
|
@@ -704,7 +757,8 @@ class InspectingProduct extends connect(store)(localize(i18next)(PageView)) {
|
|
|
704
757
|
locationId: location?.id,
|
|
705
758
|
locationName: location?.name || '',
|
|
706
759
|
wsdStatus: status,
|
|
707
|
-
lockedQty: relatedInvCheckItem?.inventory?.lockedQty || 0
|
|
760
|
+
lockedQty: relatedInvCheckItem?.inventory?.lockedQty || 0,
|
|
761
|
+
originBatchNo: relatedInvCheckItem?.originBatchNo || 0
|
|
708
762
|
}
|
|
709
763
|
}
|
|
710
764
|
|
|
@@ -734,9 +788,14 @@ class InspectingProduct extends connect(store)(localize(i18next)(PageView)) {
|
|
|
734
788
|
try {
|
|
735
789
|
await this.checkInputFormValidity()
|
|
736
790
|
|
|
791
|
+
let currentCard = { ...this._currentCard }
|
|
792
|
+
|
|
793
|
+
if (!currentCard.inspectedBatchNo) {
|
|
794
|
+
currentCard.inspectedBatchNo = currentCard.originBatchNo
|
|
795
|
+
}
|
|
796
|
+
|
|
737
797
|
const {
|
|
738
798
|
name,
|
|
739
|
-
inspectedBatchNo,
|
|
740
799
|
inspectedQty: rawInspectedQty,
|
|
741
800
|
inspectedUomValue: rawInspectedUomValue,
|
|
742
801
|
cartonId,
|
|
@@ -744,18 +803,17 @@ class InspectingProduct extends connect(store)(localize(i18next)(PageView)) {
|
|
|
744
803
|
productDetailId,
|
|
745
804
|
batchId,
|
|
746
805
|
locationId
|
|
747
|
-
} =
|
|
806
|
+
} = currentCard
|
|
748
807
|
|
|
749
808
|
const inspectedQty = Number(rawInspectedQty)
|
|
750
809
|
let inspectedUomValue = Number(rawInspectedUomValue)
|
|
751
810
|
|
|
752
|
-
// If the currentCard has both a cartonId and a palletId, set inspectedUomValue to be the same as inspectedQty
|
|
753
811
|
if (cartonId && palletId) {
|
|
754
812
|
inspectedUomValue = inspectedQty
|
|
755
813
|
}
|
|
756
814
|
|
|
757
815
|
const variables = {
|
|
758
|
-
inspectedBatchNo,
|
|
816
|
+
inspectedBatchNo: currentCard.inspectedBatchNo,
|
|
759
817
|
inspectedQty,
|
|
760
818
|
inspectedUomValue
|
|
761
819
|
}
|
|
@@ -832,9 +890,7 @@ class InspectingProduct extends connect(store)(localize(i18next)(PageView)) {
|
|
|
832
890
|
|
|
833
891
|
// Check if all cards have a status of 'NOT_TALLY' or 'DONE'
|
|
834
892
|
if (this.data.records.length > 0 && this.data.records) {
|
|
835
|
-
const inventoryCompleted = this.data.records.every(record =>
|
|
836
|
-
['NOT_TALLY', 'GROUP_NOT_TALLY', 'DONE'].includes(record.wsdStatus)
|
|
837
|
-
)
|
|
893
|
+
const inventoryCompleted = this.data.records.every(record => ['NOT_TALLY', 'DONE'].includes(record.wsdStatus))
|
|
838
894
|
|
|
839
895
|
if (inventoryCompleted) {
|
|
840
896
|
actions.push({
|
|
@@ -846,7 +902,7 @@ class InspectingProduct extends connect(store)(localize(i18next)(PageView)) {
|
|
|
846
902
|
|
|
847
903
|
if (this.worksheetStatus == 'EXECUTING') {
|
|
848
904
|
const status = this._currentCard.inventoryCheckItemStatus
|
|
849
|
-
if (['MISSING', 'RELOCATED', 'INSPECTED', 'NOT_TALLY'
|
|
905
|
+
if (['MISSING', 'RELOCATED', 'INSPECTED', 'NOT_TALLY'].includes(status)) {
|
|
850
906
|
actions.push({
|
|
851
907
|
title: i18next.t('button.undo'),
|
|
852
908
|
action: this.undoInventoryCheck.bind(this),
|
|
@@ -866,7 +922,7 @@ class InspectingProduct extends connect(store)(localize(i18next)(PageView)) {
|
|
|
866
922
|
})
|
|
867
923
|
}
|
|
868
924
|
|
|
869
|
-
if (!['RELOCATED', 'INSPECTED', 'NOT_TALLY', '
|
|
925
|
+
if (!['RELOCATED', 'INSPECTED', 'NOT_TALLY', 'ADDED', 'MISSING'].includes(status)) {
|
|
870
926
|
actions.push({
|
|
871
927
|
title: i18next.t('button.relocate'),
|
|
872
928
|
action: this.relocateInventory.bind(this),
|
|
@@ -929,6 +985,10 @@ class InspectingProduct extends connect(store)(localize(i18next)(PageView)) {
|
|
|
929
985
|
inspectedUomValue = Number(inspectedUomValue)
|
|
930
986
|
}
|
|
931
987
|
|
|
988
|
+
if (!inspectedBatchNo) {
|
|
989
|
+
inspectedBatchNo = this._currentCard.originBatchNo
|
|
990
|
+
}
|
|
991
|
+
|
|
932
992
|
if (!inspectedBatchNo) {
|
|
933
993
|
throw new Error(i18next.t('text.invalid_x', { state: { x: i18next.t('field.inspected_batch_no') } }))
|
|
934
994
|
}
|
|
@@ -1081,6 +1141,8 @@ class InspectingProduct extends connect(store)(localize(i18next)(PageView)) {
|
|
|
1081
1141
|
openPopup(
|
|
1082
1142
|
html`
|
|
1083
1143
|
<check-inventory-popup
|
|
1144
|
+
.worksheetName="${this.worksheetName}"
|
|
1145
|
+
.cycleCountNo="${this.cycleCountNo}"
|
|
1084
1146
|
.bizplaceId="${this.bizplaceId}"
|
|
1085
1147
|
.missingInventory="${this.missingInventoryData}"
|
|
1086
1148
|
.enableCartonLabel="${this._enableCartonLabel}"
|
|
@@ -1129,22 +1191,24 @@ class InspectingProduct extends connect(store)(localize(i18next)(PageView)) {
|
|
|
1129
1191
|
await sleep(1010)
|
|
1130
1192
|
await this.checkInputFormValidity()
|
|
1131
1193
|
|
|
1132
|
-
let
|
|
1133
|
-
inspectedQty = Number(inspectedQty)
|
|
1194
|
+
let currentCards = { ...this._currentCard }
|
|
1134
1195
|
|
|
1135
|
-
|
|
1136
|
-
|
|
1137
|
-
inspectedUomValue = inspectedQty
|
|
1138
|
-
} else {
|
|
1139
|
-
inspectedUomValue = Number(inspectedUomValue)
|
|
1196
|
+
if (!currentCards.inspectedBatchNo) {
|
|
1197
|
+
currentCards.inspectedBatchNo = currentCards.originBatchNo
|
|
1140
1198
|
}
|
|
1141
1199
|
|
|
1200
|
+
let { inspectedQty, inspectedUomValue, cartonId, palletId } = currentCards
|
|
1201
|
+
|
|
1202
|
+
// If the currentCard has both cartonId & palletId, set inspectedUomValue to be the same as inspectedQty
|
|
1203
|
+
inspectedQty = Number(inspectedQty)
|
|
1204
|
+
inspectedUomValue = cartonId && palletId ? inspectedQty : Number(inspectedUomValue)
|
|
1205
|
+
|
|
1142
1206
|
openPopup(
|
|
1143
1207
|
html`
|
|
1144
1208
|
<relocate-inventory-popup
|
|
1145
1209
|
.bizplaceName="${this.bizplaceName}"
|
|
1146
1210
|
.cycleCountNo="${this.cycleCountNo}"
|
|
1147
|
-
.currentCard="${
|
|
1211
|
+
.currentCard="${currentCards}"
|
|
1148
1212
|
.enableCartonLabel="${this._enableCartonLabel}"
|
|
1149
1213
|
@relocate="${async e => {
|
|
1150
1214
|
history.back()
|
|
@@ -1232,50 +1296,13 @@ class InspectingProduct extends connect(store)(localize(i18next)(PageView)) {
|
|
|
1232
1296
|
}
|
|
1233
1297
|
}
|
|
1234
1298
|
|
|
1235
|
-
async fetchOrFilterItem(filters) {
|
|
1236
|
-
let matchedItem = null
|
|
1237
|
-
|
|
1238
|
-
matchedItem = this.data.records.find(item => {
|
|
1239
|
-
let match = true
|
|
1240
|
-
if (filters.locationName) {
|
|
1241
|
-
match = match && item.location?.name === filters.locationName
|
|
1242
|
-
}
|
|
1243
|
-
if (filters.cartonId) {
|
|
1244
|
-
match = match && item.cartonId === filters.cartonId
|
|
1245
|
-
}
|
|
1246
|
-
if (filters.palletId) {
|
|
1247
|
-
match = match && item.palletId === filters.palletId
|
|
1248
|
-
}
|
|
1249
|
-
return match
|
|
1250
|
-
})
|
|
1251
|
-
|
|
1252
|
-
return matchedItem
|
|
1253
|
-
}
|
|
1254
|
-
|
|
1255
|
-
updateInventoryState(matchedItem) {
|
|
1256
|
-
// Find the index of the matched item in this.data.records
|
|
1257
|
-
let index = this.data.records.findIndex(item => item.worksheetDetailName === matchedItem.worksheetDetailName)
|
|
1258
|
-
|
|
1259
|
-
if (index > -1) {
|
|
1260
|
-
// Update _arrayIndex to the index of the matched item
|
|
1261
|
-
this._arrayIndex = index
|
|
1262
|
-
|
|
1263
|
-
// Update _currentCard to the matched item
|
|
1264
|
-
this._currentCard = this.data.records[this._arrayIndex]
|
|
1265
|
-
}
|
|
1266
|
-
this.requestUpdate()
|
|
1267
|
-
this.pageUpdated()
|
|
1268
|
-
}
|
|
1269
|
-
|
|
1270
1299
|
updateCurrentCard() {
|
|
1271
1300
|
this._currentCard = this.data.records[this._arrayIndex] ? { ...this.data.records[this._arrayIndex] } : {}
|
|
1272
1301
|
|
|
1273
1302
|
const currentStatus = this._currentCard.inventoryCheckItemStatus
|
|
1274
1303
|
|
|
1275
1304
|
// Check the status and mark the currentCard as "checked" if it matches any status
|
|
1276
|
-
this._currentCard.checked = ['INSPECTED', 'RELOCATED', 'ADDED', 'NOT_TALLY'
|
|
1277
|
-
currentStatus
|
|
1278
|
-
)
|
|
1305
|
+
this._currentCard.checked = ['INSPECTED', 'RELOCATED', 'ADDED', 'NOT_TALLY'].includes(currentStatus)
|
|
1279
1306
|
}
|
|
1280
1307
|
|
|
1281
1308
|
resetInput() {
|
|
@@ -1288,9 +1315,7 @@ class InspectingProduct extends connect(store)(localize(i18next)(PageView)) {
|
|
|
1288
1315
|
|
|
1289
1316
|
calculateCheckedInventoryCount() {
|
|
1290
1317
|
this._currentCard.checkedInventoryCount = this.data.records.reduce((count, record) => {
|
|
1291
|
-
if (
|
|
1292
|
-
['INSPECTED', 'RELOCATED', 'ADDED', 'NOT_TALLY', 'GROUP_NOT_TALLY'].includes(record.relatedInvCheckItem.status)
|
|
1293
|
-
) {
|
|
1318
|
+
if (['INSPECTED', 'RELOCATED', 'ADDED', 'NOT_TALLY'].includes(record.relatedInvCheckItem.status)) {
|
|
1294
1319
|
return count + 1
|
|
1295
1320
|
}
|
|
1296
1321
|
return count
|
|
@@ -1300,6 +1325,10 @@ class InspectingProduct extends connect(store)(localize(i18next)(PageView)) {
|
|
|
1300
1325
|
clearView() {
|
|
1301
1326
|
this.data = { records: [] }
|
|
1302
1327
|
this.cycleCountNo = null
|
|
1328
|
+
this.locationName = null
|
|
1329
|
+
this.cartonId = null
|
|
1330
|
+
this.palletId = null
|
|
1331
|
+
this.inventoryCheckItemStatus = null
|
|
1303
1332
|
this._currentCard = {
|
|
1304
1333
|
checkedInventoryCount: 0
|
|
1305
1334
|
}
|
|
@@ -236,7 +236,7 @@ class InventoryCheckList extends localize(i18next)(PageView) {
|
|
|
236
236
|
return this.searchForm.shadowRoot.querySelector('input[name=bizplace]')
|
|
237
237
|
}
|
|
238
238
|
|
|
239
|
-
async fetchHandler({ page, limit, sorters = [] }) {
|
|
239
|
+
async fetchHandler({ page, limit, sorters = [{ name: 'createdAt', desc: true }] }) {
|
|
240
240
|
const filters = await this.searchForm.getQueryFilters()
|
|
241
241
|
|
|
242
242
|
const pagination = { page, limit }
|
|
@@ -191,11 +191,16 @@ class RelocateInventoryPopup extends localize(i18next)(LitElement) {
|
|
|
191
191
|
}
|
|
192
192
|
}
|
|
193
193
|
|
|
194
|
-
_validateInput() {
|
|
194
|
+
async _validateInput() {
|
|
195
195
|
const locationName = this.locationInput.value
|
|
196
196
|
if (!locationName) {
|
|
197
197
|
this.selectOnInput(this.locationInput)
|
|
198
198
|
throw new Error(i18next.t('text.invalid_x', { state: { x: i18next.t('label.location') } }))
|
|
199
|
+
} else {
|
|
200
|
+
const foundLocation = await this._fetchLocation(locationName)
|
|
201
|
+
if (!foundLocation) {
|
|
202
|
+
throw new Error(i18next.t('text.location_not_found'))
|
|
203
|
+
}
|
|
199
204
|
}
|
|
200
205
|
|
|
201
206
|
if (this.currentCard.locationName === this.locationInput.value) {
|
|
@@ -203,6 +208,31 @@ class RelocateInventoryPopup extends localize(i18next)(LitElement) {
|
|
|
203
208
|
}
|
|
204
209
|
}
|
|
205
210
|
|
|
211
|
+
async _fetchLocation(locationName) {
|
|
212
|
+
if (locationName) {
|
|
213
|
+
const response = await client.query({
|
|
214
|
+
query: gql`
|
|
215
|
+
query location($name: String!) {
|
|
216
|
+
location(name: $name) {
|
|
217
|
+
id
|
|
218
|
+
name
|
|
219
|
+
zone
|
|
220
|
+
row
|
|
221
|
+
column
|
|
222
|
+
shelf
|
|
223
|
+
type
|
|
224
|
+
}
|
|
225
|
+
}
|
|
226
|
+
`,
|
|
227
|
+
variables: { name: locationName }
|
|
228
|
+
})
|
|
229
|
+
|
|
230
|
+
if (!response.errors) {
|
|
231
|
+
return response.data.location
|
|
232
|
+
}
|
|
233
|
+
}
|
|
234
|
+
}
|
|
235
|
+
|
|
206
236
|
selectOnInput(input) {
|
|
207
237
|
setTimeout(() => input.select(), 100)
|
|
208
238
|
}
|
|
@@ -138,7 +138,7 @@ class WorksheetCycleCount extends localize(i18next)(PageView) {
|
|
|
138
138
|
)}
|
|
139
139
|
</select>
|
|
140
140
|
|
|
141
|
-
<label>${i18next.t('label.
|
|
141
|
+
<label>${i18next.t('label.worksheet_no')}</label>
|
|
142
142
|
<input name="checkCount" readonly />
|
|
143
143
|
</fieldset>
|
|
144
144
|
</form>
|
|
@@ -699,6 +699,7 @@ class SortingProduct extends connect(store)(localize(i18next)(PageView)) {
|
|
|
699
699
|
|
|
700
700
|
this._lastScannedProductId = productId
|
|
701
701
|
this._fetchItemList(this._selectedReleaseGood?.name)
|
|
702
|
+
this._clearField()
|
|
702
703
|
}
|
|
703
704
|
|
|
704
705
|
async _completeHandler() {
|
|
@@ -951,6 +952,10 @@ class SortingProduct extends connect(store)(localize(i18next)(PageView)) {
|
|
|
951
952
|
this.toteNo = ''
|
|
952
953
|
}
|
|
953
954
|
|
|
955
|
+
_clearField() {
|
|
956
|
+
if (this._enableProductScanning) this.productBarcodeInput.value = ''
|
|
957
|
+
}
|
|
958
|
+
|
|
954
959
|
_showToast({ type, message }) {
|
|
955
960
|
document.dispatchEvent(
|
|
956
961
|
new CustomEvent('notify', {
|
|
@@ -33,13 +33,17 @@ exports.cycleCountReport = {
|
|
|
33
33
|
p.sku as "product_sku",
|
|
34
34
|
p.name as "product_name",
|
|
35
35
|
p.brand as "product_brand",
|
|
36
|
-
|
|
36
|
+
p.description as "product_description",
|
|
37
|
+
pd.packing_type as "pd_packing_type",
|
|
38
|
+
pd.uom as "pd_uom",
|
|
37
39
|
ici.origin_batch_no as "origin_batch_no",
|
|
38
40
|
ici.inspected_batch_no as "inspected_batch_no",
|
|
39
|
-
ici.origin_location_id as "origin_location_id",
|
|
40
|
-
ici.inspected_location_id as "inspected_location_id",
|
|
41
41
|
ici.origin_uom_value as "origin_uom_value",
|
|
42
42
|
ici.inspected_uom_value as "inspected_uom_value",
|
|
43
|
+
ici.origin_location_id as "origin_location_id",
|
|
44
|
+
l.name as "origin_location_name",
|
|
45
|
+
ici.inspected_location_id as "inspected_location_id",
|
|
46
|
+
l2.name as "inspected_location_name",
|
|
43
47
|
COALESCE(ici_first_count.origin_qty, ici.origin_qty, 0) as "origin_qty",
|
|
44
48
|
COALESCE(ici.inspected_qty, 0) as "inspected_qty"
|
|
45
49
|
FROM
|
|
@@ -58,6 +62,10 @@ exports.cycleCountReport = {
|
|
|
58
62
|
worksheets w on w.inventory_check_id = ic.id
|
|
59
63
|
inner join
|
|
60
64
|
worksheet_details wd on wd.worksheet_id = w.id and wd.target_inventory_check_item_id = ici.id
|
|
65
|
+
left join
|
|
66
|
+
locations l on l.id = ici.origin_location_id
|
|
67
|
+
left join
|
|
68
|
+
locations l2 on l2.id = ici.inspected_location_id
|
|
61
69
|
inner join
|
|
62
70
|
bizplaces b on b.id = ic.bizplace_id
|
|
63
71
|
inner join
|
|
@@ -134,17 +142,17 @@ exports.cycleCountReport = {
|
|
|
134
142
|
row_to_json((SELECT cn FROM (SELECT ${jsonColumnNames}) cn))::varchar as "count_data",
|
|
135
143
|
CASE
|
|
136
144
|
WHEN f.count_no = latest_counts.latest_count_no
|
|
137
|
-
THEN (f.origin_batch_no <> f.inspected_batch_no)
|
|
145
|
+
THEN (COALESCE(f.origin_batch_no, '') <> COALESCE(f.inspected_batch_no, ''))
|
|
138
146
|
ELSE false
|
|
139
147
|
END AS "BatchNoVariance",
|
|
140
148
|
CASE
|
|
141
149
|
WHEN f.count_no = latest_counts.latest_count_no
|
|
142
|
-
THEN (f.origin_location_id <> f.inspected_location_id)
|
|
150
|
+
THEN (COALESCE(f.origin_location_id::text, '') <> COALESCE(f.inspected_location_id::text, ''))
|
|
143
151
|
ELSE false
|
|
144
152
|
END AS "LocationVariance",
|
|
145
153
|
CASE
|
|
146
154
|
WHEN f.count_no = latest_counts.latest_count_no
|
|
147
|
-
THEN (f.origin_uom_value <> f.inspected_uom_value)
|
|
155
|
+
THEN (COALESCE(f.origin_uom_value, 0) <> COALESCE(f.inspected_uom_value, 0))
|
|
148
156
|
ELSE false
|
|
149
157
|
END AS "UomValueVariance"
|
|
150
158
|
FROM temp_fixed_columns f
|
|
@@ -202,7 +210,13 @@ exports.cycleCountReport = {
|
|
|
202
210
|
originUomValue: itm.origin_uom_value,
|
|
203
211
|
inspectedUomValue: itm.inspected_uom_value,
|
|
204
212
|
originQty: itm.origin_qty,
|
|
205
|
-
inspectedQty: itm.inspected_qty
|
|
213
|
+
inspectedQty: itm.inspected_qty,
|
|
214
|
+
originLocation: {
|
|
215
|
+
name: itm.origin_location_name
|
|
216
|
+
},
|
|
217
|
+
inspectedLocation: {
|
|
218
|
+
name: itm.inspected_location_name
|
|
219
|
+
}
|
|
206
220
|
},
|
|
207
221
|
inventory: {
|
|
208
222
|
id: itm.inventory_id,
|
|
@@ -212,10 +226,12 @@ exports.cycleCountReport = {
|
|
|
212
226
|
product: {
|
|
213
227
|
sku: itm.product_sku,
|
|
214
228
|
name: itm.product_name,
|
|
215
|
-
brand: itm.product_brand
|
|
229
|
+
brand: itm.product_brand,
|
|
230
|
+
description: itm.product_description
|
|
216
231
|
},
|
|
217
232
|
productDetail: {
|
|
218
|
-
packingType: itm.pd_packing_type
|
|
233
|
+
packingType: itm.pd_packing_type,
|
|
234
|
+
uom: itm.pd_uom
|
|
219
235
|
},
|
|
220
236
|
originLocationId: itm.origin_location_id,
|
|
221
237
|
inspectedLocationId: itm.inspected_location_id,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"cycle-count-report.js","sourceRoot":"","sources":["../../../../server/graphql/resolvers/reports/cycle-count-report.ts"],"names":[],"mappings":";;;AAGA,2DAA2D;AAG9C,QAAA,gBAAgB,GAAG;IAC9B,KAAK,CAAC,gBAAgB,CAAC,CAAM,EAAE,EAAE,IAAI,EAAoB,EAAE,OAAY;QACrE,IAAI;YACF,MAAM,EAAE,MAAM,EAAE,EAAE,EAAE,GAA0C,OAAO,CAAC,KAAK,CAAA;YAE3E,MAAM,UAAU,GAAmB,MAAM,EAAE,CAAC,aAAa,CAAC,2BAAc,CAAC,CAAC,OAAO,CAAC;gBAChF,KAAK,EAAE,EAAE,MAAM,EAAE,IAAI,EAAE;gBACvB,SAAS,EAAE,CAAC,QAAQ,CAAC;aACtB,CAAC,CAAA;YAEF,MAAM,EAAE,CAAC,KAAK,CAAC,0CAA0C,CAAC,CAAA;YAE1D,8CAA8C;YAC9C,MAAM,EAAE,CAAC,KAAK,CACZ
|
|
1
|
+
{"version":3,"file":"cycle-count-report.js","sourceRoot":"","sources":["../../../../server/graphql/resolvers/reports/cycle-count-report.ts"],"names":[],"mappings":"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"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@things-factory/operato-wms",
|
|
3
|
-
"version": "4.3.
|
|
3
|
+
"version": "4.3.376",
|
|
4
4
|
"main": "dist-server/index.js",
|
|
5
5
|
"browser": "client/index.js",
|
|
6
6
|
"things-factory": true,
|
|
@@ -91,7 +91,7 @@
|
|
|
91
91
|
"@things-factory/print-ui": "^4.3.281",
|
|
92
92
|
"@things-factory/product-base": "^4.3.357",
|
|
93
93
|
"@things-factory/resource-ui": "^4.3.281",
|
|
94
|
-
"@things-factory/sales-ui": "^4.3.
|
|
94
|
+
"@things-factory/sales-ui": "^4.3.376",
|
|
95
95
|
"@things-factory/scene-data-transform": "^4.3.281",
|
|
96
96
|
"@things-factory/scene-excel": "^4.3.281",
|
|
97
97
|
"@things-factory/scene-firebase": "^4.3.281",
|
|
@@ -107,8 +107,8 @@
|
|
|
107
107
|
"@things-factory/system-ui": "^4.3.281",
|
|
108
108
|
"@things-factory/transport-base": "^4.3.369",
|
|
109
109
|
"@things-factory/tutorial-ui": "^4.3.281",
|
|
110
|
-
"@things-factory/warehouse-base": "^4.3.
|
|
111
|
-
"@things-factory/worksheet-base": "^4.3.
|
|
110
|
+
"@things-factory/warehouse-base": "^4.3.376",
|
|
111
|
+
"@things-factory/worksheet-base": "^4.3.376"
|
|
112
112
|
},
|
|
113
113
|
"devDependencies": {
|
|
114
114
|
"@things-factory/builder": "^4.3.281",
|
|
@@ -117,5 +117,5 @@
|
|
|
117
117
|
"cypress-localstorage-commands": "^1.6.1",
|
|
118
118
|
"eslint-plugin-cypress": "^2.12.1"
|
|
119
119
|
},
|
|
120
|
-
"gitHead": "
|
|
120
|
+
"gitHead": "76dc5460030427d7b50311eb17176570ce026f66"
|
|
121
121
|
}
|
|
@@ -39,13 +39,17 @@ export const cycleCountReport = {
|
|
|
39
39
|
p.sku as "product_sku",
|
|
40
40
|
p.name as "product_name",
|
|
41
41
|
p.brand as "product_brand",
|
|
42
|
-
|
|
42
|
+
p.description as "product_description",
|
|
43
|
+
pd.packing_type as "pd_packing_type",
|
|
44
|
+
pd.uom as "pd_uom",
|
|
43
45
|
ici.origin_batch_no as "origin_batch_no",
|
|
44
46
|
ici.inspected_batch_no as "inspected_batch_no",
|
|
45
|
-
ici.origin_location_id as "origin_location_id",
|
|
46
|
-
ici.inspected_location_id as "inspected_location_id",
|
|
47
47
|
ici.origin_uom_value as "origin_uom_value",
|
|
48
48
|
ici.inspected_uom_value as "inspected_uom_value",
|
|
49
|
+
ici.origin_location_id as "origin_location_id",
|
|
50
|
+
l.name as "origin_location_name",
|
|
51
|
+
ici.inspected_location_id as "inspected_location_id",
|
|
52
|
+
l2.name as "inspected_location_name",
|
|
49
53
|
COALESCE(ici_first_count.origin_qty, ici.origin_qty, 0) as "origin_qty",
|
|
50
54
|
COALESCE(ici.inspected_qty, 0) as "inspected_qty"
|
|
51
55
|
FROM
|
|
@@ -64,6 +68,10 @@ export const cycleCountReport = {
|
|
|
64
68
|
worksheets w on w.inventory_check_id = ic.id
|
|
65
69
|
inner join
|
|
66
70
|
worksheet_details wd on wd.worksheet_id = w.id and wd.target_inventory_check_item_id = ici.id
|
|
71
|
+
left join
|
|
72
|
+
locations l on l.id = ici.origin_location_id
|
|
73
|
+
left join
|
|
74
|
+
locations l2 on l2.id = ici.inspected_location_id
|
|
67
75
|
inner join
|
|
68
76
|
bizplaces b on b.id = ic.bizplace_id
|
|
69
77
|
inner join
|
|
@@ -155,17 +163,17 @@ export const cycleCountReport = {
|
|
|
155
163
|
row_to_json((SELECT cn FROM (SELECT ${jsonColumnNames}) cn))::varchar as "count_data",
|
|
156
164
|
CASE
|
|
157
165
|
WHEN f.count_no = latest_counts.latest_count_no
|
|
158
|
-
THEN (f.origin_batch_no <> f.inspected_batch_no)
|
|
166
|
+
THEN (COALESCE(f.origin_batch_no, '') <> COALESCE(f.inspected_batch_no, ''))
|
|
159
167
|
ELSE false
|
|
160
168
|
END AS "BatchNoVariance",
|
|
161
169
|
CASE
|
|
162
170
|
WHEN f.count_no = latest_counts.latest_count_no
|
|
163
|
-
THEN (f.origin_location_id <> f.inspected_location_id)
|
|
171
|
+
THEN (COALESCE(f.origin_location_id::text, '') <> COALESCE(f.inspected_location_id::text, ''))
|
|
164
172
|
ELSE false
|
|
165
173
|
END AS "LocationVariance",
|
|
166
174
|
CASE
|
|
167
175
|
WHEN f.count_no = latest_counts.latest_count_no
|
|
168
|
-
THEN (f.origin_uom_value <> f.inspected_uom_value)
|
|
176
|
+
THEN (COALESCE(f.origin_uom_value, 0) <> COALESCE(f.inspected_uom_value, 0))
|
|
169
177
|
ELSE false
|
|
170
178
|
END AS "UomValueVariance"
|
|
171
179
|
FROM temp_fixed_columns f
|
|
@@ -228,7 +236,13 @@ export const cycleCountReport = {
|
|
|
228
236
|
originUomValue: itm.origin_uom_value,
|
|
229
237
|
inspectedUomValue: itm.inspected_uom_value,
|
|
230
238
|
originQty: itm.origin_qty,
|
|
231
|
-
inspectedQty: itm.inspected_qty
|
|
239
|
+
inspectedQty: itm.inspected_qty,
|
|
240
|
+
originLocation: {
|
|
241
|
+
name: itm.origin_location_name
|
|
242
|
+
},
|
|
243
|
+
inspectedLocation: {
|
|
244
|
+
name: itm.inspected_location_name
|
|
245
|
+
}
|
|
232
246
|
},
|
|
233
247
|
inventory: {
|
|
234
248
|
id: itm.inventory_id,
|
|
@@ -238,10 +252,12 @@ export const cycleCountReport = {
|
|
|
238
252
|
product: {
|
|
239
253
|
sku: itm.product_sku,
|
|
240
254
|
name: itm.product_name,
|
|
241
|
-
brand: itm.product_brand
|
|
255
|
+
brand: itm.product_brand,
|
|
256
|
+
description: itm.product_description
|
|
242
257
|
},
|
|
243
258
|
productDetail: {
|
|
244
|
-
packingType: itm.pd_packing_type
|
|
259
|
+
packingType: itm.pd_packing_type,
|
|
260
|
+
uom: itm.pd_uom
|
|
245
261
|
},
|
|
246
262
|
originLocationId: itm.origin_location_id,
|
|
247
263
|
inspectedLocationId: itm.inspected_location_id,
|
package/translations/en.json
CHANGED
|
@@ -182,6 +182,7 @@
|
|
|
182
182
|
"field.batch_no_ref": "batch no ref",
|
|
183
183
|
"field.batch_no": "batch no.",
|
|
184
184
|
"field.*_batch_no": "*batch no.",
|
|
185
|
+
"field.batch_no_variance": "batch no variance",
|
|
185
186
|
"field.before": "before",
|
|
186
187
|
"field.billing_address": "billing address",
|
|
187
188
|
"field.billing_city": "billing city",
|
|
@@ -720,6 +721,7 @@
|
|
|
720
721
|
"field.weight": "weight",
|
|
721
722
|
"field.width": "width",
|
|
722
723
|
"field.worksheet_no": "worksheet no",
|
|
724
|
+
"field.worksheet_status": "worksheet status",
|
|
723
725
|
"field.your_name": "your name",
|
|
724
726
|
"field.zone": "zone",
|
|
725
727
|
"filed.role": "role",
|
|
@@ -1655,6 +1657,7 @@
|
|
|
1655
1657
|
"text.the_inventory_has_been_relocated": "the inventory has been relocated",
|
|
1656
1658
|
"text.the_inventory_has_been_successfully_checked": "the inventory has been successfully checked",
|
|
1657
1659
|
"text.the_inventory_has_been_successfully_reverted": "the inventory has been successfully reverted",
|
|
1660
|
+
"text.the_inventory_not_in_this_worksheet": "the inventory not in this worksheet",
|
|
1658
1661
|
"text.the_entered_quantity_exceeds_the_transfer_qty": "the entered quantity exceeds the Transfer Qty. please adjust the quantity and try again.",
|
|
1659
1662
|
"text.there_are_damaged_inventories": "there are damaged inventories",
|
|
1660
1663
|
"text.there_is_additional_operation": "there is additional operation",
|
package/translations/ko.json
CHANGED
|
@@ -705,6 +705,7 @@
|
|
|
705
705
|
"field.weight": "weight",
|
|
706
706
|
"field.width": "가로",
|
|
707
707
|
"field.worksheet_no": "작업지시서 번호",
|
|
708
|
+
"field.worksheet_status": "[ko] worksheet status",
|
|
708
709
|
"field.your_name": "이름",
|
|
709
710
|
"field.zone_end": "[ko] zone end",
|
|
710
711
|
"field.zone_start": "[ko] zone start",
|
|
@@ -1671,6 +1672,7 @@
|
|
|
1671
1672
|
"text.the_inventory_has_been_relocated": "[ko] the inventory has been relocated",
|
|
1672
1673
|
"text.the_inventory_has_been_successfully_checked": "[ko] the inventory has been successfully checked",
|
|
1673
1674
|
"text.the_inventory_has_been_successfully_reverted": "[ko] the inventory has been successfully reverted",
|
|
1675
|
+
"text.the_inventory_not_in_this_worksheet": "[ko] the inventory not in this worksheet",
|
|
1674
1676
|
"text.text.target_does_not_selected": "대상이 선택되지 않았습니다",
|
|
1675
1677
|
"text.the_entered_quantity_exceeds_the_transfer_qty": "[ko] the entered quantity exceeds the Transfer Qty. please adjust the quantity and try again.",
|
|
1676
1678
|
"text.there_are_remain_products": "there are remain products",
|
package/translations/ms.json
CHANGED
|
@@ -686,6 +686,7 @@
|
|
|
686
686
|
"field.weight": "berat",
|
|
687
687
|
"field.width": "[ms]width",
|
|
688
688
|
"field.worksheet_no": "no. lembaran kerja",
|
|
689
|
+
"field.worksheet_status": "[ms] worksheet status",
|
|
689
690
|
"field.your_name": "nama anda",
|
|
690
691
|
"field.zone_end": "[ms] zone end",
|
|
691
692
|
"field.zone_start": "[ms] zone start",
|
|
@@ -1600,6 +1601,7 @@
|
|
|
1600
1601
|
"text.the_inventory_has_been_relocated": "[ms] the inventory has been relocated",
|
|
1601
1602
|
"text.the_inventory_has_been_successfully_checked": "[ms] the inventory has been successfully checked",
|
|
1602
1603
|
"text.the_inventory_has_been_successfully_reverted": "[ms] the inventory has been successfully reverted",
|
|
1604
|
+
"text.the_inventory_not_in_this_worksheet": "[ms] the inventory not in this worksheet",
|
|
1603
1605
|
"text.text.target_does_not_selected": "tiada sasaran produk dipilih",
|
|
1604
1606
|
"text.the_entered_quantity_exceeds_the_transfer_qty": "[ms] the entered quantity exceeds the Transfer Qty. please adjust the quantity and try again.",
|
|
1605
1607
|
"text.there_is_additional_operation": "terdapat operasi tambahan",
|
package/translations/zh.json
CHANGED
|
@@ -665,6 +665,7 @@
|
|
|
665
665
|
"field.weight_unit": "[zh]weight unit",
|
|
666
666
|
"field.width": "[zh]width",
|
|
667
667
|
"field.worksheet_no": "worksheet no",
|
|
668
|
+
"field.worksheet_status": "[zh] worksheet status",
|
|
668
669
|
"field.your_name": "your name",
|
|
669
670
|
"field.zone_end": "[zh] zone end",
|
|
670
671
|
"field.zone_start": "[zh] zone start",
|
|
@@ -1568,6 +1569,7 @@
|
|
|
1568
1569
|
"text.the_inventory_has_been_relocated": "[zh] the inventory has been relocated",
|
|
1569
1570
|
"text.the_inventory_has_been_successfully_checked": "[zh] the inventory has been successfully checked",
|
|
1570
1571
|
"text.the_inventory_has_been_successfully_reverted": "[zh] the inventory has been successfully reverted",
|
|
1572
|
+
"text.the_inventory_not_in_this_worksheet": "[zh] the inventory not in this worksheet",
|
|
1571
1573
|
"text.the_entered_quantity_exceeds_the_transfer_qty": "[zh] the entered quantity exceeds the Transfer Qty. please adjust the quantity and try again.",
|
|
1572
1574
|
"text.there_is_additional_operation": "[zh]there is additional operation",
|
|
1573
1575
|
"text.there_is_completed_item_already": "[zh]there is completed item already",
|