Bladeren bron

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

See999 5 jaren geleden
bovenliggende
commit
ff53431f2c
1 gewijzigde bestanden met toevoegingen van 5 en 23 verwijderingen
  1. 5 23
      src/xt_pages/qcd/workAnalysis/nurse.vue

+ 5 - 23
src/xt_pages/qcd/workAnalysis/nurse.vue Bestand weergeven

127
               </template>
127
               </template>
128
             </el-table-column>
128
             </el-table-column>
129
 
129
 
130
-            <el-table-column label="换药" align="center">
131
-              <template slot-scope="scope">
132
-                {{scope.row.change_medicine_count?scope.row.change_medicine_count:''}}
133
-
134
-                <!--{{// scope.row.patient.lapseto == 1 ? '留治':'转出'}}-->
135
-              </template>
136
-            </el-table-column>
137
 
130
 
138
             <el-table-column label="治疗" align="center">
131
             <el-table-column label="治疗" align="center">
139
               <template slot-scope="scope">
132
               <template slot-scope="scope">
151
 
144
 
152
             <el-table-column label="合计" align="center">
145
             <el-table-column label="合计" align="center">
153
               <template slot-scope="scope">
146
               <template slot-scope="scope">
154
-                {{scope.row.puncture_count + scope.row.change_medicine_count + scope.row.cure_count + scope.row.mission_count ?scope.row.puncture_count + scope.row.change_medicine_count + scope.row.cure_count + scope.row.mission_count:''}}
147
+                {{scope.row.puncture_count + scope.row.cure_count + scope.row.mission_count ?scope.row.puncture_count  + scope.row.cure_count + scope.row.mission_count:''}}
155
               </template>
148
               </template>
156
             </el-table-column>
149
             </el-table-column>
157
           </el-table>
150
           </el-table>
200
         project_options:[
193
         project_options:[
201
           {value:1, name:"治疗"},
194
           {value:1, name:"治疗"},
202
           {value:2, name:"穿刺"},
195
           {value:2, name:"穿刺"},
203
-          {value:3, name:"换药"},
204
-          {value:4, name:"宣教/小结"},
196
+          {value:3, name:"宣教/小结"},
205
         ],
197
         ],
206
         crumbs: [
198
         crumbs: [
207
           { path: false, name: "质控管理" },
199
           { path: false, name: "质控管理" },
401
 
393
 
402
               for (let i = 0;  i < resp.data.data.length;i++){
394
               for (let i = 0;  i < resp.data.data.length;i++){
403
                 this.bar.xAxis.data.push(resp.data.data[i].user_name)
395
                 this.bar.xAxis.data.push(resp.data.data[i].user_name)
404
-                if(this.query.statistics_type == 1){
405
-
396
+                if(this.query.statistics_type == 2){
406
                   this.bar.series[0].data.push(resp.data.data[i].puncture_count)
397
                   this.bar.series[0].data.push(resp.data.data[i].puncture_count)
407
                   this.percent.push(resp.data.data[i].puncture_ratio)
398
                   this.percent.push(resp.data.data[i].puncture_ratio)
408
-
409
-                }else if(this.query.statistics_type == 2){
410
-
411
-                  this.bar.series[0].data.push(resp.data.data[i].change_medicine_count)
412
-                  this.percent.push(resp.data.data[i].change_medicine_ratio)
413
-
414
-
415
-                }else if(this.query.statistics_type == 3){
399
+                }else if(this.query.statistics_type == 1){
416
                   this.bar.series[0].data.push(resp.data.data[i].cure_count)
400
                   this.bar.series[0].data.push(resp.data.data[i].cure_count)
417
                   this.percent.push(resp.data.data[i].cure_ratio)
401
                   this.percent.push(resp.data.data[i].cure_ratio)
418
-
419
-                }else if(this.query.statistics_type == 4){
402
+                }else if(this.query.statistics_type == 3){
420
                   this.bar.series[0].data.push(resp.data.data[i].mission_count)
403
                   this.bar.series[0].data.push(resp.data.data[i].mission_count)
421
                   this.percent.push(resp.data.data[i].mission_ratio)
404
                   this.percent.push(resp.data.data[i].mission_ratio)
422
-
423
                 }
405
                 }
424
               }
406
               }
425
               this.getArrLength(this.bar.xAxis.data)
407
               this.getArrLength(this.bar.xAxis.data)