页面调用数据
This commit is contained in:
parent
89e9ff4298
commit
ecdaf11003
@ -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 })
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
@ -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 })
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
@ -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 })
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
@ -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)
|
@ -12,42 +12,43 @@
|
||||
>
|
||||
<el-row>
|
||||
<el-col :span="12">
|
||||
<el-form-item label="科室" prop="it_1" class="item-style">
|
||||
<el-form-item label="科室" prop="departmentCode" class="item-style">
|
||||
<el-select
|
||||
v-model="formData.it_1"
|
||||
v-model="formData.departmentCode"
|
||||
placeholder="请选择科室"
|
||||
clearable
|
||||
class="item-width"
|
||||
>
|
||||
<el-option
|
||||
v-for="item in departmentList"
|
||||
:key="item.value"
|
||||
:label="item.label"
|
||||
:value="item.value"
|
||||
:key="item.id"
|
||||
:label="item.departmentName"
|
||||
:value="item.id"
|
||||
/>
|
||||
</el-select>
|
||||
</el-form-item>
|
||||
</el-col>
|
||||
<el-col :span="12">
|
||||
<el-form-item label="设备类型" prop="it_2" class="item-style">
|
||||
<el-form-item label="设备类型" prop="deviceType" class="item-style">
|
||||
<el-select
|
||||
v-model="formData.it_2"
|
||||
v-model="formData.deviceType"
|
||||
placeholder="请选择设备类型"
|
||||
clearable
|
||||
class="item-width"
|
||||
>
|
||||
<el-option label="xxxxx" value="xxxxx" />
|
||||
<el-option label="xxxxx" value="xxxxx" />
|
||||
<el-option label="xxxxx" value="xxxxx" />
|
||||
<el-option label="DR" value="DR" />
|
||||
<el-option label="CT" value="CT" />
|
||||
<el-option label="MR" value="MR" />
|
||||
<el-option label="超声" value="超声" />
|
||||
</el-select>
|
||||
</el-form-item>
|
||||
</el-col>
|
||||
</el-row>
|
||||
<el-row>
|
||||
<el-col :span="12">
|
||||
<el-form-item label="名称" prop="it_3" class="item-style">
|
||||
<el-form-item label="名称" prop="deviceName" class="item-style">
|
||||
<el-input
|
||||
v-model="formData.it_3"
|
||||
v-model="formData.deviceName"
|
||||
placeholder="请输入名称"
|
||||
clearable
|
||||
class="item-width"
|
||||
@ -55,9 +56,9 @@
|
||||
</el-form-item>
|
||||
</el-col>
|
||||
<el-col :span="12">
|
||||
<el-form-item label="型号" prop="it_4" class="item-style">
|
||||
<el-form-item label="型号" prop="deviceModel" class="item-style">
|
||||
<el-input
|
||||
v-model="formData.it_4"
|
||||
v-model="formData.deviceModel"
|
||||
placeholder="请输入型号"
|
||||
clearable
|
||||
class="item-width"
|
||||
@ -67,9 +68,9 @@
|
||||
</el-row>
|
||||
<el-row>
|
||||
<el-col :span="12">
|
||||
<el-form-item label="生产商" prop="it_5" class="item-style">
|
||||
<el-form-item label="生产商" prop="madeCompany" class="item-style">
|
||||
<el-input
|
||||
v-model="formData.it_5"
|
||||
v-model="formData.madeCompany"
|
||||
placeholder="请输入生产商"
|
||||
clearable
|
||||
class="item-width"
|
||||
@ -77,9 +78,9 @@
|
||||
</el-form-item>
|
||||
</el-col>
|
||||
<el-col :span="12">
|
||||
<el-form-item label="生产商电话" prop="it_6" class="item-style">
|
||||
<el-form-item label="生产商电话" prop="madeCompanyTel" class="item-style">
|
||||
<el-input
|
||||
v-model="formData.it_6"
|
||||
v-model="formData.madeCompanyTel"
|
||||
placeholder="请输入生产商电话"
|
||||
clearable
|
||||
class="item-width"
|
||||
@ -89,9 +90,9 @@
|
||||
</el-row>
|
||||
<el-row>
|
||||
<el-col :span="12">
|
||||
<el-form-item label="销售商" prop="it_7" class="item-style">
|
||||
<el-form-item label="销售商" prop="saleCompany" class="item-style">
|
||||
<el-input
|
||||
v-model="formData.it_7"
|
||||
v-model="formData.saleCompany"
|
||||
placeholder="请输入销售商"
|
||||
clearable
|
||||
class="item-width"
|
||||
@ -99,9 +100,9 @@
|
||||
</el-form-item>
|
||||
</el-col>
|
||||
<el-col :span="12">
|
||||
<el-form-item label="销售商电话" prop="it_8" class="item-style">
|
||||
<el-form-item label="销售商电话" prop="saleCompanyTel" class="item-style">
|
||||
<el-input
|
||||
v-model="formData.it_8"
|
||||
v-model="formData.saleCompanyTel"
|
||||
placeholder="请输入销售商电话"
|
||||
clearable
|
||||
class="item-width"
|
||||
@ -111,19 +112,19 @@
|
||||
</el-row>
|
||||
<el-row>
|
||||
<el-col :span="6">
|
||||
<el-form-item label="设备状态" prop="it_9" class="item-style">
|
||||
<el-radio-group v-model="formData.it_9" class="item-width radio-group">
|
||||
<el-radio value="有效" style="margin-left: 8px; margin-right: 10px">有效</el-radio>
|
||||
<el-radio value="无效" style="margin-right: 10px">无效</el-radio>
|
||||
<el-form-item label="设备状态" prop="deviceStatus" class="item-style">
|
||||
<el-radio-group v-model="formData.deviceStatus" class="item-width radio-group">
|
||||
<el-radio value="1" style="margin-left: 8px; margin-right: 10px">有效</el-radio>
|
||||
<el-radio value="0" style="margin-right: 10px">无效</el-radio>
|
||||
</el-radio-group>
|
||||
</el-form-item>
|
||||
</el-col>
|
||||
</el-row>
|
||||
<el-row>
|
||||
<el-col :span="24">
|
||||
<el-form-item label="备注" prop="it_10" class="item-style">
|
||||
<el-form-item label="备注" prop="remark" class="item-style">
|
||||
<el-input
|
||||
v-model="formData.it_10"
|
||||
v-model="formData.remark"
|
||||
placeholder="请输入备注"
|
||||
type="textarea"
|
||||
:autosize="{ minRows: 6, maxRows: 9 }"
|
||||
@ -136,7 +137,7 @@
|
||||
|
||||
<template #footer>
|
||||
<div style="text-align: center">
|
||||
<el-button type="primary" @click="dialogVisible = true">保存</el-button>
|
||||
<el-button type="primary" @click="submitForm">保存</el-button>
|
||||
<el-button @click="dialogVisible = false">取消</el-button>
|
||||
</div>
|
||||
</template>
|
||||
@ -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()
|
||||
})
|
||||
|
||||
/** 防空作用域 **/
|
||||
|
@ -13,18 +13,18 @@
|
||||
<el-row>
|
||||
<el-col :span="9">
|
||||
<!-- Notes: -->
|
||||
<el-form-item label="科室" prop="it_1" class="item-style">
|
||||
<el-form-item label="科室" prop="deviceDepartment" class="item-style">
|
||||
<el-select
|
||||
v-model="queryParams.it_1"
|
||||
v-model="queryParams.deviceDepartment"
|
||||
placeholder="请选择科室"
|
||||
clearable
|
||||
class="item-width"
|
||||
>
|
||||
<el-option
|
||||
v-for="item in departmentList"
|
||||
:key="item.value"
|
||||
:label="item.label"
|
||||
:value="item.value"
|
||||
:key="item.id"
|
||||
:label="item.departmentName"
|
||||
:value="item.departmentName"
|
||||
/>
|
||||
</el-select>
|
||||
</el-form-item>
|
||||
@ -33,12 +33,12 @@
|
||||
<!-- Notes: -->
|
||||
<el-form-item
|
||||
label="名称/拼音码/型号"
|
||||
prop="it_2"
|
||||
prop="deviceDesc"
|
||||
label-width="120px"
|
||||
class="item-style"
|
||||
>
|
||||
<el-input
|
||||
v-model="queryParams.it_2"
|
||||
v-model="queryParams.deviceDesc"
|
||||
placeholder="请输入名称/拼音码/型号"
|
||||
clearable
|
||||
class="item-width"
|
||||
@ -48,7 +48,9 @@
|
||||
<el-col :span="5">
|
||||
<!-- Notes: -->
|
||||
<el-form-item class="item-style">
|
||||
<el-button> <Icon icon="ep:search" class="mr-5px" /> 搜索 </el-button>
|
||||
<el-button @click="handleQuery">
|
||||
<Icon icon="ep:search" class="mr-5px" /> 搜索
|
||||
</el-button>
|
||||
<el-button type="primary" plain @click="openFormTest()">
|
||||
<Icon icon="ep:plus" class="mr-5px" /> 新增
|
||||
</el-button>
|
||||
@ -68,7 +70,15 @@
|
||||
:data="list_devices"
|
||||
height="max(53vh,80px)"
|
||||
>
|
||||
aaaa
|
||||
<el-table-column label="科室名称" align="center" prop="deviceDepartment" />
|
||||
<el-table-column label="名称" align="center" prop="deviceName" />
|
||||
<el-table-column label="型号" align="center" prop="deviceModel" />
|
||||
<el-table-column label="操作" align="center">
|
||||
<template #default>
|
||||
<el-button link type="primary"> 编辑 </el-button>
|
||||
<el-button link type="danger"> 删除 </el-button>
|
||||
</template>
|
||||
</el-table-column>
|
||||
<!-- 数据列 -->
|
||||
</el-table>
|
||||
<div style="display: flex; justify-content: center">
|
||||
@ -78,11 +88,12 @@
|
||||
:total="total"
|
||||
v-model:page="queryParams.pageNo"
|
||||
v-model:limit="queryParams.pageSize"
|
||||
@pagination="getList"
|
||||
/>
|
||||
</div>
|
||||
</ContentWrap>
|
||||
|
||||
<DeviceManageForm ref="formRef" />
|
||||
<DeviceManageForm ref="formRef" @success="getList" />
|
||||
<!-- 可参考内容 -->
|
||||
</div>
|
||||
</template>
|
||||
@ -119,16 +130,30 @@ const queryParams = ref({
|
||||
pageNo: 1,
|
||||
pageSize: 10,
|
||||
/** 测试数据 **/
|
||||
it_1: '',
|
||||
it_2: ''
|
||||
deviceDepartment: '',
|
||||
deviceDesc: ''
|
||||
})
|
||||
//表格核心
|
||||
const list_devices = ref<any[]>([])
|
||||
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()
|
||||
})
|
||||
|
||||
/** 防空作用域 **/
|
||||
|
@ -12,9 +12,9 @@
|
||||
>
|
||||
<el-row>
|
||||
<el-col :span="24">
|
||||
<el-form-item label="节点" prop="it_1" class="item-style">
|
||||
<el-form-item label="节点" prop="templateName" class="item-style">
|
||||
<el-input
|
||||
v-model="formData.it_1"
|
||||
v-model="formData.templateName"
|
||||
placeholder="请输入节点"
|
||||
clearable
|
||||
class="item-width"
|
||||
@ -24,9 +24,9 @@
|
||||
</el-row>
|
||||
<el-row>
|
||||
<el-col :span="24">
|
||||
<el-form-item label="所见" prop="it_2" class="item-style">
|
||||
<el-form-item label="所见" prop="examDescription" class="item-style">
|
||||
<el-input
|
||||
v-model="formData.it_2"
|
||||
v-model="formData.examDescription"
|
||||
placeholder="请输入所见"
|
||||
type="textarea"
|
||||
:autosize="{ minRows: 4, maxRows: 9 }"
|
||||
@ -37,9 +37,9 @@
|
||||
</el-row>
|
||||
<el-row>
|
||||
<el-col :span="24">
|
||||
<el-form-item label="所得" prop="it_3" class="item-style">
|
||||
<el-form-item label="所得" prop="diagResults" class="item-style">
|
||||
<el-input
|
||||
v-model="formData.it_3"
|
||||
v-model="formData.diagResults"
|
||||
placeholder="请输入所得"
|
||||
type="textarea"
|
||||
:autosize="{ minRows: 4, maxRows: 9 }"
|
||||
@ -50,18 +50,18 @@
|
||||
</el-row>
|
||||
<el-row>
|
||||
<el-col :span="12">
|
||||
<el-form-item label="医生" prop="it_4" class="item-style">
|
||||
<el-form-item label="医生" prop="privateDoctorId" class="item-style">
|
||||
<el-select
|
||||
v-model="formData.it_4"
|
||||
v-model="formData.privateDoctorId"
|
||||
placeholder="请选择医生"
|
||||
clearable
|
||||
class="item-width"
|
||||
>
|
||||
<el-option
|
||||
v-for="item in doctorList"
|
||||
:key="item.value"
|
||||
:label="item.label"
|
||||
:value="item.value"
|
||||
:key="item.doctorID"
|
||||
:label="item.doctorName"
|
||||
:value="item.doctorID"
|
||||
/>
|
||||
</el-select>
|
||||
</el-form-item>
|
||||
@ -71,7 +71,7 @@
|
||||
|
||||
<template #footer>
|
||||
<div style="text-align: center">
|
||||
<el-button type="primary" @click="dialogVisible = true">保存</el-button>
|
||||
<el-button type="primary" @click="submitForm">保存</el-button>
|
||||
<el-button @click="dialogVisible = false">取消</el-button>
|
||||
</div>
|
||||
</template>
|
||||
@ -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()
|
||||
})
|
||||
|
||||
/** 防空作用域 **/
|
||||
|
@ -13,9 +13,9 @@
|
||||
<el-row>
|
||||
<el-col :span="8">
|
||||
<!-- Notes: -->
|
||||
<el-form-item label="节点" prop="it_1" class="item-style">
|
||||
<el-form-item label="节点" prop="templateName" class="item-style">
|
||||
<el-input
|
||||
v-model="queryParams.it_1"
|
||||
v-model="queryParams.templateName"
|
||||
placeholder="请输入节点"
|
||||
clearable
|
||||
class="item-width"
|
||||
@ -24,18 +24,23 @@
|
||||
</el-col>
|
||||
<el-col :span="6">
|
||||
<!-- Notes: -->
|
||||
<el-form-item label="模板类型" prop="it_2" class="item-style">
|
||||
<el-radio-group v-model="queryParams.it_2" class="item-width radio-group">
|
||||
<el-radio value="全部" style="margin-left: 12px; margin-right: 20px">全部</el-radio>
|
||||
<el-radio value="公共" style="margin-right: 20px">公共</el-radio>
|
||||
<el-radio value="私有" style="margin-right: 4px">私有</el-radio>
|
||||
<el-form-item label="模板类型" prop="templateLimitsType" class="item-style">
|
||||
<el-radio-group
|
||||
v-model="queryParams.templateLimitsType"
|
||||
class="item-width radio-group"
|
||||
>
|
||||
<el-radio value="all" style="margin-left: 12px; margin-right: 20px">全部</el-radio>
|
||||
<el-radio value="public" style="margin-right: 20px">公共</el-radio>
|
||||
<el-radio value="private" style="margin-right: 4px">私有</el-radio>
|
||||
</el-radio-group>
|
||||
</el-form-item>
|
||||
</el-col>
|
||||
<el-col :span="10">
|
||||
<!-- Notes: -->
|
||||
<el-form-item class="item-style">
|
||||
<el-button> <Icon icon="ep:search" class="mr-5px" /> 搜索 </el-button>
|
||||
<el-button @click="handleQuery">
|
||||
<Icon icon="ep:search" class="mr-5px" /> 搜索
|
||||
</el-button>
|
||||
<el-button type="primary" plain @click="openFormTest()">
|
||||
<Icon icon="ep:plus" class="mr-5px" /> 新增
|
||||
</el-button>
|
||||
@ -55,7 +60,15 @@
|
||||
:data="list_templates"
|
||||
height="max(53vh,80px)"
|
||||
>
|
||||
aaaa
|
||||
<el-table-column label="节点" align="center" prop="templateName" />
|
||||
<el-table-column label="所见" align="center" prop="examDescription" />
|
||||
<el-table-column label="所得" align="center" prop="diagResults" />
|
||||
<el-table-column label="操作" align="center">
|
||||
<template #default>
|
||||
<el-button link type="primary"> 编辑 </el-button>
|
||||
<el-button link type="danger"> 删除 </el-button>
|
||||
</template>
|
||||
</el-table-column>
|
||||
<!-- 数据列 -->
|
||||
</el-table>
|
||||
<div style="display: flex; justify-content: center">
|
||||
@ -65,11 +78,12 @@
|
||||
:total="total"
|
||||
v-model:page="queryParams.pageNo"
|
||||
v-model:limit="queryParams.pageSize"
|
||||
@pagination="getList"
|
||||
/>
|
||||
</div>
|
||||
</ContentWrap>
|
||||
|
||||
<DiagnosisTemplateForm ref="formRef" />
|
||||
<DiagnosisTemplateForm ref="formRef" @success="getList" />
|
||||
<!-- 可参考内容 -->
|
||||
</div>
|
||||
</template>
|
||||
@ -105,16 +119,30 @@ const queryParams = ref({
|
||||
pageNo: 1,
|
||||
pageSize: 10,
|
||||
/** 测试数据 **/
|
||||
it_1: '',
|
||||
it_2: ''
|
||||
templateName: '',
|
||||
templateLimitsType: 'all'
|
||||
})
|
||||
//表格核心
|
||||
const list_templates = ref<any[]>([])
|
||||
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()
|
||||
})
|
||||
|
||||
/** 防空作用域 **/
|
||||
|
@ -12,9 +12,9 @@
|
||||
>
|
||||
<el-row>
|
||||
<el-col :span="24">
|
||||
<el-form-item label="检查部位编码" prop="it_1" class="item-style">
|
||||
<el-form-item label="检查部位编码" prop="examPartCode" class="item-style">
|
||||
<el-input
|
||||
v-model="formData.it_1"
|
||||
v-model="formData.examPartCode"
|
||||
placeholder="请输入检查部位编码"
|
||||
clearable
|
||||
class="item-width"
|
||||
@ -24,9 +24,9 @@
|
||||
</el-row>
|
||||
<el-row>
|
||||
<el-col :span="24">
|
||||
<el-form-item label="检查部位名称" prop="it_2" class="item-style">
|
||||
<el-form-item label="检查部位名称" prop="examPartName" class="item-style">
|
||||
<el-input
|
||||
v-model="formData.it_2"
|
||||
v-model="formData.examPartName"
|
||||
placeholder="请输入检查部位名称"
|
||||
clearable
|
||||
class="item-width"
|
||||
@ -36,18 +36,18 @@
|
||||
</el-row>
|
||||
<el-row>
|
||||
<el-col :span="24">
|
||||
<el-form-item label="机构" prop="it_3" class="item-style">
|
||||
<el-form-item label="机构" prop="orgId" class="item-style">
|
||||
<el-select
|
||||
v-model="formData.it_3"
|
||||
v-model="formData.orgId"
|
||||
placeholder="请选择机构"
|
||||
clearable
|
||||
class="item-width"
|
||||
>
|
||||
<el-option
|
||||
v-for="item in orgList"
|
||||
:key="item.value"
|
||||
:label="item.label"
|
||||
:value="item.value"
|
||||
:key="item.orgID"
|
||||
:label="item.orgName"
|
||||
:value="item.orgID"
|
||||
/>
|
||||
</el-select>
|
||||
</el-form-item>
|
||||
@ -55,9 +55,9 @@
|
||||
</el-row>
|
||||
<el-row>
|
||||
<el-col :span="24">
|
||||
<el-form-item label="备注" prop="it_4" class="item-style">
|
||||
<el-form-item label="备注" prop="remark" class="item-style">
|
||||
<el-input
|
||||
v-model="formData.it_4"
|
||||
v-model="formData.remark"
|
||||
placeholder="请输入备注"
|
||||
type="textarea"
|
||||
:autosize="{ minRows: 5, maxRows: 9 }"
|
||||
@ -70,7 +70,7 @@
|
||||
|
||||
<template #footer>
|
||||
<div style="text-align: center">
|
||||
<el-button type="primary" @click="dialogVisible = true">保存</el-button>
|
||||
<el-button type="primary" @click="submitForm">保存</el-button>
|
||||
<el-button @click="dialogVisible = false">取消</el-button>
|
||||
</div>
|
||||
</template>
|
||||
@ -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()
|
||||
})
|
||||
|
||||
/** 防空作用域 **/
|
||||
|
@ -13,9 +13,9 @@
|
||||
<el-row>
|
||||
<el-col :span="8">
|
||||
<!-- Notes: -->
|
||||
<el-form-item label="检查部位名称" prop="it_1" class="item-style">
|
||||
<el-form-item label="检查部位名称" prop="examPartName" class="item-style">
|
||||
<el-input
|
||||
v-model="queryParams.it_1"
|
||||
v-model="queryParams.examPartName"
|
||||
placeholder="请输入检查部位名称"
|
||||
clearable
|
||||
class="item-width"
|
||||
@ -24,9 +24,9 @@
|
||||
</el-col>
|
||||
<el-col :span="8">
|
||||
<!-- Notes: -->
|
||||
<el-form-item label="检查部位编码" prop="it_2" class="item-style">
|
||||
<el-form-item label="检查部位编码" prop="examPartCode" class="item-style">
|
||||
<el-input
|
||||
v-model="queryParams.it_2"
|
||||
v-model="queryParams.examPartCode"
|
||||
placeholder="请输入检查部位编码"
|
||||
clearable
|
||||
class="item-width"
|
||||
@ -34,28 +34,10 @@
|
||||
</el-form-item>
|
||||
</el-col>
|
||||
<el-col :span="8">
|
||||
<!-- Notes: -->
|
||||
<el-form-item label="机构" label-width="42px" prop="it_3" class="item-style">
|
||||
<el-select
|
||||
v-model="queryParams.it_3"
|
||||
placeholder="请选择机构"
|
||||
clearable
|
||||
class="item-width"
|
||||
>
|
||||
<el-option
|
||||
v-for="item in orgList"
|
||||
:key="item.value"
|
||||
:label="item.label"
|
||||
:value="item.value"
|
||||
/>
|
||||
</el-select>
|
||||
</el-form-item>
|
||||
</el-col>
|
||||
</el-row>
|
||||
<el-row>
|
||||
<el-col :span="8" :offset="16">
|
||||
<el-form-item label="" label-width="42px" class="item-style">
|
||||
<el-button> <Icon icon="ep:search" class="mr-5px" /> 搜索 </el-button>
|
||||
<el-button @click="handleQuery">
|
||||
<Icon icon="ep:search" class="mr-5px" /> 搜索
|
||||
</el-button>
|
||||
<el-button type="primary" plain @click="openFormTest()">
|
||||
<Icon icon="ep:plus" class="mr-5px" /> 新增
|
||||
</el-button>
|
||||
@ -73,9 +55,17 @@
|
||||
:stripe="true"
|
||||
:show-overflow-tooltip="true"
|
||||
:data="list_examparts"
|
||||
height="max(48vh,80px)"
|
||||
height="max(53vh,80px)"
|
||||
>
|
||||
aaaa
|
||||
<el-table-column label="检查部位编码" align="center" prop="examPartCode" />
|
||||
<el-table-column label="检查部位名称" align="center" prop="examPartName" />
|
||||
<el-table-column label="备注" align="center" prop="remark" />
|
||||
<el-table-column label="操作" align="center">
|
||||
<template #default>
|
||||
<el-button link type="primary"> 编辑 </el-button>
|
||||
<el-button link type="danger"> 删除 </el-button>
|
||||
</template>
|
||||
</el-table-column>
|
||||
<!-- 数据列 -->
|
||||
</el-table>
|
||||
<div style="display: flex; justify-content: center">
|
||||
@ -85,11 +75,12 @@
|
||||
:total="total"
|
||||
v-model:page="queryParams.pageNo"
|
||||
v-model:limit="queryParams.pageSize"
|
||||
@pagination="getList"
|
||||
/>
|
||||
</div>
|
||||
</ContentWrap>
|
||||
|
||||
<ExampartManageForm ref="formRef" />
|
||||
<ExampartManageForm ref="formRef" @success="getList" />
|
||||
<!-- 可参考内容 -->
|
||||
</div>
|
||||
</template>
|
||||
@ -114,7 +105,6 @@ const formRef = ref()
|
||||
/** 数据结构 **/
|
||||
const message = useMessage()
|
||||
const { t } = useI18n()
|
||||
const orgList = ref<any[]>([])
|
||||
//表单核心
|
||||
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<any[]>([])
|
||||
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()
|
||||
})
|
||||
|
||||
/** 防空作用域 **/
|
||||
|
@ -24,9 +24,9 @@
|
||||
>
|
||||
<el-option
|
||||
v-for="item in deviceList"
|
||||
:key="item.value"
|
||||
:label="item.label"
|
||||
:value="item.value"
|
||||
:key="item.deviceId"
|
||||
:label="item.deviceName"
|
||||
:value="item.deviceId"
|
||||
/>
|
||||
</el-select>
|
||||
</el-form-item>
|
||||
@ -53,9 +53,10 @@
|
||||
clearable
|
||||
class="item-width"
|
||||
>
|
||||
<el-option label="xxxxx" value="xxxxx" />
|
||||
<el-option label="xxxxx" value="xxxxx" />
|
||||
<el-option label="xxxxx" value="xxxxx" />
|
||||
<el-option label="全部" value="全部" />
|
||||
<el-option label="门诊" value="门诊" />
|
||||
<el-option label="住院" value="住院" />
|
||||
<el-option label="体检" value="体检" />
|
||||
</el-select>
|
||||
</el-form-item>
|
||||
</el-col>
|
||||
@ -83,9 +84,8 @@
|
||||
clearable
|
||||
class="item-width"
|
||||
>
|
||||
<el-option label="xxxxx" value="xxxxx" />
|
||||
<el-option label="xxxxx" value="xxxxx" />
|
||||
<el-option label="xxxxx" value="xxxxx" />
|
||||
<el-option label="男" value="1" />
|
||||
<el-option label="女" value="2" />
|
||||
</el-select>
|
||||
</el-form-item>
|
||||
</el-col>
|
||||
@ -140,9 +140,9 @@
|
||||
>
|
||||
<el-option
|
||||
v-for="item in departmentList"
|
||||
:key="item.value"
|
||||
:label="item.label"
|
||||
:value="item.value"
|
||||
:key="item.departmentCode"
|
||||
:label="item.departmentName"
|
||||
:value="item.departmentCode"
|
||||
/>
|
||||
</el-select>
|
||||
</el-form-item>
|
||||
@ -160,9 +160,9 @@
|
||||
>
|
||||
<el-option
|
||||
v-for="item in doctorList"
|
||||
:key="item.value"
|
||||
:label="item.label"
|
||||
:value="item.value"
|
||||
:key="item.doctorID"
|
||||
:label="item.doctorName"
|
||||
:value="item.doctorID"
|
||||
/>
|
||||
</el-select>
|
||||
</el-form-item>
|
||||
@ -263,9 +263,9 @@
|
||||
>
|
||||
<el-checkbox
|
||||
v-for="item in examitemsList"
|
||||
:key="item.value"
|
||||
:label="item.label"
|
||||
:value="item.value"
|
||||
:key="item.id"
|
||||
:label="item.examItemName"
|
||||
:value="item.id"
|
||||
style="margin-right: 15px; margin-bottom: -1px"
|
||||
/>
|
||||
</el-checkbox-group>
|
||||
@ -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()
|
||||
})
|
||||
|
||||
/** 防空作用域 **/
|
||||
|
Loading…
Reference in New Issue
Block a user