소스 검색

Merge remote-tracking branch 'origin/20230223_pc_vue_new_branch' into 20230223_pc_vue_new_branch

yq1 8 달 전
부모
커밋
03daa2a738

+ 5 - 1
src/xt_pages/dialysis/details/dialog/dialysisPrescriptionDialog.vue 파일 보기

43
             </span>
43
             </span>
44
 
44
 
45
             <span style="position: absolute;left: 80%;top: 3%" v-if="this.$store.getters.xt_user.template_info.org_id == 0 || this.$store.getters.xt_user.template_info.org_id ==10702">
45
             <span style="position: absolute;left: 80%;top: 3%" v-if="this.$store.getters.xt_user.template_info.org_id == 0 || this.$store.getters.xt_user.template_info.org_id ==10702">
46
-              体重增长:{{predialysis&&((predialysis.weight_before - predialysis.additional_weight)-(last_record.weight_after-last_record.additional_weight)).toFixed(2)?((predialysis.weight_before - predialysis.additional_weight)-(last_record.weight_after-last_record.additional_weight)).toFixed(2):"" }} kg
46
+              体重增长:
47
+              <span v-if="predialysis!=null && last_record!=null">
48
+                {{predialysis&&last_record&&((predialysis.weight_before - predialysis.additional_weight)-(last_record.weight_after-last_record.additional_weight)).toFixed(2)?((predialysis.weight_before - predialysis.additional_weight)-(last_record.weight_after-last_record.additional_weight)).toFixed(2):"" }} kg
49
+              </span>
50
+            
47
             
51
             
48
             </span>
52
             </span>
49
             <div class="warnTxt" v-if="showTxt != ''">{{ showTxt }}</div>
53
             <div class="warnTxt" v-if="showTxt != ''">{{ showTxt }}</div>

+ 1 - 0
src/xt_pages/stock/selfPreparedMedicine/editWarehouseInfo.vue 파일 보기

984
       },
984
       },
985
       //新
985
       //新
986
       getSelfDrugWarehouseInfoById(id){
986
       getSelfDrugWarehouseInfoById(id){
987
+        
987
         getSelfDrugWarehouseInfoById(id).then(response=>{
988
         getSelfDrugWarehouseInfoById(id).then(response=>{
988
            if(response.data.state == 1){
989
            if(response.data.state == 1){
989
              var info = response.data.data.info
990
              var info = response.data.data.info

+ 23 - 3
src/xt_pages/stock/selfPreparedMedicine/warehouseInfo.vue 파일 보기

149
 
149
 
150
         <el-table-column label="患者名称" align="center">
150
         <el-table-column label="患者名称" align="center">
151
           <template slot-scope="scope">
151
           <template slot-scope="scope">
152
-             {{scope.row.patient_id}}
152
+             {{getPatientName(scope.row.patient_id)}}
153
           </template>
153
           </template>
154
         </el-table-column>
154
         </el-table-column>
155
 
155
 
156
         <el-table-column label="制单人" align="center">
156
         <el-table-column label="制单人" align="center">
157
           <template slot-scope="scope">
157
           <template slot-scope="scope">
158
-            {{scope.row.creater}}
158
+            {{getAdminUserName(scope.row.creater)}}
159
           </template>
159
           </template>
160
         </el-table-column>
160
         </el-table-column>
161
 
161
 
459
       dealerList:[],
459
       dealerList:[],
460
       drugTypeList:[],
460
       drugTypeList:[],
461
       isShow:false,
461
       isShow:false,
462
+      doctorList:[],
462
     };
463
     };
463
   },
464
   },
464
 
465
 
480
           console.log("list",list)
481
           console.log("list",list)
481
           var total = response.data.data.total
482
           var total = response.data.data.total
482
           this.total = total
483
           this.total = total
484
+          this.doctorList = response.data.data.doctorList
483
           console.log("total",total)
485
           console.log("total",total)
484
         }
486
         }
485
       })
487
       })
616
     },
618
     },
617
 
619
 
618
     handleEdit: function (index, row) {
620
     handleEdit: function (index, row) {
619
-
621
+      
620
       this.$router.push({path:"/stock/selfwarehouse/info/edit?id="+row.id+"&is_sys="+row.is_sys+"&is_check="+row.is_check})
622
       this.$router.push({path:"/stock/selfwarehouse/info/edit?id="+row.id+"&is_sys="+row.is_sys+"&is_check="+row.is_check})
621
       
623
       
622
     },
624
     },
957
           }
959
           }
958
         }
960
         }
959
         return dealer_name
961
         return dealer_name
962
+      },
963
+      getPatientName(id){
964
+         var name = ""
965
+         for(let i=0;i<this.patientList.length;i++){
966
+            if(id == this.patientList[i].id){
967
+               name = this.patientList[i].name
968
+            }
969
+         }
970
+         return name
971
+      },
972
+      getAdminUserName(admin_user_id){
973
+         var user_name = ""
974
+         for(let i=0;i<this.doctorList.length;i++){
975
+            if(admin_user_id == this.doctorList[i].admin_user_id){
976
+              user_name = this.doctorList[i].user_name
977
+            }
978
+         }
979
+         return user_name
960
       }
980
       }
961
     
981
     
962
    
982