Selaa lähdekoodia

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

28169 1 vuosi sitten
vanhempi
commit
f160809f09

+ 47 - 33
src/xt_pages/Dialysisanalysis/otherIndicators/index.vue Näytä tiedosto

7
       <div class="app-container">
7
       <div class="app-container">
8
         <div class="page_patientControlAnalysis">
8
         <div class="page_patientControlAnalysis">
9
           <div class="photos">
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
               style="width: 280px;height: 360px;border:1px solid gainsboro;border-radius: 8px;margin: 0 0 30px 28px"
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
               <div class="tag">
17
               <div class="tag">
18
                 <span class="tags">留治患者</span>
18
                 <span class="tags">留治患者</span>
19
                 <span class="tags">转归</span>
19
                 <span class="tags">转归</span>
20
                 <span class="tags">死亡</span>
20
                 <span class="tags">死亡</span>
21
               </div>
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
             </div>
25
             </div>
25
-          </div>
26
-
27
         </div>
26
         </div>
28
       </div>
27
       </div>
29
     </div>
28
     </div>
39
     },
38
     },
40
     data() {
39
     data() {
41
         return {
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
             activeName: 'first'
42
             activeName: 'first'
56
         }
43
         }
57
     },
44
     },
63
         getStatisticsList(params).then(response => {
50
         getStatisticsList(params).then(response => {
64
           if (response.data.state == 1) {
51
           if (response.data.state == 1) {
65
             this.indicators  =  this.indicators.concat(response.data.data.configurationlist)
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
           } else {
76
           } else {
67
             this.$message.error(response.data.msg)
77
             this.$message.error(response.data.msg)
68
           }
78
           }
74
       handleClick(tab, event) {
84
       handleClick(tab, event) {
75
         console.log(tab, event);
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
     created(){
104
     created(){
111
   .date_type3{
125
   .date_type3{
112
     background: url('../../../assets/img/biaoge.png');
126
     background: url('../../../assets/img/biaoge.png');
113
   }
127
   }
114
-  
128
+
115
   .title{
129
   .title{
116
     font-size: 18px;
130
     font-size: 18px;
117
     margin: 15px 10px;
131
     margin: 15px 10px;

+ 5 - 1
src/xt_pages/Dialysisanalysis/otherIndicators/otherIndicatorsall.vue Näytä tiedosto

508
           this.reference = response.data.data.reference
508
           this.reference = response.data.data.reference
509
           this.config = response.data.data.config
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
           let objone = {
516
           let objone = {
513
             value:  response.data.data.unusual_total ,
517
             value:  response.data.data.unusual_total ,
514
             name: '不达标值患者',
518
             name: '不达标值患者',

+ 10 - 5
src/xt_pages/dialysis/details/index.vue Näytä tiedosto

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

+ 10 - 2
src/xt_pages/outpatientCharges/statementPrint.vue Näytä tiedosto

1493
                   that.info['number'] = response.data.data.number
1493
                   that.info['number'] = response.data.data.number
1494
                   that.info['order_infos'] = response.data.data.order_infos
1494
                   that.info['order_infos'] = response.data.data.order_infos
1495
                   that.info['diagnosis'] = response.data.data.diagnosis
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
                   that.info['doctor_code'] = response.data.data.doctor_code
1506
                   that.info['doctor_code'] = response.data.data.doctor_code
1499
                   that.info['department'] = response.data.data.department
1507
                   that.info['department'] = response.data.data.department
1500
                   that.info['health_card_no'] = response.data.data.health_card_no
1508
                   that.info['health_card_no'] = response.data.data.health_card_no

+ 7 - 4
src/xt_pages/outpatientDoctorStation/components/callPrescription.vue Näytä tiedosto

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

+ 8 - 8
src/xt_pages/user/inspection.vue Näytä tiedosto

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