医生管理和检查项目管理增加字典项

This commit is contained in:
lxd 2024-08-26 11:11:03 +08:00
parent b0ada463a6
commit 683b43789a
3 changed files with 28 additions and 6 deletions

View File

@ -24,4 +24,8 @@ export const ExampartManageApi = {
delete: async (id: any) => {
return await request.delete({ url: `/test/exampart/delete?id=` + id })
},
getexampartlist: async () => {
return await request.get({ url: `/test/exampart/getlist` })
},
}

View File

@ -29,7 +29,12 @@
</el-form-item>
<el-form-item label="所属科室" prop="departmentName">
<el-select v-model="formData.departmentName" placeholder="请选择科室">
<el-option label="影像科" value="影像科" />
<el-option
v-for="item in fordepartementData"
:key="item.id"
:label="item.departmentName"
:value="item.departmentName"
/>
</el-select>
</el-form-item>
<el-form-item label="医生联系电话" prop="doctorTel">
@ -90,12 +95,13 @@ import { Api, VO, baseFile } from '@/api/system/doctor'
import { error } from 'console'
import type { UploadProps, UploadUserFile } from 'element-plus'
import { OrgApi } from '@/api/system/org'
import { DepartmentApi } from '@/api/system/department'
//base64
const imageBase64 = ref()
//
const imagefilename = ref()
//
const fordepartementData = ref<any[]>([])
/** 医生管理 表单 */
defineOptions({ name: 'Form' })
//
@ -138,7 +144,8 @@ const open = async (type: string, id?: number) => {
resetForm()
//
fororglistData.value=await OrgApi.getOrglist()
//
fordepartementData.value = await DepartmentApi.getDepartmentList()
//
if (id) {
formLoading.value = true

View File

@ -40,7 +40,14 @@
/>
</el-form-item>
<el-form-item label="检查部位代码" prop="examPartCode" label-width="111px">
<el-input v-model="formData.examPartCode" placeholder="请选择检查部位代码" />
<el-select v-model="formData.examPartCode" placeholder="请选择检查部位代码" clearable>
<el-option
v-for="item in forexamitemsData"
:key="item.ID"
:label="item.examPartCode"
:value="item.examPartCode"
/>
</el-select>
</el-form-item>
<el-form-item label="机构名称" prop="orgId" label-width="111px">
<el-select v-model="formData.orgId" placeholder="请选择机构" clearable>
@ -84,12 +91,14 @@
<script setup lang="ts">
import { examitemsApi, examitemsVO } from '@/api/system/examitems'
import { OrgApi } from '@/api/system/org'
import { ExampartManageApi } from '@/api/applyregistration/exampartManage'
/** 检查部位 表单 */
defineOptions({ name: 'ExamitemsForm' })
const { t } = useI18n() //
const message = useMessage() //
//
const forexamitemsData = ref<any[]>([])
//
const fororglistData = ref<any[]>([])
const dialogVisible = ref(false) //
@ -126,6 +135,8 @@ const open = async (type: string, id?: number) => {
formType.value = type
//
fororglistData.value = await OrgApi.getOrglist()
//
forexamitemsData.value= await ExampartManageApi.getexampartlist()
resetForm()
//
if (id) {