@things-factory/operato-wms 4.3.549 → 4.3.550
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.
|
@@ -845,6 +845,7 @@ class InspectingProduct extends connect(store)(localize(i18next)(PageView)) {
|
|
|
845
845
|
}
|
|
846
846
|
|
|
847
847
|
this.fillUpForm(this.infoForm, worksheetInfo)
|
|
848
|
+
this._arrayIndex = this._arrayIndex < this.formatWorksheetDetailInfos(worksheetDetailInfos).length ? this._arrayIndex : 0
|
|
848
849
|
this._currentCard = this.data.records[this._arrayIndex]
|
|
849
850
|
this.updateCurrentCard()
|
|
850
851
|
this.missingInventoryData = { records: this.formatMissingInventories(worksheetDetailInfos) }
|
|
@@ -3,32 +3,38 @@ export const sendToPrinter = async function (labelId, printDataArray, printer) {
|
|
|
3
3
|
throw 'Printer is not defined'
|
|
4
4
|
}
|
|
5
5
|
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
searchParams.append(obj[0], obj[1])
|
|
12
|
-
}
|
|
13
|
-
})
|
|
6
|
+
const chunkSize = 200 // The maximum quantity of printData items per chunks
|
|
7
|
+
|
|
8
|
+
for (let i = 0; i < printDataArray.length; i += chunkSize) {
|
|
9
|
+
const chunk = printDataArray.slice(i, i + chunkSize)
|
|
10
|
+
let commands = '' // To accumulate printData for this chunk
|
|
14
11
|
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
12
|
+
// Process each printData item in the current chunk
|
|
13
|
+
for (const printData of chunk){
|
|
14
|
+
let searchParams = new URLSearchParams()
|
|
15
|
+
Object.entries(printData).forEach(obj => {
|
|
16
|
+
if (typeof obj[1] != 'object') {
|
|
17
|
+
searchParams.append(obj[0], obj[1])
|
|
18
|
+
}
|
|
18
19
|
})
|
|
19
20
|
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
21
|
+
try {
|
|
22
|
+
const response = await fetch(`label-command/${labelId}?${searchParams.toString()}`, {
|
|
23
|
+
method: 'GET'
|
|
24
|
+
})
|
|
23
25
|
|
|
24
|
-
|
|
25
|
-
|
|
26
|
+
if (response.status !== 200) {
|
|
27
|
+
throw `Error : Can't get label command from server (response: ${response.status})`
|
|
28
|
+
}
|
|
26
29
|
|
|
27
|
-
|
|
30
|
+
let command = await response.text()
|
|
31
|
+
commands += command + ' '
|
|
28
32
|
|
|
29
|
-
|
|
30
|
-
|
|
33
|
+
} catch (ex) {
|
|
34
|
+
throw ex
|
|
35
|
+
}
|
|
31
36
|
}
|
|
37
|
+
|
|
38
|
+
await printer.print(commands)
|
|
32
39
|
}
|
|
33
|
-
await printer.print(commands)
|
|
34
40
|
}
|
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.550",
|
|
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.550",
|
|
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",
|
|
@@ -108,7 +108,7 @@
|
|
|
108
108
|
"@things-factory/transport-base": "^4.3.535",
|
|
109
109
|
"@things-factory/tutorial-ui": "^4.3.535",
|
|
110
110
|
"@things-factory/warehouse-base": "^4.3.544",
|
|
111
|
-
"@things-factory/worksheet-base": "^4.3.
|
|
111
|
+
"@things-factory/worksheet-base": "^4.3.550"
|
|
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": "34019fe138cf7053de639857ba7a4e3fb08665b9"
|
|
121
121
|
}
|