From ecdaf11003cc26056fe1e535f8460d6ad1095d22 Mon Sep 17 00:00:00 2001 From: lichuanyang <1176537920@qq.com> Date: Tue, 6 Aug 2024 11:00:50 +0800 Subject: [PATCH] =?UTF-8?q?=E9=A1=B5=E9=9D=A2=E8=B0=83=E7=94=A8=E6=95=B0?= =?UTF-8?q?=E6=8D=AE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../applyregistration/deviceManage/index.ts | 11 ++- .../diagnosisTemplate/index.ts | 11 ++- .../applyregistration/exampartManage/index.ts | 11 ++- .../reservationInfo/index.ts | 55 +++-------- .../deviceManage/DeviceManageForm.vue | 92 +++++++++++-------- .../applyregistration/deviceManage/index.vue | 55 ++++++++--- .../DiagnosisTemplateForm.vue | 45 +++++---- .../diagnosisTemplate/index.vue | 55 ++++++++--- .../exampartManage/ExampartManageForm.vue | 45 +++++---- .../exampartManage/index.vue | 70 +++++++------- .../reservationInfo/index.vue | 42 +++++---- 11 files changed, 296 insertions(+), 196 deletions(-) diff --git a/src/api/applyregistration/deviceManage/index.ts b/src/api/applyregistration/deviceManage/index.ts index 427bc161..ad72c7b4 100644 --- a/src/api/applyregistration/deviceManage/index.ts +++ b/src/api/applyregistration/deviceManage/index.ts @@ -5,7 +5,16 @@ import request from '@/config/axios' * DeviceManageApi */ export const DeviceManageApi = { - + /* 测试方法 */ + getDepartmentList: async () => { + return await request.get({ url: `/system/department/getlist` }) + }, + getPage: async (params: any) => { + return await request.get({ url: `/test/device/page`, params }) + }, + create: async (data: any) => { + return await request.post({ url: `/test/device/create`, data }) + } } diff --git a/src/api/applyregistration/diagnosisTemplate/index.ts b/src/api/applyregistration/diagnosisTemplate/index.ts index a7cd4916..917008ef 100644 --- a/src/api/applyregistration/diagnosisTemplate/index.ts +++ b/src/api/applyregistration/diagnosisTemplate/index.ts @@ -5,7 +5,16 @@ import request from '@/config/axios' * DiagnosisTemplateApi */ export const DiagnosisTemplateApi = { - + /* 测试方法 */ + getDoctorList: async () => { + return await request.get({ url: `/doctor/getlist` }) + }, + getPage: async (params: any) => { + return await request.get({ url: `/test/reporttemplate/page`, params }) + }, + create: async (data: any) => { + return await request.post({ url: `/test/reporttemplate/create`, data }) + } } diff --git a/src/api/applyregistration/exampartManage/index.ts b/src/api/applyregistration/exampartManage/index.ts index 4c42c863..7a6170dc 100644 --- a/src/api/applyregistration/exampartManage/index.ts +++ b/src/api/applyregistration/exampartManage/index.ts @@ -5,7 +5,16 @@ import request from '@/config/axios' * ExampartManageApi */ export const ExampartManageApi = { - + /* 测试方法 */ + getOrgList: async () => { + return await request.get({ url: `/org/org/getlist` }) + }, + getPage: async (params: any) => { + return await request.get({ url: `/test/exampart/page`, params }) + }, + create: async (data: any) => { + return await request.post({ url: `/test/exampart/create`, data }) + } } diff --git a/src/api/applyregistration/reservationInfo/index.ts b/src/api/applyregistration/reservationInfo/index.ts index 87ddeec0..8812a306 100644 --- a/src/api/applyregistration/reservationInfo/index.ts +++ b/src/api/applyregistration/reservationInfo/index.ts @@ -5,47 +5,22 @@ import request from '@/config/axios' * ReservationInfoApi */ export const ReservationInfoApi = { - - - - - - - - - - - - - - /* 参考代码 */ - // 查询医生管理分页 - getPage: async (params: any) => { - return await request.get({ url: `/doctor//page`, params }) + /* 测试方法 */ + getDeviceList: async () => { + return await request.get({ url: `/test/device/getlist` }) + }, + getDepartmentList: async () => { + return await request.get({ url: `/system/department/getlist` }) + }, + getDoctorList: async () => { + return await request.get({ url: `/doctor/getlist` }) + }, + getExamitemsList: async () => { + return await request.get({ url: `/examitems/examitems/getlist` }) }, - // 查询医生管理详情 - get: async (id: number) => { - return await request.get({ url: `/doctor//get?id=` + id }) - }, - // 新增医生管理 - create: async (data: any) => { - return await request.post({ url: `/doctor//create`, data }) - }, - - // 修改医生管理 - update: async (data: any) => { - return await request.put({ url: `/doctor//update`, data }) - }, - - // 删除医生管理 - delete: async (id: number) => { - return await request.delete({ url: `/doctor//delete?id=` + id }) - }, - - // 导出医生管理 Excel - export: async (params) => { - return await request.download({ url: `/doctor//export-excel`, params }) - }, } + +/** 防空作用域 **/ +console.log(request) \ No newline at end of file diff --git a/src/views/applyregistration/deviceManage/DeviceManageForm.vue b/src/views/applyregistration/deviceManage/DeviceManageForm.vue index 088f0f40..3a054e80 100644 --- a/src/views/applyregistration/deviceManage/DeviceManageForm.vue +++ b/src/views/applyregistration/deviceManage/DeviceManageForm.vue @@ -12,42 +12,43 @@ > - + - + - - - + + + + - + - + - + - + - + - + - - - 有效 - 无效 + + + 有效 + 无效 - +
- 保存 + 保存 取消
@@ -173,20 +174,30 @@ const formData0 = ref({ }) const formData = ref({ /** 测试数据 **/ - it_1: '', - it_2: '', - it_3: '', - it_4: '', - it_5: '', - it_6: '', - it_7: '', - it_8: '', - it_9: '', - it_10: '' + departmentCode: '', + deviceType: '', + deviceName: '', + deviceModel: '', + madeCompany: '', + madeCompanyTel: '', + saleCompany: '', + saleCompanyTel: '', + deviceStatus: '1', + remark: '' }) /****** 自定义内容 ******/ /****** 可参考内容 ******/ +const emit = defineEmits(['success']) +const submitForm = async () => { + try { + const data = formData.value + await DeviceManageApi.create(data) + dialogVisible.value = false + emit('success') + } finally { + } +} const openTest = () => { dialogVisible.value = true //清空内容 @@ -195,8 +206,9 @@ const openTest = () => { /** 组件事件 **/ /** 钩子方法 **/ -onMounted(() => { +onMounted(async () => { //ceshi + departmentList.value = await DeviceManageApi.getDepartmentList() }) /** 防空作用域 **/ diff --git a/src/views/applyregistration/deviceManage/index.vue b/src/views/applyregistration/deviceManage/index.vue index 22ccfc9c..cb2b47e0 100644 --- a/src/views/applyregistration/deviceManage/index.vue +++ b/src/views/applyregistration/deviceManage/index.vue @@ -13,18 +13,18 @@ - + @@ -33,12 +33,12 @@ - 搜索 + + 搜索 + 新增 @@ -68,7 +70,15 @@ :data="list_devices" height="max(53vh,80px)" > - aaaa + + + + + +
@@ -78,11 +88,12 @@ :total="total" v-model:page="queryParams.pageNo" v-model:limit="queryParams.pageSize" + @pagination="getList" />
- + @@ -119,16 +130,30 @@ const queryParams = ref({ pageNo: 1, pageSize: 10, /** 测试数据 **/ - it_1: '', - it_2: '' + deviceDepartment: '', + deviceDesc: '' }) //表格核心 const list_devices = ref([]) -const total = ref(5) +const total = ref(0) const loading = ref(false) /****** 自定义内容 ******/ /****** 可参考内容 ******/ +const getList = async () => { + loading.value = true + try { + const data = await DeviceManageApi.getPage(queryParams.value) + list_devices.value = data.list + total.value = data.total + } finally { + loading.value = false + } +} +const handleQuery = () => { + queryParams.value.pageNo = 1 + getList() +} const openFormTest = () => { formRef.value.openTest() } @@ -136,8 +161,10 @@ const openFormTest = () => { /** 组件事件 **/ /** 钩子方法 **/ -onMounted(() => { +onMounted(async () => { //ceshi + departmentList.value = await DeviceManageApi.getDepartmentList() + getList() }) /** 防空作用域 **/ diff --git a/src/views/applyregistration/diagnosisTemplate/DiagnosisTemplateForm.vue b/src/views/applyregistration/diagnosisTemplate/DiagnosisTemplateForm.vue index 69efa9ff..f42db231 100644 --- a/src/views/applyregistration/diagnosisTemplate/DiagnosisTemplateForm.vue +++ b/src/views/applyregistration/diagnosisTemplate/DiagnosisTemplateForm.vue @@ -12,9 +12,9 @@ > - + - + - + - + @@ -71,7 +71,7 @@ @@ -108,14 +108,24 @@ const formData0 = ref({ }) const formData = ref({ /** 测试数据 **/ - it_1: '', - it_2: '', - it_3: '', - it_4: '' + templateName: '', + examDescription: '', + diagResults: '', + privateDoctorId: '' }) /****** 自定义内容 ******/ /****** 可参考内容 ******/ +const emit = defineEmits(['success']) +const submitForm = async () => { + try { + const data = formData.value + await DiagnosisTemplateApi.create(data) + dialogVisible.value = false + emit('success') + } finally { + } +} const openTest = () => { dialogVisible.value = true //清空内容 @@ -124,8 +134,9 @@ const openTest = () => { /** 组件事件 **/ /** 钩子方法 **/ -onMounted(() => { +onMounted(async () => { //ceshi + doctorList.value = await DiagnosisTemplateApi.getDoctorList() }) /** 防空作用域 **/ diff --git a/src/views/applyregistration/diagnosisTemplate/index.vue b/src/views/applyregistration/diagnosisTemplate/index.vue index 6b08ce1e..aabcc97a 100644 --- a/src/views/applyregistration/diagnosisTemplate/index.vue +++ b/src/views/applyregistration/diagnosisTemplate/index.vue @@ -13,9 +13,9 @@ - + - - - 全部 - 公共 - 私有 + + + 全部 + 公共 + 私有 - 搜索 + + 搜索 + 新增 @@ -55,7 +60,15 @@ :data="list_templates" height="max(53vh,80px)" > - aaaa + + + + + +
@@ -65,11 +78,12 @@ :total="total" v-model:page="queryParams.pageNo" v-model:limit="queryParams.pageSize" + @pagination="getList" />
- + @@ -105,16 +119,30 @@ const queryParams = ref({ pageNo: 1, pageSize: 10, /** 测试数据 **/ - it_1: '', - it_2: '' + templateName: '', + templateLimitsType: 'all' }) //表格核心 const list_templates = ref([]) -const total = ref(5) +const total = ref(0) const loading = ref(false) /****** 自定义内容 ******/ /****** 可参考内容 ******/ +const getList = async () => { + loading.value = true + try { + const data = await DiagnosisTemplateApi.getPage(queryParams.value) + list_templates.value = data.list + total.value = data.total + } finally { + loading.value = false + } +} +const handleQuery = () => { + queryParams.value.pageNo = 1 + getList() +} const openFormTest = () => { formRef.value.openTest() } @@ -124,6 +152,7 @@ const openFormTest = () => { /** 钩子方法 **/ onMounted(() => { //ceshi + getList() }) /** 防空作用域 **/ diff --git a/src/views/applyregistration/exampartManage/ExampartManageForm.vue b/src/views/applyregistration/exampartManage/ExampartManageForm.vue index ea7f599b..33aa87c0 100644 --- a/src/views/applyregistration/exampartManage/ExampartManageForm.vue +++ b/src/views/applyregistration/exampartManage/ExampartManageForm.vue @@ -12,9 +12,9 @@ > - + - + - + @@ -55,9 +55,9 @@ - +
- 保存 + 保存 取消
@@ -107,14 +107,24 @@ const formData0 = ref({ }) const formData = ref({ /** 测试数据 **/ - it_1: '', - it_2: '', - it_3: '', - it_4: '' + examPartCode: '', + examPartName: '', + orgId: '', + remark: '' }) /****** 自定义内容 ******/ /****** 可参考内容 ******/ +const emit = defineEmits(['success']) +const submitForm = async () => { + try { + const data = formData.value + await ExampartManageApi.create(data) + dialogVisible.value = false + emit('success') + } finally { + } +} const openTest = () => { dialogVisible.value = true //清空内容 @@ -123,8 +133,9 @@ const openTest = () => { /** 组件事件 **/ /** 钩子方法 **/ -onMounted(() => { +onMounted(async () => { //ceshi + orgList.value = await ExampartManageApi.getOrgList() }) /** 防空作用域 **/ diff --git a/src/views/applyregistration/exampartManage/index.vue b/src/views/applyregistration/exampartManage/index.vue index 897973fa..4edf142a 100644 --- a/src/views/applyregistration/exampartManage/index.vue +++ b/src/views/applyregistration/exampartManage/index.vue @@ -13,9 +13,9 @@ - + - + - - - - - - - - - - - 搜索 + + 搜索 + 新增 @@ -73,9 +55,17 @@ :stripe="true" :show-overflow-tooltip="true" :data="list_examparts" - height="max(48vh,80px)" + height="max(53vh,80px)" > - aaaa + + + + + +
@@ -85,11 +75,12 @@ :total="total" v-model:page="queryParams.pageNo" v-model:limit="queryParams.pageSize" + @pagination="getList" />
- + @@ -114,7 +105,6 @@ const formRef = ref() /** 数据结构 **/ const message = useMessage() const { t } = useI18n() -const orgList = ref([]) //表单核心 const queryParams0 = ref({ pageNo: 1, @@ -126,17 +116,30 @@ const queryParams = ref({ pageNo: 1, pageSize: 10, /** 测试数据 **/ - it_1: '', - it_2: '', - it_3: '' + examPartName: '', + examPartCode: '' }) //表格核心 const list_examparts = ref([]) -const total = ref(5) +const total = ref(0) const loading = ref(false) /****** 自定义内容 ******/ /****** 可参考内容 ******/ +const getList = async () => { + loading.value = true + try { + const data = await ExampartManageApi.getPage(queryParams.value) + list_examparts.value = data.list + total.value = data.total + } finally { + loading.value = false + } +} +const handleQuery = () => { + queryParams.value.pageNo = 1 + getList() +} const openFormTest = () => { formRef.value.openTest() } @@ -146,6 +149,7 @@ const openFormTest = () => { /** 钩子方法 **/ onMounted(() => { //ceshi + getList() }) /** 防空作用域 **/ diff --git a/src/views/applyregistration/reservationInfo/index.vue b/src/views/applyregistration/reservationInfo/index.vue index 539cbce5..20acf48f 100644 --- a/src/views/applyregistration/reservationInfo/index.vue +++ b/src/views/applyregistration/reservationInfo/index.vue @@ -24,9 +24,9 @@ >
@@ -53,9 +53,10 @@ clearable class="item-width" > - - - + + + +
@@ -83,9 +84,8 @@ clearable class="item-width" > - - - + +
@@ -140,9 +140,9 @@ >
@@ -160,9 +160,9 @@ >
@@ -263,9 +263,9 @@ > @@ -333,8 +333,12 @@ const queryParams = ref({ /** 组件事件 **/ /** 钩子方法 **/ -onMounted(() => { +onMounted(async () => { //ceshi + examitemsList.value = await ReservationInfoApi.getExamitemsList() + doctorList.value = await ReservationInfoApi.getDoctorList() + deviceList.value = await ReservationInfoApi.getDeviceList() + departmentList.value = await ReservationInfoApi.getDepartmentList() }) /** 防空作用域 **/