28169 hace 1 año
padre
commit
c4396fbf6d

+ 0 - 12
src/xt_pages/dialysis/details/NavIgation.vue Ver fichero

@@ -603,18 +603,6 @@ export default {
603 603
         return [item.groupno];
604 604
       });
605 605
 
606
-
607
-      // var strLength = 0
608
-      // var arr = []
609
-      // if(this.his_doctor_advices!=undefined && this.his_doctor_advices.length > 0){
610
-      //   for(let i=0;i<this.his_doctor_advices.length;i++){
611
-      //     if (this.his_doctor_advices[i].execution_state == 2) {
612
-      //      arr.push(this.his_doctor_advices[i]);
613
-      //    }
614
-      //   }
615
-      //   strLength = arr.length
616
-      // }
617
-      // console.log("232332323232323223",arrOne.length + strLength);
618 606
       return sorted.length
619 607
 
620 608
     },

+ 8 - 2
src/xt_pages/dialysis/details/consumable/dialysisGood.vue Ver fichero

@@ -98,8 +98,14 @@
98 98
           :label="item.filed_name_cn"
99 99
         >
100 100
           <template slot-scope="scope">
101
-            <span v-if="scope.row.dialysis_prescription==null"> {{getName(scope.row.rowList[index].filed_name_cn,scope.row.dialysis_solution)}}</span>
102
-            <span v-if="scope.row.dialysis_prescription!=null"> {{getName(scope.row.rowList[index].filed_name_cn,scope.row.dialysis_prescription)}}</span>
101
+            <span v-if="org_id !=10599">
102
+              {{getName(scope.row.rowList[index].filed_name_cn,scope.row.dialysis_solution)}}
103
+            </span>
104
+            <span v-if="org_id==10599">
105
+              <span v-if="scope.row.dialysis_prescription==null"> {{getName(scope.row.rowList[index].filed_name_cn,scope.row.dialysis_solution)}}</span>
106
+              <span v-if="scope.row.dialysis_prescription!=null"> {{getName(scope.row.rowList[index].filed_name_cn,scope.row.dialysis_prescription)}}</span>
107
+            </span>
108
+          
103 109
             <!-- {{getName(scope.row.rowList[index].filed_name_cn,scope.row.dialysis_solution)}} -->
104 110
           </template>
105 111
 

+ 8 - 2
src/xt_pages/dialysis/details/consumable/dialysisGoodPrint.vue Ver fichero

@@ -42,8 +42,14 @@
42 42
                 <td>{{item.patient.dialysis_no}}</td>
43 43
                 <td v-for="(it,index) in rowList" :key="index">
44 44
                   <!-- {{getName(item.rowList[index].filed_name_cn,item.dialysis_solution)}} -->
45
-                  <span v-if="item.dialysis_prescription==null"> {{getName(item.rowList[index].filed_name_cn,item.dialysis_solution)}}</span>
46
-                  <span v-if="item.dialysis_prescription!=null"> {{getName(item.rowList[index].filed_name_cn,item.dialysis_prescription)}}</span>
45
+                  <span v-if="org_id !=10599">
46
+                    {{getName(item.rowList[index].filed_name_cn,item.dialysis_solution)}}
47
+                  </span>
48
+                  <span v-if="org_id==10599">
49
+                    <span v-if="item.dialysis_prescription==null"> {{getName(item.rowList[index].filed_name_cn,item.dialysis_solution)}}</span>
50
+                     <span v-if="item.dialysis_prescription!=null"> {{getName(item.rowList[index].filed_name_cn,item.dialysis_prescription)}}</span>
51
+                  </span>
52
+                
47 53
                 </td>
48 54
                </tr>
49 55
               </tbody>

+ 15 - 0
src/xt_pages/dialysis/details/dialog/assessmentBeforeDislysisDialog.vue Ver fichero

@@ -1255,6 +1255,16 @@
1255 1255
            }
1256 1256
             this.assessmentBeforeDislysis.blood_access_part_opera_id = blood_id
1257 1257
             this.assessmentBeforeDislysis.blood_access_part_id = this.lastAssessment.blood_access_part_id
1258
+            
1259
+            if(this.$store.getters.xt_user.template_info.org_id == 10375  || this.$store.getters.xt_user.template_info.org_id == 10571  || this.$store.getters.xt_user.template_info.org_id == 0){
1260
+              console.log("尽量",last_predialysis_evaluation)
1261
+              if(this.assessmentBeforeDislysis.blood_access_part_opera_id == 0 || this.assessmentBeforeDislysis.blood_access_part_opera_id==""){
1262
+                this.assessmentBeforeDislysis.blood_access_part_opera_id = last_predialysis_evaluation.blood_access_part_opera_id
1263
+                this.assessmentBeforeDislysis.blood_access_part_id = last_predialysis_evaluation.blood_access_part_id
1264
+              }
1265
+             
1266
+            }
1267
+
1258 1268
           } else {
1259 1269
             if (this.lastPredialysisEvaluation != null) {
1260 1270
                var blood_id = 0
@@ -1273,6 +1283,11 @@
1273 1283
           this.assessmentBeforeDislysis.blood_access_part_opera_id = lastAssessment.blood_access_part_opera_id
1274 1284
           this.assessmentBeforeDislysis.blood_access_part_id = lastAssessment.blood_access_part_id
1275 1285
            
1286
+        }
1287
+
1288
+        if(this.assessmentBeforeDislysis.blood_access_part_opera_id == 0 || this.assessmentBeforeDislysis.blood_access_part_opera_id==""){
1289
+            
1290
+          
1276 1291
         }
1277 1292
 
1278 1293
         } else {

+ 37 - 1
src/xt_pages/outpatientDoctorStation/components/prescriptionTemplateTable.vue Ver fichero

@@ -7,7 +7,7 @@
7 7
             <el-table-column align="center" width="50" label="序号">
8 8
                 <template slot-scope="scope">
9 9
                     <div style="display:flex;align-items:center;">
10
-                        <el-input v-model="scope.row.groupno" placeholder=""></el-input>
10
+                        <el-input v-model="scope.row.groupno" placeholder=""  @input="getAllIndex(scope.row)"></el-input>
11 11
                     </div>
12 12
                 </template>
13 13
             </el-table-column>
@@ -682,6 +682,11 @@
682 682
           { name: '每六小时一次', count: 4 },
683 683
           { name: '每八小时一次', count: 3 }
684 684
         ]
685
+        if(this.efs!=null && this.efs.length >0){
686
+          for(let i=0;i<this.efs.length;i++){
687
+             arr.push(this.efs[i])
688
+          }
689
+       }
685 690
         let num = ''
686 691
         arr.map(item => {
687 692
           if (item.name == execution_frequency) {
@@ -693,6 +698,37 @@
693 698
         }
694 699
         return num
695 700
       },
701
+      getAllIndex(val){
702
+        console.log("val",val)
703
+        console.log("prescription.advices",this.prescription.advices)
704
+        var obj = {id:0,day:"",delivery_way:"",execution_frequency:""}
705
+        if(this.prescription.advices!=null && this.prescription.advices.length>0){
706
+           for(let i=0;i<this.prescription.advices.length;i++){
707
+            console.log("this.prescription.advices[i].groupno",this.prescription.advices[i].groupno)
708
+            if(parseInt(val.groupno) == parseInt(this.prescription.advices[i].groupno) && parseInt(val.id)!= parseInt(this.prescription.advices[i].id)){
709
+              console.log("this.prescription.advices[i]",this.prescription.advices[i])
710
+               obj.id = val.id
711
+               obj.day = this.prescription.advices[i].day
712
+               obj.delivery_way = this.prescription.advices[i].delivery_way
713
+               obj.execution_frequency = this.prescription.advices[i].execution_frequency
714
+               console.log("-----------------",obj)
715
+             }
716
+           }
717
+        }
718
+        console.log("-----------------",obj)
719
+
720
+        if(this.prescription.advices!=null && this.prescription.advices.length>0){
721
+           for(let i=0;i<this.prescription.advices.length;i++){
722
+            if(this.prescription.advices[i].id == parseInt(val.id)){
723
+              console.log("进啦")
724
+              this.prescription.advices[i].delivery_way = obj.delivery_way
725
+              this.prescription.advices[i].execution_frequency =obj.execution_frequency
726
+              this.prescription.advices[i].day = obj.day
727
+             }
728
+           }
729
+        }
730
+        console.log("hahhhahdhha",this.prescription.advices)
731
+      },
696 732
     }, mounted() {
697 733
       this.getInitData()
698 734