|
|
@ -109,63 +109,6 @@ |
|
|
|
<div slot="description">{{item.record ? item.record.answer[0] : ''}}</div> |
|
|
|
</a-step> |
|
|
|
</template> |
|
|
|
|
|
|
|
<!-- <a-step :status="currentIndex == 0 ? 'process' : currentIndex > 0 ? 'finish' : 'wait'"> |
|
|
|
<div slot="title" style="display: flex;justify-content: space-between;width: 100%"> |
|
|
|
<div>到达</div> |
|
|
|
<div>{{currentIndex == 0 ? '进行中' : currentIndex > 0 ? '已完成' : ''}}</div> |
|
|
|
</div> |
|
|
|
<div slot="description">{{currentIndex >= 0 ? '2025-01-08 12:47:42' : ''}}</div> |
|
|
|
</a-step> |
|
|
|
<a-step :status="currentIndex == 1 ? 'process' : currentIndex > 1 ? 'finish' : 'wait'"> |
|
|
|
<div slot="title" style="display: flex;justify-content: space-between;width: 100%"> |
|
|
|
<div>呼叫</div> |
|
|
|
<div>{{currentIndex == 1 ? '进行中' : currentIndex > 1 ? '已完成' : ''}}</div> |
|
|
|
</div> |
|
|
|
<div slot="description">{{currentIndex >= 1 ? '2025-01-08 12:47:42' : ''}}</div> |
|
|
|
</a-step> |
|
|
|
<a-step :status="currentIndex == 2 ? 'process' : currentIndex > 2 ? 'finish' : 'wait'"> |
|
|
|
<div slot="title" style="display: flex;justify-content: space-between;width: 100%"> |
|
|
|
<div>到场</div> |
|
|
|
<div>{{currentIndex == 2 ? '进行中' : currentIndex > 2 ? '已完成' : ''}}</div> |
|
|
|
</div> |
|
|
|
<div slot="description">{{currentIndex >= 2 ? '2025-01-08 12:47:42' : ''}}</div> |
|
|
|
</a-step> |
|
|
|
<a-step :status="currentIndex == 3 ? 'process' : currentIndex > 3 ? 'finish' : 'wait'"> |
|
|
|
<div slot="title" style="display: flex;justify-content: space-between;width: 100%"> |
|
|
|
<div>采血</div> |
|
|
|
<div>{{currentIndex == 2 ? '进行中' : currentIndex > 2 ? '已完成' : ''}}</div> |
|
|
|
</div> |
|
|
|
<div slot="description">{{currentIndex >= 2 ? '2025-01-08 12:47:42' : ''}}</div> |
|
|
|
</a-step> |
|
|
|
<a-step :status="currentIndex == 4 ? 'process' : currentIndex > 4 ? 'finish' : 'wait'"> |
|
|
|
<div slot="title" style="display: flex;justify-content: space-between;width: 100%"> |
|
|
|
<div>心点</div> |
|
|
|
<div>{{currentIndex == 2 ? '进行中' : currentIndex > 2 ? '已完成' : ''}}</div> |
|
|
|
</div> |
|
|
|
<div slot="description">{{currentIndex >= 2 ? '2025-01-08 12:47:42' : ''}}</div> |
|
|
|
</a-step> |
|
|
|
<a-step :status="currentIndex == 5 ? 'process' : currentIndex > 5 ? 'finish' : 'wait'"> |
|
|
|
<div slot="title" style="display: flex;justify-content: space-between;width: 100%"> |
|
|
|
<div>到达CT</div> |
|
|
|
<div>{{currentIndex == 2 ? '进行中' : currentIndex > 2 ? '已完成' : ''}}</div> |
|
|
|
</div> |
|
|
|
<div slot="description">{{currentIndex >= 2 ? '2025-01-08 12:47:42' : ''}}</div> |
|
|
|
</a-step> |
|
|
|
<a-step :status="currentIndex == 6 ? 'process' : currentIndex > 6 ? 'finish' : 'wait'"> |
|
|
|
<div slot="title" style="display: flex;justify-content: space-between;width: 100%"> |
|
|
|
<div>知情同意</div> |
|
|
|
<div>{{currentIndex == 2 ? '进行中' : currentIndex > 2 ? '已完成' : ''}}</div> |
|
|
|
</div> |
|
|
|
<div slot="description">{{currentIndex >= 2 ? '2025-01-08 12:47:42' : ''}}</div> |
|
|
|
</a-step> |
|
|
|
<a-step :status="currentIndex == 7 ? 'process' : currentIndex > 7 ? 'finish' : 'wait'"> |
|
|
|
<div slot="title" style="display: flex;justify-content: space-between;width: 100%"> |
|
|
|
<div>开始静脉溶栓时间</div> |
|
|
|
<div>{{currentIndex == 2 ? '进行中' : currentIndex > 2 ? '已完成' : ''}}</div> |
|
|
|
</div> |
|
|
|
<div slot="description">{{currentIndex >= 2 ? '2025-01-08 12:47:42' : ''}}</div> |
|
|
|
</a-step> --> |
|
|
|
</a-steps> |
|
|
|
</div> |
|
|
|
</a-card> |
|
|
@ -183,117 +126,105 @@ |
|
|
|
</a-col> |
|
|
|
<a-col :span="24"> |
|
|
|
<a-card class="report-card" title="溶栓观察表"> |
|
|
|
<a slot="extra" href="#">导出</a> |
|
|
|
<a slot="extra" href="#" @click="handleExport">导出</a> |
|
|
|
<div class="doc-ct-content"> |
|
|
|
<!-- <div class="record-content" v-html="observeData"></div> |
|
|
|
<div class="emtpy" v-if="!observeData"> |
|
|
|
<a-empty :image="emptyImage" description="暂无溶栓记录" /> |
|
|
|
</div> --> |
|
|
|
<div> |
|
|
|
<table border class="report-rsgcb"> |
|
|
|
<tr> |
|
|
|
<td>姓名:{{patient.patientName}}</td> |
|
|
|
<td>性别:{{patient.patientGenderString}}</td> |
|
|
|
<td>年龄:{{patient.patientAge}}</td> |
|
|
|
<td>诊断:{{patient.firstAidZlTypeString}}</td> |
|
|
|
<td>观察者:</td> |
|
|
|
<td>诊断: {{patient.firstAidZlType}}</td> |
|
|
|
<td>观察者: </td> |
|
|
|
</tr> |
|
|
|
<tr> |
|
|
|
<td colspan="3">发病时间:{{queryItemInfo('XGZL-CCWC-TIME').toString()}}</td> |
|
|
|
<td colspan="3">用药时间:{{}}</td> |
|
|
|
<td colspan="3">用药时间:{{queryItemInfo('RYPG-CBZD').toString()}}</td> |
|
|
|
</tr> |
|
|
|
<tr> |
|
|
|
<td colspan="2">溶栓药物:{{queryItemInfo('JMRS-RSYW').toString()}}</td> |
|
|
|
<td colspan="2">剂量:</td> |
|
|
|
<td colspan="2">用法用量:</td> |
|
|
|
</tr> |
|
|
|
<tr> |
|
|
|
<td></td> |
|
|
|
<td>血压(BP):</td> |
|
|
|
<td>心率(HR):</td> |
|
|
|
<td>血样饱和度(HR):</td> |
|
|
|
<td>格拉斯评分:</td> |
|
|
|
<td>NIHSS:</td> |
|
|
|
<td colspan="2">剂量:{{queryItemInfo('JMRS-JDJL').toString()}}</td> |
|
|
|
<td colspan="2">用法用量: </td> |
|
|
|
</tr> |
|
|
|
<tr> |
|
|
|
<td>时间点</td> |
|
|
|
<td></td> |
|
|
|
<td></td> |
|
|
|
<td></td> |
|
|
|
<td></td> |
|
|
|
<td></td> |
|
|
|
<td>血压(BP)</td> |
|
|
|
<td>心率(HR)</td> |
|
|
|
<td>血样饱和度(HR)</td> |
|
|
|
<td>格拉斯评分</td> |
|
|
|
<td>NIHSS</td> |
|
|
|
</tr> |
|
|
|
<tr> |
|
|
|
<td>用药前</td> |
|
|
|
<td>{{queryItemInfo('JMRS-Q-SYSTOLIC-PRESSURE').toString()}}</td> |
|
|
|
<td></td> |
|
|
|
<td></td> |
|
|
|
<td></td> |
|
|
|
<td></td> |
|
|
|
<td></td> |
|
|
|
<td>{{queryItemInfo('JMRS-Q-NIHSS').toString()}}</td> |
|
|
|
</tr> |
|
|
|
<tr> |
|
|
|
<td>15min</td> |
|
|
|
<td>{{queryItemInfo('JMRS-15-SYSTOLIC-PRESSURE').toString()}}</td> |
|
|
|
<td></td> |
|
|
|
<td></td> |
|
|
|
<td></td> |
|
|
|
<td></td> |
|
|
|
<td></td> |
|
|
|
<td>{{queryItemInfo('JMRS-15-NIHSS').toString()}}</td> |
|
|
|
</tr> |
|
|
|
<tr> |
|
|
|
<td>30min</td> |
|
|
|
<td>{{queryItemInfo('JMRS-30-SYSTOLIC-PRESSURE').toString()}}</td> |
|
|
|
<td></td> |
|
|
|
<td></td> |
|
|
|
<td></td> |
|
|
|
<td></td> |
|
|
|
<td></td> |
|
|
|
<td>{{queryItemInfo('JMRS-30-NIHSS').toString()}}</td> |
|
|
|
</tr> |
|
|
|
<tr> |
|
|
|
<td>45min</td> |
|
|
|
<td>{{queryItemInfo('JMRS-45-SYSTOLIC-PRESSURE').toString()}}</td> |
|
|
|
<td></td> |
|
|
|
<td></td> |
|
|
|
<td></td> |
|
|
|
<td></td> |
|
|
|
<td></td> |
|
|
|
<td>{{queryItemInfo('JMRS-45-NIHSS').toString()}}</td> |
|
|
|
</tr> |
|
|
|
<tr> |
|
|
|
<td>60min</td> |
|
|
|
<td>{{queryItemInfo('JMRS-60-SYSTOLIC-PRESSURE').toString()}}</td> |
|
|
|
<td></td> |
|
|
|
<td></td> |
|
|
|
<td></td> |
|
|
|
<td></td> |
|
|
|
<td></td> |
|
|
|
<td>{{queryItemInfo('JMRS-60-NIHSS').toString()}}</td> |
|
|
|
</tr> |
|
|
|
<tr> |
|
|
|
<td>75min</td> |
|
|
|
<td>{{queryItemInfo('JMRS-75-SYSTOLIC-PRESSURE').toString()}}</td> |
|
|
|
<td></td> |
|
|
|
<td></td> |
|
|
|
<td></td> |
|
|
|
<td></td> |
|
|
|
<td></td> |
|
|
|
<td>{{queryItemInfo('JMRS-75-NIHSS').toString()}}</td> |
|
|
|
</tr> |
|
|
|
<tr> |
|
|
|
<td>90min</td> |
|
|
|
<td>{{queryItemInfo('JMRS-90-SYSTOLIC-PRESSURE').toString()}}</td> |
|
|
|
<td></td> |
|
|
|
<td></td> |
|
|
|
<td></td> |
|
|
|
<td></td> |
|
|
|
<td></td> |
|
|
|
<td>{{queryItemInfo('JMRS-90-NIHSS').toString()}}</td> |
|
|
|
</tr> |
|
|
|
<tr> |
|
|
|
<td>105min</td> |
|
|
|
<td>{{queryItemInfo('JMRS-105-SYSTOLIC-PRESSURE').toString()}}</td> |
|
|
|
<td></td> |
|
|
|
<td></td> |
|
|
|
<td></td> |
|
|
|
<td></td> |
|
|
|
<td></td> |
|
|
|
<td>{{queryItemInfo('JMRS-105-NIHSS').toString()}}</td> |
|
|
|
</tr> |
|
|
|
<tr> |
|
|
|
<td>120min</td> |
|
|
|
<td>{{queryItemInfo('JMRS-120-SYSTOLIC-PRESSURE').toString()}}</td> |
|
|
|
<td></td> |
|
|
|
<td></td> |
|
|
|
<td></td> |
|
|
|
<td></td> |
|
|
|
<td></td> |
|
|
|
<td>{{queryItemInfo('JMRS-120-NIHSS').toString()}}</td> |
|
|
|
</tr> |
|
|
|
</table> |
|
|
|
</div> |
|
|
@ -304,9 +235,166 @@ |
|
|
|
<a-card class="report-card" title="DNT时间表"> |
|
|
|
<a slot="extra" href="#">导出</a> |
|
|
|
<div class="doc-ct-content"> |
|
|
|
<div class="record-content" v-html="dntData"></div> |
|
|
|
<div class="emtpy" v-if="!dntData"> |
|
|
|
<a-empty :image="emptyImage" description="暂无DNT时间表" /> |
|
|
|
<div class="record-content"> |
|
|
|
<table border class="report-rsgcb"> |
|
|
|
<tr> |
|
|
|
<td colspan="2">姓名:{{patient.patientName}}</td> |
|
|
|
<td colspan="3">性别:{{patient.patientGenderString}}</td> |
|
|
|
<td colspan="1">年龄:{{patient.patientAge}}</td> |
|
|
|
<td colspan="2">血糖(BS):{{queryItemInfo('RYPG-BLOOD-SUGAR').toString()}}</td> |
|
|
|
<td colspan="2">血压(BP):{{queryItemInfo('JMRS-Q-SYSTOLIC-PRESSURE').toString()}} |
|
|
|
</td> |
|
|
|
</tr> |
|
|
|
<tr> |
|
|
|
<td colspan="3">一线:</td> |
|
|
|
<td colspan="3">二线:</td> |
|
|
|
<td colspan="4">NIHSS:{{queryItemInfo('JMRS-Q-NIHSS').toString()}}</td> |
|
|
|
</tr> |
|
|
|
<tr> |
|
|
|
<td colspan="2">溶栓流程</td> |
|
|
|
<td colspan="3">具体时间</td> |
|
|
|
<td colspan="2">采集方式</td> |
|
|
|
<td colspan="3">备注</td> |
|
|
|
</tr> |
|
|
|
<tr> |
|
|
|
<td colspan="2">发病时间</td> |
|
|
|
<td colspan="3">{{queryItemInfo('JBXX-FBSJ').toString()}}</td> |
|
|
|
<td colspan="2"></td> |
|
|
|
<td colspan="3"></td> |
|
|
|
</tr> |
|
|
|
<tr> |
|
|
|
<td colspan="2">到院时间</td> |
|
|
|
<td colspan="3">{{queryItemInfo('JBXX-FBSJ').toString()}}</td> |
|
|
|
<td colspan="2">质控平车:</td> |
|
|
|
<td colspan="3"></td> |
|
|
|
</tr> |
|
|
|
<tr> |
|
|
|
<td colspan="2">启动绿道时间</td> |
|
|
|
<td colspan="3">{{queryItemInfo('RYPG-GR-TIME').toString()}}</td> |
|
|
|
<td colspan="2">可视化信息竖屏:</td> |
|
|
|
<td colspan="3"></td> |
|
|
|
</tr> |
|
|
|
<tr> |
|
|
|
<td colspan="2">呼叫时间</td> |
|
|
|
<td colspan="3">{{queryItemInfo('JBXX-TZCZYS-TIME').toString()}}</td> |
|
|
|
<td colspan="2"></td> |
|
|
|
<td colspan="3"></td> |
|
|
|
</tr> |
|
|
|
<tr> |
|
|
|
<td colspan="2">一线到场时间</td> |
|
|
|
<td colspan="3">{{queryItemInfo('JBXX-CZYSDC-TIME').toString()}}</td> |
|
|
|
<td colspan="2"></td> |
|
|
|
<td colspan="3"></td> |
|
|
|
</tr> |
|
|
|
<tr> |
|
|
|
<td colspan="2">采血开始时间</td> |
|
|
|
<td colspan="3">{{queryItemInfo('RYPG-BLOOD-TIME').toString()}}</td> |
|
|
|
<td colspan="2">质控平车</td> |
|
|
|
<td colspan="3"></td> |
|
|
|
</tr> |
|
|
|
<tr> |
|
|
|
<td colspan="2">血样报告时间</td> |
|
|
|
<td colspan="3">{{queryItemInfo('RYPG-BLOOD-REPORT-TIME').toString()}}</td> |
|
|
|
<td colspan="2"></td> |
|
|
|
<td colspan="3"></td> |
|
|
|
</tr> |
|
|
|
<tr> |
|
|
|
<td colspan="2">心电开始时间</td> |
|
|
|
<td colspan="3">{{queryItemInfo('RYPG-ECG-TIME').toString()}}</td> |
|
|
|
<td colspan="2"></td> |
|
|
|
<td colspan="3"></td> |
|
|
|
</tr> |
|
|
|
<tr> |
|
|
|
<td colspan="2">到达CT时间</td> |
|
|
|
<td colspan="3">{{queryItemInfo('RYPG-CT-DD-TIME').toString()}}</td> |
|
|
|
<td colspan="2">质控平车</td> |
|
|
|
<td colspan="3"></td> |
|
|
|
</tr> |
|
|
|
<tr> |
|
|
|
<td colspan="2">CT检查开始时间</td> |
|
|
|
<td colspan="3">{{queryItemInfo('RYPG-CT-JCKS-TIME').toString()}}</td> |
|
|
|
<td colspan="2">质控平车</td> |
|
|
|
<td colspan="3"></td> |
|
|
|
</tr> |
|
|
|
<tr> |
|
|
|
<td colspan="2">CT检查完毕时间</td> |
|
|
|
<td colspan="3">{{queryItemInfo('RYPG-CT-JCWB-TIME').toString()}}</td> |
|
|
|
<td colspan="2"></td> |
|
|
|
<td colspan="3"></td> |
|
|
|
</tr> |
|
|
|
<!-- <tr> |
|
|
|
<td colspan="2">离开CT时间</td> |
|
|
|
<td colspan="3">{{queryItemInfo('RYPG-CT-LK-TIME').toString()}}</td> |
|
|
|
<td colspan="2"></td> |
|
|
|
<td colspan="3"></td> |
|
|
|
</tr> --> |
|
|
|
<tr> |
|
|
|
<td colspan="2">到达核磁时间</td> |
|
|
|
<td colspan="3">{{queryItemInfo('JMRS-HC-TIME').toString()}}</td> |
|
|
|
<td colspan="2"></td> |
|
|
|
<td colspan="3"></td> |
|
|
|
</tr> |
|
|
|
<tr> |
|
|
|
<td colspan="2">二线医生到场时间</td> |
|
|
|
<td colspan="3">{{queryItemInfo('JBXX-SNYSDC-TIME').toString()}}</td> |
|
|
|
<td colspan="2"></td> |
|
|
|
<td colspan="3"></td> |
|
|
|
</tr> |
|
|
|
<tr> |
|
|
|
<td colspan="2">谈话开始时间</td> |
|
|
|
<td colspan="3">{{queryItemInfo('JMRS-TH-TIME').toString()}}</td> |
|
|
|
<td colspan="2"></td> |
|
|
|
<td colspan="3"></td> |
|
|
|
</tr> |
|
|
|
<tr> |
|
|
|
<td colspan="2">签署知情同意书时间</td> |
|
|
|
<td colspan="3">{{queryItemInfo('JMRS-ZQTY-TIME').toString()}}</td> |
|
|
|
<td colspan="2"></td> |
|
|
|
<td colspan="3"></td> |
|
|
|
</tr> |
|
|
|
<tr> |
|
|
|
<td colspan="2">到达溶栓区时间</td> |
|
|
|
<td colspan="3">{{queryItemInfo('JMRS-RSQ-TIME').toString()}}</td> |
|
|
|
<td colspan="2"></td> |
|
|
|
<td colspan="3"></td> |
|
|
|
</tr> |
|
|
|
<tr> |
|
|
|
<td colspan="2">静脉溶栓开始时间</td> |
|
|
|
<td colspan="3">{{queryItemInfo('JMRS-TIME').toString()}}</td> |
|
|
|
<td colspan="2"></td> |
|
|
|
<td colspan="3"></td> |
|
|
|
</tr> |
|
|
|
<tr> |
|
|
|
<td colspan="2">静脉溶栓结束时间</td> |
|
|
|
<td colspan="3">{{queryItemInfo('JMRS-END-TIME').toString()}}</td> |
|
|
|
<td colspan="2"></td> |
|
|
|
<td colspan="3"></td> |
|
|
|
</tr> |
|
|
|
<tr> |
|
|
|
<td colspan="2">进入介入室时间</td> |
|
|
|
<td colspan="3">{{queryItemInfo('JMRS-DDJRS').toString()}}</td> |
|
|
|
<td colspan="2"></td> |
|
|
|
<td colspan="3"></td> |
|
|
|
</tr> |
|
|
|
<tr> |
|
|
|
<td colspan="2">置鞘时间</td> |
|
|
|
<td colspan="3">{{queryItemInfo('XGZL-CCWC-TIME').toString()}}</td> |
|
|
|
<td colspan="2"></td> |
|
|
|
<td colspan="3"></td> |
|
|
|
</tr> |
|
|
|
<tr> |
|
|
|
<td colspan="2">血管再通时间</td> |
|
|
|
<td colspan="3">{{queryItemInfo('XGZL-SH-SCXGZTSJ').toString()}}</td> |
|
|
|
<td colspan="2"></td> |
|
|
|
<td colspan="3"></td> |
|
|
|
</tr> |
|
|
|
<tr> |
|
|
|
<td colspan="2">进入病房时间</td> |
|
|
|
<td colspan="3">{{queryItemInfo('JMRS-DDBF').toString()}}</td> |
|
|
|
<td colspan="2"></td> |
|
|
|
<td colspan="3"></td> |
|
|
|
</tr> |
|
|
|
</table> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
</a-card> |
|
|
@ -334,6 +422,7 @@ |
|
|
|
<throm-report-record ref="record"></throm-report-record> |
|
|
|
<throm-report-observe ref="observe"></throm-report-observe> |
|
|
|
<throm-report-opera ref="opera"></throm-report-opera> |
|
|
|
<a ref="downloadRef" target="_blank" href="javascript:;" style="display: none;"></a> |
|
|
|
</div> |
|
|
|
</template> |
|
|
|
|
|
|
@ -342,6 +431,9 @@ |
|
|
|
mapMutations, |
|
|
|
mapState |
|
|
|
} from 'vuex'; |
|
|
|
import { |
|
|
|
apiUrl |
|
|
|
} from '@/config/setting.js'; |
|
|
|
import { |
|
|
|
getNextNode, |
|
|
|
messageQuery, |
|
|
@ -349,7 +441,8 @@ |
|
|
|
queryLog, |
|
|
|
operationLog, |
|
|
|
getCtInfoPath, |
|
|
|
operationLogEx |
|
|
|
operationLogEx, |
|
|
|
exportRsPdf |
|
|
|
} from 'api'; |
|
|
|
import dayjs from 'dayjs'; |
|
|
|
import duration from 'dayjs/plugin/duration'; |
|
|
@ -431,6 +524,10 @@ |
|
|
|
dataSource: { |
|
|
|
type: Object, |
|
|
|
default: () => ({}) |
|
|
|
}, |
|
|
|
firstAidId: { |
|
|
|
type: String, |
|
|
|
default: "", |
|
|
|
} |
|
|
|
}, |
|
|
|
computed: { |
|
|
@ -496,23 +593,28 @@ |
|
|
|
//TODU |
|
|
|
if (this.reportType == 'modal') { |
|
|
|
console.log(this.dataSource) |
|
|
|
this.patient = this.dataSource |
|
|
|
// this.patient = this.dataSource |
|
|
|
this.init(this.dataSource.firstAidId); |
|
|
|
} else { |
|
|
|
if (!this.patientData) return; |
|
|
|
this.patient = this.patientData |
|
|
|
// if (!this.patientData) return; |
|
|
|
// this.patient = this.patientData |
|
|
|
if (this.firstAidId) { |
|
|
|
this.init(this.firstAidId); |
|
|
|
await this.getMessageQuery(this.firstAidId); |
|
|
|
} |
|
|
|
const { |
|
|
|
firstAidId |
|
|
|
} = this.patient; |
|
|
|
firstAidId && this.init(firstAidId); |
|
|
|
await this.getMessageQuery(); |
|
|
|
} |
|
|
|
// const { |
|
|
|
// firstAidId |
|
|
|
// } = this.patient; |
|
|
|
console.log('report firstAidId', this.firstAidId) |
|
|
|
|
|
|
|
}, |
|
|
|
methods: { |
|
|
|
...mapMutations('patient', ['setNextNodeData', 'setTimerData']), |
|
|
|
async getMessageQuery() { |
|
|
|
const { |
|
|
|
firstAidId |
|
|
|
} = this.patientData; |
|
|
|
async getMessageQuery(firstAidId) { |
|
|
|
// const { |
|
|
|
// firstAidId |
|
|
|
// } = this.patientData; |
|
|
|
const res = await messageQuery(firstAidId); |
|
|
|
const { |
|
|
|
code, |
|
|
@ -533,11 +635,7 @@ |
|
|
|
onSubmit() { |
|
|
|
// this.$emit('next') |
|
|
|
}, |
|
|
|
async getData() { |
|
|
|
const { |
|
|
|
firstAidId |
|
|
|
} = this.patientData |
|
|
|
|
|
|
|
async getData(firstAidId) { |
|
|
|
const resLog = await queryLog({ |
|
|
|
firstAidId |
|
|
|
}) |
|
|
@ -585,7 +683,18 @@ |
|
|
|
name: 'Record', |
|
|
|
}); |
|
|
|
}, |
|
|
|
async handleExport() { |
|
|
|
console.log('this.patient.firstAidId', this.patient.firstAidId) |
|
|
|
const res = await exportRsPdf({ |
|
|
|
firstAidId: this.patient.firstAidId |
|
|
|
}) |
|
|
|
if (res.code == 200) { |
|
|
|
console.log('http://116.204.114.73:20007' + res.data) |
|
|
|
this.$refs.downloadRef.setAttribute('href', 'http://116.204.114.73:20007' + res.data) |
|
|
|
this.$refs.downloadRef.click() |
|
|
|
} |
|
|
|
|
|
|
|
}, |
|
|
|
checkReport(modalRef) { |
|
|
|
console.log('modalRef', this.patient) |
|
|
|
// const { |
|
|
@ -626,6 +735,7 @@ |
|
|
|
|
|
|
|
const res = await queryAidRecord(firstAidId) |
|
|
|
console.log(res) |
|
|
|
this.patient = res.data |
|
|
|
// if (this.patientData) { |
|
|
|
// const { |
|
|
|
// recordValDict |
|
|
@ -640,7 +750,7 @@ |
|
|
|
// firstAidId |
|
|
|
// } = this.patientData; |
|
|
|
this.getNextNode(firstAidId); |
|
|
|
this.getData() |
|
|
|
this.getData(firstAidId) |
|
|
|
}, |
|
|
|
async getNextNode(firstAidId) { |
|
|
|
let res = await getNextNode({ |
|
|
@ -662,9 +772,12 @@ |
|
|
|
async exportRecord() { |
|
|
|
const { |
|
|
|
firstAidId |
|
|
|
} = this.patientData |
|
|
|
} = this.patient |
|
|
|
|
|
|
|
const res = await queryLog({ |
|
|
|
// const res = await queryLog({ |
|
|
|
// firstAidId |
|
|
|
// }) |
|
|
|
const res = await exportRsPdf({ |
|
|
|
firstAidId |
|
|
|
}) |
|
|
|
const { |
|
|
@ -680,8 +793,12 @@ |
|
|
|
}, |
|
|
|
toDownLoad(path) { |
|
|
|
try { |
|
|
|
document.getElementById('exportFirst').href = path; |
|
|
|
document.getElementById('exportFirst').download = '.xlsx'; |
|
|
|
// document.getElementById('exportFirst').href = path; |
|
|
|
// document.getElementById('exportFirst').download = '.xlsx'; |
|
|
|
|
|
|
|
this.$refs.downloadRef.setAttribute('href', 'http://116.204.114.73:20007' + path) |
|
|
|
this.$refs.downloadRef.setAttribute('download', '.xlsx') |
|
|
|
this.$refs.downloadRef.click() |
|
|
|
} catch (e) { |
|
|
|
//TODO handle the exception |
|
|
|
console.log(e.message) |
|
|
|