|
|
@@ -22,7 +22,7 @@
|
|
|
身份证号:{{ huanZheXinXi.socialNo }}
|
|
|
</div>
|
|
|
<div>
|
|
|
- 出生日期:{{ huanZheXinXi.birthDate }} {{ huanZheXinXi.age }} 岁
|
|
|
+ 出生日期:{{ huanZheXinXi.birthDate }} {{ companyFunc(huanZheXinXi.age, '岁') }}
|
|
|
</div>
|
|
|
<div>
|
|
|
性别:{{ huanZheXinXi.sexName }}
|
|
|
@@ -32,7 +32,7 @@
|
|
|
</div>
|
|
|
<div>
|
|
|
入院日期:{{ huanZheXinXi.admissDate }}
|
|
|
- {{ huanZheXinXi.actIptDays }}天
|
|
|
+ {{ companyFunc(huanZheXinXi.actIptDays, '天') }}
|
|
|
</div>
|
|
|
</div>
|
|
|
|
|
|
@@ -82,6 +82,7 @@
|
|
|
|
|
|
import {isDev, needRule} from "@/utils/public";
|
|
|
import {clickOnThePatient} from "@/views/hospitalization/zhu-yuan-yi-sheng/public-js/zhu-yuan-yi-sheng";
|
|
|
+import {stringNotBlank} from "@/utils/blank-utils";
|
|
|
|
|
|
const props = defineProps({
|
|
|
huanZheXinXi: {
|
|
|
@@ -89,12 +90,20 @@ const props = defineProps({
|
|
|
}
|
|
|
})
|
|
|
|
|
|
-const collapse = ref("1")
|
|
|
+const collapse = ref("0")
|
|
|
|
|
|
const queryPatientInfoClick = () => {
|
|
|
clickOnThePatient(props.huanZheXinXi.inpatientNo)
|
|
|
}
|
|
|
|
|
|
+const companyFunc = (val, company) => {
|
|
|
+ if (stringNotBlank(val)) {
|
|
|
+ return val + company
|
|
|
+ } else {
|
|
|
+ return ''
|
|
|
+ }
|
|
|
+}
|
|
|
+
|
|
|
</script>
|
|
|
|
|
|
<style lang="scss" scoped>
|