|
@@ -237,7 +237,7 @@ export function templateA5(model = {}, title = '') {
|
|
|
offset = 2;
|
|
offset = 2;
|
|
|
this.ADD_PRINT_TEXT(y, 12, 45, h, '姓名:');
|
|
this.ADD_PRINT_TEXT(y, 12, 45, h, '姓名:');
|
|
|
this.ADD_PRINT_TEXT(y, 151, 60, h, template(`性别:{{patient.gender}}`));
|
|
this.ADD_PRINT_TEXT(y, 151, 60, h, template(`性别:{{patient.gender}}`));
|
|
|
- this.ADD_PRINT_TEXT(y, 211, 80, h, template(`年龄:{{patient.arg}}`));
|
|
|
|
|
|
|
+ this.ADD_PRINT_TEXT(y, 211, 80, h, template(`年龄:{{patient.age}}`));
|
|
|
this.ADD_PRINT_TEXT(y, 291, 100, h, template(`床号:{{record.bedNo}}`));
|
|
this.ADD_PRINT_TEXT(y, 291, 100, h, template(`床号:{{record.bedNo}}`));
|
|
|
this.ADD_PRINT_TEXT(y - 6, 56, 96, h + 6, template(`{{patient.name}}`));
|
|
this.ADD_PRINT_TEXT(y - 6, 56, 96, h + 6, template(`{{patient.name}}`));
|
|
|
this.SET_PRINT_STYLEA(0, 'FontSize', 12);
|
|
this.SET_PRINT_STYLEA(0, 'FontSize', 12);
|
|
@@ -245,7 +245,7 @@ export function templateA5(model = {}, title = '') {
|
|
|
y += h + offset;
|
|
y += h + offset;
|
|
|
this.ADD_PRINT_TEXT(y, 12, 200, h, template(`科室:{{department}}`));
|
|
this.ADD_PRINT_TEXT(y, 12, 200, h, template(`科室:{{department}}`));
|
|
|
this.ADD_PRINT_TEXT(y, 211, 150, h, template(`病历号:{{record.recordNo}}`));
|
|
this.ADD_PRINT_TEXT(y, 211, 150, h, template(`病历号:{{record.recordNo}}`));
|
|
|
- this.ADD_PRINT_TEXT(y, 370, 175, h, template(`开方日期:{{record.date}}`));
|
|
|
|
|
|
|
+ this.ADD_PRINT_TEXT(y, 360, 185, h, template(`开方日期:{{record.date}}`));
|
|
|
this.SET_PRINT_STYLEA(0, 'Alignment', 3);
|
|
this.SET_PRINT_STYLEA(0, 'Alignment', 3);
|
|
|
y += h + offset;
|
|
y += h + offset;
|
|
|
h = 34;
|
|
h = 34;
|
|
@@ -272,14 +272,16 @@ export function templateA5(model = {}, title = '') {
|
|
|
this.ADD_PRINT_TEXT(y, 220, 48, 20, '用法');
|
|
this.ADD_PRINT_TEXT(y, 220, 48, 20, '用法');
|
|
|
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);
|
|
|
- this.ADD_PRINT_TEXT(y, 291, 120, 20, '药品名');
|
|
|
|
|
- this.SET_PRINT_STYLEA(0, 'Alignment', 2);
|
|
|
|
|
- this.SET_PRINT_STYLEA(0, 'Bold', 1);
|
|
|
|
|
- this.ADD_PRINT_TEXT(y, 411, 50, 20, '单贴量');
|
|
|
|
|
- this.SET_PRINT_STYLEA(0, 'Alignment', 3);
|
|
|
|
|
- this.SET_PRINT_STYLEA(0, 'Bold', 1);
|
|
|
|
|
- this.ADD_PRINT_TEXT(y, 463, 48, 20, '用法');
|
|
|
|
|
- this.SET_PRINT_STYLEA(0, 'Bold', 1);
|
|
|
|
|
|
|
+ if (chunk.length > 1) {
|
|
|
|
|
+ this.ADD_PRINT_TEXT(y, 291, 120, 20, '药品名');
|
|
|
|
|
+ this.SET_PRINT_STYLEA(0, 'Alignment', 2);
|
|
|
|
|
+ this.SET_PRINT_STYLEA(0, 'Bold', 1);
|
|
|
|
|
+ this.ADD_PRINT_TEXT(y, 411, 50, 20, '单贴量');
|
|
|
|
|
+ this.SET_PRINT_STYLEA(0, 'Alignment', 3);
|
|
|
|
|
+ this.SET_PRINT_STYLEA(0, 'Bold', 1);
|
|
|
|
|
+ this.ADD_PRINT_TEXT(y, 463, 48, 20, '用法');
|
|
|
|
|
+ this.SET_PRINT_STYLEA(0, 'Bold', 1);
|
|
|
|
|
+ }
|
|
|
|
|
|
|
|
// 绘制药品
|
|
// 绘制药品
|
|
|
chunk.forEach((medicine, i) => {
|
|
chunk.forEach((medicine, i) => {
|
|
@@ -303,7 +305,7 @@ export function templateA5(model = {}, title = '') {
|
|
|
|
|
|
|
|
y += 20 + 2 + 12;
|
|
y += 20 + 2 + 12;
|
|
|
|
|
|
|
|
- this.ADD_PRINT_TEXT(y, 12, 536, 40, template(`备注:{{record.remark}}`));
|
|
|
|
|
|
|
+ this.ADD_PRINT_TEXT(y, 12, 536, 40, template(`{{record.remark}}`));
|
|
|
|
|
|
|
|
y += 40;
|
|
y += 40;
|
|
|
x = margin;
|
|
x = margin;
|
|
@@ -454,7 +456,7 @@ export function template72(model, title) {
|
|
|
template(`{{recipe.frequencyTime}}`),
|
|
template(`{{recipe.frequencyTime}}`),
|
|
|
].filter(Boolean).join(','));
|
|
].filter(Boolean).join(','));
|
|
|
w = 100;
|
|
w = 100;
|
|
|
- this.ADD_PRINT_TEXT(y, width - w - margin, w, h, template(`装量:{{recipe.volume}} ML`));
|
|
|
|
|
|
|
+ this.ADD_PRINT_TEXT(y, width - w - margin, w, h, template(`装量:{{recipe.totalVolume}} ML`));
|
|
|
this.SET_PRINT_STYLEA(0, 'Alignment', 3);
|
|
this.SET_PRINT_STYLEA(0, 'Alignment', 3);
|
|
|
|
|
|
|
|
y += h - 2;
|
|
y += h - 2;
|