Browse Source

Merge branch 'vue_statistics_branch' of http://git.shengws.com/csx/Vue_New into vue_statistics_branch

XMLWAN 4 years ago
parent
commit
3e48b96ae7

+ 8 - 0
src/xt_pages/qcd/indicatorControlAnalysis/bloodPressure.vue View File

69
         <el-container>
69
         <el-container>
70
           <div style="width:150px">
70
           <div style="width:150px">
71
             <div class="tableTitle">患者列表</div>
71
             <div class="tableTitle">患者列表</div>
72
+            <div class="tableTitle">当前患者: {{patient_name}}</div>
73
+
72
             <el-table :data="patientsData" ref="table" border style="width: 100%;" height="500" :row-style="{ color: '#303133' }"
74
             <el-table :data="patientsData" ref="table" border style="width: 100%;" height="500" :row-style="{ color: '#303133' }"
73
                       :header-cell-style="{backgroundColor: 'rgb(245, 247, 250)',color: '#606266'}"
75
                       :header-cell-style="{backgroundColor: 'rgb(245, 247, 250)',color: '#606266'}"
74
                       highlight-current-row
76
                       highlight-current-row
193
     data() {
195
     data() {
194
       return {
196
       return {
195
         percent:[],
197
         percent:[],
198
+        patient_name:'',
196
 
199
 
197
         pickerOptions: {
200
         pickerOptions: {
198
           disabledDate(time) {
201
           disabledDate(time) {
399
       handleChange(val){
402
       handleChange(val){
400
         this.query.patient_id = val.id
403
         this.query.patient_id = val.id
401
         this.query.page = 1
404
         this.query.page = 1
405
+        this.patient_name =val.name
406
+
402
         this.GetDialysisBloodPressureTableData(this.query)
407
         this.GetDialysisBloodPressureTableData(this.query)
403
         // this.GetDialysisBloodPressureChartData(this.query)
408
         // this.GetDialysisBloodPressureChartData(this.query)
404
       },
409
       },
516
       handleSelect(val) {
521
       handleSelect(val) {
517
         this.query.patient_id = val.id
522
         this.query.patient_id = val.id
518
         this.query.page = 1
523
         this.query.page = 1
524
+        this.patient_name =val.name
519
         this.GetDialysisBloodPressureChartData(this.query)
525
         this.GetDialysisBloodPressureChartData(this.query)
520
         this.GetDialysisBloodPressureTableData(this.query)
526
         this.GetDialysisBloodPressureTableData(this.query)
521
         for (let i = 0;i < this.patientsData.length; i++){
527
         for (let i = 0;i < this.patientsData.length; i++){
554
         GetDefalutPatient().then(response => {
560
         GetDefalutPatient().then(response => {
555
           if (response.data.state == 1) {
561
           if (response.data.state == 1) {
556
             var patient = response.data.data.patient
562
             var patient = response.data.data.patient
563
+            this.patient_name = patient.name
557
             for (let i = 0;i < this.patientsData.length; i++){
564
             for (let i = 0;i < this.patientsData.length; i++){
558
               if (this.patientsData[i].id == patient.id){
565
               if (this.patientsData[i].id == patient.id){
566
+
559
                 this.$refs.table.setCurrentRow(this.patientsData[i])
567
                 this.$refs.table.setCurrentRow(this.patientsData[i])
560
               }
568
               }
561
             }
569
             }

+ 4 - 0
src/xt_pages/qcd/indicatorControlAnalysis/bloodPressureDetails.vue View File

29
         <el-container>
29
         <el-container>
30
           <div style="width:150px">
30
           <div style="width:150px">
31
             <div class="tableTitle">患者列表</div>
31
             <div class="tableTitle">患者列表</div>
32
+            <div class="tableTitle">当前患者: {{patient_name}}</div>
33
+
32
             <el-table ref="table" :data="patientsData" border style="width: 100%;" height="500" :row-style="{ color: '#303133' }"
34
             <el-table ref="table" :data="patientsData" border style="width: 100%;" height="500" :row-style="{ color: '#303133' }"
33
                       :header-cell-style="{backgroundColor: 'rgb(245, 247, 250)',color: '#606266'}"
35
                       :header-cell-style="{backgroundColor: 'rgb(245, 247, 250)',color: '#606266'}"
34
                       highlight-current-row
36
                       highlight-current-row
177
       ],
179
       ],
178
       loading: false,
180
       loading: false,
179
       search_value: '',
181
       search_value: '',
182
+      patient_name:'',
180
       total: 0,
183
       total: 0,
181
       query: {
184
       query: {
182
         patient_id: '',
185
         patient_id: '',
313
     },
316
     },
314
     handleChange(val){
317
     handleChange(val){
315
       this.query.patient_id = val.id
318
       this.query.patient_id = val.id
319
+      this.patient_name = val.name
316
       this.query.page = 1
320
       this.query.page = 1
317
       this.GetDialysisBloodPressureTableData(this.query)
321
       this.GetDialysisBloodPressureTableData(this.query)
318
       this.GetDialysisPatientBloodPressureChartData(this.query)
322
       this.GetDialysisPatientBloodPressureChartData(this.query)

+ 2 - 2
src/xt_pages/qcd/indicatorControlAnalysis/components/office.vue View File

184
             left: 0
184
             left: 0
185
           },
185
           },
186
           xAxis: {
186
           xAxis: {
187
-            data: ['达标', '未达标']
187
+            data: []
188
           },
188
           },
189
           yAxis: {
189
           yAxis: {
190
             axisLabel: {
190
             axisLabel: {
197
             {
197
             {
198
               name: '',
198
               name: '',
199
               type: 'bar',
199
               type: 'bar',
200
-              data: ['78.57', '50'],
200
+              data: [],
201
               barWidth: 30,
201
               barWidth: 30,
202
               label: {
202
               label: {
203
                 normal: {
203
                 normal: {

+ 5 - 1
src/xt_pages/qcd/indicatorControlAnalysis/components/personal.vue View File

87
     </div>
87
     </div>
88
     <el-container>
88
     <el-container>
89
       <div style="width:150px">
89
       <div style="width:150px">
90
-        <div class="tableTitle">患者列表</div>
90
+
91
+        <div class="tableTitle">患者列表  <div class="tableTitle">当前患者:{{patient_name}}</div></div>
91
         <el-table ref="table" :data="patientsData" border style="width: 100%;" height="500" :row-style="{ color: '#303133' }"
92
         <el-table ref="table" :data="patientsData" border style="width: 100%;" height="500" :row-style="{ color: '#303133' }"
92
                   :header-cell-style="{backgroundColor: 'rgb(245, 247, 250)',color: '#606266'}"
93
                   :header-cell-style="{backgroundColor: 'rgb(245, 247, 250)',color: '#606266'}"
93
                   highlight-current-row
94
                   highlight-current-row
150
 
151
 
151
           }
152
           }
152
         },
153
         },
154
+        patient_name:'',
153
         item_name: '',
155
         item_name: '',
154
         search_value: '',
156
         search_value: '',
155
         query: {
157
         query: {
379
       handleChange(val){
381
       handleChange(val){
380
         this.query.patient_id = val.id
382
         this.query.patient_id = val.id
381
         this.query.page = 1
383
         this.query.page = 1
384
+        this.patient_name = val.name
382
         this.GetPatientInspectionIndexBarChart(this.query)
385
         this.GetPatientInspectionIndexBarChart(this.query)
383
         this.GetPatientInspectionIndexChart(this.query)
386
         this.GetPatientInspectionIndexChart(this.query)
384
       },
387
       },
385
       handleSelect(val) {
388
       handleSelect(val) {
386
         this.query.patient_id = val.id
389
         this.query.patient_id = val.id
387
         this.query.page = 1
390
         this.query.page = 1
391
+        this.patient_name = val.name
388
         this.GetPatientInspectionIndexBarChart(this.query)
392
         this.GetPatientInspectionIndexBarChart(this.query)
389
         this.GetPatientInspectionIndexChart(this.query)
393
         this.GetPatientInspectionIndexChart(this.query)
390
 
394
 

+ 6 - 0
src/xt_pages/qcd/indicatorControlAnalysis/monitor.vue View File

69
         <el-container>
69
         <el-container>
70
           <div style="width:150px">
70
           <div style="width:150px">
71
             <div class="tableTitle">患者列表</div>
71
             <div class="tableTitle">患者列表</div>
72
+            <div class="tableTitle">当前患者: {{patient_name}}</div>
73
+
72
             <el-table ref="table" :data="patientsData" border style="width: 100%;" height="500" :row-style="{ color: '#303133' }"
74
             <el-table ref="table" :data="patientsData" border style="width: 100%;" height="500" :row-style="{ color: '#303133' }"
73
                       :header-cell-style="{backgroundColor: 'rgb(245, 247, 250)',color: '#606266'}"
75
                       :header-cell-style="{backgroundColor: 'rgb(245, 247, 250)',color: '#606266'}"
74
                       highlight-current-row
76
                       highlight-current-row
228
             return time.getTime() > Date.now() || time.getTime() < threeMonths;;
230
             return time.getTime() > Date.now() || time.getTime() < threeMonths;;
229
           }
231
           }
230
         },
232
         },
233
+        patient_name:'',
231
         patientsData:[],
234
         patientsData:[],
232
         loading: false,
235
         loading: false,
233
         search_value: '',
236
         search_value: '',
429
       handleChange(val){
432
       handleChange(val){
430
         this.query.patient_id = val.id
433
         this.query.patient_id = val.id
431
         this.query.page = 1
434
         this.query.page = 1
435
+        this.patient_name = val.name
432
         this.GetDialysisWatchTableData(this.query)
436
         this.GetDialysisWatchTableData(this.query)
433
         this.GetDialysisWatchChartData(this.query)
437
         this.GetDialysisWatchChartData(this.query)
434
       },
438
       },
545
       handleSelect(val) {
549
       handleSelect(val) {
546
         this.query.patient_id = val.id
550
         this.query.patient_id = val.id
547
         this.query.page = 1
551
         this.query.page = 1
552
+        this.patient_name = val.name
548
         this.GetDialysisWatchTableData(this.query)
553
         this.GetDialysisWatchTableData(this.query)
549
         this.GetDialysisWatchChartData(this.query)
554
         this.GetDialysisWatchChartData(this.query)
550
         for (let i = 0;i < this.patientsData.length; i++){
555
         for (let i = 0;i < this.patientsData.length; i++){
585
             var patient = response.data.data.patient
590
             var patient = response.data.data.patient
586
             for (let i = 0;i < this.patientsData.length; i++){
591
             for (let i = 0;i < this.patientsData.length; i++){
587
               if (this.patientsData[i].id == patient.id){
592
               if (this.patientsData[i].id == patient.id){
593
+                this.patient_name = this.patientsData[i].name
588
                 this.$refs.table.setCurrentRow(this.patientsData[i])
594
                 this.$refs.table.setCurrentRow(this.patientsData[i])
589
               }
595
               }
590
             }
596
             }

+ 5 - 1
src/xt_pages/qcd/indicatorControlAnalysis/patientInspectionDetail.vue View File

53
       <el-container>
53
       <el-container>
54
         <div style="width:150px">
54
         <div style="width:150px">
55
           <div class="tableTitle">患者列表</div>
55
           <div class="tableTitle">患者列表</div>
56
+          <div class="tableTitle">当前患者: {{patient_name}}</div>
57
+
56
           <el-table ref="table" :data="patientsData" border style="width: 100%;" height="500" :row-style="{ color: '#303133' }"
58
           <el-table ref="table" :data="patientsData" border style="width: 100%;" height="500" :row-style="{ color: '#303133' }"
57
                     :header-cell-style="{backgroundColor: 'rgb(245, 247, 250)',color: '#606266'}"
59
                     :header-cell-style="{backgroundColor: 'rgb(245, 247, 250)',color: '#606266'}"
58
                     highlight-current-row
60
                     highlight-current-row
107
     data() {
109
     data() {
108
       return {
110
       return {
109
         custom_chart_data_color: [],
111
         custom_chart_data_color: [],
112
+        patient_name:"",
110
         options2: {
113
         options2: {
111
           title: {
114
           title: {
112
             text: 'ECharts 入门示例'
115
             text: 'ECharts 入门示例'
317
             var patients = response.data.data.patients
320
             var patients = response.data.data.patients
318
             this.patientsData = patients
321
             this.patientsData = patients
319
 
322
 
320
-
321
             for (let i = 0;i < this.patientsData.length; i++){
323
             for (let i = 0;i < this.patientsData.length; i++){
322
               if (this.patientsData[i].id == this.query.patient_id){
324
               if (this.patientsData[i].id == this.query.patient_id){
325
+                this.patient_name = this.patientsData[i].name
323
                 this.$refs.table.setCurrentRow(this.patientsData[i])
326
                 this.$refs.table.setCurrentRow(this.patientsData[i])
324
               }
327
               }
325
             }
328
             }
329
       }, handleChange(val) {
332
       }, handleChange(val) {
330
         this.query.patient_id = val.id
333
         this.query.patient_id = val.id
331
         this.query.page = 1
334
         this.query.page = 1
335
+        this.patient_name = val.name
332
         this.GetPatientInspectionIndexChart(this.query)
336
         this.GetPatientInspectionIndexChart(this.query)
333
       }, changeTime(val) {
337
       }, changeTime(val) {
334
         var time = this.getTimestamp(val) - this.getTimestamp(this.query.end_time)
338
         var time = this.getTimestamp(val) - this.getTimestamp(this.query.end_time)

+ 8 - 0
src/xt_pages/qcd/indicatorControlAnalysis/process.vue View File

69
         </div>
69
         </div>
70
         <el-container>
70
         <el-container>
71
           <div style="width:150px">
71
           <div style="width:150px">
72
+
72
             <div class="tableTitle">患者列表</div>
73
             <div class="tableTitle">患者列表</div>
74
+            <div class="tableTitle">当前患者: {{patient_name}}</div>
75
+
73
             <el-table ref="table" :data="patientsData" border style="width: 100%;" height="500"
76
             <el-table ref="table" :data="patientsData" border style="width: 100%;" height="500"
74
                       :row-style="{ color: '#303133' }"
77
                       :row-style="{ color: '#303133' }"
75
                       :header-cell-style="{backgroundColor: 'rgb(245, 247, 250)',color: '#606266'}"
78
                       :header-cell-style="{backgroundColor: 'rgb(245, 247, 250)',color: '#606266'}"
310
 
313
 
311
           }
314
           }
312
         },
315
         },
316
+        patient_name:'',
313
         percent:[],
317
         percent:[],
314
         patientsData: [],
318
         patientsData: [],
315
         tableData: [],
319
         tableData: [],
532
       handleChange(val) {
536
       handleChange(val) {
533
         this.query.patient_id = val.id
537
         this.query.patient_id = val.id
534
         this.query.page = 1
538
         this.query.page = 1
539
+        this.patient_name = val.name
535
         this.GetDialysisProcessIndexTableData(this.query)
540
         this.GetDialysisProcessIndexTableData(this.query)
536
         this.GetDialysisProcessIndexChartData(this.query)
541
         this.GetDialysisProcessIndexChartData(this.query)
537
       },
542
       },
664
       handleSelect(val) {
669
       handleSelect(val) {
665
         this.query.patient_id = val.id
670
         this.query.patient_id = val.id
666
         this.query.page = 1
671
         this.query.page = 1
672
+        this.patient_name = val.name
673
+
667
         this.GetDialysisProcessIndexChartData(this.query)
674
         this.GetDialysisProcessIndexChartData(this.query)
668
         this.GetDialysisProcessIndexTableData(this.query)
675
         this.GetDialysisProcessIndexTableData(this.query)
669
 
676
 
706
             var patient = response.data.data.patient
713
             var patient = response.data.data.patient
707
             for (let i = 0;i < this.patientsData.length; i++){
714
             for (let i = 0;i < this.patientsData.length; i++){
708
               if (this.patientsData[i].id == patient.id){
715
               if (this.patientsData[i].id == patient.id){
716
+                this.patient_name = this.patientsData[i].name
709
                 this.$refs.table.setCurrentRow(this.patientsData[i])
717
                 this.$refs.table.setCurrentRow(this.patientsData[i])
710
               }
718
               }
711
             }
719
             }

+ 10 - 1
src/xt_pages/qcd/indicatorControlAnalysis/weight.vue View File

68
         </div>
68
         </div>
69
         <el-container>
69
         <el-container>
70
           <div style="width:150px">
70
           <div style="width:150px">
71
+
71
             <div class="tableTitle">患者列表</div>
72
             <div class="tableTitle">患者列表</div>
73
+            <div class="tableTitle">当前患者: {{patient_name}}</div>
74
+
72
             <el-table ref="table" :data="patientsData" border style="width: 100%;" height="500" :row-style="{ color: '#303133' }"
75
             <el-table ref="table" :data="patientsData" border style="width: 100%;" height="500" :row-style="{ color: '#303133' }"
73
                       :header-cell-style="{backgroundColor: 'rgb(245, 247, 250)',color: '#606266'}"
76
                       :header-cell-style="{backgroundColor: 'rgb(245, 247, 250)',color: '#606266'}"
74
                       highlight-current-row
77
                       highlight-current-row
214
         loading: false,
217
         loading: false,
215
         search_value: '',
218
         search_value: '',
216
         total: 0,
219
         total: 0,
220
+        patient_name:'',
217
         query: {
221
         query: {
222
+
218
           patient_id: '',
223
           patient_id: '',
219
           statistics_type: 1,
224
           statistics_type: 1,
220
           start_time: '',
225
           start_time: '',
411
         this.query.page = 1
416
         this.query.page = 1
412
         this.GetDialysisWeightTableData(this.query)
417
         this.GetDialysisWeightTableData(this.query)
413
         this.GetDialysisWeightChartData(this.query)
418
         this.GetDialysisWeightChartData(this.query)
419
+        this.patient_name = val.name
414
       },
420
       },
415
       handleSizeChange(limit) {
421
       handleSizeChange(limit) {
416
         this.query.limit = limit;
422
         this.query.limit = limit;
531
         this.GetDialysisWeightTableData(this.query)
537
         this.GetDialysisWeightTableData(this.query)
532
         for (let i = 0;i < this.patientsData.length; i++){
538
         for (let i = 0;i < this.patientsData.length; i++){
533
           if (this.patientsData[i].id == val.id){
539
           if (this.patientsData[i].id == val.id){
540
+            this.patient_name = this.patientsData[i].name
534
             this.$refs.table.setCurrentRow(this.patientsData[i])
541
             this.$refs.table.setCurrentRow(this.patientsData[i])
535
           }
542
           }
536
         }
543
         }
558
           if(response.data.state == 1){
565
           if(response.data.state == 1){
559
             var patients = response.data.data.patients
566
             var patients = response.data.data.patients
560
             this.patientsData = patients
567
             this.patientsData = patients
561
-
568
+            // this.GetDefaultPatient()
562
           }
569
           }
563
         })
570
         })
564
       },GetDefaultPatient() {
571
       },GetDefaultPatient() {
565
         GetDefalutPatient().then(response => {
572
         GetDefalutPatient().then(response => {
566
           if (response.data.state == 1) {
573
           if (response.data.state == 1) {
567
             var patient = response.data.data.patient
574
             var patient = response.data.data.patient
575
+            this.patient_name = this.patientsData[i].name
576
+
568
           }
577
           }
569
         })
578
         })
570
       }
579
       }

+ 5 - 0
src/xt_pages/qcd/indicatorControlAnalysis/weightDetails.vue View File

30
         <el-container>
30
         <el-container>
31
           <div style="width:150px">
31
           <div style="width:150px">
32
             <div class="tableTitle">患者列表</div>
32
             <div class="tableTitle">患者列表</div>
33
+            <div class="tableTitle">当前患者: {{patient_name}}</div>
33
             <el-table ref="table" :data="patientsData" border style="width: 100%;" height="500" :row-style="{ color: '#303133' }"
34
             <el-table ref="table" :data="patientsData" border style="width: 100%;" height="500" :row-style="{ color: '#303133' }"
34
                       :header-cell-style="{backgroundColor: 'rgb(245, 247, 250)',color: '#606266'}"
35
                       :header-cell-style="{backgroundColor: 'rgb(245, 247, 250)',color: '#606266'}"
35
                       highlight-current-row
36
                       highlight-current-row
201
       loading: false,
202
       loading: false,
202
       search_value: '',
203
       search_value: '',
203
       total: 0,
204
       total: 0,
205
+      patient_name:'',
204
       query: {
206
       query: {
205
         patient_id: '',
207
         patient_id: '',
206
         statistics_type: 1,
208
         statistics_type: 1,
299
 
301
 
300
     },
302
     },
301
     handleChange(val){
303
     handleChange(val){
304
+      this.patient_name = val.name
302
       this.query.patient_id = val.id
305
       this.query.patient_id = val.id
303
       this.query.page = 1
306
       this.query.page = 1
304
       this.GetDialysisWeightTableData(this.query)
307
       this.GetDialysisWeightTableData(this.query)
387
     handleSelect(val) {
390
     handleSelect(val) {
388
       this.query.patient_id = val.id
391
       this.query.patient_id = val.id
389
       this.query.page = 1
392
       this.query.page = 1
393
+      this.patient_name = val.name
390
       this.GetDialysisPatientWeightChartData(this.query)
394
       this.GetDialysisPatientWeightChartData(this.query)
391
       this.GetDialysisWeightTableData(this.query)
395
       this.GetDialysisWeightTableData(this.query)
392
       for (let i = 0;i < this.patientsData.length; i++){
396
       for (let i = 0;i < this.patientsData.length; i++){
417
           this.patientsData = patients
421
           this.patientsData = patients
418
           for (let i = 0;i < this.patientsData.length; i++){
422
           for (let i = 0;i < this.patientsData.length; i++){
419
             if (this.patientsData[i].id == this.query.patient_id){
423
             if (this.patientsData[i].id == this.query.patient_id){
424
+              this.patient_name = this.patientsData[i].name
420
               this.$refs.table.setCurrentRow(this.patientsData[i])
425
               this.$refs.table.setCurrentRow(this.patientsData[i])
421
             }
426
             }
422
           }
427
           }

+ 23 - 2
src/xt_pages/qcd/workAnalysis/doctor.vue View File

145
       loading: false,
145
       loading: false,
146
       total: '',
146
       total: '',
147
       query: {
147
       query: {
148
-        admin_user_id: "",
148
+        admin_user_id: 0,
149
         statistics_type: 1,
149
         statistics_type: 1,
150
         start_time: "",
150
         start_time: "",
151
         end_time: "",
151
         end_time: "",
154
       },
154
       },
155
 
155
 
156
 
156
 
157
-      doctor_options:[],
157
+      doctor_options:[
158
+        {id:0,user_name:"全部",admin_user_id:0}
159
+
160
+      ],
158
       project_options:[
161
       project_options:[
159
         {value:1, name:"治疗"},
162
         {value:1, name:"治疗"},
160
         {value:2, name:"病程记录"},
163
         {value:2, name:"病程记录"},
278
       this.query.admin_user_id = val
281
       this.query.admin_user_id = val
279
       this.query.page = 1
282
       this.query.page = 1
280
       this.GetDoctorWorkloadTableData(this.query)
283
       this.GetDoctorWorkloadTableData(this.query)
284
+      this.GetDoctorWorkloadChartData(this.query)
281
 
285
 
282
     },
286
     },
283
     GetAllDoctor(){
287
     GetAllDoctor(){
319
           var resp = rs.data
323
           var resp = rs.data
320
           if (resp.state == 1) {
324
           if (resp.state == 1) {
321
             this.loading = false
325
             this.loading = false
326
+            let total_cure = 0
327
+            let total_rescue = 0
328
+            let total_course = 0
329
+
322
             for (let i = 0; i < resp.data.data.length; i++) {
330
             for (let i = 0; i < resp.data.data.length; i++) {
331
+              total_cure = total_cure + resp.data.data[i].p_count
332
+              total_rescue = total_rescue + resp.data.data[i].rescue_count
333
+              total_course = total_course + resp.data.data[i].course_count
323
               this.tableData.push(resp.data.data[i])
334
               this.tableData.push(resp.data.data[i])
324
             }
335
             }
336
+
337
+            this.tableData.push( {
338
+              user_name:"合计",
339
+              p_count:total_cure,
340
+              course_count:total_course,
341
+              rescue_count:total_rescue
342
+            })
343
+
325
           } else {
344
           } else {
326
             this.loading = false
345
             this.loading = false
327
           }
346
           }
351
 
370
 
352
       this.bar.xAxis.data = []
371
       this.bar.xAxis.data = []
353
       this.bar.series[0].data = []
372
       this.bar.series[0].data = []
373
+      this.percent = []
374
+
354
       GetDoctorWorkloadChartData(params)
375
       GetDoctorWorkloadChartData(params)
355
         .then(rs => {
376
         .then(rs => {
356
           var resp = rs.data
377
           var resp = rs.data

+ 18 - 4
src/xt_pages/qcd/workAnalysis/nurse.vue View File

180
         loading: false,
180
         loading: false,
181
         total: '',
181
         total: '',
182
         query: {
182
         query: {
183
-          admin_user_id: "",
183
+          admin_user_id: 0,
184
           statistics_type: 1,
184
           statistics_type: 1,
185
           start_time: "",
185
           start_time: "",
186
           end_time: "",
186
           end_time: "",
187
           limit:20,
187
           limit:20,
188
           page:1,
188
           page:1,
189
         },
189
         },
190
-
191
-
192
-        nurse_options:[],
190
+        nurse_options:[
191
+          {id:0,user_name:"全部",admin_user_id:0}
192
+        ],
193
         project_options:[
193
         project_options:[
194
           {value:1, name:"治疗"},
194
           {value:1, name:"治疗"},
195
           {value:2, name:"穿刺"},
195
           {value:2, name:"穿刺"},
312
       changeNurse(val){
312
       changeNurse(val){
313
         this.query.admin_user_id = val
313
         this.query.admin_user_id = val
314
         this.query.page = 1
314
         this.query.page = 1
315
+        this.GetNurseWorkloadChartData(this.query)
315
         this.GetNurseWorkloadTableData(this.query)
316
         this.GetNurseWorkloadTableData(this.query)
316
 
317
 
317
       },
318
       },
353
           .then(rs => {
354
           .then(rs => {
354
             var resp = rs.data
355
             var resp = rs.data
355
             if (resp.state == 1) {
356
             if (resp.state == 1) {
357
+              let total_cure = 0
358
+              let total_puncture = 0
359
+              let total_mission = 0
356
               this.loading = false
360
               this.loading = false
357
               for (let i = 0; i < resp.data.data.length; i++) {
361
               for (let i = 0; i < resp.data.data.length; i++) {
362
+                total_cure = total_cure + resp.data.data[i].cure_count
363
+                total_puncture = total_puncture + resp.data.data[i].puncture_count
364
+                total_mission = total_mission + resp.data.data[i].mission_count
358
                 this.tableData.push(resp.data.data[i])
365
                 this.tableData.push(resp.data.data[i])
359
               }
366
               }
367
+              this.tableData.push( {
368
+                user_name:"合计",
369
+                cure_count:total_cure,
370
+                puncture_count:total_puncture,
371
+                mission_count:total_mission
372
+              })
360
             } else {
373
             } else {
361
               this.loading = false
374
               this.loading = false
362
             }
375
             }
386
 
399
 
387
         this.bar.xAxis.data = []
400
         this.bar.xAxis.data = []
388
         this.bar.series[0].data = []
401
         this.bar.series[0].data = []
402
+        this.percent = []
389
         GetNurseWorkloadChartData(params)
403
         GetNurseWorkloadChartData(params)
390
           .then(rs => {
404
           .then(rs => {
391
             var resp = rs.data
405
             var resp = rs.data