소스 검색

人群随访不展示表单

finlay 1 년 전
부모
커밋
720f944772
3개의 변경된 파일530개의 추가작업 그리고 526개의 파일을 삭제
  1. 506 508
      assets/docs/diabetesTable.html
  2. 8 2
      lib/pages/check/follow_up_record/controller.dart
  3. 16 16
      lib/pages/check/follow_up_record/view.dart

+ 506 - 508
assets/docs/diabetesTable.html

@@ -1,92 +1,106 @@
 <html>
-	<head>
-		<meta charset="UTF-8" />
-		<title>2型糖尿病患者随访服务记录表</title>
-		<style type="text/css" media="all">
-			* {
-				margin: 0;
-				padding: 0;
-				font-size: 12px;
-			}
 
-			table {
-				border-collapse: collapse;
-				margin: 10px auto;
-			}
+<head>
+    <meta charset="UTF-8" />
+    <title>2型糖尿病患者随访服务记录表</title>
+    <style type="text/css" media="all">
+        * {
+            margin: 0;
+            padding: 0;
+            font-size: 12px;
+        }
 
-			th,
-			tr,
-			td {
-				border: 1px solid #000;
-				border-collapse: collapse;
-				padding: 6px 5px;
-				page-break-inside: avoid;
-			}
-			h3 {
-				font-size: 24px;
-			}
+        table {
+            border-collapse: collapse;
+            margin: 10px auto;
+        }
 
-			thead {
-				border: none;
-			}
-			thead tr {
-				border: none;
-			}
-			thead tr th {
-				border: none;
-				border-collapse: separate;
-			}
+        th,
+        tr,
+        td {
+            border: 1px solid #000;
+            border-collapse: collapse;
+            padding: 6px 5px;
+            page-break-inside: avoid;
+        }
 
-			.textAlign,
-			th {
-				text-align: center;
-			}
+        h3 {
+            font-size: 24px;
+        }
 
-			h3 {
-				font-size: 24px;
-			}
-			.boxPosition {
-				display: inline-block;
-				float: inline-end;
-			}
-			.checkBox {
-				display: flex;
-				/* justify-content: end; */
-			}
-			.box {
-				width: 14px;
-				height: 14px;
-				display: inline-block;
-				border: 1px solid black;
-				text-align: center;
-				line-height: 14px;
-				position: relative;
-			}
-			.box:not(:last-child) {
-				margin-right: 10px;
-			}
-			.box:not(:last-child)::after {
-				content: "/";
-				position: absolute;
-				top: 50%;
-				left: 90%;
-				transform: translateY(-50%);
-				padding: 0 5px;
-			}
-			@page {
-				margin-top: 1.4cm; /* 设置其他页的上边距为2cm */
-				margin-bottom: 1.2cm; /* 设置其他页的下边距为2cm */
-			}
+        thead {
+            border: none;
+        }
 
-			@page :first {
-				margin-top: 0;
-				margin-bottom: 10mm; /* 设置第一页的下边距为2cm */
-			}
-		</style>
-	</head>
-	<body>
-		<div id="content">
-			<!-- <div class="header">
+        thead tr {
+            border: none;
+        }
+
+        thead tr th {
+            border: none;
+            border-collapse: separate;
+        }
+
+        .textAlign,
+        th {
+            text-align: center;
+        }
+
+        h3 {
+            font-size: 24px;
+        }
+
+        .boxPosition {
+            display: inline-block;
+            float: inline-end;
+        }
+
+        .checkBox {
+            display: flex;
+            /* justify-content: end; */
+        }
+
+        .box {
+            width: 14px;
+            height: 14px;
+            display: inline-block;
+            border: 1px solid black;
+            text-align: center;
+            line-height: 14px;
+            position: relative;
+        }
+
+        .box:not(:last-child) {
+            margin-right: 10px;
+        }
+
+        .box:not(:last-child)::after {
+            content: "/";
+            position: absolute;
+            top: 50%;
+            left: 90%;
+            transform: translateY(-50%);
+            padding: 0 5px;
+        }
+
+        @page {
+            margin-top: 1.4cm;
+            /* 设置其他页的上边距为2cm */
+            margin-bottom: 1.2cm;
+            /* 设置其他页的下边距为2cm */
+        }
+
+        @page :first {
+            margin-top: 0;
+            margin-bottom: 10mm;
+            /* 设置第一页的下边距为2cm */
+        }
+    </style>
+</head>
+
+<body>
+    <div id="content">
+        <!-- <div class="header">
 				<span>档案号:</span>
 				<div class="line"></div>
 				<button type="button" class="btn hid">打印</button>
@@ -96,380 +110,363 @@
 				</div>
 				<button type="button" class="btn hid">保存</button>
 			</div> -->
-			<div class="main">
-                <h3 class="textAlign" style="font-weight: bold">
-					2型糖尿病患者随访服务记录表
-				</h3>
-				<div class="tableHeader">
-					<span class="require">姓名:<span>王珍珍</span></span
-					><span></span>
-				</div>
-				<table>
-					<tbody>
-						<tr>
-							<td colspan="2" class="boldTd require">随访日期</td>
-							<td colspan="2" class="boldTd">
-								<span id="Follow_Time1"></span>
-							</td>
-							<td colspan="2" class="boldTd">
-								<span id="Follow_Time2"></span>
-							</td>
-							<td colspan="2" class="boldTd">
-								<span id="Follow_Time3"></span>
-							</td>
-							<td colspan="2" class="boldTd">
-								<span id="Follow_Time4"></span>
-							</td>
-						</tr>
-						<tr>
-							<td colspan="2" class="boldTd require">随访方式</td>
-							<td colspan="2">
-								<span>1 门诊 2 家庭 3 电话</span>
-								<div class="boxPosition">
-									<span id="Follow_Type1" class="box"></span>
-								</div>
-							</td>
-							<td colspan="2">
-								<span>1 门诊 2 家庭 3 电话</span>
-								<div class="boxPosition">
-									<span id="Follow_Type2" class="box"></span>
-								</div>
-							</td>
-							<td colspan="2">
-								<span>1 门诊 2 家庭 3 电话</span>
-								<div class="boxPosition">
-									<span id="Follow_Type3" class="box"></span>
-								</div>
-							</td>
-							<td colspan="2">
-								<span>1 门诊 2 家庭 3 电话</span>
-								<div class="boxPosition">
-									<span id="Follow_Type4" class="box"></span>
-								</div>
-							</td>
-						</tr>
-						<tr>
-							<td rowspan="2" class="boldTd2 require">症 状</td>
-							<td rowspan="2" class="boldTd require">
-								1 无症状 <br />2 头痛头晕<br />3 恶心呕吐<br />4
-								眼花耳鸣<br />5 呼吸困难<br />6 心悸胸闷<br />7
-								鼻衄出血不止<br />8 四肢发麻<br />9 下肢水肿<br />10
-								其他
-							</td>
-							<td colspan="2" >
-								<div class="textRight">
-								<div id="Symptom1" class="checkBox" data-param="4">
-									<!-- 使用JavaScript生成10个方框 -->
-								</div>
-							</div>
-							</td>
-							<td colspan="2" >
-								<div class="textRight">
-								<div id="Symptom2" class="checkBox" data-param="4">
-									<!-- 使用JavaScript生成10个方框 -->
-								</div>
-							</td>
-							<td colspan="2">
-								<div class="textRight">
-								<div id="Symptom3" class="checkBox" data-param="4">
-									<!-- 使用JavaScript生成10个方框 -->
-								</div>
-							</td>
-							<td colspan="2">
-								<div class="textRight">
-								<div id="Symptom4" class="checkBox" data-param="4">
-									<!-- 使用JavaScript生成10个方框 -->
-								</div>
-							</td>
-						</tr>
-						<tr>
-							<td colspan="2" class="boldTd3">
-								其他:<span></span>
-							</td>
-							<td colspan="2" class="boldTd3">
-								其他:<span></span>
-							</td>
-							<td colspan="2" class="boldTd3">
-								其他:<span></span>
-							</td>
-							<td colspan="2" class="boldTd3">
-								其他:<span></span>
-							</td>
-						</tr>
-						<tr>
-							<td rowspan="8" class="boldTd2 require">体征</td>
-							<td class="boldTd">血压(mmHg)</td>
-							<td colspan="2" id="Right1"><span></span></td>
-							<td colspan="2" id="Right2"><span></span></td>
-							<td colspan="2" id="Right3"><span></span></td>
-							<td colspan="2" id="Right4"><span></span></td>
-						</tr>
-						<tr>
-							<td class="boldTd require">体重(kg)</td>
-							<td colspan="2" id="Weight1"></td>
-							<td colspan="2" id="Weight2"></td>
-							<td colspan="2" id="Weight3"></td>
-							<td colspan="2" id="Weight4"></td>
-						</tr>
-						<tr>
-							<td class="boldTd require">下次随访目标(kg)</td>
-							<td colspan="2" id="Weight_Next1"></td>
-							<td colspan="2" id="Weight_Next2"></td>
-							<td colspan="2" id="Weight_Next3"></td>
-							<td colspan="2" id="Weight_Next4"></td>
-						</tr>
-						<tr>
-							<td class="boldTd require">身高(cm)</td>
-							<td colspan="2" id="Height1"></td>
-							<td colspan="2" id="Height2"></td>
-							<td colspan="2" id="Height3"></td>
-							<td colspan="2" id="Height4"></td>
-						</tr>
-						<tr>
-							<td class="boldTd">体质指数(BMI)kg/m²</td>
-							<td colspan="2" id="Bmi1"></td>
-							<td colspan="2" id="Bmi2"></td>
-							<td colspan="2" id="Bmi3"></td>
-							<td colspan="2" id="Bmi4"></td>
-						</tr>
-						<tr>
-							<td class="boldTd">下次随访目标(kg/m²)</td>
-							<td colspan="2" id="Bmi_Next1"></td>
-							<td colspan="2" id="Bmi_Next2"></td>
-							<td colspan="2" id="Bmi_Next3"></td>
-							<td colspan="2" id="Bmi_Next4"></td>
-						</tr>
+        <div class="main">
+            <h3 class="textAlign" style="font-weight: bold">
+                2型糖尿病患者随访服务记录表
+            </h3>
+            <div class="tableHeader">
+                <span class="require">姓名:<span></span></span><span></span>
+            </div>
+            <table>
+                <tbody>
+                    <tr>
+                        <td colspan="2" class="boldTd require">随访日期</td>
+                        <td colspan="2" class="boldTd">
+                            <span id="Follow_Time1"></span>
+                        </td>
+                        <td colspan="2" class="boldTd">
+                            <span id="Follow_Time2"></span>
+                        </td>
+                        <td colspan="2" class="boldTd">
+                            <span id="Follow_Time3"></span>
+                        </td>
+                        <td colspan="2" class="boldTd">
+                            <span id="Follow_Time4"></span>
+                        </td>
+                    </tr>
+                    <tr>
+                        <td colspan="2" class="boldTd require">随访方式</td>
+                        <td colspan="2">
+                            <span>1 门诊 2 家庭 3 电话</span>
+                            <div class="boxPosition">
+                                <span id="Follow_Type1" class="box"></span>
+                            </div>
+                        </td>
+                        <td colspan="2">
+                            <span>1 门诊 2 家庭 3 电话</span>
+                            <div class="boxPosition">
+                                <span id="Follow_Type2" class="box"></span>
+                            </div>
+                        </td>
+                        <td colspan="2">
+                            <span>1 门诊 2 家庭 3 电话</span>
+                            <div class="boxPosition">
+                                <span id="Follow_Type3" class="box"></span>
+                            </div>
+                        </td>
+                        <td colspan="2">
+                            <span>1 门诊 2 家庭 3 电话</span>
+                            <div class="boxPosition">
+                                <span id="Follow_Type4" class="box"></span>
+                            </div>
+                        </td>
+                    </tr>
+                    <tr>
+                        <td rowspan="2" class="boldTd2 require">症 状</td>
+                        <td rowspan="2" class="boldTd require">
+                            1 无症状 <br />2 多饮<br />3 多食<br />4
+                            多尿<br />5 视力模糊<br />6 感染<br />7
+                            手脚麻木<br />8 下肢浮肿<br />9 体重明显下降<br />10
+                            其他
+                        </td>
+                        <td colspan="2">
+                            <div class="textRight">
+                                <div id="Symptom1" class="checkBox" data-param="4">
+                                    <!-- 使用JavaScript生成10个方框 -->
+                                </div>
+                            </div>
+                        </td>
+                        <td colspan="2">
+                            <div class="textRight">
+                                <div id="Symptom2" class="checkBox" data-param="4">
+                                    <!-- 使用JavaScript生成10个方框 -->
+                                </div>
+                        </td>
+                        <td colspan="2">
+                            <div class="textRight">
+                                <div id="Symptom3" class="checkBox" data-param="4">
+                                    <!-- 使用JavaScript生成10个方框 -->
+                                </div>
+                        </td>
+                        <td colspan="2">
+                            <div class="textRight">
+                                <div id="Symptom4" class="checkBox" data-param="4">
+                                    <!-- 使用JavaScript生成10个方框 -->
+                                </div>
+                        </td>
+                    </tr>
+                    <tr>
+                        <td colspan="2" class="boldTd3">
+                            其他:<span></span>
+                        </td>
+                        <td colspan="2" class="boldTd3">
+                            其他:<span></span>
+                        </td>
+                        <td colspan="2" class="boldTd3">
+                            其他:<span></span>
+                        </td>
+                        <td colspan="2" class="boldTd3">
+                            其他:<span></span>
+                        </td>
+                    </tr>
+                    <tr>
+                        <td rowspan="8" class="boldTd2 require">体征</td>
+                        <td class="boldTd">血压(mmHg)</td>
+                        <td colspan="2" id="Right1"><span></span></td>
+                        <td colspan="2" id="Right2"><span></span></td>
+                        <td colspan="2" id="Right3"><span></span></td>
+                        <td colspan="2" id="Right4"><span></span></td>
+                    </tr>
+                    <tr>
+                        <td class="boldTd require">体重(kg)</td>
+                        <td colspan="2" id="Weight1"></td>
+                        <td colspan="2" id="Weight2"></td>
+                        <td colspan="2" id="Weight3"></td>
+                        <td colspan="2" id="Weight4"></td>
+                    </tr>
+                    <tr>
+                        <td class="boldTd require">下次随访目标(kg)</td>
+                        <td colspan="2" id="Weight_Next1"></td>
+                        <td colspan="2" id="Weight_Next2"></td>
+                        <td colspan="2" id="Weight_Next3"></td>
+                        <td colspan="2" id="Weight_Next4"></td>
+                    </tr>
+                    <tr>
+                        <td class="boldTd require">身高(cm)</td>
+                        <td colspan="2" id="Height1"></td>
+                        <td colspan="2" id="Height2"></td>
+                        <td colspan="2" id="Height3"></td>
+                        <td colspan="2" id="Height4"></td>
+                    </tr>
+                    <tr>
+                        <td class="boldTd">体质指数(BMI)kg/m²</td>
+                        <td colspan="2" id="Bmi1"></td>
+                        <td colspan="2" id="Bmi2"></td>
+                        <td colspan="2" id="Bmi3"></td>
+                        <td colspan="2" id="Bmi4"></td>
+                    </tr>
+                    <tr>
+                        <td class="boldTd">下次随访目标(kg/m²)</td>
+                        <td colspan="2" id="Bmi_Next1"></td>
+                        <td colspan="2" id="Bmi_Next2"></td>
+                        <td colspan="2" id="Bmi_Next3"></td>
+                        <td colspan="2" id="Bmi_Next4"></td>
+                    </tr>
 
 
 
-						<tr>
-							<td class="boldTd require">足背动脉搏动</td>
-							<td colspan="2">
-								<span>不正常(左侧:减弱,右侧:消失)</span>
-							</td>
-							<td colspan="2">
-								<span>不正常(左侧:减弱,右侧:消失)</span>
-							</td>
-							<td colspan="2">
-								<span>不正常(左侧:减弱,右侧:消失)</span>
-							</td>
-							<td colspan="2">
-								<span>不正常(左侧:减弱,右侧:消失)</span>
-							</td>
-						</tr>
-							<tr>
-							<td class="boldTd require">其他</td>
-							<td colspan="2" id="Sign_Other1"></td>
-							<td colspan="2" id="Sign_Other2"></td>
-							<td colspan="2" id="Sign_Other3"></td>
-							<td colspan="2" id="Sign_Other4"></td>
-						</tr>
-						<tr>
-							<td rowspan="10" class="boldTd2 require">
-								生活方式指导
-							</td>
-							<td class="boldTd">日吸烟量(支)</td>
-							<td colspan="2" id="Smoking_Daily1"></td>
-							<td colspan="2" id="Smoking_Daily2"></td>
-							<td colspan="2" id="Smoking_Daily3"></td>
-							<td colspan="2" id="Smoking_Daily4"></td>
-						</tr>
-						<tr>
-							<td class="boldTd">下次随访目标(支)</td>
-							<td colspan="2">
-								<span id="Goal_Smoking1"></span>
-							</td>
-							<td colspan="2">
-								<span id="Goal_Smoking2"></span>
-							</td>
-							<td colspan="2">
-								<span id="Goal_Smoking3"></span>
-							</td>
-							<td colspan="2">
-								<span id="Goal_Smoking4"></span>
-							</td>
-						</tr>
-						<tr>
-							<td class="boldTd require">日饮酒量(两)</td>
-							<td colspan="2" id="Drinking_Daily1"></td>
-							<td colspan="2" id="Drinking_Daily2"></td>
-							<td colspan="2" id="Drinking_Daily3"></td>
-							<td colspan="2" id="Drinking_Daily4"></td>
-						</tr>
-						<tr>
-							<td class="boldTd require">下次随访目标(两)</td>
-							<td colspan="2">
-								<span id="Goal_Drinking1"></span>
-							</td>
-							<td colspan="2">
-								<span id="Goal_Drinking2"></span>
-							</td>
-							<td colspan="2">
-								<span id="Goal_Drinking3"></span>
-							</td>
-							<td colspan="2">
-								<span id="Goal_Drinking4"></span>
-							</td>
-						</tr>
-						<tr>
-							<td class="boldTd require">运动</td>
-							<td colspan="2">
-								<span><span id="">1</span>次/周</span
-								>&nbsp;&nbsp;&nbsp;&nbsp;<span
-									><span id="">1</span>分钟/次</span
-								>
-							</td>
-							<td colspan="2">
-								<span> <span id="">1</span>次/周</span
-								>&nbsp;&nbsp;&nbsp;&nbsp;<span
-									><span id="">1</span>分钟/次</span
-								>
-							</td>
-							<td colspan="2">
-								<span><span id="">1</span>次/周</span
-								>&nbsp;&nbsp;&nbsp;&nbsp;<span
-									><span id="">1</span>分钟/次</span
-								>
-							</td>
-							<td colspan="2">
-								<span><span id="">1</span>次/周</span
-								>&nbsp;&nbsp;&nbsp;&nbsp;<span
-									><span id="">1</span>分钟/次</span
-								>
-							</td>
-						</tr>
-						<tr>
-							<td class="boldTd require">下次随访目标</td>
-							<td colspan="2">
-								<span>5次/周</span>&nbsp;&nbsp;&nbsp;&nbsp;<span
-									>60分钟/次</span
-								>
-							</td>
-							<td colspan="2">
-								<span>5次/周</span>&nbsp;&nbsp;&nbsp;&nbsp;<span
-									>60分钟/次</span
-								>
-							</td>
-							<td colspan="2">
-								<span>5次/周</span>&nbsp;&nbsp;&nbsp;&nbsp;<span
-									>60分钟/次</span
-								>
-							</td>
-							<td colspan="2">
-								<span>5次/周</span>&nbsp;&nbsp;&nbsp;&nbsp;<span
-									>60分钟/次</span
-								>
-							</td>
-						</tr>
+                    <tr>
+                        <td class="boldTd require">足背动脉搏动</td>
+                        <td colspan="2">
+                            <span>不正常(左侧:减弱,右侧:消失)</span>
+                        </td>
+                        <td colspan="2">
+                            <span>不正常(左侧:减弱,右侧:消失)</span>
+                        </td>
+                        <td colspan="2">
+                            <span>不正常(左侧:减弱,右侧:消失)</span>
+                        </td>
+                        <td colspan="2">
+                            <span>不正常(左侧:减弱,右侧:消失)</span>
+                        </td>
+                    </tr>
+                    <tr>
+                        <td class="boldTd require">其他</td>
+                        <td colspan="2" id="Sign_Other1"></td>
+                        <td colspan="2" id="Sign_Other2"></td>
+                        <td colspan="2" id="Sign_Other3"></td>
+                        <td colspan="2" id="Sign_Other4"></td>
+                    </tr>
+                    <tr>
+                        <td rowspan="10" class="boldTd2 require">
+                            生活方式指导
+                        </td>
+                        <td class="boldTd">日吸烟量(支)</td>
+                        <td colspan="2" id="Smoking_Daily1"></td>
+                        <td colspan="2" id="Smoking_Daily2"></td>
+                        <td colspan="2" id="Smoking_Daily3"></td>
+                        <td colspan="2" id="Smoking_Daily4"></td>
+                    </tr>
+                    <tr>
+                        <td class="boldTd">下次随访目标(支)</td>
+                        <td colspan="2">
+                            <span id="Goal_Smoking1"></span>
+                        </td>
+                        <td colspan="2">
+                            <span id="Goal_Smoking2"></span>
+                        </td>
+                        <td colspan="2">
+                            <span id="Goal_Smoking3"></span>
+                        </td>
+                        <td colspan="2">
+                            <span id="Goal_Smoking4"></span>
+                        </td>
+                    </tr>
+                    <tr>
+                        <td class="boldTd require">日饮酒量(两)</td>
+                        <td colspan="2" id="Drinking_Daily1"></td>
+                        <td colspan="2" id="Drinking_Daily2"></td>
+                        <td colspan="2" id="Drinking_Daily3"></td>
+                        <td colspan="2" id="Drinking_Daily4"></td>
+                    </tr>
+                    <tr>
+                        <td class="boldTd require">下次随访目标(两)</td>
+                        <td colspan="2">
+                            <span id="Goal_Drinking1"></span>
+                        </td>
+                        <td colspan="2">
+                            <span id="Goal_Drinking2"></span>
+                        </td>
+                        <td colspan="2">
+                            <span id="Goal_Drinking3"></span>
+                        </td>
+                        <td colspan="2">
+                            <span id="Goal_Drinking4"></span>
+                        </td>
+                    </tr>
+                    <tr>
+                        <td class="boldTd require">运动</td>
+                        <td colspan="2">
+                            <span><span id="">1</span>次/周</span>&nbsp;&nbsp;&nbsp;&nbsp;<span><span
+                                    id="">1</span>分钟/次</span>
+                        </td>
+                        <td colspan="2">
+                            <span> <span id="">1</span>次/周</span>&nbsp;&nbsp;&nbsp;&nbsp;<span><span
+                                    id="">1</span>分钟/次</span>
+                        </td>
+                        <td colspan="2">
+                            <span><span id="">1</span>次/周</span>&nbsp;&nbsp;&nbsp;&nbsp;<span><span
+                                    id="">1</span>分钟/次</span>
+                        </td>
+                        <td colspan="2">
+                            <span><span id="">1</span>次/周</span>&nbsp;&nbsp;&nbsp;&nbsp;<span><span
+                                    id="">1</span>分钟/次</span>
+                        </td>
+                    </tr>
+                    <tr>
+                        <td class="boldTd require">下次随访目标</td>
+                        <td colspan="2">
+                            <span>5次/周</span>&nbsp;&nbsp;&nbsp;&nbsp;<span>60分钟/次</span>
+                        </td>
+                        <td colspan="2">
+                            <span>5次/周</span>&nbsp;&nbsp;&nbsp;&nbsp;<span>60分钟/次</span>
+                        </td>
+                        <td colspan="2">
+                            <span>5次/周</span>&nbsp;&nbsp;&nbsp;&nbsp;<span>60分钟/次</span>
+                        </td>
+                        <td colspan="2">
+                            <span>5次/周</span>&nbsp;&nbsp;&nbsp;&nbsp;<span>60分钟/次</span>
+                        </td>
+                    </tr>
 
 
 
-						<tr>
-							<td class="boldTd require">主食(克/天)</td>
-							<td colspan="2">9</td>
-							<td colspan="2">9</td>
-							<td colspan="2">9</td>
-							<td colspan="2">9</td>
-						</tr>
-						<tr>
-							<td class="boldTd require">
-								下次随访<br />目标(克/天)
-							</td>
-							<td colspan="2">1</td>
-							<td colspan="2">1</td>
-							<td colspan="2">1</td>
-							<td colspan="2">1</td>
-						</tr>
+                    <tr>
+                        <td class="boldTd require">主食(克/天)</td>
+                        <td colspan="2">9</td>
+                        <td colspan="2">9</td>
+                        <td colspan="2">9</td>
+                        <td colspan="2">9</td>
+                    </tr>
+                    <tr>
+                        <td class="boldTd require">
+                            下次随访<br />目标(克/天)
+                        </td>
+                        <td colspan="2">1</td>
+                        <td colspan="2">1</td>
+                        <td colspan="2">1</td>
+                        <td colspan="2">1</td>
+                    </tr>
 
-							<tr>
-							<td class="boldTd require">心理调整</td>
-							<td colspan="2" id="Psychol_Adjust1"></td>
-							<td colspan="2" id="Psychol_Adjust2"></td>
-							<td colspan="2" id="Psychol_Adjust3"></td>
-							<td colspan="2" id="Psychol_Adjust4"></td>
-						</tr>
-						<tr>
-							<td class="boldTd require">遵医行为</td>
-							<td colspan="2" id="Compliance1"></td>
-							<td colspan="2" id="Compliance2"></td>
-							<td colspan="2" id="Compliance3"></td>
-							<td colspan="2" id="Compliance4"></td>
-						</tr>
-						<tr>
-							<td colspan="2" class="boldTd require">
-								辅助检查*
-							</td>
-							<td colspan="2" id="Auxiliary_Other1"></td>
-							<td colspan="2" id="Auxiliary_Other2"></td>
-							<td colspan="2" id="Auxiliary_Other3"></td>
-							<td colspan="2" id="Auxiliary_Other4"></td>
-						</tr>
-						<tr>
-							<td colspan="2" class="boldTd require">
-								服药依从性
-							</td>
-							<td colspan="2" id="Compliance_Drug1"></td>
-							<td colspan="2" id="Compliance_Drug2"></td>
-							<td colspan="2" id="Compliance_Drug3"></td>
-							<td colspan="2" id="Compliance_Drug4"></td>
-						</tr>
-						<tr>
-							<td colspan="2" class="boldTd require">
-								药物不良反应
-							</td>
-							<td colspan="2" id="Adverse1"></td>
-							<td colspan="2" id="Adverse2"></td>
-							<td colspan="2" id="Adverse3"></td>
-							<td colspan="2" id="Adverse4"></td>
-						</tr>
-						<tr>
-							<td colspan="2" class="boldTd require">
-								低血糖反应
-							</td>
-							<td colspan="2"><span>偶尔</span></td>
-							<td colspan="2"><span>偶尔</span></td>
-							<td colspan="2"><span>偶尔</span></td>
-							<td colspan="2"><span>偶尔</span></td>
-						</tr>
-						<tr>
-							<td colspan="2" class="boldTd require">
-								此次随访分类
-							</td>
-							<td colspan="2" id="Follow_Up_Classify1"></td>
-							<td colspan="2" id="Follow_Up_Classify2"></td>
-							<td colspan="2" id="Follow_Up_Classify3"></td>
-							<td colspan="2" id="Follow_Up_Classify4"></td>
-						</tr>
-							<tr>
-							<td colspan="2" class="boldTd">药物名称</td>
-							<td colspan="2" class="boldTd" id="Appraisal1"></td>
-							<td colspan="2" class="boldTd" id="Appraisal2"></td>
-							<td colspan="2" class="boldTd" id="Appraisal3"></td>
-							<td colspan="2" class="boldTd" id="Appraisal4"></td>
-						</tr>
-						<tr>
-							<td rowspan="2" class="boldTd2">转诊</td>
-							<td class="boldTd require">原因</td>
-							<td colspan="2" id="Referral_Hospital1"></td>
-							<td colspan="2" id="Referral_Hospital2"></td>
-							<td colspan="2" id="Referral_Hospital3"></td>
-							<td colspan="2" id="Referral_Hospital4"></td>
-						</tr>
-						<tr>
-							<td class="boldTd require">机构及科别</td>
-							<td colspan="2" id="Referral_Hospital1"></td>
-							<td colspan="2" id="Referral_Hospital2"></td>
-							<td colspan="2" id="Referral_Hospital3"></td>
-							<td colspan="2" id="Referral_Hospital4"></td>
-						</tr>
-						<tr>
-							<td colspan="2" class="boldTd">下次随访日期</td>
-							<td colspan="2" class="require" id="Next_Follow_Up_Time1"></td>
-							<td colspan="2" class="require" id="Next_Follow_Up_Time2"></td>
-							<td colspan="2" class="require" id="Next_Follow_Up_Time3"></td>
-							<td colspan="2" class="require" id="Next_Follow_Up_Time4"></td>
-						</tr>
-						<!-- <tr>
+                    <tr>
+                        <td class="boldTd require">心理调整</td>
+                        <td colspan="2" id="Psychol_Adjust1"></td>
+                        <td colspan="2" id="Psychol_Adjust2"></td>
+                        <td colspan="2" id="Psychol_Adjust3"></td>
+                        <td colspan="2" id="Psychol_Adjust4"></td>
+                    </tr>
+                    <tr>
+                        <td class="boldTd require">遵医行为</td>
+                        <td colspan="2" id="Compliance1"></td>
+                        <td colspan="2" id="Compliance2"></td>
+                        <td colspan="2" id="Compliance3"></td>
+                        <td colspan="2" id="Compliance4"></td>
+                    </tr>
+                    <tr>
+                        <td colspan="2" class="boldTd require">
+                            辅助检查*
+                        </td>
+                        <td colspan="2" id="Auxiliary_Other1"></td>
+                        <td colspan="2" id="Auxiliary_Other2"></td>
+                        <td colspan="2" id="Auxiliary_Other3"></td>
+                        <td colspan="2" id="Auxiliary_Other4"></td>
+                    </tr>
+                    <tr>
+                        <td colspan="2" class="boldTd require">
+                            服药依从性
+                        </td>
+                        <td colspan="2" id="Compliance_Drug1"></td>
+                        <td colspan="2" id="Compliance_Drug2"></td>
+                        <td colspan="2" id="Compliance_Drug3"></td>
+                        <td colspan="2" id="Compliance_Drug4"></td>
+                    </tr>
+                    <tr>
+                        <td colspan="2" class="boldTd require">
+                            药物不良反应
+                        </td>
+                        <td colspan="2" id="Adverse1"></td>
+                        <td colspan="2" id="Adverse2"></td>
+                        <td colspan="2" id="Adverse3"></td>
+                        <td colspan="2" id="Adverse4"></td>
+                    </tr>
+                    <tr>
+                        <td colspan="2" class="boldTd require">
+                            低血糖反应
+                        </td>
+                        <td colspan="2"><span>偶尔</span></td>
+                        <td colspan="2"><span>偶尔</span></td>
+                        <td colspan="2"><span>偶尔</span></td>
+                        <td colspan="2"><span>偶尔</span></td>
+                    </tr>
+                    <tr>
+                        <td colspan="2" class="boldTd require">
+                            此次随访分类
+                        </td>
+                        <td colspan="2" id="Follow_Up_Classify1"></td>
+                        <td colspan="2" id="Follow_Up_Classify2"></td>
+                        <td colspan="2" id="Follow_Up_Classify3"></td>
+                        <td colspan="2" id="Follow_Up_Classify4"></td>
+                    </tr>
+                    <tr>
+                        <td colspan="2" class="boldTd">药物名称</td>
+                        <td colspan="2" class="boldTd" id="Appraisal1"></td>
+                        <td colspan="2" class="boldTd" id="Appraisal2"></td>
+                        <td colspan="2" class="boldTd" id="Appraisal3"></td>
+                        <td colspan="2" class="boldTd" id="Appraisal4"></td>
+                    </tr>
+                    <tr>
+                        <td rowspan="2" class="boldTd2">转诊</td>
+                        <td class="boldTd require">原因</td>
+                        <td colspan="2" id="Referral_Hospital1"></td>
+                        <td colspan="2" id="Referral_Hospital2"></td>
+                        <td colspan="2" id="Referral_Hospital3"></td>
+                        <td colspan="2" id="Referral_Hospital4"></td>
+                    </tr>
+                    <tr>
+                        <td class="boldTd require">机构及科别</td>
+                        <td colspan="2" id="Referral_Hospital1"></td>
+                        <td colspan="2" id="Referral_Hospital2"></td>
+                        <td colspan="2" id="Referral_Hospital3"></td>
+                        <td colspan="2" id="Referral_Hospital4"></td>
+                    </tr>
+                    <tr>
+                        <td colspan="2" class="boldTd">下次随访日期</td>
+                        <td colspan="2" class="require" id="Next_Follow_Up_Time1"></td>
+                        <td colspan="2" class="require" id="Next_Follow_Up_Time2"></td>
+                        <td colspan="2" class="require" id="Next_Follow_Up_Time3"></td>
+                        <td colspan="2" class="require" id="Next_Follow_Up_Time4"></td>
+                    </tr>
+                    <!-- <tr>
 							<td colspan="2" class="boldTd require">
 								随访医生签名
 							</td>
@@ -481,65 +478,66 @@
 								/>
 							</td>
 						</tr> -->
-					</tbody>
-				</table>
-				<!-- <img
+                </tbody>
+            </table>
+            <!-- <img
 					src="https://img.health.gagctv.com//open/file/download?data=yr2aRn1UUQ8kLh1v%2Fch92E6hIr3Mpqp7BGhVkwCSJ7lgYEpZmqo%2BxDz7YYCqEktf"
 				/> -->
-				<!---->
-			</div>
-		</div>
-		<script>
-			const data = window.parent.tableData;
-			for (let i in data) {
-				console.log("%c Line:405 🍢 key", "color:#fca650", i);
-				if (data[i]) {
-					for (let j in data[i]) {
-						if (document.getElementById(j + `${parseInt(i) + 1}`)) {
-							if(Array.isArray(data[i][j]
-							)){
-								const container = document.getElementById(j + `${parseInt(i) + 1}`);
-								let length = 0;
-								if(container.getAttribute('data-param')) {
-									length = container.getAttribute('data-param') ;
-								}
-								// 生成10个方框,并填充值
-								for (let m = 0; m <= length; m++) {
-									const box = document.createElement("div");
-									box.className = "box";
-									if (data[i][j][m]) {
-										console.log("%c Line:490 🌶 data[i][j][m]", "color:#2eafb0", data[i][j][m]);
-										box.innerText =
-											data[i][j][m];
-									}
-									container.appendChild(box);
-								}
-							}else {
-								document.getElementById(
-									j + `${parseInt(i) + 1}`
-								).innerHTML = data[parseInt(i)][j];
-							}
-						} else {
-							// 元素不存在
-							console.log(
-								"未找到具有ID " +
-									j +
-									`${parseInt(i) + 1}` +
-									" 的元素"
-							);
-						}
-					}
-				}
+            <!---->
+        </div>
+    </div>
+    <script>
+        const data = window.parent.tableData;
+        for (let i in data) {
+            console.log("%c Line:405 🍢 key", "color:#fca650", i);
+            if (data[i]) {
+                for (let j in data[i]) {
+                    if (document.getElementById(j + `${parseInt(i) + 1}`)) {
+                        if (Array.isArray(data[i][j]
+                        )) {
+                            const container = document.getElementById(j + `${parseInt(i) + 1}`);
+                            let length = 0;
+                            if (container.getAttribute('data-param')) {
+                                length = container.getAttribute('data-param');
+                            }
+                            // 生成10个方框,并填充值
+                            for (let m = 0; m <= length; m++) {
+                                const box = document.createElement("div");
+                                box.className = "box";
+                                if (data[i][j][m]) {
+                                    console.log("%c Line:490 🌶 data[i][j][m]", "color:#2eafb0", data[i][j][m]);
+                                    box.innerText =
+                                        data[i][j][m];
+                                }
+                                container.appendChild(box);
+                            }
+                        } else {
+                            document.getElementById(
+                                j + `${parseInt(i) + 1}`
+                            ).innerHTML = data[parseInt(i)][j];
+                        }
+                    } else {
+                        // 元素不存在
+                        console.log(
+                            "未找到具有ID " +
+                            j +
+                            `${parseInt(i) + 1}` +
+                            " 的元素"
+                        );
+                    }
+                }
+            }
+
+            // if (document.getElementById(key)) {
+            // 	// 元素存在
+            // 	document.getElementById(key).innerHTML =
+            // 		window.parent.globalData.examData[key];
+            // } else {
+            // 	// 元素不存在
+            // 	console.log("未找到具有ID " + key + " 的元素");
+            // }
+        }
+    </script>
+</body>
 
-				// if (document.getElementById(key)) {
-				// 	// 元素存在
-				// 	document.getElementById(key).innerHTML =
-				// 		window.parent.globalData.examData[key];
-				// } else {
-				// 	// 元素不存在
-				// 	console.log("未找到具有ID " + key + " 的元素");
-				// }
-			}
-		</script>
-	</body>
-</html>
+</html>

+ 8 - 2
lib/pages/check/follow_up_record/controller.dart

@@ -5,6 +5,7 @@ import 'package:flutter/material.dart';
 import 'package:flutter/services.dart';
 import 'package:flutter_inappwebview/flutter_inappwebview.dart';
 import 'package:get/get.dart';
+import 'package:intl/intl.dart';
 import 'package:vitalapp/architecture/defines.dart';
 import 'package:vitalapp/architecture/utils/prompt_box.dart';
 import 'package:vitalapp/managers/interfaces/follow_up.dart';
@@ -99,9 +100,14 @@ class FollowUpRecordController extends FControllerBase {
 
     followUpTableData?.first.followUpRecordDatas?.forEach((element) {
       Map followUp = {
-        "Follow_Time": "YYYY年MM月DD日",
+        "Follow_Time": element.followUpTime != null
+            ? DateFormat("yyyy-MM-dd").format(element.followUpTime!.toLocal())
+            : "",
         "Follow_Type": '${(element.followUpMode?.index ?? 0) + 1} ',
-        "Next_Follow_Up_Time": "YYYY年MM月DD日",
+        "Next_Follow_Up_Time": element.nextFollowUpTime != null
+            ? DateFormat("yyyy-MM-dd")
+                .format(element.nextFollowUpTime!.toLocal())
+            : "",
       };
       followUp.addAll(jsonDecode(element.followUpData ?? ''));
       tableData.add(followUp);

+ 16 - 16
lib/pages/check/follow_up_record/view.dart

@@ -230,20 +230,20 @@ class _followUpRecordCard extends StatelessWidget {
             dataDto: dataDto,
           ),
         ),
-        Positioned(
-          bottom: 16,
-          right: 12,
-          child: IconButton(
-            icon: Icon(
-              Icons.edit,
-              size: 26,
-              color: Theme.of(context).primaryColor,
-            ),
-            onPressed: () {
-              controller.toCheckPage(dataDto); //跳转到随访页面
-            },
-          ),
-        ),
+        // Positioned(
+        //   bottom: 16,
+        //   right: 12,
+        //   child: IconButton(
+        //     icon: Icon(
+        //       Icons.edit,
+        //       size: 26,
+        //       color: Theme.of(context).primaryColor,
+        //     ),
+        //     onPressed: () {
+        //       controller.toCheckPage(dataDto); //跳转到随访页面
+        //     },
+        //   ),
+        // ),
       ],
     );
     return Material(
@@ -256,8 +256,8 @@ class _followUpRecordCard extends StatelessWidget {
         child: InkWell(
           borderRadius: GlobalStyles.borderRadius,
           onTap: () {
-            controller.toFollowUpDetailPage(index, dto);
-            // controller.toCheckPage(dataDto); //跳转到随访页面
+            // controller.toFollowUpDetailPage(index, dto);
+            controller.toCheckPage(dataDto); //跳转到随访页面
           },
           child: body,
         ),