|
@@ -23,7 +23,7 @@ const defaultDefinitions = (info?: TDocumentDefinitions['info']) =>
|
|
|
pageSize,
|
|
pageSize,
|
|
|
pageOrientation: 'portrait',
|
|
pageOrientation: 'portrait',
|
|
|
pageMargins,
|
|
pageMargins,
|
|
|
- info: { author: ``, subject: `病案报告`, keywords: '舌象 面象 标注', creator: '', producer: 'six', ...info },
|
|
|
|
|
|
|
+ info: { author: ``, subject: `诊断报告`, keywords: '舌象 面象 标注', creator: '', producer: 'six', ...info },
|
|
|
|
|
|
|
|
defaultStyle: { font: 'NotoSansSC', fontSize: 14, lineHeight: 1.45, color: '#00000' },
|
|
defaultStyle: { font: 'NotoSansSC', fontSize: 14, lineHeight: 1.45, color: '#00000' },
|
|
|
styles: {
|
|
styles: {
|
|
@@ -53,13 +53,13 @@ export function usePrint(data: Ref<MedicalModel | undefined>) {
|
|
|
source ??= data.value;
|
|
source ??= data.value;
|
|
|
if (!source) throw new Error(`数据为空`);
|
|
if (!source) throw new Error(`数据为空`);
|
|
|
try {
|
|
try {
|
|
|
- const title = `病案报告 ${source.code ?? Date.now()}`;
|
|
|
|
|
|
|
+ const title = `诊断报告 ${source.code ?? Date.now()}`;
|
|
|
const footerCode = source.code ?? '';
|
|
const footerCode = source.code ?? '';
|
|
|
const report = getMedicalReportData(source?.report as any) as unknown as MedicalModel['report'];
|
|
const report = getMedicalReportData(source?.report as any) as unknown as MedicalModel['report'];
|
|
|
const content: TDocumentDefinitions['content'] = [
|
|
const content: TDocumentDefinitions['content'] = [
|
|
|
{ canvas: [{ type: 'rect', x: 0, y: 0, w: halfPageContentWidth * 2, h: 40, r: 4, color: palette.dark }] },
|
|
{ canvas: [{ type: 'rect', x: 0, y: 0, w: halfPageContentWidth * 2, h: 40, r: 4, color: palette.dark }] },
|
|
|
{
|
|
{
|
|
|
- text: '病 案 报 告',
|
|
|
|
|
|
|
+ text: '诊 断 报 告',
|
|
|
fontSize: 18,
|
|
fontSize: 18,
|
|
|
lineHeight: 1,
|
|
lineHeight: 1,
|
|
|
color: palette.green,
|
|
color: palette.green,
|