Kaynağa Gözat

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

28169 1 yıl önce
ebeveyn
işleme
f160809f09

+ 47 - 33
src/xt_pages/Dialysisanalysis/otherIndicators/index.vue Dosyayı Görüntüle

@@ -7,23 +7,22 @@
7 7
       <div class="app-container">
8 8
         <div class="page_patientControlAnalysis">
9 9
           <div class="photos">
10
-            <div v-for="(item,index) in 3" :key="index"  @click="echart_click(index)"
10
+            <div v-for="(item,index) in indicators" :key="index"  @click="echart_click(item)"
11 11
               style="width: 280px;height: 360px;border:1px solid gainsboro;border-radius: 8px;margin: 0 0 30px 28px"
12 12
             >
13
-              <div v-if="index+1==1" class="background date_type1" style="background-repeat: no-repeat;"></div>
14
-              <div v-if="index+1==2" class="background date_type2" style="background-repeat: no-repeat;"></div>
15
-              <div v-if="index+1==3" class="background date_type3" style="background-repeat: no-repeat;"></div>
16
-              <p class="title">留治患者透析龄分析</p>
13
+<!--              <div v-if="index+1==1" class="background date_type1" style="background-repeat: no-repeat;"></div>-->
14
+              <div v-if="item.check_type == 1" class="background date_type2" style="background-repeat: no-repeat;"></div>
15
+              <div v-if="item.check_type == 2" class="background date_type3" style="background-repeat: no-repeat;"></div>
16
+              <p class="title">{{item.item_name}}</p>
17 17
               <div class="tag">
18 18
                 <span class="tags">留治患者</span>
19 19
                 <span class="tags">转归</span>
20 20
                 <span class="tags">死亡</span>
21 21
               </div>
22
-              <span class="use">已使用14次</span>
23
-              <!-- <span class="shoucang" style="background-repeat: no-repeat;"></span> -->
22
+<!--              <span class="use">已使用14次</span>-->
23
+               <span class="shoucang" style="background-repeat: no-repeat;"></span>
24
+              </div>
24 25
             </div>
25
-          </div>
26
-
27 26
         </div>
28 27
       </div>
29 28
     </div>
@@ -39,19 +38,7 @@ export default {
39 38
     },
40 39
     data() {
41 40
         return {
42
-          indicators:[{
43
-            name:"钾离子",
44
-            project_id:0,
45
-            item_id:0,
46
-          },{
47
-            name:"钠离子",
48
-            project_id:0,
49
-            item_id:0,
50
-          },{
51
-            name:"无机磷",
52
-            project_id:0,
53
-            item_id:0,
54
-          }],
41
+          indicators:[],
55 42
             activeName: 'first'
56 43
         }
57 44
     },
@@ -63,6 +50,29 @@ export default {
63 50
         getStatisticsList(params).then(response => {
64 51
           if (response.data.state == 1) {
65 52
             this.indicators  =  this.indicators.concat(response.data.data.configurationlist)
53
+            for(let i = 0; i < this.indicators.length; i++){
54
+              this.indicators[i]["check_type"] = 1
55
+              this.indicators[i]["sub_check_type"] = 1
56
+
57
+            }
58
+            let obj = {
59
+              "check_type":1,
60
+              "item_name":"KTV/URR",
61
+              "sub_check_type":2
62
+            }
63
+            this.indicators.push(obj)
64
+
65
+            let obj2 = {
66
+              "check_type":2,
67
+              "item_name":"指标汇总",
68
+              "sub_check_type":3
69
+
70
+            }
71
+            this.indicators.push(obj2)
72
+
73
+
74
+            console.log( this.indicators)
75
+            // this.indicators.push("")
66 76
           } else {
67 77
             this.$message.error(response.data.msg)
68 78
           }
@@ -74,17 +84,21 @@ export default {
74 84
       handleClick(tab, event) {
75 85
         console.log(tab, event);
76 86
       },
77
-      echart_click(num){
78
-        console.log(num)
79
-        if(num==0){
80
-          this.$router.push('/Dialysisanalysis/qualitycontrol/otherIndicators/components/columnarTotal')
81
-        }else if(num==1){
82
-          this.$router.push('/Dialysisanalysis/qualitycontrol/otherIndicators/components/CakeshapeTotal')
83
-        }else{
84
-          this.$router.push('/Dialysisanalysis/qualitycontrol/otherIndicators/components/tableTotal')
87
+      echart_click(item){
88
+        if(item.check_type == 1){
89
+          if(item.sub_check_type == 1){
90
+            this.$router.push('/Dialysisanalysis/qualitycontrol/Indicatorsdetail?project_id='+item.inspection_major+"&item_id="+item.inspection_minor+"&project_type="+parseInt(item.id))
91
+
92
+            // this.$router.push('/Dialysisanalysis/qualitycontrol/otherIndicators/components/columnarTotal')
93
+
94
+          }else if(item.sub_check_type == 2){
95
+            this.$router.push('/Dialysisanalysis/qualitycontrol/platelets')
96
+          }
97
+        }else if(item.check_type == 2){
98
+          this.$router.push('/Dialysisanalysis/qualitycontrol/summary')
85 99
         }
86
-        
87
-        
100
+
101
+
88 102
       }
89 103
     },
90 104
     created(){
@@ -111,7 +125,7 @@ export default {
111 125
   .date_type3{
112 126
     background: url('../../../assets/img/biaoge.png');
113 127
   }
114
-  
128
+
115 129
   .title{
116 130
     font-size: 18px;
117 131
     margin: 15px 10px;

+ 5 - 1
src/xt_pages/Dialysisanalysis/otherIndicators/otherIndicatorsall.vue Dosyayı Görüntüle

@@ -508,7 +508,11 @@ export default {
508 508
           this.reference = response.data.data.reference
509 509
           this.config = response.data.data.config
510 510
 
511
-          this.input = this.config.min_range + "<=" + response.data.data.reference.item_name + "<=" +this.config.large_range
511
+          for(var i = 0; i < this.indicators.length;i++){
512
+            if(this.indicators[i].id == this.project_type){
513
+              this.input = this.config.min_range + "<=" +  this.indicators[i].label + "<=" +this.config.large_range
514
+            }
515
+          }
512 516
           let objone = {
513 517
             value:  response.data.data.unusual_total ,
514 518
             name: '不达标值患者',

+ 10 - 5
src/xt_pages/dialysis/details/index.vue Dosyayı Görüntüle

@@ -1412,7 +1412,9 @@ export default {
1412 1412
 
1413 1413
       start_time:moment().startOf('months').format('YYYY-MM-DD'),
1414 1414
       end_time:moment().endOf('months').format('YYYY-MM-DD'),
1415
-      orderList:[]
1415
+      orderList:[],
1416
+      // start_time2:'',
1417
+      // end_time2:'',
1416 1418
     }
1417 1419
   },
1418 1420
   created() {
@@ -2933,15 +2935,15 @@ export default {
2933 2935
         start_time:this.start_time,
2934 2936
         end_time:this.end_time,
2935 2937
       }
2938
+      console.log('tttt',params);
2936 2939
       getPatientDialysisRecordList(params).then(response=>{
2937 2940
          if(response.data.state == 1){
2938 2941
            var list  = response.data.data.list
2939 2942
            this.historyclick =true
2940 2943
            if(list!=null && list.length>0){
2941 2944
              for(let i=0;i<list.length;i++){
2942
-
2943 2945
                list[i].order_date =""
2944
-               if(this.org_id ==9538 || this.org_id ==10101||this.org_id ==10353){
2946
+               if(this.org_id ==9538 || this.org_id ==10101||this.org_id ==10353 ){
2945 2947
                   list[i].order_date = this.getOrderTime(list[i].dialysis_date)
2946 2948
                   list[i].schedual_type_name= list[i].schedual_type
2947 2949
                }else{
@@ -2979,6 +2981,8 @@ export default {
2979 2981
       }
2980 2982
     },
2981 2983
     viewDayWork(val){
2984
+      const starttime = moment(this.time_value).format('YYYY-MM-DD')
2985
+      console.log('eeeeeeee',starttime);
2982 2986
       const len = (val.target.innerText).split(' ')
2983 2987
       console.log("val33333333333333444",len)
2984 2988
       if(val.target.innerText == '下个月'){
@@ -2991,8 +2995,7 @@ export default {
2991 2995
         // console.log('4444',this.orderList);
2992 2996
         if(len.length>1){
2993 2997
           var patient_id = this.$route.query.patient_id
2994
-          var start_time = this.timestamp(this.start_time)
2995
-          console.log("start_Time-------",start_time)
2998
+          var start_time = this.timestamp(starttime)
2996 2999
           this.$router.push({
2997 3000
             path: "/dialysis/details",
2998 3001
             query: { patient_id:patient_id , date: start_time}
@@ -3018,7 +3021,9 @@ export default {
3018 3021
         this.time_value = newValue
3019 3022
         // this.getmonth(this.time_value)
3020 3023
         console.log('yyyyyyyyyyy',moment(this.time_value).format('YYYY-MM-DD'),moment(oldValue).format('YYYY-MM-DD'))
3024
+
3021 3025
         this.start_time = moment(this.time_value).format('YYYY-MM-DD')
3026
+        console.log('rrrrr',this.start_time);
3022 3027
         this.end_time =   moment(oldValue).format('YYYY-MM-DD')
3023 3028
       }
3024 3029
     }

+ 10 - 2
src/xt_pages/outpatientCharges/statementPrint.vue Dosyayı Görüntüle

@@ -1493,8 +1493,16 @@ export default {
1493 1493
                   that.info['number'] = response.data.data.number
1494 1494
                   that.info['order_infos'] = response.data.data.order_infos
1495 1495
                   that.info['diagnosis'] = response.data.data.diagnosis
1496
-                  that.info['org_code'] = response.data.data.org_code
1497
-                  that.info['org_name'] = response.data.data.org_name
1496
+                  if(that.org_id == 10191){
1497
+                    that.info['org_code'] = "H36030201006"
1498
+                    that.info['org_name'] = "萍乡欣瑞怡康血液透析中心"
1499
+                  }else{
1500
+
1501
+                    that.info['org_code'] =response.data.data.org_code
1502
+                    that.info['org_name'] = response.data.data.org_name
1503
+                  }
1504
+
1505
+
1498 1506
                   that.info['doctor_code'] = response.data.data.doctor_code
1499 1507
                   that.info['department'] = response.data.data.department
1500 1508
                   that.info['health_card_no'] = response.data.data.health_card_no

+ 7 - 4
src/xt_pages/outpatientDoctorStation/components/callPrescription.vue Dosyayı Görüntüle

@@ -42,7 +42,11 @@
42 42
           <el-table v-if="subItem.type  == 1" :data="subItem.doctor_advice" border style="width: 99%;"
43 43
                     :row-style="{ color: '#303133' }"
44 44
                     :header-cell-style="{backgroundColor: 'rgb(245, 247, 250)',color: '#606266'}" highlight-current-row>
45
-            <el-table-column align="center" type="index" width="60" label="序号"></el-table-column>
45
+            <el-table-column align="center"  width="60" label="序号">
46
+              <template slot-scope="scope">
47
+              <span>{{ scope.row.groupno}}</span>
48
+              </template>
49
+            </el-table-column>
46 50
             <el-table-column align="center" prop="drug_name"  width="160" label="名称">
47 51
               <template slot-scope="scope">
48 52
                 <span>{{ scope.row.advice_name }}</span>
@@ -278,7 +282,6 @@
278 282
             let tempProject = [];
279 283
             let tempAddition = [];
280 284
             for (let b = 0; b < prescription.doctor_advice.length; b++) {
281
-              let index = b + 1
282 285
               let obj = {
283 286
                 advice_id: 0,
284 287
                 drug_name: prescription.doctor_advice[b].advice_name,
@@ -294,7 +297,7 @@
294 297
                 medical_insurance_number:prescription.doctor_advice[b].med_list_codg,
295 298
                 id:prescription.doctor_advice[b].drug_id,
296 299
                 drug:prescription.doctor_advice[b].drug,
297
-                groupno: index,
300
+                groupno: prescription.doctor_advice[b].groupno,
298 301
                 hosp_appr_flag:"1",
299 302
               };
300 303
               if (obj.prescribing_number_unit == prescription.doctor_advice[b].drug.min_unit){
@@ -379,7 +382,7 @@
379 382
         this.srcPrescriptions = srcPrescriptions;
380 383
         this.start_time  = start_time
381 384
         this.end_time = end_time;
382
-      
385
+
383 386
         this.patient_id = id;
384 387
         this.name = '处方调用' + '('+name +')';
385 388
         this.allPrescription = prescriptions;

+ 8 - 8
src/xt_pages/user/inspection.vue Dosyayı Görüntüle

@@ -150,7 +150,7 @@
150 150
                     </span>
151 151
                     </div>
152 152
                   <div v-else>
153
-                    <img :src="scope.row.value"> 
153
+                    <img :src="scope.row.value">
154 154
                   </div>
155 155
                 </template>
156 156
               </el-table-column>
@@ -202,7 +202,7 @@
202 202
                               content="点击查看大图"
203 203
                               placement="top-start"
204 204
                               >
205
-                                <img style="width: 300px;height: 150px;" :src="item.value" alt=""> 
205
+                                <img style="width: 300px;height: 150px;" :src="item.value" alt="">
206 206
                               </el-tooltip>
207 207
                           </div>
208 208
                         </div>
@@ -1231,9 +1231,9 @@ export default {
1231 1231
       } else {
1232 1232
         this.itemLoading = true
1233 1233
         this.project = row
1234
+
1234 1235
         this.items = row.inspection_reference
1235 1236
         this.itemName = row.project_name
1236
-
1237 1237
         this.queryParams.patient = this.patientID
1238 1238
         this.queryParams.project_id = this.project.project_id
1239 1239
         this.queryParams.page = 1
@@ -1347,7 +1347,7 @@ export default {
1347 1347
               }else{
1348 1348
                 this.items.push(item)
1349 1349
               }
1350
-             
1350
+
1351 1351
 
1352 1352
               console.log("items232232332wo",item.value.indexOf('http'))
1353 1353
 
@@ -1358,11 +1358,11 @@ export default {
1358 1358
               if(this.org_id!=10503){
1359 1359
                 this.isPic = false
1360 1360
               }
1361
- 
1361
+
1362 1362
               console.log("woowwoow",this.isPic)
1363
-              
1364
-              
1365
-              
1363
+
1364
+
1365
+
1366 1366
               console.log("isPicwowowow",this.items)
1367 1367
             }
1368 1368
           }