|
@@ -53,27 +53,14 @@
|
53
|
53
|
<div class="infoOne">
|
54
|
54
|
<div class="titleBox">
|
55
|
55
|
<span class="point"></span>
|
56
|
|
- <p class="infoTitle">透析总量(100次)</p>
|
|
56
|
+ <p class="infoTitle">透析总量({{total}}次)</p>
|
57
|
57
|
</div>
|
|
58
|
+
|
58
|
59
|
<div class="borderBox">
|
59
|
|
- <p>HD:64次(64%)</p>
|
60
|
|
- <el-progress :percentage="70"></el-progress>
|
61
|
|
- <p>HD:64次(64%)</p>
|
62
|
|
- <el-progress :percentage="70"></el-progress>
|
63
|
|
- <p>HD:64次(64%)</p>
|
64
|
|
- <el-progress :percentage="70"></el-progress>
|
65
|
|
- <p>HD:64次(64%)</p>
|
66
|
|
- <el-progress :percentage="70"></el-progress>
|
67
|
|
- <p>HD:64次(64%)</p>
|
68
|
|
- <el-progress :percentage="70"></el-progress>
|
69
|
|
- <p>HD:64次(64%)</p>
|
70
|
|
- <el-progress :percentage="70"></el-progress>
|
71
|
|
- <p>HD:64次(64%)</p>
|
72
|
|
- <el-progress :percentage="70"></el-progress>
|
73
|
|
- <p>HD:64次(64%)</p>
|
74
|
|
- <el-progress :percentage="70"></el-progress>
|
75
|
|
- <p>HD:64次(64%)</p>
|
|
60
|
+ <div v-for="(item,index) in modetype" :key="index">
|
|
61
|
+ <p>{{item.mode_id}}:64次(64%)</p>
|
76
|
62
|
<el-progress :percentage="70"></el-progress>
|
|
63
|
+ </div>
|
77
|
64
|
</div>
|
78
|
65
|
</div>
|
79
|
66
|
<div class="infoOne">
|
|
@@ -158,10 +145,12 @@
|
158
|
145
|
|
159
|
146
|
|
160
|
147
|
<script>
|
|
148
|
+const moment = require('moment')
|
161
|
149
|
import { GetOICData } from "@/api/qcd";
|
162
|
150
|
import PieChart from "../qcd/components/BarChart";
|
163
|
151
|
import { uParseTime } from "@/utils/tools";
|
164
|
152
|
import BreadCrumb from "@/xt_pages/components/bread-crumb";
|
|
153
|
+import {getDialysisModeType} from "@/api/common/common"
|
165
|
154
|
export default {
|
166
|
155
|
name: "dialysisTotal",
|
167
|
156
|
components: {
|
|
@@ -186,10 +175,11 @@ export default {
|
186
|
175
|
{ value: 1, label: "近三个月", state: 1 },
|
187
|
176
|
{ value: 2, label: "近半年", state: 2 },
|
188
|
177
|
{ value: 3, label: "近一年", state: 3 }
|
189
|
|
- ]
|
|
178
|
+ ],
|
|
179
|
+ modetype:[],
|
|
180
|
+ total:0,
|
190
|
181
|
};
|
191
|
182
|
},
|
192
|
|
- created() {},
|
193
|
183
|
methods: {
|
194
|
184
|
changeTime() {},
|
195
|
185
|
changeEndTime(val) {
|
|
@@ -204,8 +194,76 @@ export default {
|
204
|
194
|
selectLapseTo(state) {
|
205
|
195
|
this.stateType = state;
|
206
|
196
|
this.listQuery.state = state;
|
|
197
|
+ },
|
|
198
|
+ getDialysisModeType(startDate,endDate){
|
|
199
|
+ getDialysisModeType(startDate,endDate).then(response=>{
|
|
200
|
+ if(response.data.state == 1){
|
|
201
|
+ var modetype = response.data.data.modetype
|
|
202
|
+ var total = response.data.data.total
|
|
203
|
+ console.log("total",total)
|
|
204
|
+ this.total = total
|
|
205
|
+ for(let i=0;i<modetype.length;i++){
|
|
206
|
+ if(modetype[i].mode_id == 1){
|
|
207
|
+ modetype[i].mode_id = "HD"
|
|
208
|
+ }
|
|
209
|
+ if(modetype[i].mode_id == 2){
|
|
210
|
+ modetype[i].mode_id = "HDF"
|
|
211
|
+ }
|
|
212
|
+ if(modetype[i].mode_id == 3){
|
|
213
|
+ modetype[i].mode_id = "HD+HP"
|
|
214
|
+ }
|
|
215
|
+ if(modetype[i].mode_id == 4){
|
|
216
|
+ modetype[i].mode_id = "HP"
|
|
217
|
+ }
|
|
218
|
+ if(modetype[i].mode_id == 5){
|
|
219
|
+ modetype[i].mode_id = "HF"
|
|
220
|
+ }
|
|
221
|
+ if(modetype[i].mode_id == 6){
|
|
222
|
+ modetype[i].mode_id = "SCUF"
|
|
223
|
+ }
|
|
224
|
+ if(modetype[i].mode_id == 7){
|
|
225
|
+ modetype[i].mode_id = "IUF"
|
|
226
|
+ }
|
|
227
|
+ if(modetype[i].mode_id == 8){
|
|
228
|
+ modetype[i].mode_id = "HFHD"
|
|
229
|
+ }
|
|
230
|
+ if(modetype[i].mode_id == 9){
|
|
231
|
+ modetype[i].mode_id = "HFHD+HP"
|
|
232
|
+ }
|
|
233
|
+ if(modetype[i].mode_id == 10){
|
|
234
|
+ modetype[i].mode_id = "PHF"
|
|
235
|
+ }
|
|
236
|
+ if(modetype[i].mode_id == 11){
|
|
237
|
+ modetype[i].mode_id = "HFR"
|
|
238
|
+ }
|
|
239
|
+ if(modetype[i].mode_id == 12){
|
|
240
|
+ modetype[i].mode_id = "HDF+HP"
|
|
241
|
+ }
|
|
242
|
+ if(modetype[i].mode_id == 13){
|
|
243
|
+ modetype[i].mode_id = "HFHD+HP"
|
|
244
|
+ }
|
|
245
|
+ if(modetype[i].mode_id == 14){
|
|
246
|
+ modetype[i].mode_id = "腹水回输"
|
|
247
|
+ }
|
|
248
|
+ if(modetype[i].mode_id == 19){
|
|
249
|
+ modetype[i].mode_id = "IUF+HD"
|
|
250
|
+ }
|
|
251
|
+ }
|
|
252
|
+ this.modetype = modetype
|
|
253
|
+ console.log("modetype",modetype)
|
|
254
|
+
|
|
255
|
+ }
|
|
256
|
+ })
|
207
|
257
|
}
|
208
|
|
- }
|
|
258
|
+ },
|
|
259
|
+ created() {
|
|
260
|
+ //获取本月当前机构的透析模式
|
|
261
|
+ const startDate = moment().subtract('month', 0).format('YYYY-MM') + '-01'
|
|
262
|
+ console.log("开始时间",startDate)
|
|
263
|
+ const endDate = moment(new Date()).format('YYYY-MM-DD')
|
|
264
|
+ console.log("结束时间",endDate)
|
|
265
|
+ this.getDialysisModeType(startDate,endDate)
|
|
266
|
+ },
|
209
|
267
|
};
|
210
|
268
|
</script>
|
211
|
269
|
|