Przeglądaj źródła

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

See999 4 lat temu
rodzic
commit
ff53431f2c
1 zmienionych plików z 5 dodań i 23 usunięć
  1. 5 23
      src/xt_pages/qcd/workAnalysis/nurse.vue

+ 5 - 23
src/xt_pages/qcd/workAnalysis/nurse.vue Wyświetl plik

@@ -127,13 +127,6 @@
127 127
               </template>
128 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 131
             <el-table-column label="治疗" align="center">
139 132
               <template slot-scope="scope">
@@ -151,7 +144,7 @@
151 144
 
152 145
             <el-table-column label="合计" align="center">
153 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 148
               </template>
156 149
             </el-table-column>
157 150
           </el-table>
@@ -200,8 +193,7 @@
200 193
         project_options:[
201 194
           {value:1, name:"治疗"},
202 195
           {value:2, name:"穿刺"},
203
-          {value:3, name:"换药"},
204
-          {value:4, name:"宣教/小结"},
196
+          {value:3, name:"宣教/小结"},
205 197
         ],
206 198
         crumbs: [
207 199
           { path: false, name: "质控管理" },
@@ -401,25 +393,15 @@
401 393
 
402 394
               for (let i = 0;  i < resp.data.data.length;i++){
403 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 397
                   this.bar.series[0].data.push(resp.data.data[i].puncture_count)
407 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 400
                   this.bar.series[0].data.push(resp.data.data[i].cure_count)
417 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 403
                   this.bar.series[0].data.push(resp.data.data[i].mission_count)
421 404
                   this.percent.push(resp.data.data[i].mission_ratio)
422
-
423 405
                 }
424 406
               }
425 407
               this.getArrLength(this.bar.xAxis.data)