Browse Source

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

yq1 8 months ago
parent
commit
03daa2a738

+ 5 - 1
src/xt_pages/dialysis/details/dialog/dialysisPrescriptionDialog.vue View File

@@ -43,7 +43,11 @@
43 43
             </span>
44 44
 
45 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 52
             </span>
49 53
             <div class="warnTxt" v-if="showTxt != ''">{{ showTxt }}</div>

+ 1 - 0
src/xt_pages/stock/selfPreparedMedicine/editWarehouseInfo.vue View File

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

+ 23 - 3
src/xt_pages/stock/selfPreparedMedicine/warehouseInfo.vue View File

@@ -149,13 +149,13 @@
149 149
 
150 150
         <el-table-column label="患者名称" align="center">
151 151
           <template slot-scope="scope">
152
-             {{scope.row.patient_id}}
152
+             {{getPatientName(scope.row.patient_id)}}
153 153
           </template>
154 154
         </el-table-column>
155 155
 
156 156
         <el-table-column label="制单人" align="center">
157 157
           <template slot-scope="scope">
158
-            {{scope.row.creater}}
158
+            {{getAdminUserName(scope.row.creater)}}
159 159
           </template>
160 160
         </el-table-column>
161 161
 
@@ -459,6 +459,7 @@ export default {
459 459
       dealerList:[],
460 460
       drugTypeList:[],
461 461
       isShow:false,
462
+      doctorList:[],
462 463
     };
463 464
   },
464 465
 
@@ -480,6 +481,7 @@ export default {
480 481
           console.log("list",list)
481 482
           var total = response.data.data.total
482 483
           this.total = total
484
+          this.doctorList = response.data.data.doctorList
483 485
           console.log("total",total)
484 486
         }
485 487
       })
@@ -616,7 +618,7 @@ export default {
616 618
     },
617 619
 
618 620
     handleEdit: function (index, row) {
619
-
621
+      
620 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,6 +959,24 @@ export default {
957 959
           }
958 960
         }
959 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