fix(database): 修复数据库字典重复和表结构缺失问题
- 删除手术状态下拉框的重复字典数据,保留每组中dict_code最小的记录 - 修复HisBaseEntity列缺失问题,为多个表添加create_by、update_by、update_time等基础字段 - 为adm_patient表添加邮政编码、户籍地址、监护人信息、患者来源等缺失字段 - 添加文化程度字典类型和相关字典数据,补充3919到3914等10个学历级别选项 - 为adm_patient_identifier表创建tenant_id和patient_id的联合索引以提升查询性能 - 修复prescription_intercept_log和clinical_pathway_execution表的基础实体字段缺失 - 为wor_device_request表增加医嘱退回相关的back_reason、performer_check_id等字段 - 创建EMPI核心表empi_person和empi_person_id_mapping用于全局患者主
This commit is contained in:
@@ -1,11 +1,21 @@
|
||||
<template>
|
||||
<el-form ref="formRef" :model="{ tableData }" :rules="rules" class="editable-table-form">
|
||||
<el-form
|
||||
ref="formRef"
|
||||
:model="{ tableData }"
|
||||
:rules="rules"
|
||||
class="editable-table-form"
|
||||
>
|
||||
<div
|
||||
v-if="showAddButton || showDeleteButton || searchFields.length > 0"
|
||||
class="editable-table-toolbar"
|
||||
>
|
||||
<div class="toolbar-left">
|
||||
<el-button v-if="showAddButton" type="primary" icon="Plus" @click="handleToolbarAdd">
|
||||
<el-button
|
||||
v-if="showAddButton"
|
||||
type="primary"
|
||||
icon="Plus"
|
||||
@click="handleToolbarAdd"
|
||||
>
|
||||
添加行
|
||||
</el-button>
|
||||
<el-button
|
||||
@@ -46,11 +56,16 @@
|
||||
:scroll-y="{ enabled: true }"
|
||||
show-overflow="title"
|
||||
v-bind="$attrs"
|
||||
class="editable-table-inner"
|
||||
@checkbox-change="handleSelectionChange"
|
||||
@checkbox-all="handleSelectionChange"
|
||||
class="editable-table-inner"
|
||||
>
|
||||
<vxe-column v-if="showSelection" type="checkbox" width="55" align="center" />
|
||||
<vxe-column
|
||||
v-if="showSelection"
|
||||
type="checkbox"
|
||||
width="55"
|
||||
align="center"
|
||||
/>
|
||||
<vxe-column
|
||||
v-if="showRowActions"
|
||||
:width="rowActionsColumnWidth"
|
||||
@@ -62,11 +77,17 @@
|
||||
v-if="showSelection && selectedRows.length > 0 && !showDeleteButton"
|
||||
style="display: flex; align-items: center; justify-content: center; gap: 4px"
|
||||
>
|
||||
<el-button type="danger" size="small" icon="Delete" link @click="handleDeleteSelected">
|
||||
<el-button
|
||||
type="danger"
|
||||
size="small"
|
||||
icon="Delete"
|
||||
link
|
||||
@click="handleDeleteSelected"
|
||||
>
|
||||
删除选中({{ selectedRows.length }})
|
||||
</el-button>
|
||||
</div>
|
||||
<span v-else></span>
|
||||
<span v-else />
|
||||
</template>
|
||||
<template #default="{ row, rowIndex }">
|
||||
<el-button
|
||||
@@ -75,8 +96,8 @@
|
||||
link
|
||||
icon="CirclePlus"
|
||||
class="action-btn"
|
||||
@click="handleAdd(rowIndex)"
|
||||
title="增加"
|
||||
@click="handleAdd(rowIndex)"
|
||||
/>
|
||||
<el-button
|
||||
v-if="showRowDeleteButton"
|
||||
@@ -84,8 +105,8 @@
|
||||
link
|
||||
icon="Delete"
|
||||
class="action-btn"
|
||||
@click="handleDelete(rowIndex)"
|
||||
title="删除"
|
||||
@click="handleDelete(rowIndex)"
|
||||
/>
|
||||
</template>
|
||||
</vxe-column>
|
||||
@@ -116,7 +137,12 @@
|
||||
@input="col.onInput && col.onInput(row, rowIndex)"
|
||||
@change="col.onChange && col.onChange(row, rowIndex)"
|
||||
>
|
||||
<template v-if="col.suffix" #suffix>{{ col.suffix }}</template>
|
||||
<template
|
||||
v-if="col.suffix"
|
||||
#suffix
|
||||
>
|
||||
{{ col.suffix }}
|
||||
</template>
|
||||
</el-input>
|
||||
</el-form-item>
|
||||
</template>
|
||||
@@ -209,7 +235,11 @@
|
||||
:rules="col.rules"
|
||||
style="margin-bottom: 0"
|
||||
>
|
||||
<slot :name="col.slot || col.prop" :row="row" :index="rowIndex" />
|
||||
<slot
|
||||
:name="col.slot || col.prop"
|
||||
:row="row"
|
||||
:index="rowIndex"
|
||||
/>
|
||||
</el-form-item>
|
||||
</template>
|
||||
|
||||
@@ -223,8 +253,14 @@
|
||||
</template>
|
||||
</vxe-column>
|
||||
</vxe-table>
|
||||
<div v-if="$slots.footer" class="editable-table-footer">
|
||||
<slot name="footer" :tableData="tableData" />
|
||||
<div
|
||||
v-if="$slots.footer"
|
||||
class="editable-table-footer"
|
||||
>
|
||||
<slot
|
||||
name="footer"
|
||||
:table-data="tableData"
|
||||
/>
|
||||
</div>
|
||||
</el-form>
|
||||
</template>
|
||||
|
||||
Reference in New Issue
Block a user