|
@@ -74,7 +74,7 @@ export function template60_40(model = {}, title = '') {
|
|
|
|
|
|
|
|
this.ADD_PRINT_TEXT(86, margin, 170, 44, template(`{{record.remark}}`));
|
|
this.ADD_PRINT_TEXT(86, margin, 170, 44, template(`{{record.remark}}`));
|
|
|
this.SET_PRINT_STYLEA(0, 'FontSize', 9);
|
|
this.SET_PRINT_STYLEA(0, 'FontSize', 9);
|
|
|
- if (model.record.no) this.ADD_PRINT_BARCODE(99, 175, 46, 46, 'QRCode', model.record.no);
|
|
|
|
|
|
|
+ if (model.record.orderNo) this.ADD_PRINT_BARCODE(99, 175, 46, 46, 'QRCode', model.record.orderNo);
|
|
|
|
|
|
|
|
y = 130;
|
|
y = 130;
|
|
|
x = margin;
|
|
x = margin;
|
|
@@ -183,7 +183,7 @@ export function template80_50(model = {}, title = '') {
|
|
|
this.SET_PRINT_STYLEA(0, 'Alignment', 2);
|
|
this.SET_PRINT_STYLEA(0, 'Alignment', 2);
|
|
|
this.SET_PRINT_STYLEA(0, 'Bold', 1);
|
|
this.SET_PRINT_STYLEA(0, 'Bold', 1);
|
|
|
|
|
|
|
|
- if (model.record.no) this.ADD_PRINT_BARCODE(133, 189, 107, 50, '128Auto', model.record.no);
|
|
|
|
|
|
|
+ if (model.record.orderNo) this.ADD_PRINT_BARCODE(133, 189, 107, 50, '128Auto', model.record.orderNo);
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
/**
|
|
/**
|
|
@@ -239,7 +239,7 @@ export function templateA5(model = {}, title = '') {
|
|
|
this.SET_PRINT_STYLEA(0, 'Alignment', 2);
|
|
this.SET_PRINT_STYLEA(0, 'Alignment', 2);
|
|
|
this.SET_PRINT_STYLEA(0, 'Bold', 1);
|
|
this.SET_PRINT_STYLEA(0, 'Bold', 1);
|
|
|
|
|
|
|
|
- if (model.record.no) this.ADD_PRINT_BARCODE(margin, width - margin - 216, 216, 50, '128Auto', model.record.no);
|
|
|
|
|
|
|
+ if (model.record.orderNo) this.ADD_PRINT_BARCODE(margin, width - margin - 216, 216, 50, '128Auto', model.record.orderNo);
|
|
|
|
|
|
|
|
// 绘制顶部信息
|
|
// 绘制顶部信息
|
|
|
y = margin + 50 + offset;
|
|
y = margin + 50 + offset;
|
|
@@ -480,7 +480,7 @@ export function template72(model, title) {
|
|
|
y += h;
|
|
y += h;
|
|
|
x = margin;
|
|
x = margin;
|
|
|
h = 96;
|
|
h = 96;
|
|
|
- if (model.record.no) this.ADD_PRINT_BARCODE(y, x, h, h, 'QRCode', model.record.no);
|
|
|
|
|
|
|
+ if (model.record.orderNo) this.ADD_PRINT_BARCODE(y, x, h, h, 'QRCode', model.record.orderNo);
|
|
|
|
|
|
|
|
x = 94;
|
|
x = 94;
|
|
|
h = 45;
|
|
h = 45;
|