@posx/core 5.5.329 → 5.5.330
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.
- package/build/index.js +2 -0
- package/package.json +1 -1
- package/package.publish.json +1 -1
package/build/index.js
CHANGED
|
@@ -977,6 +977,7 @@ var EscPosPrinter = class {
|
|
|
977
977
|
0
|
|
978
978
|
]);
|
|
979
979
|
} else if (template.codepage && Object.values(Codepages).includes(template.codepage)) encoder.codepage(template.codepage);
|
|
980
|
+
else encoder.codepage(Codepages.SimplifiedChinese);
|
|
980
981
|
for (const printItem of template.items) {
|
|
981
982
|
if (!printItem) throw new Error("Item is undefined or null");
|
|
982
983
|
switch (printItem.style) {
|
|
@@ -5282,6 +5283,7 @@ var PrintTemplateService = class extends AppRemoteService {
|
|
|
5282
5283
|
const templateData = new TemplateData();
|
|
5283
5284
|
templateData.report_data = reportData;
|
|
5284
5285
|
templateData.config = config;
|
|
5286
|
+
printCommand.codepage = template.codepage || Codepages.SimplifiedChinese;
|
|
5285
5287
|
printCommand.items.push(...await this.renderPrintCommand(template.header, templateData));
|
|
5286
5288
|
printCommand.items.push(...await this.renderPrintCommand(template.body, templateData));
|
|
5287
5289
|
printCommand.items.push(...await this.renderPrintCommand(template.footer, templateData));
|
package/package.json
CHANGED