@things-factory/operato-wms 4.0.8 → 4.0.12
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/adjustment/transfer-inventory.js +368 -165
- package/client/pages/billing/claim-chit/claim-chit-list.js +7 -6
- package/client/pages/bulk-operation/bulk-operation.js +316 -0
- package/client/pages/bulk-operation/validate-ro-popup.js +445 -0
- package/client/pages/components/select-product-popup.js +15 -2
- package/client/pages/constants/inventory.js +1 -0
- package/client/pages/constants/location.js +33 -6
- package/client/pages/constants/order.js +10 -0
- package/client/pages/constants/worksheet.js +2 -2
- package/client/pages/inbound/inbound-worksheet.js +78 -9
- package/client/pages/inbound/putaway-product.js +214 -139
- package/client/pages/inbound/putaway-worksheet-generate-popup.js +24 -2
- package/client/pages/inbound/unload-product.js +153 -61
- package/client/pages/inbound/worksheet-putaway-return.js +22 -5
- package/client/pages/inbound/worksheet-putaway.js +21 -8
- package/client/pages/inbound/worksheet-unloading-return.js +22 -5
- package/client/pages/inbound/worksheet-unloading.js +8 -0
- package/client/pages/inventory/inventory-adjustment-approval.js +11 -19
- package/client/pages/inventory/inventory-adjustment.js +88 -73
- package/client/pages/inventory/inventory-by-product-detail.js +3 -5
- package/client/pages/inventory/inventory-by-product.js +8 -0
- package/client/pages/inventory/inventory-history-by-pallet.js +12 -5
- package/client/pages/inventory/inventory-history.js +14 -5
- package/client/pages/inventory/onhand-inventory.js +11 -2
- package/client/pages/inventory-check/create-cycle-count.js +12 -6
- package/client/pages/inventory-check/cycle-count-report.js +8 -0
- package/client/pages/inventory-check/inspecting-product.js +146 -80
- package/client/pages/inventory-check/worksheet-cycle-count.js +14 -0
- package/client/pages/manifest/create-loading-manifest.js +314 -0
- package/client/pages/manifest/dispatcher-verification-popup.js +86 -0
- package/client/pages/manifest/loading-manifest-detail.js +345 -0
- package/client/pages/manifest/loading-manifest-list.js +305 -0
- package/client/pages/master/location-list.js +58 -17
- package/client/pages/master/product/product-detail-bizplace-setting-popup.js +2 -2
- package/client/pages/master/product/product-details-popup.js +2 -2
- package/client/pages/master/product/product-list.js +5 -5
- package/client/pages/order/arrival-notice/arrival-notice-detail.js +134 -115
- package/client/pages/order/arrival-notice/arrival-notice-list.js +87 -6
- package/client/pages/order/arrival-notice/arrival-notice-requests.js +83 -6
- package/client/pages/order/arrival-notice/assign-buffer-location.js +8 -1
- package/client/pages/order/arrival-notice/check-arrived-notice.js +9 -1
- package/client/pages/order/arrival-notice/create-arrival-notice.js +38 -3
- package/client/pages/order/arrival-notice/duplicate-arrival-notice.js +290 -25
- package/client/pages/order/arrival-notice/edit-product-popup.js +36 -5
- package/client/pages/order/arrival-notice/receive-arrival-notice.js +8 -1
- package/client/pages/order/goods-received-note/received-note-list.js +138 -6
- package/client/pages/order/release-order/b2b/b2b-order-list.js +45 -5
- package/client/pages/order/release-order/b2b/b2b-order-requests.js +52 -12
- package/client/pages/order/release-order/b2c/b2c-order-requests.js +244 -24
- package/client/pages/order/release-order/bulk-print-packing-list.js +23 -0
- package/client/pages/order/release-order/create-release-order.js +55 -8
- package/client/pages/order/release-order/receive-release-order-request.js +35 -24
- package/client/pages/order/release-order/release-extra-product-popup.js +204 -63
- package/client/pages/order/release-order/release-order-detail.js +301 -74
- package/client/pages/order/return-order/check-return-order.js +9 -1
- package/client/pages/order/return-order/create-return-order.js +14 -2
- package/client/pages/order/return-order/receive-return-order-requests.js +9 -1
- package/client/pages/order/return-order/return-order-detail.js +15 -6
- package/client/pages/order/return-order/return-order-inventory-popup.js +7 -0
- package/client/pages/order/reverse-kitting-order/reverse-kitting-order-detail.js +115 -50
- package/client/pages/order/reverse-kitting-order/reverse-kitting-order-list.js +1 -6
- package/client/pages/order/reverse-kitting-order/reverse-kitting-pallet-label-popup.js +239 -0
- package/client/pages/order/transport-order/delivery-order-list.js +102 -59
- package/client/pages/outbound/inventory-assign-popup.js +23 -6
- package/client/pages/outbound/inventory-auto-assign-popup.js +22 -6
- package/client/pages/outbound/loading-product.js +4 -1
- package/client/pages/outbound/merged-outbound-worksheet.js +43 -1
- package/client/pages/outbound/packing-product.js +4 -1
- package/client/pages/outbound/packing-worksheet-list.js +39 -1
- package/client/pages/outbound/picking-product.js +803 -431
- package/client/pages/outbound/picking-replacement-popup.js +1 -1
- package/client/pages/outbound/serial-number-popup.js +280 -0
- package/client/pages/outbound/single-outbound-worksheet.js +47 -1
- package/client/pages/outbound/worksheet-batch-picking.js +22 -8
- package/client/pages/outbound/worksheet-loading.js +22 -5
- package/client/pages/outbound/worksheet-packing.js +8 -0
- package/client/pages/outbound/worksheet-picking.js +62 -8
- package/client/pages/outbound/worksheet-return.js +9 -1
- package/client/pages/outbound/worksheet-sorting.js +9 -1
- package/client/pages/report/custom-elccl/elccl-inventory-report.js +31 -30
- package/client/pages/report/custom-elccl/elccl-inventory-summary-report.js +23 -26
- package/client/pages/report/inventory-pallet-storage-report.js +11 -10
- package/client/pages/report/inventory-report.js +41 -43
- package/client/pages/report/inventory-summary-report.js +25 -28
- package/client/pages/report/product-label-report.js +401 -0
- package/client/pages/support/inventory-comparison.js +296 -0
- package/client/pages/vas/print-product-label.js +298 -132
- package/client/pages/vas/reverse-kitting/execute-reverse-kitting.js +32 -12
- package/client/pages/vas/reverse-kitting/popup-combination-sets.js +106 -10
- package/client/pages/vas/reverse-kitting/popup-reverse-kitting-template.js +130 -19
- package/client/pages/vas/vas-pallet-label-popup.js +5 -8
- package/client/route.js +28 -0
- package/config.development.js +73 -0
- package/config.production.js +113 -0
- package/dist-server/graphql/resolvers/custom/elccl/elccl-inventory-history-report.js +1 -1
- package/dist-server/graphql/resolvers/custom/elccl/elccl-inventory-history-report.js.map +1 -1
- package/dist-server/graphql/resolvers/custom/elccl/elccl-inventory-history-summary-report.js +64 -54
- package/dist-server/graphql/resolvers/custom/elccl/elccl-inventory-history-summary-report.js.map +1 -1
- package/dist-server/graphql/resolvers/extra/add-release-good-products.js +34 -9
- package/dist-server/graphql/resolvers/extra/add-release-good-products.js.map +1 -1
- package/dist-server/graphql/resolvers/index.js +5 -1
- package/dist-server/graphql/resolvers/index.js.map +1 -1
- package/dist-server/graphql/resolvers/inventory-comparison/index.js +6 -0
- package/dist-server/graphql/resolvers/inventory-comparison/index.js.map +1 -0
- package/dist-server/graphql/resolvers/inventory-comparison/inventory-comparison-list.js +78 -0
- package/dist-server/graphql/resolvers/inventory-comparison/inventory-comparison-list.js.map +1 -0
- package/dist-server/graphql/resolvers/reports/index.js +2 -1
- package/dist-server/graphql/resolvers/reports/index.js.map +1 -1
- package/dist-server/graphql/resolvers/reports/product-label-report.js +56 -0
- package/dist-server/graphql/resolvers/reports/product-label-report.js.map +1 -0
- package/dist-server/graphql/resolvers/shipping-provider/index.js +6 -0
- package/dist-server/graphql/resolvers/shipping-provider/index.js.map +1 -0
- package/dist-server/graphql/resolvers/shipping-provider/shipping-providers.js +20 -0
- package/dist-server/graphql/resolvers/shipping-provider/shipping-providers.js.map +1 -0
- package/dist-server/graphql/types/custom/elccl/elccl-inventory-report.js +1 -1
- package/dist-server/graphql/types/index.js +8 -2
- package/dist-server/graphql/types/index.js.map +1 -1
- package/dist-server/graphql/types/inventory-comparison/index.js +13 -0
- package/dist-server/graphql/types/inventory-comparison/index.js.map +1 -0
- package/dist-server/graphql/types/inventory-comparison/inventory-comparison-list.js +14 -0
- package/dist-server/graphql/types/inventory-comparison/inventory-comparison-list.js.map +1 -0
- package/dist-server/graphql/types/inventory-comparison/inventory-comparison.js +18 -0
- package/dist-server/graphql/types/inventory-comparison/inventory-comparison.js.map +1 -0
- package/dist-server/graphql/types/reports/index.js +6 -1
- package/dist-server/graphql/types/reports/index.js.map +1 -1
- package/dist-server/graphql/types/reports/product-label-report-list.js +14 -0
- package/dist-server/graphql/types/reports/product-label-report-list.js.map +1 -0
- package/dist-server/graphql/types/reports/product-label-report.js +16 -0
- package/dist-server/graphql/types/reports/product-label-report.js.map +1 -0
- package/dist-server/graphql/types/shipping-provider/index.js +10 -0
- package/dist-server/graphql/types/shipping-provider/index.js.map +1 -0
- package/dist-server/graphql/types/shipping-provider/shipping-provider-list.js +13 -0
- package/dist-server/graphql/types/shipping-provider/shipping-provider-list.js.map +1 -0
- package/dist-server/graphql/types/shipping-provider/shipping-provider.js +13 -0
- package/dist-server/graphql/types/shipping-provider/shipping-provider.js.map +1 -0
- package/package.json +66 -66
- package/server/graphql/resolvers/custom/elccl/elccl-inventory-history-report.ts +4 -2
- package/server/graphql/resolvers/custom/elccl/elccl-inventory-history-summary-report.ts +75 -65
- package/server/graphql/resolvers/extra/add-release-good-products.ts +57 -15
- package/server/graphql/resolvers/index.ts +5 -1
- package/server/graphql/resolvers/inventory-comparison/index.ts +5 -0
- package/server/graphql/resolvers/inventory-comparison/inventory-comparison-list.ts +99 -0
- package/server/graphql/resolvers/reports/index.ts +3 -1
- package/server/graphql/resolvers/reports/product-label-report.ts +56 -0
- package/server/graphql/resolvers/shipping-provider/index.ts +5 -0
- package/server/graphql/resolvers/shipping-provider/shipping-providers.ts +20 -0
- package/server/graphql/types/custom/elccl/elccl-inventory-report.ts +1 -1
- package/server/graphql/types/index.ts +8 -2
- package/server/graphql/types/inventory-comparison/index.ts +11 -0
- package/server/graphql/types/inventory-comparison/inventory-comparison-list.ts +8 -0
- package/server/graphql/types/inventory-comparison/inventory-comparison.ts +12 -0
- package/server/graphql/types/reports/index.ts +6 -1
- package/server/graphql/types/reports/product-label-report-list.ts +8 -0
- package/server/graphql/types/reports/product-label-report.ts +10 -0
- package/server/graphql/types/shipping-provider/index.ts +8 -0
- package/server/graphql/types/shipping-provider/shipping-provider-list.ts +7 -0
- package/server/graphql/types/shipping-provider/shipping-provider.ts +7 -0
- package/things-factory.config.js +30 -0
- package/translations/en.json +91 -11
- package/translations/ko.json +109 -11
- package/translations/ms.json +111 -12
- package/translations/zh.json +123 -26
|
@@ -32,6 +32,7 @@ class WorksheetPicking extends localize(i18next)(PageView) {
|
|
|
32
32
|
_worksheetNo: String,
|
|
33
33
|
_worksheetStatus: String,
|
|
34
34
|
_roNo: String,
|
|
35
|
+
_statusList: Array,
|
|
35
36
|
ganNo: String,
|
|
36
37
|
assignee: Object,
|
|
37
38
|
productGristConfig: Object,
|
|
@@ -119,6 +120,9 @@ class WorksheetPicking extends localize(i18next)(PageView) {
|
|
|
119
120
|
super()
|
|
120
121
|
this.isPalletPickingOrder = false
|
|
121
122
|
this.worksheetDetailData = { records: [] }
|
|
123
|
+
this._statusList = Object.keys(WORKSHEET_STATUS).map(key => {
|
|
124
|
+
return { value: WORKSHEET_STATUS[key].value, display: WORKSHEET_STATUS[key].name }
|
|
125
|
+
})
|
|
122
126
|
}
|
|
123
127
|
|
|
124
128
|
get context() {
|
|
@@ -211,11 +215,12 @@ class WorksheetPicking extends localize(i18next)(PageView) {
|
|
|
211
215
|
: ''}
|
|
212
216
|
|
|
213
217
|
<label>${i18next.t('label.status')}</label>
|
|
214
|
-
<
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
|
|
218
|
+
<input
|
|
219
|
+
name="status"
|
|
220
|
+
value="${this._statusList.find(x => x.value == this._worksheetStatus)?.display || ''}"
|
|
221
|
+
readonly
|
|
222
|
+
disabled
|
|
223
|
+
/>
|
|
219
224
|
|
|
220
225
|
<label>${i18next.t('label.assignee')}</label>
|
|
221
226
|
<input name="assignee" readonly />
|
|
@@ -334,8 +339,10 @@ class WorksheetPicking extends localize(i18next)(PageView) {
|
|
|
334
339
|
product: record.product,
|
|
335
340
|
packingType: record.packingType,
|
|
336
341
|
packingSize: record.packingSize,
|
|
342
|
+
uom: record.uom,
|
|
337
343
|
releaseQty: record.releaseQty,
|
|
338
344
|
releaseUomValue: record.releaseUomValue,
|
|
345
|
+
availableQty: record.availableQty,
|
|
339
346
|
completed: record.completed
|
|
340
347
|
}
|
|
341
348
|
|
|
@@ -366,7 +373,8 @@ class WorksheetPicking extends localize(i18next)(PageView) {
|
|
|
366
373
|
packingType: record.packingType,
|
|
367
374
|
packingSize: record.packingSize,
|
|
368
375
|
releaseQty: record.releaseQty,
|
|
369
|
-
releaseUomValue: record.releaseUomValue
|
|
376
|
+
releaseUomValue: record.releaseUomValue,
|
|
377
|
+
uom: record.uom
|
|
370
378
|
}
|
|
371
379
|
this._showInventoryAssignPopup()
|
|
372
380
|
}
|
|
@@ -390,6 +398,12 @@ class WorksheetPicking extends localize(i18next)(PageView) {
|
|
|
390
398
|
header: i18next.t('field.product'),
|
|
391
399
|
width: 250
|
|
392
400
|
},
|
|
401
|
+
{
|
|
402
|
+
type: 'string',
|
|
403
|
+
name: 'productBrand',
|
|
404
|
+
header: i18next.t('field.brand'),
|
|
405
|
+
width: 100
|
|
406
|
+
},
|
|
393
407
|
{
|
|
394
408
|
type: 'string',
|
|
395
409
|
name: 'packingType',
|
|
@@ -453,6 +467,12 @@ class WorksheetPicking extends localize(i18next)(PageView) {
|
|
|
453
467
|
header: i18next.t('field.product'),
|
|
454
468
|
width: 250
|
|
455
469
|
},
|
|
470
|
+
{
|
|
471
|
+
type: 'string',
|
|
472
|
+
name: 'productBrand',
|
|
473
|
+
header: i18next.t('field.brand'),
|
|
474
|
+
width: 100
|
|
475
|
+
},
|
|
456
476
|
{
|
|
457
477
|
type: 'string',
|
|
458
478
|
name: 'packingType',
|
|
@@ -593,6 +613,14 @@ class WorksheetPicking extends localize(i18next)(PageView) {
|
|
|
593
613
|
}
|
|
594
614
|
|
|
595
615
|
async fetchOrderInventories() {
|
|
616
|
+
// ** duplicated
|
|
617
|
+
// const cartonIdColumnConfig = {
|
|
618
|
+
// type: 'string',
|
|
619
|
+
// name: 'cartonId',
|
|
620
|
+
// header: i18next.t('field.carton_id'),
|
|
621
|
+
// width: 120
|
|
622
|
+
// }
|
|
623
|
+
|
|
596
624
|
if (!this._worksheetNo) return
|
|
597
625
|
const response = await client.query({
|
|
598
626
|
query: gql`
|
|
@@ -636,9 +664,11 @@ class WorksheetPicking extends localize(i18next)(PageView) {
|
|
|
636
664
|
name
|
|
637
665
|
description
|
|
638
666
|
sku
|
|
667
|
+
brand
|
|
639
668
|
}
|
|
640
669
|
packingType
|
|
641
670
|
packingSize
|
|
671
|
+
uom
|
|
642
672
|
releaseQty
|
|
643
673
|
releaseUomValue
|
|
644
674
|
inventory {
|
|
@@ -675,6 +705,8 @@ class WorksheetPicking extends localize(i18next)(PageView) {
|
|
|
675
705
|
releaseUomValue
|
|
676
706
|
status
|
|
677
707
|
inventory {
|
|
708
|
+
qty
|
|
709
|
+
lockedQty
|
|
678
710
|
product {
|
|
679
711
|
name
|
|
680
712
|
description
|
|
@@ -722,7 +754,9 @@ class WorksheetPicking extends localize(i18next)(PageView) {
|
|
|
722
754
|
refNo2: worksheet.releaseGood.refNo2,
|
|
723
755
|
refNo3: worksheet.releaseGood.refNo3,
|
|
724
756
|
ownCollection: worksheet.releaseGood.ownTransport,
|
|
725
|
-
releaseDate: worksheet.releaseGood.releaseDate
|
|
757
|
+
releaseDate: worksheet.releaseGood.releaseDate,
|
|
758
|
+
containerNo: worksheet.containerNo,
|
|
759
|
+
containerLeavingDate: worksheet.containerLeavingDate
|
|
726
760
|
})
|
|
727
761
|
|
|
728
762
|
if (this._worksheetStatus !== WORKSHEET_STATUS.DEACTIVATED.value) this.fetchWorksheetDetails()
|
|
@@ -731,10 +765,13 @@ class WorksheetPicking extends localize(i18next)(PageView) {
|
|
|
731
765
|
(result, ordInv) => {
|
|
732
766
|
if (ordInv.status === ORDER_INVENTORY_STATUS.PENDING_SPLIT.value) {
|
|
733
767
|
ordInv.productSku = ordInv.product.sku
|
|
768
|
+
ordInv.productBrand = ordInv.product.brand
|
|
734
769
|
result.tempOrderInvs.push(ordInv)
|
|
735
770
|
} else {
|
|
736
771
|
ordInv.productSku = ordInv.product.sku
|
|
772
|
+
ordInv.productBrand = ordInv.product.brand
|
|
737
773
|
ordInv.releaseUomValueWithUom = ordInv.releaseUomValue.toFixed(2) + ' ' + ordInv.inventory.uom
|
|
774
|
+
ordInv.availableQty = ordInv.inventory.qty - ordInv.inventory.lockedQty + ordInv.releaseQty
|
|
738
775
|
result.completedOrderInvs.push(ordInv)
|
|
739
776
|
}
|
|
740
777
|
|
|
@@ -779,8 +816,17 @@ class WorksheetPicking extends localize(i18next)(PageView) {
|
|
|
779
816
|
Object.assign({ description: item.description }, item, item?.inventory, item?.inventory?.location)
|
|
780
817
|
)
|
|
781
818
|
}
|
|
819
|
+
} else {
|
|
820
|
+
this.worksheetDetailData = { records: [] }
|
|
782
821
|
}
|
|
783
822
|
|
|
823
|
+
// this code segment is already called inside _updateGristConfig().
|
|
824
|
+
// if (this.worksheetDetailData.records.some(e => e.cartonId)) {
|
|
825
|
+
// const palletIdColumnIdx = this.preWsdGristConfig.columns.map(c => c.name).indexOf('palletId')
|
|
826
|
+
// this.preWsdGristConfig.columns.splice(palletIdColumnIdx, 1, cartonIdColumnConfig)
|
|
827
|
+
// }
|
|
828
|
+
|
|
829
|
+
this._updateGristConfig()
|
|
784
830
|
this.updateContext()
|
|
785
831
|
}
|
|
786
832
|
}
|
|
@@ -861,6 +907,7 @@ class WorksheetPicking extends localize(i18next)(PageView) {
|
|
|
861
907
|
product {
|
|
862
908
|
sku
|
|
863
909
|
name
|
|
910
|
+
brand
|
|
864
911
|
description
|
|
865
912
|
}
|
|
866
913
|
location {
|
|
@@ -888,6 +935,7 @@ class WorksheetPicking extends localize(i18next)(PageView) {
|
|
|
888
935
|
...item.targetInventory.inventory,
|
|
889
936
|
...item.targetInventory.inventory.location,
|
|
890
937
|
productSku: item.targetInventory.inventory.product.sku,
|
|
938
|
+
productBrand: item.targetInventory.inventory.product.brand,
|
|
891
939
|
description: item.description,
|
|
892
940
|
releaseUomValueWithUom:
|
|
893
941
|
item.targetInventory.releaseUomValue.toFixed(2) + ' ' + item.targetInventory.inventory.uom,
|
|
@@ -944,6 +992,7 @@ class WorksheetPicking extends localize(i18next)(PageView) {
|
|
|
944
992
|
product {
|
|
945
993
|
sku
|
|
946
994
|
name
|
|
995
|
+
brand
|
|
947
996
|
description
|
|
948
997
|
}
|
|
949
998
|
zone
|
|
@@ -993,6 +1042,7 @@ class WorksheetPicking extends localize(i18next)(PageView) {
|
|
|
993
1042
|
description: wsd.description,
|
|
994
1043
|
status: wsd.status,
|
|
995
1044
|
productSku: wsd.targetInventory.inventory.product.sku,
|
|
1045
|
+
productBrand: item.targetInventory.inventory.product.brand,
|
|
996
1046
|
releaseQty: wsd.targetInventory.releaseQty,
|
|
997
1047
|
releaseUomValue: wsd.targetInventory.releaseUomValue,
|
|
998
1048
|
releaseUomValueWithUom:
|
|
@@ -1089,7 +1139,10 @@ class WorksheetPicking extends localize(i18next)(PageView) {
|
|
|
1089
1139
|
width: 120
|
|
1090
1140
|
}
|
|
1091
1141
|
|
|
1092
|
-
if (
|
|
1142
|
+
if (
|
|
1143
|
+
this.worksheetDetailData.records.some(e => e.cartonId) &&
|
|
1144
|
+
!this.preWsdGristConfig.columns.find(column => column.name === 'cartonId')
|
|
1145
|
+
) {
|
|
1093
1146
|
const palletIdColumnIdx = this.preWsdGristConfig.columns.map(c => c.name).indexOf('palletId')
|
|
1094
1147
|
this.preWsdGristConfig.columns.splice(palletIdColumnIdx, 1, cartonIdColumnConfig)
|
|
1095
1148
|
}
|
|
@@ -1146,6 +1199,7 @@ class WorksheetPicking extends localize(i18next)(PageView) {
|
|
|
1146
1199
|
.bizplaceId="${this._selectedProduct.bizplaceId}"
|
|
1147
1200
|
.packingType="${this._selectedProduct.packingType}"
|
|
1148
1201
|
.packingSize="${this._selectedProduct.packingSize}"
|
|
1202
|
+
.uom="${this._selectedProduct.uom}"
|
|
1149
1203
|
.releaseQty="${this._selectedProduct.releaseQty}"
|
|
1150
1204
|
.releaseUomValue="${this._selectedProduct.releaseUomValue}"
|
|
1151
1205
|
@completed="${async () => {
|
|
@@ -101,7 +101,7 @@ class WorksheetReturn extends localize(i18next)(PageView) {
|
|
|
101
101
|
accept: ['preview'],
|
|
102
102
|
content: this
|
|
103
103
|
},
|
|
104
|
-
help: 'operato-wms/outbound/worksheet-return'
|
|
104
|
+
help: 'operato-wms/outbound/worksheet-return'
|
|
105
105
|
}
|
|
106
106
|
}
|
|
107
107
|
|
|
@@ -187,6 +187,12 @@ class WorksheetReturn extends localize(i18next)(PageView) {
|
|
|
187
187
|
header: i18next.t('field.product'),
|
|
188
188
|
width: 350
|
|
189
189
|
},
|
|
190
|
+
{
|
|
191
|
+
type: 'string',
|
|
192
|
+
name: 'brand',
|
|
193
|
+
header: i18next.t('field.brand'),
|
|
194
|
+
width: 150
|
|
195
|
+
},
|
|
190
196
|
{
|
|
191
197
|
type: 'string',
|
|
192
198
|
name: 'packingType',
|
|
@@ -251,6 +257,7 @@ class WorksheetReturn extends localize(i18next)(PageView) {
|
|
|
251
257
|
cartonId
|
|
252
258
|
product {
|
|
253
259
|
name
|
|
260
|
+
brand
|
|
254
261
|
description
|
|
255
262
|
}
|
|
256
263
|
packingType
|
|
@@ -285,6 +292,7 @@ class WorksheetReturn extends localize(i18next)(PageView) {
|
|
|
285
292
|
return {
|
|
286
293
|
...worksheetDetail.targetInventory.inventory,
|
|
287
294
|
name: worksheetDetail.name,
|
|
295
|
+
brand: worksheetDetail.targetInventory.inventory.product.brand,
|
|
288
296
|
description: worksheetDetail.description,
|
|
289
297
|
releaseQty: worksheetDetail.targetInventory.releaseQty,
|
|
290
298
|
status: worksheetDetail.status
|
|
@@ -189,6 +189,12 @@ class WorksheetSorting extends localize(i18next)(PageView) {
|
|
|
189
189
|
header: i18next.t('field.product'),
|
|
190
190
|
width: 350
|
|
191
191
|
},
|
|
192
|
+
{
|
|
193
|
+
type: 'string',
|
|
194
|
+
name: 'productBrand',
|
|
195
|
+
header: i18next.t('field.brand'),
|
|
196
|
+
width: 150
|
|
197
|
+
},
|
|
192
198
|
{
|
|
193
199
|
type: 'string',
|
|
194
200
|
name: 'packingType',
|
|
@@ -263,6 +269,7 @@ class WorksheetSorting extends localize(i18next)(PageView) {
|
|
|
263
269
|
product {
|
|
264
270
|
name
|
|
265
271
|
sku
|
|
272
|
+
brand
|
|
266
273
|
description
|
|
267
274
|
}
|
|
268
275
|
}
|
|
@@ -292,7 +299,8 @@ class WorksheetSorting extends localize(i18next)(PageView) {
|
|
|
292
299
|
...worksheetDetail.targetInventory,
|
|
293
300
|
...worksheetDetail.targetInventory.product,
|
|
294
301
|
...worksheetDetail.targetInventory.inventory,
|
|
295
|
-
productSku: worksheetDetail.targetInventory.inventory.product.sku
|
|
302
|
+
productSku: worksheetDetail.targetInventory.inventory.product.sku,
|
|
303
|
+
productBrand: worksheetDetail.targetInventory.inventory.product.brand
|
|
296
304
|
}
|
|
297
305
|
})
|
|
298
306
|
}
|
|
@@ -183,10 +183,10 @@ class ElcclInventoryReport extends connect(store)(localize(i18next)(PageView)) {
|
|
|
183
183
|
},
|
|
184
184
|
{
|
|
185
185
|
type: 'string',
|
|
186
|
-
name: '
|
|
186
|
+
name: 'orderNo',
|
|
187
187
|
header: i18next.t('field.order_no'),
|
|
188
188
|
sortable: true,
|
|
189
|
-
imex: { header: i18next.t('field.order_no'), key: '
|
|
189
|
+
imex: { header: i18next.t('field.order_no'), key: 'orderNo', width: 25, type: 'string' },
|
|
190
190
|
width: 300
|
|
191
191
|
},
|
|
192
192
|
{
|
|
@@ -235,7 +235,7 @@ class ElcclInventoryReport extends connect(store)(localize(i18next)(PageView)) {
|
|
|
235
235
|
this._config = this.reportConfig
|
|
236
236
|
}
|
|
237
237
|
|
|
238
|
-
|
|
238
|
+
pageUpdated(changes, lifecycle) {
|
|
239
239
|
if (this.active) {
|
|
240
240
|
this.report.fetch()
|
|
241
241
|
}
|
|
@@ -247,30 +247,8 @@ class ElcclInventoryReport extends connect(store)(localize(i18next)(PageView)) {
|
|
|
247
247
|
|
|
248
248
|
const response = await client.query({
|
|
249
249
|
query: gql`
|
|
250
|
-
query {
|
|
251
|
-
elcclInventoryHistoryReport(${
|
|
252
|
-
filters: [
|
|
253
|
-
...this.searchForm.queryFilters.map(filter => {
|
|
254
|
-
switch (filter.name) {
|
|
255
|
-
case 'fromDate':
|
|
256
|
-
let fromDt = new Date(filter.value)
|
|
257
|
-
fromDt.setHours(0)
|
|
258
|
-
filter.value = fromDt.toISOString()
|
|
259
|
-
break
|
|
260
|
-
case 'toDate':
|
|
261
|
-
let toDt = new Date(filter.value)
|
|
262
|
-
toDt.setHours(23, 59, 59)
|
|
263
|
-
filter.value = toDt.toISOString()
|
|
264
|
-
break
|
|
265
|
-
default:
|
|
266
|
-
break
|
|
267
|
-
}
|
|
268
|
-
return filter
|
|
269
|
-
})
|
|
270
|
-
],
|
|
271
|
-
pagination: { page, limit },
|
|
272
|
-
sortings: sorters
|
|
273
|
-
})}) {
|
|
250
|
+
query elcclInventoryHistoryReport($filters: [Filter], $pagination: Pagination, $sortings: [Sorting]) {
|
|
251
|
+
elcclInventoryHistoryReport(filters: $filters, pagination: $pagination, sortings: $sortings) {
|
|
274
252
|
batchId
|
|
275
253
|
product {
|
|
276
254
|
sku
|
|
@@ -283,11 +261,34 @@ class ElcclInventoryReport extends connect(store)(localize(i18next)(PageView)) {
|
|
|
283
261
|
openingUomValue
|
|
284
262
|
qty
|
|
285
263
|
uomValue
|
|
286
|
-
|
|
264
|
+
orderNo
|
|
287
265
|
createdAt
|
|
288
266
|
}
|
|
289
267
|
}
|
|
290
|
-
|
|
268
|
+
`,
|
|
269
|
+
variables: {
|
|
270
|
+
filters: [
|
|
271
|
+
...this.searchForm.queryFilters.map(filter => {
|
|
272
|
+
switch (filter.name) {
|
|
273
|
+
case 'fromDate':
|
|
274
|
+
let fromDt = new Date(filter.value)
|
|
275
|
+
fromDt.setHours(0)
|
|
276
|
+
filter.value = fromDt.toISOString()
|
|
277
|
+
break
|
|
278
|
+
case 'toDate':
|
|
279
|
+
let toDt = new Date(filter.value)
|
|
280
|
+
toDt.setHours(23, 59, 59)
|
|
281
|
+
filter.value = toDt.toISOString()
|
|
282
|
+
break
|
|
283
|
+
default:
|
|
284
|
+
break
|
|
285
|
+
}
|
|
286
|
+
return filter
|
|
287
|
+
})
|
|
288
|
+
],
|
|
289
|
+
pagination: { page, limit },
|
|
290
|
+
sortings: sorters
|
|
291
|
+
}
|
|
291
292
|
})
|
|
292
293
|
return {
|
|
293
294
|
total: 0,
|
|
@@ -302,7 +303,7 @@ class ElcclInventoryReport extends connect(store)(localize(i18next)(PageView)) {
|
|
|
302
303
|
}) || []
|
|
303
304
|
}
|
|
304
305
|
} catch (e) {
|
|
305
|
-
|
|
306
|
+
this._showToast(e)
|
|
306
307
|
}
|
|
307
308
|
}
|
|
308
309
|
|
|
@@ -7,7 +7,7 @@ import { connect } from 'pwa-helpers/connect-mixin'
|
|
|
7
7
|
|
|
8
8
|
import { i18next, localize } from '@things-factory/i18n-base'
|
|
9
9
|
import { client, PageView, store } from '@things-factory/shell'
|
|
10
|
-
import { flattenObject,
|
|
10
|
+
import { flattenObject, isMobileDevice } from '@things-factory/utils'
|
|
11
11
|
|
|
12
12
|
class ElcclInventorySummaryReport extends connect(store)(localize(i18next)(PageView)) {
|
|
13
13
|
static get styles() {
|
|
@@ -243,7 +243,7 @@ class ElcclInventorySummaryReport extends connect(store)(localize(i18next)(PageV
|
|
|
243
243
|
this._config = this.reportConfig
|
|
244
244
|
}
|
|
245
245
|
|
|
246
|
-
|
|
246
|
+
pageUpdated(changes, lifecycle) {
|
|
247
247
|
if (this.active) {
|
|
248
248
|
this.dataGrist.fetch()
|
|
249
249
|
}
|
|
@@ -271,33 +271,30 @@ class ElcclInventorySummaryReport extends connect(store)(localize(i18next)(PageV
|
|
|
271
271
|
})
|
|
272
272
|
const response = await client.query({
|
|
273
273
|
query: gql`
|
|
274
|
-
|
|
275
|
-
|
|
276
|
-
|
|
277
|
-
|
|
278
|
-
|
|
279
|
-
|
|
280
|
-
|
|
281
|
-
|
|
282
|
-
|
|
283
|
-
|
|
284
|
-
id
|
|
285
|
-
sku
|
|
286
|
-
name
|
|
287
|
-
description
|
|
288
|
-
}
|
|
289
|
-
adjustmentQty
|
|
290
|
-
closingQty
|
|
291
|
-
totalInQty
|
|
292
|
-
totalOutQty
|
|
293
|
-
totalReturnQty
|
|
294
|
-
initialQty
|
|
295
|
-
initialDate
|
|
274
|
+
query elcclInventoryHistorySummaryReport($filters: [Filter], $pagination: Pagination, $sortings: [Sorting]) {
|
|
275
|
+
elcclInventoryHistorySummaryReport(filters: $filters, pagination: $pagination, sortings: $sortings) {
|
|
276
|
+
items {
|
|
277
|
+
batchId
|
|
278
|
+
packingType
|
|
279
|
+
product {
|
|
280
|
+
id
|
|
281
|
+
sku
|
|
282
|
+
name
|
|
283
|
+
description
|
|
296
284
|
}
|
|
297
|
-
|
|
285
|
+
adjustmentQty
|
|
286
|
+
closingQty
|
|
287
|
+
totalInQty
|
|
288
|
+
totalOutQty
|
|
289
|
+
totalReturnQty
|
|
290
|
+
initialQty
|
|
291
|
+
initialDate
|
|
298
292
|
}
|
|
293
|
+
total
|
|
299
294
|
}
|
|
300
|
-
|
|
295
|
+
}
|
|
296
|
+
`,
|
|
297
|
+
variables: { filters: filter, pagination: { page, limit }, sortings: sorters }
|
|
301
298
|
})
|
|
302
299
|
return {
|
|
303
300
|
total: response.data.elcclInventoryHistorySummaryReport.total,
|
|
@@ -8,7 +8,7 @@ import { connect } from 'pwa-helpers/connect-mixin'
|
|
|
8
8
|
import { getCodeByName } from '@things-factory/code-base'
|
|
9
9
|
import { i18next, localize } from '@things-factory/i18n-base'
|
|
10
10
|
import { client, PageView, store } from '@things-factory/shell'
|
|
11
|
-
import { flattenObject,
|
|
11
|
+
import { flattenObject, isMobileDevice } from '@things-factory/utils'
|
|
12
12
|
|
|
13
13
|
class InventoryPalletStorageReport extends connect(store)(localize(i18next)(PageView)) {
|
|
14
14
|
static get styles() {
|
|
@@ -254,7 +254,7 @@ class InventoryPalletStorageReport extends connect(store)(localize(i18next)(Page
|
|
|
254
254
|
this._config = this.reportConfig
|
|
255
255
|
}
|
|
256
256
|
|
|
257
|
-
|
|
257
|
+
pageUpdated(changes, lifecycle) {
|
|
258
258
|
if (this.active) {
|
|
259
259
|
this.dataGrist.fetch()
|
|
260
260
|
}
|
|
@@ -285,13 +285,13 @@ class InventoryPalletStorageReport extends connect(store)(localize(i18next)(Page
|
|
|
285
285
|
|
|
286
286
|
const response = await client.query({
|
|
287
287
|
query: gql`
|
|
288
|
-
query
|
|
289
|
-
|
|
290
|
-
|
|
291
|
-
|
|
292
|
-
|
|
293
|
-
|
|
294
|
-
items{
|
|
288
|
+
query inventoryHistoryPalletStorageReport(
|
|
289
|
+
$filters: [Filter!]
|
|
290
|
+
$pagination: Pagination
|
|
291
|
+
$sortings: [Sorting!]
|
|
292
|
+
) {
|
|
293
|
+
inventoryHistoryPalletStorageReport(filters: $filters, pagination: $pagination, sortings: $sortings) {
|
|
294
|
+
items {
|
|
295
295
|
bizplace {
|
|
296
296
|
name
|
|
297
297
|
}
|
|
@@ -309,7 +309,8 @@ class InventoryPalletStorageReport extends connect(store)(localize(i18next)(Page
|
|
|
309
309
|
totalWithOpeningBalance
|
|
310
310
|
}
|
|
311
311
|
}
|
|
312
|
-
|
|
312
|
+
`,
|
|
313
|
+
variables: { filters: filter, pagination: { page, limit }, sortings: sorters }
|
|
313
314
|
})
|
|
314
315
|
|
|
315
316
|
let data = {
|
|
@@ -7,7 +7,7 @@ import { connect } from 'pwa-helpers/connect-mixin'
|
|
|
7
7
|
|
|
8
8
|
import { i18next, localize } from '@things-factory/i18n-base'
|
|
9
9
|
import { client, PageView, store } from '@things-factory/shell'
|
|
10
|
-
import { flattenObject
|
|
10
|
+
import { flattenObject } from '@things-factory/utils'
|
|
11
11
|
|
|
12
12
|
class InventoryReport extends connect(store)(localize(i18next)(PageView)) {
|
|
13
13
|
static get styles() {
|
|
@@ -208,10 +208,10 @@ class InventoryReport extends connect(store)(localize(i18next)(PageView)) {
|
|
|
208
208
|
},
|
|
209
209
|
{
|
|
210
210
|
type: 'string',
|
|
211
|
-
name: '
|
|
211
|
+
name: 'orderNo',
|
|
212
212
|
header: i18next.t('field.order_no'),
|
|
213
213
|
sortable: true,
|
|
214
|
-
imex: { header: i18next.t('field.order_no'), key: '
|
|
214
|
+
imex: { header: i18next.t('field.order_no'), key: 'orderNo', width: 25, type: 'string' },
|
|
215
215
|
width: 300
|
|
216
216
|
},
|
|
217
217
|
{
|
|
@@ -260,7 +260,7 @@ class InventoryReport extends connect(store)(localize(i18next)(PageView)) {
|
|
|
260
260
|
this._config = this.reportConfig
|
|
261
261
|
}
|
|
262
262
|
|
|
263
|
-
|
|
263
|
+
pageUpdated(changes, lifecycle) {
|
|
264
264
|
if (this.active) {
|
|
265
265
|
this.report.fetch()
|
|
266
266
|
}
|
|
@@ -273,32 +273,8 @@ class InventoryReport extends connect(store)(localize(i18next)(PageView)) {
|
|
|
273
273
|
var tzoffset = new Date().getTimezoneOffset() * 60
|
|
274
274
|
const response = await client.query({
|
|
275
275
|
query: gql`
|
|
276
|
-
query {
|
|
277
|
-
inventoryHistoryReport(${
|
|
278
|
-
filters: [
|
|
279
|
-
...this.searchForm.queryFilters.map(filter => {
|
|
280
|
-
switch (filter.name) {
|
|
281
|
-
case 'fromDate':
|
|
282
|
-
let fromDt = new Date(filter.value)
|
|
283
|
-
fromDt.setHours(0)
|
|
284
|
-
filter.value = fromDt.toISOString()
|
|
285
|
-
break
|
|
286
|
-
case 'toDate':
|
|
287
|
-
let toDt = new Date(filter.value)
|
|
288
|
-
toDt.setHours(23, 59, 59)
|
|
289
|
-
filter.value = toDt.toISOString()
|
|
290
|
-
break
|
|
291
|
-
default:
|
|
292
|
-
break
|
|
293
|
-
}
|
|
294
|
-
|
|
295
|
-
return filter
|
|
296
|
-
}),
|
|
297
|
-
{ name: 'tzoffset', operator: 'custom', value: tzoffset }
|
|
298
|
-
],
|
|
299
|
-
pagination: { page, limit },
|
|
300
|
-
sortings: sorters
|
|
301
|
-
})}) {
|
|
276
|
+
query inventoryHistoryReport($filters: [Filter!], $pagination: Pagination, $sortings: [Sorting!]) {
|
|
277
|
+
inventoryHistoryReport(filters: $filters, pagination: $pagination, sortings: $sortings) {
|
|
302
278
|
palletId
|
|
303
279
|
batchId
|
|
304
280
|
bizplace {
|
|
@@ -313,15 +289,38 @@ class InventoryReport extends connect(store)(localize(i18next)(PageView)) {
|
|
|
313
289
|
qty
|
|
314
290
|
uom
|
|
315
291
|
uomValue
|
|
316
|
-
status
|
|
317
292
|
packingType
|
|
318
|
-
|
|
319
|
-
orderName
|
|
293
|
+
orderNo
|
|
320
294
|
orderRefNo
|
|
321
295
|
createdAt
|
|
322
296
|
}
|
|
323
297
|
}
|
|
324
|
-
|
|
298
|
+
`,
|
|
299
|
+
variables: {
|
|
300
|
+
filters: [
|
|
301
|
+
...this.searchForm.queryFilters.map(filter => {
|
|
302
|
+
switch (filter.name) {
|
|
303
|
+
case 'fromDate':
|
|
304
|
+
let fromDt = new Date(filter.value)
|
|
305
|
+
fromDt.setHours(0)
|
|
306
|
+
filter.value = fromDt.toISOString()
|
|
307
|
+
break
|
|
308
|
+
case 'toDate':
|
|
309
|
+
let toDt = new Date(filter.value)
|
|
310
|
+
toDt.setHours(23, 59, 59)
|
|
311
|
+
filter.value = toDt.toISOString()
|
|
312
|
+
break
|
|
313
|
+
default:
|
|
314
|
+
break
|
|
315
|
+
}
|
|
316
|
+
|
|
317
|
+
return filter
|
|
318
|
+
}),
|
|
319
|
+
{ name: 'tzoffset', operator: 'custom', value: tzoffset }
|
|
320
|
+
],
|
|
321
|
+
pagination: { page, limit },
|
|
322
|
+
sortings: sorters
|
|
323
|
+
}
|
|
325
324
|
})
|
|
326
325
|
return {
|
|
327
326
|
total: 0,
|
|
@@ -411,17 +410,16 @@ class InventoryReport extends connect(store)(localize(i18next)(PageView)) {
|
|
|
411
410
|
} else {
|
|
412
411
|
const response = await client.query({
|
|
413
412
|
query: gql`
|
|
414
|
-
|
|
415
|
-
|
|
416
|
-
|
|
417
|
-
|
|
418
|
-
|
|
419
|
-
id
|
|
420
|
-
name
|
|
421
|
-
}
|
|
413
|
+
query productsByBizplace($filters: [Filter!]) {
|
|
414
|
+
productsByBizplace(filters: $filters) {
|
|
415
|
+
items {
|
|
416
|
+
id
|
|
417
|
+
name
|
|
422
418
|
}
|
|
423
419
|
}
|
|
424
|
-
|
|
420
|
+
}
|
|
421
|
+
`,
|
|
422
|
+
variables: { filters: [...bizplace] }
|
|
425
423
|
})
|
|
426
424
|
|
|
427
425
|
if (!response.errors) {
|