版本更新

This commit is contained in:
Zhang.WH
2025-10-16 17:38:08 +08:00
parent f515bb8fbb
commit e4c5f36f2e
488 changed files with 41436 additions and 2901 deletions

View File

@@ -31,17 +31,20 @@
</el-col> -->
</el-row>
<el-table
ref="diagnosisDefinitionRef"
:data="diagnosisDefinitionList"
row-key="patientId"
@cell-click="clickRow"
highlight-current-row
@selection-change="handleSelectionChange"
>
<el-table-column label="诊断名称" align="center" prop="name" />
<el-table-column label="医保编码" align="center" prop="ybNo" />
</el-table>
<el-scrollbar height="400px">
<el-table
ref="diagnosisDefinitionRef"
:data="diagnosisDefinitionList"
row-key="patientId"
@cell-click="clickRow"
highlight-current-row
@selection-change="handleSelectionChange"
>
<el-table-column label="诊断名称" align="center" prop="name" />
<el-table-column label="医保编码" align="center" prop="ybNo" />
</el-table>
</el-scrollbar>
<pagination
v-show="total > 0"
:total="total"
@@ -58,10 +61,10 @@
</template>
</el-dialog>
</template>
<script setup>
import { computed } from "vue";
import { getDiagnosisDefinitionList, saveDiagnosisBind } from "../api";
import { computed } from 'vue';
import { getDiagnosisDefinitionList, saveDiagnosisBind } from '../api';
const radio = ref(1);
const props = defineProps({
@@ -74,7 +77,7 @@ const props = defineProps({
default: '',
},
});
const emit = defineEmits(["close"]);
const emit = defineEmits(['close']);
const total = ref(0);
const queryParams = ref({
pageNo: 1,
@@ -83,7 +86,7 @@ const queryParams = ref({
const diagnosisDefinitionList = ref([]);
const selectRow = ref({});
const title = computed(() => {
return props.radio == "个人" ? "个人常用诊断" : "科室常用诊断";
return props.radio == '个人' ? '个人常用诊断' : '科室常用诊断';
});
getList();
@@ -98,10 +101,10 @@ function submit() {
saveDiagnosisBind({
definitionId: selectRow.value.id,
definitionName: selectRow.value.name,
bindingEnum: props.radio == "个人" ? 1 : 2,
bindingEnum: props.radio == '个人' ? 1 : 2,
}).then((res) => {
if (res.code == 200) {
emit("close", "success");
emit('close', 'success');
}
});
}
@@ -111,7 +114,7 @@ function queryDiagnosisUse() {
}
function close() {
emit("close");
emit('close');
}
function clickRow(row) {
@@ -120,7 +123,11 @@ function clickRow(row) {
</script>
<style scoped>
:deep( .pagination-container .el-pagination) {
:deep(.pagination-container .el-pagination) {
right: 20px !important;
}
</style>
:deep(.el-dialog__body) {
max-height: 10vh; /* 设置最大高度为视口高度的 60% */
overflow-y: auto; /* 超出时显示纵向滚动条 */
}
</style>