浏览代码

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

csx 4 年前
父节点
当前提交
1530d03bc8
共有 1 个文件被更改,包括 5 次插入23 次删除
  1. 5 23
      src/xt_pages/qcd/workAnalysis/nurse.vue

+ 5 - 23
src/xt_pages/qcd/workAnalysis/nurse.vue 查看文件

@@ -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: "质控管理" },
@@ -383,25 +375,15 @@
383 375
 
384 376
               for (let i = 0;  i < resp.data.data.length;i++){
385 377
                 this.bar.xAxis.data.push(resp.data.data[i].user_name)
386
-                if(this.query.statistics_type == 1){
387
-
378
+                if(this.query.statistics_type == 2){
388 379
                   this.bar.series[0].data.push(resp.data.data[i].puncture_count)
389 380
                   this.percent.push(resp.data.data[i].puncture_ratio)
390
-
391
-                }else if(this.query.statistics_type == 2){
392
-
393
-                  this.bar.series[0].data.push(resp.data.data[i].change_medicine_count)
394
-                  this.percent.push(resp.data.data[i].change_medicine_ratio)
395
-
396
-
397
-                }else if(this.query.statistics_type == 3){
381
+                }else if(this.query.statistics_type == 1){
398 382
                   this.bar.series[0].data.push(resp.data.data[i].cure_count)
399 383
                   this.percent.push(resp.data.data[i].cure_ratio)
400
-
401
-                }else if(this.query.statistics_type == 4){
384
+                }else if(this.query.statistics_type == 3){
402 385
                   this.bar.series[0].data.push(resp.data.data[i].mission_count)
403 386
                   this.percent.push(resp.data.data[i].mission_ratio)
404
-
405 387
                 }
406 388
               }
407 389