|
@@ -364,7 +364,7 @@
|
364
|
364
|
<el-button type="primary" @click="toMonitorPint">应用</el-button>
|
365
|
365
|
<!-- <el-button type="danger" @click="template_dele">删除模板</el-button>
|
366
|
366
|
<el-button type="primary" @click="template_save">保存模板</el-button> -->
|
367
|
|
- <el-button type="primary" @click="toContentPint(2)">应用</el-button>
|
|
367
|
+ <!-- <el-button type="primary" @click="toContentPint(2)">应用</el-button> -->
|
368
|
368
|
<el-button @click="blood_dialog = false">取消</el-button>
|
369
|
369
|
</span>
|
370
|
370
|
</el-dialog>
|
|
@@ -424,6 +424,8 @@
|
424
|
424
|
@current-change="summaryChange"
|
425
|
425
|
@selection-change="selectionchange2"
|
426
|
426
|
style="width: 100%">
|
|
427
|
+ <el-table-column type="selection"width="55">
|
|
428
|
+ </el-table-column>
|
427
|
429
|
<el-table-column prop="date" label="透析日期" width="" align="center">
|
428
|
430
|
<template slot-scope="scope" a>
|
429
|
431
|
{{ getTime(scope.row.schedule_date) }}
|
|
@@ -447,7 +449,6 @@
|
447
|
449
|
<span slot="footer" class="dialog-footer" style="text-align: center;">
|
448
|
450
|
<!-- <el-button type="danger" @click="template_dele">删除模板</el-button>
|
449
|
451
|
<el-button type="primary" @click="template_save">保存模板</el-button> -->
|
450
|
|
- <el-button type="primary" @click="toContentPint(3)">应用</el-button>
|
451
|
452
|
<el-button type="primary" @click="toSummaryPint">应用</el-button>
|
452
|
453
|
<el-button @click="summary_dialog = false">取消</el-button>
|
453
|
454
|
</span>
|
|
@@ -558,14 +559,14 @@
|
558
|
559
|
<div class="Second_title">方案详情</div>
|
559
|
560
|
<div style="">
|
560
|
561
|
<keep-alive>
|
561
|
|
- <ueditor ref="editor" id="editors" :content="option_context"></ueditor>
|
|
562
|
+ <ueditor ref="editorOne" id="editors" :content="option_context"></ueditor>
|
562
|
563
|
</keep-alive>
|
563
|
564
|
</div>
|
564
|
565
|
</div>
|
565
|
566
|
</div>
|
566
|
567
|
</div>
|
567
|
568
|
<span slot="footer" class="dialog-footer" style="text-align: center;">
|
568
|
|
- <el-button type="primary" @click="toContentPint">应用</el-button>
|
|
569
|
+ <el-button type="primary" @click="toSystemContentPint">应用</el-button>
|
569
|
570
|
<el-button @click="option_dialog = false">取消</el-button>
|
570
|
571
|
</span>
|
571
|
572
|
</el-dialog>
|
|
@@ -583,6 +584,7 @@
|
583
|
584
|
医嘱类型:
|
584
|
585
|
<el-select v-model="advice_type" @change="type_chang" placeholder="请选择" style="width: 120px;">
|
585
|
586
|
<el-option
|
|
587
|
+
|
586
|
588
|
v-for="item in type_option"
|
587
|
589
|
:key="item.value"
|
588
|
590
|
:label="item.label"
|
|
@@ -607,46 +609,46 @@
|
607
|
609
|
:data="adviceList"
|
608
|
610
|
:highlight-current-row="true"
|
609
|
611
|
ref="weight_table"
|
610
|
|
- @selection-change="selectionchange5"
|
|
612
|
+ @selection-change="selectionchange5"
|
611
|
613
|
style="width: 100%">
|
612
|
614
|
<el-table-column type="selection"width="55">
|
613
|
615
|
</el-table-column>
|
614
|
|
- <el-table-column prop="date" label="开始时间" width="">
|
|
616
|
+ <el-table-column prop="date" label="开始时间" width="" align="center">
|
615
|
617
|
<template slot-scope="scope">
|
616
|
618
|
{{ getTimeThree(scope.row.start_time) }}
|
617
|
619
|
</template>
|
618
|
620
|
</el-table-column>
|
619
|
|
- <el-table-column prop="name" label="医嘱名称" width="">
|
|
621
|
+ <el-table-column prop="name" label="医嘱名称" width="" align="center">
|
620
|
622
|
<template slot-scope="scope">
|
621
|
|
- {{ getTimeThree(scope.row.advice_name) }}
|
|
623
|
+ {{scope.row.advice_name }}
|
622
|
624
|
</template>
|
623
|
625
|
</el-table-column>
|
624
|
|
- <el-table-column prop="guige" label="规格" width="">
|
|
626
|
+ <el-table-column prop="guige" label="规格" width="" align="center">
|
625
|
627
|
<template slot-scope="scope">
|
626
|
|
- {{ getTimeThree(scope.row.advice_desc) }}
|
|
628
|
+ {{scope.row.advice_desc}}
|
627
|
629
|
</template>
|
628
|
630
|
</el-table-column>
|
629
|
|
- <el-table-column prop="danci" label="单次用量" width="">
|
|
631
|
+ <el-table-column prop="danci" label="单次用量" width="" align="center">
|
630
|
632
|
<template slot-scope="scope">
|
631
|
633
|
<span v-if="scope.row.single_dose>0">{{ scope.row.single_dose }}</span>
|
632
|
634
|
</template>
|
633
|
635
|
</el-table-column>
|
634
|
|
- <el-table-column prop="geiyao" label="给药途径" width="">
|
|
636
|
+ <el-table-column prop="geiyao" label="给药途径" width="" align="center">
|
635
|
637
|
<template slot-scope="scope">
|
636
|
638
|
{{scope.row.delivery_way}}
|
637
|
639
|
</template>
|
638
|
640
|
</el-table-column>
|
639
|
|
- <el-table-column prop="pinlv" label="执行频率" width="">
|
|
641
|
+ <el-table-column prop="pinlv" label="执行频率" width="" align="center">
|
640
|
642
|
<template slot-scope="scope">
|
641
|
643
|
{{scope.row.execution_frequency }}
|
642
|
644
|
</template>
|
643
|
645
|
</el-table-column>
|
644
|
|
- <el-table-column prop="beizhu" label="备注" width="">
|
|
646
|
+ <el-table-column prop="beizhu" label="备注" width="" align="center">
|
645
|
647
|
<template slot-scope="scope">
|
646
|
648
|
{{scope.row.remark}}
|
647
|
649
|
</template>
|
648
|
650
|
</el-table-column>
|
649
|
|
- <el-table-column prop="tingzhi" label="停止时间/执行时间" width="">
|
|
651
|
+ <el-table-column prop="tingzhi" label="停止时间/执行时间" width="" align="center">
|
650
|
652
|
<template slot-scope="scope">
|
651
|
653
|
<span v-if="scope.row.advice_type == 1">
|
652
|
654
|
{{ getTimeThree(scope.row.stop_time) }}
|
|
@@ -657,7 +659,7 @@
|
657
|
659
|
|
658
|
660
|
</template>
|
659
|
661
|
</el-table-column>
|
660
|
|
- <el-table-column prop="yuanyin" label="停止原因" width="">
|
|
662
|
+ <el-table-column prop="yuanyin" label="停止原因" width="" align="center">
|
661
|
663
|
<template slot-scope="scope">
|
662
|
664
|
<span v-if="scope.row.advice_type == 1">
|
663
|
665
|
{{scope.row.remark }}
|
|
@@ -665,7 +667,7 @@
|
665
|
667
|
|
666
|
668
|
</template>
|
667
|
669
|
</el-table-column>
|
668
|
|
- <el-table-column prop="yisheng" label="停止医生" width="">
|
|
670
|
+ <el-table-column prop="yisheng" label="停止医生" width="" align="center">
|
669
|
671
|
<template slot-scope="scope">
|
670
|
672
|
<span v-if="scope.row.advice_type == 1">
|
671
|
673
|
{{ getDocName(scope.row.advice_doctor) }}
|
|
@@ -676,10 +678,8 @@
|
676
|
678
|
</el-table>
|
677
|
679
|
</div>
|
678
|
680
|
</div>
|
679
|
|
- <span slot="footer" class="dialog-footer" style="text-align: center;">
|
680
|
|
- <!-- <el-button type="danger" @click="template_dele">删除模板</el-button>
|
681
|
|
- <el-button type="primary" @click="template_save">保存模板</el-button> -->
|
682
|
|
- <el-button type="primary" @click="toContentPint">应用</el-button>
|
|
681
|
+ <span slot="footer" class="dialog-footer" style="text-align: center;" align="center">
|
|
682
|
+ <el-button type="primary" @click="toAdviceContentPint">应用</el-button>
|
683
|
683
|
<el-button @click="advice_dialog = false">取消</el-button>
|
684
|
684
|
</span>
|
685
|
685
|
</el-dialog>
|
|
@@ -724,7 +724,7 @@
|
724
|
724
|
</el-date-picker>
|
725
|
725
|
</div>
|
726
|
726
|
<div style="text-align: right;margin-bottom: 10px;">
|
727
|
|
- <el-button type="primary" size="small">
|
|
727
|
+ <el-button type="primary" size="small" @click="toInspection">
|
728
|
728
|
查询
|
729
|
729
|
</el-button>
|
730
|
730
|
</div>
|
|
@@ -736,14 +736,14 @@
|
736
|
736
|
<div class="Second_title">检验项目</div>
|
737
|
737
|
</div>
|
738
|
738
|
<div style="flex: 1;text-align: right;">
|
739
|
|
- 全选<el-checkbox v-model="checked"></el-checkbox>
|
|
739
|
+ 全选<el-checkbox v-model="checked" @change="changeInspetion"></el-checkbox>
|
740
|
740
|
</div>
|
741
|
741
|
</div>
|
742
|
742
|
<div>
|
743
|
|
- <el-collapse v-model="activeNames" @change="handleChange" v-for="(item,index) in Inspectlist" :key="item.id">
|
744
|
|
- <el-collapse-item :title="item.name" :name="item.id">
|
|
743
|
+ <el-collapse v-model="activeNames" @change="handleChange" v-for="(item,index) in newInspectionList" :key="item.id">
|
|
744
|
+ <el-collapse-item :title="item.project_name" :name="item.project_id">
|
745
|
745
|
<ul>
|
746
|
|
- <li v-for="i in item.child" class="inspect" @click="childclick(i.date)">{{ i.date }}</li>
|
|
746
|
+ <li v-for="i in item.child" class="inspect" @click="childclick(i)">{{getTime(i.inspect_date)}}</li>
|
747
|
747
|
</ul>
|
748
|
748
|
</el-collapse-item>
|
749
|
749
|
</el-collapse>
|
|
@@ -752,7 +752,7 @@
|
752
|
752
|
<div style="width: 72%;margin-left: 10px;">
|
753
|
753
|
<div class="Second_title">内容</div>
|
754
|
754
|
<div class="blood_text" style="" >
|
755
|
|
- <div v-html="weight_context"></div>
|
|
755
|
+ <div v-html="inspect_context"></div>
|
756
|
756
|
<!-- {{ blood_context }} -->
|
757
|
757
|
</div>
|
758
|
758
|
</div>
|
|
@@ -761,7 +761,7 @@
|
761
|
761
|
<span slot="footer" class="dialog-footer" style="text-align: center;">
|
762
|
762
|
<!-- <el-button type="danger" @click="template_dele">删除模板</el-button>
|
763
|
763
|
<el-button type="primary" @click="template_save">保存模板</el-button> -->
|
764
|
|
- <el-button type="primary" @click="toContentPint">应用</el-button>
|
|
764
|
+ <el-button type="primary" @click="toInpectionContentPint">应用</el-button>
|
765
|
765
|
<el-button @click="Inspect_dialog = false">取消</el-button>
|
766
|
766
|
</span>
|
767
|
767
|
</el-dialog>
|
|
@@ -820,7 +820,10 @@
|
820
|
820
|
getSummarySearchList,
|
821
|
821
|
getPatientDryWeightList,
|
822
|
822
|
getDilaysisSystemList,
|
823
|
|
- getPatientAdviceList
|
|
823
|
+ getPatientAdviceList,
|
|
824
|
+ getPatientInspectionList,
|
|
825
|
+ getInspectionByProjectId,
|
|
826
|
+
|
824
|
827
|
} from '@/api/patient'
|
825
|
828
|
import { fetchMoibleAllDoctorAndNurse } from "@/api/doctor";
|
826
|
829
|
import { parseTime } from '@/utils'
|
|
@@ -965,7 +968,15 @@
|
965
|
968
|
monitor_blood_context:"",
|
966
|
969
|
summaryList:[],
|
967
|
970
|
dryWeightList:[],
|
968
|
|
- adviceList:[]
|
|
971
|
+ adviceList:[],
|
|
972
|
+ newInspectionList:[],
|
|
973
|
+ newInspectionListOne:[],
|
|
974
|
+ inspect_context:"",
|
|
975
|
+ inspectionList:[],
|
|
976
|
+ newIds:[],
|
|
977
|
+ adviceNewList:[],
|
|
978
|
+ all_select:0,
|
|
979
|
+ systemPrescritpionList:[]
|
969
|
980
|
}
|
970
|
981
|
},
|
971
|
982
|
created() {
|
|
@@ -1263,15 +1274,14 @@
|
1263
|
1274
|
|
1264
|
1275
|
}
|
1265
|
1276
|
},
|
1266
|
|
- toContentPint(val){
|
1267
|
|
-
|
1268
|
|
-
|
|
1277
|
+ toAdviceContentPint(val){
|
|
1278
|
+
|
1269
|
1279
|
console.log('blood_context',this.blood_context,this.template_content);
|
1270
|
|
- this.template_content = this.template_content +'<br/>'+ this.blood_context+'<br/>'+this.summary_context +'<br/>' +this.advice_context
|
|
1280
|
+ this.template_content = this.template_content +'<br/>'+ this.blood_context+'<br/>'+this.summary_context +'<br/>' +this.advice_context+'<br/>'+this.option_context
|
1271
|
1281
|
this.$refs.editor.contents = this.template_content
|
1272
|
1282
|
const iframe = document.getElementsByClassName('edui-editor-iframeholder')[0].getElementsByTagName('iframe')[0].contentDocument.getElementsByTagName('body')[0]
|
1273
|
1283
|
console.log('document.getElementsByClassName',);
|
1274
|
|
- if(val == 6){
|
|
1284
|
+
|
1275
|
1285
|
this.$nextTick(()=>{
|
1276
|
1286
|
const new_list=document.createElement('table')
|
1277
|
1287
|
new_list.style.cssText='border:1px solid black;border-collapse:collapse;width:100%';
|
|
@@ -1307,52 +1317,99 @@
|
1307
|
1317
|
newListItem1.appendChild(new_td9);
|
1308
|
1318
|
newListItem1.appendChild(new_td10);
|
1309
|
1319
|
new_list.appendChild(newListItem1)
|
1310
|
|
- for(let i in this.adviceRows){
|
1311
|
|
- let newListItem2 = document.createElement('tr');
|
1312
|
|
- let new_td1 = document.createElement('td');
|
1313
|
|
- let new_td2 = document.createElement('td');
|
1314
|
|
- let new_td3 = document.createElement('td');
|
1315
|
|
- let new_td4 = document.createElement('td');
|
1316
|
|
- let new_td5 = document.createElement('td');
|
1317
|
|
- let new_td6 = document.createElement('td');
|
1318
|
|
- let new_td7 = document.createElement('td');
|
1319
|
|
- let new_td8 = document.createElement('td');
|
1320
|
|
- let new_td9 = document.createElement('td');
|
1321
|
|
- let new_td10 = document.createElement('td');
|
1322
|
|
- new_td1.textContent =this.adviceRows[i].date
|
1323
|
|
- new_td2.textContent =this.adviceRows[i].name
|
1324
|
|
- new_td3.textContent =this.adviceRows[i].guige
|
1325
|
|
- new_td4.textContent =this.adviceRows[i].danci
|
1326
|
|
- new_td5.textContent =this.adviceRows[i].geiyao
|
1327
|
|
- new_td6.textContent =this.adviceRows[i].pinlv
|
1328
|
|
- new_td7.textContent =this.adviceRows[i].beizhu
|
1329
|
|
- new_td8.textContent =this.adviceRows[i].tingzhi
|
1330
|
|
- new_td9.textContent =this.adviceRows[i].yuanyin
|
1331
|
|
- new_td10.textContent =this.adviceRows[i].yisheng
|
1332
|
|
- newListItem2.appendChild(new_td1);
|
1333
|
|
- newListItem2.appendChild(new_td2);
|
1334
|
|
- newListItem2.appendChild(new_td3);
|
1335
|
|
- newListItem2.appendChild(new_td4);
|
1336
|
|
- newListItem2.appendChild(new_td5);
|
1337
|
|
- newListItem2.appendChild(new_td6);
|
1338
|
|
- newListItem2.appendChild(new_td7);
|
1339
|
|
- newListItem2.appendChild(new_td8);
|
1340
|
|
- newListItem2.appendChild(new_td9);
|
1341
|
|
- newListItem2.appendChild(new_td10);
|
1342
|
|
- new_list.appendChild(newListItem2)
|
1343
|
|
- }
|
|
1320
|
+
|
|
1321
|
+ if(this.adviceList!=null && this.adviceList.length>0 && this.all_select == 0){
|
|
1322
|
+ for(let i in this.adviceList){
|
|
1323
|
+ let newListItem2 = document.createElement('tr');
|
|
1324
|
+ let new_td1 = document.createElement('td');
|
|
1325
|
+ let new_td2 = document.createElement('td');
|
|
1326
|
+ let new_td3 = document.createElement('td');
|
|
1327
|
+ let new_td4 = document.createElement('td');
|
|
1328
|
+ let new_td5 = document.createElement('td');
|
|
1329
|
+ let new_td6 = document.createElement('td');
|
|
1330
|
+ let new_td7 = document.createElement('td');
|
|
1331
|
+ let new_td8 = document.createElement('td');
|
|
1332
|
+ let new_td9 = document.createElement('td');
|
|
1333
|
+ let new_td10 = document.createElement('td');
|
|
1334
|
+ new_td1.textContent =this.getTimeThree(this.adviceList[i].start_time)
|
|
1335
|
+ new_td2.textContent =this.adviceList[i].advice_name
|
|
1336
|
+ new_td3.textContent =this.adviceList[i].advice_desc
|
|
1337
|
+ new_td4.textContent =this.adviceList[i].single_dose
|
|
1338
|
+ new_td5.textContent =this.adviceList[i].delivery_way
|
|
1339
|
+ new_td6.textContent =this.adviceList[i].execution_frequency
|
|
1340
|
+ new_td7.textContent =this.adviceList[i].remark
|
|
1341
|
+ if(this.adviceList[i].advice_type == 1){
|
|
1342
|
+ new_td8.textContent =this.getTimeThree(this.adviceList[i].stop_time)
|
|
1343
|
+ }else{
|
|
1344
|
+ new_td8.textContent =this.getTimeThree(this.adviceList[i].execution_time)
|
|
1345
|
+ }
|
|
1346
|
+ new_td9.textContent =this.adviceList[i].stop_reason
|
|
1347
|
+ new_td10.textContent =this.getDocName(this.adviceList[i].advice_doctor)
|
|
1348
|
+ newListItem2.appendChild(new_td1);
|
|
1349
|
+ newListItem2.appendChild(new_td2);
|
|
1350
|
+ newListItem2.appendChild(new_td3);
|
|
1351
|
+ newListItem2.appendChild(new_td4);
|
|
1352
|
+ newListItem2.appendChild(new_td5);
|
|
1353
|
+ newListItem2.appendChild(new_td6);
|
|
1354
|
+ newListItem2.appendChild(new_td7);
|
|
1355
|
+ newListItem2.appendChild(new_td8);
|
|
1356
|
+ newListItem2.appendChild(new_td9);
|
|
1357
|
+ newListItem2.appendChild(new_td10);
|
|
1358
|
+ new_list.appendChild(newListItem2)
|
|
1359
|
+ }
|
|
1360
|
+ }
|
|
1361
|
+
|
|
1362
|
+ if(this.adviceNewList!=null && this.adviceNewList.length>0 && this.all_select == 1){
|
|
1363
|
+ for(let i in this.adviceNewList){
|
|
1364
|
+ let newListItem2 = document.createElement('tr');
|
|
1365
|
+ let new_td1 = document.createElement('td');
|
|
1366
|
+ let new_td2 = document.createElement('td');
|
|
1367
|
+ let new_td3 = document.createElement('td');
|
|
1368
|
+ let new_td4 = document.createElement('td');
|
|
1369
|
+ let new_td5 = document.createElement('td');
|
|
1370
|
+ let new_td6 = document.createElement('td');
|
|
1371
|
+ let new_td7 = document.createElement('td');
|
|
1372
|
+ let new_td8 = document.createElement('td');
|
|
1373
|
+ let new_td9 = document.createElement('td');
|
|
1374
|
+ let new_td10 = document.createElement('td');
|
|
1375
|
+ new_td1.textContent =this.getTimeThree(this.adviceNewList[i].start_time)
|
|
1376
|
+ new_td2.textContent =this.adviceNewList[i].advice_name
|
|
1377
|
+ new_td3.textContent =this.adviceNewList[i].advice_desc
|
|
1378
|
+ new_td4.textContent =this.adviceNewList[i].single_dose
|
|
1379
|
+ new_td5.textContent =this.adviceNewList[i].delivery_way
|
|
1380
|
+ new_td6.textContent =this.adviceNewList[i].execution_frequency
|
|
1381
|
+ new_td7.textContent =this.adviceNewList[i].remark
|
|
1382
|
+ if(this.adviceNewList[i].advice_type == 1){
|
|
1383
|
+ new_td8.textContent =this.getTimeThree(this.adviceNewList[i].stop_time)
|
|
1384
|
+ }else{
|
|
1385
|
+ new_td8.textContent =this.getTimeThree(this.adviceNewList[i].execution_time)
|
|
1386
|
+ }
|
|
1387
|
+ new_td9.textContent =this.adviceNewList[i].stop_reason
|
|
1388
|
+ new_td10.textContent =this.getDocName(this.adviceNewList[i].advice_doctor)
|
|
1389
|
+ newListItem2.appendChild(new_td1);
|
|
1390
|
+ newListItem2.appendChild(new_td2);
|
|
1391
|
+ newListItem2.appendChild(new_td3);
|
|
1392
|
+ newListItem2.appendChild(new_td4);
|
|
1393
|
+ newListItem2.appendChild(new_td5);
|
|
1394
|
+ newListItem2.appendChild(new_td6);
|
|
1395
|
+ newListItem2.appendChild(new_td7);
|
|
1396
|
+ newListItem2.appendChild(new_td8);
|
|
1397
|
+ newListItem2.appendChild(new_td9);
|
|
1398
|
+ newListItem2.appendChild(new_td10);
|
|
1399
|
+ new_list.appendChild(newListItem2)
|
|
1400
|
+ }
|
|
1401
|
+ }
|
|
1402
|
+
|
1344
|
1403
|
const cont = iframe.getElementsByClassName('advice_table')[0]
|
1345
|
1404
|
cont.appendChild(new_list)
|
1346
|
|
- // iframe.appendChild(new_list)
|
1347
|
1405
|
console.log('iframe.appendChild(new_list)',cont);
|
1348
|
1406
|
console.log('this.advice_context',this.advice_context);
|
1349
|
1407
|
})
|
1350
|
1408
|
|
1351
|
|
- }
|
1352
|
|
- this.library_dialog = false
|
|
1409
|
+
|
|
1410
|
+ this.advice_dialog = false
|
1353
|
1411
|
},
|
1354
|
1412
|
getCurrentChangeOne(val){
|
1355
|
|
- console.log("val================",val)
|
1356
|
1413
|
this.$refs.editor.contents = val.content
|
1357
|
1414
|
this.record_date = this.getTime(val.record_time)
|
1358
|
1415
|
this.admin_user_id = val.recorder
|
|
@@ -1360,6 +1417,7 @@
|
1360
|
1417
|
this.admin_user_id = ""
|
1361
|
1418
|
}
|
1362
|
1419
|
this.id = val.id
|
|
1420
|
+ this.ids = val.id
|
1363
|
1421
|
},
|
1364
|
1422
|
getCurrentChangeTwo(val){
|
1365
|
1423
|
|
|
@@ -1384,9 +1442,7 @@
|
1384
|
1442
|
rowclick(){
|
1385
|
1443
|
|
1386
|
1444
|
},
|
1387
|
|
- prints(){
|
1388
|
|
-
|
1389
|
|
- },
|
|
1445
|
+
|
1390
|
1446
|
saveTemplate(){
|
1391
|
1447
|
|
1392
|
1448
|
var params = {
|
|
@@ -1627,7 +1683,7 @@
|
1627
|
1683
|
|
1628
|
1684
|
},
|
1629
|
1685
|
|
1630
|
|
- getAutoPatientContent(){
|
|
1686
|
+ autotext_click(){
|
1631
|
1687
|
if(this.start_date == ""){
|
1632
|
1688
|
this.$message.error("请选择开始时间")
|
1633
|
1689
|
}
|
|
@@ -2295,6 +2351,7 @@
|
2295
|
2351
|
|
2296
|
2352
|
dialysisIrrigationStr = JSON.stringify(dialysisIrrigationObj).replace(/^{|}$/g, '')
|
2297
|
2353
|
|
|
2354
|
+
|
2298
|
2355
|
|
2299
|
2356
|
// 医嘱
|
2300
|
2357
|
if(this.longAdvice!=null && this.longAdvice.length>0){
|
|
@@ -2303,6 +2360,9 @@
|
2303
|
2360
|
if(this.longAdvice[i].advice_type == 1){
|
2304
|
2361
|
this.longAdvice[i].advice_type_name = "长期医嘱"
|
2305
|
2362
|
}
|
|
2363
|
+ if(this.longAdvice[i].advice_type == 2){
|
|
2364
|
+ this.longAdvice[i].advice_type_name = "长期医嘱"
|
|
2365
|
+ }
|
2306
|
2366
|
if(this.longAdvice[i].stop_state == 1){
|
2307
|
2367
|
this.longAdvice[i].stop_state_name = "停用"
|
2308
|
2368
|
}
|
|
@@ -2312,6 +2372,103 @@
|
2312
|
2372
|
}
|
2313
|
2373
|
}
|
2314
|
2374
|
|
|
2375
|
+
|
|
2376
|
+ //抗凝剂
|
|
2377
|
+
|
|
2378
|
+ var anticoagulant_str =""
|
|
2379
|
+ if(this.groupPrescriptionList!=null && this.groupPrescriptionList.length>0){
|
|
2380
|
+
|
|
2381
|
+ for(let i=0;i<this.groupPrescriptionList.length;i++){
|
|
2382
|
+ anticoagulant_str += this.getAnticoagulantName(this.groupPrescriptionList[i].anticoagulant) +"," + "剂量:" +this.groupPrescriptionList[i].MinZongLiang +this.getAnticoagulantUnit(this.groupPrescriptionList[i].anticoagulant)+ "~" +this.groupPrescriptionList[i].MaxZongLiang + this.getAnticoagulantUnit(this.groupPrescriptionList[i].anticoagulant)
|
|
2383
|
+ }
|
|
2384
|
+ }
|
|
2385
|
+
|
|
2386
|
+
|
|
2387
|
+ //透前
|
|
2388
|
+ var befor_total =0
|
|
2389
|
+ var cha_weight = 0
|
|
2390
|
+ var pingjun_weight = 0
|
|
2391
|
+ if(this.berforList!=null){
|
|
2392
|
+ befor_total = this.berforList.length
|
|
2393
|
+ for(let i=0;i<this.berforList.length;i++){
|
|
2394
|
+ cha_weight += this.berforList[i].weight_before - this.berforList[i].WeightAfter
|
|
2395
|
+ }
|
|
2396
|
+ }
|
|
2397
|
+
|
|
2398
|
+ pingjun_weight = (cha_weight/befor_total).toFixed(2)
|
|
2399
|
+
|
|
2400
|
+ //透后凝血
|
|
2401
|
+ var cruorNewArr = []
|
|
2402
|
+ if(this.afterList!=null && this.afterList.length>0){
|
|
2403
|
+ for(let i=0;i<this.afterList.length;i++){
|
|
2404
|
+ cruorNewArr.push(this.afterList[i].cruor)
|
|
2405
|
+ }
|
|
2406
|
+ }
|
|
2407
|
+
|
|
2408
|
+ let dialysisCrruorObj = {}
|
|
2409
|
+ let dialysisCrruorStr = ""
|
|
2410
|
+ if(cruorNewArr!=null && cruorNewArr.length>0){
|
|
2411
|
+ cruorNewArr.forEach(item => {
|
|
2412
|
+ dialysisCrruorObj[item] = (dialysisCrruorObj[item] + 1) || 1
|
|
2413
|
+ })
|
|
2414
|
+ }
|
|
2415
|
+
|
|
2416
|
+
|
|
2417
|
+ dialysisCrruorStr = JSON.stringify(dialysisCrruorObj).replace(/^{|}$/g, '')
|
|
2418
|
+
|
|
2419
|
+ //监测
|
|
2420
|
+ var blood_flow_volume_total = 0
|
|
2421
|
+ var ultrafiltration_volume_total = 0
|
|
2422
|
+ var ultrafiltration_rate_total = 0
|
|
2423
|
+ var total_length = 0
|
|
2424
|
+ var pingjun_blood_flow_volume = 0
|
|
2425
|
+ var pingjun_ultrafiltration_volume_total = 0
|
|
2426
|
+ var pingjun_ultrafiltration_rate_total = 0
|
|
2427
|
+ if(this.monitorList!=null && this.monitorList.length>0){
|
|
2428
|
+ for(let i=0;i<this.monitorList.length;i++){
|
|
2429
|
+ blood_flow_volume_total+=this.monitorList[i].blood_flow_volume
|
|
2430
|
+ ultrafiltration_volume_total+=this.monitorList[i].ultrafiltration_volume
|
|
2431
|
+ ultrafiltration_rate_total += this.monitorList[i].ultrafiltration_rate
|
|
2432
|
+ total_length = this.monitorList.length
|
|
2433
|
+ }
|
|
2434
|
+ }
|
|
2435
|
+ pingjun_blood_flow_volume = (blood_flow_volume_total/total_length).toFixed(2)
|
|
2436
|
+ if(pingjun_blood_flow_volume=="NaN"){
|
|
2437
|
+ pingjun_blood_flow_volume = ""
|
|
2438
|
+ }
|
|
2439
|
+ pingjun_ultrafiltration_volume_total = (ultrafiltration_volume_total/total_length).toFixed(2)
|
|
2440
|
+ if(pingjun_ultrafiltration_volume_total=="NaN"){
|
|
2441
|
+ pingjun_ultrafiltration_volume_total = ""
|
|
2442
|
+ }
|
|
2443
|
+ pingjun_ultrafiltration_rate_total = (ultrafiltration_rate_total/total_length).toFixed(2)
|
|
2444
|
+ if(pingjun_ultrafiltration_rate_total == "NaN"){
|
|
2445
|
+ pingjun_ultrafiltration_rate_total = ""
|
|
2446
|
+ }
|
|
2447
|
+ var dry_weight_str = ""
|
|
2448
|
+ //干体重
|
|
2449
|
+ if(this.dryweightList!=null && this.dryweightList.length>0){
|
|
2450
|
+ for(let i=0;i<this.dryweightList.length;i++){
|
|
2451
|
+ dry_weight_str = this.getTimeOne(this.dryweightList[i].ctime)+" " +this.dryweightList[i].adjusted_value.slice(4,6)+ this.dryweightList[i].adjusted_value.slice(0,3)+"kg" + "调整到" +" "+ this.dryweightList[i].dry_weight+"kg"+","
|
|
2452
|
+ }
|
|
2453
|
+ }
|
|
2454
|
+
|
|
2455
|
+ //血管通路
|
|
2456
|
+ var vascularAccess_str = ""
|
|
2457
|
+ var created_time = ""
|
|
2458
|
+
|
|
2459
|
+ if(this.patientVascularAccess!=undefined){
|
|
2460
|
+ vascularAccess_str = this.patientVascularAccess.blood_access_part_id + this.patientVascularAccess.blood_access_part_opera_id
|
|
2461
|
+ created_time = this.getTime(this.patientVascularAccess.first_start_time)
|
|
2462
|
+ }
|
|
2463
|
+
|
|
2464
|
+ //并发症
|
|
2465
|
+ var complication = ""
|
|
2466
|
+ if(this.lastBefor!=undefined){
|
|
2467
|
+ complication = this.lastBefor.complication
|
|
2468
|
+ }
|
|
2469
|
+
|
|
2470
|
+
|
|
2471
|
+
|
2315
|
2472
|
if(this.inpectionList!=null&& this.inpectionList.length>0){
|
2316
|
2473
|
for(let i=0;i<this.inpectionList.length;i++){
|
2317
|
2474
|
this.inpectionList[i].group_no = ""
|
|
@@ -2711,7 +2868,7 @@
|
2711
|
2868
|
newListItem6.style.cssText= 'width: 10%;display: inline-block;padding: 5px 0;'
|
2712
|
2869
|
newListItem1.textContent = this.longAdvice[i].advice_name;
|
2713
|
2870
|
newListItem2.textContent = this.longAdvice[i].advice_type_name;
|
2714
|
|
- newListItem3.textContent = this.getTime(this.longAdvice[i].start_time)
|
|
2871
|
+ newListItem3.textContent = this.getTime(this.longAdvice[i].created_time)
|
2715
|
2872
|
newListItem4.textContent = this.longAdvice[i].single_dose +this.longAdvice[i].single_dose_unit ;
|
2716
|
2873
|
newListItem5.textContent = this.longAdvice[i].execution_frequency;
|
2717
|
2874
|
newListItem6.textContent = this.longAdvice[i].stop_state_name;
|
|
@@ -2727,8 +2884,9 @@
|
2727
|
2884
|
}
|
2728
|
2885
|
})
|
2729
|
2886
|
this.AuToShow = true
|
2730
|
|
-
|
2731
|
|
-
|
|
2887
|
+
|
|
2888
|
+ }
|
|
2889
|
+ })
|
2732
|
2890
|
},
|
2733
|
2891
|
blood_chang(val){
|
2734
|
2892
|
if(val == 1){
|
|
@@ -3167,7 +3325,7 @@
|
3167
|
3325
|
}, onRowClick(row, event, column) {
|
3168
|
3326
|
this.table_current_index = row.index
|
3169
|
3327
|
},
|
3170
|
|
- print(){
|
|
3328
|
+ prints(){
|
3171
|
3329
|
if(this.ids.length == 0){
|
3172
|
3330
|
this.$message.error('请选择要打印的病程')
|
3173
|
3331
|
return
|
|
@@ -3277,9 +3435,11 @@
|
3277
|
3435
|
},
|
3278
|
3436
|
type_chang(val){
|
3279
|
3437
|
this.advice_type = val
|
|
3438
|
+ this.getPatientAdviceList()
|
3280
|
3439
|
},
|
3281
|
3440
|
status_chang(val){
|
3282
|
3441
|
this.advice_status = val
|
|
3442
|
+ this.getPatientAdviceList()
|
3283
|
3443
|
},
|
3284
|
3444
|
selectionchange(val){
|
3285
|
3445
|
this.bloodRows = val
|
|
@@ -3287,9 +3447,21 @@
|
3287
|
3447
|
console.log('血压',this.bloodRows);
|
3288
|
3448
|
},
|
3289
|
3449
|
selectionchange2(val){
|
|
3450
|
+
|
3290
|
3451
|
this.summaryRows = val
|
3291
|
|
- this.getsummary(val)
|
3292
|
|
- console.log('透析小结',this.summaryRows);
|
|
3452
|
+ this.summary_context=""
|
|
3453
|
+ if(val!=null){
|
|
3454
|
+ // if(val.summary!=null && val.summary!=undefined){
|
|
3455
|
+ // this.summary_context = val.summary.dialysis_summary
|
|
3456
|
+ // }
|
|
3457
|
+ for(let i=0;i<val.length;i++){
|
|
3458
|
+ this.summary_context += val[i].summary.dialysis_summary+"</br>"
|
|
3459
|
+ }
|
|
3460
|
+ this.summary_context = this.summary_context
|
|
3461
|
+
|
|
3462
|
+ }
|
|
3463
|
+ // this.getsummary(val)
|
|
3464
|
+ // console.log('透析小结',this.summaryRows);
|
3293
|
3465
|
},
|
3294
|
3466
|
selectionchange3(val){
|
3295
|
3467
|
this.weightRows = val
|
|
@@ -3297,12 +3469,15 @@
|
3297
|
3469
|
console.log('透析小结',this.weightRows);
|
3298
|
3470
|
},
|
3299
|
3471
|
selectionchange4(val){
|
|
3472
|
+
|
3300
|
3473
|
this.optionRows = val
|
3301
|
3474
|
this.getoption(val)
|
3302
|
3475
|
console.log('透析小结',this.weightRows);
|
3303
|
3476
|
},
|
3304
|
3477
|
selectionchange5(val){
|
|
3478
|
+
|
3305
|
3479
|
this.adviceRows = val
|
|
3480
|
+ this.getNewPatientAdviceList(val)
|
3306
|
3481
|
},
|
3307
|
3482
|
gettext(val){
|
3308
|
3483
|
const arr= []
|
|
@@ -3339,44 +3514,54 @@
|
3339
|
3514
|
this.weight_context = `${arr.join('<br/>')}`
|
3340
|
3515
|
},
|
3341
|
3516
|
getoption(val){
|
|
3517
|
+
|
|
3518
|
+ var newArr = []
|
|
3519
|
+ for(let i=0;i<this.systemPrescritpionList.length;i++){
|
|
3520
|
+ for(let j=0;j<val.length;j++){
|
|
3521
|
+ if(val[j].mode == this.systemPrescritpionList[i].mode_name){
|
|
3522
|
+ newArr.push(this.systemPrescritpionList[i])
|
|
3523
|
+ }
|
|
3524
|
+ }
|
|
3525
|
+
|
|
3526
|
+ }
|
3342
|
3527
|
const arr= []
|
3343
|
|
- if(val.length>0){
|
3344
|
|
- for(let i in val){
|
|
3528
|
+
|
|
3529
|
+ if(newArr.length>0){
|
|
3530
|
+ for(let i=0;i<newArr.length;i++){
|
3345
|
3531
|
const text = `<table border="1" style="border-collapse: collapse;width: 100%;">
|
3346
|
|
- <tr><td colspan="4">HD,每周3次,启用</td></tr>
|
|
3532
|
+ <tr><td colspan="4">${newArr[i].mode_name},启用</td></tr>
|
3347
|
3533
|
<tr>
|
3348
|
|
- <td>透析时长(h):4</td>
|
3349
|
|
- <td>置换方式:</td>
|
3350
|
|
- <td>血流量(ml/min):250</td>
|
|
3534
|
+ <td>透析时长:${newArr[i].dialysis_duration_hour}时${newArr[i].dialysis_duration_minute}分</td>
|
|
3535
|
+ <td>置换方式:${newArr[i].displace_name}</td>
|
|
3536
|
+ <td>血流量(ml/min):${newArr[i].blood_flow_volume}</td>
|
3351
|
3537
|
<td></td>
|
3352
|
3538
|
</tr>
|
3353
|
3539
|
<tr>
|
3354
|
|
- <td>血透器:空心纤维血液透析器B-18BHF(B-18BHF)</td>
|
3355
|
|
- <td>血滤器:</td>
|
3356
|
|
- <td>灌流器:</td>
|
3357
|
|
- <td>透析液流量(ml/min):500</td>
|
|
3540
|
+ <td>透析器:${newArr[i].dialysis_dialyszers}</td>
|
|
3541
|
+ <td>灌流器:${newArr[i].dialysis_irrigation}</td>
|
|
3542
|
+ <td>透析液流量(ml/min):${newArr[i].dialysate_flow}</td>
|
3358
|
3543
|
</tr>
|
3359
|
3544
|
<tr>
|
3360
|
|
- <td>钾(mmol/L):2.0</td>
|
3361
|
|
- <td>钠(mmol/L):138</td>
|
3362
|
|
- <td>钙(mmol/L):1.5</td>
|
3363
|
|
- <td>碳酸氢根(mmol/L):32</td>
|
|
3545
|
+ <td>钾(mmol/L):${newArr[i].kalium}</td>
|
|
3546
|
+ <td>钠(mmol/L):${newArr[i].sodium}</td>
|
|
3547
|
+ <td>钙(mmol/L):${newArr[i].calcium}</td>
|
|
3548
|
+ <td>碳酸氢根(mmol/L):${newArr[i].bicarbonates}</td>
|
3364
|
3549
|
</tr>
|
3365
|
3550
|
<tr>
|
3366
|
|
- <td>抗凝剂:低分子肝素</td>
|
3367
|
|
- <td>首剂(iu):4500</td>
|
3368
|
|
- <td>维持(iu): 0</td>
|
3369
|
|
- <td>总量(iu):4500</td>
|
|
3551
|
+ <td>抗凝剂:${newArr[i].anticoagulant_name}</td>
|
|
3552
|
+ <td>首剂(iu):${newArr[i].anticoagulant_shouji}</td>
|
|
3553
|
+ <td>维持(iu):${newArr[i].anticoagulant_weichi}</td>
|
|
3554
|
+ <td>总量(iu):${newArr[i].anticoagulant_zongliang}</td>
|
3370
|
3555
|
</tr>
|
3371
|
|
- <tr><td colspan="4">抗凝剂公式:自定义维持时长(H)</td></tr>
|
|
3556
|
+ <tr><td colspan="4"></td></tr>
|
3372
|
3557
|
</table>`
|
3373
|
3558
|
arr.push(text)
|
3374
|
3559
|
}
|
3375
|
3560
|
}
|
3376
|
3561
|
const contenttext = `${arr.join('<br/>')}`
|
3377
|
3562
|
this.option_context = contenttext
|
3378
|
|
- console.log('option_context',this.option_context);
|
3379
|
|
- this.$refs.editor.contents = this.option_context
|
|
3563
|
+ // console.log('option_context',this.option_context);
|
|
3564
|
+ this.$refs.editorOne.contents = this.option_context
|
3380
|
3565
|
},
|
3381
|
3566
|
// 血压搜索
|
3382
|
3567
|
bloodsearch(val){
|
|
@@ -3408,7 +3593,7 @@
|
3408
|
3593
|
})
|
3409
|
3594
|
},
|
3410
|
3595
|
option_click(val){
|
3411
|
|
- console.log("valoo00000000000",val)
|
|
3596
|
+
|
3412
|
3597
|
this.option_dialog =true
|
3413
|
3598
|
// this.start_date1 = this.timeForMat(7)
|
3414
|
3599
|
// this.end_date1 = this.getTime(new Date())
|
|
@@ -3429,14 +3614,14 @@
|
3429
|
3614
|
<tr><td>1</td><td>高尿酸血症</td></tr>
|
3430
|
3615
|
<tr><td>2</td><td>继发性甲状旁腺功能亢进</td></tr>
|
3431
|
3616
|
</table>`
|
3432
|
|
- this.new_content = text
|
3433
|
|
- this.$refs.editor.contents = this.new_content
|
|
3617
|
+ // this.$refs.editor.contents = this.new_content
|
|
3618
|
+ this.$refs.editor.contents = this.$refs.editor.contents +text
|
3434
|
3619
|
},
|
3435
|
3620
|
hospital_click(){
|
3436
|
3621
|
const text = `<p style="line-height: 50px;display: flex;"><span style="display: inline-block;flex: 1;">住院日期:</span><span style="display: inline-block;flex: 1;">出院日期:</span></p>
|
3437
|
3622
|
<p style="line-height: 50px;display: flex;"><span style="display: inline-block;flex: 1;">入院诊断:</span><span style="display: inline-block;flex: 1;">出院诊断:</span></p>`
|
3438
|
|
- this.new_content = text
|
3439
|
|
- this.$refs.editor.contents = this.new_content
|
|
3623
|
+
|
|
3624
|
+ this.$refs.editor.contents = this.$refs.editor.contents + text
|
3440
|
3625
|
},
|
3441
|
3626
|
Inspect_click(){
|
3442
|
3627
|
this.Inspect_dialog = true
|
|
@@ -3449,21 +3634,47 @@
|
3449
|
3634
|
handleChange(val){
|
3450
|
3635
|
|
3451
|
3636
|
},
|
3452
|
|
- childclick(eve){
|
3453
|
|
- console.log('eve',eve);
|
3454
|
|
- // const inspect_arr = []
|
3455
|
|
- if(this.InspectRows.length ==0){
|
3456
|
|
- this.InspectRows.push(eve)
|
3457
|
|
- }else{
|
3458
|
|
- let index = this.InspectRows.findIndex((obj) => obj.c_id === eve.c_id && obj.pater_id == eve.pater_id);
|
3459
|
|
- if (index === -1) {
|
3460
|
|
- this.InspectRows.push(eve);
|
3461
|
|
- } else {
|
3462
|
|
- this.InspectRows.splice(index, 1);
|
|
3637
|
+ childclick(i){
|
|
3638
|
+
|
|
3639
|
+ var params = {
|
|
3640
|
+ patient_id:i.patient_id,
|
|
3641
|
+ project_id:i.project_id,
|
|
3642
|
+ inspect_date:i.inspect_date,
|
|
3643
|
+
|
3463
|
3644
|
}
|
3464
|
|
- }
|
3465
|
|
- this.getinspect(this.InspectRows)
|
3466
|
|
- console.log('检查',this.InspectRows.includes(eve));
|
|
3645
|
+ getInspectionByProjectId(params).then(response=>{
|
|
3646
|
+ if(response.data.state == 1){
|
|
3647
|
+ var inspection = response.data.data.inspection
|
|
3648
|
+ var inspection_str = i.project_name + "-"+"检验日期:"+this.getTime(i.inspect_date)+";"
|
|
3649
|
+ if(inspection!=null && inspection.length>0){
|
|
3650
|
+ for(let i=0;i<inspection.length;i++){
|
|
3651
|
+ if(inspection[i].inspect_value!=""){
|
|
3652
|
+ inspection_str += inspection[i].item_name+":" + inspection[i].inspect_value+","
|
|
3653
|
+ }
|
|
3654
|
+
|
|
3655
|
+ }
|
|
3656
|
+ }
|
|
3657
|
+ this.inspect_context = inspection_str
|
|
3658
|
+
|
|
3659
|
+ }
|
|
3660
|
+ })
|
|
3661
|
+ // // const inspect_arr = []
|
|
3662
|
+ // if(this.InspectRows.length ==0){
|
|
3663
|
+ // this.InspectRows.push(eve)
|
|
3664
|
+ // }else{
|
|
3665
|
+ // let index = this.InspectRows.findIndex((obj) => obj.c_id === eve.c_id && obj.pater_id == eve.pater_id);
|
|
3666
|
+ // if (index === -1) {
|
|
3667
|
+ // this.InspectRows.push(eve);
|
|
3668
|
+ // } else {
|
|
3669
|
+ // this.InspectRows.splice(index, 1);
|
|
3670
|
+ // }
|
|
3671
|
+ // }
|
|
3672
|
+ // this.getinspect(this.InspectRows)
|
|
3673
|
+ // console.log('检查',this.InspectRows.includes(eve));
|
|
3674
|
+ },
|
|
3675
|
+ toInpectionContentPint(){
|
|
3676
|
+ this.$refs.editor.contents = this.$refs.editor.contents +this.inspect_context
|
|
3677
|
+ this.Inspect_dialog = false
|
3467
|
3678
|
},
|
3468
|
3679
|
getinspect(val){
|
3469
|
3680
|
const arr = []
|
|
@@ -3478,7 +3689,7 @@
|
3478
|
3689
|
}
|
3479
|
3690
|
},
|
3480
|
3691
|
check_change(){
|
3481
|
|
- console.log('this',this.checked);
|
|
3692
|
+
|
3482
|
3693
|
const arr = []
|
3483
|
3694
|
if(this.checked==true){
|
3484
|
3695
|
for(let i in this.Inspectlist){
|
|
@@ -3504,16 +3715,8 @@
|
3504
|
3715
|
this.InspectRows = []
|
3505
|
3716
|
}
|
3506
|
3717
|
this.getinspect(this.InspectRows)
|
3507
|
|
- console.log('this',this.InspectRows);
|
3508
|
|
- }
|
3509
|
|
-
|
3510
|
|
- // if(val != ''){
|
3511
|
|
- // for(let i in this.Inspectlist){
|
3512
|
|
- // }
|
3513
|
|
- // }
|
|
3718
|
+ // console.log('this',this.InspectRows);
|
3514
|
3719
|
},
|
3515
|
|
-
|
3516
|
|
-
|
3517
|
3720
|
//血压
|
3518
|
3721
|
getMonitorSearchList(){
|
3519
|
3722
|
|
|
@@ -3565,15 +3768,42 @@
|
3565
|
3768
|
patient_id:this.patient_id,
|
3566
|
3769
|
}
|
3567
|
3770
|
getDilaysisSystemList(params).then(response=>{
|
|
3771
|
+ if(response.data.state == 1){
|
|
3772
|
+ this.systemPrescritpionList = []
|
|
3773
|
+ var systemPrescritpionList = response.data.data.prescription
|
|
3774
|
+
|
|
3775
|
+ if(systemPrescritpionList!=null && systemPrescritpionList.length>0){
|
|
3776
|
+ for(let i=0;i<systemPrescritpionList.length;i++){
|
|
3777
|
+ systemPrescritpionList[i].mode_name = ""
|
|
3778
|
+ systemPrescritpionList[i].mode_name = this.getModeId(systemPrescritpionList[i].mode_id)
|
|
3779
|
+ systemPrescritpionList[i].displace_name = this.getDisplaceLiqu(systemPrescritpionList[i].displace_liqui)
|
|
3780
|
+ systemPrescritpionList[i].anticoagulant_name = this.getAnticoagulantName(systemPrescritpionList[i].anticoagulant)
|
|
3781
|
+ }
|
|
3782
|
+ }
|
|
3783
|
+ this.systemPrescritpionList = systemPrescritpionList
|
3568
|
3784
|
|
|
3785
|
+ }
|
3569
|
3786
|
})
|
3570
|
3787
|
},
|
|
3788
|
+ getDisplaceLiqu(id){
|
|
3789
|
+ var displace_liqui_List = this.$store.getters.displace_liqui
|
|
3790
|
+
|
|
3791
|
+ var name = ""
|
|
3792
|
+ for(let i=0;i<displace_liqui_List.length;i++){
|
|
3793
|
+ if(id == displace_liqui_List[i].id){
|
|
3794
|
+ name = displace_liqui_List[i].name
|
|
3795
|
+ }
|
|
3796
|
+ }
|
|
3797
|
+ return name
|
|
3798
|
+ },
|
3571
|
3799
|
getPatientAdviceList(){
|
|
3800
|
+ var ids = this.newIds.join()
|
3572
|
3801
|
var params = {
|
3573
|
3802
|
start_time:this.start_date1,
|
3574
|
3803
|
end_time:this.end_date1,
|
3575
|
3804
|
patient_id:this.patient_id,
|
3576
|
3805
|
advice_type:this.advice_type,
|
|
3806
|
+ advice_status:this.advice_status,
|
3577
|
3807
|
}
|
3578
|
3808
|
getPatientAdviceList(params).then(response=>{
|
3579
|
3809
|
if(response.data.state == 1){
|
|
@@ -3583,6 +3813,23 @@
|
3583
|
3813
|
}
|
3584
|
3814
|
})
|
3585
|
3815
|
},
|
|
3816
|
+ getNewPatientAdviceList(val){
|
|
3817
|
+
|
|
3818
|
+ var newArr= []
|
|
3819
|
+ for(let i=0;i<val.length;i++){
|
|
3820
|
+ for(let j=0;j<this.adviceList.length;j++){
|
|
3821
|
+ if(val[i].id == this.adviceList[j].id){
|
|
3822
|
+ newArr.push(this.adviceList[j])
|
|
3823
|
+ }
|
|
3824
|
+ }
|
|
3825
|
+ }
|
|
3826
|
+
|
|
3827
|
+
|
|
3828
|
+ this.adviceNewList = []
|
|
3829
|
+ this.adviceNewList = newArr
|
|
3830
|
+ this.all_select = 1
|
|
3831
|
+
|
|
3832
|
+ },
|
3586
|
3833
|
handleMonitorChange(val){
|
3587
|
3834
|
|
3588
|
3835
|
var str = ""
|
|
@@ -3603,8 +3850,88 @@
|
3603
|
3850
|
toMonitorPint(){
|
3604
|
3851
|
this.$refs.editor.contents = this.$refs.editor.contents+this.monitor_blood_context
|
3605
|
3852
|
this.blood_dialog = false
|
3606
|
|
- }
|
3607
|
|
-
|
|
3853
|
+ },
|
|
3854
|
+ toInspection(){
|
|
3855
|
+ var params = {
|
|
3856
|
+ start_time:this.start_date1,
|
|
3857
|
+ end_time:this.end_date1,
|
|
3858
|
+ patient_id:this.patient_id,
|
|
3859
|
+ }
|
|
3860
|
+ getPatientInspectionList(params).then(response=>{
|
|
3861
|
+ if(response.data.state == 1){
|
|
3862
|
+
|
|
3863
|
+ var groupList = response.data.data.groupList
|
|
3864
|
+ var inspection = response.data.data.inspection
|
|
3865
|
+ this.inspectionList = inspection
|
|
3866
|
+
|
|
3867
|
+ if(groupList.length!=null && groupList.length>0){
|
|
3868
|
+ for(let i=0;i<groupList.length;i++){
|
|
3869
|
+ groupList[i].child = []
|
|
3870
|
+ for(let j=0;j<inspection.length;j++){
|
|
3871
|
+ if(groupList[i].project_id == inspection[j].project_id && groupList[i].inspect_date == inspection[j].inspect_date){
|
|
3872
|
+ groupList[i].child.push(inspection[j])
|
|
3873
|
+ }
|
|
3874
|
+ }
|
|
3875
|
+ }
|
|
3876
|
+ }
|
|
3877
|
+
|
|
3878
|
+ for(let i=0;i<groupList.length;i++){
|
|
3879
|
+ for(let j=0;j<groupList[i].child.length;j++){
|
|
3880
|
+ groupList[i].child =this.getInspection(groupList[i].child)
|
|
3881
|
+ }
|
|
3882
|
+ }
|
|
3883
|
+
|
|
3884
|
+ this.newInspectionList = groupList
|
|
3885
|
+
|
|
3886
|
+ }
|
|
3887
|
+ })
|
|
3888
|
+ },
|
|
3889
|
+ getInspection(tempArr) {
|
|
3890
|
+ let newArr = [];
|
|
3891
|
+ for (let i = 0; i < tempArr.length; i++) {
|
|
3892
|
+ if (newArr.indexOf(tempArr[i].inspect_date) == -1) {
|
|
3893
|
+ newArr.push(tempArr[i].inspect_date);
|
|
3894
|
+ } else {
|
|
3895
|
+ tempArr.splice(i, 1);
|
|
3896
|
+ i--;
|
|
3897
|
+ };
|
|
3898
|
+ };
|
|
3899
|
+ return tempArr;
|
|
3900
|
+ },
|
|
3901
|
+ changeInspetion(){
|
|
3902
|
+
|
|
3903
|
+ for(let i=0;i<this.newInspectionList.length;i++){
|
|
3904
|
+ this.newInspectionList[i].childOne =[]
|
|
3905
|
+ for(let j=0;j<this.inspectionList.length;j++){
|
|
3906
|
+ if(this.newInspectionList[i].project_id == this.inspectionList[j].project_id &&this.newInspectionList[i].inspect_date== this.inspectionList[j].inspect_date ){
|
|
3907
|
+ this.newInspectionList[i].childOne.push(this.inspectionList[j])
|
|
3908
|
+ }
|
|
3909
|
+ }
|
|
3910
|
+ }
|
|
3911
|
+
|
|
3912
|
+ var new_inspection_str =""
|
|
3913
|
+ if(this.newInspectionList!=null&& this.newInspectionList.length>0){
|
|
3914
|
+ for(let i=0;i<this.newInspectionList.length;i++){
|
|
3915
|
+ if(this.newInspectionList[i].childOne!=null && this.newInspectionList[i].childOne.length>0){
|
|
3916
|
+ new_inspection_str += "<br/>"+ this.newInspectionList[i].project_name +"-" +"检验日期:"+ this.getTime(this.newInspectionList[i].childOne[0].inspect_date) +" "
|
|
3917
|
+ for(let j=0;j<this.newInspectionList[i].childOne.length;j++){
|
|
3918
|
+ if(this.newInspectionList[i].childOne[j].inspect_value!=""){
|
|
3919
|
+ new_inspection_str+= this.newInspectionList[i].childOne[j].item_name+":" + this.newInspectionList[i].childOne[j].inspect_value+","+" "
|
|
3920
|
+ }
|
|
3921
|
+
|
|
3922
|
+ }
|
|
3923
|
+ }
|
|
3924
|
+
|
|
3925
|
+ }
|
|
3926
|
+ }
|
|
3927
|
+ this.inspect_context = new_inspection_str
|
|
3928
|
+ },
|
|
3929
|
+ toSystemContentPint(){
|
|
3930
|
+
|
|
3931
|
+ this.$refs.editor.contents = this.$refs.editor.contents +this.option_context
|
|
3932
|
+ this.option_dialog = false
|
|
3933
|
+ },
|
|
3934
|
+
|
3608
|
3935
|
|
3609
|
3936
|
},
|
3610
|
3937
|
beforeMount(){
|
|
@@ -3612,7 +3939,8 @@
|
3612
|
3939
|
},
|
3613
|
3940
|
mounted(){
|
3614
|
3941
|
|
3615
|
|
- }
|
|
3942
|
+ },
|
|
3943
|
+
|
3616
|
3944
|
|
3617
|
3945
|
}
|
3618
|
3946
|
</script>
|