Browse Source

优化项目录入

DESKTOP-0GD05B0\Administrator 2 years ago
parent
commit
9daa8afc3a
1 changed files with 4 additions and 17 deletions
  1. 4 17
      src/components/inpatient/XiangMuLuRu.vue

+ 4 - 17
src/components/inpatient/XiangMuLuRu.vue

@@ -525,21 +525,7 @@ const handleCurrentChange = (val) => {
   patient.value.currentPage = val
   handleQueryFeiYong()
 }
-/**
- * 获取项目名称
- */
-const chargeCodeNameData = ref([])
 
-/**
- * 远程搜索
- */
-const remoteMethodChargeCode = (val) => {
-  if (val.length >= 2) {
-    getChargeCode(val).then((res) => {
-      chargeCodeNameData.value = res
-    })
-  }
-}
 /**
  * 获取多选框的值
  */
@@ -785,15 +771,16 @@ const setDefault = () => {
   zhiXingKeShi.value = patient.value.zkWard
 }
 
-onMounted(() => {
+onMounted(async () => {
   if (!baseinfo().inpatientNo) {
-    jinRuPanDuanSFXieDaiHuanZheXinXi()
+    await jinRuPanDuanSFXieDaiHuanZheXinXi()
   } else {
     patient.value = clone(baseinfo())
     panDuanSFTongGuoBingShiJinRu.value = true
+    await nextTick()
+    setDefault()
     queryFeiYong()
   }
-  setDefault()
 
   getDept().then((res) => {
     deptData.value = res