From 3747c68af0184df191be14e9aa9b414300830df8 Mon Sep 17 00:00:00 2001 From: zhufu <17863654727@163.com> Date: Fri, 18 Apr 2025 16:42:22 +0800 Subject: [PATCH] =?UTF-8?q?=E5=88=A4=E8=AF=BB=E5=AE=A1=E6=A0=B8=20=20?= =?UTF-8?q?=E5=AE=A1=E6=A0=B8=E9=80=9A=E8=BF=87=E5=89=8D=E6=B7=BB=E5=8A=A0?= =?UTF-8?q?=E8=83=BD=E5=90=A6=E8=BF=9B=E8=A1=8C=E5=AE=A1=E6=A0=B8=E7=9A=84?= =?UTF-8?q?=E6=A0=A1=E9=AA=8C?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/api/audit/index.ts | 10 +++++++- src/components/Audit/InfoModal/index.vue | 23 ++++++++++++------- .../mainaudit/InfoModal/index.vue | 17 ++++++++++---- 3 files changed, 36 insertions(+), 14 deletions(-) diff --git a/src/api/audit/index.ts b/src/api/audit/index.ts index 250dbda2..d09bd14b 100644 --- a/src/api/audit/index.ts +++ b/src/api/audit/index.ts @@ -28,7 +28,9 @@ enum Api { // 判读-预览最后一次数据 LoadCaseImportInfoLast = '/api/DroneCaseInfoTask/LoadCaseImportInfoLast', // 判读-导出shp文件 - ExportapprovalCaseInfoShapefile = 'ExportapprovalCaseInfoShapefile' + ExportapprovalCaseInfoShapefile = 'ExportapprovalCaseInfoShapefile', + // 查询是否有复提条件 + IsReSubmit = '/api/DroneCaseInfoSingle/IsReSubmit' } const typeObj = { @@ -146,4 +148,10 @@ export function ExportapprovalCaseInfoShapefile(type, params?){ params, responseType: 'blob', }) +} +export function IsReSubmit(params: { originalcaseno: string, subjectkey: string }){ + return defHttp.get({ + url: Api.IsReSubmit, + params + }) } \ No newline at end of file diff --git a/src/components/Audit/InfoModal/index.vue b/src/components/Audit/InfoModal/index.vue index fa1b5c06..4e8c27ba 100644 --- a/src/components/Audit/InfoModal/index.vue +++ b/src/components/Audit/InfoModal/index.vue @@ -262,6 +262,7 @@ import { getGeom } from '@/api/sys/layerManagement'; import { typenameKey } from '@/views/demo/audit/util' import axios from "axios"; import { tubanbiaoqian1Options, tubanbiaoqian2Options } from './util' +import { IsReSubmit } from '@/api/audit/index' const props = defineProps(['infoData','control','type','modalLoading']) const emits = defineEmits(['handleOk','closeModal','closeCase','reSubmit','changeLoading']) @@ -385,14 +386,20 @@ const submitApi = () => { okText: '确认', cancelText: '取消', onOk: () => { - if(props.type == '违法用地'){ - props.infoData.case_description = caseDescription.value.join('-') - } - let params = { - ...props.infoData, - subject: props.type, - } - emits('handleOk',params) + IsReSubmit({originalcaseno: props.infoData.original_case_no, subjectkey: props.type}).then(res => { + if(res){ + if(props.type == '违法用地'){ + props.infoData.case_description = caseDescription.value.join('-') + } + let params = { + ...props.infoData, + subject: props.type, + } + emits('handleOk',params) + }else{ + message.error('审核失败') + } + }) } }) diff --git a/src/views/demo/illegalmining/mainaudit/InfoModal/index.vue b/src/views/demo/illegalmining/mainaudit/InfoModal/index.vue index f130ca89..82f9ac93 100644 --- a/src/views/demo/illegalmining/mainaudit/InfoModal/index.vue +++ b/src/views/demo/illegalmining/mainaudit/InfoModal/index.vue @@ -288,6 +288,7 @@ import { getChildrenTree } from '@/api/demo/system'; import MapboxMap from '@/components/MapboxMaps/MapComponent.vue'; import { getGeom } from '@/api/sys/layerManagement'; import axios from "axios"; +import { IsReSubmit } from '@/api/audit/index' const props = defineProps(['infoData','control','modalLoading']) const emits = defineEmits(['handleOk','closeModal','closeCase','reSubmit','changeLoading']) @@ -404,11 +405,17 @@ const submit = () => { okText: '确认', cancelText: '取消', onOk: () => { - let params = { - ...props.infoData, - subject: '非法采矿', - } - emits('handleOk',params) + IsReSubmit({originalcaseno: props.infoData.original_case_no, subjectkey: '非法采矿'}).then(res => { + if(res){ + let params = { + ...props.infoData, + subject: '非法采矿', + } + emits('handleOk',params) + }else{ + message.error('审核失败') + } + }) } }) }