<template>
	<div class="cnavas_box_conta">
		<div class="canvas_editor"></div>
	</div>
</template>

<script lang="ts">
import { computed, defineComponent, nextTick, ref } from 'vue';
import Editor, { EditorMode, ElementType, MaxHeightRatio, RowFlex, TableBorder, VerticalAlign } from '@hufe921/canvas-editor';
import { ElMessage } from 'element-plus';
import { formatDate } from '/@/utils/formatTime';
import { useStore } from '/@/store/index';

// 文档地址 https://hufe.club/canvas-editor-docs/guide/api.html
// 文档地址 https://hufe.club/canvas-editor-docs/guide/api.html
// 文档地址 https://hufe.club/canvas-editor-docs/guide/api.html
export default defineComponent({
	name: 'CanvasEditor',
	setup() {
		let instance = null; // 实例

		const store = useStore();

		// 客户名称
		const clientName = computed(() => {
			// @ts-ignore
			return store.state.userInfos.userInfos.client.clientName;
		});

		const formatText = (str: string, nbspNum: number = 6) => {
			return str ? `  ${str}  ` : '      ';
		};

		const formatCheckbox = (options: string[] = [], key: string) => {
			return options.includes(key);
		};

		/**
		 * 初始化canvs容器
		 */
		const initCanvasEditor = (datas: any) => {
			try {
				// 患者信息、评估字符串数据、评估人、评估人2、评估日期
				const { patientInfo, evaluationText, evaluateOperatorName, evaluateOperator2Name, evaluateTime } = datas;

				// 如果存在实例，先销毁再重新创建
				if (instance) {
					instance.destroy();
				}
				instance = new Editor(
					document.querySelector('.canvas_editor'),
					{
						header: [
							{
								value: `${clientName.value}患者评估表`,
								rowFlex: RowFlex.CENTER,
								size: 18,
							},
						],
						main: [
							{
								type: ElementType.TABLE,
								conceptId: 'patientInfo',
								value: '患者信息表', // 添加表格整体的描述
								colgroup: [{ width: 140.8 }, { width: 140.8 }, { width: 190.8 }, { width: 140.8 }, { width: 140.8 }],
								borderType: TableBorder.EMPTY,
								trList: [
									{
										height: 16,
										tdList: [
											{
												colspan: 1,
												rowspan: 1,
												verticalAlign: VerticalAlign.BOTTOM,
												value: [
													{ value: '姓名:', size: 14 },
													{ value: formatText(patientInfo.patientName), size: 16 },
												],
											},
											{
												colspan: 1,
												rowspan: 1,
												verticalAlign: VerticalAlign.BOTTOM,
												value: [
													{ value: '透析号:', size: 14 },
													{ value: formatText(patientInfo.patientHemoCode), size: 16 },
												],
											},
											{
												colspan: 1,
												rowspan: 1,
												verticalAlign: VerticalAlign.BOTTOM,
												value: [
													{ value: '评估日期:', size: 14 },
													{ value: formatDate(new Date(evaluateTime), 'YYYY-mm-dd'), size: 16 },
												],
											},
											{
												colspan: 1,
												rowspan: 1,
												verticalAlign: VerticalAlign.BOTTOM,
												value: [
													{ value: '责任组长:', size: 14 },
													{ value: formatText(evaluateOperatorName), size: 16 },
												],
											},
											{
												colspan: 1,
												rowspan: 1,
												verticalAlign: VerticalAlign.BOTTOM,
												value: [
													{ value: '责任护士:', size: 14 },
													{ value: formatText(evaluateOperator2Name), size: 16 },
												],
											},
										],
									},
								],
							},
							{
								type: ElementType.TABLE,
								conceptId: 'pg',
								value: '整天评估', // 添加表格整体的描述
								colgroup: [{ width: 200 }, { width: 554 }],
								borderType: TableBorder.ALL,
								trList: [
									{
										height: 16,
										tdList: [{ colspan: 2, rowspan: 1, verticalAlign: VerticalAlign.MIDDLE, value: [{ value: '一般护理评估' }] }],
									},
									// 入室方式
									{
										height: 16,
										tdList: [
											{ colspan: 1, rowspan: 1, verticalAlign: VerticalAlign.MIDDLE, value: [{ value: '入室方式', rowFlex: RowFlex.CENTER }] },
											{
												colspan: 1,
												rowspan: 1,
												verticalAlign: VerticalAlign.MIDDLE,
												value: [
													{
														type: ElementType.CHECKBOX,
														value: '',
														checkbox: { value: formatCheckbox(evaluationText.一般护理评估_入室方式, '自行步入') },
													},
													{ value: '自行步入  ' },
													{
														type: ElementType.CHECKBOX,
														value: '',
														checkbox: { value: formatCheckbox(evaluationText.一般护理评估_入室方式, '轮椅') },
													},
													{ value: '轮椅  ' },
													{
														type: ElementType.CHECKBOX,
														value: '',
														checkbox: { value: formatCheckbox(evaluationText.一般护理评估_入室方式, '推床') },
													},
													{ value: '推床' },
												],
											},
										],
									},
									// 血压
									{
										height: 16,
										tdList: [
											{ colspan: 1, rowspan: 1, verticalAlign: VerticalAlign.MIDDLE, value: [{ value: '血压', rowFlex: RowFlex.CENTER }] },
											{
												colspan: 1,
												rowspan: 1,
												verticalAlign: VerticalAlign.MIDDLE,
												value: [
													{ type: ElementType.CHECKBOX, value: '', checkbox: { value: formatCheckbox(evaluationText.一般护理评估_血压, '正常') } },
													{ value: '正常  ' },
													{ type: ElementType.CHECKBOX, value: '', checkbox: { value: formatCheckbox(evaluationText.一般护理评估_血压, '偏高') } },
													{ value: '偏高  ' },
													{ value: formatText(evaluationText.一般护理评估_血压_偏高mmHg), underline: true },
													{ value: 'mmHg  ' },
													{ type: ElementType.CHECKBOX, value: '', checkbox: { value: formatCheckbox(evaluationText.一般护理评估_血压, '偏低') } },
													{ value: '偏低' },
													{ value: formatText(evaluationText.一般护理评估_血压_偏低mmHg), underline: true },
													{ value: 'mmHg  ' },
													{ type: ElementType.CHECKBOX, value: '', checkbox: { value: formatCheckbox(evaluationText.一般护理评估_血压, '未测') } },
													{ value: '未测' },
												],
											},
										],
									},
									// 心率
									{
										height: 16,
										tdList: [
											{ colspan: 1, rowspan: 1, verticalAlign: VerticalAlign.MIDDLE, value: [{ value: '心率', rowFlex: RowFlex.CENTER }] },
											{
												colspan: 1,
												rowspan: 1,
												verticalAlign: VerticalAlign.MIDDLE,
												value: [
													{ type: ElementType.CHECKBOX, value: '', checkbox: { value: formatCheckbox(evaluationText.一般护理评估_心率, '正常') } },
													{ value: '正常  ' },
													{ type: ElementType.CHECKBOX, value: '', checkbox: { value: formatCheckbox(evaluationText.一般护理评估_心率, '偏快') } },
													{ value: '偏快  ' },
													{ value: formatText(evaluationText.一般护理评估_心率_偏快次分), underline: true },
													{ value: '次/分  ' },
													{ type: ElementType.CHECKBOX, value: '', checkbox: { value: formatCheckbox(evaluationText.一般护理评估_心率, '偏慢') } },
													{ value: '偏慢' },
													{ value: formatText(evaluationText.一般护理评估_心率_偏慢次分), underline: true },
													{ value: '次/分  ' },
													{ type: ElementType.CHECKBOX, value: '', checkbox: { value: formatCheckbox(evaluationText.一般护理评估_心率, '未测') } },
													{ value: '未测' },
												],
											},
										],
									},
									// 呼吸
									{
										height: 16,
										tdList: [
											{ colspan: 1, rowspan: 1, verticalAlign: VerticalAlign.MIDDLE, value: [{ value: '呼吸', rowFlex: RowFlex.CENTER }] },
											{
												colspan: 1,
												rowspan: 1,
												verticalAlign: VerticalAlign.MIDDLE,
												value: [
													{ type: ElementType.CHECKBOX, value: '', checkbox: { value: formatCheckbox(evaluationText.一般护理评估_呼吸, '正常') } },
													{ value: '正常  ' },
													{
														type: ElementType.CHECKBOX,
														value: '',
														checkbox: { value: formatCheckbox(evaluationText.一般护理评估_呼吸, '不规则呼吸') },
													},
													{ value: '不规则呼吸  ' },
													{ type: ElementType.CHECKBOX, value: '', checkbox: { value: formatCheckbox(evaluationText.一般护理评估_呼吸, '无咳嗽') } },
													{ value: '无咳嗽' },
													{ type: ElementType.CHECKBOX, value: '', checkbox: { value: formatCheckbox(evaluationText.一般护理评估_呼吸, '有咳嗽') } },
													{ value: '有咳嗽' },
													{ type: ElementType.CHECKBOX, value: '', checkbox: { value: formatCheckbox(evaluationText.一般护理评估_呼吸, '无痰液') } },
													{ value: '无痰液' },
													{ type: ElementType.CHECKBOX, value: '', checkbox: { value: formatCheckbox(evaluationText.一般护理评估_呼吸, '有痰液') } },
													{ value: '有痰液' },
												],
											},
										],
									},
									// 体温
									{
										height: 16,
										tdList: [
											{ colspan: 1, rowspan: 1, verticalAlign: VerticalAlign.MIDDLE, value: [{ value: '体温', rowFlex: RowFlex.CENTER }] },
											{
												colspan: 1,
												rowspan: 1,
												verticalAlign: VerticalAlign.MIDDLE,
												value: [
													{ type: ElementType.CHECKBOX, value: '', checkbox: { value: formatCheckbox(evaluationText.一般护理评估_体温, '正常') } },
													{ value: '正常  ' },
													{ type: ElementType.CHECKBOX, value: '', checkbox: { value: formatCheckbox(evaluationText.一般护理评估_体温, '未测') } },
													{ value: '未测' },
													{ type: ElementType.CHECKBOX, value: '', checkbox: { value: formatCheckbox(evaluationText.一般护理评估_体温, '发热') } },
													{ value: '发热  ' },
													{ value: formatText(evaluationText.一般护理评估_体温_发热oC), underline: true },
													{ value: '℃' },
												],
											},
										],
									},
									// 生活自理能力
									{
										height: 16,
										tdList: [
											{ colspan: 1, rowspan: 1, verticalAlign: VerticalAlign.MIDDLE, value: [{ value: '生活自理能力', rowFlex: RowFlex.CENTER }] },
											{
												colspan: 1,
												rowspan: 1,
												verticalAlign: VerticalAlign.MIDDLE,
												value: [
													{
														type: ElementType.CHECKBOX,
														value: '',
														checkbox: { value: formatCheckbox(evaluationText.一般护理评估_生活自理能力, '完全独立') },
													},
													{ value: '完全独立  ' },
													{
														type: ElementType.CHECKBOX,
														value: '',
														checkbox: { value: formatCheckbox(evaluationText.一般护理评估_生活自理能力, '辅助') },
													},
													{ value: '辅助  ' },
													{
														type: ElementType.CHECKBOX,
														value: '',
														checkbox: { value: formatCheckbox(evaluationText.一般护理评估_生活自理能力, '依赖') },
													},
													{ value: '依赖' },
												],
											},
										],
									},
									// 体力
									{
										height: 16,
										tdList: [
											{ colspan: 1, rowspan: 1, verticalAlign: VerticalAlign.MIDDLE, value: [{ value: '体力', rowFlex: RowFlex.CENTER }] },
											{
												colspan: 1,
												rowspan: 1,
												verticalAlign: VerticalAlign.MIDDLE,
												value: [
													{ type: ElementType.CHECKBOX, value: '', checkbox: { value: formatCheckbox(evaluationText.一般护理评估_体力, '良好') } },
													{ value: '良好  ' },
													{ type: ElementType.CHECKBOX, value: '', checkbox: { value: formatCheckbox(evaluationText.一般护理评估_体力, '一般') } },
													{ value: '一般  ' },
													{ type: ElementType.CHECKBOX, value: '', checkbox: { value: formatCheckbox(evaluationText.一般护理评估_体力, '差') } },
													{ value: '差' },
												],
											},
										],
									},
									// 卧位
									{
										height: 16,
										tdList: [
											{ colspan: 1, rowspan: 1, verticalAlign: VerticalAlign.MIDDLE, value: [{ value: '卧位', rowFlex: RowFlex.CENTER }] },
											{
												colspan: 1,
												rowspan: 1,
												verticalAlign: VerticalAlign.MIDDLE,
												value: [
													{ type: ElementType.CHECKBOX, value: '', checkbox: { value: formatCheckbox(evaluationText.一般护理评估_卧位, '平卧位') } },
													{ value: '平卧位  ' },
													{ type: ElementType.CHECKBOX, value: '', checkbox: { value: formatCheckbox(evaluationText.一般护理评估_卧位, '半卧位') } },
													{ value: '半卧位  ' },
													{ type: ElementType.CHECKBOX, value: '', checkbox: { value: formatCheckbox(evaluationText.一般护理评估_卧位, '坐位') } },
													{ value: '坐位' },
												],
											},
										],
									},
									// 食欲
									{
										height: 16,
										tdList: [
											{ colspan: 1, rowspan: 1, verticalAlign: VerticalAlign.MIDDLE, value: [{ value: '食欲', rowFlex: RowFlex.CENTER }] },
											{
												colspan: 1,
												rowspan: 1,
												verticalAlign: VerticalAlign.MIDDLE,
												value: [
													{ type: ElementType.CHECKBOX, value: '', checkbox: { value: formatCheckbox(evaluationText.一般护理评估_食欲, '良好') } },
													{ value: '良好  ' },
													{ type: ElementType.CHECKBOX, value: '', checkbox: { value: formatCheckbox(evaluationText.一般护理评估_食欲, '一般') } },
													{ value: '一般  ' },
													{ type: ElementType.CHECKBOX, value: '', checkbox: { value: formatCheckbox(evaluationText.一般护理评估_食欲, '差') } },
													{ value: '差' },
													{ value: '                ' },
													{ value: '饮水量控制：' },
													{
														type: ElementType.CHECKBOX,
														value: '',
														checkbox: { value: formatCheckbox(evaluationText.一般护理评估_饮水量控制, '好') },
													},
													{ value: '好  ' },
													{
														type: ElementType.CHECKBOX,
														value: '',
														checkbox: { value: formatCheckbox(evaluationText.一般护理评估_饮水量控制, '较好') },
													},
													{ value: '较好  ' },
													{
														type: ElementType.CHECKBOX,
														value: '',
														checkbox: { value: formatCheckbox(evaluationText.一般护理评估_饮水量控制, '困难') },
													},
													{ value: '困难' },
												],
											},
										],
									},
									// 睡眠
									{
										height: 16,
										tdList: [
											{ colspan: 1, rowspan: 1, verticalAlign: VerticalAlign.MIDDLE, value: [{ value: '睡眠', rowFlex: RowFlex.CENTER }] },
											{
												colspan: 1,
												rowspan: 1,
												verticalAlign: VerticalAlign.MIDDLE,
												value: [
													{ type: ElementType.CHECKBOX, value: '', checkbox: { value: formatCheckbox(evaluationText.一般护理评估_睡眠, '良好') } },
													{ value: '良好  ' },
													{ type: ElementType.CHECKBOX, value: '', checkbox: { value: formatCheckbox(evaluationText.一般护理评估_睡眠, '一般') } },
													{ value: '一般  ' },
													{ type: ElementType.CHECKBOX, value: '', checkbox: { value: formatCheckbox(evaluationText.一般护理评估_睡眠, '差') } },
													{ value: '差' },
												],
											},
										],
									},
									// 排泄
									{
										height: 16,
										tdList: [
											{ colspan: 1, rowspan: 1, verticalAlign: VerticalAlign.MIDDLE, value: [{ value: '排泄', rowFlex: RowFlex.CENTER }] },
											{
												colspan: 1,
												rowspan: 1,
												verticalAlign: VerticalAlign.MIDDLE,
												value: [
													{ value: '尿量：' },
													{ type: ElementType.CHECKBOX, value: '', checkbox: { value: formatCheckbox(evaluationText.一般护理评估_尿量, '无') } },
													{ value: '无  ' },
													{ type: ElementType.CHECKBOX, value: '', checkbox: { value: formatCheckbox(evaluationText.一般护理评估_尿量, '有') } },
													{ value: '有  ' },
													{ value: formatText(evaluationText.一般护理评估_尿量_有mld), underline: true },
													{ value: 'ml/d' },
													{ value: '                ' },
													{ value: '大便：' },
													{ value: formatText(evaluationText.一般护理评估_大便_次日), underline: true },
													{ value: '次/日' },
													{ type: ElementType.CHECKBOX, value: '', checkbox: { value: formatCheckbox(evaluationText.一般护理评估_大便, '便秘') } },
													{ value: '便秘' },
													{ type: ElementType.CHECKBOX, value: '', checkbox: { value: formatCheckbox(evaluationText.一般护理评估_大便, '腹泻') } },
													{ value: '腹泻' },
												],
											},
										],
									},
									// 出血
									{
										height: 16,
										tdList: [
											{ colspan: 1, rowspan: 1, verticalAlign: VerticalAlign.MIDDLE, value: [{ value: '出血', rowFlex: RowFlex.CENTER }] },
											{
												colspan: 1,
												rowspan: 1,
												verticalAlign: VerticalAlign.MIDDLE,
												value: [
													{ type: ElementType.CHECKBOX, value: '', checkbox: { value: formatCheckbox(evaluationText.一般护理评估_出血, '无') } },
													{ value: '无  ' },
													{ type: ElementType.CHECKBOX, value: '', checkbox: { value: formatCheckbox(evaluationText.一般护理评估_出血, '有') } },
													{ value: '有  ' },
													{ value: '部位' },
													{ value: formatText(evaluationText.一般护理评估_出血_有部位), underline: true },
												],
											},
										],
									},
									// 用药情况
									{
										height: 16,
										tdList: [
											{ colspan: 1, rowspan: 1, verticalAlign: VerticalAlign.MIDDLE, value: [{ value: '用药情况', rowFlex: RowFlex.CENTER }] },
											{
												colspan: 1,
												rowspan: 1,
												verticalAlign: VerticalAlign.MIDDLE,
												value: [
													{
														type: ElementType.CHECKBOX,
														value: '',
														checkbox: { value: formatCheckbox(evaluationText.一般护理评估_用药情况, '降压药') },
													},
													{ value: '降压药  ' },
													{
														type: ElementType.CHECKBOX,
														value: '',
														checkbox: { value: formatCheckbox(evaluationText.一般护理评估_用药情况, '降糖药') },
													},
													{ value: '降糖药  ' },
													{
														type: ElementType.CHECKBOX,
														value: '',
														checkbox: { value: formatCheckbox(evaluationText.一般护理评估_用药情况, '抗凝药物') },
													},
													{ value: '抗凝药物  ' },
													{
														type: ElementType.CHECKBOX,
														value: '',
														checkbox: { value: formatCheckbox(evaluationText.一般护理评估_用药情况, '其他') },
													},
													{ value: '其他  ' },
													{ value: '药名： ' },
													{ value: formatText(evaluationText.一般护理评估_用药情况_其他药名) },
												],
											},
										],
									},
									{
										height: 18,
										tdList: [{ colspan: 2, rowspan: 1, verticalAlign: VerticalAlign.MIDDLE, value: [{ value: '前次治疗后专科评估' }] }],
									},
									// 前次透析后情况
									{
										height: 16,
										tdList: [
											{ colspan: 1, rowspan: 1, verticalAlign: VerticalAlign.MIDDLE, value: [{ value: '前次透析后情况', rowFlex: RowFlex.CENTER }] },
											{
												colspan: 1,
												rowspan: 1,
												verticalAlign: VerticalAlign.MIDDLE,
												value: [
													{
														type: ElementType.CHECKBOX,
														value: '',
														checkbox: { value: formatCheckbox(evaluationText.前次治疗后专科评估_前次透析后情况, '无不适') },
													},
													{ value: '无不适  ' },
													{
														type: ElementType.CHECKBOX,
														value: '',
														checkbox: { value: formatCheckbox(evaluationText.前次治疗后专科评估_前次透析后情况, '恶心、呕吐') },
													},
													{ value: '恶心、呕吐  ' },
													{
														type: ElementType.CHECKBOX,
														value: '',
														checkbox: { value: formatCheckbox(evaluationText.前次治疗后专科评估_前次透析后情况, '头痛') },
													},
													{ value: '头痛  ' },
													{
														type: ElementType.CHECKBOX,
														value: '',
														checkbox: { value: formatCheckbox(evaluationText.前次治疗后专科评估_前次透析后情况, '头晕') },
													},
													{ value: '头晕  ' },
													{
														type: ElementType.CHECKBOX,
														value: '',
														checkbox: { value: formatCheckbox(evaluationText.前次治疗后专科评估_前次透析后情况, '低血压') },
													},
													{ value: '低血压  ' },
													{
														type: ElementType.CHECKBOX,
														value: '',
														checkbox: { value: formatCheckbox(evaluationText.前次治疗后专科评估_前次透析后情况, '其他') },
													},
													{ value: '其他  ' },
													{ value: formatText(evaluationText.前次治疗后专科评估_前次透析后情况_其他) },
												],
											},
										],
									},
									// 脱水情况
									{
										height: 16,
										tdList: [
											{ colspan: 1, rowspan: 1, verticalAlign: VerticalAlign.MIDDLE, value: [{ value: '脱水情况', rowFlex: RowFlex.CENTER }] },
											{
												colspan: 1,
												rowspan: 1,
												verticalAlign: VerticalAlign.MIDDLE,
												value: [
													{
														type: ElementType.CHECKBOX,
														value: '',
														checkbox: { value: formatCheckbox(evaluationText.前次治疗后专科评估_脱水情况, '达到干体重') },
													},
													{ value: '达到干体重  ' },
													{
														type: ElementType.CHECKBOX,
														value: '',
														checkbox: { value: formatCheckbox(evaluationText.前次治疗后专科评估_脱水情况, '少脱') },
													},
													{ value: '少脱' },
													{ value: formatText(evaluationText.前次治疗后专科评估_脱水情况_少脱kg), underline: true },
													{ value: 'kg' },
													{
														type: ElementType.CHECKBOX,
														value: '',
														checkbox: { value: formatCheckbox(evaluationText.前次治疗后专科评估_脱水情况, '多脱') },
													},
													{ value: '多脱  ' },
													{ value: formatText(evaluationText.前次治疗后专科评估_脱水情况_多脱kg), underline: true },
													{ value: 'kg' },
													{
														type: ElementType.CHECKBOX,
														value: '',
														checkbox: { value: formatCheckbox(evaluationText.前次治疗后专科评估_脱水情况, '调整干体重') },
													},
													{ value: '调整干体重  ' },
												],
											},
										],
									},
									// 内瘘穿刺点情况
									{
										height: 16,
										tdList: [
											{ colspan: 1, rowspan: 1, verticalAlign: VerticalAlign.MIDDLE, value: [{ value: '内瘘穿刺点情况', rowFlex: RowFlex.CENTER }] },
											{
												colspan: 1,
												rowspan: 1,
												verticalAlign: VerticalAlign.MIDDLE,
												value: [
													{
														type: ElementType.CHECKBOX,
														value: '',
														checkbox: { value: formatCheckbox(evaluationText.前次治疗后专科评估_内瘘穿刺点情况, '正常') },
													},
													{ value: '正常  ' },
													{
														type: ElementType.CHECKBOX,
														value: '',
														checkbox: { value: formatCheckbox(evaluationText.前次治疗后专科评估_内瘘穿刺点情况, '出血') },
													},
													{ value: '出血  ' },
													{
														type: ElementType.CHECKBOX,
														value: '',
														checkbox: { value: formatCheckbox(evaluationText.前次治疗后专科评估_内瘘穿刺点情况, '淤血') },
													},
													{ value: '淤血  ' },
													{
														type: ElementType.CHECKBOX,
														value: '',
														checkbox: { value: formatCheckbox(evaluationText.前次治疗后专科评估_内瘘穿刺点情况, '血肿') },
													},
													{ value: '血肿  ' },
													{
														type: ElementType.CHECKBOX,
														value: '',
														checkbox: { value: formatCheckbox(evaluationText.前次治疗后专科评估_内瘘穿刺点情况, '绳梯') },
													},
													{ value: '绳梯  ' },
													{
														type: ElementType.CHECKBOX,
														value: '',
														checkbox: { value: formatCheckbox(evaluationText.前次治疗后专科评估_内瘘穿刺点情况, '定点') },
													},
													{ value: '定点  ' },
													{
														type: ElementType.CHECKBOX,
														value: '',
														checkbox: { value: formatCheckbox(evaluationText.前次治疗后专科评估_内瘘穿刺点情况, '区域') },
													},
													{ value: '区域  ' },
												],
											},
										],
									},
									{
										height: 18,
										tdList: [{ colspan: 2, rowspan: 1, verticalAlign: VerticalAlign.MIDDLE, value: [{ value: '新患者情况' }] }],
									},
									// 是否首次透析
									{
										height: 16,
										tdList: [
											{ colspan: 1, rowspan: 1, verticalAlign: VerticalAlign.MIDDLE, value: [{ value: '是否首次透析', rowFlex: RowFlex.CENTER }] },
											{
												colspan: 1,
												rowspan: 1,
												verticalAlign: VerticalAlign.MIDDLE,
												value: [
													{
														type: ElementType.CHECKBOX,
														value: '',
														checkbox: { value: formatCheckbox(evaluationText.新患者情况_是否首次透析, '是') },
													},
													{ value: '是  ' },
													{
														type: ElementType.CHECKBOX,
														value: '',
														checkbox: { value: formatCheckbox(evaluationText.新患者情况_是否首次透析, '否') },
													},
													{ value: '否  ' },
													{ value: '(已行透析' },
													{ value: formatText(evaluationText.新患者情况_是否首次透析_否_已运行透析天), underline: true },
													{ value: '天、' },
													{ value: formatText(evaluationText.新患者情况_是否首次透析_否_已运行透析月), underline: true },
													{ value: '月、' },
													{ value: formatText(evaluationText.新患者情况_是否首次透析_否_已运行透析年), underline: true },
													{ value: '年)' },
												],
											},
										],
									},
									// 外院透析处方
									{
										height: 16,
										tdList: [
											{ colspan: 1, rowspan: 1, verticalAlign: VerticalAlign.MIDDLE, value: [{ value: '外院透析处方', rowFlex: RowFlex.CENTER }] },
											{
												colspan: 1,
												rowspan: 1,
												verticalAlign: VerticalAlign.MIDDLE,
												value: [
													{ value: formatText(evaluationText.新患者情况_外院透析处方_次周), underline: true },
													{ value: '次/周' },
													{ value: formatText(evaluationText.新患者情况_外院透析处方_小时次), underline: true },
													{ value: '小时/次，抗凝剂及用量' },
													{ value: formatText(evaluationText.新患者情况_外院透析处方_抗凝剂及用量), underline: true },
												],
											},
										],
									},
									// 外院透析有无不适
									{
										height: 16,
										tdList: [
											{
												colspan: 1,
												rowspan: 1,
												verticalAlign: VerticalAlign.MIDDLE,
												value: [{ value: '外院透析有无不适', rowFlex: RowFlex.CENTER }],
											},
											{
												colspan: 1,
												rowspan: 1,
												verticalAlign: VerticalAlign.MIDDLE,
												value: [
													{
														type: ElementType.CHECKBOX,
														value: '',
														checkbox: { value: formatCheckbox(evaluationText.新患者情况_外院透析有无不适, '无') },
													},
													{ value: '无  ' },
													{
														type: ElementType.CHECKBOX,
														value: '',
														checkbox: { value: formatCheckbox(evaluationText.新患者情况_外院透析有无不适, '有') },
													},
													{ value: '有  ' },
												],
											},
										],
									},
									{
										height: 18,
										tdList: [{ colspan: 2, rowspan: 1, verticalAlign: VerticalAlign.MIDDLE, value: [{ value: '单针双腔导管置管术后' }] }],
									},
									// 位置
									{
										height: 16,
										tdList: [
											{ colspan: 1, rowspan: 1, verticalAlign: VerticalAlign.MIDDLE, value: [{ value: '位置', rowFlex: RowFlex.CENTER }] },
											{
												colspan: 1,
												rowspan: 1,
												verticalAlign: VerticalAlign.MIDDLE,
												value: [
													{
														type: ElementType.CHECKBOX,
														value: '',
														checkbox: { value: formatCheckbox(evaluationText.单针双腔导管置管术后_位置, '临时性') },
													},
													{ value: '临时性 ' },
													{
														type: ElementType.CHECKBOX,
														value: '',
														checkbox: { value: formatCheckbox(evaluationText.单针双腔导管置管术后_位置, '永久性') },
													},
													{ value: '永久性 ' },
													{
														type: ElementType.CHECKBOX,
														value: '',
														checkbox: { value: formatCheckbox(evaluationText.单针双腔导管置管术后_位置, '颈内静脉') },
													},
													{ value: '颈内静脉（ ' },
													{ type: ElementType.CHECKBOX, value: '', checkbox: { value: evaluationText.单针双腔导管置管术后_位置_颈内静脉_左 } },
													{ value: '左、' },
													{ type: ElementType.CHECKBOX, value: '', checkbox: { value: evaluationText.单针双腔导管置管术后_位置_颈内静脉_右 } },
													{ value: '右）' },
													{
														type: ElementType.CHECKBOX,
														value: '',
														checkbox: { value: formatCheckbox(evaluationText.单针双腔导管置管术后_位置, '股静脉') },
													},
													{ value: '股静脉（ ' },
													{ type: ElementType.CHECKBOX, value: '', checkbox: { value: evaluationText.单针双腔导管置管术后_位置_股静脉_左 } },
													{ value: '左、' },
													{ type: ElementType.CHECKBOX, value: '', checkbox: { value: evaluationText.单针双腔导管置管术后_位置_股静脉_右 } },
													{ value: '右）' },
													{ value: '术后 ' },
													{ value: formatText(evaluationText.单针双腔导管置管术后_位置_股静脉_术后天), underline: true },
													{ value: '天 ' },
												],
											},
										],
									},
									// 伤口外观
									{
										height: 16,
										tdList: [
											{ colspan: 1, rowspan: 1, verticalAlign: VerticalAlign.MIDDLE, value: [{ value: '伤口外观', rowFlex: RowFlex.CENTER }] },
											{
												colspan: 1,
												rowspan: 1,
												verticalAlign: VerticalAlign.MIDDLE,
												value: [
													{
														type: ElementType.CHECKBOX,
														value: '',
														checkbox: { value: formatCheckbox(evaluationText.单针双腔导管置管术后_伤口外观, '清洁') },
													},
													{ value: '清洁  ' },
													{
														type: ElementType.CHECKBOX,
														value: '',
														checkbox: { value: formatCheckbox(evaluationText.单针双腔导管置管术后_伤口外观, '渗血') },
													},
													{ value: '渗血  ' },
													{
														type: ElementType.CHECKBOX,
														value: '',
														checkbox: { value: formatCheckbox(evaluationText.单针双腔导管置管术后_伤口外观, '红') },
													},
													{ value: '红  ' },
													{
														type: ElementType.CHECKBOX,
														value: '',
														checkbox: { value: formatCheckbox(evaluationText.单针双腔导管置管术后_伤口外观, '热') },
													},
													{ value: '热  ' },
													{
														type: ElementType.CHECKBOX,
														value: '',
														checkbox: { value: formatCheckbox(evaluationText.单针双腔导管置管术后_伤口外观, '痛') },
													},
													{ value: '痛  ' },
													{
														type: ElementType.CHECKBOX,
														value: '',
														checkbox: { value: formatCheckbox(evaluationText.单针双腔导管置管术后_伤口外观, '血肿大小') },
													},
													{ value: '血肿大小  ' },
													{ value: formatText(evaluationText.单针双腔导管置管术后_血肿大小cm), underline: true },
													{ value: 'cm ' },
												],
											},
										],
									},
									// 换药
									{
										height: 16,
										tdList: [
											{ colspan: 1, rowspan: 1, verticalAlign: VerticalAlign.MIDDLE, value: [{ value: '换药', rowFlex: RowFlex.CENTER }] },
											{
												colspan: 1,
												rowspan: 1,
												verticalAlign: VerticalAlign.MIDDLE,
												value: [
													{
														type: ElementType.CHECKBOX,
														value: '',
														checkbox: { value: formatCheckbox(evaluationText.单针双腔导管置管术后_换药, '1次/日') },
													},
													{ value: '1次/日  ' },
													{
														type: ElementType.CHECKBOX,
														value: '',
														checkbox: { value: formatCheckbox(evaluationText.单针双腔导管置管术后_换药, '1次/隔日') },
													},
													{ value: '1次/隔日  ' },
												],
											},
										],
									},
									// 导管流量
									{
										height: 16,
										tdList: [
											{ colspan: 1, rowspan: 1, verticalAlign: VerticalAlign.MIDDLE, value: [{ value: '导管流量', rowFlex: RowFlex.CENTER }] },
											{
												colspan: 1,
												rowspan: 1,
												verticalAlign: VerticalAlign.MIDDLE,
												value: [
													{
														type: ElementType.CHECKBOX,
														value: '',
														checkbox: { value: formatCheckbox(evaluationText.单针双腔导管置管术后_导管流量, '充足') },
													},
													{ value: '充足  ' },
													{
														type: ElementType.CHECKBOX,
														value: '',
														checkbox: { value: formatCheckbox(evaluationText.单针双腔导管置管术后_导管流量, '不足') },
													},
													{ value: '不足  ' },
													{
														type: ElementType.CHECKBOX,
														value: '',
														checkbox: { value: formatCheckbox(evaluationText.单针双腔导管置管术后_导管流量, 'A-V反接') },
													},
													{ value: 'A-V反接' },
												],
											},
										],
									},
									// 有无发热
									{
										height: 16,
										tdList: [
											{ colspan: 1, rowspan: 1, verticalAlign: VerticalAlign.MIDDLE, value: [{ value: '有无发热', rowFlex: RowFlex.CENTER }] },
											{
												colspan: 1,
												rowspan: 1,
												verticalAlign: VerticalAlign.MIDDLE,
												value: [
													{
														type: ElementType.CHECKBOX,
														value: '',
														checkbox: { value: formatCheckbox(evaluationText.单针双腔导管置管术后_有无发热, '无') },
													},
													{ value: '无  ' },
													{
														type: ElementType.CHECKBOX,
														value: '',
														checkbox: { value: formatCheckbox(evaluationText.单针双腔导管置管术后_有无发热, '有') },
													},
													{ value: '有  ' },
													{ value: formatText(evaluationText.单针双腔导管置管术后_有无发热_有oC), underline: true },
													{ value: '℃' },
												],
											},
										],
									},
									{
										height: 18,
										tdList: [{ colspan: 2, rowspan: 1, verticalAlign: VerticalAlign.MIDDLE, value: [{ value: '动静脉内瘘吻合术后' }] }],
									},
									// 位置
									{
										height: 16,
										tdList: [
											{ colspan: 1, rowspan: 1, verticalAlign: VerticalAlign.MIDDLE, value: [{ value: '位置', rowFlex: RowFlex.CENTER }] },
											{
												colspan: 1,
												rowspan: 1,
												verticalAlign: VerticalAlign.MIDDLE,
												value: [
													{
														type: ElementType.CHECKBOX,
														value: '',
														checkbox: { value: formatCheckbox(evaluationText.动静脉内瘘吻合术后_位置, '自体') },
													},
													{ value: '自体（ ' },
													{ type: ElementType.CHECKBOX, value: '', checkbox: { value: evaluationText.动静脉内瘘吻合术后_位置_自体_上 } },
													{ value: '上、' },
													{ type: ElementType.CHECKBOX, value: '', checkbox: { value: evaluationText.动静脉内瘘吻合术后_位置_自体_下 } },
													{ value: '下、' },
													{ type: ElementType.CHECKBOX, value: '', checkbox: { value: evaluationText.动静脉内瘘吻合术后_位置_自体_左 } },
													{ value: '左、' },
													{ type: ElementType.CHECKBOX, value: '', checkbox: { value: evaluationText.动静脉内瘘吻合术后_位置_自体_右 } },
													{ value: '右）肢' },
													{
														type: ElementType.CHECKBOX,
														value: '',
														checkbox: { value: formatCheckbox(evaluationText.动静脉内瘘吻合术后_位置, '人工血管') },
													},
													{ value: '人工血管（ ' },
													{ type: ElementType.CHECKBOX, value: '', checkbox: { value: evaluationText.动静脉内瘘吻合术后_位置_人工血管_上 } },
													{ value: '上、' },
													{ type: ElementType.CHECKBOX, value: '', checkbox: { value: evaluationText.动静脉内瘘吻合术后_位置_人工血管_下 } },
													{ value: '下、' },
													{ type: ElementType.CHECKBOX, value: '', checkbox: { value: evaluationText.动静脉内瘘吻合术后_位置_人工血管_左 } },
													{ value: '左、' },
													{ type: ElementType.CHECKBOX, value: '', checkbox: { value: evaluationText.动静脉内瘘吻合术后_位置_人工血管_右 } },
													{ value: '右）肢' },
													{ value: '术后 ' },
													{ value: formatText(evaluationText.动静脉内瘘吻合术后_位置_人工血管_术后天), underline: true },
													{ value: '天 ' },
													{ value: formatText(evaluationText.动静脉内瘘吻合术后_位置_人工血管_术后周), underline: true },
													{ value: '周' },
												],
											},
										],
									},
									// 上次透析穿刺状况
									{
										height: 16,
										tdList: [
											{
												colspan: 1,
												rowspan: 1,
												verticalAlign: VerticalAlign.MIDDLE,
												value: [{ value: '上次透析穿刺状况', rowFlex: RowFlex.CENTER }],
											},
											{
												colspan: 1,
												rowspan: 1,
												verticalAlign: VerticalAlign.MIDDLE,
												value: [
													{
														type: ElementType.CHECKBOX,
														value: '',
														checkbox: { value: formatCheckbox(evaluationText.动静脉内瘘吻合术后_上次透析穿刺状况, '顺利') },
													},
													{ value: '顺利  ' },
													{
														type: ElementType.CHECKBOX,
														value: '',
														checkbox: { value: formatCheckbox(evaluationText.动静脉内瘘吻合术后_上次透析穿刺状况, '二次穿刺') },
													},
													{ value: '二次穿刺  ' },
													{
														type: ElementType.CHECKBOX,
														value: '',
														checkbox: { value: formatCheckbox(evaluationText.动静脉内瘘吻合术后_上次透析穿刺状况, '穿刺处外观正常') },
													},
													{ value: '穿刺处外观正常  ' },
													{
														type: ElementType.CHECKBOX,
														value: '',
														checkbox: { value: formatCheckbox(evaluationText.动静脉内瘘吻合术后_上次透析穿刺状况, '淤血') },
													},
													{ value: '淤血  ' },
													{
														type: ElementType.CHECKBOX,
														value: '',
														checkbox: { value: formatCheckbox(evaluationText.动静脉内瘘吻合术后_上次透析穿刺状况, '肿胀') },
													},
													{ value: '肿胀  ' },
												],
											},
										],
									},
									// 触诊/听诊血管杂音
									{
										height: 16,
										tdList: [
											{
												colspan: 1,
												rowspan: 1,
												verticalAlign: VerticalAlign.MIDDLE,
												value: [{ value: '触诊/听诊血管杂音', rowFlex: RowFlex.CENTER }],
											},
											{
												colspan: 1,
												rowspan: 1,
												verticalAlign: VerticalAlign.MIDDLE,
												value: [
													{
														type: ElementType.CHECKBOX,
														value: '',
														checkbox: { value: formatCheckbox(evaluationText.动静脉内瘘吻合术后_触诊听诊血管杂音, '正常') },
													},
													{ value: '正常  ' },
													{
														type: ElementType.CHECKBOX,
														value: '',
														checkbox: { value: formatCheckbox(evaluationText.动静脉内瘘吻合术后_触诊听诊血管杂音, '弱') },
													},
													{ value: '弱  ' },
													{
														type: ElementType.CHECKBOX,
														value: '',
														checkbox: { value: formatCheckbox(evaluationText.动静脉内瘘吻合术后_触诊听诊血管杂音, '无') },
													},
													{ value: '无  ' },
												],
											},
										],
									},
									// 内瘘成熟训练
									{
										height: 16,
										tdList: [
											{ colspan: 1, rowspan: 1, verticalAlign: VerticalAlign.MIDDLE, value: [{ value: '内瘘成熟训练', rowFlex: RowFlex.CENTER }] },
											{
												colspan: 1,
												rowspan: 1,
												verticalAlign: VerticalAlign.MIDDLE,
												value: [
													{
														type: ElementType.CHECKBOX,
														value: '',
														checkbox: { value: formatCheckbox(evaluationText.动静脉内瘘吻合术后_内瘘成熟训练, '无') },
													},
													{ value: '无  ' },
													{
														type: ElementType.CHECKBOX,
														value: '',
														checkbox: { value: formatCheckbox(evaluationText.动静脉内瘘吻合术后_内瘘成熟训练, '有') },
													},
													{ value: '有' },
													{ value: formatText(evaluationText.动静脉内瘘吻合术后_内瘘成熟训练_有次日), underline: true },
													{ value: '次/日' },
												],
											},
										],
									},
									// 内瘘使用年限
									{
										height: 16,
										tdList: [
											{ colspan: 1, rowspan: 1, verticalAlign: VerticalAlign.MIDDLE, value: [{ value: '内瘘使用年限', rowFlex: RowFlex.CENTER }] },
											{
												colspan: 1,
												rowspan: 1,
												verticalAlign: VerticalAlign.MIDDLE,
												value: [
													{
														type: ElementType.CHECKBOX,
														value: '',
														checkbox: { value: formatCheckbox(evaluationText.动静脉内瘘吻合术后_内瘘使用年限, '一个月内') },
													},
													{ value: '一个月内' },
													{
														type: ElementType.CHECKBOX,
														value: '',
														checkbox: { value: formatCheckbox(evaluationText.动静脉内瘘吻合术后_内瘘使用年限, '六个月内') },
													},
													{ value: '六个月内' },
													{
														type: ElementType.CHECKBOX,
														value: '',
														checkbox: { value: formatCheckbox(evaluationText.动静脉内瘘吻合术后_内瘘使用年限, '一年内') },
													},
													{ value: '一年内' },
													{
														type: ElementType.CHECKBOX,
														value: '',
														checkbox: { value: formatCheckbox(evaluationText.动静脉内瘘吻合术后_内瘘使用年限, '一年以上') },
													},
													{ value: '一年以上' },
												],
											},
										],
									},
									{
										height: 18,
										tdList: [{ colspan: 2, rowspan: 1, verticalAlign: VerticalAlign.MIDDLE, value: [{ value: '健康教育指导' }] }],
									},
									// 健康教育方式
									{
										height: 16,
										tdList: [
											{ colspan: 1, rowspan: 1, verticalAlign: VerticalAlign.MIDDLE, value: [{ value: '健康教育方式', rowFlex: RowFlex.CENTER }] },
											{
												colspan: 1,
												rowspan: 1,
												verticalAlign: VerticalAlign.MIDDLE,
												value: [
													{
														type: ElementType.CHECKBOX,
														value: '',
														checkbox: { value: formatCheckbox(evaluationText.健康教育指导_健康教育方式, '口头宣教') },
													},
													{ value: '口头宣教' },
													{
														type: ElementType.CHECKBOX,
														value: '',
														checkbox: { value: formatCheckbox(evaluationText.健康教育指导_健康教育方式, '健教单张') },
													},
													{ value: '健教单张' },
													{
														type: ElementType.CHECKBOX,
														value: '',
														checkbox: { value: formatCheckbox(evaluationText.健康教育指导_健康教育方式, 'PPT讲解') },
													},
													{ value: 'PPT讲解' },
													{
														type: ElementType.CHECKBOX,
														value: '',
														checkbox: { value: formatCheckbox(evaluationText.健康教育指导_健康教育方式, '视频') },
													},
													{ value: '视频' },
												],
											},
										],
									},
									// 饮食指导
									{
										height: 16,
										tdList: [
											{ colspan: 1, rowspan: 1, verticalAlign: VerticalAlign.MIDDLE, value: [{ value: '饮食指导', rowFlex: RowFlex.CENTER }] },
											{
												colspan: 1,
												rowspan: 1,
												verticalAlign: VerticalAlign.MIDDLE,
												value: [
													{
														type: ElementType.CHECKBOX,
														value: '',
														checkbox: { value: formatCheckbox(evaluationText.健康教育指导_饮食指导, '饮水控制') },
													},
													{ value: '饮水控制' },
													{
														type: ElementType.CHECKBOX,
														value: '',
														checkbox: { value: formatCheckbox(evaluationText.健康教育指导_饮食指导, '蛋白质摄入') },
													},
													{ value: '蛋白质摄入' },
													{
														type: ElementType.CHECKBOX,
														value: '',
														checkbox: { value: formatCheckbox(evaluationText.健康教育指导_饮食指导, '高钾食物') },
													},
													{ value: '高钾食物' },
													{
														type: ElementType.CHECKBOX,
														value: '',
														checkbox: { value: formatCheckbox(evaluationText.健康教育指导_饮食指导, '高磷食物') },
													},
													{ value: '高磷食物' },
													{
														type: ElementType.CHECKBOX,
														value: '',
														checkbox: { value: formatCheckbox(evaluationText.健康教育指导_饮食指导, '怎样吃盐') },
													},
													{ value: '怎样吃盐' },
												],
											},
										],
									},
									// 运动指导
									{
										height: 16,
										tdList: [
											{ colspan: 1, rowspan: 1, verticalAlign: VerticalAlign.MIDDLE, value: [{ value: '运动指导', rowFlex: RowFlex.CENTER }] },
											{
												colspan: 1,
												rowspan: 1,
												verticalAlign: VerticalAlign.MIDDLE,
												value: [
													{
														type: ElementType.CHECKBOX,
														value: '',
														checkbox: { value: formatCheckbox(evaluationText.健康教育指导_运动指导, '哪些运动可以做') },
													},
													{ value: '哪些运动可以做' },
													{
														type: ElementType.CHECKBOX,
														value: '',
														checkbox: { value: formatCheckbox(evaluationText.健康教育指导_运动指导, '预防跌倒的方法') },
													},
													{ value: '预防跌倒的方法' },
													{
														type: ElementType.CHECKBOX,
														value: '',
														checkbox: { value: formatCheckbox(evaluationText.健康教育指导_运动指导, '立即停止运动的时刻') },
													},
													{ value: '立即停止运动的时刻' },
												],
											},
										],
									},
									// 血管通路指导
									{
										height: 16,
										tdList: [
											{ colspan: 1, rowspan: 1, verticalAlign: VerticalAlign.MIDDLE, value: [{ value: '血管通路指导', rowFlex: RowFlex.CENTER }] },
											{
												colspan: 1,
												rowspan: 1,
												verticalAlign: VerticalAlign.MIDDLE,
												value: [
													{
														type: ElementType.CHECKBOX,
														value: '',
														checkbox: { value: formatCheckbox(evaluationText.健康教育指导_血管通路指导, '日常护理') },
													},
													{ value: '日常护理' },
													{
														type: ElementType.CHECKBOX,
														value: '',
														checkbox: { value: formatCheckbox(evaluationText.健康教育指导_血管通路指导, '内瘘闭塞处理') },
													},
													{ value: '内瘘闭塞处理' },
													{
														type: ElementType.CHECKBOX,
														value: '',
														checkbox: { value: formatCheckbox(evaluationText.健康教育指导_血管通路指导, '止血带的使用') },
													},
													{ value: '止血带的使用' },
													{
														type: ElementType.CHECKBOX,
														value: '',
														checkbox: { value: formatCheckbox(evaluationText.健康教育指导_血管通路指导, '内瘘成熟训练') },
													},
													{ value: '内瘘成熟训练' },
												],
											},
										],
									},
									// 体重管理
									{
										height: 16,
										tdList: [
											{ colspan: 1, rowspan: 1, verticalAlign: VerticalAlign.MIDDLE, value: [{ value: '体重管理', rowFlex: RowFlex.CENTER }] },
											{
												colspan: 1,
												rowspan: 1,
												verticalAlign: VerticalAlign.MIDDLE,
												value: [
													{
														type: ElementType.CHECKBOX,
														value: '',
														checkbox: { value: formatCheckbox(evaluationText.健康教育指导_体重管理, '何谓干体重') },
													},
													{ value: '何谓干体重' },
													{
														type: ElementType.CHECKBOX,
														value: '',
														checkbox: { value: formatCheckbox(evaluationText.健康教育指导_体重管理, '体重增加的标准') },
													},
													{ value: '体重增加的标准' },
													{
														type: ElementType.CHECKBOX,
														value: '',
														checkbox: { value: formatCheckbox(evaluationText.健康教育指导_体重管理, '干体重的调整') },
													},
													{ value: '干体重的调整' },
												],
											},
										],
									},
									// 受教者
									{
										height: 16,
										tdList: [
											{ colspan: 1, rowspan: 1, verticalAlign: VerticalAlign.MIDDLE, value: [{ value: '受教者', rowFlex: RowFlex.CENTER }] },
											{
												colspan: 1,
												rowspan: 1,
												verticalAlign: VerticalAlign.MIDDLE,
												value: [
													{
														type: ElementType.CHECKBOX,
														value: '',
														checkbox: { value: formatCheckbox(evaluationText.健康教育指导_受教者, '患者本人') },
													},
													{ value: '患者本人' },
													{
														type: ElementType.CHECKBOX,
														value: '',
														checkbox: { value: formatCheckbox(evaluationText.健康教育指导_受教者, '照顾者') },
													},
													{ value: '照顾者（配偶、父母、子女、护工、其它' },
													{ value: formatText(evaluationText.健康教育指导_受教者_照顾者其它), underline: true },
													{ value: '）' },
													{ value: '签名' },
													{ value: formatText(evaluationText.健康教育指导_受教者_其它, 0) },
												],
											},
										],
									},
								],
							},
						],
					},
					{
						mode: EditorMode.CLEAN,
						margins: [20, 20, 20, 20],
						defaultSize: 14,
						defaultFont: 'Microsoft YaHei',
						defaultColor: '#343434',
						printPixelRatio: 6,
						defaultTrMinHeight: 14,
						defaultRowMargin: 0.4,
						tdPadding: [0, 5, 2, 5],
						header: {
							maxHeightRadio: MaxHeightRatio.QUARTER,
						},
						pageNumber: {
							disabled: true,
						},
					}
				);
				nextTick(() => {
					if (instance) {
						instance.command.executePrint();
					}
				});
			} catch (error) {
				ElMessage.warning('打印数据异常，请联系管理员：' + error);
			}
		};

		return {
			initCanvasEditor,
		};
	},
});
</script>

<style lang="scss" scoped>
.cnavas_box_conta {
	position: fixed;
	right: -100000px;
}
</style>