瀏覽代碼

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

csx 4 年之前
父節點
當前提交
77477c1468

+ 8 - 3
src/xt_pages/data/components/drugs.vue 查看文件

@@ -671,20 +671,25 @@
671 671
           ids.push(this.selectDrug[index].id);
672 672
           idMap[this.selectDrug[index].id] = this.selectDrug[index].id;
673 673
         }
674
-        console.log('ids222222222',ids)
674
+      
675 675
         var idss = ids.join(',')
676 676
         let params = {
677 677
           ids:idss,
678 678
           admin_user_id:this.$store.getters.xt_user.user.id
679 679
         }
680
-        console.log("params2222")
680
+       
681 681
         var that = this
682 682
         axios.get('http://127.0.0.1:9532/sz/api/drug/get',{ params: params }).then(function(response) {
683 683
          if (response.data.state == 0) {
684 684
                that.$message.error(response.data.msg)
685 685
                return false
686 686
             } else {
687
-              that.$message({ message: '备案成功', type: 'success' })
687
+              if(response.data.msg != ""){
688
+                that.$message.success(response.data.msg)
689
+              }
690
+              if(response.data.msg == ""){
691
+               that.$message.success("备案成功")
692
+              }
688 693
               that.getList()
689 694
              }
690 695
            }).catch(function(error) {

+ 5 - 5
src/xt_pages/outpatientCharges/newStatementPrintTwo.vue 查看文件

@@ -64,12 +64,12 @@
64 64
         this.print_time = uParseTime(ptime, "{y}-{m}-{d} {h}:{i}");
65 65
 
66 66
         const style =
67
-          '@media print {.statementTitle{font-size: 28px;text-align: center;font-weight: bold;margin-bottom: 10px;}.statementTable{width: 100%;text-align: center;border-collapse: collapse;line-height: 40px;font-size: 16px;border-color: #000;}}';
67
+        '@media print {.printTitle{font-size: 20px;text-align: center;font-weight: bold;}.infoMain{display: flex;flex-wrap: wrap;padding:0 10px;margin-top:10px;font-size:12px;}.infoMain .infoP{width: 33%;}.chargeBox{border: 1px solid #000;font-size:12px;}.chargeUl{display:flex;justify-content: space-between;text-align: center;}.chargeUl p{line-height: 1px;}.chargeP{line-height: 1px;padding-bottom:16px;}.moneyBox{display: flex;justify-content: space-between;padding: 0 10px;background: #eeeeee;-webkit-print-color-adjust:exact;-moz-print-color-adjust:exact;-ms-print-color-adjust:exact;print-color-adjust:exact;height: 40px;align-items: center;border:1px solid #000; border-top:none;font-size:12px;}.actionBar{display: flex;justify-content: space-between; line-height: 24px;padding:0 10px;font-size:12px;}.actionBar div{width:150px;}}';
68 68
         printJS({
69
-          printable: "statement-print",
70
-          type: "html",
71
-          style: style,
72
-          scanStyles: false
69
+            printable: "prescription-print",
70
+            type: "html",
71
+            style: style,
72
+            scanStyles: false
73 73
         });
74 74
 
75 75
         // if (this.org_template_info.template_id == 1) {

+ 39 - 9
src/xt_pages/outpatientCharges/newTreatTemplate/printOne.vue 查看文件

@@ -1,8 +1,8 @@
1 1
 <template>
2 2
     <div>
3 3
         <div id='prescription-print' class="prescription-print">
4
-            <div>
5
-                <div class="printTitle">&nbsp血液透析中心医药费收据及收费项目清单</div>
4
+            <div v-for='(i,pageIndex) in pageArr.length' :key="pageIndex">
5
+                <div class="printTitle">血液透析中心医药费收据及收费项目清单</div>
6 6
                 <div class="infoMain">
7 7
                     <div class="infoP">医院(药店)编号:{{info.org_code}}</div>
8 8
                     <div class="infoP">名称:{{info.org_name}}</div>
@@ -51,25 +51,25 @@
51 51
                                 <p style="width:50%;">{{info.transBody.akb067?info.transBody.akb067:0}}元</p>
52 52
                             </div>
53 53
                         </div>
54
-                        <div style="width:80%;display:flex;height:300px;">
54
+                        <div style="width:80%;display:flex;max-height:500px;">
55 55
 
56 56
                             <div style="border-left:1px solid #000;border-right:1px solid #000;width:40%;text-align:center;">
57
-                                <p v-for="(item,i) in info.name_arr" :key="i" class="chargeP">
57
+                                <p v-for="(item,i) in info.name_arr.slice(pageIndex * 13,(pageIndex * 13) + pageArr[pageIndex])" :key="i" class="chargeP">
58 58
                                     {{item}}</p>
59 59
                             </div>
60 60
                             <div style="border-right:1px solid #000;width:15%;text-align:center;">
61
-                                <p v-for="(item,y) in info.spec_arr" :key="y" class="chargeP">
61
+                                <p v-for="(item,y) in info.spec_arr.slice(pageIndex * 13,(pageIndex * 13) + pageArr[pageIndex])" :key="y" class="chargeP">
62 62
                                     {{item}}</p>
63 63
                             </div>
64 64
                             <div style="border-right:1px solid #000;width:15%;text-align:center;">
65
-                                <p v-for="(item,z) in info.count_arr" :key="z" class="chargeP">
65
+                                <p v-for="(item,z) in info.count_arr.slice(pageIndex * 13,(pageIndex * 13) + pageArr[pageIndex])" :key="z" class="chargeP">
66 66
                                     {{item}}次</p>
67 67
                             </div>
68 68
                             <div style="border-right:1px solid #000;width:15%;text-align:center;">
69
-                                <p v-for="(item,f) in info.price_arr" :key="f" class="chargeP">{{item}}元</p>
69
+                                <p v-for="(item,f) in info.price_arr.slice(pageIndex * 13,(pageIndex * 13) + pageArr[pageIndex])" :key="f" class="chargeP">{{item}}元</p>
70 70
                             </div>
71 71
                             <div style="width:15%;text-align:center;">
72
-                                <p v-for="(item,d) in info.total_arr" :key="d" class="chargeP">{{item}}元</p>
72
+                                <p v-for="(item,d) in info.total_arr.slice(pageIndex * 13,(pageIndex * 13) + pageArr[pageIndex])" :key="d" class="chargeP">{{item}}元</p>
73 73
                             </div>
74 74
                         </div>
75 75
                     </div>
@@ -114,7 +114,10 @@
114 114
         spec_arr: [],
115 115
         count_arr: [],
116 116
         price_arr: [],
117
-        total_arr: []
117
+        total_arr: [],
118
+
119
+        page:1,
120
+        pageArr:[],
118 121
 
119 122
       }
120 123
     },
@@ -230,11 +233,38 @@
230 233
         }
231 234
 
232 235
       },
236
+      getPage(){
237
+        this.page = 1
238
+        this.pageArr = []
239
+        if(this.info.name_arr.length <= 13){
240
+            this.page = 1
241
+            this.pageArr.push(this.info.name_arr.length)
242
+            console.log('this.pageArr',this.pageArr)
243
+        }else if(this.info.name_arr.length > 13){
244
+            this.page = parseInt(this.info.name_arr.length / 13)
245
+            let num = this.info.name_arr.length % 13
246
+            for (var i=0;i<this.page;i++){
247
+                this.pageArr.push(13)
248
+            }
249
+            if(num != 0){
250
+                this.pageArr.push(num)
251
+            }
252
+        }
253
+      }
233 254
     },
234 255
     created() {
235 256
 
236 257
 
237 258
     },
259
+    watch:{
260
+      info: {
261
+        handler(newVal) {
262
+            this.getPage()
263
+        },
264
+        deep: true,
265
+        immediate:true
266
+      }
267
+    }
238 268
 
239 269
   }
240 270
 </script>

+ 20 - 20
src/xt_pages/qcd/patientComplianceDetails.vue 查看文件

@@ -103,7 +103,7 @@
103 103
                 >
104 104
                   <p>{{ item.item_name }}</p>
105 105
                    <span v-if="item.range_type == 1 && getvlist(item.inspection_minor)!=0"><span v-if="parseInt(item.min_range)<=getvlist(item.inspection_minor) && getvlist(item.inspection_minor)<=parseInt(item.large_range) "><i class="iconfont icon-gou gou"></i></span></span>
106
-                   <span v-if="item.range_type == 1 && getvlist(item.inspection_minor)!=0"><span v-if="parseInt(item.min_range)>getvlist(item.inspection_minor) || getvlist(item.inspection_minor)>parseInt(item.large_range)"><i class="iconfont icon-gantanhao gth"></i></span></span> 
106
+                   <span v-if="item.range_type == 1 && getvlist(item.inspection_minor)!=0"><span v-if="parseInt(item.min_range)>getvlist(item.inspection_minor) || getvlist(item.inspection_minor)>parseInt(item.large_range)"><i class="iconfont icon-gantanhao gth"></i></span></span>
107 107
                    <span v-if="item.range_type == 1 && getvlist(item.inspection_minor)==0"></span>
108 108
                    <span v-if="item.range_type == 2 && getvlistwo(item.inspection_minor)!=''"><span v-if="getvlistwo(item.inspection_minor)==item.range_value"><i class="iconfont icon-gou gou"></i></span></span>
109 109
                    <span v-if="item.range_type == 2 && getvlistwo(item.inspection_minor)!=''"><span v-if="getvlistwo(item.inspection_minor)!=item.range_value"><i class="iconfont icon-gantanhao gth"></i></span></span>
@@ -386,9 +386,9 @@ export default {
386 386
                     { offset: 1, color: colorList[index][1] }
387 387
                   ]);
388 388
                 },
389
-                lineStyle:{ 
389
+                lineStyle:{
390 390
                   color:'#409eff' //改变折线颜色
391
-                }, 
391
+                },
392 392
                 barBorderRadius: [5, 5, 0, 0] //柱状角成椭圆形
393 393
               },
394 394
 
@@ -456,17 +456,17 @@ export default {
456 456
          this.listQuery.end_time =""
457 457
          this.monthActive = 1
458 458
         const startDate = moment().subtract('month', 3).format('YYYY-MM-DD')
459
-    
459
+
460 460
         this.startime = Date.parse(startDate)/1000
461
-       
461
+
462 462
         const endDate = moment(new Date()).format('YYYY-MM-DD')
463
-      
463
+
464 464
         this.endtime = Date.parse(endDate)/1000
465
-    
465
+
466 466
         this.getlistDetail()
467 467
          this.getIdSlist()
468 468
       }
469
-    
469
+
470 470
 
471 471
        //近半年
472 472
       if(month == 2){
@@ -474,7 +474,7 @@ export default {
474 474
         this.listQuery.end_time =""
475 475
         this.monthActive = 2
476 476
         const startDate = moment().subtract('month', 6).format('YYYY-MM-DD')
477
-        
477
+
478 478
         this.startime = Date.parse(startDate)/1000
479 479
         const endDate = moment(new Date()).format('YYYY-MM-DD')
480 480
         this.endtime = Date.parse(endDate)/1000
@@ -507,7 +507,7 @@ export default {
507 507
            }
508 508
            if(this.normData[i].range_type == 2){
509 509
              itemName = this.normData[i].item_name
510
-           } 
510
+           }
511 511
          }
512 512
       }
513 513
       this.itemName = itemName
@@ -620,12 +620,12 @@ export default {
620 620
             // console.log("list是什么",list)
621 621
             for(let i=0;i<list.length;i++){
622 622
               if(parseInt(list[i].inspect_value)>= parseInt(list[i].range_min) && parseInt(list[i].inspect_value)<= parseInt(list[i].range_max)){
623
-                    this.isTrue = 1  
623
+                    this.isTrue = 1
624 624
                }
625 625
                if(parseInt(list[i].inspect_value)< parseInt(list[i].range_min) || parseInt(list[i].inspect_value) > parseInt(list[i].range_max)){
626 626
                     this.isTrue =0
627 627
                }
628
-               
628
+
629 629
               if(list[i].range_type == 1){
630 630
                     this.rangetype = 1
631 631
                     this.modesData.xAxis.push(this.getTime(list[i].inspect_date));
@@ -647,7 +647,7 @@ export default {
647 647
               }else{
648 648
                 this.getArrLength(this.char2.xAxis.data,2)
649 649
               }
650
-       
650
+
651 651
           }
652 652
 
653 653
        })
@@ -672,7 +672,7 @@ export default {
672 672
           var monthEndDate = moment().endOf('month').format('YYYY-MM-DD HH:mm:ss');
673 673
           this.endtime =Date.parse(monthEndDate)/1000-1;//s
674 674
         }
675
-     
675
+
676 676
           const params = {
677 677
             patientid:this.patientid,
678 678
             startime:this.startime,
@@ -685,7 +685,7 @@ export default {
685 685
               var list =  response.data.data.list
686 686
               for(let i=0;i<list.length;i++){
687 687
                 if(parseInt(list[i].inspect_value)>= parseInt(list[i].range_min) && parseInt(list[i].inspect_value)<= parseInt(list[i].range_max)){
688
-                      this.isTrue = 1  
688
+                      this.isTrue = 1
689 689
                 }
690 690
                 if(parseInt(list[i].inspect_value)< parseInt(list[i].range_min) || parseInt(list[i].inspect_value) > parseInt(list[i].range_max)){
691 691
                       this.isTrue =0
@@ -704,9 +704,9 @@ export default {
704 704
                   this.char2.xAxis.data.push(this.getTime(list[i].inspect_date))
705 705
                   this.char2.series[0].name = list[i].range_value
706 706
                 }
707
-                
708 707
 
709
-            
708
+
709
+
710 710
             }
711 711
               this.chart.series[0].data = this.modesData.series
712 712
               this.chart.xAxis.data = this.modesData.xAxis
@@ -787,7 +787,7 @@ export default {
787 787
              }else{
788 788
                itemvalue = 0
789 789
              }
790
-             
790
+
791 791
           }
792 792
         }
793 793
         return itemvalue
@@ -801,7 +801,7 @@ export default {
801 801
               }else{
802 802
                 itemvalue = ''
803 803
               }
804
-              
804
+
805 805
             }
806 806
         }
807 807
         return itemvalue
@@ -810,7 +810,7 @@ export default {
810 810
 
811 811
    created(){
812 812
      this.patientid =  this.$route.query.patientid
813
-    
813
+
814 814
      this.inspect_date = this.$route.query.date
815 815
      //获取指标项
816 816
       this.getNormData()

+ 34 - 1
src/xt_pages/role/components/AdminInfoForm.vue 查看文件

@@ -705,7 +705,11 @@
705 705
                 }
706 706
                 this.form.user_title = admin.user_title
707 707
                 this.form.role = admin.role_ids
708
+               
708 709
                 this.form.department_id = admin.department_id
710
+                if(admin.department_id == 0){
711
+                   this.form.department_id = ""
712
+                }
709 713
                 this.form.role_ids = []
710 714
                 for (let i = 0; i < this.form.role.split(",").length; i++) {
711 715
                   if (this.form.role.split(',')[i].length > 0) {
@@ -734,20 +738,43 @@
734 738
                 }
735 739
                 this.isSubSuperAdmin = resp.data.isSubSuperAdmin
736 740
                 this.org = resp.data.org
741
+                
742
+               
737 743
                 this.form.sex = admin.sex
744
+                if(admin.sex == 0){
745
+                   this.form.sex = ""
746
+                }
738 747
                 this.form.age = admin.age
748
+                if(admin.age == 0){
749
+                  this.form.age = ""
750
+                }
739 751
                 this.form.nation = admin.nation
740 752
                 this.form.card_type = admin.card_type
753
+                if(admin.card_type == 0){
754
+                  this.form.card_type = ""
755
+                }
741 756
                 this.form.id_card = admin.id_card
742 757
                 this.form.education = admin.education
758
+                if(admin.education == 0){
759
+                  this.form.education = ""
760
+                }
743 761
                 this.form.study_major_name = admin.study_major_name
744 762
                 this.form.work_major_name = admin.work_major_name
745 763
                 this.form.role_type = admin.role_type
764
+                if(admin.role_type == 0){
765
+                  this.form.role_type = ""
766
+                }
746 767
                 this.form.medical_code = admin.medical_code
747 768
                 this.form.doctor_code = admin.doctor_code
748 769
                 this.form.licensing = admin.licensing
770
+                if(admin.licensing == 0){
771
+                  this.form.licensing = ""
772
+                }
749 773
                 this.form.job_number = admin.job_number
750 774
                 this.form.prescription_qualification_identification = admin.prescription_qualification_identification
775
+                if(admin.prescription_qualification_identification == 0){
776
+                   this.form.prescription_qualification_identification = ""
777
+                }
751 778
                 this.form.identification_outpatients = admin.identification_outpatients
752 779
                 this.form.start_time = this.getTime(admin.start_time)
753 780
                 this.form.medical_range_code = admin.medical_range_code
@@ -760,7 +787,11 @@
760 787
                 this.form.doctor_number = admin.doctor_number
761 788
                 this.form.is_active = admin.is_active
762 789
                 console.log("2222222",this.form.is_active)
790
+               
763 791
                 this.form.active_status = admin.active_status
792
+                if(admin.active_status == 0){
793
+                   this.form.active_status = ""
794
+                }
764 795
               
765 796
                 var id = 0
766 797
                 for(let i=0;i<this.numberList.length;i++){
@@ -770,7 +801,9 @@
770 801
                 }
771 802
                 console.log("id2222222",id)
772 803
                 this.form.outpatient_illnessCategory = id
773
-              
804
+                 if(id == 0){
805
+                   this.form.outpatient_illnessCategory = ""
806
+                 }
774 807
                 //如果当前用户是超级管理员而且编辑自己的信息
775 808
 
776 809
                 if(!this.isSubSuperAdmin) {