|
@@ -36,7 +36,6 @@
|
36
|
36
|
align="right"
|
37
|
37
|
format="yyyy-MM-dd"
|
38
|
38
|
value-format="yyyy-MM-dd"
|
39
|
|
- :picker-options="pickerOptions"
|
40
|
39
|
></el-date-picker>
|
41
|
40
|
<span class>-</span>
|
42
|
41
|
<el-date-picker
|
|
@@ -56,8 +55,8 @@
|
56
|
55
|
<el-container>
|
57
|
56
|
<div style="width:160px">
|
58
|
57
|
<div class="tableTitle">患者列表</div>
|
59
|
|
- <el-table :data="patientsData" border style="width: 100%;"
|
60
|
|
- height="500" :row-style="{ color: '#303133' }"
|
|
58
|
+ <el-table :data="patientsData" border style="width: 100%;"
|
|
59
|
+ height="500" :row-style="{ color: '#303133' }"
|
61
|
60
|
:header-cell-style="{backgroundColor: 'rgb(245, 247, 250)',color: '#606266'}"
|
62
|
61
|
highlight-current-row
|
63
|
62
|
ref="singleTable"
|
|
@@ -209,7 +208,7 @@ export default {
|
209
|
208
|
let threeMonths = new Date(new Date().setFullYear(new Date().getFullYear()-1)).getTime() - 24 * 3600 * 1000;
|
210
|
209
|
return time.getTime() > Date.now() || time.getTime() < threeMonths;;
|
211
|
210
|
}
|
212
|
|
- },
|
|
211
|
+ },
|
213
|
212
|
modesData: {
|
214
|
213
|
xAxis: [],
|
215
|
214
|
series: []
|
|
@@ -260,11 +259,11 @@ export default {
|
260
|
259
|
getInspectionTotalCount(this.listQuery.start_time,this.listQuery.end_time,this.patient_id).then(response=>{
|
261
|
260
|
if(response.data.state === 1){
|
262
|
261
|
var Inspection = response.data.data.Inspection
|
263
|
|
-
|
|
262
|
+
|
264
|
263
|
this.tableData = Inspection
|
265
|
|
-
|
|
264
|
+
|
266
|
265
|
var counts = response.data.data.counts
|
267
|
|
-
|
|
266
|
+
|
268
|
267
|
var arr = []
|
269
|
268
|
for(let i=0;i<Inspection.length;i++){
|
270
|
269
|
for(let j=0;j<counts.length;j++){
|
|
@@ -273,9 +272,9 @@ export default {
|
273
|
272
|
}
|
274
|
273
|
}
|
275
|
274
|
}
|
276
|
|
-
|
|
275
|
+
|
277
|
276
|
// var arrtwo = this.arrayDate(counts,this.normData)
|
278
|
|
-
|
|
277
|
+
|
279
|
278
|
var hash = {};
|
280
|
279
|
var i = 0;
|
281
|
280
|
var res = [];
|
|
@@ -288,11 +287,11 @@ export default {
|
288
|
287
|
Sort:item.Sort,
|
289
|
288
|
})
|
290
|
289
|
});
|
291
|
|
-
|
|
290
|
+
|
292
|
291
|
res.map(item => {
|
293
|
292
|
item.Count = eval(item.Count.join('+'))
|
294
|
293
|
})
|
295
|
|
-
|
|
294
|
+
|
296
|
295
|
let arr1 = []
|
297
|
296
|
this.tableData.map(it => {
|
298
|
297
|
arr1.push(it.project_name)
|
|
@@ -313,7 +312,7 @@ export default {
|
313
|
312
|
let day = parseInt(time / (1000 * 60 * 60 * 24))
|
314
|
313
|
this.obj.push(Math.round(day / this.tableData[key].inspection_frequency))
|
315
|
314
|
}
|
316
|
|
-
|
|
315
|
+
|
317
|
316
|
this.chart.series[0].data = this.modesData.series
|
318
|
317
|
this.chart.xAxis.data = this.modesData.xAxis
|
319
|
318
|
this.getArrLength(this.chart.xAxis.data)
|
|
@@ -339,8 +338,8 @@ export default {
|
339
|
338
|
}
|
340
|
339
|
}
|
341
|
340
|
// console.log('arr',arr)
|
342
|
|
-
|
343
|
|
-
|
|
341
|
+
|
|
342
|
+
|
344
|
343
|
var hash = {};
|
345
|
344
|
var i = 0;
|
346
|
345
|
var res = [];
|
|
@@ -353,11 +352,11 @@ export default {
|
353
|
352
|
Sort:item.Sort,
|
354
|
353
|
})
|
355
|
354
|
});
|
356
|
|
-
|
|
355
|
+
|
357
|
356
|
res.map(item => {
|
358
|
357
|
item.Count = eval(item.Count.join('+'))
|
359
|
358
|
})
|
360
|
|
-
|
|
359
|
+
|
361
|
360
|
let arr1 = []
|
362
|
361
|
this.tableData.map(it => {
|
363
|
362
|
arr1.push(it.project_name)
|
|
@@ -378,7 +377,7 @@ export default {
|
378
|
377
|
let day = parseInt(time / (1000 * 60 * 60 * 24))
|
379
|
378
|
this.obj.push(Math.round(day / this.tableData[key].inspection_frequency))
|
380
|
379
|
}
|
381
|
|
-
|
|
380
|
+
|
382
|
381
|
this.chart.series[0].data = this.modesData.series
|
383
|
382
|
this.chart.xAxis.data = this.modesData.xAxis
|
384
|
383
|
this.getArrLength(this.chart.xAxis.data)
|
|
@@ -389,7 +388,7 @@ export default {
|
389
|
388
|
// }
|
390
|
389
|
// }
|
391
|
390
|
// }
|
392
|
|
-
|
|
391
|
+
|
393
|
392
|
// let time = new Date(this.listQuery.end_time) - new Date(this.listQuery.start_time)
|
394
|
393
|
// let day = parseInt(time / (1000 * 60 * 60 * 24))
|
395
|
394
|
// console.log("tabledata",this.tableData)
|
|
@@ -419,7 +418,7 @@ export default {
|
419
|
418
|
var PatientsInfo = response.data.data.PatientsInfo
|
420
|
419
|
// console.log("patientsInfo",PatientsInfo)
|
421
|
420
|
var arr = []
|
422
|
|
-
|
|
421
|
+
|
423
|
422
|
for(let i=0;i<this.tableData.length;i++){
|
424
|
423
|
for(let j=0;j<PatientsInfo.length;j++){
|
425
|
424
|
if(this.tableData[i].inspection_major == PatientsInfo[j].ProjectId){
|
|
@@ -428,8 +427,8 @@ export default {
|
428
|
427
|
}
|
429
|
428
|
}
|
430
|
429
|
// console.log('arr',arr)
|
431
|
|
-
|
432
|
|
-
|
|
430
|
+
|
|
431
|
+
|
433
|
432
|
var hash = {};
|
434
|
433
|
var i = 0;
|
435
|
434
|
var res = [];
|
|
@@ -442,11 +441,11 @@ export default {
|
442
|
441
|
Sort:item.Sort,
|
443
|
442
|
})
|
444
|
443
|
});
|
445
|
|
-
|
|
444
|
+
|
446
|
445
|
res.map(item => {
|
447
|
446
|
item.Count = eval(item.Count.join('+'))
|
448
|
447
|
})
|
449
|
|
-
|
|
448
|
+
|
450
|
449
|
let arr1 = []
|
451
|
450
|
this.tableData.map(it => {
|
452
|
451
|
arr1.push(it.project_name)
|
|
@@ -467,7 +466,7 @@ export default {
|
467
|
466
|
let day = parseInt(time / (1000 * 60 * 60 * 24))
|
468
|
467
|
this.obj.push(Math.round(day / this.tableData[key].inspection_frequency))
|
469
|
468
|
}
|
470
|
|
-
|
|
469
|
+
|
471
|
470
|
this.chart.series[0].data = this.modesData.series
|
472
|
471
|
this.chart.xAxis.data = this.modesData.xAxis
|
473
|
472
|
this.getArrLength(this.chart.xAxis.data)
|
|
@@ -552,7 +551,7 @@ export default {
|
552
|
551
|
|
553
|
552
|
//获取该机构下的所有患者
|
554
|
553
|
this.getCurrentOrgPatients()
|
555
|
|
-
|
|
554
|
+
|
556
|
555
|
}
|
557
|
556
|
};
|
558
|
557
|
</script>
|