Browse Source

drg分组异步查询

xiaochan 2 years ago
parent
commit
32ebdccdc6

+ 11 - 6
src/views/hospitalization/zhu-yuan-yi-sheng/public-js/zhu-yuan-yi-sheng.ts

@@ -18,7 +18,12 @@ export const huanZheXinXi = ref<{
     admissTimes: number,
     ledgerSn: number
     admissDate: string
-}>({ledgerSn: 0, admissTimes: 0, inpatientNo: null, admissDate: ''})
+    groupInfoName: string;
+    groupInfoWeight: string;
+    groupInfoBl: string
+    setGroupInfoProfit: string
+    groupInfoFeeStand: string
+}>({groupInfoBl: "", groupInfoFeeStand: "", groupInfoName: "", groupInfoWeight: "", setGroupInfoProfit: "", ledgerSn: 0, admissTimes: 0, inpatientNo: null, admissDate: ''})
 // 是否点击了修改整个模板
 export const muBanMing = ref({})
 // 错误信息
@@ -616,11 +621,11 @@ export const clickOnThePatient = async (patNo: string) => {
     huanZheXinXi.value = await getPatientInfo(patNo) as any;
     getDrgPatInfo(huanZheXinXi.value).then(res => {
         if (res != null) {
-            huanZheXinXi.value.groupInfoName = res.name
-            huanZheXinXi.value.groupInfoWeight = res.weight
-            huanZheXinXi.value.groupInfoBl = res.groupInfoBl
-            huanZheXinXi.value.setGroupInfoProfit = res.profit
-            huanZheXinXi.value.groupInfoFeeStand = res.fee_stand
+            huanZheXinXi.value.groupInfoName = res['name']
+            huanZheXinXi.value.groupInfoWeight = res['weight']
+            huanZheXinXi.value.groupInfoBl = res['groupInfoBl']
+            huanZheXinXi.value.setGroupInfoProfit = res['profit']
+            huanZheXinXi.value.groupInfoFeeStand = res['fee_stand']
         }
     })
     if (yzMitt.exists('queryYz')) {