Sfoglia il codice sorgente

统计配置开发

XMLWAN 4 anni fa
parent
commit
6cf192e243

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

170
           >打印</el-button
170
           >打印</el-button
171
         >
171
         >
172
       </template>
172
       </template>
173
+      
173
     </div>
174
     </div>
174
     <div class="app-container ">
175
     <div class="app-container ">
175
       <!--<div class="order-print-btn"-->
176
       <!--<div class="order-print-btn"-->
259
         v-bind:childResponse="childResponse"
260
         v-bind:childResponse="childResponse"
260
         v-if="org_template_info.template_id == 15"
261
         v-if="org_template_info.template_id == 15"
261
       ></DialysisPrintOrderFifteen>
262
       ></DialysisPrintOrderFifteen>
263
+      <DialysisPrintOrderSixteen
264
+        v-bind:childResponse="childResponse"
265
+        v-if="org_template_info.template_id == 16"
266
+      ></DialysisPrintOrderSixteen>
262
     </div>
267
     </div>
263
   </div>
268
   </div>
264
 </template>
269
 </template>
284
 import DialysisPrintOrderTwelve from "./template/DialysisPrintOrderTwelve";
289
 import DialysisPrintOrderTwelve from "./template/DialysisPrintOrderTwelve";
285
 import DialysisPrintOrderThirteen from "./template/DialysisPrintOrderThirteen";
290
 import DialysisPrintOrderThirteen from "./template/DialysisPrintOrderThirteen";
286
 import DialysisPrintOrderFifteen from "./template/DialysisPrintOrderFifteen";
291
 import DialysisPrintOrderFifteen from "./template/DialysisPrintOrderFifteen";
287
-
292
+import DialysisPrintOrderSixteen from "./template/DialysisPrintOrderSixteen";
288
 export default {
293
 export default {
289
   name: "dialysisPrintOrder",
294
   name: "dialysisPrintOrder",
290
   components: {
295
   components: {
302
     DialysisPrintOrderSeven,
307
     DialysisPrintOrderSeven,
303
     DialysisPrintOrderEight,
308
     DialysisPrintOrderEight,
304
     DialysisPrintOrderNine,
309
     DialysisPrintOrderNine,
310
+    DialysisPrintOrderSixteen,
305
     LabelBox,
311
     LabelBox,
306
     BreadCrumb
312
     BreadCrumb
307
   },
313
   },
531
           style: style,
537
           style: style,
532
           scanStyles: false
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
     printThisOnePage() {
549
     printThisOnePage() {

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

164
                       <el-progress :percentage="(item.count/InfectiousTotal*100).toFixed(1)"></el-progress>
164
                       <el-progress :percentage="(item.count/InfectiousTotal*100).toFixed(1)"></el-progress>
165
                   </span>
165
                   </span>
166
                     <span v-if="item.disease_id == 1">
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
                   </span>
169
                   </span>
170
                 </div>
170
                 </div>
171
               </div>
171
               </div>
477
       getDialysisModeType(startDate,endDate).then(response=>{
477
       getDialysisModeType(startDate,endDate).then(response=>{
478
          if(response.data.state == 1){
478
          if(response.data.state == 1){
479
           var modetype =  response.data.data.modetype
479
           var modetype =  response.data.data.modetype
480
-          console.log("mode---",modetype)
481
             var total =  response.data.data.total
480
             var total =  response.data.data.total
482
             console.log("total",total)
481
             console.log("total",total)
483
             this.total = total
482
             this.total = total
522
        getTotalInfectiousCount(timeStar,timeEnd).then(response=>{
521
        getTotalInfectiousCount(timeStar,timeEnd).then(response=>{
523
            if(response.data.state === 1){
522
            if(response.data.state === 1){
524
              this.InfectiousTotal = response.data.data.total
523
              this.InfectiousTotal = response.data.data.total
524
+             console.log("===",this.InfectiousTotal)
525
              var infectious = response.data.data.count
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
              var otherTotal = response.data.data.otherTotal
527
              var otherTotal = response.data.data.otherTotal
528
+             console.log("otherTotal",otherTotal)
549
              this.otherTotal = otherTotal
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
       getTotalAgeCount(timeStar,timeEnd).then(response=>{
548
       getTotalAgeCount(timeStar,timeEnd).then(response=>{
556
          if(response.data.state == 1){
549
          if(response.data.state == 1){
557
           var ageCount =  response.data.data.ageCount
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
           this.ageTotal =  response.data.data.total
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
     getTotalDialysisCount(timeStar,timeEnd){
568
     getTotalDialysisCount(timeStar,timeEnd){
569
       getTotalDialysisCount(timeStar,timeEnd).then(response=>{
569
       getTotalDialysisCount(timeStar,timeEnd).then(response=>{

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

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