机构编辑增加是否启用云胶片选项 修改影像调图按钮会调用父级双击
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}` })
|
||||
|
@ -7,7 +7,7 @@
|
||||
label-width="100px"
|
||||
v-loading="formLoading"
|
||||
>
|
||||
<el-form-item label="机构编码" prop="orgID" label-width="130px">
|
||||
<el-form-item label="机构编码" prop="orgID" label-width="130px">
|
||||
<el-input v-model="formData.orgID" placeholder="请输入机构编码" />
|
||||
</el-form-item>
|
||||
<el-form-item label="机构名称" prop="orgName" label-width="130px">
|
||||
@ -29,7 +29,7 @@
|
||||
<el-input v-model="formData.highLevelOrgName" :disabled="true" />
|
||||
</el-form-item>
|
||||
<el-form-item label="上级机构编码" prop="highLevelOrgID" label-width="130px">
|
||||
<el-input v-model="formData.highLevelOrgID" :disabled="true"/>
|
||||
<el-input v-model="formData.highLevelOrgID" :disabled="true" />
|
||||
</el-form-item>
|
||||
<!-- <el-form-item label="能收到微信消息提醒的微信列表,格式为:wxopenid1,wxopenid2,wxopenid3" prop="wxOpenidlist">
|
||||
<el-input v-model="formData.wxOpenidlist" placeholder="请输入能收到微信消息提醒的微信列表,格式为:wxopenid1,wxopenid2,wxopenid3" />
|
||||
@ -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>
|
||||
@ -89,15 +104,15 @@ const formData = ref({
|
||||
createDate: undefined,
|
||||
highLevelOrgName: undefined,
|
||||
orgLogoUrl: undefined,
|
||||
dcmprefix:undefined,
|
||||
dcmurl:undefined
|
||||
dcmprefix: 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已经存在')
|
||||
{
|
||||
re.value = await OrgApi.createOrg(data)
|
||||
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,10 +166,9 @@ const submitForm = async () => {
|
||||
}
|
||||
}
|
||||
// 清空上级机构
|
||||
const empty=()=>
|
||||
{
|
||||
formData.value.highLevelOrgID=undefined
|
||||
formData.value.highLevelOrgName=undefined
|
||||
const empty = () => {
|
||||
formData.value.highLevelOrgID = undefined
|
||||
formData.value.highLevelOrgName = undefined
|
||||
}
|
||||
/** 重置表单 */
|
||||
const resetForm = () => {
|
||||
@ -175,8 +185,9 @@ const resetForm = () => {
|
||||
createDate: undefined,
|
||||
highLevelOrgName: undefined,
|
||||
orgLogoUrl: undefined,
|
||||
dcmprefix:undefined,
|
||||
dcmurl:undefined
|
||||
dcmprefix: 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
|
||||
|
||||
<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