判读审核 审核通过前添加能否进行审核的校验
parent
24b2673323
commit
3747c68af0
|
|
@ -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
|
||||
})
|
||||
}
|
||||
|
|
@ -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('审核失败')
|
||||
}
|
||||
})
|
||||
}
|
||||
})
|
||||
|
||||
|
|
|
|||
|
|
@ -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('审核失败')
|
||||
}
|
||||
})
|
||||
}
|
||||
})
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue