瀏覽代碼

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

csx 4 年之前
父節點
當前提交
e48b58a19b

+ 2 - 2
src/xt_pages/qcd/indicatorControlAnalysis/components/office.vue 查看文件

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

+ 23 - 2
src/xt_pages/qcd/workAnalysis/doctor.vue 查看文件

@@ -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 查看文件

@@ -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