增加PACS列表申请功能接口 和修改界面样式

This commit is contained in:
lxd 2024-07-10 17:35:09 +08:00
parent c860d90ad5
commit aa14e004d2
2 changed files with 39 additions and 5 deletions

View File

@ -58,4 +58,9 @@ export const PatientexamlistApi = {
exportPatientexamlist: async (params) => {
return await request.download({ url: `/tblist/patientexamlist/export-excel`, params })
},
getuporghiid: async (id: number,orgId:String) => {
return await request.download({ url: `/tblist/patientexamlist/UPDATEHigOrg?id=${id}&&orgId=${orgId}` })
},
}

View File

@ -106,6 +106,7 @@
>
<el-option label="未申请" value="未申请" />
<el-option label="已申请" value="已申请" />
<el-option label="已分析" value="已分析" />
<el-option label="已审核" value="已审核" />
</el-select>
</el-form-item>
@ -290,7 +291,9 @@
<el-table-column label="报告状态" align="center" prop="reportstatus" >
<template #default="scope">
<el-tag>{{ scope.row.reportstatus }}</el-tag>
<el-tag :type="scope.row.reportstatus === '已审核' ? 'danger':'success'">
<span style="">{{ scope.row.reportstatus }}</span>
</el-tag>
</template>
</el-table-column>
@ -353,8 +356,8 @@
size="small"
type="primary"
@click="openForm('update', scope.row.id)"
v-hasPermi="['tblist:patientexamlist:update']"
@click="getuporghiorgid(scope.row.id, scope.row.orgId,scope.row.reportstatus)"
v-hasPermi="['tblist:patientexamlist:query']"
>
申请
</el-button>
@ -412,8 +415,8 @@ const queryParams = reactive({
applicationDate: [],
uploadDate: [],
orgName: undefined,
orgId: undefined,
highLevelOrgId: undefined,
orgId: "",
highLevelOrgId: "",
createDate: [],
examDescription: undefined,
diagResults: undefined,
@ -495,6 +498,9 @@ const getList = async () => {
/** 搜索按钮操作 */
const handleQuery = () => {
queryParams.pageNo = 1
//
queryParams.orgId=""
queryParams.highLevelOrgId=""
getList()
}
@ -518,6 +524,27 @@ const openForm = (type: string, id?: number) => {
formRef.value.open(type, id)
}
/** 申请后更新上级机构字段*/
const getuporghiorgid=async (id: number,orgId:string,reportstatus:string) => {
try {
if(reportstatus=="未申请")
{
await message.confirm("是否要进行申请?","确认提示")
await PatientexamlistApi.getuporghiid(id,orgId)
message.success(t('common.delSuccess'))
//
await getList()
}
else
{
await message. info("只有未申请才可以进行操作")
}
} catch {}
}
/** 删除按钮操作 */
const handleDelete = async (id: number) => {
try {
@ -559,6 +586,8 @@ const handleExport = async () => {
/** 初始化 **/
onMounted(() => {
//
/** aaaaa **/
//
examDate_radio_change();