机构编辑增加是否启用云胶片选项 修改影像调图按钮会调用父级双击
This commit is contained in:
parent
aa112dd24f
commit
9915776d9f
@ -16,6 +16,7 @@ export interface OrgVO {
|
||||
orgLogoUrl: string // 机构logo的URL
|
||||
dcmprefix:string//机构dcm前缀
|
||||
dcmurl:string//dcm地址
|
||||
enableCloudDicom:string //是否启用云胶片
|
||||
}
|
||||
|
||||
// 机构管理 API
|
||||
|
@ -44,6 +44,10 @@ export const ultrasoniccomApi = {
|
||||
insimagescreenshot: async (data:insimagescreenshotVO) => {
|
||||
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) => {
|
||||
return await request.get({ url: `/ultrasoniccom/ultrasonic/GetImageVideo?regID=${regID}` })
|
||||
|
@ -55,10 +55,25 @@
|
||||
<el-form-item label="机构dcm地址" prop="dcmurl" label-width="130px">
|
||||
<el-input v-model="formData.dcmurl" placeholder="请输入dcm地址" />
|
||||
</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>
|
||||
<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 @click="empty" style="background-color: rgb(56, 119, 246); font-size: 14; color: rgb(255, 255, 255)">清空上级机构</el-button>
|
||||
<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>
|
||||
</template>
|
||||
</Dialog>
|
||||
@ -90,14 +105,14 @@ const formData = ref({
|
||||
highLevelOrgName: undefined,
|
||||
orgLogoUrl: undefined,
|
||||
dcmprefix: undefined,
|
||||
dcmurl:undefined
|
||||
dcmurl: undefined,
|
||||
enableCloudDicom: '0'
|
||||
})
|
||||
const formRules = reactive({
|
||||
|
||||
orgID: [{ required: true, message: '请输入机构编码', trigger: 'blur' }],
|
||||
orgName: [{ 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
|
||||
|
||||
@ -112,6 +127,7 @@ const open = async (type: string, id?: number) => {
|
||||
formLoading.value = true
|
||||
try {
|
||||
formData.value = await OrgApi.getOrg(id)
|
||||
console.log(formData.value.enableCloudDicom)
|
||||
} finally {
|
||||
formLoading.value = false
|
||||
}
|
||||
@ -128,21 +144,16 @@ const submitForm = async () => {
|
||||
formLoading.value = true
|
||||
const re = ref()
|
||||
try {
|
||||
|
||||
const data = formData.value as unknown as OrgVO
|
||||
console.log(data.highLevelOrgID)
|
||||
console.log(data.enableCloudDicom)
|
||||
if (formType.value === 'create') {
|
||||
re.value = await OrgApi.createOrg(data)
|
||||
if(re.value==='机构ID已经存在')
|
||||
{
|
||||
if (re.value === '机构ID已经存在') {
|
||||
message.error(re.value)
|
||||
return
|
||||
}
|
||||
else
|
||||
{
|
||||
} else {
|
||||
message.success(t('common.createSuccess'))
|
||||
}
|
||||
|
||||
} else {
|
||||
await OrgApi.updateOrg(data)
|
||||
message.success(t('common.updateSuccess'))
|
||||
@ -155,8 +166,7 @@ const submitForm = async () => {
|
||||
}
|
||||
}
|
||||
// 清空上级机构
|
||||
const empty=()=>
|
||||
{
|
||||
const empty = () => {
|
||||
formData.value.highLevelOrgID = undefined
|
||||
formData.value.highLevelOrgName = undefined
|
||||
}
|
||||
@ -176,7 +186,8 @@ const resetForm = () => {
|
||||
highLevelOrgName: undefined,
|
||||
orgLogoUrl: undefined,
|
||||
dcmprefix: undefined,
|
||||
dcmurl:undefined
|
||||
dcmurl: undefined,
|
||||
enableCloudDicom: '0'
|
||||
}
|
||||
formRef.value?.resetFields()
|
||||
}
|
||||
|
@ -265,30 +265,33 @@
|
||||
style="color: rgb(56, 119, 246)"
|
||||
size="small"
|
||||
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']"
|
||||
>
|
||||
申请
|
||||
</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-else><Star /></el-icon>
|
||||
</el-button>
|
||||
|
||||
<el-button
|
||||
link
|
||||
@dblclick.stop
|
||||
style="color: rgb(56, 119, 246)"
|
||||
size="small"
|
||||
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
|
||||
link
|
||||
style="color: rgb(56, 119, 246)"
|
||||
size="small"
|
||||
type="primary"
|
||||
@click=" handleEdit(scope.row,'1')"
|
||||
@click.stop=" handleEdit(scope.row,'1')"
|
||||
>
|
||||
报告
|
||||
</el-button>
|
||||
@ -524,7 +527,6 @@ const getuporghiorgid = async (id: number, orgId: string, reportstatus: string)
|
||||
// 打开本地exe 通过注册表
|
||||
const openexe= (id: number, orgid: string, regid: string, examId: string)=>
|
||||
{
|
||||
console.log(orgid)
|
||||
// 先查询数据
|
||||
try {
|
||||
const url = `f1://${examId+','+orgid+','+regid}`;
|
||||
|
Loading…
Reference in New Issue
Block a user