@things-factory/operato-wms 4.3.628 → 4.3.630
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.
|
@@ -424,9 +424,10 @@ class ValidateGanPopup extends localize(i18next)(LitElement) {
|
|
|
424
424
|
throw new Error(i18next.t('text.please_recheck_your_request_data'))
|
|
425
425
|
}
|
|
426
426
|
if (this._enableLotIdInput == false) {
|
|
427
|
+
//make sure no batchId and sku pair is duplicated in the same gan
|
|
427
428
|
let batchSkuPairs = this.records
|
|
428
429
|
.filter(item => item.batchId !== null && item.sku !== null) // Filter out items with null batchId or sku
|
|
429
|
-
.map(item => `${item.batchId.toLowerCase()}-${item.sku.toLowerCase()}`) // Create a combined key of batchId and sku
|
|
430
|
+
.map(item => `${item.batchId.toLowerCase()}-${item.sku.toLowerCase()}-${item.refNo.toLowerCase()}`) // Create a combined key of batchId and sku
|
|
430
431
|
|
|
431
432
|
let uniqueBatchSkuPairs = new Set(batchSkuPairs)
|
|
432
433
|
if (uniqueBatchSkuPairs.size !== batchSkuPairs.length) {
|
|
@@ -10,19 +10,37 @@ import './select-product-batch'
|
|
|
10
10
|
import './serial-number-list-popup'
|
|
11
11
|
|
|
12
12
|
import gql from 'graphql-tag'
|
|
13
|
-
import {
|
|
13
|
+
import {
|
|
14
|
+
css,
|
|
15
|
+
html
|
|
16
|
+
} from 'lit-element'
|
|
14
17
|
import orderBy from 'lodash-es/orderBy'
|
|
15
18
|
import { connect } from 'pwa-helpers/connect-mixin.js'
|
|
16
19
|
|
|
17
20
|
import { MultiColumnFormStyles } from '@things-factory/form-ui'
|
|
18
|
-
import {
|
|
21
|
+
import {
|
|
22
|
+
i18next,
|
|
23
|
+
localize
|
|
24
|
+
} from '@things-factory/i18n-base'
|
|
19
25
|
import { openPopup } from '@things-factory/layout-base'
|
|
20
|
-
import {
|
|
26
|
+
import {
|
|
27
|
+
client,
|
|
28
|
+
CustomAlert,
|
|
29
|
+
PageView,
|
|
30
|
+
store
|
|
31
|
+
} from '@things-factory/shell'
|
|
21
32
|
import { CommonButtonStyles } from '@things-factory/styles'
|
|
22
|
-
import {
|
|
33
|
+
import {
|
|
34
|
+
isMobileDevice,
|
|
35
|
+
sleep
|
|
36
|
+
} from '@things-factory/utils'
|
|
23
37
|
|
|
24
38
|
import { fetchSettingRule } from '../../fetch-setting-value'
|
|
25
|
-
import {
|
|
39
|
+
import {
|
|
40
|
+
ARRIVAL_NOTICE,
|
|
41
|
+
RETURN_ORDER,
|
|
42
|
+
VAS_TYPE
|
|
43
|
+
} from '../constants'
|
|
26
44
|
|
|
27
45
|
const AVAIL_ORDER_TYPES = { ARRIVAL_NOTICE, RETURN_ORDER }
|
|
28
46
|
class UnloadProduct extends connect(store)(localize(i18next)(PageView)) {
|
|
@@ -138,7 +156,7 @@ class UnloadProduct extends connect(store)(localize(i18next)(PageView)) {
|
|
|
138
156
|
}
|
|
139
157
|
|
|
140
158
|
if (this._selectedOrderProduct && this._isRequireSerialNumberScanningInbound) {
|
|
141
|
-
if (this._selectedOrderProduct.sku != this._previousSelectedOrderProduct
|
|
159
|
+
if (this._selectedOrderProduct.sku != this._previousSelectedOrderProduct?.sku) {
|
|
142
160
|
this._previousSelectedOrderProduct = this._selectedOrderProduct
|
|
143
161
|
this._productBarcodeScanned = null
|
|
144
162
|
}
|
|
@@ -302,6 +320,7 @@ class UnloadProduct extends connect(store)(localize(i18next)(PageView)) {
|
|
|
302
320
|
<label>${i18next.t('label.product_barcode')}</label>
|
|
303
321
|
<barcode-scanable-input
|
|
304
322
|
name="productBarcode"
|
|
323
|
+
.value=${this._productBarcode}
|
|
305
324
|
without-enter
|
|
306
325
|
custom-input
|
|
307
326
|
?scan-only=${this._pageSettings?.cameraScanOnly}
|
|
@@ -839,6 +858,11 @@ class UnloadProduct extends connect(store)(localize(i18next)(PageView)) {
|
|
|
839
858
|
this._selectedOrderProduct = null
|
|
840
859
|
if (this._isRequireSerialNumberScanningInbound) {
|
|
841
860
|
this.serialNumberInput.value = ''
|
|
861
|
+
|
|
862
|
+
if (this.expDateInput?.value) {
|
|
863
|
+
this.expDateInput.value = null
|
|
864
|
+
}
|
|
865
|
+
|
|
842
866
|
if (this._enableCartonLabel) {
|
|
843
867
|
this.cartonInput.value = ''
|
|
844
868
|
this.productBarcodeInput.value = ''
|
|
@@ -915,6 +939,7 @@ class UnloadProduct extends connect(store)(localize(i18next)(PageView)) {
|
|
|
915
939
|
const worksheetInfo = response.data.unloadingReturnWorksheet.worksheetInfo
|
|
916
940
|
this._worksheetInfo = worksheetInfo
|
|
917
941
|
this._bizplaceName = worksheetInfo?.bizplaceName
|
|
942
|
+
this._productBarcodeScanned = null
|
|
918
943
|
|
|
919
944
|
this.orderProductData = {
|
|
920
945
|
records: orderBy(
|
|
@@ -1005,9 +1030,10 @@ class UnloadProduct extends connect(store)(localize(i18next)(PageView)) {
|
|
|
1005
1030
|
}
|
|
1006
1031
|
|
|
1007
1032
|
_resetInput() {
|
|
1008
|
-
if (this._selectedOrderProduct?.isRequiredCheckExpiry
|
|
1033
|
+
if (this._selectedOrderProduct?.isRequiredCheckExpiry && !this._isRequireSerialNumberScanningInbound)
|
|
1034
|
+
this.expDateInput.value = null
|
|
1009
1035
|
|
|
1010
|
-
if (this._isRequiredCheckExpiry) {
|
|
1036
|
+
if (this._isRequiredCheckExpiry && !this._isRequireSerialNumberScanningInbound) {
|
|
1011
1037
|
this.expDateInput.value = null
|
|
1012
1038
|
this._focusOnExpiryDateInput()
|
|
1013
1039
|
}
|
|
@@ -1532,11 +1558,9 @@ class UnloadProduct extends connect(store)(localize(i18next)(PageView)) {
|
|
|
1532
1558
|
throw new Error(i18next.t('text.qty_should_be_positive'))
|
|
1533
1559
|
}
|
|
1534
1560
|
} else if (this._isRequireSerialNumberScanningInbound) {
|
|
1535
|
-
if (this.serialNumberInput) {
|
|
1536
|
-
|
|
1537
|
-
|
|
1538
|
-
throw new Error(i18next.t('text.enter_serial_number'))
|
|
1539
|
-
}
|
|
1561
|
+
if (!this.serialNumberInput?.value) {
|
|
1562
|
+
this._focusOnSerialNumberInput()
|
|
1563
|
+
throw new Error(i18next.t('text.enter_serial_number'))
|
|
1540
1564
|
}
|
|
1541
1565
|
}
|
|
1542
1566
|
|
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.630",
|
|
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.591",
|
|
92
92
|
"@things-factory/product-base": "^4.3.595",
|
|
93
93
|
"@things-factory/resource-ui": "^4.3.591",
|
|
94
|
-
"@things-factory/sales-ui": "^4.3.
|
|
94
|
+
"@things-factory/sales-ui": "^4.3.629",
|
|
95
95
|
"@things-factory/scene-data-transform": "^4.3.591",
|
|
96
96
|
"@things-factory/scene-excel": "^4.3.591",
|
|
97
97
|
"@things-factory/scene-firebase": "^4.3.591",
|
|
@@ -108,7 +108,7 @@
|
|
|
108
108
|
"@things-factory/transport-base": "^4.3.595",
|
|
109
109
|
"@things-factory/tutorial-ui": "^4.3.591",
|
|
110
110
|
"@things-factory/warehouse-base": "^4.3.626",
|
|
111
|
-
"@things-factory/worksheet-base": "^4.3.
|
|
111
|
+
"@things-factory/worksheet-base": "^4.3.629"
|
|
112
112
|
},
|
|
113
113
|
"devDependencies": {
|
|
114
114
|
"@things-factory/builder": "^4.3.591",
|
|
@@ -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": "13f51c6a139e8803d4ec5cf23b52cf125b9ca4bf"
|
|
121
121
|
}
|
package/translations/en.json
CHANGED
|
@@ -1450,6 +1450,7 @@
|
|
|
1450
1450
|
"text.driver_is_empty": "driver name is empty",
|
|
1451
1451
|
"text.driver_is_not_selected": "driver is not selected",
|
|
1452
1452
|
"text.duplicate_entry_in_vas_details": "duplicate entry in vas details",
|
|
1453
|
+
"text.duplicated_batch_id_and_sku": "duplicated batch id and sku",
|
|
1453
1454
|
"text.duplicated_lot_id": "duplicated lot id",
|
|
1454
1455
|
"text.duplicated_batch_id": "duplicated batch id",
|
|
1455
1456
|
"text.duplicated_romoval_on_same_sn": "duplicated removal on same serial no",
|
package/translations/ko.json
CHANGED
|
@@ -1431,6 +1431,7 @@
|
|
|
1431
1431
|
"text.driver_and_vehicle_is_not_selected": "운송기사와 차량이 선택되지 않았습니다",
|
|
1432
1432
|
"text.driver_is_empty": "[ko] driver name is empty",
|
|
1433
1433
|
"text.driver_is_not_selected": "운송기사가 선택되지 않았습니다",
|
|
1434
|
+
"text.duplicated_batch_id_and_sku": "[ko] duplicated batch id and sku",
|
|
1434
1435
|
"text.duplicated_vas_on_same_batch": "같은 배치에 동일한 서비스가 존재합니다",
|
|
1435
1436
|
"text.duplicated_lot_id": "[ko] duplicated lot id",
|
|
1436
1437
|
"text.duplicated_batch_id": "[ko] duplicated batch id",
|
package/translations/ms.json
CHANGED
|
@@ -1403,6 +1403,7 @@
|
|
|
1403
1403
|
"text.driver_and_vehicle_is_not_selected": "pemandu dan kenderaan belum dipilih",
|
|
1404
1404
|
"text.driver_is_empty": "[ms] driver name is empty",
|
|
1405
1405
|
"text.driver_is_not_selected": "pemandu tidak dipilih",
|
|
1406
|
+
"text.duplicated_batch_id_and_sku": "[ms] duplicated batch id and sku",
|
|
1406
1407
|
"text.duplicated_vas_on_same_batch": "salinan value added service pada kumpulan yang sama",
|
|
1407
1408
|
"text.duplicated_lot_id": "[ms] duplicated lot id",
|
|
1408
1409
|
"text.duplicated_batch_id": "[ms] duplicated batch id",
|
package/translations/zh.json
CHANGED
|
@@ -1368,9 +1368,10 @@
|
|
|
1368
1368
|
"text.draft_order_success": "[zh] Draft order successfully converted to RO",
|
|
1369
1369
|
"text.draft_order_insufficient": "[zh] Draft order failed: Insufficient quantity",
|
|
1370
1370
|
"text.draft_order_deleted_detail": "[zh] Draft order failed: Missing Product Details",
|
|
1371
|
-
"text.driver_and_vehicle_is_not_selected": "driver and vehicle is not selected",
|
|
1371
|
+
"text.driver_and_vehicle_is_not_selected": "[zh] driver and vehicle is not selected",
|
|
1372
1372
|
"text.driver_is_empty": "[zh] driver name is empty",
|
|
1373
|
-
"text.driver_is_not_selected": "driver is not selected",
|
|
1373
|
+
"text.driver_is_not_selected": "[zh] driver is not selected",
|
|
1374
|
+
"text.duplicated_batch_id_and_sku": "[zh] duplicated batch id and sku",
|
|
1374
1375
|
"text.duplicated_vas_on_same_batch": "duplicated vas on same batch",
|
|
1375
1376
|
"text.duplicated_lot_id": "[zh] duplicated lot id",
|
|
1376
1377
|
"text.duplicated_batch_id": "[zh] duplicated batch id",
|
|
@@ -1380,12 +1381,12 @@
|
|
|
1380
1381
|
"text.empty_product_barcode": "[zh] empty product barcode",
|
|
1381
1382
|
"text.empty_serial_number": "[zh]empty serial number",
|
|
1382
1383
|
"text.empty_value_in_add_product_list": "[zh]empty value in add product list",
|
|
1383
|
-
"text.empty_value_in_list": "empty value in list",
|
|
1384
|
+
"text.empty_value_in_list": "[zh] empty value in list",
|
|
1384
1385
|
"text.enter_qty": "输入数量",
|
|
1385
1386
|
"text.enter_serial_number": "输入序列号",
|
|
1386
|
-
"text.enter_zone_name": "enter zone name",
|
|
1387
|
+
"text.enter_zone_name": "[zh] enter zone name",
|
|
1387
1388
|
"text.eta_date_is_required": "[zh]eta date is required",
|
|
1388
|
-
"text.executing_release_order": "executing release order",
|
|
1389
|
+
"text.executing_release_order": "[zh] executing release order",
|
|
1389
1390
|
"text.expiration_date_updated": "[zh]expiration date updated",
|
|
1390
1391
|
"text.expiration_date_will_be_earlier_than_today": "[zh]expiration date will be earlier than today",
|
|
1391
1392
|
"text.expiry_date_is_empty": "[zh]expiry date is empty",
|