|
@@ -39,54 +39,74 @@
|
39
|
39
|
border highlight-current-row @current-change="changeCurrentRecordTwo"
|
40
|
40
|
:row-class-name="tableRow"
|
41
|
41
|
>
|
42
|
|
- <el-table-column type="selection" width="40" align="center"></el-table-column>
|
43
|
|
- <el-table-column label="检查项目" align="center">
|
|
42
|
+ <el-table-column type="selection" width="60" align="center"></el-table-column>
|
|
43
|
+ <el-table-column label="阶段小结名称" align="center">
|
44
|
44
|
<template slot-scope="scope">
|
45
|
45
|
{{scope.row.title}}
|
46
|
46
|
</template>
|
47
|
47
|
</el-table-column>
|
|
48
|
+ <el-table-column label="记录时间" align="center">
|
|
49
|
+ <template slot-scope="scope">
|
|
50
|
+ {{getTime(scope.row.record_time)}}
|
|
51
|
+ </template>
|
|
52
|
+ </el-table-column>
|
|
53
|
+ <el-table-column label="记录医生" align="center">
|
|
54
|
+ <template slot-scope="scope">
|
|
55
|
+ {{getDoctor(scope.row.admin_user_id)}}
|
|
56
|
+ </template>
|
|
57
|
+ </el-table-column>
|
48
|
58
|
</el-table>
|
49
|
59
|
</el-col>
|
50
|
60
|
<el-col :span="14">
|
51
|
61
|
<div class="record_content_panel">
|
52
|
62
|
<div style="background-color:rgb(245, 247, 250)" class="title">阶段小结内容</div>
|
53
|
63
|
<div style="padding:10px;border-bottom:1px solid #DCDFE6;">阶段小结时间:{{getTime(editObj.record_time)}}</div>
|
54
|
|
- <!-- <el-divider></el-divider> -->
|
55
|
64
|
<div style="padding: 10px 10px 0;">阶段小结概要:</div>
|
56
|
65
|
<div style="padding:10px;border-bottom:1px solid #DCDFE6;">
|
57
|
|
- <span style="margin-right:10px;line-height:20px;">干体重:{{editObj.drg_weight}}</span>
|
58
|
|
- <span style="margin-right:10px;line-height:20px;">共透析:{{editObj.dialysis_count}}</span>
|
59
|
|
- <span style="margin-right:10px;line-height:20px;">HD:{{editObj.hd_count}}</span>
|
|
66
|
+ <span style="margin-right:10px;line-height:30px;">干体重(kg):{{editObj.dry_weight}}</span>
|
|
67
|
+ <span style="margin-right:10px;line-height:30px;">共透析:{{editObj.dialysis_count}}次</span>
|
|
68
|
+ <span style="margin-right:10px;line-height:30px;">HD:{{editObj.hd_count}}次</span>
|
60
|
69
|
<br>
|
61
|
|
- <span style="margin-right:10px;line-height:20px;">HDF:{{editObj.hdf_count}}</span>
|
62
|
|
- <span style="margin-right:10px;line-height:20px;">HP:{{editObj.hp_count}}</span>
|
63
|
|
- <span style="margin-right:10px;line-height:20px;">其他:{{editObj.other_count}}</span>
|
|
70
|
+ <span style="margin-right:10px;line-height:30px;">HDF:{{editObj.hdf_count}}次</span>
|
|
71
|
+ <span style="margin-right:10px;line-height:30px;">HP:{{editObj.hp_count}}次</span>
|
|
72
|
+ <span style="margin-right:10px;line-height:30px;">其他:{{editObj.other_count}}次</span>
|
64
|
73
|
<br>
|
65
|
|
- <span style="margin-right:10px;line-height:20px;">透析器:{{editObj.dialzer_apparatus}}</span>
|
66
|
|
- <span style="margin-right:10px;line-height:20px;">抗凝剂:{{editObj.anticoagulant}}</span>
|
67
|
|
- <span style="margin-right:10px;line-height:20px;">透析液:(钾:{{editObj.kalium}} 钙:{{editObj.autunite}} Na:{{editObj.natrium}})</span>
|
|
74
|
+ <span style="margin-right:10px;line-height:30px;">透析器:{{editObj.dialzer_apparatus}}</span>
|
|
75
|
+ <span style="margin-right:10px;line-height:30px;">抗凝剂:
|
|
76
|
+ <span> {{getAnticoagulant(editObj.anticoagulant)}}</span>
|
|
77
|
+ </span>
|
|
78
|
+ <span style="margin-right:10px;line-height:30px;">透析液:(钾:{{editObj.kalium}} 钙:{{editObj.autunite}} Na:{{editObj.natrium}})</span>
|
68
|
79
|
<br>
|
69
|
|
- <span style="margin-right:10px;line-height:20px;">每次透析(小时):{{editObj.hour}}</span>
|
70
|
|
- <span style="margin-right:10px;line-height:20px;">透前体重(kg):{{editObj.befor_weight}}</span>
|
71
|
|
- <span style="margin-right:10px;line-height:20px;">透后体重(kg):{{editObj.after_weight}}</span>
|
|
80
|
+ <span style="margin-right:10px;line-height:30px;">每次透析:<span v-if="editObj.hour!=''"> {{editObj.hour}}小时</span>
|
|
81
|
+ <span v-if="editObj.minute!=''">{{editObj.minute}}</span>分</span>
|
|
82
|
+ <span style="margin-right:10px;line-height:30px;">透前体重(kg):{{editObj.befor_weight}}</span>
|
|
83
|
+ <span style="margin-right:10px;line-height:30px;">透后体重(kg):{{editObj.after_weight}}</span>
|
72
|
84
|
<br>
|
73
|
|
- <span style="margin-right:10px;line-height:20px;">透前血压(mmHg):{{editObj.befor_pressure}}</span>
|
74
|
|
- <span style="margin-right:10px;line-height:20px;">透后血压(mmHg):{{editObj.after_pressure}}</span>
|
|
85
|
+ <span style="margin-right:10px;line-height:30px;">透前血压(mmHg):{{editObj.befor_pressure}}</span>
|
|
86
|
+ <span style="margin-right:10px;line-height:30px;">透后血压(mmHg):{{editObj.after_pressure}}</span>
|
75
|
87
|
</div>
|
76
|
|
- <!-- <el-divider></el-divider> -->
|
77
|
|
- <div style="padding:10px;border-bottom:1px solid #DCDFE6;line-height:20px;">阶段小结总结:
|
|
88
|
+ <div style="padding:10px;border-bottom:1px solid #DCDFE6;line-height:20px;">阶段小结总结:
|
|
89
|
+ {{editObj.template_summary_content}}
|
|
90
|
+ </div>
|
|
91
|
+ <div style="padding:10px;border-bottom:1px solid #DCDFE6;line-height:20px;">阶段小结化验结果:
|
78
|
92
|
<div>
|
79
|
93
|
<div v-for="item in editObj.template_inspection_content">
|
80
|
|
- <p style="font-weight: bold;margin: 10px 0;">{{ item.project_name }}</p>
|
|
94
|
+ <p style="font-weight: bold;margin: 10px 0;">{{ item.project_name }} 检查日期:{{getTime(item.arr[0].inspect_date)}}</p>
|
81
|
95
|
<div style="display:flex;flex-wrap: wrap;">
|
82
|
|
- <div v-for="it in item.arr" style="width:33%;">
|
83
|
|
- {{ it.item_name }} {{ it.inspect_value }}
|
|
96
|
+ <div v-for="it in item.arr" style="width:33%;margin-bottom:5px;">
|
|
97
|
+ {{ it.item_name }} <span v-if="it.unit!=''">[{{it.unit}}]</span>:
|
|
98
|
+ <span v-if="parseInt(it.inspect_value) < parseInt(it.range_min)">
|
|
99
|
+ {{it.inspect_value}}↓
|
|
100
|
+ </span>
|
|
101
|
+ <span v-if="parseInt(it.inspect_value) > parseInt(it.range_max)">
|
|
102
|
+ {{it.inspect_value}}↑
|
|
103
|
+ </span>
|
84
|
104
|
</div>
|
85
|
105
|
</div>
|
86
|
106
|
</div>
|
87
|
107
|
</div>
|
88
|
108
|
</div>
|
89
|
|
- <!-- <el-divider></el-divider> -->
|
|
109
|
+
|
90
|
110
|
<div style="padding:10px;line-height:20px;">阶段小结个体化透析方案:{{editObj.template_plan_content}}</div>
|
91
|
111
|
</div>
|
92
|
112
|
</el-col>
|
|
@@ -110,9 +130,10 @@
|
110
|
130
|
<el-col :span="8">
|
111
|
131
|
<el-form-item label="阶段小结时间:">
|
112
|
132
|
<el-date-picker
|
|
133
|
+ @change="changeStartYear"
|
113
|
134
|
v-model="form.start_year"
|
114
|
135
|
type="year"
|
115
|
|
- value-format="yyyy-MM-dd"
|
|
136
|
+ value-format="yyyy"
|
116
|
137
|
placeholder="选择年">
|
117
|
138
|
</el-date-picker>
|
118
|
139
|
</el-form-item>
|
|
@@ -128,7 +149,16 @@
|
128
|
149
|
|
129
|
150
|
<el-col :span="8" v-if="form.radio == 1">
|
130
|
151
|
<el-form-item>
|
|
152
|
+ <!-- <el-select v-model="form.start_month" placeholder="请选择" @change="changeStartMonth">
|
|
153
|
+ <el-option
|
|
154
|
+ v-for="item in monthType"
|
|
155
|
+ :key="item.id"
|
|
156
|
+ :label="item.name"
|
|
157
|
+ :value="item.id">
|
|
158
|
+ </el-option>
|
|
159
|
+ </el-select> -->
|
131
|
160
|
<el-date-picker
|
|
161
|
+ @change="changeStartMonth"
|
132
|
162
|
value-format="MM"
|
133
|
163
|
v-model="form.start_month"
|
134
|
164
|
type="month"
|
|
@@ -138,7 +168,7 @@
|
138
|
168
|
</el-col>
|
139
|
169
|
<el-col :span="8" v-if="form.radio == 2">
|
140
|
170
|
<el-form-item>
|
141
|
|
- <el-select v-model="form.quarter" placeholder="请选择">
|
|
171
|
+ <el-select v-model="form.quarter" placeholder="请选择" @change="changeQuarter">
|
142
|
172
|
<el-option
|
143
|
173
|
v-for="item in timeType"
|
144
|
174
|
:key="item.id"
|
|
@@ -204,7 +234,7 @@
|
204
|
234
|
|
205
|
235
|
<el-col :span="8">
|
206
|
236
|
<el-form-item label="抗凝剂">
|
207
|
|
- <!-- <el-input v-model="form.anticoagulant"></el-input> -->
|
|
237
|
+
|
208
|
238
|
<el-select v-model="form.anticoagulant" placeholder="请选择" style="width:100%;">
|
209
|
239
|
<el-option :key="0" label="请选择" :value="0"></el-option>
|
210
|
240
|
<el-option v-for="(item, index) in anticoagulantList" :label="item.name" :key="index + 'e'"
|
|
@@ -296,13 +326,19 @@
|
296
|
326
|
<el-row>
|
297
|
327
|
<label class="title"><span class="name">阶段小结化验结果</span> : </label>
|
298
|
328
|
<el-button type="primary" @click="toInspection">选择检验检查</el-button>
|
299
|
|
- <!-- <el-input style="margin:10px 0;" type="textarea" v-model="form.template_inspection_content"></el-input> -->
|
|
329
|
+
|
300
|
330
|
<div class="borderBox">
|
301
|
331
|
<div v-for="item in form.template_inspection_content">
|
302
|
332
|
<p>{{ item.project_name }}</p>
|
303
|
333
|
<div style="display:flex;flex-wrap: wrap;">
|
304
|
334
|
<div v-for="it in item.arr" style="width:33%;">
|
305
|
|
- {{ it.item_name }} {{ it.inspect_value }}
|
|
335
|
+ {{ it.item_name }} <span v-if="it.unit!=''"> [{{it.unit}}] </span>:
|
|
336
|
+ <span v-if="parseInt(it.inspect_value) < parseInt(it.range_min)">
|
|
337
|
+ {{it.inspect_value}}↓
|
|
338
|
+ </span>
|
|
339
|
+ <span v-if="parseInt(it.inspect_value) > parseInt(it.range_max)">
|
|
340
|
+ {{it.inspect_value}}↑
|
|
341
|
+ </span>
|
306
|
342
|
</div>
|
307
|
343
|
</div>
|
308
|
344
|
</div>
|
|
@@ -552,13 +588,19 @@
|
552
|
588
|
<p>{{ item.project_name }}</p>
|
553
|
589
|
<div style="display:flex;flex-wrap: wrap;">
|
554
|
590
|
<div v-for="it in item.arr" style="width:33%;">
|
555
|
|
- {{ it.item_name }} {{ it.inspect_value }}
|
|
591
|
+ {{ it.item_name }} <span v-if="it.unit!=''"> [{{it.unit}}] </span>:
|
|
592
|
+ <span v-if="parseInt(it.inspect_value) < parseInt(it.range_min)">
|
|
593
|
+ {{it.inspect_value}}↓
|
|
594
|
+ </span>
|
|
595
|
+ <span v-if="parseInt(it.inspect_value) > parseInt(it.range_max)">
|
|
596
|
+ {{it.inspect_value}}↑
|
|
597
|
+ </span>
|
556
|
598
|
</div>
|
557
|
599
|
</div>
|
558
|
600
|
</div>
|
559
|
601
|
</div>
|
560
|
602
|
</el-row>
|
561
|
|
- <el-row>
|
|
603
|
+ <el-row style="margin-top:10px;">
|
562
|
604
|
<el-col :span="8">
|
563
|
605
|
<el-form-item label="记录医生">
|
564
|
606
|
<el-select v-model="form.admin_user_id" placeholder="请选择">
|
|
@@ -604,11 +646,12 @@
|
604
|
646
|
<span>选择检验检查时间:</span>
|
605
|
647
|
<div>
|
606
|
648
|
<el-form-item
|
607
|
|
- label="年份:"
|
|
649
|
+ label="时间:"
|
608
|
650
|
prop="startYear"
|
609
|
651
|
style="width:100%;"
|
610
|
652
|
>
|
611
|
653
|
<el-date-picker
|
|
654
|
+ @change="changeYear"
|
612
|
655
|
v-model="startYear"
|
613
|
656
|
class="timePicker"
|
614
|
657
|
type="month"
|
|
@@ -640,14 +683,17 @@
|
640
|
683
|
backgroundColor: 'rgb(245, 247, 250)',
|
641
|
684
|
color: '#606266'
|
642
|
685
|
}"
|
643
|
|
- :row-style="{ color: '#303133' }" :data="tableList"
|
644
|
|
- border highlight-current-row @current-change="changeCurrentRecord"
|
645
|
|
- @selection-change="selectionChangeOne"
|
646
|
|
- :row-class-name="tableRow"
|
647
|
|
- @row-click="onRowClick"
|
648
|
|
- ref="single_table"
|
|
686
|
+ :row-style="{ color: '#303133' }"
|
|
687
|
+ ref="single_table"
|
|
688
|
+ :data="tableList"
|
|
689
|
+ border highlight-current-row
|
|
690
|
+ @current-change="changeCurrentRecord"
|
|
691
|
+ @selection-change="selectionChangeOne"
|
|
692
|
+ :row-class-name="tableRow"
|
|
693
|
+ @row-click="onRowClick"
|
|
694
|
+
|
649
|
695
|
>
|
650
|
|
- <el-table-column type="selection" width="40" align="center"></el-table-column>
|
|
696
|
+ <el-table-column type="selection" width="60" align="center"></el-table-column>
|
651
|
697
|
<el-table-column label="检验项目" align="center">
|
652
|
698
|
<template slot-scope="scope">
|
653
|
699
|
{{scope.row.project_name}}
|
|
@@ -674,6 +720,7 @@
|
674
|
720
|
</el-table-column>
|
675
|
721
|
<el-table-column label="结果" align="center">
|
676
|
722
|
<template slot-scope="scope">
|
|
723
|
+ {{scope.row.project_name}} <span v-if="scope.row.unit!=''">[{{scope.row.unit}}]</span>
|
677
|
724
|
<span v-if="parseInt(scope.row.inspect_value) < parseInt(scope.row.range_min)">
|
678
|
725
|
{{scope.row.inspect_value}}↓
|
679
|
726
|
</span>
|
|
@@ -733,6 +780,7 @@
|
733
|
780
|
import { getDataConfig } from '@/utils/data'
|
734
|
781
|
import multiSelectBox from '../dialysis/details/dialog/MultiSelectBox'
|
735
|
782
|
import MsgTip from '../dialysis/details/dialog/MsgTip'
|
|
783
|
+
|
736
|
784
|
const moment = require('moment')
|
737
|
785
|
export default {
|
738
|
786
|
name: 'templateSummary',
|
|
@@ -795,7 +843,7 @@
|
795
|
843
|
kalium:"",
|
796
|
844
|
autunite:"",
|
797
|
845
|
natrium:"",
|
798
|
|
- houer:"",
|
|
846
|
+ hour:"",
|
799
|
847
|
minute:"",
|
800
|
848
|
befor_weight:"",
|
801
|
849
|
after_weight:"",
|
|
@@ -819,14 +867,28 @@
|
819
|
867
|
{id:3,name:"第三季度"},
|
820
|
868
|
{id:4,name:"第四季度"},
|
821
|
869
|
],
|
|
870
|
+ monthType:[
|
|
871
|
+ {id:1,name:"一月"},
|
|
872
|
+ {id:2,name:"二月"},
|
|
873
|
+ {id:3,name:"三月"},
|
|
874
|
+ {id:4,name:"四月"},
|
|
875
|
+ {id:5,name:"五月"},
|
|
876
|
+ {id:6,name:"六月"},
|
|
877
|
+ {id:7,name:"七月"},
|
|
878
|
+ {id:8,name:"八月"},
|
|
879
|
+ {id:9,name:"九月"},
|
|
880
|
+ {id:10,name:"十月"},
|
|
881
|
+ {id:11,name:"十一月"},
|
|
882
|
+ {id:12,name:"十二月"},
|
|
883
|
+ ],
|
822
|
884
|
options:[],
|
823
|
885
|
dialogVisibleInspection:false,
|
824
|
886
|
editDialogVisible:false,
|
825
|
887
|
edit_show_dialog:false,
|
826
|
888
|
InspectionMajor:[],
|
827
|
889
|
other_start_time:"",
|
828
|
|
- startYear:new Date(),
|
829
|
|
- startMonth:(new Date().getMonth+1).toString(),
|
|
890
|
+ startYear:moment(new Date()).endOf('month').subtract('month', +1).endOf('month').format("YYYY-MM-DD") ,
|
|
891
|
+ // startMonth:(new Date().getMonth - 1).toString(),
|
830
|
892
|
tableList:[],
|
831
|
893
|
tableData:[],
|
832
|
894
|
inspectDataList:[],
|
|
@@ -842,6 +904,12 @@
|
842
|
904
|
stockType:[],
|
843
|
905
|
summaryList:[],
|
844
|
906
|
planList:[],
|
|
907
|
+ projectStr:"",
|
|
908
|
+ projectIndate:"",
|
|
909
|
+ start_year:"2021",
|
|
910
|
+ start_month:"",
|
|
911
|
+ start_date: moment(new Date()).startOf("month").format("YYYY-MM-DD"),
|
|
912
|
+ end_date: moment(new Date()).endOf('month').format("YYYY-MM-DD"),
|
845
|
913
|
}
|
846
|
914
|
},
|
847
|
915
|
created() {
|
|
@@ -852,6 +920,7 @@
|
852
|
920
|
var nowDate = new Date()
|
853
|
921
|
var nowYear = nowDate.getFullYear()
|
854
|
922
|
var nowMonth = nowDate.getMonth() + 1
|
|
923
|
+
|
855
|
924
|
var nowDay = nowDate.getDate()
|
856
|
925
|
this.end_time =
|
857
|
926
|
nowYear +
|
|
@@ -880,21 +949,31 @@
|
880
|
949
|
|
881
|
950
|
this.anticoagulantList = arrFour
|
882
|
951
|
console.log("抗凝剂量",this.anticoagulantList)
|
883
|
|
-
|
|
952
|
+ var endtime= moment(new Date()).endOf('month').subtract('month', +1).endOf('month').format("YYYY-MM-DD")
|
|
953
|
+ console.log("endtime",endtime)
|
884
|
954
|
this.getlist()
|
885
|
955
|
this.getInspectionMajor()
|
886
|
956
|
this.getTemplateSummaryList()
|
887
|
957
|
|
888
|
958
|
},
|
889
|
959
|
methods: {
|
890
|
|
- getTime(val) {
|
|
960
|
+ getTime(value, temp) {
|
|
961
|
+ if (value == 0) {
|
|
962
|
+ return ''
|
|
963
|
+ }
|
|
964
|
+ if (value != undefined) {
|
|
965
|
+ return uParseTime(value, temp)
|
|
966
|
+ }
|
|
967
|
+ return ''
|
|
968
|
+ },
|
|
969
|
+ getTimeOne(val) {
|
891
|
970
|
if(val < 0){
|
892
|
971
|
return ""
|
893
|
972
|
}
|
894
|
973
|
if(val == ""){
|
895
|
974
|
return ""
|
896
|
975
|
}else {
|
897
|
|
- return uParseTime(val, '{y}-{m}-{d}')
|
|
976
|
+ return uParseTime(val, '{m}')
|
898
|
977
|
}
|
899
|
978
|
},
|
900
|
979
|
showEdit(){
|
|
@@ -911,18 +990,21 @@
|
911
|
990
|
|
912
|
991
|
},
|
913
|
992
|
changeCurrentRecord(val){
|
|
993
|
+
|
914
|
994
|
this.getInspectionDetai(val)
|
915
|
995
|
},
|
916
|
996
|
selectionChangeOne(val){
|
917
|
|
- console.log("val23232323",val)
|
918
|
|
-
|
|
997
|
+ // console.log("hhhhhhhhh",val)
|
919
|
998
|
this.getInspectionItemList(val)
|
920
|
999
|
},
|
921
|
|
- startTimeChange(){
|
922
|
|
-
|
|
1000
|
+ startTimeChange(val){
|
|
1001
|
+ console.log("val",val)
|
|
1002
|
+ this.start_time = val
|
|
1003
|
+ this.getTemplateSummaryList()
|
923
|
1004
|
},
|
924
|
|
- endTimeChange(){
|
925
|
|
-
|
|
1005
|
+ endTimeChange(val){
|
|
1006
|
+ this.end_time = val
|
|
1007
|
+ this.getTemplateSummaryList()
|
926
|
1008
|
},
|
927
|
1009
|
print(){
|
928
|
1010
|
this.$router.push({path:"/patient/patient/templateSummary/print?id="+this.form.id})
|
|
@@ -935,25 +1017,6 @@
|
935
|
1017
|
if(quarter == 1){
|
936
|
1018
|
|
937
|
1019
|
}
|
938
|
|
-
|
939
|
|
- // DateTime dt = new DateTime();
|
940
|
|
- // switch (quarter)
|
941
|
|
- // {
|
942
|
|
- // case "第一季度":
|
943
|
|
- // dt = new DateTime(year, 1, 1);
|
944
|
|
- // break;
|
945
|
|
- // case "第二季度":
|
946
|
|
- // dt = new DateTime(year, 4, 1);
|
947
|
|
- // break;
|
948
|
|
- // case "第三季度":
|
949
|
|
- // dt = new DateTime(year, 7, 1);
|
950
|
|
- // break;
|
951
|
|
- // case "第四季度":
|
952
|
|
- // dt = new DateTime(year, 10, 1);
|
953
|
|
- // break;
|
954
|
|
-
|
955
|
|
- // }
|
956
|
|
-
|
957
|
1020
|
},
|
958
|
1021
|
didSelectionChange(){
|
959
|
1022
|
|
|
@@ -971,14 +1034,14 @@
|
971
|
1034
|
start_month:this.getTime(this.form.start_month),
|
972
|
1035
|
quarter:this.form.quarter,
|
973
|
1036
|
patient_id:this.patient_id,
|
|
1037
|
+ start_time:this.start_date,
|
|
1038
|
+ end_time:this.end_date,
|
974
|
1039
|
}
|
975
|
|
- console.log("param222222",params)
|
|
1040
|
+ console.log("世纪时间",params)
|
976
|
1041
|
console.log(moment(moment(2020 + '-01-01').toDate()).quarter(2).format("YYYY-MM-DD"))
|
977
|
1042
|
getInitDataList(params).then(response=>{
|
978
|
1043
|
if(response.data.state == 1){
|
979
|
1044
|
var prescription_list = response.data.data.prescription_list
|
980
|
|
- console.log("prescription_list",prescription_list)
|
981
|
|
-
|
982
|
1045
|
this.form.dialzer_apparatus = prescription_list.dialysis_dialyszers
|
983
|
1046
|
this.form.perfusion_apparatus = prescription_list.dialysis_irrigation
|
984
|
1047
|
this.form.anticoagulant = prescription_list.anticoagulant
|
|
@@ -988,17 +1051,18 @@
|
988
|
1051
|
this.form.natrium = prescription_list.sodium
|
989
|
1052
|
this.form.autunite = prescription_list.calcium
|
990
|
1053
|
var beforlist = response.data.data.beforlist
|
991
|
|
- console.log("beforlist",beforlist)
|
992
|
|
- this.form.befor_weight = beforlist.befor_weight
|
|
1054
|
+ console.log("透前数据565665565656",beforlist)
|
|
1055
|
+ this.form.befor_weight = beforlist.weight_before
|
993
|
1056
|
this.form.dry_weight = beforlist.dry_weight
|
994
|
1057
|
var afterlist = response.data.data.after_list
|
995
|
|
- console.log("afterlist",afterlist)
|
|
1058
|
+ console.log("透后数据232332323232",afterlist)
|
996
|
1059
|
this.form.after_weight = afterlist.weight_after
|
997
|
1060
|
this.form.after_pressure = afterlist.systolic_blood_pressure + "/"+afterlist.diastolic_blood_pressure
|
998
|
1061
|
this.form.befor_pressure = beforlist.systolic_blood_pressure +"/"+beforlist.diastolic_blood_pressure
|
999
|
1062
|
var modelist = response.data.data.modelist
|
|
1063
|
+ console.log("modelist",modelist)
|
1000
|
1064
|
var docList = response.data.data.docList
|
1001
|
|
- console.log("doctlist",docList)
|
|
1065
|
+ // console.log("doctlist",docList)
|
1002
|
1066
|
this.docList = docList
|
1003
|
1067
|
var stockType = response.data.data.stockType
|
1004
|
1068
|
var arr = []
|
|
@@ -1019,15 +1083,15 @@
|
1019
|
1083
|
}
|
1020
|
1084
|
}
|
1021
|
1085
|
this.dialyzerList = dialyzator
|
1022
|
|
- console.log("arrtt2323232332232323",arrTwo)
|
|
1086
|
+ // console.log("arrtt2323232332232323",arrTwo)
|
1023
|
1087
|
for(let i=0;i<arrTwo.length;i++){
|
1024
|
1088
|
for(let j=0;j<arrTwo[i].GoodInfo.length;j++){
|
1025
|
1089
|
irrigation.push(arrTwo[i].GoodInfo[j])
|
1026
|
1090
|
}
|
1027
|
1091
|
}
|
1028
|
1092
|
this.irrigationList = irrigation
|
1029
|
|
- console.log("透析器233223",this.dialyzerList)
|
1030
|
|
- console.log("灌流器323323223",this.irrigationList)
|
|
1093
|
+ // console.log("透析器233223",this.dialyzerList)
|
|
1094
|
+ // console.log("灌流器323323223",this.irrigationList)
|
1031
|
1095
|
var count = ""
|
1032
|
1096
|
var total_count = 0
|
1033
|
1097
|
for(let i=0;i<modelist.length;i++){
|
|
@@ -1048,13 +1112,14 @@
|
1048
|
1112
|
|
1049
|
1113
|
}
|
1050
|
1114
|
this.form.other_count = count
|
|
1115
|
+
|
1051
|
1116
|
this.form.dialysis_count = total_count
|
1052
|
|
- console.log("modelist",modelist)
|
|
1117
|
+ // console.log("modelist",modelist)
|
1053
|
1118
|
var summaryList = response.data.data.summaryList
|
1054
|
|
- console.log("summaryList",summaryList)
|
|
1119
|
+ // console.log("summaryList",summaryList)
|
1055
|
1120
|
this.summaryList = summaryList
|
1056
|
1121
|
var planList = response.data.data.planList
|
1057
|
|
- console.log("planlist",planList)
|
|
1122
|
+ // console.log("planlist",planList)
|
1058
|
1123
|
this.planList = planList
|
1059
|
1124
|
}
|
1060
|
1125
|
})
|
|
@@ -1066,17 +1131,19 @@
|
1066
|
1131
|
|
1067
|
1132
|
//获取大项数据来源
|
1068
|
1133
|
getInspectionMajor(){
|
|
1134
|
+ console.log("start_year",this.startYear)
|
1069
|
1135
|
var params = {
|
1070
|
|
- other_start_time:this.getTime(this.startYear),
|
|
1136
|
+ other_start_time:this.startYear,
|
1071
|
1137
|
patient_id:this.patient_id,
|
1072
|
1138
|
}
|
1073
|
|
- console.log("params",params)
|
|
1139
|
+ console.log("开始数据",params)
|
1074
|
1140
|
getInspectionMajorItem(params).then(response=>{
|
1075
|
1141
|
if(response.data.state == 1){
|
1076
|
1142
|
var list = response.data.data.list
|
1077
|
|
- console.log("list23232323",list)
|
|
1143
|
+ console.log("列表23232232323",list)
|
|
1144
|
+ // this.$refs.single_table.setCurrentRow(list[0])
|
1078
|
1145
|
this.tableList = list
|
1079
|
|
- // this.$refs.single_table.setCurrentRow(this.tableList[0])
|
|
1146
|
+
|
1080
|
1147
|
}
|
1081
|
1148
|
})
|
1082
|
1149
|
},
|
|
@@ -1087,23 +1154,24 @@
|
1087
|
1154
|
patient_id:val.patient_id,
|
1088
|
1155
|
inspect_date:val.inspect_date,
|
1089
|
1156
|
}
|
1090
|
|
- console.log("param2233233223",params)
|
|
1157
|
+ // console.log("param2233233223",params)
|
1091
|
1158
|
getInspectionDetail(params).then(response=>{
|
1092
|
1159
|
if(response.data.state ==1){
|
1093
|
1160
|
var list = response.data.data.list
|
1094
|
|
- console.log("详情222",list)
|
|
1161
|
+ // console.log("详情222",list)
|
|
1162
|
+
|
1095
|
1163
|
this.tableData = list
|
1096
|
1164
|
}
|
1097
|
1165
|
})
|
1098
|
1166
|
},
|
1099
|
1167
|
selectionChange(val){
|
1100
|
|
- console.log("val233223",val)
|
|
1168
|
+ // console.log("val233223",val)
|
1101
|
1169
|
selectionChange().then(response=>{
|
1102
|
1170
|
|
1103
|
1171
|
})
|
1104
|
1172
|
},
|
1105
|
1173
|
getInspectionItemList(val){
|
1106
|
|
-
|
|
1174
|
+ // console.log("中国龚23232323232332",val)
|
1107
|
1175
|
for(let i=0;i<val.length;i++){
|
1108
|
1176
|
this.projectList.push(val[i].project_id)
|
1109
|
1177
|
this.inspectDataList.push(val[i].inspect_date)
|
|
@@ -1113,23 +1181,20 @@
|
1113
|
1181
|
toContent(){
|
1114
|
1182
|
|
1115
|
1183
|
var str = this.projectList.join(",")
|
|
1184
|
+ this.projectStr = str
|
1116
|
1185
|
var inspe_date = this.inspectDataList.join(",")
|
|
1186
|
+ this.projectIndate = inspe_date
|
1117
|
1187
|
var params = {
|
1118
|
1188
|
ids:str,
|
1119
|
1189
|
inspect_date:inspe_date,
|
1120
|
1190
|
patient_id:this.patient_id,
|
1121
|
1191
|
}
|
1122
|
|
- console.log("params",params)
|
|
1192
|
+ // console.log("params",params)
|
1123
|
1193
|
getInspectionItemList(params).then(response=>{
|
1124
|
1194
|
if(response.data.state == 1){
|
1125
|
1195
|
var list = response.data.data.list
|
1126
|
|
-
|
1127
|
|
- // var str = ""
|
1128
|
|
- // for(let i=0;i<list.length;i++){
|
1129
|
|
- // str += (list[i].item_name + ":" + list[i].inspect_value+"<br>")
|
1130
|
|
- // }
|
1131
|
1196
|
let arr = this.unique(list,'project_name')
|
1132
|
|
- console.log("选择检验检查",arr)
|
|
1197
|
+ // console.log("选择检验检查",arr)
|
1133
|
1198
|
|
1134
|
1199
|
this.form.template_inspection_content = arr
|
1135
|
1200
|
this.dialogVisibleInspection = false
|
|
@@ -1139,10 +1204,56 @@
|
1139
|
1204
|
})
|
1140
|
1205
|
},
|
1141
|
1206
|
saveCreation(){
|
1142
|
|
- console.log("hh2h32232332",this.form.title)
|
|
1207
|
+
|
|
1208
|
+ if (this.form.dry_weight == ""){
|
|
1209
|
+ this.form.dry_weight = 0
|
|
1210
|
+ }
|
|
1211
|
+ if (this.form.dialysis_count == ""){
|
|
1212
|
+ this.form.dialysis_count = 0
|
|
1213
|
+ }
|
|
1214
|
+ if (this.form.hd_count == ""){
|
|
1215
|
+ this.form.hd_count = 0
|
|
1216
|
+ }
|
|
1217
|
+ if (this.form.hdf_count == ""){
|
|
1218
|
+ this.form.hdf_count = 0
|
|
1219
|
+ }
|
|
1220
|
+ if (this.form.hp_count == ""){
|
|
1221
|
+ this.form.hp_count = 0
|
|
1222
|
+ }
|
|
1223
|
+ if (this.form.other_count == ""){
|
|
1224
|
+ this.form.other_count = 0
|
|
1225
|
+ }
|
|
1226
|
+ if (this.form.kalium == ""){
|
|
1227
|
+ this.form.kalium = 0
|
|
1228
|
+ }
|
|
1229
|
+ if (this.form.autunite == ""){
|
|
1230
|
+ this.form.autunite = 0
|
|
1231
|
+ }
|
|
1232
|
+ if (this.form.natrium == ""){
|
|
1233
|
+ this.form.natrium = 0
|
|
1234
|
+ }
|
|
1235
|
+ if (this.form.hour == ""){
|
|
1236
|
+ this.form.hour = 0
|
|
1237
|
+ }
|
|
1238
|
+ if (this.form.minute == ""){
|
|
1239
|
+ this.form.minute = 0
|
|
1240
|
+ }
|
|
1241
|
+ if(this.form.befor_weight == ""){
|
|
1242
|
+ this.form.befor_weight = 0
|
|
1243
|
+ }
|
|
1244
|
+ if(this.form.after_weight == ""){
|
|
1245
|
+ this.form.after_weight = 0
|
|
1246
|
+ }
|
|
1247
|
+ if(this.form.befor_pressure == ""){
|
|
1248
|
+ this.form.befor_pressure = 0
|
|
1249
|
+ }
|
|
1250
|
+ var year = this.form.start_year+"-"+"01"+"-"+"01"
|
|
1251
|
+ console.log("年",year)
|
|
1252
|
+ var month = this.form.start_year+"-"+this.form.start_month+"-"+"01"
|
|
1253
|
+ console.log("月",month)
|
1143
|
1254
|
var params = {
|
1144
|
1255
|
title:this.form.title,
|
1145
|
|
- dry_weight:parseInt(this.form.dry_weight),
|
|
1256
|
+ dry_weight:this.form.dry_weight.toString(),
|
1146
|
1257
|
dialysis_count:parseInt(this.form.dialysis_count),
|
1147
|
1258
|
hd_count:parseInt(this.form.hd_count),
|
1148
|
1259
|
hdf_count:parseInt(this.form.hdf_count),
|
|
@@ -1151,31 +1262,38 @@
|
1151
|
1262
|
dialzer_apparatus:this.form.dialzer_apparatus,
|
1152
|
1263
|
perfusion_apparatus:this.form.perfusion_apparatus,
|
1153
|
1264
|
anticoagulant:this.form.anticoagulant,
|
1154
|
|
- kalium:parseInt(this.form.kalium),
|
1155
|
|
- autunite:parseInt(this.form.autunite),
|
1156
|
|
- natrium:parseInt(this.form.natrium),
|
|
1265
|
+ kalium:this.form.kalium.toString(),
|
|
1266
|
+ autunite:this.form.autunite.toString(),
|
|
1267
|
+ natrium:this.form.natrium.toString(),
|
1157
|
1268
|
hour:parseInt(this.form.hour),
|
1158
|
1269
|
minute:parseInt(this.form.minute),
|
1159
|
|
- befor_weight:parseInt(this.form.befor_weight),
|
1160
|
|
- after_weight:parseInt(this.form.after_weight),
|
1161
|
|
- befor_pressure:parseInt(this.form.befor_pressure),
|
|
1270
|
+ befor_weight:this.form.befor_weight.toString(),
|
|
1271
|
+ after_weight:this.form.after_weight.toString(),
|
|
1272
|
+ befor_pressure:this.form.befor_pressure,
|
1162
|
1273
|
template_summary_content:this.form.template_summary_content,
|
1163
|
1274
|
template_plan_content:this.form.template_plan_content,
|
1164
|
|
- template_inspection_content:this.form.template_inspection_content,
|
|
1275
|
+ // template_inspection_content:JSON.stringify(this.form.template_inspection_content),
|
1165
|
1276
|
admin_user_id:this.form.admin_user_id,
|
1166
|
|
- record_time:this.form.record_time,
|
|
1277
|
+ record_time:this.getTime(this.form.record_time),
|
1167
|
1278
|
after_pressure:this.form.after_pressure,
|
1168
|
1279
|
template_summary_id:this.form.template_summary_id,
|
1169
|
1280
|
template_summary_content:this.form.template_summary_content,
|
1170
|
1281
|
template_plan_id:this.form.template_plan_id,
|
1171
|
1282
|
template_inspection_id:this.form.template_inspection_id,
|
1172
|
|
- patient_id:this.patient_id,
|
|
1283
|
+ patient_id:parseInt(this.patient_id),
|
|
1284
|
+ project_id:this.projectStr,
|
|
1285
|
+ inspect_date:this.projectIndate,
|
|
1286
|
+ start_year:year,
|
|
1287
|
+ start_month:month,
|
|
1288
|
+ radio:this.form.radio,
|
1173
|
1289
|
}
|
1174
|
|
- console.log("parawm232323223",params)
|
|
1290
|
+ console.log("parawm232323223",params)
|
|
1291
|
+
|
1175
|
1292
|
saveCreation(params).then(response=>{
|
1176
|
1293
|
if(response.data.state ==1){
|
1177
|
1294
|
var summary = response.data.data.summary
|
1178
|
|
- console.log("summary",summary)
|
|
1295
|
+ // console.log("summary",summary)
|
|
1296
|
+ this.getTemplateSummaryList()
|
1179
|
1297
|
this.$message.success("保存成功!");
|
1180
|
1298
|
this.show_dialog = false
|
1181
|
1299
|
this.form.title = ""
|
|
@@ -1210,8 +1328,11 @@
|
1210
|
1328
|
},
|
1211
|
1329
|
getTemplateSummaryList(){
|
1212
|
1330
|
var params = {
|
1213
|
|
- patient_id:this.patient_id
|
|
1331
|
+ patient_id:this.patient_id,
|
|
1332
|
+ start_time:this.start_time,
|
|
1333
|
+ end_time:this.end_time,
|
1214
|
1334
|
}
|
|
1335
|
+ console.log("param2222",params)
|
1215
|
1336
|
getTemplateSummaryList(params).then(response=>{
|
1216
|
1337
|
if(response.data.state ==1){
|
1217
|
1338
|
var list = response.data.data.list
|
|
@@ -1228,8 +1349,10 @@
|
1228
|
1349
|
getTemplateSummaryDetail(params).then(response=>{
|
1229
|
1350
|
if(response.data.state == 1){
|
1230
|
1351
|
var list = response.data.data.list
|
1231
|
|
- console.log("🔎3232322323232332",list)
|
1232
|
|
- let arr = list.template_inspection_content ? JSON.parse(list.template_inspection_content) : []
|
|
1352
|
+ var inspectlist = response.data.data.inspectlist
|
|
1353
|
+ console.log("inspectlist2322332",list)
|
|
1354
|
+ let arr = this.unique(inspectlist,'project_name')
|
|
1355
|
+ console.log("hhh23h2323223223232323",arr)
|
1233
|
1356
|
list.template_inspection_content = arr
|
1234
|
1357
|
this.editObj = list
|
1235
|
1358
|
|
|
@@ -1293,7 +1416,9 @@
|
1293
|
1416
|
getTemplateSummaryDetail(params).then(response=>{
|
1294
|
1417
|
if(response.data.state == 1){
|
1295
|
1418
|
var list = response.data.data.list
|
1296
|
|
- console.log("详情22333223",list)
|
|
1419
|
+ var inspectlist = response.data.data.inspectlist
|
|
1420
|
+ let arr = this.unique(inspectlist,'project_name')
|
|
1421
|
+ this.form.template_inspection_content = arr
|
1297
|
1422
|
this.edit_show_dialog = true
|
1298
|
1423
|
this.form.title = list.title
|
1299
|
1424
|
this.form.id = list.id
|
|
@@ -1316,11 +1441,12 @@
|
1316
|
1441
|
this.form.natrium =list.natrium
|
1317
|
1442
|
this.form.perfusion_apparatus= list.perfusion_apparatus
|
1318
|
1443
|
this.form.record_time = this.getTime(list.record_time)
|
1319
|
|
- this.form.template_inspection_content = list.template_inspection_content
|
1320
|
1444
|
this.form.template_inspection_id = list.template_inspection_id
|
1321
|
1445
|
this.form.template_plan_content = list.template_plan_content
|
1322
|
1446
|
this.form.template_summary_content =list.template_summary_content
|
1323
|
1447
|
this.form.template_summary_id = list.template_summary_id
|
|
1448
|
+ this.projectIndate = list.inspect_date
|
|
1449
|
+ this.projectStr = list.project_id
|
1324
|
1450
|
}
|
1325
|
1451
|
})
|
1326
|
1452
|
},
|
|
@@ -1349,7 +1475,7 @@
|
1349
|
1475
|
var params = {
|
1350
|
1476
|
id:this.form.id,
|
1351
|
1477
|
title:this.form.title,
|
1352
|
|
- dry_weight:parseInt(this.form.dry_weight),
|
|
1478
|
+ dry_weight:this.form.dry_weight.toString(),
|
1353
|
1479
|
dialysis_count:parseInt(this.form.dialysis_count),
|
1354
|
1480
|
hd_count:parseInt(this.form.hd_count),
|
1355
|
1481
|
hdf_count:parseInt(this.form.hdf_count),
|
|
@@ -1358,28 +1484,28 @@
|
1358
|
1484
|
dialzer_apparatus:this.form.dialzer_apparatus,
|
1359
|
1485
|
perfusion_apparatus:this.form.perfusion_apparatus,
|
1360
|
1486
|
anticoagulant:this.form.anticoagulant,
|
1361
|
|
- kalium:parseInt(this.form.kalium),
|
1362
|
|
- autunite:parseInt(this.form.autunite),
|
1363
|
|
- natrium:parseInt(this.form.natrium),
|
|
1487
|
+ kalium:this.form.kalium.toString(),
|
|
1488
|
+ autunite:this.form.autunite.toString(),
|
|
1489
|
+ natrium:this.form.natrium.toString(),
|
1364
|
1490
|
hour:parseInt(this.form.hour),
|
1365
|
1491
|
minute:parseInt(this.form.minute),
|
1366
|
|
- befor_weight:parseInt(this.form.befor_weight),
|
1367
|
|
- after_weight:parseInt(this.form.after_weight),
|
1368
|
|
- befor_pressure:parseInt(this.form.befor_pressure),
|
|
1492
|
+ befor_weight:this.form.befor_weight.toString(),
|
|
1493
|
+ after_weight:this.form.after_weight.toString(),
|
|
1494
|
+ befor_pressure:this.form.befor_pressure,
|
1369
|
1495
|
template_summary_content:this.form.template_summary_content,
|
1370
|
1496
|
template_plan_content:this.form.template_plan_content,
|
1371
|
|
- template_inspection_content:JSON.stringify(this.form.template_inspection_content),
|
1372
|
1497
|
admin_user_id:this.form.admin_user_id,
|
1373
|
1498
|
record_time:this.form.record_time,
|
1374
|
1499
|
after_pressure:this.form.after_pressure,
|
1375
|
1500
|
template_summary_id:this.form.template_summary_id,
|
1376
|
|
- template_summary_content:this.form.template_summary_content,
|
1377
|
1501
|
template_plan_id:this.form.template_plan_id,
|
1378
|
1502
|
template_inspection_id:this.form.template_inspection_id,
|
1379
|
|
- patient_id:this.patient_id,
|
|
1503
|
+ patient_id:parseInt(this.patient_id),
|
|
1504
|
+ project_id:this.projectStr,
|
|
1505
|
+ inspect_date:this.projectIndate,
|
1380
|
1506
|
}
|
1381
|
1507
|
console.log("parawm232323223",params)
|
1382
|
|
-
|
|
1508
|
+
|
1383
|
1509
|
UpdateTemplateSummary(params).then(response=>{
|
1384
|
1510
|
if(response.data.state == 1){
|
1385
|
1511
|
var list = response.data.data.list
|
|
@@ -1392,9 +1518,7 @@
|
1392
|
1518
|
let lastData = [];
|
1393
|
1519
|
data.forEach(item => {
|
1394
|
1520
|
let status = lastData.some(project_name => project_name[key] == item[key]);
|
1395
|
|
- console.log('status',status)
|
1396
|
1521
|
if (!status) {
|
1397
|
|
- // item.value0 = item.value;
|
1398
|
1522
|
let obj = {
|
1399
|
1523
|
project_name:'',
|
1400
|
1524
|
arr:[]
|
|
@@ -1402,18 +1526,161 @@
|
1402
|
1526
|
obj.project_name = item.project_name
|
1403
|
1527
|
obj.arr.push(item);
|
1404
|
1528
|
lastData.push(obj);
|
1405
|
|
- console.log('item',item)
|
1406
|
1529
|
} else {
|
1407
|
1530
|
lastData.forEach((project_name, index) => {
|
1408
|
1531
|
if (project_name[key] === item[key]) {
|
1409
|
|
- console.log('item222',item)
|
1410
|
1532
|
project_name.arr.push(item);
|
1411
|
1533
|
}
|
1412
|
1534
|
});
|
1413
|
1535
|
}
|
1414
|
1536
|
});
|
1415
|
1537
|
return lastData;
|
|
1538
|
+ },
|
|
1539
|
+ getDoctor(id){
|
|
1540
|
+ var user_name = ""
|
|
1541
|
+ for(let i=0;i<this.docList.length;i++){
|
|
1542
|
+ if(id == this.docList[i].admin_user_id){
|
|
1543
|
+ user_name = this.docList[i].user_name
|
|
1544
|
+ }
|
|
1545
|
+ }
|
|
1546
|
+ return user_name
|
|
1547
|
+ },
|
|
1548
|
+ changeStartYear(){
|
|
1549
|
+ this.form.title = ""
|
|
1550
|
+ this.form.dry_weight = ""
|
|
1551
|
+ this.form.dialysis_count =""
|
|
1552
|
+ this.form.hd_count= ""
|
|
1553
|
+ this.form.hdf_count = ""
|
|
1554
|
+ this.form.hp_count = ""
|
|
1555
|
+ this.form.other_count =""
|
|
1556
|
+ this.form.dialzer_apparatus = ""
|
|
1557
|
+ this.form.perfusion_apparatus = ""
|
|
1558
|
+ this.form.anticoagulant = ""
|
|
1559
|
+ this.form.kalium = ""
|
|
1560
|
+ this.form.autunite = ""
|
|
1561
|
+ this.form.natrium = ""
|
|
1562
|
+ this.form.hour =""
|
|
1563
|
+ this.form.minute = ""
|
|
1564
|
+ this.form.befor_weight = ""
|
|
1565
|
+ this.form.after_weight = ""
|
|
1566
|
+ this.form.befor_pressure = ""
|
|
1567
|
+ this.form.template_summary_content = ""
|
|
1568
|
+ this.form.template_plan_content = ""
|
|
1569
|
+ this.form.template_inspection_content = ""
|
|
1570
|
+ this.form.admin_user_id = ""
|
|
1571
|
+ this.form.record_time = ""
|
|
1572
|
+ this.from.after_pressure = ""
|
|
1573
|
+ this.form.template_summary_id = ""
|
|
1574
|
+ this.form.template_plan_id = ""
|
|
1575
|
+ this.form.template_inspection_id = ""
|
|
1576
|
+ this.start_year = this.form.start_year
|
|
1577
|
+ console.log("年份",this.form.start_year)
|
|
1578
|
+ console.log("月份",this.getTimeOne(this.form.start_month))
|
|
1579
|
+ var start = this.form.start_year + "-" + this.getTimeOne(this.form.start_month) + "-"+"01"
|
|
1580
|
+ var end = this.form.start_year + "-" + this.getTimeOne(this.form.start_month) + "-"+"30"
|
|
1581
|
+ this.start_date = start
|
|
1582
|
+ this.end_date = end
|
|
1583
|
+ this.getlist()
|
|
1584
|
+ },
|
|
1585
|
+ changeStartMonth(){
|
|
1586
|
+ this.form.title = ""
|
|
1587
|
+ this.form.dry_weight = ""
|
|
1588
|
+ this.form.dialysis_count =""
|
|
1589
|
+ this.form.hd_count= ""
|
|
1590
|
+ this.form.hdf_count = ""
|
|
1591
|
+ this.form.hp_count = ""
|
|
1592
|
+ this.form.other_count =""
|
|
1593
|
+ this.form.dialzer_apparatus = ""
|
|
1594
|
+ this.form.perfusion_apparatus = ""
|
|
1595
|
+ this.form.anticoagulant = ""
|
|
1596
|
+ this.form.kalium = ""
|
|
1597
|
+ this.form.autunite = ""
|
|
1598
|
+ this.form.natrium = ""
|
|
1599
|
+ this.form.hour =""
|
|
1600
|
+ this.form.minute = ""
|
|
1601
|
+ this.form.befor_weight = ""
|
|
1602
|
+ this.form.after_weight = ""
|
|
1603
|
+ this.form.befor_pressure = ""
|
|
1604
|
+ this.form.template_summary_content = ""
|
|
1605
|
+ this.form.template_plan_content = ""
|
|
1606
|
+ this.form.template_inspection_content = ""
|
|
1607
|
+ this.form.admin_user_id = ""
|
|
1608
|
+ this.form.record_time = ""
|
|
1609
|
+ this.from.after_pressure = ""
|
|
1610
|
+ this.form.template_summary_id = ""
|
|
1611
|
+ this.form.template_plan_id = ""
|
|
1612
|
+ this.form.template_inspection_id = ""
|
|
1613
|
+ var start = this.start_year +"-"+ this.form.start_month+"-"+"01"
|
|
1614
|
+ var end = this.start_year +"-"+ this.form.start_month + "-"+"30"
|
|
1615
|
+ this.start_date = start
|
|
1616
|
+ this.end_date = end
|
|
1617
|
+ console.log("开始时间",this.start_date)
|
|
1618
|
+ console.log("结束时间",this.end_date)
|
|
1619
|
+ this.getlist()
|
|
1620
|
+
|
|
1621
|
+ },
|
|
1622
|
+ changeQuarter(val){
|
|
1623
|
+ this.form.title = ""
|
|
1624
|
+ this.form.dry_weight = ""
|
|
1625
|
+ this.form.dialysis_count =""
|
|
1626
|
+ this.form.hd_count= ""
|
|
1627
|
+ this.form.hdf_count = ""
|
|
1628
|
+ this.form.hp_count = ""
|
|
1629
|
+ this.form.other_count =""
|
|
1630
|
+ this.form.dialzer_apparatus = ""
|
|
1631
|
+ this.form.perfusion_apparatus = ""
|
|
1632
|
+ this.form.anticoagulant = ""
|
|
1633
|
+ this.form.kalium = ""
|
|
1634
|
+ this.form.autunite = ""
|
|
1635
|
+ this.form.natrium = ""
|
|
1636
|
+ this.form.hour =""
|
|
1637
|
+ this.form.minute = ""
|
|
1638
|
+ this.form.befor_weight = ""
|
|
1639
|
+ this.form.after_weight = ""
|
|
1640
|
+ this.form.befor_pressure = ""
|
|
1641
|
+ this.form.template_summary_content = ""
|
|
1642
|
+ this.form.template_plan_content = ""
|
|
1643
|
+ this.form.template_inspection_content = ""
|
|
1644
|
+ this.form.admin_user_id = ""
|
|
1645
|
+ this.form.record_time = ""
|
|
1646
|
+ this.from.after_pressure = ""
|
|
1647
|
+ this.form.template_summary_id = ""
|
|
1648
|
+ this.form.template_plan_id = ""
|
|
1649
|
+ this.form.template_inspection_id = ""
|
|
1650
|
+ if(val == 1){
|
|
1651
|
+ this.start_date = this.start_year+"-"+"01"+"-"+"01"
|
|
1652
|
+ this.end_date = this.start_year +"-"+"03"+"-"+"31"
|
|
1653
|
+ }
|
|
1654
|
+ if(val == 2){
|
|
1655
|
+ this.start_date = this.start_year +"-"+ "04"+"-"+"01"
|
|
1656
|
+ this.end_date = this.start_year +"-"+ "06"+"-"+"30"
|
|
1657
|
+ }
|
|
1658
|
+ if(val == 3){
|
|
1659
|
+ this.start_date = this.start_year +"-"+ "07"+"-"+"01"
|
|
1660
|
+ this.end_date = this.start_year +"-"+ "09"+"-"+"30"
|
|
1661
|
+ }
|
|
1662
|
+ if(val == 4){
|
|
1663
|
+ this.start_date = this.start_year +"-"+ "09"+"-"+"01"
|
|
1664
|
+ this.end_date = this.start_year +"-"+ "12"+"-"+"31"
|
|
1665
|
+ }
|
|
1666
|
+ this.getlist()
|
|
1667
|
+ },
|
|
1668
|
+ getAnticoagulant(id){
|
|
1669
|
+
|
|
1670
|
+ var name = ""
|
|
1671
|
+ for(let i=0;i<this.anticoagulantList.length;i++){
|
|
1672
|
+ if(id == this.anticoagulantList[i].id){
|
|
1673
|
+ name = this.anticoagulantList[i].name
|
|
1674
|
+ }
|
|
1675
|
+ }
|
|
1676
|
+ return name
|
|
1677
|
+ },
|
|
1678
|
+ changeYear(val){
|
|
1679
|
+ console.log("val2323323223",val)
|
|
1680
|
+ this.startYear = val+"-" + "30"
|
|
1681
|
+ this.getInspectionMajor()
|
1416
|
1682
|
}
|
|
1683
|
+
|
1417
|
1684
|
},
|
1418
|
1685
|
// watch: {
|
1419
|
1686
|
// inspectionList: function() {
|