@things-factory/operato-wms 4.3.745 → 4.3.747
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.
|
@@ -339,7 +339,7 @@ class UnloadProduct extends connect(store)(localize(i18next)(PageView)) {
|
|
|
339
339
|
/>
|
|
340
340
|
`
|
|
341
341
|
: ''}
|
|
342
|
-
${this._isRequiredCheckManufactureDate
|
|
342
|
+
${this._isRequiredCheckManufactureDate
|
|
343
343
|
? html`
|
|
344
344
|
<label>${i18next.t('label.manufacture_date')}</label>
|
|
345
345
|
<input
|
|
@@ -471,8 +471,20 @@ class UnloadProduct extends connect(store)(localize(i18next)(PageView)) {
|
|
|
471
471
|
|
|
472
472
|
this.inputForm.reset()
|
|
473
473
|
|
|
474
|
-
if (this._isRequiredCheckManufactureDate && record
|
|
475
|
-
|
|
474
|
+
if (this._isRequiredCheckManufactureDate && record?.manufactureDate && this.refOrderType === AVAIL_ORDER_TYPES.ARRIVAL_NOTICE.value) {
|
|
475
|
+
setTimeout(() => {
|
|
476
|
+
if (this.manufactureDateInput) {
|
|
477
|
+
this.manufactureDateInput.value = this._formatDateForInput(record.manufactureDate)
|
|
478
|
+
}
|
|
479
|
+
}, 0)
|
|
480
|
+
}
|
|
481
|
+
|
|
482
|
+
if (this._isRequiredCheckManufactureDate && record?.inventory?.manufactureDate && this.refOrderType === AVAIL_ORDER_TYPES.RETURN_ORDER.value) {
|
|
483
|
+
setTimeout(() => {
|
|
484
|
+
if (this.manufactureDateInput) {
|
|
485
|
+
this.manufactureDateInput.value = this._formatDateForInput(record.inventory.manufactureDate)
|
|
486
|
+
}
|
|
487
|
+
}, 0)
|
|
476
488
|
}
|
|
477
489
|
|
|
478
490
|
if (this._enableCartonLabel) {
|
|
@@ -782,6 +794,22 @@ class UnloadProduct extends connect(store)(localize(i18next)(PageView)) {
|
|
|
782
794
|
return value
|
|
783
795
|
}
|
|
784
796
|
|
|
797
|
+
_getManufactureDateValue() {
|
|
798
|
+
if (this._isRequiredCheckManufactureDate) {
|
|
799
|
+
return this._getValidManufactureDate()
|
|
800
|
+
}
|
|
801
|
+
|
|
802
|
+
if (this.refOrderType === AVAIL_ORDER_TYPES.ARRIVAL_NOTICE.value) {
|
|
803
|
+
return this._selectedOrderProduct?.manufactureDate || null
|
|
804
|
+
}
|
|
805
|
+
|
|
806
|
+
if (this.refOrderType === AVAIL_ORDER_TYPES.RETURN_ORDER.value) {
|
|
807
|
+
return this._selectedOrderProduct?.inventory?.manufactureDate || null
|
|
808
|
+
}
|
|
809
|
+
|
|
810
|
+
return null
|
|
811
|
+
}
|
|
812
|
+
|
|
785
813
|
async _fetchProducts(orderNo, response) {
|
|
786
814
|
if (this.refOrderType === AVAIL_ORDER_TYPES.ARRIVAL_NOTICE.value) {
|
|
787
815
|
const response = await client.query({
|
|
@@ -979,6 +1007,7 @@ class UnloadProduct extends connect(store)(localize(i18next)(PageView)) {
|
|
|
979
1007
|
}
|
|
980
1008
|
inventory {
|
|
981
1009
|
id
|
|
1010
|
+
manufactureDate
|
|
982
1011
|
}
|
|
983
1012
|
name
|
|
984
1013
|
targetName
|
|
@@ -1241,7 +1270,7 @@ class UnloadProduct extends connect(store)(localize(i18next)(PageView)) {
|
|
|
1241
1270
|
palletId: this._enableCartonLabel ? null : this.lotInput.value.trim(),
|
|
1242
1271
|
cartonId: this._enableCartonLabel ? this.cartonInput.value.trim() : null,
|
|
1243
1272
|
expirationDate: this._isRequiredCheckExpiry ? this.expDateInput.value : null,
|
|
1244
|
-
manufactureDate: this.
|
|
1273
|
+
manufactureDate: this._getManufactureDateValue(),
|
|
1245
1274
|
}
|
|
1246
1275
|
}
|
|
1247
1276
|
})
|
|
@@ -1299,7 +1328,7 @@ class UnloadProduct extends connect(store)(localize(i18next)(PageView)) {
|
|
|
1299
1328
|
palletId: this._enableCartonLabel ? null : this.lotInput.value.trim(),
|
|
1300
1329
|
cartonId: this._enableCartonLabel ? this.cartonInput.value.trim() : null,
|
|
1301
1330
|
expirationDate: this._isRequiredCheckExpiry ? this.expDateInput.value : null,
|
|
1302
|
-
manufactureDate: this.
|
|
1331
|
+
manufactureDate: this._getManufactureDateValue(),
|
|
1303
1332
|
}
|
|
1304
1333
|
}
|
|
1305
1334
|
})
|
|
@@ -1394,7 +1423,7 @@ class UnloadProduct extends connect(store)(localize(i18next)(PageView)) {
|
|
|
1394
1423
|
cartonId: this._enableCartonLabel ? this.cartonInput.value.trim() : null,
|
|
1395
1424
|
qty: qty, // Use the validated qty
|
|
1396
1425
|
expirationDate: this._isRequiredCheckExpiry ? this.expDateInput.value : null,
|
|
1397
|
-
manufactureDate: this.
|
|
1426
|
+
manufactureDate: this._getManufactureDateValue(),
|
|
1398
1427
|
reusablePallet: this._usingReusablePallet ? this._reusablePallet : null
|
|
1399
1428
|
},
|
|
1400
1429
|
productBarcode: this._enableProductScanning
|
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.747",
|
|
4
4
|
"main": "dist-server/index.js",
|
|
5
5
|
"browser": "client/index.js",
|
|
6
6
|
"things-factory": true,
|
|
@@ -108,7 +108,7 @@
|
|
|
108
108
|
"@things-factory/transport-base": "^4.3.745",
|
|
109
109
|
"@things-factory/tutorial-ui": "^4.3.743",
|
|
110
110
|
"@things-factory/warehouse-base": "^4.3.745",
|
|
111
|
-
"@things-factory/worksheet-base": "^4.3.
|
|
111
|
+
"@things-factory/worksheet-base": "^4.3.747"
|
|
112
112
|
},
|
|
113
113
|
"devDependencies": {
|
|
114
114
|
"@things-factory/builder": "^4.3.743",
|
|
@@ -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": "f75b0a9eee4f2843663d2a652d96be2a8790e6d6"
|
|
121
121
|
}
|