机构编辑增加是否启用云胶片选项 修改影像调图按钮会调用父级双击

This commit is contained in:
lxd 2024-09-19 17:55:07 +08:00
parent aa112dd24f
commit 9915776d9f
4 changed files with 49 additions and 31 deletions

View File

@ -16,6 +16,7 @@ export interface OrgVO {
orgLogoUrl: string // 机构logo的URL orgLogoUrl: string // 机构logo的URL
dcmprefix:string//机构dcm前缀 dcmprefix:string//机构dcm前缀
dcmurl:string//dcm地址 dcmurl:string//dcm地址
enableCloudDicom:string //是否启用云胶片
} }
// 机构管理 API // 机构管理 API

View File

@ -44,6 +44,10 @@ export const ultrasoniccomApi = {
insimagescreenshot: async (data:insimagescreenshotVO) => { insimagescreenshot: async (data:insimagescreenshotVO) => {
return await request.post({ url: `/ultrasoniccom/ultrasonic/insimagescreenshot`,data}) return await request.post({ url: `/ultrasoniccom/ultrasonic/insimagescreenshot`,data})
} , } ,
ftpimage: async (data:insimagescreenshotVO) => {
return await request.post({ url: `/ultrasoniccom/ultrasonic/ftpimage`,data})
} ,
// 查询图片表视频数据 // 查询图片表视频数据
getImageVideo: async (regID:string) => { getImageVideo: async (regID:string) => {
return await request.get({ url: `/ultrasoniccom/ultrasonic/GetImageVideo?regID=${regID}` }) return await request.get({ url: `/ultrasoniccom/ultrasonic/GetImageVideo?regID=${regID}` })

View File

@ -55,10 +55,25 @@
<el-form-item label="机构dcm地址" prop="dcmurl" label-width="130px"> <el-form-item label="机构dcm地址" prop="dcmurl" label-width="130px">
<el-input v-model="formData.dcmurl" placeholder="请输入dcm地址" /> <el-input v-model="formData.dcmurl" placeholder="请输入dcm地址" />
</el-form-item> </el-form-item>
<el-form-item label="是否启用云胶片" prop="enableCloudDicom" label-width="130px">
<el-radio-group v-model="formData.enableCloudDicom">
<el-radio-button label="启用" value="1" />
<el-radio-button label="关闭" value="0" />
</el-radio-group>
</el-form-item>
</el-form> </el-form>
<template #footer> <template #footer>
<el-button @click="submitForm" :disabled="formLoading" style="background-color: rgb(56, 119, 246); font-size: 14; color: rgb(255, 255, 255)"> </el-button> <el-button
<el-button @click="empty" style="background-color: rgb(56, 119, 246); font-size: 14; color: rgb(255, 255, 255)">清空上级机构</el-button> @click="submitForm"
:disabled="formLoading"
style="background-color: rgb(56, 119, 246); font-size: 14; color: rgb(255, 255, 255)"
> </el-button
>
<el-button
@click="empty"
style="background-color: rgb(56, 119, 246); font-size: 14; color: rgb(255, 255, 255)"
>清空上级机构</el-button
>
<el-button @click="dialogVisible = false"> </el-button> <el-button @click="dialogVisible = false"> </el-button>
</template> </template>
</Dialog> </Dialog>
@ -90,14 +105,14 @@ const formData = ref({
highLevelOrgName: undefined, highLevelOrgName: undefined,
orgLogoUrl: undefined, orgLogoUrl: undefined,
dcmprefix: undefined, dcmprefix: undefined,
dcmurl:undefined dcmurl: undefined,
enableCloudDicom: '0'
}) })
const formRules = reactive({ const formRules = reactive({
orgID: [{ required: true, message: '请输入机构编码', trigger: 'blur' }], orgID: [{ required: true, message: '请输入机构编码', trigger: 'blur' }],
orgName: [{ required: true, message: '请输入机构名称', trigger: 'blur' }], orgName: [{ required: true, message: '请输入机构名称', trigger: 'blur' }],
contactTel: [{ required: true, message: '请输入机构联系人', trigger: 'blur' }], contactTel: [{ required: true, message: '请输入机构联系人', trigger: 'blur' }],
contactPerson: [{ required: true, message: '请输入机构联系电话', trigger: 'blur' }], contactPerson: [{ required: true, message: '请输入机构联系电话', trigger: 'blur' }]
}) })
const formRef = ref() // Ref const formRef = ref() // Ref
@ -112,6 +127,7 @@ const open = async (type: string, id?: number) => {
formLoading.value = true formLoading.value = true
try { try {
formData.value = await OrgApi.getOrg(id) formData.value = await OrgApi.getOrg(id)
console.log(formData.value.enableCloudDicom)
} finally { } finally {
formLoading.value = false formLoading.value = false
} }
@ -128,21 +144,16 @@ const submitForm = async () => {
formLoading.value = true formLoading.value = true
const re = ref() const re = ref()
try { try {
const data = formData.value as unknown as OrgVO const data = formData.value as unknown as OrgVO
console.log(data.highLevelOrgID) console.log(data.enableCloudDicom)
if (formType.value === 'create') { if (formType.value === 'create') {
re.value = await OrgApi.createOrg(data) re.value = await OrgApi.createOrg(data)
if(re.value==='机构ID已经存在') if (re.value === '机构ID已经存在') {
{
message.error(re.value) message.error(re.value)
return return
} } else {
else
{
message.success(t('common.createSuccess')) message.success(t('common.createSuccess'))
} }
} else { } else {
await OrgApi.updateOrg(data) await OrgApi.updateOrg(data)
message.success(t('common.updateSuccess')) message.success(t('common.updateSuccess'))
@ -155,8 +166,7 @@ const submitForm = async () => {
} }
} }
// //
const empty=()=> const empty = () => {
{
formData.value.highLevelOrgID = undefined formData.value.highLevelOrgID = undefined
formData.value.highLevelOrgName = undefined formData.value.highLevelOrgName = undefined
} }
@ -176,7 +186,8 @@ const resetForm = () => {
highLevelOrgName: undefined, highLevelOrgName: undefined,
orgLogoUrl: undefined, orgLogoUrl: undefined,
dcmprefix: undefined, dcmprefix: undefined,
dcmurl:undefined dcmurl: undefined,
enableCloudDicom: '0'
} }
formRef.value?.resetFields() formRef.value?.resetFields()
} }

View File

@ -265,30 +265,33 @@
style="color: rgb(56, 119, 246)" style="color: rgb(56, 119, 246)"
size="small" size="small"
type="primary" type="primary"
@click="getuporghiorgid(scope.row.id, scope.row.orgId, scope.row.reportstatus)" @click.stop="getuporghiorgid(scope.row.id, scope.row.orgId, scope.row.reportstatus)"
v-hasPermi="['tblist:patientexamlist:query']" v-hasPermi="['tblist:patientexamlist:query']"
> >
申请 申请
</el-button> </el-button>
<el-button link type="danger" @click="collect(scope.row.id, scope.row.isFavourite)"> <el-button link type="danger" @click.stop="collect(scope.row.id, scope.row.isFavourite)">
<el-icon v-if="scope.row.isFavourite==='1'"><StarFilled /></el-icon> <el-icon v-if="scope.row.isFavourite==='1'"><StarFilled /></el-icon>
<el-icon v-else><Star /></el-icon> <el-icon v-else><Star /></el-icon>
</el-button> </el-button>
<el-button <el-button
link link
@dblclick.stop
style="color: rgb(56, 119, 246)" style="color: rgb(56, 119, 246)"
size="small" size="small"
type="primary" type="primary"
@click="openexe(scope.row.id,scope.row.orgId,scope.row.regId,scope.row.examId)" @click.stop="openexe(scope.row.id,scope.row.orgId,scope.row.regId,scope.row.examId)"
> >
调图 调图
</el-button> </el-button>
<el-button <el-button
link link
style="color: rgb(56, 119, 246)" style="color: rgb(56, 119, 246)"
size="small" size="small"
type="primary" type="primary"
@click=" handleEdit(scope.row,'1')" @click.stop=" handleEdit(scope.row,'1')"
> >
报告 报告
</el-button> </el-button>
@ -524,7 +527,6 @@ const getuporghiorgid = async (id: number, orgId: string, reportstatus: string)
// exe // exe
const openexe= (id: number, orgid: string, regid: string, examId: string)=> const openexe= (id: number, orgid: string, regid: string, examId: string)=>
{ {
console.log(orgid)
// //
try { try {
const url = `f1://${examId+','+orgid+','+regid}`; const url = `f1://${examId+','+orgid+','+regid}`;