|
|
|
@ -9,7 +9,7 @@ import { conditionInfo, nodeFlow } from "@/api/DesignForm/type"; |
|
|
|
import { echoTableFormPage,realTimeUpdateFlow } from "@/api/taskapi/management"; |
|
|
|
import { judgeSubmitCancel,startRunFlow,gainAppPageInfo,getFieldRecord } from "@/api/DesignForm/requestapi"; |
|
|
|
import { string2json, stringToObj } from "@/utils/DesignForm/form"; |
|
|
|
import { appPageDataInit } from "@/api/date/type"; |
|
|
|
import { appPageDataInit,changeDataInfo } from "@/api/date/type"; |
|
|
|
import { |
|
|
|
notAsA_BasisForJudgment, |
|
|
|
asAnApprovalActionControl, |
|
|
|
@ -656,6 +656,67 @@ const changeKeyVal = (key: any, val: any, type: any, attribute: any) => { |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
//关联表单更新 |
|
|
|
const updateAppTableForm = (data:changeDataInfo[])=>{ |
|
|
|
console.log("关联表单更新--1111->",data) |
|
|
|
console.log("关联表单更新--1112->",flowFactor) |
|
|
|
console.log("关联表单更新--1113->",nodelUserList) |
|
|
|
console.log("关联表单更新--1114->",flowMap.value) |
|
|
|
if (data && Array.isArray(data)) { |
|
|
|
if(flowFactor && Array.isArray(flowFactor)){ |
|
|
|
if(data.length>0){ |
|
|
|
data.forEach((item:changeDataInfo)=>{ |
|
|
|
if(flowFactor.length>0){ |
|
|
|
let isFind = false; |
|
|
|
flowFactor.forEach((factor:any)=>{ |
|
|
|
if(factor.factorid == item.key){ |
|
|
|
factor.oneanswer = item.value.toString(); |
|
|
|
isFind = true; |
|
|
|
} |
|
|
|
}) |
|
|
|
if(!isFind){ |
|
|
|
let condInfo = { |
|
|
|
factorid: item.key, |
|
|
|
type: 3, |
|
|
|
isCheckbox: false, |
|
|
|
oneanswer: item.value.toString(), |
|
|
|
}; |
|
|
|
flowFactor.push(condInfo); |
|
|
|
} |
|
|
|
|
|
|
|
}else{ |
|
|
|
let condInfo = { |
|
|
|
factorid: item.key, |
|
|
|
type: 3, |
|
|
|
isCheckbox: false, |
|
|
|
oneanswer: item.value.toString(), |
|
|
|
}; |
|
|
|
flowFactor.push(condInfo); |
|
|
|
} |
|
|
|
|
|
|
|
}) |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
console.log("关联表单更新--555->",flowFactor) |
|
|
|
flowLoading.value = true; |
|
|
|
//获取工作流不进图 |
|
|
|
gainFlowChart.conditionList = flowFactor; |
|
|
|
gainFlowChart.nodelPeople = nodelUserList; |
|
|
|
gainFlowChart.oldFlow = flowMap; |
|
|
|
console.log("获取工作流不进图--gainFlowChart--->",gainFlowChart) |
|
|
|
realTimeUpdateFlow(gainFlowChart).then((data: any) => { |
|
|
|
// console.log("获取工作流不进图-new-->",data) |
|
|
|
flowMap.value = data.data.flowList; |
|
|
|
nextStep.value = data.data.nextStep; |
|
|
|
currentProgress.value = data.data.Step; |
|
|
|
nodeKey.value = data.data.nodeKey; |
|
|
|
// // console.log("获取工作流不进图-1-->",flowMap.value) |
|
|
|
flowLoading.value = false; |
|
|
|
}); |
|
|
|
} |
|
|
|
|
|
|
|
const appTableForm = ref({ |
|
|
|
name:"" |
|
|
|
}) |
|
|
|
@ -764,6 +825,7 @@ provide('currentNodeKey', nodeKey) |
|
|
|
:save-draft-page="saveDraftPage" |
|
|
|
:node-key="nodeKey" |
|
|
|
:purview="purviewAry" |
|
|
|
:update-app-table-form="updateAppTableForm" |
|
|
|
/> |
|
|
|
|
|
|
|
<FlowStep |
|
|
|
|