Browse Source

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

csx 4 years ago
parent
commit
e48b58a19b

+ 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: {

+ 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