@things-factory/operato-wms 4.3.11 → 4.3.16

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.
@@ -154,6 +154,9 @@ class PalletLabelPopup extends connect(store)(localize(i18next)(LitElement)) {
154
154
  packingType
155
155
  palletId
156
156
  remark
157
+ orderProductRemark
158
+ purchaseOrderNo
159
+ arrivalNoticeRefNo
157
160
  }
158
161
  }
159
162
  `,
@@ -188,6 +191,9 @@ class PalletLabelPopup extends connect(store)(localize(i18next)(LitElement)) {
188
191
  searchParams.append('remark', results[i].remark)
189
192
  searchParams.append('batchRef', results[i].batchIdRef)
190
193
  searchParams.append('expirationDate', '')
194
+ searchParams.append('orderProductRemark', results[i].orderProductRemark)
195
+ searchParams.append('purchaseOrderNo', results[i].purchaseOrderNo)
196
+ searchParams.append('refNo', results[i].arrivalNoticeRefNo)
191
197
  try {
192
198
  const response = await fetch(`label-command/${labelId}?${searchParams.toString()}`, {
193
199
  method: 'GET'
@@ -582,6 +582,9 @@ class InventoryAdjustment extends connect(store)(localize(i18next)(PageView)) {
582
582
  expirationDate
583
583
  unitCost
584
584
  inventoryItemCount
585
+ purchaseOrderNo
586
+ orderProductRemark
587
+ arrivalNoticeRefNo
585
588
  }
586
589
  total
587
590
  }
@@ -709,15 +712,17 @@ class InventoryAdjustment extends connect(store)(localize(i18next)(PageView)) {
709
712
  const record = event.detail
710
713
  const columnName = event.detail.column.name
711
714
 
712
- if (columnName === 'bizplace' && record.before?.bizplace?.id != record.after?.bizplace?.id) {
715
+ if (
716
+ columnName === 'bizplace' &&
717
+ record.before?.bizplace?.id != record.after?.bizplace?.id &&
718
+ this.dataGrist._data.records[record.row].lockedQty <= 0
719
+ ) {
713
720
  delete this.dataGrist._data.records[event.detail.row].product
714
721
  delete this.dataGrist._data.records[event.detail.row].sku
715
722
  delete this.dataGrist._data.records[event.detail.row].brand
716
723
  delete this.dataGrist._data.records[event.detail.row].packingType
717
724
  delete this.dataGrist._data.records[event.detail.row].packingSize
718
725
  delete this.dataGrist._data.records[event.detail.row].uom
719
- delete this.dataGrist._data.records[event.detail.row].qty
720
- delete this.dataGrist._data.records[event.detail.row].uomValue
721
726
  }
722
727
  }
723
728
 
@@ -726,6 +731,15 @@ class InventoryAdjustment extends connect(store)(localize(i18next)(PageView)) {
726
731
 
727
732
  let item = e.target.localName == 'import-pop-up' ? popUpDataGrist : this.dataGrist
728
733
 
734
+ if (
735
+ item._data.records[e.detail.row].lockedQty > 0 &&
736
+ (e.detail.column.name == 'batchId' || e.detail.column.name == 'product' || e.detail.column.name == 'bizplace')
737
+ ) {
738
+ this._showToast({ level: 'error', message: i18next.t('text.there_is_release_qty_no_amendment_is_allowed') })
739
+ item._data.records[e.detail.row][e.detail.column.name] = e.detail.before
740
+ return
741
+ }
742
+
729
743
  switch (e.detail.column.name) {
730
744
  case 'uomValue':
731
745
  if (e.detail.after < 0 || e.detail.after.toString() == NaN.toString()) {
@@ -755,6 +769,21 @@ class InventoryAdjustment extends connect(store)(localize(i18next)(PageView)) {
755
769
 
756
770
  item._data.records[e.detail.row].sku = e.detail.after?.sku ? e.detail.after.sku : ''
757
771
  break
772
+ case 'bizplace':
773
+ item._data.records[e.detail.row].uom = ''
774
+
775
+ item._data.records[e.detail.row].packingType = ''
776
+
777
+ item._data.records[e.detail.row].packingSize = 1
778
+
779
+ item._data.records[e.detail.row].brand = ''
780
+
781
+ item._data.records[e.detail.row].sku = ''
782
+
783
+ item._data.records[e.detail.row].qty = e.detail.record.qty
784
+
785
+ item._data.records[e.detail.row].uomValue = e.detail.record.uomValue
786
+ break
758
787
  default:
759
788
  break
760
789
  }
@@ -821,6 +850,13 @@ class InventoryAdjustment extends connect(store)(localize(i18next)(PageView)) {
821
850
  throw new Error(i18next.t('text.empty_value_in_list'))
822
851
  }
823
852
  }
853
+
854
+ if (row.cuFlag == 'M' && row.bizplace) {
855
+ if (!row.product) {
856
+ throw new Error(i18next.t('text.empty_value_in_list'))
857
+ }
858
+ }
859
+
824
860
  if (row.bizplace) {
825
861
  row.bizplace = { id: row.bizplace.id }
826
862
  }
@@ -1291,6 +1327,9 @@ class InventoryAdjustment extends connect(store)(localize(i18next)(PageView)) {
1291
1327
  searchParams.append('remark', record.remark)
1292
1328
  searchParams.append('batchRef', record.batchIdRef)
1293
1329
  searchParams.append('expirationDate', record.expirationDate)
1330
+ searchParams.append('purchaseOrderNo', record.purchaseOrderNo)
1331
+ searchParams.append('orderProductRemark', record.orderProductRemark)
1332
+ searchParams.append('refNo', record.arrivalNoticeRefNo)
1294
1333
 
1295
1334
  try {
1296
1335
  const response = await fetch(`label-command/${labelId}?${searchParams.toString()}`, {
@@ -1023,6 +1023,9 @@ class PickingProduct extends connect(store)(localize(i18next)(PageView)) {
1023
1023
  }
1024
1024
 
1025
1025
  if (!response.errors) {
1026
+ if (this._hasBinPicking) {
1027
+ this._currentBinLocation = this.binLocationInput.value
1028
+ }
1026
1029
  if (this._isRequireSerialNumberScanningOutbound) this.serialInput.value = ''
1027
1030
  else if (this._enableProductScanning) this.productBarcodeInput.value = ''
1028
1031
  else this.releaseQtyInput.value = ''
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@things-factory/operato-wms",
3
- "version": "4.3.11",
3
+ "version": "4.3.16",
4
4
  "main": "dist-server/index.js",
5
5
  "browser": "client/index.js",
6
6
  "things-factory": true,
@@ -63,60 +63,60 @@
63
63
  "@operato/scene-tab": "^0.1.6",
64
64
  "@operato/scene-table": "^0.1.6",
65
65
  "@operato/scene-wheel-sorter": "^0.1.6",
66
- "@things-factory/apptool-ui": "^4.3.11",
67
- "@things-factory/attachment-ui": "^4.3.11",
68
- "@things-factory/auth-ui": "^4.3.11",
69
- "@things-factory/barcode-ui": "^4.3.11",
70
- "@things-factory/biz-ui": "^4.3.11",
71
- "@things-factory/board-service": "^4.3.11",
72
- "@things-factory/board-ui": "^4.3.11",
73
- "@things-factory/code-ui": "^4.3.11",
74
- "@things-factory/context-ui": "^4.3.11",
75
- "@things-factory/export-ui": "^4.3.11",
76
- "@things-factory/export-ui-csv": "^4.3.11",
77
- "@things-factory/export-ui-excel": "^4.3.11",
78
- "@things-factory/fav-base": "^4.3.11",
79
- "@things-factory/form-ui": "^4.3.11",
80
- "@things-factory/grist-ui": "^4.3.11",
81
- "@things-factory/help": "^4.3.11",
82
- "@things-factory/i18n-base": "^4.3.11",
83
- "@things-factory/id-rule-base": "^4.3.11",
84
- "@things-factory/import-ui": "^4.3.11",
85
- "@things-factory/import-ui-excel": "^4.3.11",
86
- "@things-factory/menu-ui": "^4.3.11",
87
- "@things-factory/more-ui": "^4.3.11",
88
- "@things-factory/notification": "^4.3.11",
89
- "@things-factory/pdf": "^4.3.11",
90
- "@things-factory/print-proxy-service": "^4.3.11",
91
- "@things-factory/print-service": "^4.3.11",
92
- "@things-factory/print-ui": "^4.3.11",
93
- "@things-factory/product-base": "^4.3.11",
94
- "@things-factory/resource-ui": "^4.3.11",
95
- "@things-factory/sales-ui": "^4.3.11",
96
- "@things-factory/scene-data-transform": "^4.3.11",
97
- "@things-factory/scene-excel": "^4.3.11",
98
- "@things-factory/scene-firebase": "^4.3.11",
99
- "@things-factory/scene-form": "^4.3.11",
100
- "@things-factory/scene-google-map": "^4.3.11",
101
- "@things-factory/scene-graphql": "^4.3.11",
102
- "@things-factory/scene-label": "^4.3.11",
103
- "@things-factory/scene-marker": "^4.3.11",
104
- "@things-factory/scene-mqtt": "^4.3.11",
105
- "@things-factory/scene-restful": "^4.3.11",
106
- "@things-factory/scene-visualizer": "^4.3.11",
107
- "@things-factory/setting-ui": "^4.3.11",
108
- "@things-factory/system-ui": "^4.3.11",
109
- "@things-factory/transport-base": "^4.3.11",
110
- "@things-factory/tutorial-ui": "^4.3.11",
111
- "@things-factory/warehouse-base": "^4.3.11",
112
- "@things-factory/worksheet-base": "^4.3.11"
66
+ "@things-factory/apptool-ui": "^4.3.14",
67
+ "@things-factory/attachment-ui": "^4.3.14",
68
+ "@things-factory/auth-ui": "^4.3.14",
69
+ "@things-factory/barcode-ui": "^4.3.14",
70
+ "@things-factory/biz-ui": "^4.3.14",
71
+ "@things-factory/board-service": "^4.3.14",
72
+ "@things-factory/board-ui": "^4.3.14",
73
+ "@things-factory/code-ui": "^4.3.14",
74
+ "@things-factory/context-ui": "^4.3.14",
75
+ "@things-factory/export-ui": "^4.3.14",
76
+ "@things-factory/export-ui-csv": "^4.3.14",
77
+ "@things-factory/export-ui-excel": "^4.3.14",
78
+ "@things-factory/fav-base": "^4.3.14",
79
+ "@things-factory/form-ui": "^4.3.14",
80
+ "@things-factory/grist-ui": "^4.3.14",
81
+ "@things-factory/help": "^4.3.14",
82
+ "@things-factory/i18n-base": "^4.3.14",
83
+ "@things-factory/id-rule-base": "^4.3.14",
84
+ "@things-factory/import-ui": "^4.3.14",
85
+ "@things-factory/import-ui-excel": "^4.3.14",
86
+ "@things-factory/menu-ui": "^4.3.14",
87
+ "@things-factory/more-ui": "^4.3.14",
88
+ "@things-factory/notification": "^4.3.14",
89
+ "@things-factory/pdf": "^4.3.14",
90
+ "@things-factory/print-proxy-service": "^4.3.14",
91
+ "@things-factory/print-service": "^4.3.14",
92
+ "@things-factory/print-ui": "^4.3.14",
93
+ "@things-factory/product-base": "^4.3.14",
94
+ "@things-factory/resource-ui": "^4.3.14",
95
+ "@things-factory/sales-ui": "^4.3.16",
96
+ "@things-factory/scene-data-transform": "^4.3.14",
97
+ "@things-factory/scene-excel": "^4.3.14",
98
+ "@things-factory/scene-firebase": "^4.3.14",
99
+ "@things-factory/scene-form": "^4.3.14",
100
+ "@things-factory/scene-google-map": "^4.3.14",
101
+ "@things-factory/scene-graphql": "^4.3.14",
102
+ "@things-factory/scene-label": "^4.3.14",
103
+ "@things-factory/scene-marker": "^4.3.14",
104
+ "@things-factory/scene-mqtt": "^4.3.14",
105
+ "@things-factory/scene-restful": "^4.3.14",
106
+ "@things-factory/scene-visualizer": "^4.3.14",
107
+ "@things-factory/setting-ui": "^4.3.14",
108
+ "@things-factory/system-ui": "^4.3.14",
109
+ "@things-factory/transport-base": "^4.3.14",
110
+ "@things-factory/tutorial-ui": "^4.3.14",
111
+ "@things-factory/warehouse-base": "^4.3.16",
112
+ "@things-factory/worksheet-base": "^4.3.16"
113
113
  },
114
114
  "devDependencies": {
115
- "@things-factory/builder": "^4.3.11",
115
+ "@things-factory/builder": "^4.3.14",
116
116
  "cypress": "^9.4.1",
117
117
  "cypress-file-upload": "^5.0.8",
118
118
  "cypress-localstorage-commands": "^1.6.1",
119
119
  "eslint-plugin-cypress": "^2.12.1"
120
120
  },
121
- "gitHead": "a16381e8ddcabf722fa3590abebe32baa34fc125"
121
+ "gitHead": "62892327e53288b479a13a53043067c678cd9bfc"
122
122
  }
@@ -9,26 +9,40 @@ export const outboundOrderByStatusResolver = {
9
9
 
10
10
  const orderStatus: { status: string; count: number }[] = await tx.query(
11
11
  `
12
- (
12
+ WITH cte_list ("status", "count") as (
13
+ select 'DONE' as status, 0 as "count"
14
+ union
15
+ select 'CANCELLED' as status, 0 as "count"
16
+ union
17
+ select 'PICKING UNASSIGNED' as status, 0 as "count"
18
+ union
19
+ select 'PACKING' as status, 0 as "count"
20
+ union
21
+ select 'AWAITING DISPATCH' as status, 0 as "count"
22
+ union
23
+ select 'OUT FROM WAREHOUSE' as status, 0 as "count"
24
+ union
25
+ select 'PICKING ASSIGNED' as status, 0 as "count"
26
+ union
27
+ select 'OTHERS' as status, 0 as "count"
28
+ ) select l."status", coalesce(src."count", l."count") as "count"
29
+ from cte_list l
30
+ left join (
13
31
  SELECT "status", COUNT(*) AS "count" FROM (
14
32
  SELECT
15
33
  CASE WHEN "status" = 'DONE' and rg.updated_at::date = CURRENT_DATE THEN 'DONE'
16
34
  WHEN "status" = 'CANCELLED' THEN 'CANCELLED'
17
- WHEN "status" IN('PENDING', 'PENDING_RECEIVE', 'PENDING_WORKSHEET', 'READY_TO_PICK') THEN 'PICKING UNASSIGNED'
18
- WHEN "status" IN('READY_TO_PACK', 'PACKING') THEN 'PACKING'
19
- WHEN "dispatchment_status" = 'READY_TO_DISPATCH' and "tracking_no" NOTNULL and "status" NOT IN ('CANCELLED', 'PENDING_CANCEL') THEN 'AWAITING DISPATCH'
20
- WHEN "dispatchment_status" = 'DISPATCHED' and "tracking_no" NOTNULL and "status" NOT IN ('CANCELLED', 'PENDING_CANCEL') THEN 'OUT FROM WAREHOUSE'
35
+ WHEN "status" IN('PENDING_RECEIVE', 'PENDING_WORKSHEET') THEN 'PICKING UNASSIGNED'
21
36
  END AS "status"
22
37
  FROM release_goods rg
23
38
  WHERE "domain_id" = $1
24
39
  AND rg."status" IN ('CANCELLED','PENDING', 'PENDING_RECEIVE', 'PENDING_WORKSHEET', 'READY_TO_PICK', 'PICKING', 'READY_TO_PACK', 'PACKING', 'DONE')
25
40
  ) AS foo
26
41
  GROUP BY "status"
27
- ) UNION ALL (
42
+ UNION ALL
28
43
  SELECT "status", COUNT(*) AS "count" FROM (
29
44
  SELECT
30
- CASE WHEN "dispatchment_status" = 'READY_TO_DISPATCH' and tracking_no NOTNULL THEN 'AWAITING DISPATCH'
31
- WHEN "dispatchment_status" = 'DISPATCHED' THEN 'OUT FROM WAREHOUSE'
45
+ CASE WHEN "dispatchment_status" = 'DISPATCHED' THEN 'OUT FROM WAREHOUSE'
32
46
  END AS "status"
33
47
  FROM release_goods rg
34
48
  WHERE "domain_id" = $1
@@ -36,18 +50,22 @@ export const outboundOrderByStatusResolver = {
36
50
  AND rg."status" NOT IN ('CANCELLED', 'PENDING_CANCEL')
37
51
  AND rg."tracking_no" NOTNULL
38
52
  ) AS foo
39
- GROUP BY "status"
40
- ) UNION ALL (
41
- SELECT "status", COUNT(*) AS "count" FROM (
42
- SELECT
43
- CASE WHEN "status" IN('PENDING', 'PENDING_RECEIVE', 'PENDING_WORKSHEET', 'READY_TO_PICK', 'PICKING') THEN 'PICKING ASSIGNED'
44
- END AS "status"
45
- FROM release_goods rg
46
- WHERE "domain_id" = $1
47
- AND rg."status" IN ('PENDING', 'PENDING_RECEIVE', 'PENDING_WORKSHEET', 'READY_TO_PICK', 'PICKING')
48
- ) AS foo
49
- GROUP BY "status"
50
- )
53
+ GROUP BY "status"
54
+ union all
55
+ select 'AWAITING DISPATCH' as "status", count(*) from manifests m
56
+ inner join release_goods rg ON rg.manifest_id = m.id
57
+ where m."status" = 'OPEN' and m."domain_id" = $1
58
+ union all
59
+ select 'PICKING ASSIGNED' as "status", count(*) from worksheets w
60
+ where w."domain_id" = $1 and w."type" ='PICKING'
61
+ and w."status" in ('DEACTIVATED','EXECUTING','PENDING_CANCEL')
62
+ group by w."status"
63
+ union all
64
+ select 'PACKING' as "status", count(*) from worksheets w
65
+ where w."domain_id" = $1 and w."type" ='PACKING'
66
+ and w."status" in ('DEACTIVATED','EXECUTING','PENDING_CANCEL')
67
+ group by w."status"
68
+ ) src on src."status" = l."status"
51
69
  `,
52
70
  [domain.id]
53
71
  )
@@ -1376,6 +1376,7 @@
1376
1376
  "text.there_is_non_assigned_vas": "there is non-assigned vas",
1377
1377
  "text.there_is_not_ready_vas": "there is not ready vas",
1378
1378
  "text.there_is_nothing_to_restore": "there is nothing to restore",
1379
+ "text.there_is_release_qty_no_amendment_is_allowed": "there is release qty, no amendment is allowed",
1379
1380
  "text.there_is_uncompleted_task": "there is uncompleted task",
1380
1381
  "text.there_no_selected": "there no selected",
1381
1382
  "text.theres_no_pallet_selected": "there's no pallet selected",
@@ -1947,5 +1947,6 @@
1947
1947
  "text.tote_is_dispatched_please_scan_again": "[ko] tote is dispatched, please scan again",
1948
1948
  "text.tote_box_(x)_is_scanned": "[ko] tote box ({x}) is scanned",
1949
1949
  "text.tote_carton_(x)_is_scanned": "[ko] tote carton ({x}) is scanned",
1950
- "text.tote_is_not_scanned": "[ko] tote is not scanned"
1950
+ "text.tote_is_not_scanned": "[ko] tote is not scanned",
1951
+ "text.there_is_release_qty_no_amendment_is_allowed": "[ko] there is release qty, no amendment is allowed"
1951
1952
  }
@@ -1816,5 +1816,6 @@
1816
1816
  "text.tote_is_dispatched_please_scan_again": "[ms] tote is dispatched, please scan again",
1817
1817
  "text.tote_box_(x)_is_scanned": "[ms] tote box ({x}) is scanned",
1818
1818
  "text.tote_carton_(x)_is_scanned": "[ms] tote carton ({x}) is scanned",
1819
- "text.tote_is_not_scanned": "[ms] tote is not scanned"
1819
+ "text.tote_is_not_scanned": "[ms] tote is not scanned",
1820
+ "text.there_is_release_qty_no_amendment_is_allowed": "[ms] there is release qty, no amendment is allowed"
1820
1821
  }
@@ -1766,5 +1766,6 @@
1766
1766
  "text.tote_is_dispatched_please_scan_again": "[zh] tote is dispatched, please scan again",
1767
1767
  "text.tote_box_(x)_is_scanned": "[zh] tote box ({x}) is scanned",
1768
1768
  "text.tote_carton_(x)_is_scanned": "[zh] tote carton ({x}) is scanned",
1769
- "text.tote_is_not_scanned": "[zh] tote is not scanned"
1769
+ "text.tote_is_not_scanned": "[zh] tote is not scanned",
1770
+ "text.there_is_release_qty_no_amendment_is_allowed": "[zh] there is release qty, no amendment is allowed"
1770
1771
  }