医生管理和检查项目管理增加字典项
This commit is contained in:
parent
b0ada463a6
commit
683b43789a
@ -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` })
|
||||
},
|
||||
|
||||
}
|
||||
|
@ -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
|
||||
|
@ -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) {
|
||||
|
Loading…
Reference in New Issue
Block a user