@things-factory/operato-wms 4.3.200 → 4.3.202
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/order/release-order/create-release-order.js +28 -0
- package/client/pages/outbound/route-label-popup.js +9 -2
- package/client/pages/outbound/sorting-product.js +99 -32
- package/client/pages/outbound/sorting-same-gtin-popup.js +205 -0
- package/config.development.js +16 -16
- package/package.json +5 -5
|
@@ -729,9 +729,17 @@ class CreateReleaseOrder extends localize(i18next)(PageView) {
|
|
|
729
729
|
this.selectByPalletInput.checked = true
|
|
730
730
|
} else {
|
|
731
731
|
this._pickingStd = value
|
|
732
|
+
this.inventoryGrist.reset()
|
|
733
|
+
this.vasGrist.reset()
|
|
734
|
+
this.inventoryData = { ...this.inventoryData, records: [] }
|
|
735
|
+
this.vasData = { ...this.vasData, records: [] }
|
|
732
736
|
}
|
|
733
737
|
} else {
|
|
734
738
|
this._pickingStd = value
|
|
739
|
+
this.inventoryGrist.reset()
|
|
740
|
+
this.vasGrist.reset()
|
|
741
|
+
this.inventoryData = { ...this.inventoryData, records: [] }
|
|
742
|
+
this.vasData = { ...this.vasData, records: [] }
|
|
735
743
|
}
|
|
736
744
|
}}"
|
|
737
745
|
.checked="${this._pickingStd === PICKING_STANDARD.SELECT_BY_PRODUCT.value}"
|
|
@@ -763,9 +771,17 @@ class CreateReleaseOrder extends localize(i18next)(PageView) {
|
|
|
763
771
|
this.selectByProductInput.checked = true
|
|
764
772
|
} else {
|
|
765
773
|
this._pickingStd = value
|
|
774
|
+
this.inventoryGrist.reset()
|
|
775
|
+
this.vasGrist.reset()
|
|
776
|
+
this.inventoryData = { ...this.inventoryData, records: [] }
|
|
777
|
+
this.vasData = { ...this.vasData, records: [] }
|
|
766
778
|
}
|
|
767
779
|
} else {
|
|
768
780
|
this._pickingStd = value
|
|
781
|
+
this.inventoryGrist.reset()
|
|
782
|
+
this.vasGrist.reset()
|
|
783
|
+
this.inventoryData = { ...this.inventoryData, records: [] }
|
|
784
|
+
this.vasData = { ...this.vasData, records: [] }
|
|
769
785
|
}
|
|
770
786
|
}}"
|
|
771
787
|
.checked="${(this._pickingStd === PICKING_STANDARD.SELECT_BY_PALLET.value && !this._crossDocking) ||
|
|
@@ -1003,6 +1019,15 @@ class CreateReleaseOrder extends localize(i18next)(PageView) {
|
|
|
1003
1019
|
}
|
|
1004
1020
|
}
|
|
1005
1021
|
|
|
1022
|
+
_clearView() {
|
|
1023
|
+
this.releaseOrderForm.reset()
|
|
1024
|
+
this.inventoryData = { ...this.inventoryData, records: [] }
|
|
1025
|
+
this.vasData = { ...this.vasData, records: [] }
|
|
1026
|
+
if (this._document?._files) {
|
|
1027
|
+
this._document.reset()
|
|
1028
|
+
}
|
|
1029
|
+
}
|
|
1030
|
+
|
|
1006
1031
|
async pageInitialized() {
|
|
1007
1032
|
let [enableTransportationServiceSetting, bizplaces, packingTypes] = await Promise.all([
|
|
1008
1033
|
fetchSettingRule('enable-transportation-service'),
|
|
@@ -2694,6 +2719,9 @@ class CreateReleaseOrder extends localize(i18next)(PageView) {
|
|
|
2694
2719
|
this._bizplaceId = e.detail.id
|
|
2695
2720
|
this._bizplaceName = e.detail.name
|
|
2696
2721
|
this.switchPickingType()
|
|
2722
|
+
this.inventoryGrist.reset()
|
|
2723
|
+
this.vasGrist.reset()
|
|
2724
|
+
this._clearView()
|
|
2697
2725
|
// this._resetShippingInfoForm()
|
|
2698
2726
|
this.fetchCountry()
|
|
2699
2727
|
}}"
|
|
@@ -326,6 +326,7 @@ class RouteLabelPopup extends connect(store)(localize(i18next)(LitElement)) {
|
|
|
326
326
|
storeId
|
|
327
327
|
storeName
|
|
328
328
|
stopId
|
|
329
|
+
createdAt
|
|
329
330
|
}
|
|
330
331
|
total
|
|
331
332
|
}
|
|
@@ -347,10 +348,13 @@ class RouteLabelPopup extends connect(store)(localize(i18next)(LitElement)) {
|
|
|
347
348
|
total: records.total || 0,
|
|
348
349
|
records:
|
|
349
350
|
records.items.map(itm => {
|
|
351
|
+
let createdAt = new Date(itm.createdAt)
|
|
352
|
+
createdAt = `${createdAt.getDate()}/${createdAt.getMonth() + 1}/${createdAt.getFullYear()}`
|
|
350
353
|
return {
|
|
351
354
|
...itm,
|
|
352
355
|
roName: itm.releaseGoodName,
|
|
353
|
-
productSku: itm.productSKU
|
|
356
|
+
productSku: itm.productSKU,
|
|
357
|
+
createdAt: createdAt
|
|
354
358
|
}
|
|
355
359
|
}) || {}
|
|
356
360
|
})
|
|
@@ -373,6 +377,7 @@ class RouteLabelPopup extends connect(store)(localize(i18next)(LitElement)) {
|
|
|
373
377
|
message: `${i18next.t('text.no_label_setting_was_found')}. ${i18next.t('text.please_check_your_setting')}`
|
|
374
378
|
})
|
|
375
379
|
} else {
|
|
380
|
+
let index = 1
|
|
376
381
|
for (var record of records) {
|
|
377
382
|
let max = record.releaseQty ? record.releaseQty : 1
|
|
378
383
|
for (let qty = 1; qty <= max; qty++) {
|
|
@@ -391,17 +396,18 @@ class RouteLabelPopup extends connect(store)(localize(i18next)(LitElement)) {
|
|
|
391
396
|
searchParams.append('productName', record.productName)
|
|
392
397
|
} else {
|
|
393
398
|
searchParams.append('productName', record.toteNumber)
|
|
399
|
+
searchParams.append('counter', `${index} of ${records.length}`)
|
|
394
400
|
}
|
|
395
401
|
searchParams.append('stopId', record.stopId)
|
|
396
402
|
searchParams.append('routeId', record.routeId)
|
|
397
403
|
searchParams.append('storeId', record.storeId)
|
|
398
404
|
searchParams.append('storeName', record.storeName)
|
|
399
405
|
searchParams.append('str', `STR: ${record.storeId}`)
|
|
406
|
+
searchParams.append('createdAt', `P/D: ${record.createdAt}`)
|
|
400
407
|
searchParams.append(
|
|
401
408
|
'storeInformation',
|
|
402
409
|
`(Store ID) ${record.storeId}, (Store Name) ${record.storeName}, (Route ID) ${record.routeId}, (Stop ID) ${record.stopId}`
|
|
403
410
|
)
|
|
404
|
-
|
|
405
411
|
try {
|
|
406
412
|
const response = await fetch(`label-command/${labelId}?${searchParams.toString()}`, {
|
|
407
413
|
method: 'GET'
|
|
@@ -425,6 +431,7 @@ class RouteLabelPopup extends connect(store)(localize(i18next)(LitElement)) {
|
|
|
425
431
|
break
|
|
426
432
|
}
|
|
427
433
|
}
|
|
434
|
+
index++
|
|
428
435
|
}
|
|
429
436
|
}
|
|
430
437
|
}
|
|
@@ -3,16 +3,28 @@ import '@things-factory/grist-ui'
|
|
|
3
3
|
import './show-ro-list-popup'
|
|
4
4
|
import '../components/worksheet-information-popup'
|
|
5
5
|
import './tote-popup'
|
|
6
|
+
import './sorting-same-gtin-popup'
|
|
6
7
|
|
|
7
8
|
import gql from 'graphql-tag'
|
|
8
|
-
import {
|
|
9
|
+
import {
|
|
10
|
+
css,
|
|
11
|
+
html
|
|
12
|
+
} from 'lit-element'
|
|
9
13
|
import { connect } from 'pwa-helpers/connect-mixin.js'
|
|
10
14
|
|
|
11
15
|
import { sleep } from '@operato/utils'
|
|
12
16
|
import { MultiColumnFormStyles } from '@things-factory/form-ui'
|
|
13
|
-
import {
|
|
17
|
+
import {
|
|
18
|
+
i18next,
|
|
19
|
+
localize
|
|
20
|
+
} from '@things-factory/i18n-base'
|
|
14
21
|
import { openPopup } from '@things-factory/layout-base'
|
|
15
|
-
import {
|
|
22
|
+
import {
|
|
23
|
+
client,
|
|
24
|
+
CustomAlert,
|
|
25
|
+
PageView,
|
|
26
|
+
store
|
|
27
|
+
} from '@things-factory/shell'
|
|
16
28
|
import { CommonButtonStyles } from '@things-factory/styles'
|
|
17
29
|
import { isMobileDevice } from '@things-factory/utils'
|
|
18
30
|
|
|
@@ -400,6 +412,7 @@ class SortingProduct extends connect(store)(localize(i18next)(PageView)) {
|
|
|
400
412
|
if (this.sortingQtyInput) this.sortingQtyInput.value = ''
|
|
401
413
|
if (this.serialInput) this.serialInput.value = ''
|
|
402
414
|
this.toteNo = ''
|
|
415
|
+
this._lastScannedProductId = ''
|
|
403
416
|
}}
|
|
404
417
|
></show-ro-list-popup>
|
|
405
418
|
`,
|
|
@@ -472,6 +485,10 @@ class SortingProduct extends connect(store)(localize(i18next)(PageView)) {
|
|
|
472
485
|
productSku
|
|
473
486
|
productName
|
|
474
487
|
productDescription
|
|
488
|
+
productBarcodes {
|
|
489
|
+
id
|
|
490
|
+
gtin
|
|
491
|
+
}
|
|
475
492
|
isRequireSerialNumberScanningOutbound
|
|
476
493
|
expirationDate
|
|
477
494
|
releaseQty
|
|
@@ -501,45 +518,87 @@ class SortingProduct extends connect(store)(localize(i18next)(PageView)) {
|
|
|
501
518
|
this._selectedOrderInventory = worksheetDetailInfos[0]
|
|
502
519
|
this._isRequireSerialNumberScanningOutbound = worksheetDetailInfos[0].isRequireSerialNumberScanningOutbound
|
|
503
520
|
}
|
|
521
|
+
|
|
504
522
|
this._enableProductScanning = await fetchSettingRule('enable-product-scanning', worksheetInfo.partnerDomainId)
|
|
505
523
|
this._enableToteScanning = await fetchSettingRule('enable-tote-scanning', worksheetInfo.partnerDomainId)
|
|
524
|
+
|
|
506
525
|
if (this._enableProductScanning)
|
|
507
526
|
this._enableSortingQty = await fetchSettingRule('enable-sorting-qty', worksheetInfo.partnerDomainId)
|
|
508
527
|
|
|
509
528
|
this.updateContext()
|
|
510
529
|
this._completeHandler()
|
|
511
530
|
|
|
512
|
-
|
|
513
|
-
|
|
514
|
-
|
|
515
|
-
|
|
516
|
-
|
|
517
|
-
|
|
518
|
-
|
|
519
|
-
|
|
520
|
-
|
|
521
|
-
|
|
522
|
-
|
|
531
|
+
this.focusPage(worksheetDetailInfos)
|
|
532
|
+
}
|
|
533
|
+
}
|
|
534
|
+
|
|
535
|
+
focusPage(worksheetDetailInfos) {
|
|
536
|
+
this.data = { records: this.formatWorksheetDetailInfos(worksheetDetailInfos) }
|
|
537
|
+
if (!this._selectedOrderInventory) {
|
|
538
|
+
this._selectedOrderInventory = worksheetDetailInfos[0]
|
|
539
|
+
this._isRequireSerialNumberScanningOutbound = worksheetDetailInfos[0].isRequireSerialNumberScanningOutbound
|
|
540
|
+
}
|
|
541
|
+
|
|
542
|
+
if (this._isRequireSerialNumberScanningOutbound && !this._enableProductScanning) {
|
|
543
|
+
this._focusOnSerialInput()
|
|
544
|
+
} else if (this._enableProductScanning) {
|
|
545
|
+
if (this.productBarcodeInput.value) {
|
|
546
|
+
if (this._isRequireSerialNumberScanningOutbound) {
|
|
547
|
+
this._focusOnSerialInput()
|
|
548
|
+
} else if (this._enableSortingQty) {
|
|
549
|
+
this._focusOnSortingQtyInput()
|
|
523
550
|
} else {
|
|
524
551
|
this._focusOnProductBarcodeInput()
|
|
525
552
|
}
|
|
526
553
|
} else {
|
|
527
|
-
this.
|
|
554
|
+
this._focusOnProductBarcodeInput()
|
|
528
555
|
}
|
|
556
|
+
} else {
|
|
557
|
+
this._focusOnSortingQtyInput()
|
|
529
558
|
}
|
|
530
559
|
}
|
|
531
560
|
|
|
561
|
+
async _openSortingSameGtinPopup(records) {
|
|
562
|
+
await sleep(1010)
|
|
563
|
+
openPopup(
|
|
564
|
+
html`
|
|
565
|
+
<sorting-same-gtin-popup
|
|
566
|
+
.sortingInventories="${records}"
|
|
567
|
+
@selections="${async e => {
|
|
568
|
+
await this.scanProductSorting(e.detail[0].productId, true)
|
|
569
|
+
}}"
|
|
570
|
+
></sorting-same-gtin-popup>
|
|
571
|
+
`,
|
|
572
|
+
{
|
|
573
|
+
backdrop: true,
|
|
574
|
+
size: 'medium',
|
|
575
|
+
title: i18next.t('title.select_product_batch')
|
|
576
|
+
}
|
|
577
|
+
)
|
|
578
|
+
}
|
|
579
|
+
|
|
532
580
|
async _sorting(e) {
|
|
533
581
|
if (e.keyCode !== 13) return
|
|
534
582
|
e.preventDefault()
|
|
535
583
|
try {
|
|
536
584
|
let answer = await this._validateSorting()
|
|
537
|
-
|
|
538
585
|
if (!answer) return
|
|
539
586
|
|
|
540
587
|
let response
|
|
541
588
|
if (this._enableProductScanning) {
|
|
542
|
-
|
|
589
|
+
const records = this.data.records.filter(
|
|
590
|
+
record =>
|
|
591
|
+
record.productBarcodes.find(pb => pb.gtin === this.productBarcodeInput.value) && record.status !== 'SORTED'
|
|
592
|
+
)
|
|
593
|
+
|
|
594
|
+
if (records.length > 1 && !this?._lastScannedProductId) {
|
|
595
|
+
this._openSortingSameGtinPopup(records)
|
|
596
|
+
return
|
|
597
|
+
} else {
|
|
598
|
+
let scannedProductId = records[0].productId
|
|
599
|
+
this._productId = scannedProductId
|
|
600
|
+
response = await this.scanProductSorting(scannedProductId)
|
|
601
|
+
}
|
|
543
602
|
} else {
|
|
544
603
|
response = await this.commonSorting()
|
|
545
604
|
}
|
|
@@ -558,7 +617,7 @@ class SortingProduct extends connect(store)(localize(i18next)(PageView)) {
|
|
|
558
617
|
this.sortingQtyInput.value = ''
|
|
559
618
|
}
|
|
560
619
|
|
|
561
|
-
if (!response.
|
|
620
|
+
if (!response?.errors || (this._enableProductScanning && records.length > 1)) {
|
|
562
621
|
this._fetchItemList(this._selectedReleaseGood?.name)
|
|
563
622
|
}
|
|
564
623
|
} catch (e) {
|
|
@@ -598,8 +657,21 @@ class SortingProduct extends connect(store)(localize(i18next)(PageView)) {
|
|
|
598
657
|
})
|
|
599
658
|
}
|
|
600
659
|
|
|
601
|
-
async scanProductSorting() {
|
|
602
|
-
|
|
660
|
+
async scanProductSorting(productId) {
|
|
661
|
+
const variables = {
|
|
662
|
+
releaseGoodNo: this._selectedReleaseGood?.name,
|
|
663
|
+
taskNo: this.taskNo,
|
|
664
|
+
productBarcode: this.productBarcodeInput.value.trim(),
|
|
665
|
+
serialNumber: this._isRequireSerialNumberScanningOutbound ? this.serialInput.value.trim() : null,
|
|
666
|
+
toteNo: this._enableToteScanning && this.toteNo !== '' ? this.toteNo : null,
|
|
667
|
+
sortingQty:
|
|
668
|
+
this._enableSortingQty && !this._isRequireSerialNumberScanningOutbound
|
|
669
|
+
? parseInt(this.sortingQtyInput.value)
|
|
670
|
+
: null,
|
|
671
|
+
productId
|
|
672
|
+
}
|
|
673
|
+
|
|
674
|
+
const response = await client.mutate({
|
|
603
675
|
mutation: gql`
|
|
604
676
|
mutation scanProductSorting(
|
|
605
677
|
$releaseGoodNo: String!
|
|
@@ -608,6 +680,7 @@ class SortingProduct extends connect(store)(localize(i18next)(PageView)) {
|
|
|
608
680
|
$serialNumber: String
|
|
609
681
|
$toteNo: String
|
|
610
682
|
$sortingQty: Int
|
|
683
|
+
$productId: String
|
|
611
684
|
) {
|
|
612
685
|
scanProductSorting(
|
|
613
686
|
releaseGoodNo: $releaseGoodNo
|
|
@@ -616,21 +689,15 @@ class SortingProduct extends connect(store)(localize(i18next)(PageView)) {
|
|
|
616
689
|
serialNumber: $serialNumber
|
|
617
690
|
toteNo: $toteNo
|
|
618
691
|
sortingQty: $sortingQty
|
|
692
|
+
productId: $productId
|
|
619
693
|
)
|
|
620
694
|
}
|
|
621
695
|
`,
|
|
622
|
-
variables
|
|
623
|
-
releaseGoodNo: this._selectedReleaseGood?.name,
|
|
624
|
-
taskNo: this.taskNo,
|
|
625
|
-
productBarcode: this.productBarcodeInput.value.trim(),
|
|
626
|
-
serialNumber: this._isRequireSerialNumberScanningOutbound ? this.serialInput.value.trim() : null,
|
|
627
|
-
toteNo: this._enableToteScanning && this.toteNo !== '' ? this.toteNo : null,
|
|
628
|
-
sortingQty:
|
|
629
|
-
this._enableSortingQty && !this._isRequireSerialNumberScanningOutbound
|
|
630
|
-
? parseInt(this.sortingQtyInput.value)
|
|
631
|
-
: null
|
|
632
|
-
}
|
|
696
|
+
variables
|
|
633
697
|
})
|
|
698
|
+
|
|
699
|
+
this._lastScannedProductId = productId
|
|
700
|
+
this._fetchItemList(this._selectedReleaseGood?.name)
|
|
634
701
|
}
|
|
635
702
|
|
|
636
703
|
async _completeHandler() {
|
|
@@ -643,7 +710,7 @@ class SortingProduct extends connect(store)(localize(i18next)(PageView)) {
|
|
|
643
710
|
confirmButton: { text: i18next.t('button.okay') }
|
|
644
711
|
})
|
|
645
712
|
|
|
646
|
-
if (!result
|
|
713
|
+
if (!result?.value) {
|
|
647
714
|
return
|
|
648
715
|
}
|
|
649
716
|
|
|
@@ -0,0 +1,205 @@
|
|
|
1
|
+
import '@things-factory/grist-ui'
|
|
2
|
+
|
|
3
|
+
import {
|
|
4
|
+
css,
|
|
5
|
+
html,
|
|
6
|
+
LitElement
|
|
7
|
+
} from 'lit-element'
|
|
8
|
+
import { connect } from 'pwa-helpers/connect-mixin'
|
|
9
|
+
|
|
10
|
+
import { SingleColumnFormStyles } from '@things-factory/form-ui'
|
|
11
|
+
import {
|
|
12
|
+
i18next,
|
|
13
|
+
localize
|
|
14
|
+
} from '@things-factory/i18n-base'
|
|
15
|
+
import { store } from '@things-factory/shell'
|
|
16
|
+
import { isMobileDevice } from '@things-factory/utils'
|
|
17
|
+
|
|
18
|
+
class SortingSameGtinPopup extends connect(store)(localize(i18next)(LitElement)) {
|
|
19
|
+
static get properties() {
|
|
20
|
+
return {
|
|
21
|
+
config: Object,
|
|
22
|
+
data: Object,
|
|
23
|
+
sortingInventories: Array
|
|
24
|
+
}
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
constructor() {
|
|
28
|
+
super()
|
|
29
|
+
this._selectedInventoryIds = []
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
static get styles() {
|
|
33
|
+
return [
|
|
34
|
+
SingleColumnFormStyles,
|
|
35
|
+
css`
|
|
36
|
+
.button-container {
|
|
37
|
+
padding: var(--button-container-padding);
|
|
38
|
+
margin: var(--button-container-margin);
|
|
39
|
+
text-align: var(--button-container-align);
|
|
40
|
+
background-color: var(--button-container-background);
|
|
41
|
+
height: var(--button-container-height);
|
|
42
|
+
}
|
|
43
|
+
.button-container button {
|
|
44
|
+
background-color: var(--button-container-button-background-color);
|
|
45
|
+
border-radius: var(--button-container-button-border-radius);
|
|
46
|
+
height: var(--button-container-button-height);
|
|
47
|
+
border: var(--button-container-button-border);
|
|
48
|
+
margin: var(--button-container-button-margin);
|
|
49
|
+
|
|
50
|
+
padding: var(--button-padding);
|
|
51
|
+
color: var(--theme-white-color);
|
|
52
|
+
font: var(--button-font);
|
|
53
|
+
text-transform: var(--button-text-transform);
|
|
54
|
+
}
|
|
55
|
+
.button-container button:hover,
|
|
56
|
+
.button-container button:active {
|
|
57
|
+
background-color: var(--button-background-focus-color);
|
|
58
|
+
}
|
|
59
|
+
data-grist {
|
|
60
|
+
overflow-y: hidden;
|
|
61
|
+
flex: 1;
|
|
62
|
+
}
|
|
63
|
+
.grist {
|
|
64
|
+
display: flex;
|
|
65
|
+
flex-direction: column;
|
|
66
|
+
flex: 1;
|
|
67
|
+
overflow-y: auto;
|
|
68
|
+
}
|
|
69
|
+
:host {
|
|
70
|
+
padding: 10px;
|
|
71
|
+
display: flex;
|
|
72
|
+
flex-direction: column;
|
|
73
|
+
overflow: hidden;
|
|
74
|
+
background-color: white;
|
|
75
|
+
}
|
|
76
|
+
`
|
|
77
|
+
]
|
|
78
|
+
}
|
|
79
|
+
|
|
80
|
+
get dataGrist() {
|
|
81
|
+
return this.shadowRoot.querySelector('data-grist')
|
|
82
|
+
}
|
|
83
|
+
|
|
84
|
+
updated(changeProps) {
|
|
85
|
+
if (changeProps.has('sortingInventories')) {
|
|
86
|
+
if (this.sortingInventories && this.sortingInventories.length) {
|
|
87
|
+
this.data = { records: this.sortingInventories }
|
|
88
|
+
}
|
|
89
|
+
}
|
|
90
|
+
}
|
|
91
|
+
|
|
92
|
+
render() {
|
|
93
|
+
return html`
|
|
94
|
+
<div class="grist">
|
|
95
|
+
<data-grist
|
|
96
|
+
id="grist"
|
|
97
|
+
.mode=${isMobileDevice() ? 'LIST' : 'GRID'}
|
|
98
|
+
.config=${this.config}
|
|
99
|
+
.data="${this.data}"
|
|
100
|
+
></data-grist>
|
|
101
|
+
</div>
|
|
102
|
+
|
|
103
|
+
<div class="button-container">
|
|
104
|
+
<mwc-button
|
|
105
|
+
raised
|
|
106
|
+
@click="${this._selectSortingInventories.bind(this)}"
|
|
107
|
+
label="${i18next.t('button.select')}"
|
|
108
|
+
></mwc-button>
|
|
109
|
+
</div>
|
|
110
|
+
`
|
|
111
|
+
}
|
|
112
|
+
|
|
113
|
+
firstUpdated() {
|
|
114
|
+
this.config = {
|
|
115
|
+
pagination: { infinite: true },
|
|
116
|
+
rows: { selectable: { multiple: true }, appendable: false },
|
|
117
|
+
list: { fields: ['sku', 'product', 'batchId', 'packingType', 'packingSize', 'progress', 'binRemarks'] },
|
|
118
|
+
columns: [
|
|
119
|
+
{ type: 'gutter', gutterName: 'sequence' },
|
|
120
|
+
{ type: 'gutter', gutterName: 'row-selector', multiple: false },
|
|
121
|
+
{ name: 'id', hidden: true },
|
|
122
|
+
{
|
|
123
|
+
type: 'string',
|
|
124
|
+
name: 'sku',
|
|
125
|
+
label: true,
|
|
126
|
+
header: i18next.t('field.sku'),
|
|
127
|
+
width: 250
|
|
128
|
+
},
|
|
129
|
+
{
|
|
130
|
+
type: 'object',
|
|
131
|
+
name: 'product',
|
|
132
|
+
label: true,
|
|
133
|
+
header: i18next.t('field.product'),
|
|
134
|
+
width: 250
|
|
135
|
+
},
|
|
136
|
+
{
|
|
137
|
+
type: 'string',
|
|
138
|
+
name: 'batchId',
|
|
139
|
+
label: true,
|
|
140
|
+
header: i18next.t('field.batch_id'),
|
|
141
|
+
width: 150
|
|
142
|
+
},
|
|
143
|
+
{
|
|
144
|
+
type: 'string',
|
|
145
|
+
name: 'packingType',
|
|
146
|
+
label: true,
|
|
147
|
+
header: i18next.t('field.packing_type'),
|
|
148
|
+
width: 120
|
|
149
|
+
},
|
|
150
|
+
{
|
|
151
|
+
type: 'integer',
|
|
152
|
+
name: 'packingSize',
|
|
153
|
+
label: true,
|
|
154
|
+
header: i18next.t('field.packing_size'),
|
|
155
|
+
width: 100
|
|
156
|
+
},
|
|
157
|
+
{
|
|
158
|
+
type: 'integer',
|
|
159
|
+
name: 'progress',
|
|
160
|
+
label: true,
|
|
161
|
+
header: i18next.t('field.qty'),
|
|
162
|
+
width: 100
|
|
163
|
+
},
|
|
164
|
+
{
|
|
165
|
+
type: 'string',
|
|
166
|
+
name: 'binRemarks',
|
|
167
|
+
header: i18next.t('field.bin_location'),
|
|
168
|
+
label: true,
|
|
169
|
+
width: 120
|
|
170
|
+
}
|
|
171
|
+
]
|
|
172
|
+
}
|
|
173
|
+
}
|
|
174
|
+
|
|
175
|
+
async _selectSortingInventories() {
|
|
176
|
+
try {
|
|
177
|
+
let selectedInventories = []
|
|
178
|
+
selectedInventories = this.dataGrist.selected.map(({ productId, batchId, productName, productSku }) => ({
|
|
179
|
+
productId,
|
|
180
|
+
batchId,
|
|
181
|
+
productName,
|
|
182
|
+
productSku
|
|
183
|
+
}))
|
|
184
|
+
if (!selectedInventories?.length) throw new Error(i18next.t('text.select_at_least_one_inventory_to_sort'))
|
|
185
|
+
|
|
186
|
+
this.dispatchEvent(new CustomEvent('selections', { detail: selectedInventories }))
|
|
187
|
+
history.back()
|
|
188
|
+
} catch (e) {
|
|
189
|
+
this._showToast(e)
|
|
190
|
+
}
|
|
191
|
+
}
|
|
192
|
+
|
|
193
|
+
_showToast({ type, message }) {
|
|
194
|
+
document.dispatchEvent(
|
|
195
|
+
new CustomEvent('notify', {
|
|
196
|
+
detail: {
|
|
197
|
+
type,
|
|
198
|
+
message
|
|
199
|
+
}
|
|
200
|
+
})
|
|
201
|
+
)
|
|
202
|
+
}
|
|
203
|
+
}
|
|
204
|
+
|
|
205
|
+
window.customElements.define('sorting-same-gtin-popup', SortingSameGtinPopup)
|
package/config.development.js
CHANGED
|
@@ -6,28 +6,28 @@ module.exports = {
|
|
|
6
6
|
subdomainOffset: 2,
|
|
7
7
|
port: 1100,
|
|
8
8
|
inspect: '9430',
|
|
9
|
-
// ormconfig: {
|
|
10
|
-
// name: 'default',
|
|
11
|
-
// type: 'postgres',
|
|
12
|
-
// database: 'dev2',
|
|
13
|
-
// username: 'postgres',
|
|
14
|
-
// password: 'hatio',
|
|
15
|
-
// host: '192.168.0.161',
|
|
16
|
-
// port: 15432,
|
|
17
|
-
// synchronize: false,
|
|
18
|
-
// logging: false
|
|
19
|
-
// },
|
|
20
9
|
ormconfig: {
|
|
21
10
|
name: 'default',
|
|
22
11
|
type: 'postgres',
|
|
23
|
-
database: '
|
|
12
|
+
database: 'dev2',
|
|
24
13
|
username: 'postgres',
|
|
25
|
-
password: '
|
|
26
|
-
host: '
|
|
27
|
-
port:
|
|
14
|
+
password: 'hatio',
|
|
15
|
+
host: '192.168.0.161',
|
|
16
|
+
port: 15432,
|
|
28
17
|
synchronize: false,
|
|
29
|
-
logging:
|
|
18
|
+
logging: false
|
|
30
19
|
},
|
|
20
|
+
// ormconfig: {
|
|
21
|
+
// name: 'default',
|
|
22
|
+
// type: 'postgres',
|
|
23
|
+
// database: 'postgres',
|
|
24
|
+
// username: 'postgres',
|
|
25
|
+
// password: 'abcd1234',
|
|
26
|
+
// host: 'operatov3.cluster-cijhm4n1hbst.ap-southeast-1.rds.amazonaws.com',
|
|
27
|
+
// port: 55432,
|
|
28
|
+
// synchronize: false,
|
|
29
|
+
// logging: true
|
|
30
|
+
// },
|
|
31
31
|
sellercraftIntegrationConfig: {
|
|
32
32
|
apiKey: 'Et0KqtLvA6e92bDvOywy9eCCud4hpAal8akpqI90'
|
|
33
33
|
},
|
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.202",
|
|
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.179",
|
|
92
92
|
"@things-factory/product-base": "^4.3.186",
|
|
93
93
|
"@things-factory/resource-ui": "^4.3.179",
|
|
94
|
-
"@things-factory/sales-ui": "^4.3.
|
|
94
|
+
"@things-factory/sales-ui": "^4.3.201",
|
|
95
95
|
"@things-factory/scene-data-transform": "^4.3.159",
|
|
96
96
|
"@things-factory/scene-excel": "^4.3.159",
|
|
97
97
|
"@things-factory/scene-firebase": "^4.3.159",
|
|
@@ -107,8 +107,8 @@
|
|
|
107
107
|
"@things-factory/system-ui": "^4.3.179",
|
|
108
108
|
"@things-factory/transport-base": "^4.3.179",
|
|
109
109
|
"@things-factory/tutorial-ui": "^4.3.179",
|
|
110
|
-
"@things-factory/warehouse-base": "^4.3.
|
|
111
|
-
"@things-factory/worksheet-base": "^4.3.
|
|
110
|
+
"@things-factory/warehouse-base": "^4.3.201",
|
|
111
|
+
"@things-factory/worksheet-base": "^4.3.201"
|
|
112
112
|
},
|
|
113
113
|
"devDependencies": {
|
|
114
114
|
"@things-factory/builder": "^4.3.179",
|
|
@@ -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": "5d5352a1f1400d31a99edeb1654a4515e8d7d00c"
|
|
121
121
|
}
|