@things-factory/operato-wms 4.3.626 → 4.3.627
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.
|
@@ -58,7 +58,8 @@ class UnloadProduct extends connect(store)(localize(i18next)(PageView)) {
|
|
|
58
58
|
refOrderType: String,
|
|
59
59
|
_pageSettings: Object,
|
|
60
60
|
_productBarcode: String,
|
|
61
|
-
_productBarcodeScanned: String
|
|
61
|
+
_productBarcodeScanned: String,
|
|
62
|
+
_packingTypeScanned: String
|
|
62
63
|
}
|
|
63
64
|
}
|
|
64
65
|
|
|
@@ -311,6 +312,8 @@ class UnloadProduct extends connect(store)(localize(i18next)(PageView)) {
|
|
|
311
312
|
}
|
|
312
313
|
}}"
|
|
313
314
|
></barcode-scanable-input>
|
|
315
|
+
<label>${i18next.t('label.packing_type')}</label>
|
|
316
|
+
<input name="packingType" type="text" value="${this._packingTypeScanned}" disabled="true" />
|
|
314
317
|
`
|
|
315
318
|
: ''}
|
|
316
319
|
${this._enableInputQty >= 0 && this._enableInputQty < 4 && !this._isRequireSerialNumberScanningInbound
|
|
@@ -428,7 +431,7 @@ class UnloadProduct extends connect(store)(localize(i18next)(PageView)) {
|
|
|
428
431
|
this._pageSettings = {
|
|
429
432
|
...this._pageSettings,
|
|
430
433
|
cameraScanOnly: await fetchSettingRule('camera-scan-only'),
|
|
431
|
-
enableLotIdInput
|
|
434
|
+
enableLotIdInput: await fetchSettingRule('enable-lot-id-input')
|
|
432
435
|
}
|
|
433
436
|
|
|
434
437
|
this.orderProductConfig = {
|
|
@@ -839,6 +842,7 @@ class UnloadProduct extends connect(store)(localize(i18next)(PageView)) {
|
|
|
839
842
|
if (this._enableCartonLabel) {
|
|
840
843
|
this.cartonInput.value = ''
|
|
841
844
|
this.productBarcodeInput.value = ''
|
|
845
|
+
this._packingTypeScanned = ''
|
|
842
846
|
this._focusOnCartonInput()
|
|
843
847
|
} else {
|
|
844
848
|
this.lotInput.value = ''
|
|
@@ -1215,10 +1219,10 @@ class UnloadProduct extends connect(store)(localize(i18next)(PageView)) {
|
|
|
1215
1219
|
}
|
|
1216
1220
|
}
|
|
1217
1221
|
|
|
1218
|
-
async _checkLotInput(){
|
|
1222
|
+
async _checkLotInput() {
|
|
1219
1223
|
if (this._selectedOrderProduct.palletId)
|
|
1220
1224
|
if (this.lotInput.value !== this._selectedOrderProduct.palletId)
|
|
1221
|
-
|
|
1225
|
+
throw new Error(i18next.t('text.incorrect_lot_id'))
|
|
1222
1226
|
}
|
|
1223
1227
|
|
|
1224
1228
|
async _qtyUnload() {
|
|
@@ -1357,7 +1361,8 @@ class UnloadProduct extends connect(store)(localize(i18next)(PageView)) {
|
|
|
1357
1361
|
if (!response.errors) {
|
|
1358
1362
|
let orderProductData = this.orderProductData.records
|
|
1359
1363
|
let checkedProductDetails = response.data.checkGtin.items
|
|
1360
|
-
this.productBarcodeInput.value = `${checkedProductDetails[0].gtin}
|
|
1364
|
+
this.productBarcodeInput.value = `${checkedProductDetails[0].gtin}`
|
|
1365
|
+
this._packingTypeScanned = checkedProductDetails ? `${checkedProductDetails[0].packingType}` : ''
|
|
1361
1366
|
this._productBarcodeScanned = checkedProductDetails[0].gtin
|
|
1362
1367
|
this._previousSelectedOrderProduct = this._selectedOrderProduct
|
|
1363
1368
|
|
|
@@ -1503,7 +1508,7 @@ class UnloadProduct extends connect(store)(localize(i18next)(PageView)) {
|
|
|
1503
1508
|
await this._checkExpiryFormat()
|
|
1504
1509
|
}
|
|
1505
1510
|
|
|
1506
|
-
if (this._pageSettings.enableLotIdInput){
|
|
1511
|
+
if (this._pageSettings.enableLotIdInput) {
|
|
1507
1512
|
await this._checkLotInput()
|
|
1508
1513
|
}
|
|
1509
1514
|
}
|
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.627",
|
|
4
4
|
"main": "dist-server/index.js",
|
|
5
5
|
"browser": "client/index.js",
|
|
6
6
|
"things-factory": true,
|
|
@@ -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": "89aa67b85c0d5c33d34ccf73aa89773fb0f2ae2b"
|
|
121
121
|
}
|