Browse Source

统计配置开发

XMLWAN 4 years ago
parent
commit
6cf192e243

+ 14 - 1
src/xt_pages/dialysis/dialysisPrintOrder.vue View File

@@ -170,6 +170,7 @@
170 170
           >打印</el-button
171 171
         >
172 172
       </template>
173
+      
173 174
     </div>
174 175
     <div class="app-container ">
175 176
       <!--<div class="order-print-btn"-->
@@ -259,6 +260,10 @@
259 260
         v-bind:childResponse="childResponse"
260 261
         v-if="org_template_info.template_id == 15"
261 262
       ></DialysisPrintOrderFifteen>
263
+      <DialysisPrintOrderSixteen
264
+        v-bind:childResponse="childResponse"
265
+        v-if="org_template_info.template_id == 16"
266
+      ></DialysisPrintOrderSixteen>
262 267
     </div>
263 268
   </div>
264 269
 </template>
@@ -284,7 +289,7 @@ import DialysisPrintOrderEleven from "./template/DialysisPrintOrderEleven";
284 289
 import DialysisPrintOrderTwelve from "./template/DialysisPrintOrderTwelve";
285 290
 import DialysisPrintOrderThirteen from "./template/DialysisPrintOrderThirteen";
286 291
 import DialysisPrintOrderFifteen from "./template/DialysisPrintOrderFifteen";
287
-
292
+import DialysisPrintOrderSixteen from "./template/DialysisPrintOrderSixteen";
288 293
 export default {
289 294
   name: "dialysisPrintOrder",
290 295
   components: {
@@ -302,6 +307,7 @@ export default {
302 307
     DialysisPrintOrderSeven,
303 308
     DialysisPrintOrderEight,
304 309
     DialysisPrintOrderNine,
310
+    DialysisPrintOrderSixteen,
305 311
     LabelBox,
306 312
     BreadCrumb
307 313
   },
@@ -531,6 +537,13 @@ export default {
531 537
           style: style,
532 538
           scanStyles: false
533 539
         });
540
+      }else if (this.org_template_info.template_id == 16){
541
+        printJS({
542
+          printable: "dialysis-print-box",
543
+          type: "html",
544
+          style: style,
545
+          scanStyles: false
546
+        });
534 547
       }
535 548
     },
536 549
     printThisOnePage() {

+ 30 - 30
src/xt_pages/qcd/basicInformationAnalysis.vue View File

@@ -164,8 +164,8 @@
164 164
                       <el-progress :percentage="(item.count/InfectiousTotal*100).toFixed(1)"></el-progress>
165 165
                   </span>
166 166
                     <span v-if="item.disease_id == 1">
167
-                      <p>其他:{{item.count + otherTotal}}人({{((item.count+otherTotal)/InfectiousTotal*100).toFixed(1)}}%)</p>
168
-                      <el-progress :percentage="((item.count+otherTotal)/InfectiousTotal*100).toFixed(1)"></el-progress>
167
+                      <p>其他:{{item.count}}人({{((item.count)/InfectiousTotal*100).toFixed(1)}}%)</p>
168
+                      <el-progress :percentage="((item.count)/InfectiousTotal*100).toFixed(1)"></el-progress>
169 169
                   </span>
170 170
                 </div>
171 171
               </div>
@@ -477,7 +477,6 @@ export default {
477 477
       getDialysisModeType(startDate,endDate).then(response=>{
478 478
          if(response.data.state == 1){
479 479
           var modetype =  response.data.data.modetype
480
-          console.log("mode---",modetype)
481 480
             var total =  response.data.data.total
482 481
             console.log("total",total)
483 482
             this.total = total
@@ -522,32 +521,26 @@ export default {
522 521
        getTotalInfectiousCount(timeStar,timeEnd).then(response=>{
523 522
            if(response.data.state === 1){
524 523
              this.InfectiousTotal = response.data.data.total
524
+             console.log("===",this.InfectiousTotal)
525 525
              var infectious = response.data.data.count
526
-             this.InfectiousList = infectious
527
-           // for(let i=0;i<infectious.length;i++){
528
-           //   if(infectious[i].disease_id == 1){
529
-           //      infectious[i].disease_id = "其他"
530
-            //   }
531
-            //   if(infectious[i].disease_id == 2){
532
-            //     infectious[i].disease_id = "乙肝"
533
-            //   }
534
-           //    if(infectious[i].disease_id == 3){
535
-            //     infectious[i].disease_id = "丙肝"
536
-           //    }
537
-            //   if(infectious[i].disease_id == 4){
538
-            //     infectious[i].disease_id = "艾滋病"
539
-            //   }
540
-            //   if(infectious[i].disease_id == 5){
541
-            //     infectious[i].disease_id = "肺结核"
542
-            //   }
543
-            //   if(infectious[i].disease_id == 6){
544
-            //     infectious[i].disease_id = "梅毒"
545
-            //   }
546
-
547
-            // }
526
+             console.log("infectious",infectious)
548 527
              var otherTotal = response.data.data.otherTotal
528
+             console.log("otherTotal",otherTotal)
549 529
              this.otherTotal = otherTotal
550
-             // console.log("infectious-----------",otherTotal)
530
+              var arr = [
531
+                {count:0,disease_id:2},
532
+                {count:0,disease_id:3},
533
+                {count:0,disease_id:4},
534
+                {count:0,disease_id:5},
535
+                {count:0,disease_id:6},
536
+              ]
537
+             if(infectious.length == 0){
538
+                this.InfectiousList = arr
539
+                return false
540
+                
541
+             }
542
+             this.InfectiousList = infectious
543
+            
551 544
            }
552 545
        })
553 546
     },
@@ -555,15 +548,22 @@ export default {
555 548
       getTotalAgeCount(timeStar,timeEnd).then(response=>{
556 549
          if(response.data.state == 1){
557 550
           var ageCount =  response.data.data.ageCount
558
-          this.ageCount = ageCount
559
-        //  console.log("ageCount",ageCount)
551
+          var arr = []
552
+          arr =  ageCount.sort(this.compare('age'))
553
+          this.ageCount = arr
560 554
           this.ageTotal =  response.data.data.total
561
-         // var two = response.data.data.two
562
-        //  console.log("two",two)
563 555
 
564 556
          }
565 557
       })
566 558
     },
559
+     compare:function (k) {
560
+          return function (a, b) {
561
+              var M = a[k];
562
+              var N = b[k];
563
+              return M - N;      // 从低向高排
564
+              // return N - M;   // 从高向低排
565
+          }
566
+      },
567 567
     //统计透析年龄
568 568
     getTotalDialysisCount(timeStar,timeEnd){
569 569
       getTotalDialysisCount(timeStar,timeEnd).then(response=>{

+ 3 - 2
src/xt_pages/qcd/statisticalConfiguration.vue View File

@@ -192,11 +192,12 @@ export default {
192 192
 
193 193
     //编辑
194 194
     handleEdit(id) {
195
+      console.log("id",id)
195 196
       this.editDialog = true;
196 197
       getConfigurationDetail(id).then(response=>{
197 198
          if(response.data.state == 1){
198 199
            var configurationdetail = response.data.data.configurationdetail
199
-          // console.log("详情",configurationdetail)
200
+          console.log("详情",configurationdetail)
200 201
            this.editform.id = configurationdetail.id
201 202
            this.editform.inspectionMajor = configurationdetail.inspection_major
202 203
            this.editform.inspectionMinor = configurationdetail.inspection_minor
@@ -216,7 +217,7 @@ export default {
216 217
       getInspectionMajor().then(response=>{
217 218
         if(response.data.state == 1){
218 219
           var inspection =  response.data.data.inspection
219
-          //console.log("大项",inspection)
220
+          console.log("大项",inspection)
220 221
           this.InspectionMajor = inspection
221 222
          
222 223
         }