Parcourir la source

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

XMLWAN il y a 4 ans
Parent
révision
3e48b96ae7

+ 8 - 0
src/xt_pages/qcd/indicatorControlAnalysis/bloodPressure.vue Voir le fichier

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

+ 4 - 0
src/xt_pages/qcd/indicatorControlAnalysis/bloodPressureDetails.vue Voir le fichier

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

+ 2 - 2
src/xt_pages/qcd/indicatorControlAnalysis/components/office.vue Voir le fichier

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

+ 5 - 1
src/xt_pages/qcd/indicatorControlAnalysis/components/personal.vue Voir le fichier

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

+ 6 - 0
src/xt_pages/qcd/indicatorControlAnalysis/monitor.vue Voir le fichier

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

+ 5 - 1
src/xt_pages/qcd/indicatorControlAnalysis/patientInspectionDetail.vue Voir le fichier

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

+ 8 - 0
src/xt_pages/qcd/indicatorControlAnalysis/process.vue Voir le fichier

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

+ 10 - 1
src/xt_pages/qcd/indicatorControlAnalysis/weight.vue Voir le fichier

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

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

+ 23 - 2
src/xt_pages/qcd/workAnalysis/doctor.vue Voir le fichier

@@ -145,7 +145,7 @@ export default {
145 145
       loading: false,
146 146
       total: '',
147 147
       query: {
148
-        admin_user_id: "",
148
+        admin_user_id: 0,
149 149
         statistics_type: 1,
150 150
         start_time: "",
151 151
         end_time: "",
@@ -154,7 +154,10 @@ export default {
154 154
       },
155 155
 
156 156
 
157
-      doctor_options:[],
157
+      doctor_options:[
158
+        {id:0,user_name:"全部",admin_user_id:0}
159
+
160
+      ],
158 161
       project_options:[
159 162
         {value:1, name:"治疗"},
160 163
         {value:2, name:"病程记录"},
@@ -278,6 +281,7 @@ export default {
278 281
       this.query.admin_user_id = val
279 282
       this.query.page = 1
280 283
       this.GetDoctorWorkloadTableData(this.query)
284
+      this.GetDoctorWorkloadChartData(this.query)
281 285
 
282 286
     },
283 287
     GetAllDoctor(){
@@ -319,9 +323,24 @@ export default {
319 323
           var resp = rs.data
320 324
           if (resp.state == 1) {
321 325
             this.loading = false
326
+            let total_cure = 0
327
+            let total_rescue = 0
328
+            let total_course = 0
329
+
322 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 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 344
           } else {
326 345
             this.loading = false
327 346
           }
@@ -351,6 +370,8 @@ export default {
351 370
 
352 371
       this.bar.xAxis.data = []
353 372
       this.bar.series[0].data = []
373
+      this.percent = []
374
+
354 375
       GetDoctorWorkloadChartData(params)
355 376
         .then(rs => {
356 377
           var resp = rs.data

+ 18 - 4
src/xt_pages/qcd/workAnalysis/nurse.vue Voir le fichier

@@ -180,16 +180,16 @@
180 180
         loading: false,
181 181
         total: '',
182 182
         query: {
183
-          admin_user_id: "",
183
+          admin_user_id: 0,
184 184
           statistics_type: 1,
185 185
           start_time: "",
186 186
           end_time: "",
187 187
           limit:20,
188 188
           page:1,
189 189
         },
190
-
191
-
192
-        nurse_options:[],
190
+        nurse_options:[
191
+          {id:0,user_name:"全部",admin_user_id:0}
192
+        ],
193 193
         project_options:[
194 194
           {value:1, name:"治疗"},
195 195
           {value:2, name:"穿刺"},
@@ -312,6 +312,7 @@
312 312
       changeNurse(val){
313 313
         this.query.admin_user_id = val
314 314
         this.query.page = 1
315
+        this.GetNurseWorkloadChartData(this.query)
315 316
         this.GetNurseWorkloadTableData(this.query)
316 317
 
317 318
       },
@@ -353,10 +354,22 @@
353 354
           .then(rs => {
354 355
             var resp = rs.data
355 356
             if (resp.state == 1) {
357
+              let total_cure = 0
358
+              let total_puncture = 0
359
+              let total_mission = 0
356 360
               this.loading = false
357 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 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 373
             } else {
361 374
               this.loading = false
362 375
             }
@@ -386,6 +399,7 @@
386 399
 
387 400
         this.bar.xAxis.data = []
388 401
         this.bar.series[0].data = []
402
+        this.percent = []
389 403
         GetNurseWorkloadChartData(params)
390 404
           .then(rs => {
391 405
             var resp = rs.data