判读审核 审核时判断流程提前
parent
bf4f9ed091
commit
afebfd0720
|
|
@ -246,7 +246,6 @@ import { getChildrenTree } from '@/api/demo/system';
|
||||||
import MapboxMap from '@/components/MapboxMaps/MapComponent.vue';
|
import MapboxMap from '@/components/MapboxMaps/MapComponent.vue';
|
||||||
import { getGeom } from '@/api/sys/layerManagement';
|
import { getGeom } from '@/api/sys/layerManagement';
|
||||||
import { typenameKey } from '@/views/demo/audit/util'
|
import { typenameKey } from '@/views/demo/audit/util'
|
||||||
import { UpdateCaseInfoBySubject } from '@/api/audit/index'
|
|
||||||
import axios from "axios";
|
import axios from "axios";
|
||||||
|
|
||||||
const props = defineProps(['infoData','control','type','modalLoading'])
|
const props = defineProps(['infoData','control','type','modalLoading'])
|
||||||
|
|
@ -364,22 +363,11 @@ const submitApi = () => {
|
||||||
okText: '确认',
|
okText: '确认',
|
||||||
cancelText: '取消',
|
cancelText: '取消',
|
||||||
onOk: () => {
|
onOk: () => {
|
||||||
emits('changeLoading',true)
|
let params = {
|
||||||
try{
|
...props.infoData,
|
||||||
let params = {
|
subject: props.type,
|
||||||
...props.infoData,
|
|
||||||
subject: props.type,
|
|
||||||
}
|
|
||||||
console.log(params)
|
|
||||||
UpdateCaseInfoBySubject(params).then(res => {
|
|
||||||
console.log('变更后返回数据',res)
|
|
||||||
if(res){
|
|
||||||
emits('handleOk')
|
|
||||||
}
|
|
||||||
})
|
|
||||||
} catch (error){
|
|
||||||
emits('changeLoading',false)
|
|
||||||
}
|
}
|
||||||
|
emits('handleOk',params)
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -72,6 +72,7 @@ import {
|
||||||
UpdateCaseNoBySubject,
|
UpdateCaseNoBySubject,
|
||||||
LoadCaseImportInfoLast,
|
LoadCaseImportInfoLast,
|
||||||
ExportapprovalCaseInfoShapefile,
|
ExportapprovalCaseInfoShapefile,
|
||||||
|
UpdateCaseInfoBySubject
|
||||||
} from '@/api/audit/index';
|
} from '@/api/audit/index';
|
||||||
import { useRouter } from 'vue-router';
|
import { useRouter } from 'vue-router';
|
||||||
|
|
||||||
|
|
@ -136,12 +137,13 @@ function handleAudit(record) {
|
||||||
openModal.value = true
|
openModal.value = true
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
const handleOk = async () => {
|
const handleOk = async (params) => {
|
||||||
changeLoading(true)
|
changeLoading(true)
|
||||||
try {
|
try {
|
||||||
const { id, case_description } = infoData.value.info
|
const { id, case_description } = infoData.value.info
|
||||||
const checkValue = await GetDraft({id})
|
const checkValue = await GetDraft({id})
|
||||||
if(checkValue.process == null){
|
if(checkValue.process == null){
|
||||||
|
await UpdateCaseInfoBySubject(params)
|
||||||
let data = await getDetail({ code });
|
let data = await getDetail({ code });
|
||||||
let content = JSON.parse(data.scheme.content);
|
let content = JSON.parse(data.scheme.content);
|
||||||
const currentNode = content.wfData.find((t) => t.type == 'bpmn:StartEvent');
|
const currentNode = content.wfData.find((t) => t.type == 'bpmn:StartEvent');
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue