@things-factory/operato-wms 4.3.625 → 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 : await fetchSettingRule('enable-lot-id-input')
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
- throw new Error(i18next.t('text.incorrect_lot_id'))
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} (${checkedProductDetails[0].packingType})`
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.625",
3
+ "version": "4.3.627",
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.625",
94
+ "@things-factory/sales-ui": "^4.3.626",
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",
@@ -107,8 +107,8 @@
107
107
  "@things-factory/system-ui": "^4.3.591",
108
108
  "@things-factory/transport-base": "^4.3.595",
109
109
  "@things-factory/tutorial-ui": "^4.3.591",
110
- "@things-factory/warehouse-base": "^4.3.621",
111
- "@things-factory/worksheet-base": "^4.3.625"
110
+ "@things-factory/warehouse-base": "^4.3.626",
111
+ "@things-factory/worksheet-base": "^4.3.626"
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": "d0beae7e8a65d931e427fb67ff2c86b73697b986"
120
+ "gitHead": "89aa67b85c0d5c33d34ccf73aa89773fb0f2ae2b"
121
121
  }