@things-factory/operato-wms 4.3.553 → 4.3.555
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.
|
@@ -46,6 +46,7 @@ class UnloadProduct extends connect(store)(localize(i18next)(PageView)) {
|
|
|
46
46
|
_reusablePallet: Object,
|
|
47
47
|
_scanning: Boolean,
|
|
48
48
|
_selectedOrderProduct: Object,
|
|
49
|
+
_previousSelectedOrderProduct: Object,
|
|
49
50
|
_selectedInventory: Object,
|
|
50
51
|
_unloadedInventories: Array,
|
|
51
52
|
_worksheetInfo: Object,
|
|
@@ -135,6 +136,10 @@ class UnloadProduct extends connect(store)(localize(i18next)(PageView)) {
|
|
|
135
136
|
}
|
|
136
137
|
|
|
137
138
|
if (this._selectedOrderProduct && this._isRequireSerialNumberScanningInbound) {
|
|
139
|
+
if(this._selectedOrderProduct.sku != this._previousSelectedOrderProduct.sku){
|
|
140
|
+
this._previousSelectedOrderProduct = this._selectedOrderProduct
|
|
141
|
+
this._productBarcodeScanned = null
|
|
142
|
+
}
|
|
138
143
|
actions.push({
|
|
139
144
|
title: i18next.t('button.serial_number'),
|
|
140
145
|
action: this._openSerialNumberList.bind(this),
|
|
@@ -676,7 +681,6 @@ class UnloadProduct extends connect(store)(localize(i18next)(PageView)) {
|
|
|
676
681
|
}
|
|
677
682
|
|
|
678
683
|
async _fetchProducts(orderNo, response) {
|
|
679
|
-
this._productBarcodeScanned = null
|
|
680
684
|
if (this.refOrderType === AVAIL_ORDER_TYPES.ARRIVAL_NOTICE.value) {
|
|
681
685
|
const response = await client.query({
|
|
682
686
|
query: gql`
|
|
@@ -752,6 +756,7 @@ class UnloadProduct extends connect(store)(localize(i18next)(PageView)) {
|
|
|
752
756
|
const worksheetInfo = responseType.worksheetInfo
|
|
753
757
|
const orderVasInfo = worksheetInfo.orderVas
|
|
754
758
|
|
|
759
|
+
this._productBarcodeScanned = null
|
|
755
760
|
this._orderNo = orderNo
|
|
756
761
|
this._orderId = worksheetInfo.arrivalNotice.id
|
|
757
762
|
this._bizplaceName = worksheetInfo.bizplaceName
|
|
@@ -1026,7 +1031,6 @@ class UnloadProduct extends connect(store)(localize(i18next)(PageView)) {
|
|
|
1026
1031
|
this._selectedOrderProduct = null
|
|
1027
1032
|
this._selectedInventory = null
|
|
1028
1033
|
this._unloadedInventories = null
|
|
1029
|
-
this._productBarcodeScanned = null
|
|
1030
1034
|
this.updateContext()
|
|
1031
1035
|
}
|
|
1032
1036
|
|
|
@@ -1313,13 +1317,14 @@ class UnloadProduct extends connect(store)(localize(i18next)(PageView)) {
|
|
|
1313
1317
|
|
|
1314
1318
|
async _checkedScannedProduct() {
|
|
1315
1319
|
//fetch any product details that has entered gtin
|
|
1316
|
-
const response = await this.fetchProductDetails(this.
|
|
1320
|
+
const response = await this.fetchProductDetails(this._productBarcode.trim() || '')
|
|
1317
1321
|
|
|
1318
1322
|
if (!response.errors) {
|
|
1319
1323
|
let orderProductData = this.orderProductData.records
|
|
1320
1324
|
let checkedProductDetails = response.data.checkGtin.items
|
|
1321
1325
|
this.productBarcodeInput.value = `${checkedProductDetails[0].gtin} (${checkedProductDetails[0].packingType})`
|
|
1322
|
-
|
|
1326
|
+
this._productBarcodeScanned = checkedProductDetails[0].gtin
|
|
1327
|
+
this._previousSelectedOrderProduct = this._selectedOrderProduct
|
|
1323
1328
|
|
|
1324
1329
|
//check from grist if any is matched
|
|
1325
1330
|
const foundOrderProducts = orderProductData.filter(op => {
|
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.555",
|
|
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.535",
|
|
92
92
|
"@things-factory/product-base": "^4.3.535",
|
|
93
93
|
"@things-factory/resource-ui": "^4.3.535",
|
|
94
|
-
"@things-factory/sales-ui": "^4.3.
|
|
94
|
+
"@things-factory/sales-ui": "^4.3.554",
|
|
95
95
|
"@things-factory/scene-data-transform": "^4.3.534",
|
|
96
96
|
"@things-factory/scene-excel": "^4.3.534",
|
|
97
97
|
"@things-factory/scene-firebase": "^4.3.534",
|
|
@@ -107,8 +107,8 @@
|
|
|
107
107
|
"@things-factory/system-ui": "^4.3.535",
|
|
108
108
|
"@things-factory/transport-base": "^4.3.535",
|
|
109
109
|
"@things-factory/tutorial-ui": "^4.3.535",
|
|
110
|
-
"@things-factory/warehouse-base": "^4.3.
|
|
111
|
-
"@things-factory/worksheet-base": "^4.3.
|
|
110
|
+
"@things-factory/warehouse-base": "^4.3.554",
|
|
111
|
+
"@things-factory/worksheet-base": "^4.3.555"
|
|
112
112
|
},
|
|
113
113
|
"devDependencies": {
|
|
114
114
|
"@things-factory/builder": "^4.3.534",
|
|
@@ -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": "c6eddad571d6c8f5bb84f4964f3184e51dd4525c"
|
|
121
121
|
}
|