|
@@ -4,6 +4,7 @@ import { ElTable } from "element-plus";
|
|
|
import { computed, ref } from "vue";
|
|
|
import { copyAsDataSource } from "@/views/hospitalization/zhu-yuan-yi-sheng/electronic-medical-record/emr-editor/emr-init";
|
|
|
import { isArray } from "xe-utils";
|
|
|
+import { stringNotBlank } from "@/utils/blank-utils";
|
|
|
|
|
|
const tableRef = useCompRef(ElTable);
|
|
|
const data = ref<{
|
|
@@ -136,6 +137,17 @@ const getSelectedStr = (): string => {
|
|
|
return data;
|
|
|
};
|
|
|
|
|
|
+function getValue<T>(data: T, ...keys: (keyof T)[]) {
|
|
|
+ for (let i = 0; i < keys.length; i++) {
|
|
|
+ const key = keys[i];
|
|
|
+ console.log(data, data[key], key);
|
|
|
+ if (stringNotBlank(data[key])) {
|
|
|
+ return data[key];
|
|
|
+ }
|
|
|
+ }
|
|
|
+ return "";
|
|
|
+}
|
|
|
+
|
|
|
defineExpose({
|
|
|
selectedData,
|
|
|
setData,
|
|
@@ -177,11 +189,7 @@ defineExpose({
|
|
|
<template v-else>
|
|
|
<el-table-column type="selection"></el-table-column>
|
|
|
<el-table-column label="名称" prop="itm_name"></el-table-column>
|
|
|
- <el-table-column label="结果">
|
|
|
- <template #default="{ row }">
|
|
|
- {{ row.rslt_strs || row.itm_str_value }}
|
|
|
- </template>
|
|
|
- </el-table-column>
|
|
|
+ <el-table-column label="结果" prop="bac_name_cn"> </el-table-column>
|
|
|
</template>
|
|
|
</el-table>
|
|
|
</template>
|