ddy-process-h5 1.0.1-rc.2.3 → 1.0.1-rc.2.6

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -26,4 +26,4 @@ Component that was made reactive: `,e)),cc(e,t,i,s,r,a,o,!0)}function dc(e){retu
26
26
  `),this},this.appendIndent=function(){return t&&e.write(i.join(" ")),this},this.indent=function(){return i.push(""),this},this.unindent=function(){return i.pop(),this}}function Vu(e){e=_({format:!1,preamble:!0},e||{});function t(i,s){var r=s||new Pu,o=new Mu(r,e.format);e.preamble&&o.append(yu);var a=new ae,l=i.$model;if(a.getNamespaces().mapDefaultPrefixes(Ou(l)),a.build(i).serializeTo(o),!s)return r.value}return{toXML:t}}function Ou(e){const t=e.config&&e.config.nsMap||{},i={};for(const s in Fs)i[s]=Fs[s];for(const s in t){const r=t[s];i[r]=s}for(const s of e.getPackages())i[s.prefix]=s.uri;return i}function On(e,t){Ye.call(this,e,t)}On.prototype=Object.create(Ye.prototype),On.prototype.fromXML=function(e,t,i){it(t)||(i=t,t="bpmn:Definitions");var s=new _s(_({model:this,lax:!0},i)),r=s.handler(t);return s.fromXML(e,r)},On.prototype.toXML=function(e,t){var i=new Vu(t);return new Promise(function(s,r){try{var o=i.toXML(e);return s({xml:o})}catch(a){return r(a)}})};var vu="BPMN20",Ru="http://www.omg.org/spec/BPMN/20100524/MODEL",Lu="bpmn",Fu=[],Qu=[{name:"Interface",superClass:["RootElement"],properties:[{name:"name",isAttr:!0,type:"String"},{name:"operations",type:"Operation",isMany:!0},{name:"implementationRef",isAttr:!0,type:"String"}]},{name:"Operation",superClass:["BaseElement"],properties:[{name:"name",isAttr:!0,type:"String"},{name:"inMessageRef",type:"Message",isReference:!0},{name:"outMessageRef",type:"Message",isReference:!0},{name:"errorRef",type:"Error",isMany:!0,isReference:!0},{name:"implementationRef",isAttr:!0,type:"String"}]},{name:"EndPoint",superClass:["RootElement"]},{name:"Auditing",superClass:["BaseElement"]},{name:"GlobalTask",superClass:["CallableElement"],properties:[{name:"resources",type:"ResourceRole",isMany:!0}]},{name:"Monitoring",superClass:["BaseElement"]},{name:"Performer",superClass:["ResourceRole"]},{name:"Process",superClass:["FlowElementsContainer","CallableElement"],properties:[{name:"processType",type:"ProcessType",isAttr:!0},{name:"isClosed",isAttr:!0,type:"Boolean"},{name:"auditing",type:"Auditing"},{name:"monitoring",type:"Monitoring"},{name:"properties",type:"Property",isMany:!0},{name:"laneSets",isMany:!0,replaces:"FlowElementsContainer#laneSets",type:"LaneSet"},{name:"flowElements",isMany:!0,replaces:"FlowElementsContainer#flowElements",type:"FlowElement"},{name:"artifacts",type:"Artifact",isMany:!0},{name:"resources",type:"ResourceRole",isMany:!0},{name:"correlationSubscriptions",type:"CorrelationSubscription",isMany:!0},{name:"supports",type:"Process",isMany:!0,isReference:!0},{name:"definitionalCollaborationRef",type:"Collaboration",isAttr:!0,isReference:!0},{name:"isExecutable",isAttr:!0,type:"Boolean"}]},{name:"LaneSet",superClass:["BaseElement"],properties:[{name:"lanes",type:"Lane",isMany:!0},{name:"name",isAttr:!0,type:"String"}]},{name:"Lane",superClass:["BaseElement"],properties:[{name:"name",isAttr:!0,type:"String"},{name:"partitionElementRef",type:"BaseElement",isAttr:!0,isReference:!0},{name:"partitionElement",type:"BaseElement"},{name:"flowNodeRef",type:"FlowNode",isMany:!0,isReference:!0},{name:"childLaneSet",type:"LaneSet",xml:{serialize:"xsi:type"}}]},{name:"GlobalManualTask",superClass:["GlobalTask"]},{name:"ManualTask",superClass:["Task"]},{name:"UserTask",superClass:["Task"],properties:[{name:"renderings",type:"Rendering",isMany:!0},{name:"implementation",isAttr:!0,type:"String"}]},{name:"Rendering",superClass:["BaseElement"]},{name:"HumanPerformer",superClass:["Performer"]},{name:"PotentialOwner",superClass:["HumanPerformer"]},{name:"GlobalUserTask",superClass:["GlobalTask"],properties:[{name:"implementation",isAttr:!0,type:"String"},{name:"renderings",type:"Rendering",isMany:!0}]},{name:"Gateway",isAbstract:!0,superClass:["FlowNode"],properties:[{name:"gatewayDirection",type:"GatewayDirection",default:"Unspecified",isAttr:!0}]},{name:"EventBasedGateway",superClass:["Gateway"],properties:[{name:"instantiate",default:!1,isAttr:!0,type:"Boolean"},{name:"eventGatewayType",type:"EventBasedGatewayType",isAttr:!0,default:"Exclusive"}]},{name:"ComplexGateway",superClass:["Gateway"],properties:[{name:"activationCondition",type:"Expression",xml:{serialize:"xsi:type"}},{name:"default",type:"SequenceFlow",isAttr:!0,isReference:!0}]},{name:"ExclusiveGateway",superClass:["Gateway"],properties:[{name:"default",type:"SequenceFlow",isAttr:!0,isReference:!0}]},{name:"InclusiveGateway",superClass:["Gateway"],properties:[{name:"default",type:"SequenceFlow",isAttr:!0,isReference:!0}]},{name:"ParallelGateway",superClass:["Gateway"]},{name:"RootElement",isAbstract:!0,superClass:["BaseElement"]},{name:"Relationship",superClass:["BaseElement"],properties:[{name:"type",isAttr:!0,type:"String"},{name:"direction",type:"RelationshipDirection",isAttr:!0},{name:"source",isMany:!0,isReference:!0,type:"Element"},{name:"target",isMany:!0,isReference:!0,type:"Element"}]},{name:"BaseElement",isAbstract:!0,properties:[{name:"id",isAttr:!0,type:"String",isId:!0},{name:"documentation",type:"Documentation",isMany:!0},{name:"extensionDefinitions",type:"ExtensionDefinition",isMany:!0,isReference:!0},{name:"extensionElements",type:"ExtensionElements"}]},{name:"Extension",properties:[{name:"mustUnderstand",default:!1,isAttr:!0,type:"Boolean"},{name:"definition",type:"ExtensionDefinition",isAttr:!0,isReference:!0}]},{name:"ExtensionDefinition",properties:[{name:"name",isAttr:!0,type:"String"},{name:"extensionAttributeDefinitions",type:"ExtensionAttributeDefinition",isMany:!0}]},{name:"ExtensionAttributeDefinition",properties:[{name:"name",isAttr:!0,type:"String"},{name:"type",isAttr:!0,type:"String"},{name:"isReference",default:!1,isAttr:!0,type:"Boolean"},{name:"extensionDefinition",type:"ExtensionDefinition",isAttr:!0,isReference:!0}]},{name:"ExtensionElements",properties:[{name:"valueRef",isAttr:!0,isReference:!0,type:"Element"},{name:"values",type:"Element",isMany:!0},{name:"extensionAttributeDefinition",type:"ExtensionAttributeDefinition",isAttr:!0,isReference:!0}]},{name:"Documentation",superClass:["BaseElement"],properties:[{name:"text",type:"String",isBody:!0},{name:"textFormat",default:"text/plain",isAttr:!0,type:"String"}]},{name:"Event",isAbstract:!0,superClass:["FlowNode","InteractionNode"],properties:[{name:"properties",type:"Property",isMany:!0}]},{name:"IntermediateCatchEvent",superClass:["CatchEvent"]},{name:"IntermediateThrowEvent",superClass:["ThrowEvent"]},{name:"EndEvent",superClass:["ThrowEvent"]},{name:"StartEvent",superClass:["CatchEvent"],properties:[{name:"isInterrupting",default:!0,isAttr:!0,type:"Boolean"}]},{name:"ThrowEvent",isAbstract:!0,superClass:["Event"],properties:[{name:"dataInputs",type:"DataInput",isMany:!0},{name:"dataInputAssociations",type:"DataInputAssociation",isMany:!0},{name:"inputSet",type:"InputSet"},{name:"eventDefinitions",type:"EventDefinition",isMany:!0},{name:"eventDefinitionRef",type:"EventDefinition",isMany:!0,isReference:!0}]},{name:"CatchEvent",isAbstract:!0,superClass:["Event"],properties:[{name:"parallelMultiple",isAttr:!0,type:"Boolean",default:!1},{name:"dataOutputs",type:"DataOutput",isMany:!0},{name:"dataOutputAssociations",type:"DataOutputAssociation",isMany:!0},{name:"outputSet",type:"OutputSet"},{name:"eventDefinitions",type:"EventDefinition",isMany:!0},{name:"eventDefinitionRef",type:"EventDefinition",isMany:!0,isReference:!0}]},{name:"BoundaryEvent",superClass:["CatchEvent"],properties:[{name:"cancelActivity",default:!0,isAttr:!0,type:"Boolean"},{name:"attachedToRef",type:"Activity",isAttr:!0,isReference:!0}]},{name:"EventDefinition",isAbstract:!0,superClass:["RootElement"]},{name:"CancelEventDefinition",superClass:["EventDefinition"]},{name:"ErrorEventDefinition",superClass:["EventDefinition"],properties:[{name:"errorRef",type:"Error",isAttr:!0,isReference:!0}]},{name:"TerminateEventDefinition",superClass:["EventDefinition"]},{name:"EscalationEventDefinition",superClass:["EventDefinition"],properties:[{name:"escalationRef",type:"Escalation",isAttr:!0,isReference:!0}]},{name:"Escalation",properties:[{name:"structureRef",type:"ItemDefinition",isAttr:!0,isReference:!0},{name:"name",isAttr:!0,type:"String"},{name:"escalationCode",isAttr:!0,type:"String"}],superClass:["RootElement"]},{name:"CompensateEventDefinition",superClass:["EventDefinition"],properties:[{name:"waitForCompletion",isAttr:!0,type:"Boolean",default:!0},{name:"activityRef",type:"Activity",isAttr:!0,isReference:!0}]},{name:"TimerEventDefinition",superClass:["EventDefinition"],properties:[{name:"timeDate",type:"Expression",xml:{serialize:"xsi:type"}},{name:"timeCycle",type:"Expression",xml:{serialize:"xsi:type"}},{name:"timeDuration",type:"Expression",xml:{serialize:"xsi:type"}}]},{name:"LinkEventDefinition",superClass:["EventDefinition"],properties:[{name:"name",isAttr:!0,type:"String"},{name:"target",type:"LinkEventDefinition",isReference:!0},{name:"source",type:"LinkEventDefinition",isMany:!0,isReference:!0}]},{name:"MessageEventDefinition",superClass:["EventDefinition"],properties:[{name:"messageRef",type:"Message",isAttr:!0,isReference:!0},{name:"operationRef",type:"Operation",isReference:!0}]},{name:"ConditionalEventDefinition",superClass:["EventDefinition"],properties:[{name:"condition",type:"Expression",xml:{serialize:"xsi:type"}}]},{name:"SignalEventDefinition",superClass:["EventDefinition"],properties:[{name:"signalRef",type:"Signal",isAttr:!0,isReference:!0}]},{name:"Signal",superClass:["RootElement"],properties:[{name:"structureRef",type:"ItemDefinition",isAttr:!0,isReference:!0},{name:"name",isAttr:!0,type:"String"}]},{name:"ImplicitThrowEvent",superClass:["ThrowEvent"]},{name:"DataState",superClass:["BaseElement"],properties:[{name:"name",isAttr:!0,type:"String"}]},{name:"ItemAwareElement",superClass:["BaseElement"],properties:[{name:"itemSubjectRef",type:"ItemDefinition",isAttr:!0,isReference:!0},{name:"dataState",type:"DataState"}]},{name:"DataAssociation",superClass:["BaseElement"],properties:[{name:"sourceRef",type:"ItemAwareElement",isMany:!0,isReference:!0},{name:"targetRef",type:"ItemAwareElement",isReference:!0},{name:"transformation",type:"FormalExpression",xml:{serialize:"property"}},{name:"assignment",type:"Assignment",isMany:!0}]},{name:"DataInput",superClass:["ItemAwareElement"],properties:[{name:"name",isAttr:!0,type:"String"},{name:"isCollection",default:!1,isAttr:!0,type:"Boolean"},{name:"inputSetRef",type:"InputSet",isMany:!0,isVirtual:!0,isReference:!0},{name:"inputSetWithOptional",type:"InputSet",isMany:!0,isVirtual:!0,isReference:!0},{name:"inputSetWithWhileExecuting",type:"InputSet",isMany:!0,isVirtual:!0,isReference:!0}]},{name:"DataOutput",superClass:["ItemAwareElement"],properties:[{name:"name",isAttr:!0,type:"String"},{name:"isCollection",default:!1,isAttr:!0,type:"Boolean"},{name:"outputSetRef",type:"OutputSet",isMany:!0,isVirtual:!0,isReference:!0},{name:"outputSetWithOptional",type:"OutputSet",isMany:!0,isVirtual:!0,isReference:!0},{name:"outputSetWithWhileExecuting",type:"OutputSet",isMany:!0,isVirtual:!0,isReference:!0}]},{name:"InputSet",superClass:["BaseElement"],properties:[{name:"name",isAttr:!0,type:"String"},{name:"dataInputRefs",type:"DataInput",isMany:!0,isReference:!0},{name:"optionalInputRefs",type:"DataInput",isMany:!0,isReference:!0},{name:"whileExecutingInputRefs",type:"DataInput",isMany:!0,isReference:!0},{name:"outputSetRefs",type:"OutputSet",isMany:!0,isReference:!0}]},{name:"OutputSet",superClass:["BaseElement"],properties:[{name:"dataOutputRefs",type:"DataOutput",isMany:!0,isReference:!0},{name:"name",isAttr:!0,type:"String"},{name:"inputSetRefs",type:"InputSet",isMany:!0,isReference:!0},{name:"optionalOutputRefs",type:"DataOutput",isMany:!0,isReference:!0},{name:"whileExecutingOutputRefs",type:"DataOutput",isMany:!0,isReference:!0}]},{name:"Property",superClass:["ItemAwareElement"],properties:[{name:"name",isAttr:!0,type:"String"}]},{name:"DataInputAssociation",superClass:["DataAssociation"]},{name:"DataOutputAssociation",superClass:["DataAssociation"]},{name:"InputOutputSpecification",superClass:["BaseElement"],properties:[{name:"dataInputs",type:"DataInput",isMany:!0},{name:"dataOutputs",type:"DataOutput",isMany:!0},{name:"inputSets",type:"InputSet",isMany:!0},{name:"outputSets",type:"OutputSet",isMany:!0}]},{name:"DataObject",superClass:["FlowElement","ItemAwareElement"],properties:[{name:"isCollection",default:!1,isAttr:!0,type:"Boolean"}]},{name:"InputOutputBinding",properties:[{name:"inputDataRef",type:"InputSet",isAttr:!0,isReference:!0},{name:"outputDataRef",type:"OutputSet",isAttr:!0,isReference:!0},{name:"operationRef",type:"Operation",isAttr:!0,isReference:!0}]},{name:"Assignment",superClass:["BaseElement"],properties:[{name:"from",type:"Expression",xml:{serialize:"xsi:type"}},{name:"to",type:"Expression",xml:{serialize:"xsi:type"}}]},{name:"DataStore",superClass:["RootElement","ItemAwareElement"],properties:[{name:"name",isAttr:!0,type:"String"},{name:"capacity",isAttr:!0,type:"Integer"},{name:"isUnlimited",default:!0,isAttr:!0,type:"Boolean"}]},{name:"DataStoreReference",superClass:["ItemAwareElement","FlowElement"],properties:[{name:"dataStoreRef",type:"DataStore",isAttr:!0,isReference:!0}]},{name:"DataObjectReference",superClass:["ItemAwareElement","FlowElement"],properties:[{name:"dataObjectRef",type:"DataObject",isAttr:!0,isReference:!0}]},{name:"ConversationLink",superClass:["BaseElement"],properties:[{name:"sourceRef",type:"InteractionNode",isAttr:!0,isReference:!0},{name:"targetRef",type:"InteractionNode",isAttr:!0,isReference:!0},{name:"name",isAttr:!0,type:"String"}]},{name:"ConversationAssociation",superClass:["BaseElement"],properties:[{name:"innerConversationNodeRef",type:"ConversationNode",isAttr:!0,isReference:!0},{name:"outerConversationNodeRef",type:"ConversationNode",isAttr:!0,isReference:!0}]},{name:"CallConversation",superClass:["ConversationNode"],properties:[{name:"calledCollaborationRef",type:"Collaboration",isAttr:!0,isReference:!0},{name:"participantAssociations",type:"ParticipantAssociation",isMany:!0}]},{name:"Conversation",superClass:["ConversationNode"]},{name:"SubConversation",superClass:["ConversationNode"],properties:[{name:"conversationNodes",type:"ConversationNode",isMany:!0}]},{name:"ConversationNode",isAbstract:!0,superClass:["InteractionNode","BaseElement"],properties:[{name:"name",isAttr:!0,type:"String"},{name:"participantRef",type:"Participant",isMany:!0,isReference:!0},{name:"messageFlowRefs",type:"MessageFlow",isMany:!0,isReference:!0},{name:"correlationKeys",type:"CorrelationKey",isMany:!0}]},{name:"GlobalConversation",superClass:["Collaboration"]},{name:"PartnerEntity",superClass:["RootElement"],properties:[{name:"name",isAttr:!0,type:"String"},{name:"participantRef",type:"Participant",isMany:!0,isReference:!0}]},{name:"PartnerRole",superClass:["RootElement"],properties:[{name:"name",isAttr:!0,type:"String"},{name:"participantRef",type:"Participant",isMany:!0,isReference:!0}]},{name:"CorrelationProperty",superClass:["RootElement"],properties:[{name:"correlationPropertyRetrievalExpression",type:"CorrelationPropertyRetrievalExpression",isMany:!0},{name:"name",isAttr:!0,type:"String"},{name:"type",type:"ItemDefinition",isAttr:!0,isReference:!0}]},{name:"Error",superClass:["RootElement"],properties:[{name:"structureRef",type:"ItemDefinition",isAttr:!0,isReference:!0},{name:"name",isAttr:!0,type:"String"},{name:"errorCode",isAttr:!0,type:"String"}]},{name:"CorrelationKey",superClass:["BaseElement"],properties:[{name:"correlationPropertyRef",type:"CorrelationProperty",isMany:!0,isReference:!0},{name:"name",isAttr:!0,type:"String"}]},{name:"Expression",superClass:["BaseElement"],isAbstract:!1,properties:[{name:"body",isBody:!0,type:"String"}]},{name:"FormalExpression",superClass:["Expression"],properties:[{name:"language",isAttr:!0,type:"String"},{name:"evaluatesToTypeRef",type:"ItemDefinition",isAttr:!0,isReference:!0}]},{name:"Message",superClass:["RootElement"],properties:[{name:"name",isAttr:!0,type:"String"},{name:"itemRef",type:"ItemDefinition",isAttr:!0,isReference:!0}]},{name:"ItemDefinition",superClass:["RootElement"],properties:[{name:"itemKind",type:"ItemKind",isAttr:!0},{name:"structureRef",isAttr:!0,type:"String"},{name:"isCollection",default:!1,isAttr:!0,type:"Boolean"},{name:"import",type:"Import",isAttr:!0,isReference:!0}]},{name:"FlowElement",isAbstract:!0,superClass:["BaseElement"],properties:[{name:"name",isAttr:!0,type:"String"},{name:"auditing",type:"Auditing"},{name:"monitoring",type:"Monitoring"},{name:"categoryValueRef",type:"CategoryValue",isMany:!0,isReference:!0}]},{name:"SequenceFlow",superClass:["FlowElement"],properties:[{name:"isImmediate",isAttr:!0,type:"Boolean"},{name:"conditionExpression",type:"Expression",xml:{serialize:"xsi:type"}},{name:"sourceRef",type:"FlowNode",isAttr:!0,isReference:!0},{name:"targetRef",type:"FlowNode",isAttr:!0,isReference:!0}]},{name:"FlowElementsContainer",isAbstract:!0,superClass:["BaseElement"],properties:[{name:"laneSets",type:"LaneSet",isMany:!0},{name:"flowElements",type:"FlowElement",isMany:!0}]},{name:"CallableElement",isAbstract:!0,superClass:["RootElement"],properties:[{name:"name",isAttr:!0,type:"String"},{name:"ioSpecification",type:"InputOutputSpecification",xml:{serialize:"property"}},{name:"supportedInterfaceRef",type:"Interface",isMany:!0,isReference:!0},{name:"ioBinding",type:"InputOutputBinding",isMany:!0,xml:{serialize:"property"}}]},{name:"FlowNode",isAbstract:!0,superClass:["FlowElement"],properties:[{name:"incoming",type:"SequenceFlow",isMany:!0,isReference:!0},{name:"outgoing",type:"SequenceFlow",isMany:!0,isReference:!0},{name:"lanes",type:"Lane",isMany:!0,isVirtual:!0,isReference:!0}]},{name:"CorrelationPropertyRetrievalExpression",superClass:["BaseElement"],properties:[{name:"messagePath",type:"FormalExpression"},{name:"messageRef",type:"Message",isAttr:!0,isReference:!0}]},{name:"CorrelationPropertyBinding",superClass:["BaseElement"],properties:[{name:"dataPath",type:"FormalExpression"},{name:"correlationPropertyRef",type:"CorrelationProperty",isAttr:!0,isReference:!0}]},{name:"Resource",superClass:["RootElement"],properties:[{name:"name",isAttr:!0,type:"String"},{name:"resourceParameters",type:"ResourceParameter",isMany:!0}]},{name:"ResourceParameter",superClass:["BaseElement"],properties:[{name:"name",isAttr:!0,type:"String"},{name:"isRequired",isAttr:!0,type:"Boolean"},{name:"type",type:"ItemDefinition",isAttr:!0,isReference:!0}]},{name:"CorrelationSubscription",superClass:["BaseElement"],properties:[{name:"correlationKeyRef",type:"CorrelationKey",isAttr:!0,isReference:!0},{name:"correlationPropertyBinding",type:"CorrelationPropertyBinding",isMany:!0}]},{name:"MessageFlow",superClass:["BaseElement"],properties:[{name:"name",isAttr:!0,type:"String"},{name:"sourceRef",type:"InteractionNode",isAttr:!0,isReference:!0},{name:"targetRef",type:"InteractionNode",isAttr:!0,isReference:!0},{name:"messageRef",type:"Message",isAttr:!0,isReference:!0}]},{name:"MessageFlowAssociation",superClass:["BaseElement"],properties:[{name:"innerMessageFlowRef",type:"MessageFlow",isAttr:!0,isReference:!0},{name:"outerMessageFlowRef",type:"MessageFlow",isAttr:!0,isReference:!0}]},{name:"InteractionNode",isAbstract:!0,properties:[{name:"incomingConversationLinks",type:"ConversationLink",isMany:!0,isVirtual:!0,isReference:!0},{name:"outgoingConversationLinks",type:"ConversationLink",isMany:!0,isVirtual:!0,isReference:!0}]},{name:"Participant",superClass:["InteractionNode","BaseElement"],properties:[{name:"name",isAttr:!0,type:"String"},{name:"interfaceRef",type:"Interface",isMany:!0,isReference:!0},{name:"participantMultiplicity",type:"ParticipantMultiplicity"},{name:"endPointRefs",type:"EndPoint",isMany:!0,isReference:!0},{name:"processRef",type:"Process",isAttr:!0,isReference:!0}]},{name:"ParticipantAssociation",superClass:["BaseElement"],properties:[{name:"innerParticipantRef",type:"Participant",isAttr:!0,isReference:!0},{name:"outerParticipantRef",type:"Participant",isAttr:!0,isReference:!0}]},{name:"ParticipantMultiplicity",properties:[{name:"minimum",default:0,isAttr:!0,type:"Integer"},{name:"maximum",default:1,isAttr:!0,type:"Integer"}],superClass:["BaseElement"]},{name:"Collaboration",superClass:["RootElement"],properties:[{name:"name",isAttr:!0,type:"String"},{name:"isClosed",isAttr:!0,type:"Boolean"},{name:"participants",type:"Participant",isMany:!0},{name:"messageFlows",type:"MessageFlow",isMany:!0},{name:"artifacts",type:"Artifact",isMany:!0},{name:"conversations",type:"ConversationNode",isMany:!0},{name:"conversationAssociations",type:"ConversationAssociation"},{name:"participantAssociations",type:"ParticipantAssociation",isMany:!0},{name:"messageFlowAssociations",type:"MessageFlowAssociation",isMany:!0},{name:"correlationKeys",type:"CorrelationKey",isMany:!0},{name:"choreographyRef",type:"Choreography",isMany:!0,isReference:!0},{name:"conversationLinks",type:"ConversationLink",isMany:!0}]},{name:"ChoreographyActivity",isAbstract:!0,superClass:["FlowNode"],properties:[{name:"participantRef",type:"Participant",isMany:!0,isReference:!0},{name:"initiatingParticipantRef",type:"Participant",isAttr:!0,isReference:!0},{name:"correlationKeys",type:"CorrelationKey",isMany:!0},{name:"loopType",type:"ChoreographyLoopType",default:"None",isAttr:!0}]},{name:"CallChoreography",superClass:["ChoreographyActivity"],properties:[{name:"calledChoreographyRef",type:"Choreography",isAttr:!0,isReference:!0},{name:"participantAssociations",type:"ParticipantAssociation",isMany:!0}]},{name:"SubChoreography",superClass:["ChoreographyActivity","FlowElementsContainer"],properties:[{name:"artifacts",type:"Artifact",isMany:!0}]},{name:"ChoreographyTask",superClass:["ChoreographyActivity"],properties:[{name:"messageFlowRef",type:"MessageFlow",isMany:!0,isReference:!0}]},{name:"Choreography",superClass:["Collaboration","FlowElementsContainer"]},{name:"GlobalChoreographyTask",superClass:["Choreography"],properties:[{name:"initiatingParticipantRef",type:"Participant",isAttr:!0,isReference:!0}]},{name:"TextAnnotation",superClass:["Artifact"],properties:[{name:"text",type:"String"},{name:"textFormat",default:"text/plain",isAttr:!0,type:"String"}]},{name:"Group",superClass:["Artifact"],properties:[{name:"categoryValueRef",type:"CategoryValue",isAttr:!0,isReference:!0}]},{name:"Association",superClass:["Artifact"],properties:[{name:"associationDirection",type:"AssociationDirection",isAttr:!0},{name:"sourceRef",type:"BaseElement",isAttr:!0,isReference:!0},{name:"targetRef",type:"BaseElement",isAttr:!0,isReference:!0}]},{name:"Category",superClass:["RootElement"],properties:[{name:"categoryValue",type:"CategoryValue",isMany:!0},{name:"name",isAttr:!0,type:"String"}]},{name:"Artifact",isAbstract:!0,superClass:["BaseElement"]},{name:"CategoryValue",superClass:["BaseElement"],properties:[{name:"categorizedFlowElements",type:"FlowElement",isMany:!0,isVirtual:!0,isReference:!0},{name:"value",isAttr:!0,type:"String"}]},{name:"Activity",isAbstract:!0,superClass:["FlowNode"],properties:[{name:"isForCompensation",default:!1,isAttr:!0,type:"Boolean"},{name:"default",type:"SequenceFlow",isAttr:!0,isReference:!0},{name:"ioSpecification",type:"InputOutputSpecification",xml:{serialize:"property"}},{name:"boundaryEventRefs",type:"BoundaryEvent",isMany:!0,isReference:!0},{name:"properties",type:"Property",isMany:!0},{name:"dataInputAssociations",type:"DataInputAssociation",isMany:!0},{name:"dataOutputAssociations",type:"DataOutputAssociation",isMany:!0},{name:"startQuantity",default:1,isAttr:!0,type:"Integer"},{name:"resources",type:"ResourceRole",isMany:!0},{name:"completionQuantity",default:1,isAttr:!0,type:"Integer"},{name:"loopCharacteristics",type:"LoopCharacteristics"}]},{name:"ServiceTask",superClass:["Task"],properties:[{name:"implementation",isAttr:!0,type:"String"},{name:"operationRef",type:"Operation",isAttr:!0,isReference:!0}]},{name:"SubProcess",superClass:["Activity","FlowElementsContainer","InteractionNode"],properties:[{name:"triggeredByEvent",default:!1,isAttr:!0,type:"Boolean"},{name:"artifacts",type:"Artifact",isMany:!0}]},{name:"LoopCharacteristics",isAbstract:!0,superClass:["BaseElement"]},{name:"MultiInstanceLoopCharacteristics",superClass:["LoopCharacteristics"],properties:[{name:"isSequential",default:!1,isAttr:!0,type:"Boolean"},{name:"behavior",type:"MultiInstanceBehavior",default:"All",isAttr:!0},{name:"loopCardinality",type:"Expression",xml:{serialize:"xsi:type"}},{name:"loopDataInputRef",type:"ItemAwareElement",isReference:!0},{name:"loopDataOutputRef",type:"ItemAwareElement",isReference:!0},{name:"inputDataItem",type:"DataInput",xml:{serialize:"property"}},{name:"outputDataItem",type:"DataOutput",xml:{serialize:"property"}},{name:"complexBehaviorDefinition",type:"ComplexBehaviorDefinition",isMany:!0},{name:"completionCondition",type:"Expression",xml:{serialize:"xsi:type"}},{name:"oneBehaviorEventRef",type:"EventDefinition",isAttr:!0,isReference:!0},{name:"noneBehaviorEventRef",type:"EventDefinition",isAttr:!0,isReference:!0}]},{name:"StandardLoopCharacteristics",superClass:["LoopCharacteristics"],properties:[{name:"testBefore",default:!1,isAttr:!0,type:"Boolean"},{name:"loopCondition",type:"Expression",xml:{serialize:"xsi:type"}},{name:"loopMaximum",type:"Integer",isAttr:!0}]},{name:"CallActivity",superClass:["Activity","InteractionNode"],properties:[{name:"calledElement",type:"String",isAttr:!0}]},{name:"Task",superClass:["Activity","InteractionNode"]},{name:"SendTask",superClass:["Task"],properties:[{name:"implementation",isAttr:!0,type:"String"},{name:"operationRef",type:"Operation",isAttr:!0,isReference:!0},{name:"messageRef",type:"Message",isAttr:!0,isReference:!0}]},{name:"ReceiveTask",superClass:["Task"],properties:[{name:"implementation",isAttr:!0,type:"String"},{name:"instantiate",default:!1,isAttr:!0,type:"Boolean"},{name:"operationRef",type:"Operation",isAttr:!0,isReference:!0},{name:"messageRef",type:"Message",isAttr:!0,isReference:!0}]},{name:"ScriptTask",superClass:["Task"],properties:[{name:"scriptFormat",isAttr:!0,type:"String"},{name:"script",type:"String"}]},{name:"BusinessRuleTask",superClass:["Task"],properties:[{name:"implementation",isAttr:!0,type:"String"}]},{name:"AdHocSubProcess",superClass:["SubProcess"],properties:[{name:"completionCondition",type:"Expression",xml:{serialize:"xsi:type"}},{name:"ordering",type:"AdHocOrdering",isAttr:!0},{name:"cancelRemainingInstances",default:!0,isAttr:!0,type:"Boolean"}]},{name:"Transaction",superClass:["SubProcess"],properties:[{name:"protocol",isAttr:!0,type:"String"},{name:"method",isAttr:!0,type:"String"}]},{name:"GlobalScriptTask",superClass:["GlobalTask"],properties:[{name:"scriptLanguage",isAttr:!0,type:"String"},{name:"script",isAttr:!0,type:"String"}]},{name:"GlobalBusinessRuleTask",superClass:["GlobalTask"],properties:[{name:"implementation",isAttr:!0,type:"String"}]},{name:"ComplexBehaviorDefinition",superClass:["BaseElement"],properties:[{name:"condition",type:"FormalExpression"},{name:"event",type:"ImplicitThrowEvent"}]},{name:"ResourceRole",superClass:["BaseElement"],properties:[{name:"resourceRef",type:"Resource",isReference:!0},{name:"resourceParameterBindings",type:"ResourceParameterBinding",isMany:!0},{name:"resourceAssignmentExpression",type:"ResourceAssignmentExpression"},{name:"name",isAttr:!0,type:"String"}]},{name:"ResourceParameterBinding",properties:[{name:"expression",type:"Expression",xml:{serialize:"xsi:type"}},{name:"parameterRef",type:"ResourceParameter",isAttr:!0,isReference:!0}],superClass:["BaseElement"]},{name:"ResourceAssignmentExpression",properties:[{name:"expression",type:"Expression",xml:{serialize:"xsi:type"}}],superClass:["BaseElement"]},{name:"Import",properties:[{name:"importType",isAttr:!0,type:"String"},{name:"location",isAttr:!0,type:"String"},{name:"namespace",isAttr:!0,type:"String"}]},{name:"Definitions",superClass:["BaseElement"],properties:[{name:"name",isAttr:!0,type:"String"},{name:"targetNamespace",isAttr:!0,type:"String"},{name:"expressionLanguage",default:"http://www.w3.org/1999/XPath",isAttr:!0,type:"String"},{name:"typeLanguage",default:"http://www.w3.org/2001/XMLSchema",isAttr:!0,type:"String"},{name:"imports",type:"Import",isMany:!0},{name:"extensions",type:"Extension",isMany:!0},{name:"rootElements",type:"RootElement",isMany:!0},{name:"diagrams",isMany:!0,type:"bpmndi:BPMNDiagram"},{name:"exporter",isAttr:!0,type:"String"},{name:"relationships",type:"Relationship",isMany:!0},{name:"exporterVersion",isAttr:!0,type:"String"}]}],Uu=[{name:"ProcessType",literalValues:[{name:"None"},{name:"Public"},{name:"Private"}]},{name:"GatewayDirection",literalValues:[{name:"Unspecified"},{name:"Converging"},{name:"Diverging"},{name:"Mixed"}]},{name:"EventBasedGatewayType",literalValues:[{name:"Parallel"},{name:"Exclusive"}]},{name:"RelationshipDirection",literalValues:[{name:"None"},{name:"Forward"},{name:"Backward"},{name:"Both"}]},{name:"ItemKind",literalValues:[{name:"Physical"},{name:"Information"}]},{name:"ChoreographyLoopType",literalValues:[{name:"None"},{name:"Standard"},{name:"MultiInstanceSequential"},{name:"MultiInstanceParallel"}]},{name:"AssociationDirection",literalValues:[{name:"None"},{name:"One"},{name:"Both"}]},{name:"MultiInstanceBehavior",literalValues:[{name:"None"},{name:"One"},{name:"All"},{name:"Complex"}]},{name:"AdHocOrdering",literalValues:[{name:"Parallel"},{name:"Sequential"}]}],ju={tagAlias:"lowerCase",typePrefix:"t"},_u={name:vu,uri:Ru,prefix:Lu,associations:Fu,types:Qu,enumerations:Uu,xml:ju},Gu="BPMNDI",qu="http://www.omg.org/spec/BPMN/20100524/DI",Ju="bpmndi",Hu=[{name:"BPMNDiagram",properties:[{name:"plane",type:"BPMNPlane",redefines:"di:Diagram#rootElement"},{name:"labelStyle",type:"BPMNLabelStyle",isMany:!0}],superClass:["di:Diagram"]},{name:"BPMNPlane",properties:[{name:"bpmnElement",isAttr:!0,isReference:!0,type:"bpmn:BaseElement",redefines:"di:DiagramElement#modelElement"}],superClass:["di:Plane"]},{name:"BPMNShape",properties:[{name:"bpmnElement",isAttr:!0,isReference:!0,type:"bpmn:BaseElement",redefines:"di:DiagramElement#modelElement"},{name:"isHorizontal",isAttr:!0,type:"Boolean"},{name:"isExpanded",isAttr:!0,type:"Boolean"},{name:"isMarkerVisible",isAttr:!0,type:"Boolean"},{name:"label",type:"BPMNLabel"},{name:"isMessageVisible",isAttr:!0,type:"Boolean"},{name:"participantBandKind",type:"ParticipantBandKind",isAttr:!0},{name:"choreographyActivityShape",type:"BPMNShape",isAttr:!0,isReference:!0}],superClass:["di:LabeledShape"]},{name:"BPMNEdge",properties:[{name:"label",type:"BPMNLabel"},{name:"bpmnElement",isAttr:!0,isReference:!0,type:"bpmn:BaseElement",redefines:"di:DiagramElement#modelElement"},{name:"sourceElement",isAttr:!0,isReference:!0,type:"di:DiagramElement",redefines:"di:Edge#source"},{name:"targetElement",isAttr:!0,isReference:!0,type:"di:DiagramElement",redefines:"di:Edge#target"},{name:"messageVisibleKind",type:"MessageVisibleKind",isAttr:!0,default:"initiating"}],superClass:["di:LabeledEdge"]},{name:"BPMNLabel",properties:[{name:"labelStyle",type:"BPMNLabelStyle",isAttr:!0,isReference:!0,redefines:"di:DiagramElement#style"}],superClass:["di:Label"]},{name:"BPMNLabelStyle",properties:[{name:"font",type:"dc:Font"}],superClass:["di:Style"]}],Ku=[{name:"ParticipantBandKind",literalValues:[{name:"top_initiating"},{name:"middle_initiating"},{name:"bottom_initiating"},{name:"top_non_initiating"},{name:"middle_non_initiating"},{name:"bottom_non_initiating"}]},{name:"MessageVisibleKind",literalValues:[{name:"initiating"},{name:"non_initiating"}]}],zu=[],Wu={name:Gu,uri:qu,prefix:Ju,types:Hu,enumerations:Ku,associations:zu},Yu="DC",Zu="http://www.omg.org/spec/DD/20100524/DC",Xu="dc",$u=[{name:"Boolean"},{name:"Integer"},{name:"Real"},{name:"String"},{name:"Font",properties:[{name:"name",type:"String",isAttr:!0},{name:"size",type:"Real",isAttr:!0},{name:"isBold",type:"Boolean",isAttr:!0},{name:"isItalic",type:"Boolean",isAttr:!0},{name:"isUnderline",type:"Boolean",isAttr:!0},{name:"isStrikeThrough",type:"Boolean",isAttr:!0}]},{name:"Point",properties:[{name:"x",type:"Real",default:"0",isAttr:!0},{name:"y",type:"Real",default:"0",isAttr:!0}]},{name:"Bounds",properties:[{name:"x",type:"Real",default:"0",isAttr:!0},{name:"y",type:"Real",default:"0",isAttr:!0},{name:"width",type:"Real",isAttr:!0},{name:"height",type:"Real",isAttr:!0}]}],ef=[],tf={name:Yu,uri:Zu,prefix:Xu,types:$u,associations:ef},nf="DI",sf="http://www.omg.org/spec/DD/20100524/DI",rf="di",of=[{name:"DiagramElement",isAbstract:!0,properties:[{name:"id",isAttr:!0,isId:!0,type:"String"},{name:"extension",type:"Extension"},{name:"owningDiagram",type:"Diagram",isReadOnly:!0,isVirtual:!0,isReference:!0},{name:"owningElement",type:"DiagramElement",isReadOnly:!0,isVirtual:!0,isReference:!0},{name:"modelElement",isReadOnly:!0,isVirtual:!0,isReference:!0,type:"Element"},{name:"style",type:"Style",isReadOnly:!0,isVirtual:!0,isReference:!0},{name:"ownedElement",type:"DiagramElement",isReadOnly:!0,isMany:!0,isVirtual:!0}]},{name:"Node",isAbstract:!0,superClass:["DiagramElement"]},{name:"Edge",isAbstract:!0,superClass:["DiagramElement"],properties:[{name:"source",type:"DiagramElement",isReadOnly:!0,isVirtual:!0,isReference:!0},{name:"target",type:"DiagramElement",isReadOnly:!0,isVirtual:!0,isReference:!0},{name:"waypoint",isUnique:!1,isMany:!0,type:"dc:Point",xml:{serialize:"xsi:type"}}]},{name:"Diagram",isAbstract:!0,properties:[{name:"id",isAttr:!0,isId:!0,type:"String"},{name:"rootElement",type:"DiagramElement",isReadOnly:!0,isVirtual:!0},{name:"name",isAttr:!0,type:"String"},{name:"documentation",isAttr:!0,type:"String"},{name:"resolution",isAttr:!0,type:"Real"},{name:"ownedStyle",type:"Style",isReadOnly:!0,isMany:!0,isVirtual:!0}]},{name:"Shape",isAbstract:!0,superClass:["Node"],properties:[{name:"bounds",type:"dc:Bounds"}]},{name:"Plane",isAbstract:!0,superClass:["Node"],properties:[{name:"planeElement",type:"DiagramElement",subsettedProperty:"DiagramElement-ownedElement",isMany:!0}]},{name:"LabeledEdge",isAbstract:!0,superClass:["Edge"],properties:[{name:"ownedLabel",type:"Label",isReadOnly:!0,subsettedProperty:"DiagramElement-ownedElement",isMany:!0,isVirtual:!0}]},{name:"LabeledShape",isAbstract:!0,superClass:["Shape"],properties:[{name:"ownedLabel",type:"Label",isReadOnly:!0,subsettedProperty:"DiagramElement-ownedElement",isMany:!0,isVirtual:!0}]},{name:"Label",isAbstract:!0,superClass:["Node"],properties:[{name:"bounds",type:"dc:Bounds"}]},{name:"Style",isAbstract:!0,properties:[{name:"id",isAttr:!0,isId:!0,type:"String"}]},{name:"Extension",properties:[{name:"values",isMany:!0,type:"Element"}]}],af=[],lf={tagAlias:"lowerCase"},cf={name:nf,uri:sf,prefix:rf,types:of,associations:af,xml:lf},pf="bpmn.io colors for BPMN",df="http://bpmn.io/schema/bpmn/biocolor/1.0",hf="bioc",uf=[{name:"ColoredShape",extends:["bpmndi:BPMNShape"],properties:[{name:"stroke",isAttr:!0,type:"String"},{name:"fill",isAttr:!0,type:"String"}]},{name:"ColoredEdge",extends:["bpmndi:BPMNEdge"],properties:[{name:"stroke",isAttr:!0,type:"String"},{name:"fill",isAttr:!0,type:"String"}]}],ff=[],mf=[],gf={name:pf,uri:df,prefix:hf,types:uf,enumerations:ff,associations:mf},yf="BPMN in Color",Af="http://www.omg.org/spec/BPMN/non-normative/color/1.0",kf="color",Ef=[{name:"ColoredLabel",extends:["bpmndi:BPMNLabel"],properties:[{name:"color",isAttr:!0,type:"String"}]},{name:"ColoredShape",extends:["bpmndi:BPMNShape"],properties:[{name:"background-color",isAttr:!0,type:"String"},{name:"border-color",isAttr:!0,type:"String"}]},{name:"ColoredEdge",extends:["bpmndi:BPMNEdge"],properties:[{name:"border-color",isAttr:!0,type:"String"}]}],bf=[],Cf=[],wf={name:yf,uri:Af,prefix:kf,types:Ef,enumerations:bf,associations:Cf};const Tf={bpmn:_u,bpmndi:Wu,dc:tf,di:cf,bioc:gf,color:wf};function Nf(e,t){const i=_({},Tf,e);return new On(i,t)}var Bf="Tried to access di from the businessObject. The di is available through the diagram element only. For more information, see https://github.com/bpmn-io/bpmn-js/issues/1472";function If(e){di(e,"di")||Object.defineProperty(e,"di",{enumerable:!1,get:function(){throw new Error(Bf)}})}function Se(e,t){return e.$instanceOf(t)}function xf(e){return nt(e.rootElements,function(t){return Se(t,"bpmn:Process")||Se(t,"bpmn:Collaboration")})}function Sf(e){var t={},i=[],s={};function r(T,N){return function(j){T(j,N)}}function o(T){t[T.id]=T}function a(T){return t[T.id]}function l(T,N){var j=T.gfx;if(j)throw new Error(`already rendered ${Te(T)}`);return e.element(T,s[T.id],N)}function c(T,N){return e.root(T,s[T.id],N)}function f(T,N){try{var j=s[T.id]&&l(T,N);return o(T),j}catch(te){h(te.message,{element:T,error:te}),console.error(`failed to import ${Te(T)}`,te)}}function h(T,N){e.error(T,N)}var u=this.registerDi=function(N){var j=N.bpmnElement;j?s[j.id]?h(`multiple DI elements defined for ${Te(j)}`,{element:j}):(s[j.id]=N,If(j)):h(`no bpmnElement referenced in ${Te(N)}`,{element:N})};function g(T){E(T.plane)}function E(T){u(T),v(T.planeElement,I)}function I(T){u(T)}this.handleDefinitions=function(N,j){var te=N.diagrams;if(j&&te.indexOf(j)===-1)throw new Error("diagram not part of <bpmn:Definitions />");if(!j&&te&&te.length&&(j=te[0]),!j)throw new Error("no diagram to display");s={},g(j);var _e=j.plane;if(!_e)throw new Error(`no plane for ${Te(j)}`);var m=_e.bpmnElement;if(!m)if(m=xf(N),m)h(`correcting missing bpmnElement on ${Te(_e)} to ${Te(m)}`),_e.bpmnElement=m,u(_e);else throw new Error("no process or collaboration to display");var d=c(m,_e);if(Se(m,"bpmn:Process")||Se(m,"bpmn:SubProcess"))H(m,d);else if(Se(m,"bpmn:Collaboration"))fe(m,d),X(N.rootElements,d);else throw new Error(`unsupported bpmnElement for ${Te(_e)}: ${Te(m)}`);P(i)};var P=this.handleDeferred=function(){for(var N;i.length;)N=i.shift(),N()};function H(T,N){Z(T,N),V(T.ioSpecification,N),C(T.artifacts,N),o(T)}function X(T,N){var j=hi(T,function(te){return!a(te)&&Se(te,"bpmn:Process")&&te.laneSets});j.forEach(r(H,N))}function K(T,N){f(T,N)}function x(T,N){v(T,r(K,N))}function A(T,N){f(T,N)}function w(T,N){f(T,N)}function S(T,N){f(T,N)}function U(T,N){f(T,N)}function C(T,N){v(T,function(j){Se(j,"bpmn:Association")?i.push(function(){U(j,N)}):U(j,N)})}function V(T,N){!T||(v(T.dataInputs,r(w,N)),v(T.dataOutputs,r(S,N)))}var D=this.handleSubProcess=function(N,j){Z(N,j),C(N.artifacts,j)};function L(T,N){var j=f(T,N);Se(T,"bpmn:SubProcess")&&D(T,j||N),Se(T,"bpmn:Activity")&&V(T.ioSpecification,N),i.push(function(){v(T.dataInputAssociations,r(A,N)),v(T.dataOutputAssociations,r(A,N))})}function O(T,N){f(T,N)}function R(T,N){f(T,N)}function z(T,N){i.push(function(){var j=f(T,N);T.childLaneSet&&ut(T.childLaneSet,j||N),Ze(T)})}function ut(T,N){v(T.lanes,r(z,N))}function oe(T,N){v(T,r(ut,N))}function Z(T,N){rt(T.flowElements,N),T.laneSets&&oe(T.laneSets,N)}function rt(T,N){v(T,function(j){Se(j,"bpmn:SequenceFlow")?i.push(function(){O(j,N)}):Se(j,"bpmn:BoundaryEvent")?i.unshift(function(){L(j,N)}):Se(j,"bpmn:FlowNode")?L(j,N):Se(j,"bpmn:DataObject")||(Se(j,"bpmn:DataStoreReference")||Se(j,"bpmn:DataObjectReference")?R(j,N):h(`unrecognized flowElement ${Te(j)} in context ${Te(N&&N.businessObject)}`,{element:j,context:N}))})}function ot(T,N){var j=f(T,N),te=T.processRef;te&&H(te,j||N)}function fe(T,N){v(T.participants,r(ot,N)),i.push(function(){x(T.messageFlows,N)}),C(T.artifacts,N)}function Ze(T){v(T.flowNodeRef,function(N){var j=N.get("lanes");j&&j.push(T)})}}function Df(e,t,i){var s,r,o,a,l=[];function c(f,h){var u={root:function(P,H){return s.add(P,H)},element:function(P,H,X){return s.add(P,H,X)},error:function(P,H){l.push({message:P,context:H})}},g=new Sf(u);h=h||f.diagrams&&f.diagrams[0];var E=Pf(f,h);if(!E)throw new Error("no diagram to display");v(E,function(P){g.handleDefinitions(f,P)});var I=h.plane.bpmnElement.id;o.setRootElement(o.findRoot(I+"_plane")||o.findRoot(I))}return new Promise(function(f,h){try{return s=e.get("bpmnImporter"),r=e.get("eventBus"),o=e.get("canvas"),r.fire("import.render.start",{definitions:t}),c(t,i),r.fire("import.render.complete",{error:a,warnings:l}),f({warnings:l})}catch(u){return u.warnings=l,h(u)}})}function Pf(e,t){if(!(!t||!t.plane)){var i=t.plane.bpmnElement,s=i;!Q(i,"bpmn:Process")&&!Q(i,"bpmn:Collaboration")&&(s=Mf(i));var r;Q(s,"bpmn:Collaboration")?r=s:r=nt(e.rootElements,function(f){if(!!Q(f,"bpmn:Collaboration"))return nt(f.participants,function(h){return h.processRef===s})});var o=[s];r&&(o=up(r.participants,function(f){return f.processRef}),o.push(r));var a=Ea(o),l=[t],c=[i];return v(e.diagrams,function(f){if(!!f.plane){var h=f.plane.bpmnElement;a.indexOf(h)!==-1&&c.indexOf(h)===-1&&(l.push(f),c.push(h))}}),l}}function Ea(e){var t=[];return v(e,function(i){!i||(t.push(i),t=t.concat(Ea(i.flowElements)))}),t}function Mf(e){for(var t=e;t;){if(Q(t,"bpmn:Process"))return t;t=t.$parent}}var Vf='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 14.02 5.57" width="53" height="21"><path fill="currentColor" d="M1.88.92v.14c0 .41-.13.68-.4.8.33.14.46.44.46.86v.33c0 .61-.33.95-.95.95H0V0h.95c.65 0 .93.3.93.92zM.63.57v1.06h.24c.24 0 .38-.1.38-.43V.98c0-.28-.1-.4-.32-.4zm0 1.63v1.22h.36c.2 0 .32-.1.32-.39v-.35c0-.37-.12-.48-.4-.48H.63zM4.18.99v.52c0 .64-.31.98-.94.98h-.3V4h-.62V0h.92c.63 0 .94.35.94.99zM2.94.57v1.35h.3c.2 0 .3-.09.3-.37v-.6c0-.29-.1-.38-.3-.38h-.3zm2.89 2.27L6.25 0h.88v4h-.6V1.12L6.1 3.99h-.6l-.46-2.82v2.82h-.55V0h.87zM8.14 1.1V4h-.56V0h.79L9 2.4V0h.56v4h-.64zm2.49 2.29v.6h-.6v-.6zM12.12 1c0-.63.33-1 .95-1 .61 0 .95.37.95 1v2.04c0 .64-.34 1-.95 1-.62 0-.95-.37-.95-1zm.62 2.08c0 .28.13.39.33.39s.32-.1.32-.4V.98c0-.29-.12-.4-.32-.4s-.33.11-.33.4z"/><path fill="currentColor" d="M0 4.53h14.02v1.04H0zM11.08 0h.63v.62h-.63zm.63 4V1h-.63v2.98z"/></svg>',ba=Vf,Ca={verticalAlign:"middle"},wa={color:"#404040"},Of={zIndex:"1001",position:"fixed",top:"0",left:"0",right:"0",bottom:"0"},vf={width:"100%",height:"100%",background:"rgba(40,40,40,0.2)"},Rf={position:"absolute",left:"50%",top:"40%",transform:"translate(-50%)",width:"260px",padding:"10px",background:"white",boxShadow:"0 1px 4px rgba(0,0,0,0.3)",fontFamily:"Helvetica, Arial, sans-serif",fontSize:"14px",display:"flex",lineHeight:"1.3"},Lf='<div class="bjs-powered-by-lightbox"><div class="backdrop"></div><div class="notice"><a href="https://bpmn.io" target="_blank" rel="noopener" class="link">'+ba+'</a><span>Web-based tooling for BPMN, DMN and forms powered by <a href="https://bpmn.io" target="_blank" rel="noopener">bpmn.io</a>.</span></div></div>',ht;function Ff(){ht=Fe(Lf),we(ht,Of),we(At("svg",ht),Ca),we(At(".backdrop",ht),vf),we(At(".notice",ht),Rf),we(At(".link",ht),wa,{margin:"15px 20px 15px 10px",alignSelf:"center"})}function Qf(){ht||(Ff(),fi.bind(ht,".backdrop","click",function(e){document.body.removeChild(ht)})),document.body.appendChild(ht)}function ue(e){e=_({},jf,e),this._moddle=this._createModdle(e),this._container=this._createContainer(e),this._init(this._container,this._moddle,e),Gf(this._container)}lt(ue,Rt),ue.prototype.importXML=async function(t,i){const s=this;function r(a){return s.get("eventBus").createEvent(a)}let o=[];try{t=this._emit("import.parse.start",{xml:t})||t;let a;try{a=await this._moddle.fromXML(t,"bpmn:Definitions")}catch(g){throw this._emit("import.parse.complete",{error:g}),g}let l=a.rootElement;const c=a.references,f=a.warnings,h=a.elementsById;o=o.concat(f),l=this._emit("import.parse.complete",r({error:null,definitions:l,elementsById:h,references:c,warnings:o}))||l;const u=await this.importDefinitions(l,i);return o=o.concat(u.warnings),this._emit("import.done",{error:null,warnings:o}),{warnings:o}}catch(a){let l=a;throw o=o.concat(l.warnings||[]),vn(l,o),l=Uf(l),this._emit("import.done",{error:l,warnings:l.warnings}),l}},ue.prototype.importDefinitions=async function(t,i){return this._setDefinitions(t),{warnings:(await this.open(i)).warnings}},ue.prototype.open=async function(t){const i=this._definitions;let s=t;if(!i){const o=new Error("no XML imported");throw vn(o,[]),o}if(typeof t=="string"&&(s=_f(i,t),!s)){const o=new Error("BPMNDiagram <"+t+"> not found");throw vn(o,[]),o}try{this.clear()}catch(o){throw vn(o,[]),o}const{warnings:r}=await Df(this,i,s);return{warnings:r}},ue.prototype.saveXML=async function(t){t=t||{};let i=this._definitions,s,r;try{if(!i)throw new Error("no definitions loaded");i=this._emit("saveXML.start",{definitions:i})||i,r=(await this._moddle.toXML(i,t)).xml,r=this._emit("saveXML.serialized",{xml:r})||r}catch(a){s=a}const o=s?{error:s}:{xml:r};if(this._emit("saveXML.done",o),s)throw s;return o},ue.prototype.saveSVG=async function(){this._emit("saveSVG.start");let t,i;try{const s=this.get("canvas"),r=s.getActiveLayer(),o=At(":scope > defs",s._svg),a=lo(r),l=o?"<defs>"+lo(o)+"</defs>":"",c=r.getBBox();t=`<?xml version="1.0" encoding="utf-8"?>
27
27
  <!-- created with bpmn-js / http://bpmn.io -->
28
28
  <!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd">
29
- <svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" width="`+c.width+'" height="'+c.height+'" viewBox="'+c.x+" "+c.y+" "+c.width+" "+c.height+'" version="1.1">'+l+a+"</svg>"}catch(s){i=s}if(this._emit("saveSVG.done",{error:i,svg:t}),i)throw i;return{svg:t}},ue.prototype._setDefinitions=function(e){this._definitions=e},ue.prototype.getModules=function(){return this._modules},ue.prototype.clear=function(){!this.getDefinitions()||Rt.prototype.clear.call(this)},ue.prototype.destroy=function(){Rt.prototype.destroy.call(this),mi(this._container)},ue.prototype.on=function(e,t,i,s){return this.get("eventBus").on(e,t,i,s)},ue.prototype.off=function(e,t){this.get("eventBus").off(e,t)},ue.prototype.attachTo=function(e){if(!e)throw new Error("parentNode required");this.detach(),e.get&&e.constructor.prototype.jquery&&(e=e.get(0)),typeof e=="string"&&(e=At(e)),e.appendChild(this._container),this._emit("attach",{}),this.get("canvas").resized()},ue.prototype.getDefinitions=function(){return this._definitions},ue.prototype.detach=function(){const e=this._container,t=e.parentNode;!t||(this._emit("detach",{}),t.removeChild(e))},ue.prototype._init=function(e,t,i){const s=i.modules||this.getModules(i),r=i.additionalModules||[],o=[{bpmnjs:["value",this],moddle:["value",t]}],a=[].concat(o,s,r),l=_(kp(i,["additionalModules"]),{canvas:_({},i.canvas,{container:e}),modules:a});Rt.call(this,l),i&&i.container&&this.attachTo(i.container)},ue.prototype._emit=function(e,t){return this.get("eventBus").fire(e,t)},ue.prototype._createContainer=function(e){const t=Fe('<div class="bjs-container"></div>');return we(t,{width:Ta(e.width),height:Ta(e.height),position:e.position}),t},ue.prototype._createModdle=function(e){const t=_({},this._moddleExtensions,e.moddleExtensions);return new Nf(t)},ue.prototype._modules=[];function vn(e,t){return e.warnings=t,e}function Uf(e){const i=/unparsable content <([^>]+)> detected([\s\S]*)$/.exec(e.message);return i&&(e.message="unparsable content <"+i[1]+"> detected; this may indicate an invalid BPMN 2.0 diagram file"+i[2]),e}const jf={width:"100%",height:"100%",position:"relative"};function Ta(e){return e+(Dt(e)?"px":"")}function _f(e,t){return t&&nt(e.diagrams,function(i){return i.id===t})||null}function Gf(e){const i='<a href="http://bpmn.io" target="_blank" class="bjs-powered-by" title="Powered by bpmn.io" >'+ba+"</a>",s=Fe(i);we(At("svg",s),Ca),we(s,wa,{position:"absolute",bottom:"15px",right:"15px",zIndex:"100"}),e.appendChild(s),Wt.bind(s,"click",function(r){Qf(),r.preventDefault()})}function wi(e){ue.call(this,e)}lt(wi,ue),wi.prototype._modules=[th,Eh,Bo,Bh,Eo],wi.prototype._moddleExtensions={};var qf=/^djs-cursor-.*$/;function Na(e){var t=zt(document.body);t.removeMatching(qf),e&&t.add("djs-cursor-"+e)}function Jf(){Na(null)}var Hf=5e3;function Kf(e,t){t=t||"element.click";function i(){return!1}return e.once(t,Hf,i),function(){e.off(t,i)}}function Ba(e,t){return{x:e.x-t.x,y:e.y-t.y}}var zf=15;function Ia(e,t){var i;function s(l){return a(l.originalEvent)}e.on("canvas.focus.changed",function(l){l.focused?e.on("element.mousedown",500,s):e.off("element.mousedown",s)});function r(l){var c=i.start,f=i.button,h=Vo(l),u=Ba(h,c);if(!i.dragging&&Wf(u)>zf&&(i.dragging=!0,f===0&&Kf(e),Na("grab")),i.dragging){var g=i.last||i.start;u=Ba(h,g),t.scroll({dx:u.x,dy:u.y}),i.last=h}l.preventDefault()}function o(l){Wt.unbind(document,"mousemove",r),Wt.unbind(document,"mouseup",o),i=null,Jf()}function a(l){if(!uo(l.target,".djs-draggable")){var c=l.button;if(!(c>=2||l.ctrlKey||l.shiftKey||l.altKey))return i={button:c,start:Vo(l)},Wt.bind(document,"mousemove",r),Wt.bind(document,"mouseup",o),!0}}this.isActive=function(){return!!i}}Ia.$inject=["eventBus","canvas"];function Wf(e){return Math.sqrt(Math.pow(e.x,2)+Math.pow(e.y,2))}const Js={__init__:["moveCanvas"],moveCanvas:["type",Ia]};var Yf=new Is("tt");function Zf(e){var t=Fe('<div class="djs-tooltip-container" />');return we(t,{position:"absolute",width:"0",height:"0"}),e.insertBefore(t,e.firstChild),t}function Xf(e,t,i){we(e,{left:t+"px",top:i+"px"})}function Hs(e,t){e.style.display=t===!1?"none":""}var xa="djs-tooltip",Ks="."+xa;function De(e,t){this._eventBus=e,this._canvas=t,this._ids=Yf,this._tooltipDefaults={show:{minZoom:.7,maxZoom:5}},this._tooltips={},this._tooltipRoot=Zf(t.getContainer());var i=this;fi.bind(this._tooltipRoot,Ks,"mousedown",function(s){s.stopPropagation()}),fi.bind(this._tooltipRoot,Ks,"mouseover",function(s){i.trigger("mouseover",s)}),fi.bind(this._tooltipRoot,Ks,"mouseout",function(s){i.trigger("mouseout",s)}),this._init()}De.$inject=["eventBus","canvas"],De.prototype.add=function(e){if(!e.position)throw new Error("must specifiy tooltip position");if(!e.html)throw new Error("must specifiy tooltip html");var t=this._ids.next();return e=_({},this._tooltipDefaults,e,{id:t}),this._addTooltip(e),e.timeout&&this.setTimeout(e),t},De.prototype.trigger=function(e,t){var i=t.delegateTarget||t.target,s=this.get(bs(i,"data-tooltip-id"));!s||(e==="mouseover"&&s.timeout&&this.clearTimeout(s),e==="mouseout"&&s.timeout&&(s.timeout=1e3,this.setTimeout(s)))},De.prototype.get=function(e){return typeof e!="string"&&(e=e.id),this._tooltips[e]},De.prototype.clearTimeout=function(e){if(e=this.get(e),!!e){var t=e.removeTimer;t&&(clearTimeout(t),e.removeTimer=null)}},De.prototype.setTimeout=function(e){if(e=this.get(e),!!e){this.clearTimeout(e);var t=this;e.removeTimer=setTimeout(function(){t.remove(e)},e.timeout)}},De.prototype.remove=function(e){var t=this.get(e);t&&(mi(t.html),mi(t.htmlContainer),delete t.htmlContainer,delete this._tooltips[t.id])},De.prototype.show=function(){Hs(this._tooltipRoot)},De.prototype.hide=function(){Hs(this._tooltipRoot,!1)},De.prototype._updateRoot=function(e){var t=e.scale||1,i=e.scale||1,s="matrix("+t+",0,0,"+i+","+-1*e.x*t+","+-1*e.y*i+")";this._tooltipRoot.style.transform=s,this._tooltipRoot.style["-ms-transform"]=s},De.prototype._addTooltip=function(e){var t=e.id,i=e.html,s,r=this._tooltipRoot;i.get&&i.constructor.prototype.jquery&&(i=i.get(0)),it(i)&&(i=Fe(i)),s=Fe('<div data-tooltip-id="'+t+'" class="'+xa+'">'),we(s,{position:"absolute"}),s.appendChild(i),e.type&&zt(s).add("djs-tooltip-"+e.type),e.className&&zt(s).add(e.className),e.htmlContainer=s,r.appendChild(s),this._tooltips[t]=e,this._updateTooltip(e)},De.prototype._updateTooltip=function(e){var t=e.position,i=e.htmlContainer;Xf(i,t.x,t.y)},De.prototype._updateTooltipVisibilty=function(e){v(this._tooltips,function(t){var i=t.show,s=t.htmlContainer,r=!0;i&&((i.minZoom>e.scale||i.maxZoom<e.scale)&&(r=!1),Hs(s,r))})},De.prototype._init=function(){var e=this;function t(i){e._updateRoot(i),e._updateTooltipVisibilty(i),e.show()}this._eventBus.on("canvas.viewbox.changing",function(i){e.hide()}),this._eventBus.on("canvas.viewbox.changed",function(i){t(i.viewbox)})};const zs={__init__:["tooltips"],tooltips:["type",De]},$f=e=>{var t=Object.prototype.toString,i={"[object Boolean]":"boolean","[object Number]":"number","[object String]":"string","[object Function]":"function","[object Array]":"array","[object Date]":"date","[object RegExp]":"regExp","[object Undefined]":"undefined","[object Null]":"null","[object Object]":"object"};return e instanceof Element?"element":i[t.call(e)]},Ws=e=>{var t=$f(e),i;if(t==="array")i=[];else if(t==="object")i={};else return e;if(t==="array")for(var s=0,r=e.length;s<r;s++)i.push(Ws(e[s]));else if(t==="object")for(var o in e)i[o]=Ws(e[o]);return i};function em(e,t="YYYY-MM-DD HH:mm:ss"){const i=new Date(e),s=i.getFullYear(),r=i.getMonth()+1,o=i.getDate(),a=i.getHours(),l=i.getMinutes(),c=i.getSeconds(),f=i.getDay(),u={YYYY:s,MM:r,DD:o,HH:a,mm:l,ss:c,ww:["\u65E5","\u4E00","\u4E8C","\u4E09","\u56DB","\u4E94","\u516D"][f]};for(let g in u)t=t.replace(g,u[g]);return t}function tm(e){e=Ws(e);const t={};e.forEach(s=>{t[s.historyActivityId]?t[s.historyActivityId].push(s):t[s.historyActivityId]=[s]});for(let s in t){const r=t[s];if(r.length>1){const o=e.findLast(a=>a.historyActivityId==s);o.assigneeName=Array.from(new Set(r.map(a=>a.assigneeName))).join("/")}}const i=[];return e.forEach(s=>{let{assigneeName:r,createTime:o,endTime:a,comments:l}=s;/Safari/.test(navigator.userAgent)&&!/Chrome/.test(navigator.userAgent)&&(o=o.replace(/-/g,"/"),a=a.replace(/-/g,"/"));const c={id:s.historyActivityId,class:!a&&s.historyActivityType!="candidate"?"nodePrimary":""};let f="";if(r){if(f=`<span title='${r}'>${r}</span><br>`,o&&(f+=`<span title='${o}'>${em(o,"YYYY-MM-DD HH:mm")}</span><br>`),l&&l.length>0){let u,{type:g,fullMessage:E}=l.find(I=>I.action=="AddComment")||{};g=="assigneeComment"&&(u="\u53D8\u66F4\u5BA1\u6838\u4EBA\uFF1A"+E,c.class="nodeWarn"),g=="dispatchComment"&&(u="\u8C03\u5EA6\uFF1A"+E,c.class="nodeWarn"),g=="transferComment"&&(u="\u8F6C\u529E\uFF1A"+E,c.class="nodeWarn"),g=="delegateComment"&&(u="\u59D4\u6258\uFF1A"+E,c.class="nodeWarn"),g=="rollbackComment"&&(u="\u9A73\u56DE\uFF1A"+E,c.class="nodeError"),g=="terminateComment"&&(u="\u7EC8\u6B62\uFF1A"+E,c.class="nodeError"),g=="addMultiInstanceComment"&&(u="\u52A0\u7B7E\uFF1A"+E,c.class="nodeWarn"),g=="deleteMultiInstanceComment"&&(u="\u51CF\u7B7E\uFF1A"+E,c.class="nodeError"),g=="withdrawComment"&&(u="\u64A4\u9500\uFF1A"+E,c.class="nodeWarn"),g=="deleteProcessComment"&&(u="\u5220\u9664\u6D41\u7A0B\uFF1A"+E,c.class="nodeError"),g=="cancelProcessComment"&&(u="\u64A4\u9500\u6D41\u7A0B\uFF1A"+E,c.class="nodeError"),g=="comment"&&(u="\u5BA1\u6279\uFF1A"+E,c.class="nodeSuccess"),u&&(f+=`<span title='${u}'>${u}</span>`)}c.tooltip=f}s.historyActivityType=="sequenceFlow"?c.class="lineWarn":!c.class&&s.historyActivityType!="candidate"&&(c.class="nodeSuccess");const h=i.findIndex(u=>u.id==s.historyActivityId);h!=-1?i.splice(h,1,c):i.push(c)}),i}function Sa(e){const t=[],i=[],s=[];return e.routeTxt&&e.routeTxt.length>0&&e.routeTxt.forEach(r=>{r.type==="user"?t.push(...r.ids.filter(o=>o&&o.trim()!=="")):r.type==="post"?i.push(...r.ids):r.type==="dept"&&s.push(...r.ids)}),{intersection:e.assigneeRetain=="true"?1:0,userIds:[...new Set(t)],postIds:[...new Set(i)],deptIds:[...new Set(s)]}}const IE="",im={name:"bpmn-look",props:{diagram:{type:String,default:"",required:!0},approvalData:{type:Array,default:()=>[]},isXml:{type:Boolean,default:!0}},data(){return{isAdd:!1,viewer:null,loading:!0}},mounted(){this.initViewer(),window.addEventListener("resize",this.canvasResize)},watch:{diagram:{async handler(e){let t=e;t&&this.isXml&&this.loadXml(t)},immediate:!0}},methods:{async getXml(e){let t={},i="";try{t=await api.repository.getXmlByProcessDefId({processDefId:e}),t.code==200&&(i=t.data)}catch(s){console.error(s)}return i},async initViewer(){this.viewer&&this.viewer.destroy();const e=Object.prototype.toString.call(wi)=="[object Function]"?wi:wi.default,t=Object.prototype.toString.call(zs)=="[object Object]"?zs:zs.default,i=Object.prototype.toString.call(Js)=="[object Object]"?Js:Js.default;this.viewer=new e({container:this.$refs.container,additionalModules:[t,i]}),this.viewer.on("import.done",({error:s})=>{s||(this.canvasResize(),this.addApprovalData(),this.enableTouchMove())})},canvasResize(){this.viewer&&this.viewer.get("canvas").zoom(1,"auto")},enableTouchMove(){const e=this.viewer.get("canvas"),t=e._svg,i=document.querySelector(".viewport"),s=document.querySelector(".djs-tooltip-container");let r=!1,o,a,l=0,c=0,f=0,h=0;t.addEventListener("touchstart",u=>{r=!0;const g=u.touches[0];o=g.clientX,a=g.clientY;const E=i.getAttribute("transform").match(/matrix\(([^)]+)\)/)[1].split(/\s*,\s*|\s+/);l=parseFloat(E[4]),c=parseFloat(E[5]);const I=this.getTransformMatrix(s.style.transform);this.isAdd?(f=parseFloat(I[4]),h=parseFloat(I[5])):(f=parseFloat(I[4])+30,h=parseFloat(I[5])+16,this.isAdd=!0)}),t.addEventListener("touchmove",u=>{if(!r)return;const g=u.touches[0],E=g.clientX-o,I=g.clientY-a;c!==void 0&&(i.setAttribute("transform",`matrix(0.679276 0 0 0.679276 ${l+E} ${c+I})`),s.setAttribute("style",`position: absolute; width: 0px; height: 0px; transform: matrix(0.615, 0, 0, 0.615, ${f+E}, ${h+I});`)),e._cachedViewbox&&(e._cachedViewbox.x=E,e._cachedViewbox.y=I),u.preventDefault()}),t.addEventListener("touchend",()=>{r=!1})},getTransformMatrix(e){if(!e||e==="none")return[1,0,0,1,0,0];const t=e.match(/matrix(3d)?\(([^)]+)\)/i);if(!t)return null;const i=t[2].split(/\s*,\s*|\s+/).map(parseFloat);return t[1]!=="3d"&&i.length===6||t[1]==="3d"&&i.length===16?i:null},setNodeColor(e){const t=this.viewer.get("canvas"),i=this.viewer.get("elementRegistry"),s=this.viewer.get("tooltips");e.forEach(r=>{if(r.id&&r.class&&t.addMarker(r.id,r.class),r.id&&r.tooltip){const o=i.get(r.id);if(o){let{x:a,y:l,type:c}=o;["bpmn:StartEvent","bpmn:EndEvent"].includes(c)?(a=a-45,l=l+65):["bpmn:UserTask"].includes(c)&&(a=a-10,l=l+90),s.add({position:{x:a,y:l},html:r.tooltip})}}})},addApprovalData(){if(!this.approvalData||this.approvalData.length==0)return;const e=tm(this.approvalData);e&&e.length>0&&this.setNodeColor(e)},async loadXml(e){this.viewer||await this.initViewer();try{const{warnings:t}=await this.viewer.importXML(e);t.length&&this.$emit("warning",t)}catch(t){this.$emit("error",{message:"XML \u52A0\u8F7D\u5931\u8D25",detail:t.message}),console.error("XML \u52A0\u8F7D\u5931\u8D25:",t)}}},beforeDestroy(){window.removeEventListener("resize",this.canvasResize),this.viewer&&this.viewer.destroy()}},nm={ref:"container",class:"bpmn-look"};function sm(e,t,i,s,r,o){return n.openBlock(),n.createElementBlock("div",nm,null,512)}const Da=pe(im,[["render",sm],["__scopeId","data-v-634aec1f"]]),rm="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAMgAAADICAYAAACtWK6eAAAAAXNSR0IArs4c6QAAByFJREFUeF7t19HJLEUUhdHpQEzEOMREjOMmIsZhIg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8gweHmcQEpA87MFBHL2/Xq6UkAgJaD52QICOft+PV0pIJAS0PxsAYGcfb+erhQQSAlofraAQM6+X09XCgikBDQ/W0AgZ9+vpysFBFICmp8tIJCz79fTlQICKQHNzxYQyNn36+lKAYGUgOZnCwjk7Pv1dKWAQEpA87MFBHL2/Xq6UkAgJaD52QICOft+PV0pIJAS0PxsAYGcfb+erhQQSAlofraAQM6+X09XCgikBDQ/W+Bvvl+A5yG20gIAAAAASUVORK5CYII=",om="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAMgAAADICAYAAACtWK6eAAAAAXNSR0IArs4c6QAADYNJREFUeF7tnQnwrvUUx79fopI1TaPNFpMhGmuGSppmUCrSSJYUhSxTLm4yMWMa0qbk1hhLZG1xUWqQsWREtKAoomgjYrJWhnzNaZ7u3G733nnPs7zv877n+5t5pzvNOef3O5/zfv/P8z7PbyHcTMAE1kiAZmMCJrBmAhaIvx0msBYCFoi/HiZggfg7YALtCPgK0o6bvYoQsECKFNpptiNggbTjZq8iBCyQIoV2mu0IWCDtuNmrCAELpEihnWY7AhZIO272KkLAAplioSU9DsCmANYHsF7zWfnf8f/WWWVIdwD4A4DfAfg9gN+SvG2Kwy7dlQXSc/klbQtgKwCPAvDolT4hjL7a3wBc33yuC9EAuAzAFSSv7asTxwEskA7fAknx1387AM8GsAOA53YI15frPwH8DMAFzed8kiEotxYELJAkNEkhgl0APAfA05PuszK/HMDXAZxL8vxZDWIe+7VAJqiapN0BvKj5PGQClzGb/BXAVxrBnEPyX2Me7KzHZoGspgLNrVMIYs/manG/WRdqwP6/AeBsAGeQ/POA/cxlaAtkpbJJejyANwJ4JYAHzWVF2w86nox9BsAHSf6qfZjF8rRAAEh6DYADATxzscrbOptzAZxI8rzWERbEsaxAJG0CYCmAEMcDF6SefadxJYCjSJ7ad+B5iVdOII0w3gPgDfNSpBGMM15UnghgGcl4jFymlRGIpM0BHA5gfwD3LVPhfhON9yknAzie5M39hh5ntIUXiKTNABzRCGOcVZjPUR1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AQjgbh6BqQGUFCOBqFo3tAZgAJ4WgYjlkA0jEkhKNxOGYDSIeQEI4O4JgVIB1BQjg6gWN2gHQACeHoCI5ZAtIwJISjMzhmC0iDkHwBwAu5t6o/Qrp8kj5UZlVtYe+WwfGCuX3ffWgOem83a0AaWEkIR+eEzB6QCSEhHJ3DMetrkPW5qXy6RThmAEcoQCquJIRjJnCEA6QCJIRjRnCEBKQgJIRjZnCEBaQAJIRjhnCEBmQBkt0AnrJCfgnHCuK1bhriNu+yJKSvRVm1FA8khKP1Gb7i+MIDklaS/QGMhYRwrDj5ejAnIAtZUtUr7FNsAxJ3mYi8YkA7NulcAQKyLoHps85v3+SU63cAzl/ly7idz5dwwycgm6RcVY8A8FQARwK4DcAvROTWcDMkeMAEJPgEYPjLFSAgnCFUYIkCBITTgwoQEM4BKuBTgCuITzdaBVGAgARJNMP0KUBAfLrRKogCBCRIohmmTwEC4tONVkEUICBBEs0wfQoQEJ9utAqiAAEJkmiG6VOAgPh0o1UQBQhIkEQzTJ8CBMSnG62CKEBAgiSaYfoUICA+3WgVRAECEiTRDNOnAAHx6UarIAoQkCCJZpg+BQiITzdaBVGAgARJNMP0KUBAfLrRKogCBCRIohmmTwEC4tONVkEUICBBEs0wfQoQEJ9utAqiAAEJkmiG6VOAgPh0o1UQBQhIkEQzTJ8CBMSnG62CKEBAgiSaYfoUICA+3WgVRAECEiTRDNOnAAHx6UarIAoQkCCJZpg+BQiITzdaBVGAgARJNMP0KUBAfLrRKogCBCRIohmmTwEC4tONVkEUICBBEs0wfQoQEJ9utAqiAAEJkmiG6VPgf/UDKvbyCmTdAAAAAElFTkSuQmCC",am=at({name:"TopTips",props:{text:{default:"",type:String},type:{default:"default",type:String},statusTips:{default:!1,type:Boolean},domNode:{default:"",type:String},visible:{default:!1,type:Boolean}},data(){return{show:!1,status:"",timeOut:null}},computed:{error(){return rm},loading(){return om},success(){return Ys}},watch:{type:{handler(e,t){if(e=="loading"){clearInterval(this.timeOut);return}else this.timeOut=setTimeout(()=>{this.show=!1},1500)},immediate:!0,deep:!0}},mounted(){this.$nextTick(()=>{const e=document.getElementsByClassName("process-warp")[0]?document.getElementsByClassName("process-warp")[0]:document.getElementsByClassName("sumbmitPopup-index-sumbit")[0].getElementsByClassName("top-popup")[0];e.append?e.append(this.$el):e.appendChild(this.$el)})},methods:{handleOpen(){this.show||(this.show=!0,this.type=="loading"?clearInterval(this.timeOut):this.timeOut=setTimeout(()=>{this.show=!1},1500))},handleClose(){this.show=!1}}}),xE="",lm={key:0},cm={key:0,class:"top-tipss-text"},pm={class:"top-tipss-status"},dm={key:0,class:"top-tipss-loadinig"},hm=["src"],um={key:0,class:"top-tipss-status-text"},fm={key:1,class:"top-tipss-success"},mm=["src"],gm={key:0,class:"top-tipss-status-text"},ym={key:2,class:"top-tipss-error"},Am=["src"],km={key:0,class:"top-tipss-status-text"};function Em(e,t,i,s,r,o){return e.show?(n.openBlock(),n.createElementBlock("div",lm,[e.statusTips?(n.openBlock(),n.createElementBlock("div",{key:1,class:"top-tipss",style:n.normalizeStyle(e.show?"visibility: visible; opacity: 1;":"visibility: hidden; opacity: 0;")},[n.createElementVNode("div",pm,[e.type=="loading"?(n.openBlock(),n.createElementBlock("div",dm,[n.createElementVNode("img",{src:e.loading},null,8,hm),e.text?(n.openBlock(),n.createElementBlock("div",um,n.toDisplayString(e.text),1)):n.createCommentVNode("",!0)])):n.createCommentVNode("",!0),e.type=="success"?(n.openBlock(),n.createElementBlock("div",fm,[n.createElementVNode("img",{src:e.success},null,8,mm),e.text?(n.openBlock(),n.createElementBlock("div",gm,n.toDisplayString(e.text),1)):n.createCommentVNode("",!0)])):n.createCommentVNode("",!0),e.type=="error"?(n.openBlock(),n.createElementBlock("div",ym,[n.createElementVNode("img",{src:e.error},null,8,Am),e.text?(n.openBlock(),n.createElementBlock("div",km,n.toDisplayString(e.text),1)):n.createCommentVNode("",!0)])):n.createCommentVNode("",!0)])],4)):(n.openBlock(),n.createElementBlock("div",{key:0,class:"top-tipss",style:n.normalizeStyle(e.show?"visibility: visible; opacity: 1;":"visibility: hidden; opacity: 0;")},[e.text?(n.openBlock(),n.createElementBlock("div",cm,n.toDisplayString(e.text),1)):n.createCommentVNode("",!0)],4)),n.createElementVNode("div",{class:"top-tipss-mask",style:n.normalizeStyle(e.show&&e.statusTips?"visibility: visible; opacity: .7;":"visibility: hidden; opacity: 0;")},null,4)])):n.createCommentVNode("",!0)}const st=pe(am,[["render",Em],["__scopeId","data-v-239e459d"]]),bm="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAEgAAABICAYAAABV7bNHAAAAAXNSR0IArs4c6QAAEmBJREFUeF7tnAt0VdWZx397n3PvDUlISHgEkJfDGxXRVnGqq2o7PtvB1hl0fFun6ji+xhfgzCioq5WA2hFxptUOY23VqlNf06laW7VrVUfs8gEqgmBFRZ4hIRBIcu85e8/69j4HriEJAYLiY691181Ncs/Z+3/++/u+/b0U3T1mWM0AAlZhmaEirFUoZZlus+WlDM8ZJqKpsJZhCiYAxmgC5T8Pk+lYWG4Vy7UhBrSF15ViOYaNrZr5TVt4lxtUfuu1Z9iQAShWETNDme5ckuqWiwkIdxGyEsUMCg6QOTbXazMDAs1wYD9jGKk1gwJFX6UIUZQrS7W7v0AI5fJKAGqy0IQVrMAq6rE0WUsUW9YZwwqtWQq8FRve3VDGKi5TrQ6wGWRQGKYTu3ns5tg9gGRCD6NZ5Njinlz1HFtBK/thOUwZJmjNKGCcggoDthChYguRvIqetTFCJb8arf0rHaGGUEGgIBNiNcjKNwKLjOEdq3kdxUvkeKv+MiW/B2HyOBSTMbsD1O4BlK5AKA706UE/AyeguBrLGAVxbAksWGMwGmwuRAWyYI3KaLbeX36Xfi4YbFwEnnyOkt+1RlgDSmu0AhUoBO8AxWIst2h4sq6Z1R6k3d9uuwaQMOcG2U5+An1vtiNizWlYJivFMKUoExIIvwvGM6U1gqoSOHwIDKyAYb1gdDXIBYQZ+1TA0EqP+PuN8NFG3MqFSEvqYfkGWLkRXvgAGlogFz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d/5tm+yVsyY2uRcu1N0vYsNqwzsELDUgyLopB3++ZYuWyvbPLW0XbrpE1gFg5DUYFvC3iQy+U0rp3XMKUZ6hSmL9Nejnb5nfK315A2gZaNeXjpk2wT+P9KELohNtx5+AAAAABJRU5ErkJggg==",Cm=at({name:"attchViews",components:{TopTips:st,PreviewImage:un,PreView:Qr,TopPopup:Ke},props:{request:{type:Function,defalut:()=>{}},limit:{type:[Number,String],default:4},changeFn:{type:Function,default:null},requires:{default:!1},inComing:{type:Array,defalut:()=>[]},deletFn:{type:Function},onlyShow:{type:Boolean,default:!1},linkUrl:{type:Function,defalut:null}},data(){return{lists:[],filesArr:[],imgIcon:["jpg","jpeg","png","gif"],docIcon:["doc","docx"],xlsIcon:["xls","xlsx"],zipIcon:["zip","rar","7z"],extension:["bmp","gif","jpg","jpeg","png","doc","docx","xls","xlsx","ppt","pptx","html","htm","txt","wps","rar","zip","gz","bz2","mp4","avi","rmvb","pdf"],current:"",buttonLoading:!1,handleCloseType:!0,uploadState:!0,textTips:"",statusTips:!1,typeTips:"success",visible:!1,indexd:0,visibleS:!1,fileUrl:""}},watch:{inComing:{handler(e,t){e&&(this.filesArr=[].concat(e),this.emitView())},immediate:!0,deep:!0}},computed:{haveCount(){return this.limit==-1?100:this.limit-this.filesArr.length},addFile(){return bm},del(){return Ur},doc(){return jr},file(){return _r},image(){return Gr},pdf(){return qr},xls(){return Jr},zip(){return Hr}},mounted(){this.$nextTick(()=>{let e=document.createElement("input");e.type="file",e.className="upload-input",e.style="opacity: 0;position: absolute;width:100%;height:100%;visibility: hidden;",e.multiple=!0,e.id="fileUp",e.addEventListener("change",this.handleSelect),document.getElementById("inputfile").appendChild(e)})},methods:{handleClick(){if(typeof nativeMethod<"u"&&nativeMethod.vueSelectFile&&nativeMethod.vueSelectFile(2,"*",this.limit||1),this.haveCount<=0){this.handleTips(`\u6700\u591A\u4E0A\u4F20${this.limit}\u4E2A\u6587\u4EF6`,!1,"success");return}document.getElementById("fileUp").click()},async handleSelect(e,t){this.handleTips("\u4E0A\u4F20\u4E2D",!0,"loading");const i=Array.from(e.target.files);document.getElementById("fileUp").value="";let s=0,r=this.haveCount>i.length?i.length:this.haveCount;try{for(let o=0;o<r;o++)if(this.extension.includes(i[o].name.substring(i[o].name.lastIndexOf(".")+1))){const a=new FormData;a.append("file",i[o]);const l=await this.request.post("/file/upload",a,{headers:{"Content-Type":"multipart/form-data"}});if(l.code===200){if(this.filesArr.length>0){for(let c=0;c<this.filesArr.length;c++)if(l.name==this.filesArr[c].name&&s++,this.filesArr[c].name.includes(`(${s})`)&&s++,s>0){let f=l.name.lastIndexOf(".");l.name=`${l.name.substring(0,f)} (${s}) .${l.name.substring(l.name.lastIndexOf(".")+1)}`}}this.filesArr.push(l.data)}else{this.handleTips("\u4E0A\u4F20\u5931\u8D25",!0,"error"),this.viewImage();return}}else{this.handleTips(`\u6587\u4EF6${i[o].name}\u683C\u5F0F\u9519\u8BEF,\u8BF7\u91CD\u65B0\u4E0A\u4F20`,!0,"error");return}this.handleTips("\u4E0A\u4F20\u6210\u529F",!0,"success"),this.viewImage(),this.emitView()}catch{this.handleTips("\u4E0A\u4F20\u5931\u8D25",!0,"error"),this.emitView()}},handleDel(e,t){if(this.deletFn){if(this.deletFn(t)===!1){this.handleTips("\u5220\u9664\u5931\u8D25",!0,"error");return}this.filesArr.splice(e,1),this.emitView()}else this.filesArr.splice(e,1),this.emitView()},viewFile(e,t){this.imgIcon.includes(e.name.substring(e.name.lastIndexOf(".")+1).toLowerCase())?(this.indexd=this.lists.indexOf(e.url),this.visible=!0):e.url&&(this.fileUrl=e.url,this.visibleS=!0)},viewImage(){this.lists=[];let e=[];this.filesArr.map((t,i)=>{this.imgIcon.includes(t.name.substring(t.name.lastIndexOf(".")+1).toLowerCase())}),e=this.filesArr.filter(t=>this.imgIcon.includes(t.name.substring(t.name.lastIndexOf(".")+1).toLowerCase())),e.forEach((t,i)=>{this.lists.push(t.url)})},emitView(){this.$emit("getValue",this.filesArr)},clearData(){this.filesArr=[]},handleTips(e,t,i){this.textTips=e,this.statusTips=t,this.typeTips=i,this.$refs.topTips.handleOpen()}}}),SE="",wm={class:"attch-upload"},Tm={key:0,class:"attch-upload-mask"},Nm={class:"attch-upload-body"},Bm={class:"upload-header"},Im={class:"upload-header-title"},xm={key:0,class:"upload-header-title--re"},Sm={class:"upload-header-upload"},Dm=["src"],Pm={class:"upload-body"},Mm={key:0,class:"upload-list"},Vm={class:"list-items-icon"},Om=["src"],vm=["src"],Rm=["src"],Lm=["src"],Fm=["src"],Qm=["src"],Um={class:"list-items-info"},jm={class:"info-name"},_m={class:"info-attribute"},Gm={class:"info-attribute-size"},qm=["onClick"],Jm={key:0,class:"list-items-operation"},Hm=["onClick"],Km=["src"];function zm(e,t,i,s,r,o){const a=n.resolveComponent("TopTips"),l=n.resolveComponent("PreviewImage"),c=n.resolveComponent("PreView"),f=n.resolveComponent("TopPopup");return n.openBlock(),n.createElementBlock("div",wm,[e.buttonLoading?(n.openBlock(),n.createElementBlock("div",Tm)):n.createCommentVNode("",!0),n.createElementVNode("div",Nm,[n.createElementVNode("div",Bm,[n.createElementVNode("div",Im,[t[3]||(t[3]=n.createTextVNode(" \u9644\u4EF6 ",-1)),e.requires?(n.openBlock(),n.createElementBlock("span",xm,"*")):n.createCommentVNode("",!0)]),n.createElementVNode("div",Sm,[e.onlyShow?n.createCommentVNode("",!0):(n.openBlock(),n.createElementBlock("div",{key:0,class:"upload-header-upload--item",id:"inputfile",onClick:t[0]||(t[0]=(...h)=>e.handleClick&&e.handleClick(...h))},[n.createElementVNode("img",{src:e.addFile},null,8,Dm),t[4]||(t[4]=n.createTextVNode("\u4E0A\u4F20\u9644\u4EF6 ",-1))]))])]),n.createElementVNode("div",Pm,[e.filesArr.length>0?(n.openBlock(),n.createElementBlock("div",Mm,[(n.openBlock(!0),n.createElementBlock(n.Fragment,null,n.renderList(e.filesArr,(h,u)=>(n.openBlock(),n.createElementBlock("div",{class:"list-items",key:h.uuid},[n.createElementVNode("div",Vm,[e.xlsIcon.includes(h.name.substring(h.name.lastIndexOf(".")+1).toLowerCase())?(n.openBlock(),n.createElementBlock("img",{key:0,class:"icon-img",src:e.xls},null,8,Om)):e.imgIcon.includes(h.name.substring(h.name.lastIndexOf(".")+1).toLowerCase())?(n.openBlock(),n.createElementBlock("img",{key:1,class:"icon-img",src:e.image},null,8,vm)):h.name.substring(h.name.lastIndexOf(".")+1).toLowerCase()=="pdf"?(n.openBlock(),n.createElementBlock("img",{key:2,class:"icon-img",src:e.pdf},null,8,Rm)):e.docIcon.includes(h.name.substring(h.name.lastIndexOf(".")+1).toLowerCase())?(n.openBlock(),n.createElementBlock("img",{key:3,class:"icon-img",src:e.doc},null,8,Lm)):e.zipIcon.includes(h.name.substring(h.name.lastIndexOf(".")+1).toLowerCase())?(n.openBlock(),n.createElementBlock("img",{key:4,class:"icon-img",src:e.zip},null,8,Fm)):(n.openBlock(),n.createElementBlock("img",{key:5,class:"icon-img",src:e.file},null,8,Qm))]),n.createElementVNode("div",Um,[n.createElementVNode("div",jm,n.toDisplayString(h.name),1),n.createElementVNode("div",_m,[n.createElementVNode("span",Gm,n.toDisplayString(h.fileSize<1024?h.fileSize:h.fileSize/1024>1024?parseFloat((h.fileSize/1024/1024).toFixed(2)):parseFloat((h.fileSize/1024).toFixed(2)))+n.toDisplayString(h.fileSize<1024?"b":parseFloat((h.fileSize/1024).toFixed(2))<1024?"kb":"M"),1),n.createElementVNode("span",{class:"info-attribute-views",onClick:g=>e.viewFile(h,u)}," \u9884\u89C8 ",8,qm)])]),e.onlyShow?n.createCommentVNode("",!0):(n.openBlock(),n.createElementBlock("div",Jm,[n.createElementVNode("div",{onClick:g=>e.handleDel(u,h),class:"list-items-operation-img"},[n.createElementVNode("img",{src:e.del},null,8,Km)],8,Hm)]))]))),128))])):n.createCommentVNode("",!0)])]),n.createVNode(a,{ref:"topTips",text:e.textTips,statusTips:e.statusTips,type:e.typeTips},null,8,["text","statusTips","type"]),n.createVNode(l,{images:e.lists,visible:e.visible,"onUpdate:visible":t[1]||(t[1]=h=>e.visible=h),indexd:e.indexd},null,8,["images","visible","indexd"]),n.createVNode(f,{visible:e.visibleS,"onUpdate:visible":t[2]||(t[2]=h=>e.visibleS=h),ref:"TopPopup",titleText:"\u9644\u4EF6\u9884\u89C8",isDrawer:"",isIndex:99},{default:n.withCtx(()=>[e.visibleS?(n.openBlock(),n.createBlock(c,{key:0,file:e.fileUrl},null,8,["file"])):n.createCommentVNode("",!0)]),_:1},8,["visible"])])}const ti=pe(Cm,[["render",zm],["__scopeId","data-v-69217b12"]]),DE="",Wm={name:"nf-flow",components:{attchViews:ti},props:{request:{type:Object,default:()=>{}},flowList:{type:Array,default:()=>[]}},data(){return{isFlag:!1,toggleText:"\u5C55\u5F00",commentMap:{assigneeComment:"\u53D8\u66F4\u5BA1\u6838\u4EBA",dispatchComment:"\u8C03\u5EA6",transferComment:"\u8F6C\u529E",delegateComment:"\u59D4\u6258",rollbackComment:"\u9A73\u56DE\u610F\u89C1",terminateComment:"\u7EC8\u6B62\u610F\u89C1",addMultiInstanceComment:"\u52A0\u7B7E",deleteMultiInstanceComment:"\u51CF\u7B7E",withdrawComment:"\u64A4\u9500",recallComment:"\u64A4\u56DE",deleteProcessComment:"\u5220\u9664\u6D41\u7A0B",skipComment:"\u8DF3\u8FC7",comment:"\u5BA1\u6279\u610F\u89C1"}}},methods:{handleClick(){this.isFlag=!this.isFlag,this.toggleText=this.isFlag?"\u6536\u8D77":"\u5C55\u5F00"}}},Ym={type:"flex"},Zm=["timestamp"],Xm={key:0},$m={key:0},eg={key:2,style:{color:"gray","font-size":"12px"}},tg={key:0},ig={key:1,style:{color:"gray","font-size":"12px"}},ng={key:2},sg={class:"p-file"},rg=["onClick"],og=["onClick"];function ag(e,t,i,s,r,o){return n.openBlock(),n.createElementBlock("div",Ym,[n.createElementVNode("div",null,[(n.openBlock(!0),n.createElementBlock(n.Fragment,null,n.renderList(i.flowList,(a,l)=>(n.openBlock(),n.createElementBlock(n.Fragment,null,[["candidate","sequenceFlow"].includes(a.historyActivityType)?n.createCommentVNode("",!0):(n.openBlock(),n.createElementBlock("div",{key:a.id,timestamp:a.endTime||a.createTime,placement:"top",class:"flow-item"},[n.createElementVNode("p",null,n.toDisplayString(a.assigneeName)+" \u5728 ["+n.toDisplayString(a.createTime)+"] \u5F00\u59CB\u5904\u7406 ["+n.toDisplayString(a.historyActivityType=="endEvent"?"\u7ED3\u675F":a.historyActivityName||"\u672A\u547D\u540D")+"] \u73AF\u8282 ",1),a.historyActivityDurationTime?(n.openBlock(),n.createElementBlock("p",Xm," \u4EFB\u52A1\u5386\u65F6 ["+n.toDisplayString(a.historyActivityDurationTime)+"] ",1)):n.createCommentVNode("",!0),a.comments&&a.comments.length>0?(n.openBlock(!0),n.createElementBlock(n.Fragment,{key:1},n.renderList(a.comments.filter(c=>c.action==="AddComment"),(c,f)=>(n.openBlock(),n.createElementBlock("p",{key:f},[f<1?(n.openBlock(),n.createElementBlock(n.Fragment,{key:0},[r.commentMap[c.type]?(n.openBlock(),n.createElementBlock("span",$m,n.toDisplayString(r.commentMap[c.type])+": ["+n.toDisplayString(c.fullMessage)+"] ",1)):n.createCommentVNode("",!0),a.comments.filter(h=>h.action==="AddComment").length>1?(n.openBlock(),n.createElementBlock("span",{key:1,style:{color:"#1989fa",float:"right"},onClick:t[0]||(t[0]=(...h)=>o.handleClick&&o.handleClick(...h))},[n.createTextVNode(n.toDisplayString(r.toggleText)+" ",1),n.createElementVNode("i",{class:n.normalizeClass([r.isFlag?"arrow-up":"arrow-down"])},null,2)])):n.createCommentVNode("",!0),c.time?(n.openBlock(),n.createElementBlock("p",eg,n.toDisplayString(c.time),1)):n.createCommentVNode("",!0)],64)):n.createCommentVNode("",!0),f>0&&r.isFlag?(n.openBlock(),n.createElementBlock(n.Fragment,{key:1},[r.commentMap[c.type]?(n.openBlock(),n.createElementBlock("span",tg,n.toDisplayString(r.commentMap[c.type])+": ["+n.toDisplayString(c.fullMessage)+"] ",1)):n.createCommentVNode("",!0),c.time?(n.openBlock(),n.createElementBlock("p",ig,n.toDisplayString(c.time),1)):n.createCommentVNode("",!0)],64)):n.createCommentVNode("",!0)]))),128)):n.createCommentVNode("",!0),a.endTime?(n.openBlock(),n.createElementBlock("p",ng,"\u7ED3\u675F\u65F6\u95F4: ["+n.toDisplayString(a.endTime)+"]",1)):n.createCommentVNode("",!0),n.createElementVNode("div",sg,[a.attachmentsFujian&&a.attachmentsFujian.length>0?(n.openBlock(),n.createElementBlock("div",{key:0,onClick:c=>e.$emit("view",a.attachmentsFujian)}," \u67E5\u770B\u9644\u4EF6",8,rg)):n.createCommentVNode("",!0),a.attachmentsQianzi&&a.attachmentsQianzi.length>0?(n.openBlock(),n.createElementBlock("div",{key:1,onClick:c=>e.$emit("view",a.attachmentsQianzi)}," \u67E5\u770B\u7B7E\u5B57",8,og)):n.createCommentVNode("",!0)])],8,Zm))],64))),256))])])}const lg=at({name:"TopTab",components:{processFlow:pe(Wm,[["render",ag],["__scopeId","data-v-5f7dda7c"]]),BpmnLook:Da,TopPopup:Ke,ViewAttchList:Kr,PreviewImage:un},props:{ProcessInsObj:{type:Object,default:()=>({})},processXml:{type:String,default:""},approvalData:{type:Array,default:()=>[]},tapList:{type:Array,default:()=>[]},selfTapList:{type:Array,default:()=>[]},track:{type:String,default:""},taskComment:{type:Array,default:()=>[]},trackList:{type:Array,default:()=>[]}},data(){return{trackUrl:"",taskCommentList:[],active:"",defaultTabList:[{label:"\u57FA\u672C\u4FE1\u606F",key:"a",type:"default",slot:"default"},{label:"\u6D41\u7A0B\u56FE",key:"b",type:"default",slot:"b"},{label:"\u5BA1\u6279\u8BB0\u5F55",key:"c",type:"default",slot:"c"}],isTapList:[{label:"\u57FA\u672C\u4FE1\u606F",key:"a",type:"default",slot:"default"},{label:"\u6D41\u7A0B\u56FE",key:"b",type:"default",slot:"b"},{label:"\u5BA1\u6279\u8BB0\u5F55",key:"c",type:"default",slot:"c"}],label:document.getElementsByClassName("tops-tab-header-items"),visible:!1,inList:[],visibleTack:!1,trackListss:[],signPreViewVisible:!1,signLists:[],indexd:0}},watch:{tapList:{handler(e,t){this.selfTapList.length||(this.isTapList=[].concat(this.defaultTabList),e.length>0&&e.forEach((i,s)=>{i.sort&&i.sort>1?this.isTapList.splice(i.sort-1,0,i):i.sort==1?this.isTapList.unshift(i):this.isTapList.push(i)}),this.active=this.isTapList[0].key)},immediate:!0,deep:!0},selfTapList:{handler(e,t){e.length&&(this.isTapList=[].concat(e),this.active=this.isTapList[0].key)},immediate:!0,deep:!0},track:{handler(e,t){e&&(this.trackUrl=e,window.location.protocol=="https:"&&(this.trackUrl=this.trackUrl.replace("http://59.53.91.230:8088/","https://kq.ddzg.cn:8093/"),this.trackUrl=this.trackUrl.replace("http://59.53.91.231:8088/","https://acme-test.ddzg.cn:2119/"),this.trackUrl=this.trackUrl.replace("http://121.40.143.183:80/","https://acme-aws.ddzg.cn/"),this.trackUrl=this.trackUrl.replace("http://121.40.143.183/","https://acme-aws.ddzg.cn/"),this.trackUrl=this.trackUrl.replace("http://acme-aws.ddzg.cn/","https://acme-aws.ddzg.cn/")))},immediate:!0,deep:!0},taskComment:{handler(e,t){e&&(this.taskCommentList=e)},immediate:!0,deep:!0},trackList:{handler(e,t){e&&(this.trackListss=e)},immediate:!0,deep:!0}},mounted(){this.tabAnimation(0)},methods:{formatFlow(e){return(e||[]).map(i=>({...i,attachmentsFujian:(i.attachments||[]).filter(s=>s.type!="signature"),attachmentsQianzi:(i.attachments||[]).filter(s=>s.type=="signature")}))},handleActive(e,t){e!==this.active&&(this.active=e,this.tabAnimation(t))},tabAnimation(e){if(this.label.length){let t=document.getElementsByClassName("bottom-line")[0],i;if(t.offsetWidth<this.label[e].offsetWidth-10){let s=(this.label[e].offsetWidth-t.offsetWidth-10)/2;i=`${this.label[e].offsetLeft+s}px`}else if(t.offsetWidth>this.label[e].offsetWidth-10){let s=(t.offsetWidth-this.label[e].offsetWidth+10)/2;i=`${this.label[e].offsetLeft-s}px`}else i=`${this.label[e].offsetLeft}px`;t.style.transition=".3s",t.style.transform=`translateX(${i})`}},viewList(e){this.visible=!0,this.inList=e},viewSign(e,t){this.signLists=e.filter(i=>i.digitalSignature).map(i=>i.digitalSignature),this.indexd=this.signLists.findIndex(i=>i==t),this.signPreViewVisible=!0}}}),ME="",cg={class:"tops-tab"},pg={class:"tops-tab-header"},dg=["onClick"],hg={key:0,class:"bottom-line"},ug={class:"tops-tab-body"},fg=["name"],mg={key:2,class:"textnone"},gg={key:2,style:{height:"100%"}},yg={key:1,class:"textnone"},Ag={class:"seal-list__item--option"},kg={style:{"max-width":"100px"}},Eg={class:"seal-list__item--option"},bg={style:{"max-width":"100px"}},Cg={class:"seal-list__item--option"},wg={style:{"max-width":"100px"}};function Tg(e,t,i,s,r,o){const a=n.resolveComponent("BpmnLook"),l=n.resolveComponent("processFlow"),c=n.resolveComponent("ViewAttchList"),f=n.resolveComponent("TopPopup"),h=n.resolveComponent("PreviewImage");return n.openBlock(),n.createElementBlock("div",cg,[n.createElementVNode("div",pg,[(n.openBlock(!0),n.createElementBlock(n.Fragment,null,n.renderList(e.isTapList,(u,g)=>(n.openBlock(),n.createElementBlock("div",{class:n.normalizeClass(["tops-tab-header-items",[u.key===e.active?"active":""]]),onClick:E=>e.handleActive(u.key,g)},n.toDisplayString(u.label),11,dg))),256)),e.isTapList.length?(n.openBlock(),n.createElementBlock("div",hg)):n.createCommentVNode("",!0)]),n.createElementVNode("div",ug,[(n.openBlock(!0),n.createElementBlock(n.Fragment,null,n.renderList(e.isTapList,u=>n.withDirectives((n.openBlock(),n.createElementBlock("div",{key:u.key,style:{height:"100%"},class:n.normalizeClass([u.key==="c"&&"tops-tab-body-taskcommentlist"])},[u.key==="a"&&u.type==="default"?n.renderSlot(e.$slots,"default",{key:0},void 0,!0):n.createCommentVNode("",!0),e.active===u.key&&u.key==="b"&&u.type==="default"?(n.openBlock(),n.createElementBlock("div",{key:1,class:"uph-tab-b",style:{height:"100%"},name:u.slot},[e.processXml?(n.openBlock(),n.createElementBlock("div",{key:0,style:{padding:"10px 20px",color:"#1389ff"},onClick:t[0]||(t[0]=()=>e.visibleTack=!0)}," \u67E5\u770B\u6D41\u7A0B\u8282\u70B9\u4FE1\u606F ")):n.createCommentVNode("",!0),u.key==="b"&&e.processXml?(n.openBlock(),n.createBlock(a,{key:1,ref_for:!0,ref:"PreviewRef",diagram:e.processXml,approvalData:e.approvalData},null,8,["diagram","approvalData"])):(n.openBlock(),n.createElementBlock("div",mg," \u6682\u65E0\u6D41\u7A0B\u56FE "))],8,fg)):n.createCommentVNode("",!0),u.key==="c"&&u.type==="default"?(n.openBlock(),n.createElementBlock("div",gg,[u.key==="c"&&e.ProcessInsObj.flow?(n.openBlock(),n.createBlock(l,{key:0,request:e.ProcessInsObj.request,"flow-list":e.formatFlow(e.ProcessInsObj.flow),onView:e.viewList},null,8,["request","flow-list","onView"])):(n.openBlock(),n.createElementBlock("div",yg,"\u6682\u65E0\u6570\u636E"))])):n.createCommentVNode("",!0),u.type=="slot"?n.renderSlot(e.$slots,u.slot,{key:3},void 0,!0):n.createCommentVNode("",!0)],2)),[[n.vShow,e.active===u.key]])),128))]),n.createVNode(f,{visible:e.visible,"onUpdate:visible":t[1]||(t[1]=u=>e.visible=u),ref:"TopPopup",titleText:"\u9644\u4EF6\u5217\u8868",isDrawer:"",isIndex:5},{default:n.withCtx(()=>[n.createVNode(c,{inList:e.inList},null,8,["inList"])]),_:1},8,["visible"]),n.createVNode(h,{images:e.signLists,visible:e.signPreViewVisible,"onUpdate:visible":t[2]||(t[2]=u=>e.signPreViewVisible=u),indexd:e.indexd},null,8,["images","visible","indexd"]),n.createVNode(f,{visible:e.visibleTack,"onUpdate:visible":t[3]||(t[3]=u=>e.visibleTack=u),ref:"TopPopups",titleText:"\u6D41\u7A0B\u4FE1\u606F",isDrawer:"",width:"60vw"},{default:n.withCtx(()=>[e.trackListss&&e.trackListss.length?(n.openBlock(!0),n.createElementBlock(n.Fragment,{key:0},n.renderList(e.trackListss,(u,g)=>(n.openBlock(),n.createElementBlock("div",{key:u.id,class:"seal-list__item"},[n.createElementVNode("div",null,[n.createElementVNode("div",Ag,[t[4]||(t[4]=n.createElementVNode("span",null,"\u5E8F\u53F7",-1)),n.createElementVNode("span",kg,n.toDisplayString(g+1),1)]),n.createElementVNode("div",Eg,[t[5]||(t[5]=n.createElementVNode("span",null,"\u8282\u70B9\u540D\u79F0",-1)),n.createElementVNode("span",bg,n.toDisplayString(u.historyActivityName),1)]),n.createElementVNode("div",Cg,[t[6]||(t[6]=n.createElementVNode("span",null,"\u5BA1\u6279\u4EBA",-1)),n.createElementVNode("span",wg,n.toDisplayString(u.assigneeName),1)])])]))),128)):n.createCommentVNode("",!0)]),_:1},8,["visible"])])}const Ng=pe(lg,[["render",Tg],["__scopeId","data-v-3cb88319"]]),Bg="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAMgAAADICAYAAACtWK6eAAAAAXNSR0IArs4c6QAACfVJREFUeF7tnT2S1FYYRaUCYgJ2wArYgRMIYQPGMVUQt8bDAoDRxFBFbLwBE5qEHbACdkBAbCi5HjxgGKbn6b7Wz9O7h9B8avV3rk7J6r7VtA1/IACBvQRa2EAAAvsJIAhXBwQuIYAgXB4QQBCuAQjkEeAOkseNo0wIIIhJ0KyZRwBB8rhxlAkBBDEJmjXzCCBIHjeOMiGAICZBs2YeAQTJ48ZRJgQQxCRo1swjgCB53DjKhACCmATNmnkEECSPG0eZEEAQk6BZM48AguRx4ygTAghiEjRr5hFAkDxuHGVCAEFMgmbNPAIIkseNo0wIIIhJ0KyZRwBB8rhxlAkBBDEJmjXzCCBIHjeOMiGAICZBs2YeAQTJ48ZRJgQQxCRo1swjgCB53DjKhACCmATNmnkEECSPG0eZEEAQk6BZM48AguRx4ygTAghiEjRr5hFAkDxuHGVCAEFMgmbNPAIIkseNo0wIIIhJ0KyZRwBB8rhxlAkBBDEJmjXzCCBIHjeOMiGAICZBs2YeAQTJ48ZRJgQQxCRo1sw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uVC2SAECKDJI2fBIAiE+uVC2SAECKDJI2fBIAiE+uVC2SAECKDJI2fBIAiE+uVC2SAECKDJI2fBIAiE+uVC2SAECKDJI2fBIAiE+uVC2SAECKDJI2fBIAiE+uVC2SAECKDJI2fBIAiE+uVC2SAECKDJI2fBIAiE+uVC2SAECKDJI2fBIAiE+uVC2SAECKDJI2fBL4Csq/cvbKQGitAAAAAElFTkSuQmCC",xg=at({name:"TopDownSelect",props:{option:{type:Array,default:[]},optionStyle:{type:String,default:""},maskShow:{type:Boolean,default:!0},border:{type:Boolean,default:!1},defaultValue:{type:String,default:""},placeholder:{type:String,default:"\u8BF7\u9009\u62E9"},isSlots:{type:Boolean,default:!1},disibled:{type:Boolean,default:!1}},data(){return{value:{id:"",text:""},lists:[],expand:!1,active:"",activeItem:{name:""}}},watch:{option:{handler(e,t){e&&e.length&&(this.lists=e)},immediate:!0,deep:!0},defaultValue:{immediate:!0,deep:!0,handler(e,t){this.active=e;let s=JSON.parse(JSON.stringify(this.option)).filter((r,o)=>r.id==e);this.activeItem=s[0],this.activeItem&&this.$emit("change",this.activeItem)}}},computed:{arrow(){return Bg},check(){return Ig}},methods:{handleExpand(){this.disibled||(this.expand?this.expand=!1:this.expand=!0)},handleClick(e,t){this.active!=e.id&&(this.active=e.id,this.activeItem=e,this.expand=!1,this.$emit("change",this.activeItem,this.lists))},handleClose(){this.expand=!1,this.active="",this.activeItem={name:""}}}}),VE="",Sg={class:"top-select"},Dg={key:0,style:{position:"relative","z-index":"80"}},Pg=["src"],Mg=["onClick"],Vg=["src"];function Og(e,t,i,s,r,o){return n.openBlock(),n.createElementBlock("div",Sg,[e.isSlots?(n.openBlock(),n.createElementBlock("div",Dg,[n.renderSlot(e.$slots,"header",{data:{...e.activeItem,placeholder:e.placeholder}},void 0,!0)])):(n.openBlock(),n.createElementBlock("div",{key:1,class:n.normalizeClass(["top-select-menu",[e.border&&"top-select-menu-border",!e.activeItem&&"top-select-menu-placeholder"]]),onClick:t[0]||(t[0]=(...a)=>e.handleExpand&&e.handleExpand(...a))},[n.createTextVNode(n.toDisplayString(e.activeItem?e.activeItem.name:e.placeholder)+" ",1),e.disibled?n.createCommentVNode("",!0):(n.openBlock(),n.createElementBlock("img",{key:0,class:n.normalizeClass(["top-select-menu--arrow",[e.expand?"arrow-active":""]]),src:e.arrow},null,10,Pg))],2)),e.maskShow?(n.openBlock(),n.createElementBlock("div",{key:2,class:"top-select-option-mask",style:n.normalizeStyle(e.expand?"visibility: visible; opacity: .7;":"visibility: hidden; opacity: 0;")},null,4)):n.createCommentVNode("",!0),e.lists&&e.lists.length?(n.openBlock(),n.createElementBlock("div",{key:3,class:n.normalizeClass(["top-select-option",[e.border&&"top-select-option-border"]]),style:n.normalizeStyle(`${e.expand?"transform: translateY(2%);visibility: visible; opacity: 1;":"transform: translateY(-50%);visibility: hidden; opacity: 0"};${e.optionStyle?e.optionStyle:""}`)},[(n.openBlock(!0),n.createElementBlock(n.Fragment,null,n.renderList(e.lists,(a,l)=>(n.openBlock(),n.createElementBlock("div",{class:n.normalizeClass(["option-items",[e.active==a.id?"option-items-active":""]]),key:a.id,onClick:c=>e.handleClick(a,l)},[n.createTextVNode(n.toDisplayString(a.name)+" ",1),e.active==a.id?(n.openBlock(),n.createElementBlock("img",{key:0,class:"option-items-check",src:e.check},null,8,Vg)):n.createCommentVNode("",!0)],10,Mg))),128))],6)):n.createCommentVNode("",!0)])}const Pa=pe(xg,[["render",Og],["__scopeId","data-v-15c177a8"]]),vg="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAMgAAADICAYAAACtWK6eAAAAAXNSR0IArs4c6QAADGdJREFUeF7tnVFSHDkMhuVhD7AV9j1wksBJApeA5YnwlJBLQE4COUl63zOpHGAZb3l2mpqQGWYsS7as/qna2oe0ZeuXvpHd7W4Hwh8UgAJbFQjQBgpAge0KABBkBxR4RQEAgvSAAgAEOQAFeAqggvB0Q6uJKABAJhJouMlTAIDwdEOriSgAQCYSaLjJUwCA8HRDq4koAEAm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11SkayLsuRIRHYCIyOjFyODFkS1+HGX7B0CyJXPbYH4ZurlDmRsE9tHYACRXar/Xcx6K9aIGANkQKexJyk7fISzovPR9iOxeKzQAIABEJM28VhEAAkBEACHGnFumY10rAASASGUY+0UhqQFo2AEgG1Rli6IRoV5sooL8GimGHt3cCsRrpwwqO9+Hts1j9o+lZ0CSWHj1NA8Szht0eT20uRqAbNEdVSQjIZ1Wj6QAAHklD/A8ZD9I8CR9g07ep1ijy6tK8oBNfNthASATBiS5niBJ/z84oBNa0Lv9flc7vCrQGWfUAGTigHCSpsc23DcK01P0Hv3dZ8whfXKV88MxlSnWPiJ6uYYLiBf/Rf0AIKJymjAGQATDAEAExTRiCoAIBgKACIppxBQAEQwEABEU04gpACIYCAAiKKYRUwBEMBAARFBMI6aw/0wwEIztN93s5hWUqStTAEQwXJ6/7i4oU1em3tzG6+D4oV/NYDwt6PjnVcj6HBIqSM0IMfrCvjOGaJuaMNYfyQwAEdJf0wx7e7fmoDqzzakeAKSjIK+mWmnjYv4XBTvyU2GoRZ8/QgVRiIiWyRdnpJ9o9ePE7hCJ7n9chpsSfwBIiXoN247b/RsOwWzXuQvx1xwBIGbDjIFZUACAWIgCxmBWAQBiNjQYmAUFAIiFKGAMZhUAIGZDg4FZUACAWIgCxmBWAQBiNjQYmAUFAIiFKGAMZhUAIGZDg4FZUACAWIgCxmBWAQBiNjQYmAUFAIiFKGAMZhUAIGZDg4FZUOA/PPf9I/jtWsEAAAAASUVORK5CYII=",Rg=at({name:"TopSubmitPopup",components:{BpmnLook:Da,TopPopup:Ke,TopDownSelect:Pa,PreviewImage:un,departPerson:Tt.departPerson,TopTips:st},props:{isCheckType:{type:String,default:"0"},visible:{type:Boolean,default:!1},request:{type:[Function,Object],default:()=>({get:()=>{},post:()=>{},upload:()=>{}})},appId:{type:String,default:""},processName:{type:String,default:""},resubmit:{type:Boolean,default:!1},id:{type:String,default:""},businessType:{type:[String,Number]},businessDeptId:{type:[String,Number]},businessSubjectId:{type:[String,Number]},todoParameter:{type:Object,default(){return{}}},isClearHistory:{type:Boolean,default:!1},title:{type:String,default:"\u6D4B\u8BD5"},showType:{type:String,default:"all"},beforeFunction:{type:Function,default:null},manual:{type:Boolean,default:!1},selfList:{type:Array,default:()=>[]},isOrgType:{type:Array,default:()=>[0]},isCodeType:{type:Array,default:()=>[3]},extraParams:{type:Object,default:()=>{}},isSelectFirst:{type:Boolean,default:!0},showFlowForecast:{default:!1,type:Boolean},flowForecastFunction:{type:Function,default:null}},data(){return{approvalData:[],processXml:"",showFlow:!1,showFirstPerson:!1,selectDeptData:{},showDept:!1,deptList:[],show:!1,option:[],checkedItem:{},personList:[],checkedArray:[],trackUrl:[],taskurlshow:!1,isStyle:"width:35%",visiblePerson:!1,entity:{source:"0",type:this.isCheckType||"0",orgType:this.isOrgType||[0],request:this.request,codeType:this.isCodeType||[3],multiple:!1,checkedArray:[]},multiNodeParticipant:{},personListCopy:{},partNode:{},personObjId:"",processId:"",textTips:"",statusTips:!1,typeTips:"success",firstPerson:[],selectDefaultValue:"",businessTypeData:"",businessDeptIdData:"",idData:"",processNameData:"",titleData:"",todoParameterData:{},humanPerformerName:"",btnLoading:!1,flowForecastVisible:!1,flowForecastData:{completeTime:"",processBudgetModelList:[]},flowForecastProcessInstId:""}},watch:{visible:{async handler(e,t){this.show=e,this.$emit("update:visible",this.show),e?(this.selectDefaultValue="",this.handleOption()):this.$refs.TopDownSelect.handleClose()}},show:{handler(e,t){e||this.$refs.TopDownSelect.handleClose()}},businessType:{handler(e,t){this.businessTypeData=e},immediate:!0},businessDeptId:{handler(e,t){this.businessDeptIdData=e},immediate:!0},id:{handler(e,t){e&&(this.idData=e,this.resubmit&&this.getProcessInstance())},immediate:!0},processName:{handler(e,t){this.processNameData=e},immediate:!0},title:{handler(e,t){this.titleData=e},immediate:!0},todoParameter:{handler(e,t){this.todoParameterData=e},immediate:!0,deep:!0},selfList:{handler(e,t){e&&e.length&&(this.option=e,this.checkedItem=this.option[0],this.selectDefaultValue=this.checkedItem.id,this.$emit("change",this.checkedItem,this.option),this.handlefirstNode(this.checkedItem.id))},immediate:!0,deep:!0},resubmit:{handler(e,t){e&&this.getProcessInstance()}}},computed:{ProcessImg(){return vg}},methods:{getXmlByProcessDefId(e){this.request.get("/bladex/blade-workflow/process/getXmlByProcessDefId",{params:{processDefId:e}}).then(t=>{t.code==200&&(this.processXml=t.data)})},handleFlowSelect(){this.showFlow=!0},handleSumbitFlow(){this.showFlow=!1},handleDeptSelect(){this.showDept=!0},handleSumbitDept(){},async handleClickDept(e){this.businessDeptIdData=e.id,this.showDept=!1,this.selectDeptData=e,await this.getUserDataByDeptId(),this.showFirstPerson=!0,this.handleTips("",!1,"success")},handleSelect(){this.$refs.TopDownSelect.handleExpand()},async handleOption(){this.checkedItem={},this.firstPerson=[],this.personList=[],!(this.selfList&&this.selfList.length)&&(this.handleTips("",!0,"loading"),await this.request.post("/bladex/blade-workflow/repository/getProcessDefList",{businessCode:this.businessType,appId:this.appId,processGroupName:this.processNameData,...this.extraParams}).then(e=>{e.code==200&&(this.option=e.data,e.data&&e.data.length?(this.handleTips("",!1,"success"),(this.isSelectFirst||e.data.length==1)&&(this.checkedItem=this.option[0],this.selectDefaultValue=this.checkedItem.id,this.$emit("change",this.checkedItem,this.option),this.handlefirstNode(this.checkedItem.id))):(this.handleTips("\u6682\u65E0\u6D41\u7A0B\u8282\u70B9\u4FE1\u606F",!0,"error"),this.option=[]),this.businessDeptIdData||this.getNodeUserDept())}))},async getProcessInstance(){},async getNodeUserDept(){let e={};try{e=await this.request.get("/auth/dept/list/user/dept/selectTree")}catch(t){console.log(t,"error")}this.deptList=e.data||[]},async getNodeUser({deptId:e,intersection:t,userIds:i,postIds:s,deptIds:r}){return await this.request.post("/auth/post/getTaskAuditor",{deptId:e,intersection:t,userIds:i,postIds:s,deptIds:r})},getUserDataByDeptId(){this.firstPerson.map(async(e,t)=>{const i=Sa(e);let s;try{s=await this.getNodeUser({deptId:this.businessDeptIdData,intersection:(i.intersection,0),userIds:i.userIds,postIds:i.postIds,deptIds:i.deptIds})}catch(r){console.log(r,"error")}if(s.code==200){const r=this.firstPerson[t];r.userList=s.data,this.firstPerson[t]=r}})},async handlefirstNode(e){e&&(this.handleTips("",!0,"loading"),await this.request.get("/bladex/blade-workflow/repository/getAllProcessNode",{params:{processDefId:e}}).then(async t=>{if(t.code===200){if(this.firstPerson=t.data,await this.getNodeUserDept(),!this.businessDeptIdData){this.handleTips("",!1,"success");return}if(await this.getUserDataByDeptId(),this.showFirstPerson=!0,this.handleTips("",!1,"success"),Date.now())return;t.data.map(i=>{{let s={taskDefId:i.id,postIds:[]};i.routeTxt.postList.map(r=>{s.postIds.push(r.postId)}),this.request.post("/auth/post/getTaskAuditor",{deptId:this.businessDeptIdData,taskPostIds:[s]}).then(r=>{let o=[],a=[],l=!1;r.data.map(f=>{f.posts.map(h=>{a.push(...h.users),h.users.length==1?o.push(...h.users):l=!0})}),o.length>i.loopCardinality&&i.loopCardinality>0&&(l=!0),l&&(o=[]);let c=[];r.data[0].posts.map(f=>{c.push({...f,projectPost:!this.businessDeptIdData,id:f.users.map(h=>h.id),subjectId:f.subjectId})}),a.length==0&&this.$set(i,"noPersonnel",!0),o.length>0&&(this.personObjId=i.id,this.humanPerformerName=i.humanPerformerName,this.$set(i,"noPersonnel",!0),this.handleCallback(o)),i.positionArray=c})}}),this.getAfferentParticipantNodeList()}else this.firstPerson=[],this.getAfferentParticipantNodeList()}).catch(t=>{this.firstPerson=[],this.getAfferentParticipantNodeList()}))},async handleChange(e,t){this.handleTips("",!0,"loading"),this.checkedItem={},this.selectDefaultValue="",this.firstPerson=[],this.personList=[],this.checkedItem=e,this.selectDefaultValue=this.checkedItem.id,this.handlefirstNode(this.checkedItem.id),this.getXmlByProcessDefId(this.checkedItem.id),this.$emit("change",e,t)},async getAfferentParticipantNodeList(){await this.request.get("/aws/repository/getAfferentParticipantNodeList",{params:{processDefId:this.checkedItem.id}}).then(e=>{e.code==200&&(this.firstPerson&&this.firstPerson.length&&(e.data.map(t=>{if(t.humanPerformerName==="\u56FA\u5B9A\u89D2\u8272/\u5C97\u4F4D"){let i={taskDefId:t.id,postIds:[]};t.routeTxt.postList.map(s=>{i.postIds.push(s.postId)}),this.request.post("/auth/post/getTaskAuditor",{deptId:this.businessDeptIdData,taskPostIds:[i]}).then(s=>{let r=[],o=[],a=!1;s.data.map(c=>{c.posts.map(f=>{o.push(...f.users),f.users.length==1?r.push(...f.users):a=!0})}),r.length>t.loopCardinality&&t.loopCardinality>0&&(a=!0),a&&(r=[]);let l=[];s.data[0].posts.map(c=>{l.push({...c,projectPost:!(this.param.taskNode&&this.param.taskNode[0].vars&&this.param.taskNode[0].vars._businessDeptId),id:c.users.map(f=>f.id),subjectId:c.subjectId})}),o.length==0&&this.$set(t,"noPersonnel",!0),r.length>0&&(this.personObjId=t.id,this.humanPerformerName=t.humanPerformerName,this.$set(t,"noPersonnel",!0),this.handleCallback(r)),t.positionArray=l})}}),this.personList=e.data.filter(t=>!this.firstPerson.some(i=>i.id==t.id))),this.$emit("change",this.checkedItem,this.option)),this.$refs.topTips.handleClose()})},getDiagramUrl(){this.request.get("/aws/repository/getDiagramUrl",{params:{processDefId:this.checkedItem.id,diagramType:1,type:"pc"}}).then(e=>{e.code==200&&(this.trackUrl=[e.data])})},handleOpenPerson(e){if(this.visiblePerson=!0,this.personObjId=e.id,this.humanPerformerName=e.humanPerformerName,e.humanPerformerName==="\u4EFB\u610F\u6307\u5B9A")this.entity={source:"1",type:this.isCheckType||"0",orgType:this.isOrgType||[0],request:this.request,codeType:this.isCodeType||[3],multiple:e.loopCardinality!=1,maxMultiple:e.loopCardinality>0?e.loopCardinality:0,checkedArray:[]},this.multiNodeParticipant[e.id]&&this.multiNodeParticipant[e.id].length?this.entity.checkedArray=this.personListCopy[e.id].map(t=>({id:t.id,subjectId:t.subjectId,type:t.type,deptId:this.handleLastStr(t.ancestors,t.subjectId)})):this.entity.checkedArray=[];else if(e.humanPerformerName==="\u56FA\u5B9A\u90E8\u95E8"){let t,i=[];e.routeTxt.departmentIds&&e.routeTxt.departmentIds.length>1?(e.routeTxt.departmentIds.forEach((s,r)=>{i.push(s.rangeId)}),this.entity={source:"1",type:this.isCheckType||"0",orgType:this.isOrgType||"0",request:this.request,codeType:this.isCodeType||[3],deptCodeArray:i,multiple:e.loopCardinality!=1,maxMultiple:e.loopCardinality>0?e.loopCardinality:0}):e.routeTxt.departmentIds&&e.routeTxt.departmentIds.length==1&&(e.routeTxt.departmentIds.forEach((s,r)=>{t=s.rangeId}),this.entity={source:"1",type:this.isCheckType||"0",orgType:this.isOrgType||"0",request:this.request,codeType:this.isCodeType||[3],deptCode:t,multiple:e.loopCardinality!=1,maxMultiple:e.loopCardinality>0?e.loopCardinality:0}),this.multiNodeParticipant[e.id]&&this.multiNodeParticipant[e.id].length?this.entity.checkedArray=this.personListCopy[e.id].map(s=>({id:s.id,subjectId:s.subjectId,type:s.type,deptId:t})):this.entity.checkedArray=[]}else if(e.humanPerformerName==="\u56FA\u5B9A\u5355\u4F4D"){let t;e.routeTxt.companyIds.map((i,s)=>{t=i.name}),this.entity={source:"1",type:this.isCheckType||"0",orgType:this.isOrgType||"0",request:this.request,codeType:this.isCodeType||[3],multiple:e.loopCardinality!=1,maxMultiple:e.loopCardinality>0?e.loopCardinality:0,subjectName:t},this.multiNodeParticipant[e.id]&&this.multiNodeParticipant[e.id].length?this.entity.checkedArray=this.personListCopy[e.id].map(i=>({id:i.id,subjectId:i.subjectId,type:i.type,deptId:this.handleLastStr(i.ancestors,i.subjectId),subjectName:i.ancestorNames.slice(0,i.ancestorNames.indexOf("/"))})):this.entity.checkedArray=[]}else e.humanPerformerName==="\u56FA\u5B9A\u89D2\u8272/\u5C97\u4F4D"&&(this.entity={source:"1",type:this.isCheckType||"0",orgType:[5],request:this.request,codeType:[8],multiple:e.loopCardinality!=1,maxMultiple:e.loopCardinality>0?e.loopCardinality:0,positionArray:e.positionArray},this.multiNodeParticipant[e.id]&&this.multiNodeParticipant[e.id].length?this.entity.checkedArray=this.personListCopy[e.id].map(t=>({id:t.id,subjectId:t.subjectId,type:t.type,deptId:this.handleLastStr(t.ancestors,t.subjectId),subjectName:t.ancestorNames.slice(0,t.ancestorNames.indexOf("/"))})):this.entity.checkedArray=[])},handleCallback(e){this.personListCopy[this.personObjId]=e,this.entity.checkedArray=e.map(t=>({id:t.id,subjectId:t.subjectId,type:t.type,deptId:this.handleLastStr(t.ancestors,t.subjectId),subjectName:this.humanPerformerName==="\u56FA\u5B9A\u5355\u4F4D"?t.ancestorNames.slice(0,t.ancestorNames.indexOf("/")):""})),this.multiNodeParticipant[this.personObjId]=[],this.partNode[this.personObjId]=[],e.map((t,i)=>{this.multiNodeParticipant[this.personObjId].push(t.id),this.partNode[this.personObjId].push(t.name)}),this.visiblePerson=!1},handleCancel(){},handleLastStr(e,t){if(!!e)return e.split(",")[e.split(",").length-1]!==t?e.split(",")[e.split(",").length-1]:""},async handleSumbit(){if(!this.btnLoading){if(this.btnLoading=!0,!this.isSelectFirst&&!this.checkedItem.id){this.handleTips("\u8BF7\u5148\u9009\u62E9\u6D41\u7A0B",!0,"error"),this.btnLoading=!1;return}if(!this.isSelectFirst&&!this.businessDeptIdData){this.handleTips("\u8BF7\u5148\u9009\u62E9\u90E8\u95E8",!0,"error"),this.btnLoading=!1;return}if(this.firstPerson&&this.firstPerson.length&&!this.firstPerson[0].routeTxt.userNames&&(!this.multiNodeParticipant[this.firstPerson[0].id]||!this.multiNodeParticipant[this.firstPerson[0].id].length)){this.handleTips(`${this.firstPerson[0].name}\u8282\u70B9\u672A\u9009\u62E9\u5BA1\u6279\u4EBA`,!0,"error"),this.btnLoading=!1;return}this.beforeFunction&&(await this.beforeFunction(),this.manual&&(this.btnLoading=!1)),this.manual||this.$nextTick(async()=>{await this.handleSongshen()})}},handleSongshen(){if(this.btnLoading=!0,this.resubmit)this.handleTips("",!0,"loading"),this.request.post("/bladex/blade-workflow/pis/reactivate",{processDefId:this.checkedItem.id,isClearHistory:this.isClearHistory,reactivateReason:"\u91CD\u65B0\u63D0\u4EA4",multiNodeParticipant:this.multiNodeParticipant,firstNodeId:this.firstPerson&&this.firstPerson.length>0?this.firstPerson[0].id:"",processInstId:this.extraParams.processInstId,vars:{...this.extraParams,_businessDeptId:this.businessDeptIdData}}).then(e=>{e.code==200?(this.show=!1,this.$emit("update:visible",this.show),this.handleTips("\u63D0\u4EA4\u6210\u529F!",!1,"success"),this.$emit("successFn"),this.btnLoading=!1):(this.handleTips(e.msg,!0,"error"),this.btnLoading=!1)}).catch(e=>{this.handleTips(e.msg,!0,"error"),this.btnLoading=!1});else{this.handleTips("",!0,"loading");let e={processDefId:this.checkedItem.id,multiNodeParticipant:this.multiNodeParticipant,firstNodeId:this.firstPerson&&this.firstPerson.length>0?this.firstPerson[0].id:"",vars:{businessKey:this.extraParams.businessKey,showType:"all",subjectId:this.businessSubjectId,deptId:this.deptId,businessType:this.businessType,name:this.extraParams.name,title:this.extraParams.title}};if(!this.checkedItem.id){this.$refs.topTips.handleClose(),this.btnLoading=!1;return}this.request.post("/bladex/blade-workflow/pis/createAndStart",e).then(t=>{t.code===200?(this.show=!1,this.$emit("update:visible",this.show),this.handleTips("\u63D0\u4EA4\u6210\u529F!",!1,"success"),this.$emit("successFn"),this.btnLoading=!1):t.code==499?this.request.post("/bladex/blade-workflow/pis/reactivate",{processInstId:this.processId,isClearHistory:this.isClearHistory,reactivateReason:"\u91CD\u65B0\u63D0\u4EA4",multiNodeParticipant:this.multiNodeParticipant}).then(i=>{i.code==200?(this.show=!1,this.$emit("update:visible",this.show),this.handleTips("\u63D0\u4EA4\u6210\u529F!",!1,"success"),this.$emit("successFn"),this.btnLoading=!1):(this.handleTips(i.msg,!0,"error"),this.btnLoading=!1)}).catch(i=>{this.handleTips(i.msg,!0,"error"),this.btnLoading=!1}):(this.handleTips(t.msg,!0,"error"),this.btnLoading=!1)}).catch(t=>{this.handleTips(t.msg,!0,"error"),this.btnLoading=!1})}},handleTips(e,t,i){this.textTips=e,this.statusTips=t,this.typeTips=i,this.$refs.topTips&&this.$refs.topTips.handleOpen()},viewFlowForecast(){this.flowForecastFunction?this.flowForecastFunction():this.forecast({appId:this.appId,title:"1"})},forecast(e){this.request.post("/aws/pis/getProcessForecast",{processDefId:this.checkedItem.id,...e}).then(t=>{t.code==200?(t.data&&t.data.processBudgetModelList&&t.data.processBudgetModelList.length?this.flowForecastProcessInstId=t.data.processBudgetModelList[0].processInstId:(t.data.processBudgetModelList=[],this.flowForecastProcessInstId=""),this.flowForecastData=t.data,this.flowForecastVisible=!0):this.handleTips(t.msg,!0,"error")}).catch(t=>{this.btnLoading=!1,this.handleTips("\u6D41\u7A0B\u9884\u6D4B\u5931\u8D25\uFF0C\u8BF7\u91CD\u8BD5",!0,"error")})},flowForecastClose(){this.flowForecastProcessInstId?this.request.get("/aws/pis/deleteProcessById",{params:{processInstId:this.flowForecastProcessInstId}}).then(e=>{e.code==200&&(this.flowForecastVisible=!1,this.flowForecastData={completeTime:"",processBudgetModelList:[]},this.flowForecastProcessInstId="")}):(this.flowForecastVisible=!1,this.flowForecastData={completeTime:"",processBudgetModelList:[]})}}}),OE="",Lg={class:"sumbmitPopup-index-sumbit"},Fg={class:"sumbmitPopup-select"},Qg={class:"sumbmitPopup-select-viewTrack",style:{display:"flex"}},Ug=["src"],jg={key:0,class:"person-views"},_g={class:"views-items-label"},Gg={class:"views-items-name"},qg={class:"views-items-name-left"},Jg={key:0,class:"views-items-name--re"},Hg={class:"views-items-set"},Kg={key:0},zg={key:0},Wg={key:1},Yg={key:2},Zg={key:3},Xg=["onClick"],$g={key:0,class:"views-items-includes"},ey={class:"views-items-and2"},ty={key:0},iy={class:"include"},ny={class:"include include-name"},sy={key:1,class:"person-views"},ry={class:"views-items"},oy={class:"views-items-name"},ay={class:"views-items-set"},ly=["onClick"],cy={key:1},py={key:0},dy={key:2},hy={key:3},uy={key:2,class:"person-views-white"},fy={style:{height:"100%"}},my={class:"tree"},gy=["onClick"],yy={key:0,class:"children"},Ay=["onClick"],ky={style:{margin:"20px"}},Ey=["innerHTML"],by={class:"timeline"},Cy={class:"item-top"},wy={class:"top-spot"},Ty={class:"top-title"},Ny={style:{color:"#009800"}};function By(e,t,i,s,r,o){const a=n.resolveComponent("TopDownSelect"),l=n.resolveComponent("TopPopup"),c=n.resolveComponent("departPerson"),f=n.resolveComponent("BpmnLook"),h=n.resolveComponent("PreviewImage"),u=n.resolveComponent("TopTips");return n.openBlock(),n.createElementBlock("div",Lg,[t[16]||(t[16]=n.createElementVNode("div",{class:"top-popup"},null,-1)),n.createVNode(l,{visible:e.show,"onUpdate:visible":t[4]||(t[4]=g=>(e.show=g,e.$emit("update:visible",g))),ref:"TopPopup",titleText:"\u9001\u5BA1",isIndex:99,className:"sumbmitPopup-index",comfigText:"\u9001\u5BA1",comfig:e.handleSumbit},{default:n.withCtx(()=>[n.createVNode(a,{isSlots:"",option:e.option,onChange:e.handleChange,defaultValue:e.selectDefaultValue,ref:"TopDownSelect",disibled:!1},{header:n.withCtx(g=>[n.createElementVNode("div",Fg,[n.createElementVNode("div",{class:"sumbmitPopup-select-checked",onClick:t[0]||(t[0]=(...E)=>e.handleSelect&&e.handleSelect(...E))},[t[10]||(t[10]=n.createElementVNode("div",{class:"sumbmitPopup-select-checked-title"},"\u5F53\u524D\u6D41\u7A0B",-1)),n.createElementVNode("div",{class:n.normalizeClass(["sumbmitPopup-select-checked-node",""])},n.toDisplayString(g.data.name?g.data.name:g.data.placeholder),3)]),n.createElementVNode("div",{class:"sumbmitPopup-select-checked",onClick:t[1]||(t[1]=(...E)=>e.handleDeptSelect&&e.handleDeptSelect(...E))},[t[11]||(t[11]=n.createElementVNode("div",{class:"sumbmitPopup-select-checked-title"},"\u9009\u62E9\u90E8\u95E8",-1)),n.createElementVNode("div",{class:n.normalizeClass(["sumbmitPopup-select-checked-node",""])},n.toDisplayString(e.selectDeptData.label?e.selectDeptData.label:"\u8BF7\u9009\u62E9"),3)]),n.createElementVNode("div",Qg,[e.checkedItem.id?(n.openBlock(),n.createElementBlock("div",{key:0,class:"viewTrack",onClick:t[2]||(t[2]=(...E)=>e.handleFlowSelect&&e.handleFlowSelect(...E))},[n.createElementVNode("img",{src:e.ProcessImg},null,8,Ug),t[12]||(t[12]=n.createTextVNode(" \u67E5\u770B\u6D41\u7A0B\u56FE ",-1))])):n.createCommentVNode("",!0),e.checkedItem.id&&e.showFlowForecast?(n.openBlock(),n.createElementBlock("div",{key:1,class:"viewTrack",onClick:t[3]||(t[3]=(...E)=>e.viewFlowForecast&&e.viewFlowForecast(...E))}," \u6D41\u7A0B\u9884\u6D4B ")):n.createCommentVNode("",!0)])])]),_:1},8,["option","onChange","defaultValue","disibled"]),e.showFirstPerson&&e.firstPerson&&e.firstPerson.length?(n.openBlock(),n.createElementBlock("div",jg,[t[14]||(t[14]=n.createElementVNode("div",{class:"person-views-title"},"\u4E0B\u4E00\u6B65\u5904\u7406\u8282\u70B9",-1)),(n.openBlock(!0),n.createElementBlock(n.Fragment,null,n.renderList(e.firstPerson,(g,E)=>{var I;return n.openBlock(),n.createElementBlock("div",{class:"views-items",key:E},[n.createElementVNode("div",_g,[n.createElementVNode("div",Gg,[n.createElementVNode("div",qg,[n.createTextVNode(n.toDisplayString(g.name)+" ",1),E==0?(n.openBlock(),n.createElementBlock("span",Jg,"*")):n.createCommentVNode("",!0)])]),n.createElementVNode("div",Hg,[e.partNode[g.id]&&e.partNode[g.id].length?(n.openBlock(),n.createElementBlock("div",Kg,[(n.openBlock(!0),n.createElementBlock(n.Fragment,null,n.renderList(e.partNode[g.id],(P,H)=>(n.openBlock(),n.createElementBlock("span",{key:H},n.toDisplayString(H>=3?"":H==0?P:`,${P}`),1))),128)),e.partNode[g.id].length>3?(n.openBlock(),n.createElementBlock("span",zg,"...\u7B49"+n.toDisplayString(e.partNode[g.id].length)+"\u4EBA",1)):n.createCommentVNode("",!0)])):g.routeTxt&&g.routeTxt.userNames?(n.openBlock(),n.createElementBlock("div",Wg,n.toDisplayString(g.routeTxt.userNames),1)):n.createCommentVNode("",!0),g.humanPerformerName=="\u56FA\u5B9A\u8D26\u6237"||g.humanPerformerName=="\u4E0E\u6D41\u7A0B\u7533\u8BF7\u4EBA\u76F8\u5173"||((I=e.partNode[g.id])==null?void 0:I.length)>0&&g.noPersonnel?(n.openBlock(),n.createElementBlock("div",Yg)):g.humanPerformerName=="\u56FA\u5B9A\u8D26\u6237"||g.humanPerformerName=="\u4E0E\u6D41\u7A0B\u7533\u8BF7\u4EBA\u76F8\u5173"||g.noPersonnel?(n.openBlock(),n.createElementBlock("div",Zg," \u6CA1\u6709\u53EF\u9009\u4EBA\u5458\uFF0C\u8BF7\u68C0\u67E5\u914D\u7F6E ")):(n.openBlock(),n.createElementBlock("div",{key:4,class:"views-items-set-btn",onClick:P=>e.handleOpenPerson(g)}," \u8BBE\u7F6E ",8,Xg))])]),g.routeTxt&&g.routeTxt.length>0?(n.openBlock(),n.createElementBlock("div",$g,[t[13]||(t[13]=n.createElementVNode("div",{class:"views-items-name2"},n.toDisplayString("\u6240\u5C5E\u8303\u56F4"),-1)),n.createElementVNode("div",ey,[(n.openBlock(!0),n.createElementBlock(n.Fragment,null,n.renderList(g.routeTxt,(P,H)=>(n.openBlock(),n.createElementBlock("div",{key:P.type},[P.ids&&P.ids.length>0?(n.openBlock(),n.createElementBlock("div",ty,[n.createElementVNode("div",iy,[n.createElementVNode("b",{class:n.normalizeClass(["include include-type",["include-"+P.type]])},n.toDisplayString(P.type=="user"?"\u7528\u6237":P.type=="dept"?"\u90E8\u95E8":"\u5C97\u4F4D"),3),n.createElementVNode("span",ny,n.toDisplayString(P.name),1)]),H!==g.routeTxt.length-1?(n.openBlock(),n.createElementBlock("div",{key:0,class:n.normalizeClass(["include include-assign",["include-assign-"+(P.assigneeRetain?"true":"false")]])},n.toDisplayString(g.assigneeRetain=="true"?"\u4E14\u540C\u65F6\u6EE1\u8DB3":"\u6216\u8005\u6EE1\u8DB3"),3)):n.createCommentVNode("",!0)])):n.createCommentVNode("",!0)]))),128))])])):n.createCommentVNode("",!0)])}),128))])):n.createCommentVNode("",!0),e.personList&&e.personList.length?(n.openBlock(),n.createElementBlock("div",sy,[t[15]||(t[15]=n.createElementVNode("div",{class:"person-views-title"},"\u5176\u4ED6\u5904\u7406\u8282\u70B9",-1)),(n.openBlock(!0),n.createElementBlock(n.Fragment,null,n.renderList(e.personList,(g,E)=>(n.openBlock(),n.createElementBlock("div",ry,[n.createElementVNode("div",oy,n.toDisplayString(g.name),1),n.createElementVNode("div",ay,[g.noPersonnel?n.createCommentVNode("",!0):(n.openBlock(),n.createElementBlock("div",{key:0,class:"views-items-set-btn",onClick:I=>e.handleOpenPerson(g)}," \u8BBE\u7F6E ",8,ly)),e.partNode[g.id]&&e.partNode[g.id].length?(n.openBlock(),n.createElementBlock("div",cy,[(n.openBlock(!0),n.createElementBlock(n.Fragment,null,n.renderList(e.partNode[g.id],(I,P)=>(n.openBlock(),n.createElementBlock("span",null,n.toDisplayString(P>=3?"":P==0?I:`,${I}`),1))),256)),e.partNode[g.id].length>3?(n.openBlock(),n.createElementBlock("span",py,"...\u7B49"+n.toDisplayString(e.partNode[g.id].length)+"\u4EBA",1)):n.createCommentVNode("",!0)])):g.noPersonnel?(n.openBlock(),n.createElementBlock("div",dy,"\u6CA1\u6709\u53EF\u9009\u4EBA\u5458\uFF0C\u8BF7\u68C0\u67E5\u914D\u7F6E")):(n.openBlock(),n.createElementBlock("div",hy))])]))),256))])):n.createCommentVNode("",!0),!e.firstPerson&&!e.firstPerson.length&&!e.personList&&!e.personList.length?(n.openBlock(),n.createElementBlock("div",uy," \u65E0\u9700\u8BBE\u7F6E ")):n.createCommentVNode("",!0)]),_:1},8,["visible","comfig"]),n.createVNode(l,{visible:e.visiblePerson,"onUpdate:visible":t[5]||(t[5]=g=>e.visiblePerson=g),ref:"TopPopup",titleText:"\u9009\u4EBA",isDrawer:!0,isIndex:199},{default:n.withCtx(()=>[n.createElementVNode("div",fy,[e.visiblePerson?(n.openBlock(),n.createBlock(c,n.mergeProps({key:0,isTitle:!1,visible:e.visiblePerson},e.entity,{onCallback:e.handleCallback,onCancel:e.handleCancel,checkedArray:e.checkedArray}),null,16,["visible","onCallback","onCancel","checkedArray"])):n.createCommentVNode("",!0)])]),_:1},8,["visible"]),n.createVNode(l,{visible:e.showDept,"onUpdate:visible":t[6]||(t[6]=g=>e.showDept=g),ref:"TopPopupDept",titleText:"\u9009\u62E9\u90E8\u95E8",isIndex:99,className:"sumbmitPopup-index",comfigText:"\u786E\u5B9A",comfig:e.handleSumbitDept},{default:n.withCtx(()=>[n.createElementVNode("div",my,[(n.openBlock(!0),n.createElementBlock(n.Fragment,null,n.renderList([...e.deptList],g=>(n.openBlock(),n.createElementBlock("div",{class:"node",key:g.id},[n.createElementVNode("div",{class:"node-p",onClick:E=>e.handleClickDept(g)},n.toDisplayString(g.label),9,gy),g.children?(n.openBlock(),n.createElementBlock("div",yy,[(n.openBlock(!0),n.createElementBlock(n.Fragment,null,n.renderList(g.children,E=>(n.openBlock(),n.createElementBlock("div",{class:"node-s",onClick:I=>e.handleClickDept(E),key:E.id},n.toDisplayString(E.label),9,Ay))),128))])):n.createCommentVNode("",!0)]))),128))])]),_:1},8,["visible","comfig"]),n.createVNode(l,{class:"top-pop-flow",visible:e.showFlow,"onUpdate:visible":t[7]||(t[7]=g=>e.showFlow=g),ref:"TopPopupFlow",titleText:"\u67E5\u770B\u6D41\u7A0B\u56FE",isIndex:99,className:"sumbmitPopup-index",comfigText:"\u5173\u95ED",comfig:e.handleSumbitFlow},{default:n.withCtx(()=>[e.showFlow&&e.processXml?(n.openBlock(),n.createBlock(f,{key:0,ref:"PreviewRef",diagram:e.processXml,approvalData:e.approvalData},null,8,["diagram","approvalData"])):n.createCommentVNode("",!0)]),_:1},8,["visible","comfig"]),n.createVNode(h,{images:e.trackUrl,visible:e.taskurlshow,"onUpdate:visible":t[8]||(t[8]=g=>e.taskurlshow=g),indexd:0,isOne:!0,isStyle:e.isStyle},null,8,["images","visible","isStyle"]),n.createVNode(u,{ref:"topTips",text:e.textTips,statusTips:e.statusTips,type:e.typeTips},null,8,["text","statusTips","type"]),n.createVNode(l,{visible:e.flowForecastVisible,"onUpdate:visible":t[9]||(t[9]=g=>e.flowForecastVisible=g),ref:"TopPopupFF",titleText:"\u6D41\u7A0B\u9884\u6D4B",isIndex:129,cancel:e.flowForecastClose,comfig:e.flowForecastClose},{default:n.withCtx(()=>[n.createElementVNode("div",ky,[n.createElementVNode("div",{innerHTML:e.flowForecastData.completeTime,style:{"margin-left":"10px","margin-bottom":"10px"}},null,8,Ey),n.createElementVNode("div",by,[(n.openBlock(!0),n.createElementBlock(n.Fragment,null,n.renderList(e.flowForecastData.processBudgetModelList,(g,E)=>(n.openBlock(),n.createElementBlock("div",{class:"timeline-item",key:E},[n.createElementVNode("div",Cy,[n.createElementVNode("div",wy,[n.createElementVNode("div",{class:n.normalizeClass(["spot",{active:E==0}])},null,2)]),n.createElementVNode("div",Ty,n.toDisplayString(g.title),1)]),n.createElementVNode("div",{class:n.normalizeClass(["item-bottom",{last:E==e.flowForecastData.processBudgetModelList.length-1}])},[n.createElementVNode("span",Ny," \u6267\u884C\u4EBA\uFF1A"+n.toDisplayString(g.excutor),1)],2)]))),128))])])]),_:1},8,["visible","cancel","comfig"])])}const Ma=pe(Rg,[["render",By],["__scopeId","data-v-f25033d3"]]),Iy="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAMgAAADICAYAAACtWK6eAAAAAXNSR0IArs4c6QAADG5JREFUeF7tnVFaGzcXhjUD16WsoLCSwl1qsoeElRRWEroHcLkL/0rqfwUpvS6jPuPYiXGw0ZE+4TOel6s8T6Rj6T36pE/yWNME/iAAgY0EGthAAAKbCSAQRgcEthBAIAwPCCAQxgAE8giwguRxo9ZICCAQR4n+8u7dybfmHB5+/fe//86O7+9njpo5qqYgkB2kuxfCQduexRB+ibE5a5rQi+G7OF5u01IkDyHEWde2/zu+vX3YQfNH9ZEI5I3S3YuibdsPITRXwo+cxRh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IgEFFCEIgIpLMwCESUEAQiAuksDAIRJQSBiEA6C4NARAlBICKQzsIgEFFCEIgIpLMwCESUEAQiAuksDAIRJQSBiEA6C4NARAlBICKQzsLk5JVbTV5I4tBnGmfj0k1zHicX0doYT7/xd3MvVqZAgoerdqwDYCzlrVcQrXBxc0OMG4Hk3oXrabYZy8BP7WfupBdCQCDrkPsbOGJo+ut1Mv7i1dF0ep1RkSqVCJTks+ZVqNbuullBjJe0vdBPRGJNfq3yuW5g2Z7al9lZ+u1GIH2jC5bkZZ/7+2UXV3/GKnfNWuCOrWyMzVnGRdXPMHmzzK4EUjrzjG1A7ml/3ew/er6uBFJus/Z0yIyoW57slTuB9A2yXLw8onEzlq66Wj1cCoRVZCxa+LGf3lYPlwLpG1VyRDje4TX0nvs8hXS1B1lNMRv2oQ/49PZ7O7labblbgfRWq2kOPpUeG6aniZK7IOBZHG4t1jJRi/1I/yJN00spd5FoPjOLgJt3EW5qvdsVZE0kv6e+UiwrTVR6cwLeV44lEPcC6Rua+EqxN08yH5hNwN1x7mBXkNWGsy/JHpBeKr7JexGVnR3ECrLe4Q3v3lNyIZaWgOt3OW7r6iAFsro/OWjbs8WLKvuNPJt57cDOjTZ/UWjTxIeh/wxh0AJ5KXvzF1bytxMCx/f3e/cE9d4JZCcjgw/dWwIIZG9TS8cUBBCIgiIx9pYAAtnb1NIxBQEEoqBIjL0lgED2NrV0TEHgP1VLsH2X3+jEAAAAAElFTkSuQmCC",vE="",xy={name:"msgList",components:{TopPopup:Ke},props:{visible:{type:Boolean,default:!1},request:{default:null},useInfo:{type:Object,default:()=>{}}},data(){return{listData:[],visibleListMsg:!1,opinion:{},textTips:"",statusTips:!1,typeTips:""}},computed:{Del(){return Iy}},watch:{visible:{handler(e,t){e&&this.request.get("/auth/user/opinion/my").then(i=>{i.code===200&&(this.listData=i.data)})}}},methods:{handleMsg(e){this.$emit("handleMsg",e.opinionName)},handleOpenMsg(e){this.opinion=e,this.visibleListMsg=!0},handleTipsCancel(){this.visibleListMsg=!1},async handleDel(){this.opinion.opinionId&&(this.visibleListMsg=!1,this.$emit("handleTips","",!0,"loading"),await this.request.get(`/auth/user/opinion/del/${this.opinion.opinionId}`).then(e=>{e.code===200?(this.$emit("handleTips","\u5220\u9664\u6210\u529F",!0,"success"),this.request.get("/auth/user/opinion/my").then(t=>{t.code===200&&(this.listData=t.data)})):this.$emit("handleTips",e.msg,!0,"error")}).catch(e=>{this.$emit("handleTips",e.msg,!0,"error")}))}}},Sy={key:0,class:"top-msg"},Dy=["onClick"],Py={class:"top-msg-items-text"},My=["onClick"],Vy=["src"];function Oy(e,t,i,s,r,o){const a=n.resolveComponent("TopPopup");return n.openBlock(),n.createElementBlock("div",null,[i.visible?(n.openBlock(),n.createElementBlock("div",Sy,[(n.openBlock(!0),n.createElementBlock(n.Fragment,null,n.renderList(r.listData,l=>(n.openBlock(),n.createElementBlock("div",{class:"top-msg-items",onClick:c=>o.handleMsg(l)},[n.createElementVNode("div",Py,n.toDisplayString(l.opinionName),1),n.createElementVNode("div",{class:"top-msg-items-del",onClick:n.withModifiers(c=>o.handleOpenMsg(l),["stop"])},[n.createElementVNode("img",{src:o.Del},null,8,Vy)],8,My)],8,Dy))),256))])):n.createCommentVNode("",!0),n.createVNode(a,{isIndex:2299,titleText:"\u64CD\u4F5C\u6D88\u606F\u63D0\u793A",isTips:!0,context:`\u5C06\u5E38\u7528\u610F\u89C1'${r.opinion.opinionName}'\u5220\u9664`,cancel:o.handleTipsCancel,comfig:o.handleDel,visible:r.visibleListMsg,"onUpdate:visible":t[0]||(t[0]=l=>r.visibleListMsg=l)},null,8,["context","cancel","comfig","visible"])])}const Ki=pe(xy,[["render",Oy],["__scopeId","data-v-87fc3e49"]]),RE="",vy={name:"counterSign",props:{param:{type:Object,defalut:()=>{}}},components:{TopTips:st,attchViews:ti,TopPopup:Ke,departPerson:Tt.departPerson,MsgList:Ki},data(){return{commentMsg:"",style:{color:"#333",disableColor:"#F7F6F6"},textTips:"",statusTips:!1,typeTips:"success",limit:"",requires:"",labels:"",otherList:"",attchLists:[],nextNodeData:[],taskNode:[],outGatewayUserTaskModel:[],formData:{},visible:!1,entity:{source:"0",type:this.param.isCheckType||"0",orgType:this.param.isOrgType||"0",request:this.param.request,codeType:this.param.isCodeType||[3],multiple:!0,checkedArray:[]},multiNodeParticipant:{},partObjId:[],partNode:{},actionName:"",visibleListMsg:!1,visibleMsgComfig:!1}},watch:{param:{handler(e,t){this.nextNodeData=e.nextNodeData,this.taskNode=e.taskNode,this.outGatewayUserTaskModel=e.outGatewayUserTaskModel,this.actionName=e.actionName,e.nextNodeData.length?this.nextNodeData[0].type=="userTask"||this.nextNodeData[0].type=="UserTaskModel"?(this.entity.multiple=!0,this.entity.codeType=this.param.isCodeType||[3],this.entity.source="1",this.entity.checkedArray=[],this.entity.type=this.param.isCheckType||"0",this.entity.orgType=this.param.isOrgType||[0]):this.nextNodeData[0].type=="ExclusiveGatewayModel"||this.nextNodeData[0].type=="InclusiveGatewayModel":e.outGatewayUserTaskModel.length&&(e.outGatewayUserTaskModel[0].type=="userTask"?(this.entity.multiple=!0,this.entity.codeType=this.param.isCodeType||[3],this.entity.source="1",this.entity.checkedArray=[],this.entity.type=this.param.isCheckType||"0",this.entity.orgType=this.param.isOrgType||[0]):e.outGatewayUserTaskModel[0].type=="ExclusiveGatewayModel"||e.outGatewayUserTaskModel[0].type=="InclusiveGatewayModel"||e.outGatewayUserTaskModel[0].type=="UserTaskModel"&&(this.entity.multiple=!0,this.entity.codeType=this.param.isCodeType||[3],this.entity.checkedArray=[],this.entity.source="1",this.entity.type=this.param.isCheckType||"0",this.entity.orgType=this.param.isOrgType||[0]))},immediate:!0,deep:!0}},created(){this.makeDelegateTaskButtonAnnex()},methods:{handleMakeMsg(){this.commentMsg==""&&!this.commentMsg.length?(this.handleTips("\u8BF7\u8F93\u5165\u5BA1\u6279\u610F\u89C1!",!1,"success"),this.visibleMsgComfig=!1):this.visibleMsgComfig=!0},handleOpenMsg(){this.visibleListMsg=!0},handleTipsCancel(){this.visibleMsgComfig=!1},handleTipsComfig(){this.handleTips("",!0,"loading"),this.visibleMsgComfig=!1,this.param.request.post("/auth//user/opinion/save",{opinionName:this.commentMsg}).then(e=>{e.code===200?this.handleTips("\u8BBE\u7F6E\u6210\u529F!",!0,"success"):this.handleTips(e.msg,!0,"error")}).catch(e=>{this.handleTips(e.msg,!0,"error")})},handleMsg(e){this.commentMsg=e,this.visibleListMsg=!1},handleOpenPopup(e){this.visible=!0,this.partObjId=e},confirm(){if(!this.commentMsg)return this.textTips="\u8BF7\u8F93\u5165\u52A0\u7B7E\u7406\u7531!",this.$refs.topTips.handleOpen(),!1;let e="";this.multiNodeParticipant[this.partObjId].map((t,i)=>{i==0?e=t:e=`${e},${t}`}),this.handleTips("",!0,"loading"),this.param.request.post("/bladex/blade-workflow/tis/addMultiInstance",{assignee:e,taskId:this.param.taskInstId,comment:this.commentMsg}).then(t=>{t.code==200?(this.$emit("handleClosePopup1"),this.handleTips("\u63D0\u4EA4\u6210\u529F!",!1,"success"),window.top.postMessage("success","*"),this.handleFinal(),this.commentMsg=""):this.handleTips(t.msg,!0,"error")})},makeDelegateTaskButtonAnnex(){if(this.param.annex&&this.param.annex.length){this.otherList=this.param.annex;let e=this.otherList.split(";");this.limit=e[2],this.requires=JSON.parse(e[1]),this.labels=e[0]}},handleCallback(e){this.visible=!1,this.multiNodeParticipant[this.partObjId]=[],this.partNode[this.partObjId]=[],e.map((t,i)=>{this.multiNodeParticipant[this.partObjId].push(t.id),this.partNode[this.partObjId].push(t.name),this.entity.checkedArray.push({type:3,id:t.id,subjectId:t.subjectId})})},handleCancel(){},getValues(e){this.attchLists=e},async uploadAttch(){if(this.attchLists.length>0){this.attchLists.map((i,s)=>{i.size=i.fileSize,i.format=i.originFileName.substring(i.originFileName.lastIndexOf(".")+1),i.uploadTime=i.createTime,i.processInstId=this.param.processInstId,i.taskInstId=this.param.taskInstId,i.name=i.originFileName});let e=this.attchLists;(await this.param.request.post("/aws/meta/annex/patchSave",{saveMetaAnnexCmdList:e})).success?(this.$emit("handleClosePopup1"),this.handleTips("\u63D0\u4EA4\u6210\u529F!",!1,"success"),this.handleFinal(),this.commentMsg=""):this.handleTips("\u4E0A\u4F20\u5931\u8D25",!0,"error")}},isOption(e){return e=="\u4EFB\u610F\u6307\u5B9A"||e=="\u56FA\u5B9A\u90E8\u95E8"||e=="\u56FA\u5B9A\u5355\u4F4D"||e=="\u4E0E\u6D41\u7A0B\u7533\u8BF7\u4EBA\u6240\u5728\u7EC4\u7EC7\u7ED3\u6784\u7684\u4F4D\u7F6E\u76F8\u5173"||e=="\u56FA\u5B9A\u7FA4\u7EC4"},handleTips(e,t,i){this.textTips=e,this.statusTips=t,this.typeTips=i,this.$refs.topTips.handleOpen()},handleFinal(){this.param.endFunction&&this.param.endFunction("counterSign")}}},Ry={class:"process-popup-content"},Ly={class:"process-popup-content-msg"},Fy={key:0},Qy={class:"process-pc-value"},Uy={class:"process-popup-textarea"},jy={class:"process-popup-textarea-num"},_y={key:0,class:"msg-btn"},Gy={key:0,class:"process-popup-content-person"},qy=["onClick"],Jy={class:"process-pc-value--people"},Hy={key:0,class:"process-pc-value--data"},Ky={key:1,class:"process-pc-value--data",style:{color:"#888"}},zy=["onClick"],Wy={class:"process-pc-value--people"},Yy={key:0,class:"process-pc-value--data"},Zy={key:1,class:"process-pc-value--data",style:{color:"#888"}},Xy={style:{height:"100%"}};function $y(e,t,i,s,r,o){const a=n.resolveComponent("TopTips"),l=n.resolveComponent("departPerson"),c=n.resolveComponent("TopPopup"),f=n.resolveComponent("attchViews"),h=n.resolveComponent("MsgList");return n.openBlock(),n.createElementBlock("div",Ry,[n.createElementVNode("div",Ly,[i.param.isMsg?(n.openBlock(),n.createElementBlock("div",Fy,[n.createElementVNode("div",{class:"process-radio-item",onClick:t[0]||(t[0]=u=>o.handleOpenMsg()),style:{color:"#1389ff","font-size":"14px"}}," \u5E38\u7528\u610F\u89C1 ")])):n.createCommentVNode("",!0),t[6]||(t[6]=n.createElementVNode("div",{class:"process-pc-label"},[n.createTextVNode(" \u52A0\u7B7E\u7406\u7531\uFF1A"),n.createElementVNode("span",{class:"process-pc-label--re"},"*")],-1)),n.createElementVNode("div",Qy,[n.createElementVNode("div",Uy,[n.withDirectives(n.createElementVNode("textarea",{"onUpdate:modelValue":t[1]||(t[1]=u=>r.commentMsg=u),class:"textarea-item",name:"description",cols:"40",placeholder:"\u8BF7\u8F93\u5165\u5BA1\u6279\u610F\u89C1(200\u5B57\u4EE5\u5185)",maxlength:"200",onkeyup:"this.value=this.value.replace(/[\\uD800-\\uDFFF]/g,'')"},null,512),[[n.vModelText,r.commentMsg]]),n.createElementVNode("div",jy,n.toDisplayString(r.commentMsg.length)+"/200 ",1)]),i.param.isMsg?(n.openBlock(),n.createElementBlock("div",_y,[n.createElementVNode("span",{class:"msg-btn-click",onClick:t[2]||(t[2]=u=>o.handleMakeMsg())},"\u8BBE\u7F6E\u4E3A\u5E38\u7528\u610F\u89C1")])):n.createCommentVNode("",!0)])]),(n.openBlock(),n.createElementBlock("div",Gy,[r.nextNodeData.length?(n.openBlock(!0),n.createElementBlock(n.Fragment,{key:0},n.renderList(r.nextNodeData,u=>(n.openBlock(),n.createElementBlock(n.Fragment,null,[t[8]||(t[8]=n.createElementVNode("div",null,[n.createElementVNode("br"),n.createTextVNode(" \u5BA1\u6279\u4EBA "),n.createElementVNode("span",{class:"process-pc-label--re"},"*")],-1)),n.createElementVNode("div",{class:"process-pc-value",onClick:g=>o.handleOpenPopup(u.id)},[n.createElementVNode("div",Jy,[r.partNode[u.id]&&r.partNode[u.id].length?(n.openBlock(),n.createElementBlock("div",Hy,[(n.openBlock(!0),n.createElementBlock(n.Fragment,null,n.renderList(r.partNode[u.id],(g,E)=>(n.openBlock(),n.createElementBlock("span",null,n.toDisplayString(E==0?g:`,${g}`),1))),256))])):(n.openBlock(),n.createElementBlock("div",Ky,t[7]||(t[7]=[n.createElementVNode("span",null," \u8BF7\u9009\u62E9\u5BA1\u6279\u4EBA ",-1)])))])],8,qy)],64))),256)):r.outGatewayUserTaskModel.length?(n.openBlock(!0),n.createElementBlock(n.Fragment,{key:1},n.renderList(r.outGatewayUserTaskModel,u=>(n.openBlock(),n.createElementBlock(n.Fragment,null,[t[10]||(t[10]=n.createElementVNode("div",{class:"process-pc-label"},[n.createElementVNode("br"),n.createTextVNode(" \u5BA1\u6279\u4EBA "),n.createElementVNode("span",{class:"process-pc-label--re"},"*")],-1)),n.createElementVNode("div",{class:"process-pc-value",onClick:g=>o.handleOpenPopup(u.id)},[n.createElementVNode("div",Wy,[r.partNode[u.id]&&r.partNode[u.id].length?(n.openBlock(),n.createElementBlock("div",Yy,[(n.openBlock(!0),n.createElementBlock(n.Fragment,null,n.renderList(r.partNode[u.id],(g,E)=>(n.openBlock(),n.createElementBlock("span",null,n.toDisplayString(E==0?g:`,${g}`),1))),256))])):(n.openBlock(),n.createElementBlock("div",Zy,t[9]||(t[9]=[n.createElementVNode("span",null," \u8BF7\u9009\u62E9\u5BA1\u6279\u4EBA ",-1)])))])],8,zy)],64))),256)):n.createCommentVNode("",!0)])),n.createVNode(a,{ref:"topTips",text:r.textTips,statusTips:r.statusTips,type:r.typeTips},null,8,["text","statusTips","type"]),n.createVNode(c,{visible:r.visible,"onUpdate:visible":t[3]||(t[3]=u=>r.visible=u),ref:"TopPopup",titleText:"\u9009\u4EBA",isDrawer:!0},{default:n.withCtx(()=>[n.createElementVNode("div",Xy,[r.visible?(n.openBlock(),n.createBlock(l,n.mergeProps({key:0,isTitle:!1,visible:r.visible,request:i.param.request},r.entity,{onCallback:o.handleCallback,onCancel:o.handleCancel}),null,16,["visible","request","onCallback","onCancel"])):n.createCommentVNode("",!0)])]),_:1},8,["visible"]),r.labels=="5"?(n.openBlock(),n.createBlock(f,{key:1,limit:r.limit?r.limit:-1,requires:r.requires,request:i.param.request,linkUrl:i.param.linkUrl,onGetValue:o.getValues},null,8,["limit","requires","request","linkUrl","onGetValue"])):n.createCommentVNode("",!0),n.createVNode(c,{visible:r.visibleListMsg,"onUpdate:visible":t[4]||(t[4]=u=>r.visibleListMsg=u),ref:"TopPopup",titleText:"\u5E38\u7528\u610F\u89C1",isDrawer:!0},{default:n.withCtx(()=>[n.createVNode(h,{visible:r.visibleListMsg,request:i.param.request,useInfo:i.param.userInfo,onHandleTips:o.handleTips,onHandleMsg:o.handleMsg},null,8,["visible","request","useInfo","onHandleTips","onHandleMsg"])]),_:1},8,["visible"]),n.createVNode(c,{titleText:"\u64CD\u4F5C\u6D88\u606F\u63D0\u793A",isTips:!0,context:`\u5C06${r.commentMsg}\u8BBE\u7F6E\u4E3A\u5E38\u7528\u610F\u89C1`,cancel:o.handleTipsCancel,comfig:o.handleTipsComfig,visible:r.visibleMsgComfig,"onUpdate:visible":t[5]||(t[5]=u=>r.visibleMsgComfig=u)},null,8,["context","cancel","comfig","visible"])])}const eA=pe(vy,[["render",$y],["__scopeId","data-v-4f3fd96c"]]),LE="",tA={name:"delegateTask",props:{param:{type:Object,defalut:()=>{}}},components:{TopTips:st,attchViews:ti,TopPopup:Ke,departPerson:Tt.departPerson,MsgList:Ki},data(){return{commentMsg:"",style:{color:"#333",disableColor:"#F7F6F6"},textTips:"",statusTips:!1,typeTips:"success",limit:"",requires:"",labels:"",otherList:"",attchLists:[],nextNodeData:[],taskNode:[],outGatewayUserTaskModel:[],formData:{},visible:!1,entity:{source:"0",type:this.param.isCheckType||"0",orgType:this.param.isOrgType||[0],request:this.param.request,codeType:this.param.isCodeType||[3],multiple:!0,maxMultiple:1,checkedArray:[]},multiNodeParticipant:{},partNodeArr:{},partObjId:[],partNode:{},actionName:"",visibleListMsg:!1,visibleMsgComfig:!1}},watch:{param:{handler(e,t){this.nextNodeData=e.nextNodeData,this.taskNode=e.taskNode,this.outGatewayUserTaskModel=e.outGatewayUserTaskModel,this.actionName=e.actionName,this.attachShow(),e.nextNodeData.length?this.nextNodeData[0].type=="userTask"||this.nextNodeData[0].type=="UserTaskModel"?(this.entity.multiple=!0,this.entity.codeType=this.param.isCodeType||[3],this.entity.source="1",this.entity.checkedArray=[],this.entity.type=this.param.isCheckType||"0",this.entity.orgType=this.param.isOrgType||[0]):this.nextNodeData[0].type=="ExclusiveGatewayModel"||this.nextNodeData[0].type=="InclusiveGatewayModel":e.outGatewayUserTaskModel.length&&(e.outGatewayUserTaskModel[0].type=="userTask"?(this.entity.multiple=!0,this.entity.codeType=this.param.isCodeType||[3],this.entity.source="1",this.entity.checkedArray=[],this.entity.type=this.param.isCheckType||"0",this.entity.orgType=this.param.isOrgType||[0]):e.outGatewayUserTaskModel[0].type=="ExclusiveGatewayModel"||e.outGatewayUserTaskModel[0].type=="InclusiveGatewayModel"||e.outGatewayUserTaskModel[0].type=="UserTaskModel"&&(this.entity.multiple=!0,this.entity.codeType=this.param.isCodeType||[3],this.entity.source="1",this.entity.checkedArray=[],this.entity.type=this.param.isCheckType||"0",this.entity.orgType=this.param.isOrgType||[0]))},immediate:!0,deep:!0}},created(){},methods:{handleMakeMsg(){this.commentMsg==""&&!this.commentMsg.length?(this.handleTips("\u8BF7\u8F93\u5165\u5BA1\u6279\u610F\u89C1!",!1,"success"),this.visibleMsgComfig=!1):this.visibleMsgComfig=!0},handleOpenMsg(){this.visibleListMsg=!0},handleTipsCancel(){this.visibleMsgComfig=!1},handleTipsComfig(){this.handleTips("",!0,"loading"),this.visibleMsgComfig=!1,this.param.request.post("/auth//user/opinion/save",{opinionName:this.commentMsg}).then(e=>{e.code===200?this.handleTips("\u8BBE\u7F6E\u6210\u529F!",!0,"success"):this.handleTips(e.msg,!0,"error")}).catch(e=>{this.handleTips(e.msg,!0,"error")})},handleMsg(e){this.commentMsg=e,this.visibleListMsg=!1},handleOpenPopup(e){this.visible=!0,this.partObjId=e},async confirm(){if(!this.commentMsg){this.textTips="\u8BF7\u8F93\u5165\u8F6C\u5BA1\u7406\u7531!",this.$refs.topTips.handleOpen();return}let e=this.partNodeArr[this.partObjId].map(t=>t.id).join(",");this.handleTips("",!0,"loading"),await this.param.request.post("/bladex/blade-workflow/tis/transferTask",{comment:this.commentMsg,taskId:this.param.taskInstId,assignee:e}).then(t=>{t.code==200?(this.$emit("handleClosePopup1"),this.handleTips("\u63D0\u4EA4\u6210\u529F!",!1,"success"),window.top.postMessage("success","*"),this.handleFinal(),this.commentMsg=""):this.handleTips(t.msg,!0,"error")})},attachShow(e="\u529E\u7406"){const t=(this.param||{}).extendedProperties||[];let i=!1,s,r="";s=t.find(a=>a.name=="delegateTaskButtonAnnex"),r=s?s.value:"",r&&(i=!0);let o="";if(typeof r!="string"&&r!=null&&r.map(a=>{a.indexOf(this.operationLabel)!=-1&&(i=!0,o=a)}),o&&(r=o),i){const a=r.split(":");this.attachRule.required=a[1]=="true",this.attachRule.limit=a[2]==-1?999:a[2],this.otherList=r;let l=this.otherList.split(":");this.limit=l[2],this.requires=JSON.parse(l[1]),this.labels=l[0]}return console.log(i,"sign",this.labels,this.limit),i},makeDelegateTaskButtonAnnex(){if(this.param.annex&&this.param.annex.length){this.otherList=this.param.annex;let e=this.otherList.split(";");this.limit=e[2],this.requires=JSON.parse(e[1]),this.labels=e[0]}},handleCallback(e){this.visible=!1,this.multiNodeParticipant[this.partObjId]=[],this.partNodeArr[this.partObjId]=[],this.partNode[this.partObjId]=[],e.map((t,i)=>{this.multiNodeParticipant[this.partObjId].push(t.id),this.partNodeArr[this.partObjId].push(t),this.partNode[this.partObjId].push(t.name),this.entity.checkedArray.push({type:3,id:t.id,subjectId:t.subjectId})})},handleCancel(){},getValues(e){this.attchLists=e},async uploadAttch(){if(this.attchLists.length>0){this.attchLists.map((i,s)=>{i.size=i.fileSize,i.format=i.originFileName.substring(i.originFileName.lastIndexOf(".")+1),i.uploadTime=i.createTime,i.processInstId=this.param.processInstId,i.taskInstId=this.param.taskInstId,i.name=i.originFileName});let e=this.attchLists;(await this.param.request.post("/aws/meta/annex/patchSave",{saveMetaAnnexCmdList:e})).success?(this.$emit("handleClosePopup1"),this.handleTips("\u63D0\u4EA4\u6210\u529F!",!1,"success"),this.handleFinal(),this.commentMsg=""):this.handleTips("\u4E0A\u4F20\u5931\u8D25",!0,"error")}},isOption(e){return e=="\u4EFB\u610F\u6307\u5B9A"||e=="\u56FA\u5B9A\u90E8\u95E8"||e=="\u56FA\u5B9A\u5355\u4F4D"||e=="\u4E0E\u6D41\u7A0B\u7533\u8BF7\u4EBA\u6240\u5728\u7EC4\u7EC7\u7ED3\u6784\u7684\u4F4D\u7F6E\u76F8\u5173"||e=="\u56FA\u5B9A\u7FA4\u7EC4"},handleTips(e,t,i){this.textTips=e,this.statusTips=t,this.typeTips=i,this.$refs.topTips.handleOpen()},handleFinal(){this.param.endFunction&&this.param.endFunction("delegateTask")}}},iA={class:"process-popup-content"},nA={class:"process-popup-content-msg"},sA={key:0},rA={class:"process-pc-value"},oA={class:"process-popup-textarea"},aA={class:"process-popup-textarea-num"},lA={key:0,class:"msg-btn"},cA={key:0,class:"process-popup-content-person"},pA=["onClick"],dA={class:"process-pc-value--people"},hA={key:0,class:"process-pc-value--data"},uA={key:1,class:"process-pc-value--data",style:{color:"#888"}},fA=["onClick"],mA={class:"process-pc-value--people"},gA={key:0,class:"process-pc-value--data"},yA={key:1,class:"process-pc-value--data",style:{color:"#888"}},AA={style:{height:"100%"}};function kA(e,t,i,s,r,o){const a=n.resolveComponent("TopTips"),l=n.resolveComponent("departPerson"),c=n.resolveComponent("TopPopup"),f=n.resolveComponent("attchViews"),h=n.resolveComponent("MsgList");return n.openBlock(),n.createElementBlock("div",iA,[n.createElementVNode("div",nA,[i.param.isMsg?(n.openBlock(),n.createElementBlock("div",sA,[n.createElementVNode("div",{class:"process-radio-item",onClick:t[0]||(t[0]=u=>o.handleOpenMsg()),style:{color:"#1389ff","font-size":"14px"}}," \u5E38\u7528\u610F\u89C1 ")])):n.createCommentVNode("",!0),t[6]||(t[6]=n.createElementVNode("div",{class:"process-pc-label"},[n.createTextVNode(" \u8F6C\u5BA1\u7406\u7531\uFF1A"),n.createElementVNode("span",{class:"process-pc-label--re"},"*")],-1)),n.createElementVNode("div",rA,[n.createElementVNode("div",oA,[n.withDirectives(n.createElementVNode("textarea",{"onUpdate:modelValue":t[1]||(t[1]=u=>r.commentMsg=u),class:"textarea-item",name:"description",cols:"40",placeholder:"\u8BF7\u8F93\u5165\u5BA1\u6279\u610F\u89C1(200\u5B57\u4EE5\u5185)",maxlength:"200",onkeyup:"this.value=this.value.replace(/[\\uD800-\\uDFFF]/g,'')"},null,512),[[n.vModelText,r.commentMsg]]),n.createElementVNode("div",aA,n.toDisplayString(r.commentMsg.length)+"/200 ",1)]),i.param.isMsg?(n.openBlock(),n.createElementBlock("div",lA,[n.createElementVNode("span",{class:"msg-btn-click",onClick:t[2]||(t[2]=u=>o.handleMakeMsg())},"\u8BBE\u7F6E\u4E3A\u5E38\u7528\u610F\u89C1")])):n.createCommentVNode("",!0)])]),(n.openBlock(),n.createElementBlock("div",cA,[r.nextNodeData.length?(n.openBlock(!0),n.createElementBlock(n.Fragment,{key:0},n.renderList(r.nextNodeData,u=>(n.openBlock(),n.createElementBlock(n.Fragment,null,[t[8]||(t[8]=n.createElementVNode("div",null,[n.createTextVNode(" \u5BA1\u6279\u4EBA "),n.createElementVNode("span",{class:"process-pc-label--re"},"*")],-1)),n.createElementVNode("div",{class:"process-pc-value",onClick:g=>o.handleOpenPopup(u.id)},[n.createElementVNode("div",dA,[r.partNode[u.id]&&r.partNode[u.id].length?(n.openBlock(),n.createElementBlock("div",hA,[(n.openBlock(!0),n.createElementBlock(n.Fragment,null,n.renderList(r.partNode[u.id],(g,E)=>(n.openBlock(),n.createElementBlock("span",null,n.toDisplayString(E==0?g:`,${g}`),1))),256))])):(n.openBlock(),n.createElementBlock("div",uA,t[7]||(t[7]=[n.createElementVNode("span",null," \u8BF7\u9009\u62E9\u5BA1\u6279\u4EBA ",-1)])))])],8,pA)],64))),256)):r.outGatewayUserTaskModel.length?(n.openBlock(!0),n.createElementBlock(n.Fragment,{key:1},n.renderList(r.outGatewayUserTaskModel,u=>(n.openBlock(),n.createElementBlock(n.Fragment,null,[t[10]||(t[10]=n.createElementVNode("div",{class:"process-pc-label"},[n.createTextVNode(" \u5BA1\u6279\u4EBA "),n.createElementVNode("span",{class:"process-pc-label--re"},"*")],-1)),n.createElementVNode("div",{class:"process-pc-value",onClick:g=>o.handleOpenPopup(u.id)},[n.createElementVNode("div",mA,[r.partNode[u.id]&&r.partNode[u.id].length?(n.openBlock(),n.createElementBlock("div",gA,[(n.openBlock(!0),n.createElementBlock(n.Fragment,null,n.renderList(r.partNode[u.id],(g,E)=>(n.openBlock(),n.createElementBlock("span",null,n.toDisplayString(E==0?g:`,${g}`),1))),256))])):(n.openBlock(),n.createElementBlock("div",yA,t[9]||(t[9]=[n.createElementVNode("span",null," \u8BF7\u9009\u62E9\u5BA1\u6279\u4EBA ",-1)])))])],8,fA)],64))),256)):n.createCommentVNode("",!0)])),n.createVNode(a,{ref:"topTips",text:r.textTips,statusTips:r.statusTips,type:r.typeTips},null,8,["text","statusTips","type"]),n.createVNode(c,{visible:r.visible,"onUpdate:visible":t[3]||(t[3]=u=>r.visible=u),ref:"TopPopup",titleText:"\u9009\u4EBA",isDrawer:!0},{default:n.withCtx(()=>[n.createElementVNode("div",AA,[r.visible?(n.openBlock(),n.createBlock(l,n.mergeProps({key:0,isTitle:!1,visible:r.visible,request:i.param.request},r.entity,{onCallback:o.handleCallback,onCancel:o.handleCancel}),null,16,["visible","request","onCallback","onCancel"])):n.createCommentVNode("",!0)])]),_:1},8,["visible"]),r.labels=="1"?(n.openBlock(),n.createBlock(f,{key:1,limit:r.limit?r.limit:-1,requires:r.requires,request:i.param.request,linkUrl:i.param.linkUrl,onGetValue:o.getValues},null,8,["limit","requires","request","linkUrl","onGetValue"])):n.createCommentVNode("",!0),n.createVNode(c,{visible:r.visibleListMsg,"onUpdate:visible":t[4]||(t[4]=u=>r.visibleListMsg=u),ref:"TopPopup",titleText:"\u5E38\u7528\u610F\u89C1",isDrawer:!0},{default:n.withCtx(()=>[n.createVNode(h,{visible:r.visibleListMsg,request:i.param.request,useInfo:i.param.userInfo,onHandleTips:o.handleTips,onHandleMsg:o.handleMsg},null,8,["visible","request","useInfo","onHandleTips","onHandleMsg"])]),_:1},8,["visible"]),n.createVNode(c,{titleText:"\u64CD\u4F5C\u6D88\u606F\u63D0\u793A",isTips:!0,context:`\u5C06${r.commentMsg}\u8BBE\u7F6E\u4E3A\u5E38\u7528\u610F\u89C1`,cancel:o.handleTipsCancel,comfig:o.handleTipsComfig,visible:r.visibleMsgComfig,"onUpdate:visible":t[5]||(t[5]=u=>r.visibleMsgComfig=u)},null,8,["context","cancel","comfig","visible"])])}const EA=pe(tA,[["render",kA],["__scopeId","data-v-73a21e66"]]),bA="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAMgAAADICAYAAACtWK6eAAAAAXNSR0IArs4c6QAACZ5JREFUeF7tne1xG0cMhkE2EqeS2JXY6iLRZMb2jEdJF3YqiVNJ5EbMzIlhRDIiecAt9uPeh3+9wC5e4BEWx7O0MT4ogAIXFdigDQqgwGUFAITqQIErCgAI5YECAEINoEBMATpITDesRBQAEJFEE2ZMAQCJ6YaViAIAIpJowowpACAx3bASUQBARBJNmDEFACSmG1YiCgCISKIJM6YAgMR0w0pEAQARSTRhxhQAkJhuWIkoACAiiSbMmAIAEtMNKxEFAEQk0YQZUwBAYrphJaIAgIgkmjBjCgBITDesRBQAEJFEE2ZMAQCJ6YaViAIAIpJowowpACAx3bASUQBARBJNmDEFACSmG1YiCgCISKIJM6YAgMR0w0pEAQARSTRhxhQAkJhuWIkoACAiiSbMmAIAEtMNKxEFAEQk0YQZUwBAYrphJaIAgIgkmjBjCgBITDesRBQAEJFEE2ZMAQCJ6YaViAIAIpJowowpACAx3bASUQBARBJNmDEFACSmG1YiCgCISKKHDfPn3Svb2tt/z//NtvZonzZfa8UDILWUZh+fAs9gfDgzfDSzL/aw+ehzGFsNIDHdsMpUYA/Hn2b26so2j/aw+THzGJNvAMlWGP8+BX7dvbbvT3DM+aR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v7yFB8JBQDkUpr3HeW1mf1gZt9sa4+AIcHESZAAopdzInYoACAOsViqpwCA6OWciB0KAIhDLJbqKQAgejknYocCAOIQi6V6CgCIXs6J2KEAgDjEYqmeAgCil3MidigAIA6xWKqnAIDo5ZyIHQoAiEMsluopACB6OSdihwIA4hCLpXoKAIhezonYoQCAOMRiqZ4CAKKXcyJ2KAAgDrFYqqcAgOjlnIgdCgCIQyyW6ikAIHo5J2KHAgDiEIulegoAiF7OidihAIA4xGKpngIAopdzInYoACAOsViqpwCA6OWciB0KAIhDLJbqKQAgejknYocCAOIQi6V6CgCIXs6J2KEAgDjEYqmeAgCil3MidigAIA6xWKqnAIDo5ZyIHQoAiEMsluopACB6OSdihwIA4hCLpXoKAIhezonYoQCAOMRiqZ4CAKKXcyJ2KAAgDrFYqqcAgOjlnIgdCgCIQyyW6inwD771qeduEnFsAAAAAElFTkSuQmCC",FE="",QE="",CA={name:"TreeNode",components:{TopPopup:Ke,TopTips:st,departPerson:Tt.departPerson},props:{items:{type:Array,default:()=>[]},endNode:{type:Boolean,default:!1},nodeType:{type:String,default:"outing"},param:{type:Object,default:()=>{}},checkType:{type:String,default:""}},data(){return{nodeItems:[],visible:!1,checkBoxArr:[],checkBoxItem:[],radioArr:"",radioItem:[],partObjId:"",entity:{source:"0",type:this.param.isCheckType||"0",orgType:this.param.isOrgType||[0],request:this.param.request,codeType:this.param.isCodeType||[3],multiple:!0},multiNodeParticipant:{},partNode:{},partNodeArr:{},textTips:"",statusTips:!1,typeTips:"success",gateVars:{},onMultiNodeData:{},onVarsData:{},personMake:[],personMakeList:{}}},watch:{items:{handler(e,t){e&&e.length&&(this.multiNodeParticipant={},this.partNode={},this.partNodeArr={},this.gateVars={},this.nodeItems=JSON.parse(JSON.stringify(e)),console.log("\u8FDB\u6765\u4E86",this.nodeItems),this.nodeItems.map(i=>{if(console.log("v",i,Array.isArray(i.assignees),i.assignees),i.userTaskModelDTO||(i.userTaskModelDTO={name:i.name,humanPerformer:{name:i.humanPerformerName},routeTxt:i.routeTxt,participantList:i.participantList}),Array.isArray(i.assignees)&&i.assignees.length&&(this.multiNodeParticipant[i.id]||(this.multiNodeParticipant[i.id]=[]),this.partNodeArr[i.id]||(this.partNodeArr[i.id]=[]),i.assignees.forEach(s=>{console.log(this.partNodeArr,this.multiNodeParticipant,s,"\u6D4B\u8BD5");const r=this.partNodeArr[i.id].find(a=>a.name==s.name),o=this.multiNodeParticipant[i.id].find(a=>a==s.id);r||this.partNodeArr[i.id].push(s),o||(this.multiNodeParticipant[i.id].push(s.id),console.log("\u8FDB\u6765\u6765\u7740\u4E86"))})),i.userTaskModelDTO&&i.userTaskModelDTO.participantList&&i.userTaskModelDTO.participantList.length&&i.userTaskModelDTO.humanPerformer&&i.userTaskModelDTO.participantList.map(s=>{this.multiNodeParticipant[i.id]||(this.multiNodeParticipant[i.id]=[]),this.partNode[i.id]||(this.partNode[i.id]=[]),this.partNodeArr[i.id]||(this.partNodeArr[i.id]=[]),this.multiNodeParticipant[i.id].includes(s.id)||this.multiNodeParticipant[i.id].push(s.id),this.partNode[i.id].includes(s.name)||this.partNode[i.id].push(s.name),this.partNodeArr[i.id].find(r=>r.name==s.name)||this.partNodeArr[i.id].push(s)}),(i.userTaskModelDTO.humanPerformer.name=="\u56FA\u5B9A\u8D26\u6237"||i.userTaskModelDTO.humanPerformer.name=="\u4E0E\u6D41\u7A0B\u7533\u8BF7\u4EBA\u76F8\u5173")&&this.personMake.push(i.id),i.userTaskModelDTO.humanPerformer.name=="\u56FA\u5B9A\u89D2\u8272/\u5C97\u4F4D"){let s={taskDefId:i.id,postIds:[]};i.userTaskModelDTO.routeTxt.postList.map(r=>{s.postIds.push(r.postId)}),console.error("1"),this.param.request.post("/auth/post/getTaskAuditor",{deptId:this.param.taskNode&&this.param.taskNode[0].vars?this.param.taskNode[0].vars._businessDeptId:"",taskPostIds:[s]}).then(r=>{let o=[],a=[],l=!1;r.data.map(f=>{f.posts.map(h=>{a.push(...h.users),h.users.length==1?o.push(...h.users):l=!0})}),o.length>i.loopCardinality&&i.loopCardinality>0&&(l=!0),l&&(o=[]);let c=[];r.data[0].posts.map(f=>{c.push({...f,projectPost:!(this.param.taskNode&&this.param.taskNode[0].vars&&this.param.taskNode[0].vars._businessDeptId),id:f.users.map(h=>h.id)})}),a.length==0&&(i.noPersonnel=!0),o.length>0&&(i.noPersonnel=!0,this.partObjId=i.id,this.handleCallback(o)),i.positionArray=c})}this.personMake&&this.personMake.length&&this.param.request.post(`aws/repository/getParticipantsOfPerformerNames?taskInstId=${this.param.taskInstId}`,{userTaskDefIds:this.personMake}).then(s=>{s.code==200&&(this.personMakeList=s.data)})}),this.$emit("onMultiNode",this.multiNodeParticipant),this.$emit("onMultiNodeObj",this.partNodeArr),this.$emit("onVars",this.gateVars),this.checkType=="ExclusiveGatewayModel"&&e.length==1&&this.handleRadioClick(e[0]))},immediate:!0,deep:!0}},computed:{check(){return Ys}},mounted(){},methods:{clear(){this.radioArr="",this.radioItem=[],this.checkBoxArr=[],this.checkBoxItem=[],this.multiNodeParticipant={},this.partNode={},this.partNodeArr={},this.gateVars={}},isOption(e){return e=="\u4EFB\u610F\u6307\u5B9A"||e=="\u56FA\u5B9A\u90E8\u95E8"||e=="\u56FA\u5B9A\u5355\u4F4D"||e=="\u4E0E\u6D41\u7A0B\u7533\u8BF7\u4EBA\u6240\u5728\u7EC4\u7EC7\u7ED3\u6784\u7684\u4F4D\u7F6E\u76F8\u5173"||e=="\u56FA\u5B9A\u7FA4\u7EC4"||e=="\u56FA\u5B9A\u89D2\u8272/\u5C97\u4F4D"},handleCallback(e){this.visible=!1,this.multiNodeParticipant[this.partObjId]=[],this.partNode[this.partObjId]=[],this.partNodeArr[this.partObjId]=[],e.map((t,i)=>{this.multiNodeParticipant[this.partObjId].push(t.id),this.partNode[this.partObjId].push(t.name),this.partNodeArr[this.partObjId].push(t)}),this.onMultiNodeData&&(this.multiNodeParticipant={...this.multiNodeParticipant,...this.onMultiNodeData}),this.$emit("onMultiNode",this.multiNodeParticipant),this.$emit("onMultiNodeObj",this.partNodeArr)},handleRadioClick(e){e&&(this.multiNodeParticipant={},this.gateVars={},this.$emit("onMultiNode",this.multiNodeParticipant),this.$emit("onMultiNodeObj",this.partNodeArr),e.incomingConditionItemList.length>0&&e.incomingConditionItemList[0].itemName&&e.incomingConditionItemList[0].compareValue&&(this.gateVars[e.incomingConditionItemList[0].itemName]=e.incomingConditionItemList[0].compareValue),this.radioArr=e.id,this.radioItem=[e],this.handleNode(e),this.$emit("onVars",this.gateVars))},handleCheckBoxClick(e){e&&(this.checkBoxArr.includes(e.id)?(e.incomingConditionItemList.length>0&&e.incomingConditionItemList[0].itemName&&e.incomingConditionItemList[0].compareValue&&delete this.gateVars[e.incomingConditionItemList[0].itemName],delete this.multiNodeParticipant[e.id],this.checkBoxItem.splice(this.checkBoxArr.indexOf(e.id),1),this.checkBoxArr.splice(this.checkBoxArr.indexOf(e.id),1)):(e.incomingConditionItemList.length>0&&e.incomingConditionItemList[0].itemName&&e.incomingConditionItemList[0].compareValue&&(this.gateVars[e.incomingConditionItemList[0].itemName]=e.incomingConditionItemList[0].compareValue),this.checkBoxItem.push(e),this.checkBoxArr.push(e.id)),this.handleNode(e),this.$emit("onVars",this.gateVars))},handleNode(e){let t=e.childNode&&e.childNode.length?e.childNode:e&&e.length?e:[e];t&&t.length&&t.forEach((i,s)=>{i.participantList&&i.participantList.length?i.participantList.forEach((r,o)=>{this.multiNodeParticipant[i.id]||(this.multiNodeParticipant[i.id]=[]),this.partNode[i.id]||(this.partNode[i.id]=[]),this.partNodeArr[i.id]||(this.partNodeArr[i.id]=[]),this.multiNodeParticipant[i.id].includes(r.id)||this.multiNodeParticipant[i.id].push(r.id),this.partNode[i.id].includes(r.name)||this.partNode[i.id].push(r.name),this.partNodeArr[i.id].find(a=>a.name==r.name)||this.partNodeArr[i.id].push(r)}):i.id&&i.humanPerformerName=="\u56FA\u5B9A\u4EBA\u5458"&&(console.error("1"),this.param.request.post(`/aws/repository/getParticipantsOfPerformerNames?taskInstId=${this.param.taskInstId}`,{userTaskDefIds:[i.id]}).then(r=>{r.code==200&&(this.partNode[i.id]={},this.partNode[i.id]=r.data[i.id].split(";"))})),this.nodeType=="outing"&&(this.onVarsData&&(this.gateVars={...this.gateVars,...this.onVarsData}),this.$emit("onVars",this.gateVars))})},handleOpenPopup(e){if(this.visible=!0,this.partObjId=e.id,this.nodeType=="nexting"?e={...e,...e.userTaskModelDTO}:this.nodeType=="outing"?e={...e,humanPerformer:{name:e.humanPerformerName}}:this.handleTips("\u52A0\u8F7D\u5931\u8D25,\u8BF7\u5237\u65B0",!0,"error"),console.log(e,"itemsssssssss"),e.humanPerformer.name=="\u56FA\u5B9A\u5355\u4F4D"||e.humanPerformerName=="\u56FA\u5B9A\u5355\u4F4D"){let t,i=[];console.log(this.multiNodeParticipant,e,"multiNodeParticipant"),this.multiNodeParticipant[e.id]&&this.multiNodeParticipant[e.id].length&&this.partNodeArr[e.id].forEach((s,r)=>{i.push({type:3,id:s.id,subjectId:s.subjectId})}),console.error(this.param.request,"param"),this.entity={source:"1",type:this.param.isCheckType||"0",orgType:this.param.isOrgType||[0],request:this.param.request,codeType:this.param.isCodeType||[3],multiple:e.loopCardinality!=-1,maxMultiple:e.loopCardinality!=-1?100:1,subjectName:t,checkedArray:i}}else if(e.humanPerformer.name=="\u56FA\u5B9A\u90E8\u95E8"||e.humanPerformerName=="\u56FA\u5B9A\u90E8\u95E8"){let t,i=[],s=[];e.routeTxt.departmentIds.forEach((r,o)=>{e.routeTxt.departmentIds.length>1?i.push(r.rangeId):t=r.rangeId}),this.multiNodeParticipant[e.id]&&this.multiNodeParticipant[e.id].length&&this.partNodeArr[e.id].forEach((r,o)=>{s.push({type:3,id:r.id,deptId:t,subjectId:r.subjectId})}),e.routeTxt.departmentIds.length>1?this.entity={source:"1",type:this.param.isCheckType||"0",orgType:this.param.isOrgType||[0],request:this.param.request,codeType:this.param.isCodeType||[3],multiple:e.loopCardinality!=1,maxMultiple:e.loopCardinality>0?e.loopCardinality:0,deptCodeArray:i,checkedArray:s}:this.entity={source:"1",type:this.param.isCheckType||"0",orgType:this.param.isOrgType||[0],request:this.param.request,codeType:this.param.isCodeType||[3],multiple:e.loopCardinality!=1,maxMultiple:e.loopCardinality>0?e.loopCardinality:0,deptCode:t,checkedArray:s}}else if(e.humanPerformer.name=="\u56FA\u5B9A\u89D2\u8272/\u5C97\u4F4D"||e.humanPerformerName=="\u56FA\u5B9A\u89D2\u8272/\u5C97\u4F4D"){let t=[];this.multiNodeParticipant[e.id]&&this.multiNodeParticipant[e.id].length&&this.partNodeArr[e.id].forEach((i,s)=>{t.push({type:3,id:i.id,subjectId:i.subjectId})}),this.entity={source:"1",type:this.param.isCheckType||"0",orgType:[5],request:this.param.request,codeType:[8],multiple:e.loopCardinality!=1,maxMultiple:e.loopCardinality>0?e.loopCardinality:0,positionArray:e.positionArray,checkedArray:t}}else{let t=[];this.multiNodeParticipant[e.id]&&this.multiNodeParticipant[e.id].length&&this.partNodeArr[e.id].forEach((i,s)=>{t.push({type:3,id:i.id,subjectId:i.subjectId})}),console.error(this.param.request,"par"),this.entity={source:"1",type:this.param.isCheckType||"0",orgType:this.param.isOrgType||[0],request:this.param.request,codeType:this.param.isCodeType||[3],multiple:e.loopCardinality!=-1,maxMultiple:e.loopCardinality!=-1?100:1,checkedArray:t}}},handleTips(e,t,i){this.textTips=e,this.statusTips=t,this.typeTips=i,this.$refs.topTips.handleOpen()},onMultiNode(e){e&&(this.onMultiNodeData=e,this.multiNode={...this.multiNode,...this.onMultiNodeData},this.$emit("onMultiNode",this.multiNode),this.$emit("onMultiNodeObj",this.partNodeArr))},onVars(e){e&&(this.onVarsData=e,this.getVars={...this.gateVars,...this.onVarsData},this.$emit("onVars",this.getVars))}}},wA={key:0,class:"treenode"},TA={key:0,class:"treenode-multi"},NA={class:"treenode-node",style:{"margin-top":"0"}},BA=["onClick"],IA=["src"],xA=["onClick"],SA={class:"treenode-node"},DA={key:0},PA={key:1,class:"personselect"},MA={class:"personselect-name"},VA={class:"items-person"},OA=["onClick"],vA={key:1,class:"items-person-name"},RA={key:2,class:"items-person-name"},LA={class:"treenode-node"},FA={key:0},QA={key:1,class:"personselect"},UA={class:"personselect-name"},jA={class:"items-person"},_A=["onClick"],GA={key:1,class:"items-person-name"},qA={key:2,class:"items-person-name"},JA={key:1,class:"treenode-single"},HA={class:"treenode-single-items"},KA={class:"personselect"},zA={class:"personselect-name"},WA={key:0,class:"items-person"},YA=["onClick"],ZA={key:1,class:"items-person-name"},XA={class:"items-person-name"},$A={key:0};function ek(e,t,i,s,r,o){const a=n.resolveComponent("TreeNode",!0),l=n.resolveComponent("departPerson"),c=n.resolveComponent("TopPopup"),f=n.resolveComponent("TopTips");return r.nodeItems&&r.nodeItems.length?(n.openBlock(),n.createElementBlock("div",wA,[i.endNode?n.createCommentVNode("",!0):(n.openBlock(),n.createElementBlock("div",TA,[n.createElementVNode("div",NA,[(n.openBlock(!0),n.createElementBlock(n.Fragment,null,n.renderList(r.nodeItems,h=>(n.openBlock(),n.createElementBlock(n.Fragment,null,[i.checkType=="InclusiveGatewayModel"&&r.nodeItems.length>1?(n.openBlock(),n.createElementBlock("div",{key:0,class:n.normalizeClass(["treenode-checkbox",r.checkBoxArr.includes(h.id)?"treenode-checkbox-active":""]),onClick:u=>o.handleCheckBoxClick(h)},[n.createElementVNode("span",null,[r.checkBoxArr.includes(h.id)?(n.openBlock(),n.createElementBlock("img",{key:0,class:"treenode-checkbox-active-img",src:o.check},null,8,IA)):n.createCommentVNode("",!0)]),n.createTextVNode(" "+n.toDisplayString(h.nodeName||h.name),1)],10,BA)):i.checkType=="ExclusiveGatewayModel"&&r.nodeItems.length>1?(n.openBlock(),n.createElementBlock("div",{key:1,class:n.normalizeClass(["treenode-radio",r.radioArr==h.id?"treenode-radio-active":""]),onClick:u=>o.handleRadioClick(h)},[t[1]||(t[1]=n.createElementVNode("span",null,null,-1)),n.createTextVNode(" "+n.toDisplayString(h.nodeName||h.name),1)],10,xA)):n.createCommentVNode("",!0)],64))),256))]),i.checkType=="InclusiveGatewayModel"&&r.checkBoxItem&&r.checkBoxItem.length?(n.openBlock(!0),n.createElementBlock(n.Fragment,{key:0},n.renderList(r.checkBoxItem,h=>(n.openBlock(),n.createElementBlock("div",SA,[h.childNode&&h.childNode.length?(n.openBlock(),n.createElementBlock("div",DA,[n.createVNode(a,{items:h.childNode,endNode:h.childNode.length==1,nodeType:i.nodeType,param:i.param,checkType:h.type,onOnMultiNode:o.onMultiNode,onOnVars:o.onVars},null,8,["items","endNode","nodeType","param","checkType","onOnMultiNode","onOnVars"])])):(n.openBlock(),n.createElementBlock("div",PA,[n.createElementVNode("div",MA,n.toDisplayString(h.name||h.nodeName),1),n.createElementVNode("div",VA,[h.humanPerformerName!=="\u56FA\u5B9A\u8D26\u6237"&&h.humanPerformerName!=="\u4E0E\u6D41\u7A0B\u7533\u8BF7\u4EBA\u76F8\u5173"?(n.openBlock(),n.createElementBlock("div",{key:0,class:"items-person-set",onClick:n.withModifiers(u=>o.handleOpenPopup(h),["stop"])}," \u8BBE\u7F6E ",8,OA)):n.createCommentVNode("",!0),h.humanPerformerName!=="\u56FA\u5B9A\u8D26\u6237"&&h.humanPerformerName!=="\u4E0E\u6D41\u7A0B\u7533\u8BF7\u4EBA\u76F8\u5173"?(n.openBlock(),n.createElementBlock("div",vA,n.toDisplayString(r.partNode[h.id]?r.partNode[h.id].join(","):""),1)):h.routeTxt&&h.routeTxt.userNames?(n.openBlock(),n.createElementBlock("div",RA,n.toDisplayString(h.routeTxt.userNames),1)):n.createCommentVNode("",!0)])]))]))),256)):n.createCommentVNode("",!0),i.checkType=="ExclusiveGatewayModel"&&r.radioItem&&r.radioItem.length?(n.openBlock(!0),n.createElementBlock(n.Fragment,{key:1},n.renderList(r.radioItem,h=>(n.openBlock(),n.createElementBlock("div",LA,[h.childNode&&h.childNode.length?(n.openBlock(),n.createElementBlock("div",FA,[n.createVNode(a,{items:h.childNode,endNode:h.childNode.length==1,nodeType:i.nodeType,param:i.param,checkType:h.type,onOnMultiNode:o.onMultiNode,onOnVars:o.onVars},null,8,["items","endNode","nodeType","param","checkType","onOnMultiNode","onOnVars"])])):(n.openBlock(),n.createElementBlock("div",QA,[n.createElementVNode("div",UA,n.toDisplayString(h.name||h.nodeName),1),n.createElementVNode("div",jA,[h.humanPerformerName!=="\u56FA\u5B9A\u8D26\u6237"&&h.humanPerformerName!=="\u4E0E\u6D41\u7A0B\u7533\u8BF7\u4EBA\u76F8\u5173"?(n.openBlock(),n.createElementBlock("div",{key:0,class:"items-person-set",onClick:n.withModifiers(u=>o.handleOpenPopup(h),["stop"])}," \u8BBE\u7F6E ",8,_A)):n.createCommentVNode("",!0),h.humanPerformerName!=="\u56FA\u5B9A\u8D26\u6237"&&h.humanPerformerName!=="\u4E0E\u6D41\u7A0B\u7533\u8BF7\u4EBA\u76F8\u5173"?(n.openBlock(),n.createElementBlock("div",GA,n.toDisplayString(r.partNode[h.id]?r.partNode[h.id].join(","):""),1)):h.routeTxt&&h.routeTxt.userNames?(n.openBlock(),n.createElementBlock("div",qA,n.toDisplayString(h.routeTxt.userNames),1)):n.createCommentVNode("",!0)])]))]))),256)):n.createCommentVNode("",!0)])),i.endNode?(n.openBlock(),n.createElementBlock("div",JA,[(n.openBlock(!0),n.createElementBlock(n.Fragment,null,n.renderList(r.nodeItems,h=>(n.openBlock(),n.createElementBlock("div",HA,[n.createElementVNode("div",KA,[n.createElementVNode("div",zA,n.toDisplayString(h.name||h.nodeName),1),h.nodeType!=="endEvent"?(n.openBlock(),n.createElementBlock("div",WA,[h.setPersonnel?(n.openBlock(),n.createElementBlock("div",ZA,n.toDisplayString((h.assignees||[]).map(u=>u.name).join(",")),1)):(n.openBlock(),n.createElementBlock("div",{key:0,class:"items-person-set",onClick:n.withModifiers(u=>o.handleOpenPopup(h),["stop"])}," \u8BBE\u7F6E ",8,YA)),n.createElementVNode("div",XA,[!r.partNode[h.id]&&h.humanPerformerName=="\u56FA\u5B9A\u89D2\u8272/\u5C97\u4F4D"&&h.noPersonnel?(n.openBlock(),n.createElementBlock("div",$A," \u6CA1\u6709\u53EF\u9009\u4EBA\u5458\uFF0C\u8BF7\u68C0\u67E5\u914D\u7F6E ")):n.createCommentVNode("",!0),n.createTextVNode(" "+n.toDisplayString(r.partNode[h.id]?r.partNode[h.id].join(","):""),1)])])):n.createCommentVNode("",!0)])]))),256))])):n.createCommentVNode("",!0),n.createVNode(c,{visible:r.visible,"onUpdate:visible":t[0]||(t[0]=h=>r.visible=h),ref:"TopPopup",titleText:"\u9009\u4EBA",isDrawer:!0},{default:n.withCtx(()=>[r.visible?(n.openBlock(),n.createBlock(l,n.mergeProps({key:0,isTitle:!1},r.entity,{onCallback:o.handleCallback}),null,16,["onCallback"])):n.createCommentVNode("",!0)]),_:1},8,["visible"]),n.createVNode(f,{ref:"topTips",text:r.textTips,statusTips:r.statusTips,type:r.typeTips},null,8,["text","statusTips","type"])])):n.createCommentVNode("",!0)}const tk=pe(CA,[["render",ek],["__scopeId","data-v-b232903c"]]),UE="",ik={name:"tree-person",components:{TreeNode:tk},props:{items:{type:Array,default:()=>[]},nodeType:{type:String,default:"outing"},param:{type:Object,default:()=>{}}},data(){return{nodeItems:[],visible:!1,partObjId:"",partNode:[],firstCheck:"",firstCheckItem:{},firstType:"",firstMultiCheck:[],firstMultiCheckItem:[],firstMultiType:[],childrenItems:[],childrenEndItems:!1,gateVars:{},multiNode:{},partNodeArr:{},getVars:{}}},watch:{items:{handler(e,t){e&&e.length&&(console.log(e,"ceshi\u6570\u636E\u53D8\u5316"),this.nodeType=="nexting"?(this.nodeItems=[],this.childrenEndItems=!0,e.forEach(i=>{i={...i,...i.userTaskModelDTO},console.log("\u6253\u5370\u5F53\u524D\u5904\u7406\u540E\u6570\u636E",i),this.nodeItems.push(i)})):this.nodeType=="outing"&&(this.nodeItems=e),this.nodeItems.length==1&&this.nodeItems[0].type=="ExclusiveGatewayModel"&&this.nodeItems[0].childNode&&this.nodeItems[0].childNode.length==1&&this.handleFirstNodeClick(this.nodeItems[0]),console.log("nodeItems ===",this.nodeItems))},immediate:!0,deep:!0}},methods:{filterMultiItems(e=[]){return console.log(e,this.firstMultiCheck,"originItems"),e.filter(t=>this.firstMultiCheck.includes(t.nodeInfoDTO?t.nodeInfoDTO.id:t.id))},onMultiNode(e){console.log(e,"onMultiNode"),Object.prototype.toString.call(e)=="[object Object]"&&(Object.prototype.toString.call(this.multiNode)=="[object Object]"?Object.keys(e).forEach(t=>{e[t]||(e[t]=[""]),e[t]&&e[t].length>1?this.multiNode[t]=e[t].filter(i=>i):this.multiNode[t]=e[t]}):this.multiNode=e),console.error(JSON.parse(JSON.stringify(e)),"onMultiNode \u8282\u70B9\u4FEE\u6539",JSON.parse(JSON.stringify(this.multiNode))),this.$emit("onMultiNode",this.multiNode)},onMultiNodeObj(e){this.partNodeArr=e,this.$emit("onMultiNodeObj",this.partNodeArr)},onVars(e){e?this.getVars={...this.gateVars,...e}:this.getVars={...this.gateVars},this.$emit("onVars",this.getVars)},isOption(e){return e=="\u4EFB\u610F\u6307\u5B9A"||e=="\u56FA\u5B9A\u90E8\u95E8"||e=="\u56FA\u5B9A\u5355\u4F4D"||e=="\u4E0E\u6D41\u7A0B\u7533\u8BF7\u4EBA\u6240\u5728\u7EC4\u7EC7\u7ED3\u6784\u7684\u4F4D\u7F6E\u76F8\u5173"||e=="\u56FA\u5B9A\u7FA4\u7EC4"||e=="\u56FA\u5B9A\u89D2\u8272/\u5C97\u4F4D"},handleMultiFirstNodeClick(e,t=[]){let i=e;if(console.error(i,"\u70B9\u51FB\u8282\u70B9"),i&&i.nodeInfoDTO&&(i=i.nodeInfoDTO),this.firstMultiCheck.includes(i.id)){this.firstMultiCheck=this.firstMultiCheck.filter(s=>s!=i.id),this.firstMultiCheckItem=this.firstMultiCheckItem.filter(s=>s.id!=i.id),this.firstMultiType=this.firstMultiType.filter(s=>s!=i.nodeType),delete this.param.selChildrenItems[i.id];return}if(i){this.firstMultiCheck.push(i.id),this.firstMultiCheckItem.push(i),this.firstMultiType.push(i.nodeType);let s=[i];i.branches&&i.branches.length?(this.childrenItems=i.branches,this.childrenEndItems=!1):(this.childrenItems=[i],this.childrenEndItems=!0),console.error("\u4FEE\u6539\u503C",this.param.selChildrenItems,t),t.forEach(r=>{delete this.param.selChildrenItems[r.id],this.param.selChildrenItems[i.id]=(this.childrenItems||[]).map(o=>o.nodeInfoDTO||o)}),this.gateVars={},s.forEach(r=>{(!this.param||!this.param.vars)&&(this.param.vars={}),this.param.vars[r.incomingConditionItemList[0].itemName]=r.incomingConditionItemList[0].compareValue,this.gateVars[r.incomingConditionItemList[0].itemName]=r.incomingConditionItemList[0].compareValue})}},handleFirstNodeClick(e,t=[]){let i=e;if(console.error(i,"\u70B9\u51FB\u8282\u70B9",t),i&&i.nodeInfoDTO&&(i=i.nodeInfoDTO),i){this.firstCheck=i.id,this.firstCheckItem=i,this.firstType=i.nodeType;let s=[i];i.branches&&i.branches.length?(this.childrenItems=i.branches,this.childrenEndItems=!1):(this.childrenItems=[i],this.childrenEndItems=!0),console.error("\u4FEE\u6539\u503C2",this.param.selChildrenItems,t),t.forEach(r=>{const o=this.param.selChildrenItems[r.nodeInfoDTO?r.nodeInfoDTO.id:r.id];Array.isArray(o)&&o.forEach(a=>{delete this.param.selChildrenItems[a.id]}),delete this.param.selChildrenItems[r.nodeInfoDTO?r.nodeInfoDTO.id:r.id],this.param.selChildrenItems[i.id]=(this.childrenItems||[]).map(a=>a.nodeInfoDTO||a)}),this.gateVars={},s.forEach(r=>{(!this.param||!this.param.vars)&&(this.param.vars={}),this.param.vars[r.incomingConditionItemList[0].itemName]=r.incomingConditionItemList[0].compareValue,this.gateVars[r.incomingConditionItemList[0].itemName]=r.incomingConditionItemList[0].compareValue})}}}},nk={class:"test"},sk={key:0},rk={key:0,class:"treeperson-firstnode"},ok=["onClick"],ak={key:1,class:"treeperson-firstnode"},lk={key:2,class:"treeperson-firstnode"},ck=["onClick"],pk={key:3,class:"treeperson-firstnode"},dk=["onClick"],hk={key:0,class:"treeperson-firstnode"},uk={class:"treeperson-checkbox-box"},fk=["onClick"],mk={key:0,class:"treeperson-firstnode"},gk=["onClick"],yk=["onClick"];function Ak(e,t,i,s,r,o){const a=n.resolveComponent("TreePerson",!0),l=n.resolveComponent("TreeNode");return n.openBlock(),n.createElementBlock("div",nk,[r.nodeItems&&r.nodeItems.length?(n.openBlock(),n.createElementBlock("div",sk,[(n.openBlock(!0),n.createElementBlock(n.Fragment,null,n.renderList(r.nodeItems,(c,f)=>(n.openBlock(),n.createElementBlock("div",{class:"treeperson",key:f},[c.branches&&c.branches.length?(n.openBlock(),n.createElementBlock(n.Fragment,{key:0},[i.nodeType=="nexting"&&c.nodeType!="inclusiveGateway"?(n.openBlock(),n.createElementBlock(n.Fragment,{key:0},[c.nodeType=="exclusiveGateway"&&c.branches.length>1?(n.openBlock(),n.createElementBlock("div",rk,[t[1]||(t[1]=n.createElementVNode("div",{class:"treeperson-title"},[n.createTextVNode(" \u4E0B\u4E00\u6B65\u5BA1\u6279\u8282\u70B9 "),n.createElementVNode("span",{class:"treeperson-title--re"},"*")],-1)),(n.openBlock(!0),n.createElementBlock(n.Fragment,null,n.renderList(c.branches,(h,u)=>(n.openBlock(),n.createElementBlock("div",{class:n.normalizeClass(["treeperson-radio",r.firstCheck==(h.nodeInfoDTO?h.nodeInfoDTO.id:h.id)?"treeperson-radio-active":""]),onClick:g=>o.handleFirstNodeClick(h,c.branches),key:u},[t[0]||(t[0]=n.createElementVNode("span",null,null,-1)),n.createTextVNode(" "+n.toDisplayString(h.id.includes("Flow")?h.nodeName||h.name:h.nodeInfoDTO?h.nodeInfoDTO.nodeName||h.nodeInfoDTO.name||h.nodeName||h.name:h.nodeName||h.name),1)],10,ok))),128))])):c.nodeType=="exclusiveGateway"&&c.branches.length==1?(n.openBlock(),n.createElementBlock("div",ak,[(n.openBlock(!0),n.createElementBlock(n.Fragment,null,n.renderList(c.branches,(h,u)=>(n.openBlock(),n.createElementBlock("div",null,[t[2]||(t[2]=n.createElementVNode("span",null,null,-1)),n.createVNode(a,{ref_for:!0,ref:"TreePersonRef",items:h.branches&&h.branches.length>0?h.branches:[h],nodeType:"nexting",param:i.param,onOnMultiNode:o.onMultiNode,onOnMultiNodeObj:o.onMultiNodeObj},null,8,["items","param","onOnMultiNode","onOnMultiNodeObj"])]))),256))])):c.nodeType=="inclusiveGateway"&&c.branches.length>=1?(n.openBlock(),n.createElementBlock("div",lk,[t[4]||(t[4]=n.createElementVNode("div",{class:"treeperson-title"},[n.createTextVNode(" \u4E0B\u4E00\u6B65\u5BA1\u6279\u8282\u70B9 "),n.createElementVNode("span",{class:"treeperson-title--re"},"*")],-1)),(n.openBlock(!0),n.createElementBlock(n.Fragment,null,n.renderList(c.branches,(h,u)=>(n.openBlock(),n.createElementBlock("div",{class:n.normalizeClass(["treeperson-radio",r.firstCheck==(h.nodeInfoDTO?h.nodeInfoDTO.id:h.id)?"treeperson-radio-active":""]),onClick:g=>o.handleMultiFirstNodeClick(h),key:u},[t[3]||(t[3]=n.createElementVNode("span",null,null,-1)),n.createTextVNode(" "+n.toDisplayString(h.nodeInfoDTO?h.nodeInfoDTO.nodeName||h.nodeInfoDTO.name:h.nodeName||h.name),1)],10,ck))),128))])):(n.openBlock(),n.createElementBlock("div",pk,[t[6]||(t[6]=n.createElementVNode("div",{class:"treeperson-title"},[n.createTextVNode(" \u4E0B\u4E00\u6B65\u5BA1\u6279\u8282\u70B9 "),n.createElementVNode("span",{class:"treeperson-title--re"},"*")],-1)),(n.openBlock(!0),n.createElementBlock(n.Fragment,null,n.renderList(c.branches,(h,u)=>(n.openBlock(),n.createElementBlock("div",{class:n.normalizeClass(["treeperson-radio",r.firstCheck==(h.nodeInfoDTO?h.nodeInfoDTO.id:h.id)?"treeperson-radio-active":""]),onClick:g=>o.handleFirstNodeClick(h,c.branches),key:u},[t[5]||(t[5]=n.createElementVNode("span",null,null,-1)),n.createTextVNode(" "+n.toDisplayString(h.nodeInfoDTO?h.nodeInfoDTO.nodeName||h.nodeInfoDTO.name:h.nodeName||h.name),1)],10,dk))),128))])),r.childrenItems&&r.childrenItems.length>0&&r.childrenItems[0].nodeInfoDTO&&r.childrenItems[0].nodeInfoDTO.nodeType!="userTask"?(n.openBlock(),n.createBlock(a,{key:r.firstCheck,ref_for:!0,ref:"TreePersonRef",items:[r.firstCheckItem],nodeType:"nexting",param:i.param,onOnMultiNode:o.onMultiNode,onOnMultiNodeObj:o.onMultiNodeObj},null,8,["items","param","onOnMultiNode","onOnMultiNodeObj"])):(n.openBlock(),n.createBlock(l,{key:5,items:r.childrenItems,endNode:r.childrenEndItems,nodeType:i.nodeType,param:i.param,checkType:r.firstType,onOnMultiNode:o.onMultiNode,onOnMultiNodeObj:o.onMultiNodeObj,onOnVars:o.onVars},null,8,["items","endNode","nodeType","param","checkType","onOnMultiNode","onOnMultiNodeObj","onOnVars"]))],64)):i.nodeType=="nexting"&&c.nodeType=="inclusiveGateway"?(n.openBlock(),n.createElementBlock(n.Fragment,{key:1},[c.nodeType=="inclusiveGateway"&&c.branches.length>=1?(n.openBlock(),n.createElementBlock("div",hk,[t[8]||(t[8]=n.createElementVNode("div",{class:"treeperson-title"},[n.createTextVNode(" \u4E0B\u4E00\u6B65\u5BA1\u6279\u8282\u70B9 "),n.createElementVNode("span",{class:"treeperson-title--re"},"*")],-1)),n.createElementVNode("div",uk,[(n.openBlock(!0),n.createElementBlock(n.Fragment,null,n.renderList(c.branches,(h,u)=>(n.openBlock(),n.createElementBlock("div",{class:n.normalizeClass(["treeperson-checkbox",r.firstMultiCheck.includes(h.nodeInfoDTO?h.nodeInfoDTO.id:h.id)?"treeperson-checkbox-active":""]),onClick:g=>o.handleMultiFirstNodeClick(h,c.branches),key:u},[t[7]||(t[7]=n.createElementVNode("span",null,null,-1)),n.createTextVNode(" "+n.toDisplayString(h.nodeInfoDTO?h.nodeInfoDTO.nodeName||h.nodeInfoDTO.name:h.nodeName||h.name),1)],10,fk))),128))])])):n.createCommentVNode("",!0),(n.openBlock(!0),n.createElementBlock(n.Fragment,null,n.renderList(o.filterMultiItems(c.branches),h=>(n.openBlock(),n.createBlock(l,{items:h.branches&&h.branches.length>0?h.branches:[h.nodeInfoDTO?h.nodeInfoDTO:h],endNode:!0,nodeType:i.nodeType,param:i.param,checkType:r.firstType,onOnMultiNode:o.onMultiNode,onOnMultiNodeObj:o.onMultiNodeObj,onOnVars:o.onVars},null,8,["items","nodeType","param","checkType","onOnMultiNode","onOnMultiNodeObj","onOnVars"]))),256))],64)):n.createCommentVNode("",!0)],64)):c.nodeType=="exclusiveGateway"&&c.branches&&c.branches.length>1?(n.openBlock(),n.createElementBlock(n.Fragment,{key:1},[t[10]||(t[10]=n.createElementVNode("div",{class:"treeperson-title"},[n.createTextVNode(" \u4E0B\u4E00\u6B65\u5BA1\u6279\u8282\u70B9 "),n.createElementVNode("span",{class:"treeperson-title--re"},"*")],-1)),c.type=="ExclusiveGatewayModel"&&c.branches.length==1?n.createCommentVNode("",!0):(n.openBlock(),n.createElementBlock("div",mk,[(n.openBlock(!0),n.createElementBlock(n.Fragment,null,n.renderList(c.branches,(h,u)=>(n.openBlock(),n.createElementBlock("div",{class:n.normalizeClass(["treeperson-checkbox",r.firstCheck==h.id?"treeperson-checkbox-active":""]),onClick:g=>o.handleFirstNodeClick(h,c.branches),key:u},[t[9]||(t[9]=n.createElementVNode("span",null,null,-1)),n.createTextVNode(" "+n.toDisplayString(h.nodeName||h.name),1)],10,gk))),128))])),n.createVNode(l,{items:r.childrenItems,endNode:r.childrenEndItems,nodeType:i.nodeType,param:i.param,checkType:r.firstType,onOnMultiNode:o.onMultiNode,onOnMultiNodeObj:o.onMultiNodeObj,onOnVars:o.onVars},null,8,["items","endNode","nodeType","param","checkType","onOnMultiNode","onOnMultiNodeObj","onOnVars"])],64)):c.nodeType=="exclusiveGateway"&&c.branches&&c.branches.length==1?(n.openBlock(),n.createElementBlock(n.Fragment,{key:2},[t[11]||(t[11]=n.createElementVNode("div",{class:"treeperson-title"},[n.createTextVNode(" \u4E0B\u4E00\u6B65\u5BA1\u6279\u8282\u70B9 "),n.createElementVNode("span",{class:"treeperson-title--re"},"*")],-1)),i.nodeType=="nexting"?(n.openBlock(),n.createBlock(l,{key:0,items:[c.branches[0]],endNode:r.childrenEndItems,nodeType:i.nodeType,param:i.param,checkType:r.firstType,onOnMultiNode:o.onMultiNode,onOnMultiNodeObj:o.onMultiNodeObj,onOnVars:o.onVars},null,8,["items","endNode","nodeType","param","checkType","onOnMultiNode","onOnMultiNodeObj","onOnVars"])):(n.openBlock(),n.createBlock(l,{key:1,items:[c.branches[0]],endNode:!0,nodeType:"nexting",param:i.param,checkType:r.firstType,onOnMultiNode:o.onMultiNode,onOnMultiNodeObj:o.onMultiNodeObj,onOnVars:o.onVars},null,8,["items","param","checkType","onOnMultiNode","onOnMultiNodeObj","onOnVars"]))],64)):c.id||c.nodeInfoDTO&&c.nodeInfoDTO.id?(n.openBlock(),n.createElementBlock(n.Fragment,{key:3},[i.nodeType=="nexting"?(n.openBlock(),n.createElementBlock(n.Fragment,{key:0},[c.nodeInfoDTO&&c.nodeInfoDTO.nodeType=="exclusiveGateway"?(n.openBlock(),n.createElementBlock(n.Fragment,{key:0},[t[13]||(t[13]=n.createElementVNode("div",{class:"treeperson-title"},[n.createTextVNode(" \u4E0B\u4E00\u6B65\u5BA1\u6279\u8282\u70B9 "),n.createElementVNode("span",{class:"treeperson-title--re"},"*")],-1)),(n.openBlock(!0),n.createElementBlock(n.Fragment,null,n.renderList(c.nodeInfoDTO.branches,(h,u)=>(n.openBlock(),n.createElementBlock("div",{class:n.normalizeClass(["treeperson-radio",r.firstCheck==(h.nodeInfoDTO?h.nodeInfoDTO.id:h.id)?"treeperson-radio-active":""]),onClick:g=>o.handleFirstNodeClick(h,c.nodeInfoDTO.branches),key:u},[t[12]||(t[12]=n.createElementVNode("span",null,null,-1)),n.createTextVNode(" "+n.toDisplayString(h.nodeName||h.name),1)],10,yk))),128)),(n.openBlock(),n.createBlock(a,{key:r.firstCheck,ref_for:!0,ref:"TreePersonRef",items:[r.firstCheckItem],nodeType:"nexting",param:i.param,onOnMultiNode:o.onMultiNode,onOnMultiNodeObj:o.onMultiNodeObj},null,8,["items","param","onOnMultiNode","onOnMultiNodeObj"]))],64)):(n.openBlock(),n.createElementBlock(n.Fragment,{key:1},[t[14]||(t[14]=n.createElementVNode("div",{class:"treeperson-title"},[n.createTextVNode(" \u4E0B\u4E00\u6B65\u5BA1\u6279\u8282\u70B9 "),n.createElementVNode("span",{class:"treeperson-title--re"},"*")],-1)),n.createVNode(l,{items:[c.nodeInfoDTO?c.nodeInfoDTO:c],endNode:r.childrenEndItems,nodeType:i.nodeType,param:i.param,checkType:r.firstType,onOnMultiNode:o.onMultiNode,onOnMultiNodeObj:o.onMultiNodeObj,onOnVars:o.onVars},null,8,["items","endNode","nodeType","param","checkType","onOnMultiNode","onOnMultiNodeObj","onOnVars"])],64))],64)):(n.openBlock(),n.createBlock(l,{key:1,items:[c],endNode:!0,nodeType:"nexting",param:i.param,checkType:r.firstType,onOnMultiNode:o.onMultiNode,onOnMultiNodeObj:o.onMultiNodeObj,onOnVars:o.onVars},null,8,["items","param","checkType","onOnMultiNode","onOnMultiNodeObj","onOnVars"]))],64)):(n.openBlock(),n.createElementBlock(n.Fragment,{key:4},[],64))]))),128))])):n.createCommentVNode("",!0)])}const kk=pe(ik,[["render",Ak],["__scopeId","data-v-f892df8f"]]),jE="",Ek={data(){},props:{titleText:{default:"top-popup",type:String},context:{default:"\u5185\u5BB9",type:String},cancelText:{default:"\u53D6\u6D88",type:String},comfigText:{default:"\u786E\u5B9A",type:String},comfig:{default:null,type:Function},cancel:{default:null,type:Function},isMask:{default:!0,type:Boolean},isMaskClose:{default:!0,type:Boolean},isTips:{default:!1,type:Boolean},isDrawer:{default:!1,type:Boolean},visible:{default:!1,type:Boolean},isIndex:{type:Number},width:{type:String,default:"95vw"},className:{type:String,default:""},appendClass:{type:String,default:""}},data(){return{show:!1,top:0,useHidden:!1}},watch:{visible:{handler(e,t){if(e)this.show=e,document.body.style.position=="fixed"&&document.body.style.overflow=="hidden"?this.useHidden=!0:this.useHidden=!1,this.top=window.scrollY,document.body.style.position="fixed",document.body.style.top=`${-top}px`,document.body.style.overflow="hidden";else{if(this.useHidden){this.show=e,this.$emit("update:visible",!1);return}else document.body.style.position="",document.body.style.top="",document.body.style.overflow="visible",window.scrollTo(0,this.top);this.show=e,this.$emit("update:visible",!1)}},immediate:!0}},methods:{handleOpen(){this.show=!0,this.top=window.scrollY,document.body.style.position="fixed",document.body.style.top=-this.top+"px"},handleClose(){document.body.style.position="",document.body.style.top="",window.scrollTo(0,this.top),this.show=!1,this.$emit("update:visible",!1)},handleCancel(){typeof this.cancel=="function"&&this.cancel(),this.handleClose()},handleComfig(){typeof this.comfig=="function"&&this.comfig()},isIOS(){let e=navigator.userAgent.includes("iPhone"),t=navigator.userAgent.includes("iPad");return e||t}},mounted(){this.$nextTick(()=>{const e=document.getElementsByClassName("process-warp")[0]?document.getElementsByClassName("process-warp")[0]:document.getElementsByClassName("sumbmitPopup-index-sumbit")[0].getElementsByClassName("top-popup")[0];e.append?e.append(this.$el):e.appendChild(this.$el),document.documentElement.scrollTop||document.body.scrollTop})}},bk={class:"top-popup-header"},Ck={class:"header-title"},wk={class:"top-popup-body"},Tk={class:"top-popup-drawer--body"},Nk={class:"top-tips-header"},Bk={class:"top-tips-body"},Ik={class:"top-tips-footer"};function xk(e,t,i,s,r,o){return n.openBlock(),n.createElementBlock("div",{class:n.normalizeClass(["top-popup-zindex",i.className]),style:n.normalizeStyle(`${i.isIndex?`z-index:${i.isIndex}`:""}`)},[n.createElementVNode("div",{class:"top-popup-mask",style:n.normalizeStyle(r.show&&i.isMask?"visibility: visible; opacity: .7;":"visibility: hidden; opacity: 0;"),onClick:t[0]||(t[0]=a=>i.isMaskClose&&o.handleClose())},null,4),!i.isTips&&!i.isDrawer?(n.openBlock(),n.createElementBlock("div",{key:0,class:"top-popup",style:n.normalizeStyle(r.show?"transform: translateY(0)":"transform: translateY(150%)")},[n.createElementVNode("div",bk,[n.createElementVNode("div",{class:"header-cancel",onClick:t[1]||(t[1]=(...a)=>o.handleCancel&&o.handleCancel(...a))},n.toDisplayString(i.cancelText),1),n.createElementVNode("div",Ck,n.toDisplayString(i.titleText),1),n.createElementVNode("div",{class:"header-comfig",onClick:t[2]||(t[2]=(...a)=>o.handleComfig&&o.handleComfig(...a))},n.toDisplayString(i.comfigText),1)]),n.createElementVNode("div",wk,[n.renderSlot(e.$slots,"default",{},void 0,!0)])],4)):!i.isTips&&i.isDrawer?(n.openBlock(),n.createElementBlock("div",{key:1,class:n.normalizeClass(["top-popup-drawer",r.show?"top-popup-drawer--active":""]),style:n.normalizeStyle(i.width?`width:${i.width};`:"")},[n.createElementVNode("div",Tk,[n.renderSlot(e.$slots,"default",{},void 0,!0)])],6)):i.isTips&&!i.isDrawer?(n.openBlock(),n.createElementBlock("div",{key:2,class:"top-tips",style:n.normalizeStyle(r.show?"visibility: visible; opacity: 1; transform: scale(1)":"visibility: hidden; opacity: 0; transform: scale(1.2)")},[n.createElementVNode("div",Nk,n.toDisplayString(i.titleText),1),n.createElementVNode("div",Bk,n.toDisplayString(i.context),1),n.createElementVNode("div",Ik,[n.createElementVNode("div",{class:"top-tips-btn",onClick:t[3]||(t[3]=(...a)=>o.handleCancel&&o.handleCancel(...a))},n.toDisplayString(i.cancelText),1),n.createElementVNode("div",{class:"top-tips-btn",onClick:t[4]||(t[4]=(...a)=>o.handleComfig&&o.handleComfig(...a))},n.toDisplayString(i.comfigText),1)])],4)):n.createCommentVNode("",!0)],6)}const Va=pe(Ek,[["render",xk],["__scopeId","data-v-06a80662"]]),_E="",Sk={props:{request:{type:Function,default:()=>{}}},components:{signDrawer:Va},data(){return{ctx:null,signatureImage:"",actionHeight:0,historyHeight:0,isDrawing:!1,paths:[],currentPath:[],historyPics:[],savaClock:!1,confirmVisible:!1}},methods:{startDrawing(e){if(this.$refs.canvasRef.getContext){this.isDrawing=!0,this.currentPath=[];const t=this.$refs.canvasRef.getBoundingClientRect(),i=(e.touches[0].clientX-t.left)*(this.$refs.canvasRef.width/t.width)/window.devicePixelRatio,s=(e.touches[0].clientY-t.top)*(this.$refs.canvasRef.height/t.height)/window.devicePixelRatio;this.ctx.beginPath(),this.ctx.moveTo(i,s),this.currentPath.push({x:i,y:s})}else this.isDrawing=!0,this.currentPath=[],this.currentPath.push({x:e.touches[0].x,y:e.touches[0].y})},draw(e){if(!!this.isDrawing)if(this.$refs.canvasRef.getContext&&this.currentPath.length>0){const t=this.$refs.canvasRef.getBoundingClientRect(),i=(e.touches[0].clientX-t.left)*(this.$refs.canvasRef.width/t.width)/window.devicePixelRatio,s=(e.touches[0].clientY-t.top)*(this.$refs.canvasRef.height/t.height)/window.devicePixelRatio;this.ctx.lineWidth=3,this.ctx.lineCap="round",this.ctx.lineJoin="round",this.ctx.strokeStyle="#000000",this.ctx.imageSmoothingEnabled=!0,this.ctx.imageSmoothingQuality="high",this.$refs.canvasRef.style.imageRendering="auto",this.ctx.lineTo(i,s),this.ctx.stroke(),this.currentPath.push({x:i,y:s})}else this.currentPath.length>0&&(this.currentPath.push({x:e.touches[0].x,y:e.touches[0].y}),this.ctx.moveTo(this.currentPath[this.currentPath.length-2].x,this.currentPath[this.currentPath.length-2].y),this.ctx.lineTo(this.currentPath[this.currentPath.length-1].x,this.currentPath[this.currentPath.length-1].y),this.ctx.setLineWidth(3),this.ctx.lineCap="round",this.ctx.lineJoin="round",this.ctx.setStrokeStyle("#000"),this.ctx.stroke(),this.ctx.draw(!0))},undo(){if(this.$refs.canvasRef.getContext){this.paths.pop(),this.ctx.clearRect(0,0,this.$refs.canvasRef.width,this.$refs.canvasRef.height),this.ctx.fillStyle="#fff",this.ctx.fillRect(0,0,this.$refs.canvasRef.width,this.$refs.canvasRef.height);for(let e of this.paths)for(let t=0;t<e.length-1;t++){const{x:i,y:s}=e[t];t===0?(this.ctx.beginPath(),this.ctx.moveTo(i,s)):(this.ctx.lineTo(i,s),this.ctx.stroke())}}else if(this.paths.length>0){this.paths.pop(),this.ctx.clearRect(0,0,this.$refs.canvasRef.$el.offsetWidth,this.$refs.canvasRef.$el.offsetHeight),this.ctx.draw(!0);for(let e of this.paths)for(let t=0;t<e.length-1;t++)this.ctx.moveTo(e[t].x,e[t].y),this.ctx.lineTo(e[t+1].x,e[t+1].y),this.ctx.lineCap="round",this.ctx.lineJoin="round",this.ctx.setLineWidth(4),this.ctx.setStrokeStyle("#000"),this.ctx.stroke(),this.ctx.draw(!0);this.ctx.draw(!0)}this.currentPath=[]},finishDrawing(e){this.paths.push(this.currentPath),this.currentPath=[],this.isDrawing=!1},clearCanvas(){var e,t;(t=(e=this.$refs)==null?void 0:e.canvasRef)!=null&&t.getContext?(this.ctx.clearRect(0,0,this.$refs.canvasRef.width,this.$refs.canvasRef.height),this.ctx.fillStyle="#fff",this.ctx.fillRect(0,0,this.$refs.canvasRef.width,this.$refs.canvasRef.height),this.signatureImage="",this.paths=[]):(this.ctx.clearRect(0,0,this.$refs.canvasRef.$el.offsetWidth,this.$refs.canvasRef.$el.offsetHeight),this.ctx.draw(!0),this.signatureImage="",this.paths=[]),this.currentPath=[],this.$emit("saveSignature","",!1)},cancelSign(){this.clearCanvas(),this.$emit("close")},fixAccuracy(e,t){const i=new Blob([e],{type:"text/plain"}),o=new File([i],"text.txt").size/1024;if(o<=64){const a=document.getElementById("canvas-id");return this.getRotatedDataURL(a,-90,t)}else{if(o>300)return null;{let a,l;if(t<.005)return null;if(t-.05>0){a=t-.05;const c=document.getElementById("canvas-id");return l=this.getRotatedDataURL(c,-90,a),this.fixAccuracy(l,a)}else{a=t/2;const c=document.getElementById("canvas-id");return l=this.getRotatedDataURL(c,-90,a),this.fixAccuracy(l,a)}}}},confirmSave(){if(this.paths.length==0){this.$emit("validateFail","\u8BF7\u7B7E\u5B57!");return}this.confirmVisible=!0},saveSignature(){if(this.confirmVisible=!1,this.savaClock)return;this.savaClock=!0;let e=this;if(this.$refs.canvasRef.getContext){let t=.6;const i=document.getElementById("canvas-id");return this.getRotatedDataURL(i,-90,t),!0}else uni.canvasToTempFilePath({canvasId:"canvas-id",success(t){e.signatureImage=t.tempFilePath;let i=JSON.parse(localStorage.getItem("signaturesArr"))||[];i.unshift(this.signatureImage),this.$set(this,"historyPics",i.slice(0,3)),localStorage.setItem("signaturesArr",JSON.stringify(this.historyPics)),e.$emit("saveSignature",e.signatureImage)}},e)},isUniCanvas(){var e;return!((e=this.$refs.canvasRef)!=null&&e.getContext)},disableWeChatScroll(e){e.preventDefault()},useHistory(e){this.historyPics[e]&&this.$emit("saveSignature",this.historyPics[e],!0)},handleTips(e,t,i){this.textTips=e,this.statusTips=t,this.typeTips=i,this.$refs.topTips.handleOpen()},getRotatedDataURL(e,t,i){let s=e.width/window.devicePixelRatio,r=e.height/window.devicePixelRatio,o=t*Math.PI/180,a=Math.max(s*Math.abs(Math.cos(o)),r*Math.abs(Math.sin(o))),l=Math.max(s*Math.abs(Math.sin(o)),r*Math.abs(Math.cos(o)));const c=document.createElement("canvas"),f=c.getContext("2d");c.width=a,c.height=l,f.translate(a/2,l/2),f.rotate(o),f.drawImage(e,-s/2,-r/2,s,r),c.toBlob(h=>{this.uploadImage(h)},"image/png",.95)},async uploadImage(e,t){this.loading=!0;const i=new FormData;i.append("file",e,t||`signature-${Date.now()}.png`);const s=await this.request.post("/file/upload",i,{headers:{"Content-Type":"multipart/form-data"}});if(console.log(s),this.loading=!1,!s.success)return;let r=JSON.parse(localStorage.getItem("signaturesArr"))||[];r.unshift(s.data),this.historyPics=r.slice(0,3),localStorage.setItem("signaturesArr",JSON.stringify(this.historyPics)),this.$emit("saveSignature",s.data,!0)}},computed:{setDynamicVars(){return{"--action-height":`${this.historyHeight}px`}}},mounted(){var e;if(this.historyHeight=(e=document.querySelector(".history"))==null?void 0:e.offsetHeight,this.$refs.canvasRef.getContext){let t=document.querySelector(".canvas-container");if(t){let i=document.getElementById("canvas-id");const s=t.offsetWidth,r=t.offsetHeight-this.actionHeight-this.historyHeight;i.style.width=`${s}px`,i.style.height=`${r}px`,i.width=s*window.devicePixelRatio,i.height=r*window.devicePixelRatio,this.ctx=this.$refs.canvasRef.getContext("2d"),this.ctx.scale(window.devicePixelRatio,window.devicePixelRatio),this.ctx.fillStyle="#fff",this.ctx.fillRect(0,0,i.width,i.height)}}else{this.ctx=uni.createCanvasContext("canvas-id",this);const t=uni.getSystemInfoSync().pixelRatio;this.ctx.scale(t,t)}document.addEventListener("touchmove",this.disableWeChatScroll,{passive:!1}),localStorage.getItem("signaturesArr")?this.historyPics=JSON.parse(localStorage.getItem("signaturesArr")):this.historyPics=[]},beforeDestroy(){document.removeEventListener("touchmove",this.disableWeChatScroll)}},Dk={class:"canvas-container"},Pk={key:0,class:"tips"},Mk={class:"history"},Vk=["src"],Ok=["src"],vk=["src"],Rk={class:"actions-area"};function Lk(e,t,i,s,r,o){const a=n.resolveComponent("signDrawer");return n.openBlock(),n.createElementBlock("div",{class:"sign-container",style:n.normalizeStyle(o.setDynamicVars)},[n.createElementVNode("div",Dk,[r.paths.length==0&&r.currentPath.length==0?(n.openBlock(),n.createElementBlock("div",Pk,"\u8BF7\u5728\u6B64\u533A\u57DF\u7B7E\u5B57")):n.createCommentVNode("",!0),n.createElementVNode("canvas",{ref:"canvasRef",onTouchmove:t[0]||(t[0]=(...l)=>o.draw&&o.draw(...l)),onTouchstart:t[1]||(t[1]=(...l)=>o.startDrawing&&o.startDrawing(...l)),onTouchend:t[2]||(t[2]=(...l)=>o.finishDrawing&&o.finishDrawing(...l)),id:"canvas-id","canvas-id":"canvas-id",class:n.normalizeClass({"uni-canvas-style":o.isUniCanvas()})},null,34)]),n.createElementVNode("div",Mk,[n.createElementVNode("div",{class:"img-grid",onClick:t[3]||(t[3]=l=>o.useHistory(0))},[r.historyPics[0]?(n.openBlock(),n.createElementBlock("img",{key:0,src:r.historyPics[0]?r.historyPics[0].url:"",fit:"scale-down"},null,8,Vk)):n.createCommentVNode("",!0)]),n.createElementVNode("div",{class:"img-grid",onClick:t[4]||(t[4]=l=>o.useHistory(1))},[r.historyPics[1]&&r.historyPics[1].url?(n.openBlock(),n.createElementBlock("img",{key:0,src:r.historyPics[1].url,fit:"scale-down"},null,8,Ok)):n.createCommentVNode("",!0)]),n.createElementVNode("div",{class:"img-grid",onClick:t[5]||(t[5]=l=>o.useHistory(2)),style:{"margin-right":"10rpx"}},[r.historyPics[2]&&r.historyPics[2].url?(n.openBlock(),n.createElementBlock("img",{key:0,src:r.historyPics[2].url,fit:"scale-down"},null,8,vk)):n.createCommentVNode("",!0)])]),n.createElementVNode("div",Rk,[n.createElementVNode("button",{onClick:t[6]||(t[6]=(...l)=>o.confirmSave&&o.confirmSave(...l)),class:"btns-common cmf-btn"},"\u786E\u8BA4"),n.createElementVNode("button",{onClick:t[7]||(t[7]=(...l)=>o.cancelSign&&o.cancelSign(...l)),class:"btns-common"},"\u8FD4\u56DE"),n.createElementVNode("button",{onClick:t[8]||(t[8]=(...l)=>o.undo&&o.undo(...l)),class:"btns-common"},"\u64A4\u9500"),n.createElementVNode("button",{onClick:t[9]||(t[9]=(...l)=>o.clearCanvas&&o.clearCanvas(...l)),class:"btns-common"},"\u6E05\u7A7A")]),n.createVNode(a,{visible:r.confirmVisible,"onUpdate:visible":t[10]||(t[10]=l=>r.confirmVisible=l),ref:"TopPopupSign",titleText:"",isDrawer:!1,isTips:!0,context:"\u63D0\u4EA4\u4E4B\u540E\u5C06\u4E0D\u80FD\u518D\u4FEE\u6539,\u786E\u8BA4\u8981\u63D0\u4EA4\u7B7E\u540D\u5417?",comfig:o.saveSignature},null,8,["visible","comfig"])],4)}const Fk=pe(Sk,[["render",Lk],["__scopeId","data-v-d91bfd13"]]),GE="",Qk={name:"complete",props:{param:{type:Object,defalut:()=>{}}},components:{TopTips:st,attchViews:ti,TopPopup:Ke,departPerson:Tt.departPerson,MsgList:Ki,TreePerson:kk,TopSign:Fk,signDrawer:Va},computed:{check(){return Ys},checkS(){return bA},isSelectPerson(){if(this.pureTip=!1,console.log(this.nextNodeData,this.taskNode,this.multiNodeParticipant,this.$refs.TreePersonRef,"\u6D4B\u8BD5\u9009\u62E9\u5FC5\u586B",this.param),this.nextNodeData[0].nodeType!="endEvent"){let e=this.param.selChildrenItems||{};console.error(e,"selChildrenItemsObj");let t=[];if(Object.keys(e).filter(s=>s.startsWith("Activity")).forEach(s=>{t=t.concat(e[s])}),t.length==0&&Object.values(e).forEach(s=>{console.log(s,"ovitem"),Array.isArray(s)&&s.length>0&&s.forEach(r=>{(r.id||"").startsWith("Activity")&&(t=t.concat(r))})}),console.log(t,"selChildrenItems"),t.length>0){let s="";const r=t.every(o=>{console.log(o,"item");let a=this.multiNodeParticipant[o.id];a=(a||[]).filter(c=>c);const l=a&&a.length>0;return l||(s=o),console.log(l,"v"),l});return console.log(r,"hasV",s),r?!1:s.name}else if(this.nextNodeData[0].nodeType=="exclusiveGateway"&&this.nextNodeData[0].branches&&this.nextNodeData[0].branches.length==1){const s=this.findUserTaskNode(this.nextNodeData[0].branches[0]);let r=(this.multiNodeParticipant[s.id]||[]).filter(a=>a);const o=r&&r.length>0;return console.log(this.nextNodeData[0].branches[0],s,"nbnNode",o),o?!1:s.name}else if(this.nextNodeData[0].nodeType=="exclusiveGateway"&&this.nextNodeData[0].branches&&this.nextNodeData[0].branches.length>1){const s=this.$refs.TreePersonRef.childrenItems||null;if(s&&s.length>0){let r="";return s.every(a=>{const l=this.multiNodeParticipant[a.id]&&this.multiNodeParticipant[a.id].length>0;return l||(r=a),l})?!1:r.name}else return this.pureTip=!0,"\u8BF7\u9009\u62E9\u4E0B\u4E00\u6B65\u5BA1\u6279\u8282\u70B9"}}else return!1;if(this.nextNodeData.length==1&&this.nextNodeData[0].userTaskModelDTO&&this.taskNode&&this.taskNode.length>0&&this.taskNode[0].taskState!=4&&this.taskNode[0].taskState!=11){let e=this.nextNodeData[0].userTaskModelDTO.humanPerformer.name;if(e!="\u56FA\u5B9A\u8D26\u6237"&&e!="\u4E0E\u6D41\u7A0B\u7533\u8BF7\u4EBA\u76F8\u5173"&&JSON.stringify(this.multiNodeParticipant)=="{}")return this.nextNodeData[0].userTaskModelDTO.name}return!0},signRequired(){return!!this.param.extendedProperties.find(t=>t.name=="signature")}},data(){return{pureTip:!1,showFile:!1,attachRule:{limit:0,required:!1},partNodeArr:{},commentMsg:"",style:{color:"#333",disableColor:"#F7F6F6"},textTips:"",statusTips:!1,typeTips:"success",limit:"",requires:"",labels:"",otherList:"",attchLists:[],nextNodeData:[],taskNode:[],outGatewayUserTaskModel:[],formData:{},visible:!1,entity:{source:"0",type:this.param.isCheckType||"0",orgType:this.param.isOrgType||[0],request:this.param.request,codeType:this.param.isCodeType||[3],multiple:!0},multiNodeParticipant:{},partObjId:[],partNode:{},canCheck:!0,radioCheck:"",radioCheckChild:[],radioCheckName:"",radioCheckNameList:[],radioCheckNode:[],radioCheckNodeList:[],partList:[],gateVars:{},personMake:[],personMakeList:{},visibleListMsg:!1,visibleMsgComfig:!1,msgCheck:"",msgCheckList:["\u540C\u610F","\u5982\u62DF","\u5DF2\u9605"],msgCheckListS:["\u540C\u610F","\u5DF2\u9605"],actionName:"",partNodeS:[],makeType:"",digitalSignature:"",signVisible:!1}},watch:{"param.visible":{handler(e,t){this.nextNodeData=this.param.nextNodeData,this.taskNode=this.param.taskNode,this.outGatewayUserTaskModel=this.param.outGatewayUserTaskModel,this.actionName=this.param.actionName,this.attachShow(),console.log(this.showFile,"showFile:::"),this.outGatewayUserTaskModel&&this.outGatewayUserTaskModel.length&&this.outGatewayUserTaskModel.map(i=>{i.type!=="endEvent"&&(i.userTaskModelDTO={name:i.name,humanPerformer:{name:i.humanPerformerName},routeTxt:i.routeTxt,participantList:i.participantList},i.humanPerformer={name:i.humanPerformerName})}),this.nextNodeData&&this.nextNodeData.length?(this.nextNodeData.map((i,s)=>{i.nodeType!=="endEvent"&&(i.userTaskModelDTO||(i.userTaskModelDTO={name:i.name,humanPerformer:{name:i.humanPerformerName},routeTxt:i.routeTxt,participantList:i.participantList}),console.log("v=========",i),i.userTaskModelDTO&&i.userTaskModelDTO.participantList&&i.userTaskModelDTO.participantList.length&&i.userTaskModelDTO.participantList.map(r=>{this.multiNodeParticipant[i.id]||(this.multiNodeParticipant[i.id]=[]),this.partNode[i.id]||(this.partNode[i.id]=[]),this.multiNodeParticipant[i.id].includes(r.id)||this.multiNodeParticipant[i.id].push(r.id),this.partNode[i.id].includes(r.name)||this.partNode[i.id].push(r.name)}),(i.userTaskModelDTO.humanPerformer.name=="\u56FA\u5B9A\u8D26\u6237"||i.userTaskModelDTO.humanPerformer.name=="\u4E0E\u6D41\u7A0B\u7533\u8BF7\u4EBA\u76F8\u5173")&&this.personMake.push(i.id))}),this.personMake&&this.personMake.length&&this.param.request.post(`aws/repository/getParticipantsOfPerformerNames?taskInstId=${this.param.taskInstId}`,{userTaskDefIds:this.personMake}).then(i=>{i.code==200&&(this.personMakeList=i.data)})):this.outGatewayUserTaskModel&&this.outGatewayUserTaskModel.length&&this.outGatewayUserTaskModel.map((i,s)=>{i.nodeType!=="endEvent"&&i.participantList&&i.participantList.length&&i.participantList.map(r=>{this.multiNodeParticipant[i.id]||(this.multiNodeParticipant[i.id]=[]),this.partNode[i.id]||(this.partNode[i.id]=[]),this.multiNodeParticipant[i.id].includes(r.id)||this.multiNodeParticipant[i.id].push(r.id),this.partNode[i.id].includes(r.name)||this.partNode[i.id].push(r.name)})})},immediate:!0,deep:!0}},created(){this.makeDelegateTaskButtonAnnex()},methods:{findUserTaskNode(e){return console.log(e,"node"),e?e.nodeInfoDTO&&e.nodeInfoDTO.nodeType!="userTask"?this.findUserTaskNode(e.nodeInfoDTO.branches[0]):e.nodeInfoDTO?e.nodeInfoDTO:e:{}},handleMakeMsg(){this.commentMsg==""&&!this.commentMsg.length?(this.handleTips("\u8BF7\u8F93\u5165\u5BA1\u6279\u610F\u89C1!",!1,"success"),this.visibleMsgComfig=!1):this.visibleMsgComfig=!0},handleTipsCancel(){this.visibleMsgComfig=!1},handleTipsComfig(){this.handleTips("",!0,"loading"),this.visibleMsgComfig=!1,this.param.request.post("/auth/user/opinion/save",{opinionName:this.commentMsg}).then(e=>{e.code===200?this.handleTips("\u8BBE\u7F6E\u6210\u529F!",!0,"success"):this.handleTips(e.msg,!0,"error")}).catch(e=>{this.handleTips(e.msg,!0,"error")})},handleMsg(e){this.commentMsg=e,this.visibleListMsg=!1},handleSaveNode(e){this.makeType=="InclusiveGatewayModel"?(this.radioCheckNameList.includes(e.id)?this.radioCheckNameList.splice(this.radioCheckNameList.indexOf(e.id),1):(this.radioCheckNameList.push(e.id),this.gateVars[e.incomingConditionItemList[0].itemName]=e.incomingConditionItemList[0].compareValue),this.gateVars[e.itemName]=e.compareValue):(this.radioCheckNameList=[],this.radioCheckNodeList=[],this.radioCheckNameList.push(e.id),e.childNode&&e.childNode.length&&(this.radioCheckNodeList=e.childNode),this.gateVars[e.incomingConditionItemList[0].itemName]=e.incomingConditionItemList[0].compareValue,this.gateVars[e.itemName]=e.compareValue)},handleSaveNodeS(e){this.makeType=="InclusiveGatewayModel"?this.radioCheckNode.includes(e.id)?this.radioCheckNode.splice(this.radioCheckNode.indexOf(e.id),1):this.radioCheckNode.push(e.id):this.radioCheckNode&&this.radioCheckNode.length?this.radioCheckNode=[]:(this.radioCheckNode.push(e.id),e.childNode&&e.childNode.length&&this.radioCheckNodeList.push(e.childNode))},forRadioChild(e,t){e.map((i,s)=>{i.childNode&&i.childNode.length?this.forRadioChild(i.childNode,!0):t&&this.radioCheckChild.push(i)})},async handleNode(e){this.makeType=e.type,this.radioCheckNameList=[],this.radioCheck=e.id,this.radioCheckName=e.nodeName,this.radioCheckChild=e.childNode&&e.childNode.length?e.childNode:[e],this.radioCheckChild&&this.radioCheckChild.length&&this.radioCheckChild.map(t=>{t.participantList&&t.participantList.length?t.participantList.map(i=>{this.multiNodeParticipant[t.id]||(this.multiNodeParticipant[t.id]=[]),this.partNode[t.id]||(this.partNode[t.id]=[]),this.multiNodeParticipant[t.id].includes(i.id)||this.multiNodeParticipant[t.id].push(i.id),this.partNode[t.id].includes(i.name)||this.partNode[t.id].push(i.name)}):this.param.request.post(`/aws/repository/getParticipantsOfPerformerNames?taskInstId=${this.param.taskInstId}`,{userTaskDefIds:[t.id]}).then(i=>{i.code==200&&(this.partNodeS=[],this.partNodeS.push(i.data[t.id]))})}),(!this.radioCheckChild[0].incomingConditionItemList||!this.radioCheckChild[0].incomingConditionItemList.length)&&e.incomingConditionItemList&&e.incomingConditionItemList.length&&(this.radioCheckChild[0].incomingConditionItemList=e.incomingConditionItemList),this.outGatewayUserTaskModel&&this.outGatewayUserTaskModel.length&&(this.radioCheckChild&&this.radioCheckChild.length?(this.gateVars[this.radioCheckChild[0].incomingConditionItemList[0].itemName]=this.radioCheckChild[0].incomingConditionItemList[0].compareValue,this.gateVars[e.incomingConditionItemList[0].itemName]=e.incomingConditionItemList[0].compareValue):this.gateVars[e.incomingConditionItemList[0].itemName]=e.incomingConditionItemList[0].compareValue)},handleOpenPopup(e){if(this.visible=!0,this.partObjId=e.id,this.nextNodeData&&this.nextNodeData.length?e={...e,...e.userTaskModelDTO}:e.humanPerformer||(e={...e,humanPerformer:{name:e.humanPerformerName}}),e.humanPerformer.name=="\u56FA\u5B9A\u5355\u4F4D"){let t,i=[];e.routeTxt.companyIds.map((s,r)=>{t=s.name}),this.multiNodeParticipant[e.id]&&this.multiNodeParticipant[e.id].length&&this.multiNodeParticipant[e.id].map((s,r)=>{i.push({type:3,uid:s})}),this.entity={source:"1",type:this.param.isCheckType||"0",orgType:this.param.isOrgType||[0],request:this.param.request,codeType:this.param.isCodeType||[3],multiple:e.loopCardinality!=1,maxMultiple:e.loopCardinality>0?e.loopCardinality:0,subjectName:t,checkedArray:i}}else if(e.humanPerformer.name=="\u56FA\u5B9A\u90E8\u95E8"){let t,i=[],s=[];e.routeTxt.departmentIds.forEach((r,o)=>{e.routeTxt.departmentIds.length>1?i.push(r.rangeId):t=r.rangeId}),this.multiNodeParticipant[e.id]&&this.multiNodeParticipant[e.id].length&&this.multiNodeParticipant[e.id].forEach((r,o)=>{s.push({type:3,uid:r,deptId:t})}),e.routeTxt.departmentIds.length>1?this.entity={source:"1",type:this.param.isCheckType||"0",orgType:this.param.isOrgType||[0],request:this.param.request,codeType:this.param.isCodeType||[3],multiple:e.loopCardinality!=1,maxMultiple:e.loopCardinality>0?e.loopCardinality:0,deptCodeArray:i,checkedArray:s}:this.entity={source:"1",type:this.param.isCheckType||"0",orgType:this.param.isOrgType||[0],request:this.param.request,codeType:this.param.isCodeType||[3],multiple:e.loopCardinality!=1,maxMultiple:e.loopCardinality>0?e.loopCardinality:0,deptCode:t,checkedArray:s}}else{let t=[];this.multiNodeParticipant[e.id]&&this.multiNodeParticipant[e.id].length&&this.multiNodeParticipant[e.id].map((i,s)=>{t.push({type:3,uid:i})}),this.entity={source:"1",type:this.param.isCheckType||"0",orgType:this.param.isOrgType||[0],request:this.param.request,codeType:this.param.isCodeType||[3],multiple:e.loopCardinality!=1,maxMultiple:e.loopCardinality>0?e.loopCardinality:0,checkedArray:t}}},handleOpenMsg(){this.visibleListMsg=!0},async confirm(){this.signRequired?this.signConfirm():this.commonConfirm()},async commonConfirm(){if(this.param.ProcessInsObj.processDefId=="obj_94014ede99b6495d8f6d5977314faa15"&&(this.commentMsg="\u540C\u610F"),!this.commentMsg&&this.param.isRequire){this.handleTips("\u8BF7\u8F93\u5165\u5BA1\u6279\u610F\u89C1!",!1,"success");return}if(this.requires&&this.attchLists.length<=0){this.handleTips("\u8BF7\u4E0A\u4F20\u9644\u4EF6!",!1,"success");return}if(this.isSelectPerson!==!1){this.handleTips(this.pureTip?this.isSelectPerson:"\u8BF7\u9009\u62E9["+this.isSelectPerson+"]\u5BA1\u6279\u4EBA!",!1,"success");return}this.commentMsg||(this.commentMsg=" ");let e={};if(this.radioCheckNameList&&this.radioCheckNameList.length){if(this.radioCheckChild[0].type!=="EndEventModel"){let s=0;if(this.radioCheckNameList.map((r,o)=>{(!this.multiNodeParticipant[r]||!this.multiNodeParticipant[r].length)&&this.radioCheckChild.map((a,l)=>{a.id==r&&(a.humanPerformerName!=="\u56FA\u5B9A\u8D26\u6237"||a.humanPerformerName!=="\u4E0E\u6D41\u7A0B\u7533\u8BF7\u4EBA\u76F8\u5173")&&(!a.childNode||!a.childNode.length?s+=1:this.radioCheckNode.map((c,f)=>{(!this.multiNodeParticipant[c]||!this.multiNodeParticipant[c].length)&&(s+=1),e[c]=this.multiNodeParticipant[c]}))}),e[r]=this.multiNodeParticipant[r]}),s>0){this.handleTips("\u8BF7\u9009\u62E9\u5BA1\u6279\u4EBA!",!1,"success");return}}}else{if(console.error(this.multiNodeParticipant,"\u6D4B\u8BD5 multiNodeParticipant \u7A7A\u503C\u60C5\u51B5"),this.multiNodeParticipant[this.partObjId]&&!this.multiNodeParticipant[this.partObjId].length){this.handleTips("\u8BF7\u9009\u62E9\u5BA1\u6279\u4EBA!",!1,"success");return}e=this.multiNodeParticipant}if(this.signRequired){this.signVisible=!0;return}if(this.param.beforeFunction&&!await this.param.beforeFunction())return;console.log(this,"this"),(this.param.incomingConditionItemList||[]).forEach(s=>{let r=this.param.vars||this.gateVars||{};r[s.itemName]||(r[s.itemName]="")}),this.handleTips("",!0,"loading"),this.param.actionComplete,this.commentMsg,this.param.taskInstId,this.param.vars||this.gateVars;let t=[];const i=Array.isArray(this.param.nextNodeData)?this.param.nextNodeData[0]:this.param.nextNodeData;i.setPersonnel?t=i.assignees:t=(this.partNodeArr[i.id]||[]).map(s=>({id:s.id,name:s.name})),Date.now()&&console.log("\u63D0\u4EA4\u6570\u636E",{pass:!0,assignees:t,processInstanceId:this.param.processInstId,actionName:this.param.actionComplete,commentMsg:this.commentMsg,taskId:this.param.taskInstId,vars:this.param.vars||this.gateVars,multiNodeParticipant:e,attachment:this.attchLists}),await this.param.request.post("/bladex/blade-workflow/tis/complete",{pass:!0,assignees:t,processInstanceId:this.param.processInstId,actionName:this.param.actionComplete,commentMsg:this.commentMsg,taskId:this.param.taskInstId,vars:this.param.vars||this.gateVars,multiNodeParticipant:e,attachment:this.attchLists}).then(s=>{s.code==200?(this.$emit("handleClosePopup1"),this.handleTips("\u63D0\u4EA4\u6210\u529F!",!1,"success"),window.top.postMessage("success","*"),this.handleFinal(),this.commentMsg=""):this.handleTips(s.msg,!0,"error")})},async signConfirm(e=!0){if(this.param.ProcessInsObj.processDefId=="obj_94014ede99b6495d8f6d5977314faa15"&&(this.commentMsg="\u540C\u610F"),!this.commentMsg&&this.param.isRequire){this.handleTips("\u8BF7\u8F93\u5165\u5BA1\u6279\u610F\u89C1!",!1,"success");return}if(this.requires&&this.attchLists.length<=0){this.handleTips("\u8BF7\u4E0A\u4F20\u9644\u4EF6!",!1,"success");return}if(this.isSelectPerson!==!1){this.handleTips(this.pureTip?this.isSelectPerson:"\u8BF7\u9009\u62E9["+this.isSelectPerson+"]\u5BA1\u6279\u4EBA!",!1,"success");return}this.commentMsg||(this.commentMsg=" ");let t={};if(this.radioCheckNameList&&this.radioCheckNameList.length){if(this.radioCheckChild[0].type!=="EndEventModel"){let r=0;if(this.radioCheckNameList.map((o,a)=>{(!this.multiNodeParticipant[o]||!this.multiNodeParticipant[o].length)&&this.radioCheckChild.map((l,c)=>{l.id==o&&(l.humanPerformerName!=="\u56FA\u5B9A\u8D26\u6237"||l.humanPerformerName!=="\u4E0E\u6D41\u7A0B\u7533\u8BF7\u4EBA\u76F8\u5173")&&(!l.childNode||!l.childNode.length?r+=1:this.radioCheckNode.map((f,h)=>{(!this.multiNodeParticipant[f]||!this.multiNodeParticipant[f].length)&&(r+=1),t[f]=this.multiNodeParticipant[f]}))}),t[o]=this.multiNodeParticipant[o]}),r>0){this.handleTips("\u8BF7\u9009\u62E9\u5BA1\u6279\u4EBA!",!1,"success");return}}}else{if(this.multiNodeParticipant[this.partObjId]&&!this.multiNodeParticipant[this.partObjId].length){this.handleTips("\u8BF7\u9009\u62E9\u5BA1\u6279\u4EBA!",!1,"success");return}t=this.multiNodeParticipant}if(e){this.signVisible=!0;return}if(!this.digitalSignature){this.handleTips("\u8BF7\u7B7E\u5B57!",!1,"success");return}if(this.param.beforeFunction&&!await this.param.beforeFunction())return;this.handleTips("",!0,"loading"),this.signVisible=!1;let i=[];const s=Array.isArray(this.param.nextNodeData)?this.param.nextNodeData[0]:this.param.nextNodeData;s.setPersonnel?i=s.assignees:i=(this.partNodeArr[s.id]||[]).map(r=>({id:r.id,name:r.name})),await this.param.request.post("/bladex/blade-workflow/tis/complete",{pass:!0,assignees:i,processInstanceId:this.param.processInstId,actionName:this.param.actionComplete,commentMsg:this.commentMsg,taskId:this.param.taskInstId,vars:this.param.vars||this.gateVars,multiNodeParticipant:t,digitalSignature:this.digitalSignature,attachment:this.attchLists}).then(r=>{r.code==200?(this.$emit("handleClosePopup1"),this.handleTips("\u63D0\u4EA4\u6210\u529F!",!1,"success"),window.top.postMessage("success","*"),this.handleFinal(),this.commentMsg=""):this.handleTips(r.msg,!0,"error")})},attachShow(e="\u529E\u7406"){const t=(this.param||{}).extendedProperties||[];let i=!1,s,r="";s=t.find(a=>a.name=="completeButtonAnnex"),r=s?s.value:"",r&&(i=!0);let o="";if(typeof r!="string"&&r!=null&&r.map(a=>{a.indexOf(this.operationLabel)!=-1&&(i=!0,o=a)}),o&&(r=o),i){const a=r.split(":");this.attachRule.required=a[1]=="true",this.attachRule.limit=a[2]==-1?999:a[2],this.otherList=r;let l=this.otherList.split(":");this.limit=l[2],this.requires=JSON.parse(l[1]),this.labels=l[0]}return console.log(i,"sign",this.labels,this.limit),i},makeDelegateTaskButtonAnnex(){},handleCallback(e){this.visible=!1,this.multiNodeParticipant[this.partObjId]=[],this.partNode[this.partObjId]=[],e.map((t,i)=>{this.multiNodeParticipant[this.partObjId].push(t.uid),this.partNode[this.partObjId].push(t.name)})},handleCancel(){},getValues(e){this.attchLists=e},async uploadAttch(){if(this.attchLists.length>0){this.attchLists.map((i,s)=>{i.size=i.fileSize,i.format=i.name.substring(i.name.lastIndexOf(".")+1),i.uploadTime=i.createTime,i.processInstId=this.param.processInstId,i.taskInstId=this.param.taskInstId,i.name=i.name});let e=this.attchLists;(await this.param.request.post("/aws/meta/annex/patchSave",{saveMetaAnnexCmdList:e})).success?(this.$emit("handleClosePopup1"),this.handleTips("\u63D0\u4EA4\u6210\u529F!",!1,"success"),this.handleFinal(),this.commentMsg=""):this.handleTips("\u4E0A\u4F20\u5931\u8D25",!0,"error")}},isOption(e){return e=="\u4EFB\u610F\u6307\u5B9A"||e=="\u56FA\u5B9A\u90E8\u95E8"||e=="\u56FA\u5B9A\u5355\u4F4D"||e=="\u4E0E\u6D41\u7A0B\u7533\u8BF7\u4EBA\u6240\u5728\u7EC4\u7EC7\u7ED3\u6784\u7684\u4F4D\u7F6E\u76F8\u5173"||e=="\u56FA\u5B9A\u7FA4\u7EC4"},handleTips(e,t,i){this.textTips=e,this.statusTips=t,this.typeTips=i,this.$refs.topTips.handleOpen()},handleFinal(){this.param.endFunction&&this.param.endFunction("complete")},onMultiNode(e){this.multiNodeParticipant=e},onMultiNodeObj(e){this.partNodeArr=e},onVars(e){this.gateVars=e},handleSignature(e,t){this.digitalSignature=e,t&&(this.signVisible=!1,this.signConfirm(!1))},noticeFail(e){this.handleTips(e,!1,"success")},handleClose(){this.signVisible=!1}}},Uk={class:"process-popup-content"},jk={key:0,class:"process-popup-content-msg"},_k={key:0,class:"process-pc-label"},Gk={key:1,class:"process-pc-value",style:{display:"flex"}},qk={class:"process-radio",style:{width:"100%"}},Jk=["onClick"],Hk=["onClick"],Kk={key:2},zk={class:"process-pc-label"},Wk={key:0,class:"process-pc-label--re"},Yk={class:"process-pc-value"},Zk={class:"process-popup-textarea"},Xk={class:"process-popup-textarea-num"},$k={key:0,class:"msg-btn"},e0={class:"process-popup-content-person"},t0={key:0},i0={style:{height:"100%"}},n0={style:{height:"100%"}};function s0(e,t,i,s,r,o){const a=n.resolveComponent("TreePerson"),l=n.resolveComponent("TopTips"),c=n.resolveComponent("departPerson"),f=n.resolveComponent("TopPopup"),h=n.resolveComponent("MsgList"),u=n.resolveComponent("attchViews"),g=n.resolveComponent("TopSign"),E=n.resolveComponent("signDrawer");return n.openBlock(),n.createElementBlock("div",Uk,[i.param.ProcessInsObj&&i.param.ProcessInsObj.processDefId!="obj_94014ede99b6495d8f6d5977314faa15"?(n.openBlock(),n.createElementBlock("div",jk,[i.param.isQuickReply?(n.openBlock(),n.createElementBlock("div",_k,"\u5FEB\u6377\u56DE\u590D")):n.createCommentVNode("",!0),i.param.isQuickReply?(n.openBlock(),n.createElementBlock("div",Gk,[n.createElementVNode("div",qk,[i.param.isDocument?(n.openBlock(!0),n.createElementBlock(n.Fragment,{key:0},n.renderList(r.msgCheckList,I=>(n.openBlock(),n.createElementBlock("div",{class:n.normalizeClass(["process-radio-item",I==r.commentMsg?"process-radio-item--check":""]),onClick:()=>r.commentMsg=I},[t[8]||(t[8]=n.createElementVNode("span",null,null,-1)),n.createTextVNode(" "+n.toDisplayString(I),1)],10,Jk))),256)):(n.openBlock(!0),n.createElementBlock(n.Fragment,{key:1},n.renderList(r.msgCheckListS,I=>(n.openBlock(),n.createElementBlock("div",{class:n.normalizeClass(["process-radio-item",I==r.commentMsg?"process-radio-item--check":""]),onClick:()=>r.commentMsg=I},[t[9]||(t[9]=n.createElementVNode("span",null,null,-1)),n.createTextVNode(" "+n.toDisplayString(I),1)],10,Hk))),256)),i.param.isMsg?(n.openBlock(),n.createElementBlock("div",{key:2,class:"process-radio-item",onClick:t[0]||(t[0]=I=>o.handleOpenMsg()),style:{color:"#1389ff","font-size":"14px","margin-left":"auto"}}," \u5E38\u7528\u610F\u89C1 ")):n.createCommentVNode("",!0)])])):n.createCommentVNode("",!0),i.param.isMsg&&!i.param.isQuickReply?(n.openBlock(),n.createElementBlock("div",Kk,[n.createElementVNode("div",{class:"process-radio-item",onClick:t[1]||(t[1]=I=>o.handleOpenMsg()),style:{color:"#1389ff","font-size":"14px"}}," \u5E38\u7528\u610F\u89C1 ")])):n.createCommentVNode("",!0),n.createElementVNode("div",zk,[t[10]||(t[10]=n.createTextVNode(" \u5BA1\u6279\u610F\u89C1 ",-1)),i.param.isRequire?(n.openBlock(),n.createElementBlock("span",Wk,"*")):n.createCommentVNode("",!0)]),n.createElementVNode("div",Yk,[n.createElementVNode("div",Zk,[n.withDirectives(n.createElementVNode("textarea",{"onUpdate:modelValue":t[2]||(t[2]=I=>r.commentMsg=I),class:"textarea-item",name:"description",cols:"40",placeholder:"\u8BF7\u8F93\u5165\u5BA1\u6279\u610F\u89C1(200\u5B57\u4EE5\u5185)",maxlength:"200",onkeyup:"this.value=this.value.replace(/[\\uD800-\\uDFFF]/g,'')"},null,512),[[n.vModelText,r.commentMsg]]),n.createElementVNode("div",Xk,n.toDisplayString(r.commentMsg.length)+"/200 ",1)]),i.param.isMsg?(n.openBlock(),n.createElementBlock("div",$k,[n.createElementVNode("span",{class:"msg-btn-click",onClick:t[3]||(t[3]=I=>o.handleMakeMsg())},"\u8BBE\u7F6E\u4E3A\u5E38\u7528\u610F\u89C1")])):n.createCommentVNode("",!0)])])):n.createCommentVNode("",!0),n.createElementVNode("div",e0,[r.nextNodeData.length==1&&r.nextNodeData[0].nodeType=="endEvent"?(n.openBlock(),n.createElementBlock("div",t0," \u4E0B\u4E00\u8282\u70B9\uFF1A\u7ED3\u675F\u4E8B\u4EF6 ")):(n.openBlock(),n.createBlock(a,{key:1,ref:"TreePersonRef",items:r.nextNodeData,nodeType:"nexting",param:i.param,onOnMultiNode:o.onMultiNode,onOnMultiNodeObj:o.onMultiNodeObj},null,8,["items","param","onOnMultiNode","onOnMultiNodeObj"]))]),n.renderSlot(e.$slots,"completeSlot",{},void 0,!0),n.createVNode(l,{ref:"topTips",text:r.textTips,statusTips:r.statusTips,type:r.typeTips},null,8,["text","statusTips","type"]),n.createVNode(f,{visible:r.visible,"onUpdate:visible":t[4]||(t[4]=I=>r.visible=I),ref:"TopPopup",titleText:"\u9009\u4EBA",isDrawer:!0},{default:n.withCtx(()=>[n.createElementVNode("div",i0,[r.visible?(n.openBlock(),n.createBlock(c,n.mergeProps({key:0,isTitle:!1,visible:r.visible},r.entity,{onCallback:o.handleCallback,onCancel:o.handleCancel}),null,16,["visible","onCallback","onCancel"])):n.createCommentVNode("",!0)])]),_:1},8,["visible"]),n.createVNode(f,{visible:r.visibleListMsg,"onUpdate:visible":t[5]||(t[5]=I=>r.visibleListMsg=I),ref:"TopPopup",titleText:"\u5E38\u7528\u610F\u89C1",isDrawer:!0},{default:n.withCtx(()=>[n.createVNode(h,{visible:r.visibleListMsg,request:i.param.request,useInfo:i.param.userInfo,onHandleTips:o.handleTips,onHandleMsg:o.handleMsg},null,8,["visible","request","useInfo","onHandleTips","onHandleMsg"])]),_:1},8,["visible"]),n.createVNode(f,{titleText:"\u64CD\u4F5C\u6D88\u606F\u63D0\u793A",isTips:!0,context:`\u5C06${r.commentMsg}\u8BBE\u7F6E\u4E3A\u5E38\u7528\u610F\u89C1`,cancel:o.handleTipsCancel,comfig:o.handleTipsComfig,visible:r.visibleMsgComfig,"onUpdate:visible":t[6]||(t[6]=I=>r.visibleMsgComfig=I)},null,8,["context","cancel","comfig","visible"]),r.labels=="1"?(n.openBlock(),n.createBlock(u,{key:1,limit:r.limit?r.limit:-1,requires:r.requires,request:i.param.request,linkUrl:i.param.linkUrl,onGetValue:o.getValues},null,8,["limit","requires","request","linkUrl","onGetValue"])):n.createCommentVNode("",!0),n.createVNode(E,{visible:r.signVisible,"onUpdate:visible":t[7]||(t[7]=I=>r.signVisible=I),ref:"TopPopupSign",titleText:"\u7B7E\u5B57",isDrawer:!0,width:"100vw"},{default:n.withCtx(()=>[n.createElementVNode("div",n0,[r.signVisible?(n.openBlock(),n.createBlock(g,{key:0,request:i.param.request,onSaveSignature:o.handleSignature,onValidateFail:o.noticeFail,onClose:o.handleClose},null,8,["request","onSaveSignature","onValidateFail","onClose"])):n.createCommentVNode("",!0)])]),_:1},8,["visible"])])}const Oa=pe(Qk,[["render",s0],["__scopeId","data-v-1f8e03a2"]]),qE="",r0={name:"cancel",props:{param:{type:Object,defalut:()=>{}}},components:{TopTips:st,attchViews:ti,TopPopup:Ke,departPerson:Tt.departPerson,MsgList:Ki},watch:{param:{async handler(e,t){this.entity.checkedArray=[],this.actionName=e.actionName},immediate:!0,deep:!0}},data(){return{commentMsg:"",actionName:"",style:{color:"#333",disableColor:"#F7F6F6"},textTips:"",statusTips:!1,typeTips:"success",limit:"",requires:"",labels:"",otherList:"",attchLists:[],nextNodeData:[],taskNode:[],outGatewayUserTaskModel:[],formData:{},visible:!1,entity:{source:"0",type:this.param.isCheckType||"0",orgType:this.param.isOrgType||[770],request:this.param.request,codeType:this.param.isCodeType||[3],multiple:!0,checkedArray:[]},multiNodeParticipant:{},partObjId:[],partNode:{},visibleListMsg:!1,visibleMsgComfig:!1}},created(){this.makeDelegateTaskButtonAnnex()},methods:{handleMakeMsg(){this.commentMsg==""&&!this.commentMsg.length?(this.handleTips("\u8BF7\u8F93\u5165\u5BA1\u6279\u610F\u89C1!",!1,"success"),this.visibleMsgComfig=!1):this.visibleMsgComfig=!0},handleOpenMsg(){this.visibleListMsg=!0},handleTipsCancel(){this.visibleMsgComfig=!1},handleTipsComfig(){this.handleTips("",!0,"loading"),this.visibleMsgComfig=!1,this.param.request.post("/auth//user/opinion/save",{opinionName:this.commentMsg}).then(e=>{e.code===200?this.handleTips("\u8BBE\u7F6E\u6210\u529F!",!0,"success"):this.handleTips(e.msg,!0,"error")}).catch(e=>{this.handleTips(e.msg,!0,"error")})},handleMsg(e){this.commentMsg=e,this.visibleListMsg=!1},handleOpenPopup(e){this.visible=!0,this.partObjId=e},async confirm(){if(!this.commentMsg)return this.handleTips("\u8BF7\u8F93\u5165\u62D2\u7EDD\u7406\u7531!",!1,"success"),!1;this.handleTips("",!0,"loading"),await this.param.request.post("/bladex/blade-workflow/tis/complete",{pass:!1,assignees:[],processInstanceId:this.param.processInstId,commentMsg:this.commentMsg,comment:this.commentMsg||" ",taskId:this.param.taskInstId}).then(e=>{e.code==200?(this.$emit("handleClosePopup1"),this.handleTips("\u63D0\u4EA4\u6210\u529F!",!1,"success"),this.handleFinal(),window.top.postMessage("success","*"),this.commentMsg=""):this.handleTips(e.msg,!0,"error")})},makeDelegateTaskButtonAnnex(){if(this.param.annex&&this.param.annex.length){this.otherList=this.param.annex;let e=this.otherList.split(";");this.limit=e[2],this.labels=e[0]}},handleCallback(e){this.visible=!1,this.multiNodeParticipant[this.partObjId]=[],this.partNode[this.partObjId]=[],e.map((t,i)=>{this.multiNodeParticipant[this.partObjId].push(t.uid),this.partNode[this.partObjId].push(t.name),this.entity.checkedArray.push({type:3,uid:t.uid})})},handleCancel(){},getValues(e){this.attchLists=e},async uploadAttch(){if(this.attchLists.length>0){this.attchLists.map((i,s)=>{i.size=i.fileSize,i.format=i.originFileName.substring(i.originFileName.lastIndexOf(".")+1),i.uploadTime=i.createTime,i.processInstId=this.param.processInstId,i.taskInstId=this.param.taskInstId,i.name=i.originFileName});let e=this.attchLists;(await this.param.request.post("/aws/meta/annex/patchSave",{saveMetaAnnexCmdList:e})).success?(this.$emit("handleClosePopup1"),this.handleTips("\u63D0\u4EA4\u6210\u529F!",!1,"success"),this.handleFinal(),this.commentMsg=""):this.handleTips("\u4E0A\u4F20\u5931\u8D25",!0,"error")}},isOption(e){return e=="\u4EFB\u610F\u6307\u5B9A"||e=="\u56FA\u5B9A\u90E8\u95E8"||e=="\u56FA\u5B9A\u5355\u4F4D"||e=="\u4E0E\u6D41\u7A0B\u7533\u8BF7\u4EBA\u6240\u5728\u7EC4\u7EC7\u7ED3\u6784\u7684\u4F4D\u7F6E\u76F8\u5173"||e=="\u56FA\u5B9A\u7FA4\u7EC4"},handleTips(e,t,i){this.textTips=e,this.statusTips=t,this.typeTips=i,this.$refs.topTips.handleOpen()},handleFinal(){this.param.endFunction&&this.param.endFunction("\u62D2\u7EDD")}}},o0={class:"process-popup-content"},a0={class:"process-popup-content-msg"},l0={key:0},c0={class:"process-pc-value"},p0={class:"process-popup-textarea"},d0={class:"process-popup-textarea-num"},h0={key:0,class:"msg-btn"},u0={key:0,class:"process-popup-content-person"},f0=["onClick"],m0={class:"process-pc-value--people"},g0={key:0,class:"process-pc-value--data"},y0={key:1,class:"process-pc-value--data",style:{color:"#888"}},A0={style:{"font-size":"15px"}},k0={style:{height:"100%"}};function E0(e,t,i,s,r,o){const a=n.resolveComponent("TopTips"),l=n.resolveComponent("departPerson"),c=n.resolveComponent("TopPopup"),f=n.resolveComponent("attchViews"),h=n.resolveComponent("MsgList");return n.openBlock(),n.createElementBlock("div",o0,[n.createElementVNode("div",a0,[i.param.isMsg?(n.openBlock(),n.createElementBlock("div",l0,[n.createElementVNode("div",{class:"process-radio-item",onClick:t[0]||(t[0]=u=>o.handleOpenMsg()),style:{color:"#1389ff","font-size":"14px"}}," \u5E38\u7528\u610F\u89C1 ")])):n.createCommentVNode("",!0),t[7]||(t[7]=n.createElementVNode("div",{class:"process-pc-label"},[n.createTextVNode(" \u62D2\u7EDD\u7406\u7531\uFF1A "),n.createElementVNode("span",{class:"process-pc-label--re"},"*")],-1)),n.createElementVNode("div",c0,[n.createElementVNode("div",p0,[n.withDirectives(n.createElementVNode("textarea",{"onUpdate:modelValue":t[1]||(t[1]=u=>r.commentMsg=u),class:"textarea-item",name:"description",cols:"40",placeholder:"\u8BF7\u8F93\u5165\u5BA1\u6279\u610F\u89C1(200\u5B57\u4EE5\u5185)",maxlength:"200",onkeyup:"this.value=this.value.replace(/[\\uD800-\\uDFFF]/g,'')"},null,512),[[n.vModelText,r.commentMsg]]),n.createElementVNode("div",d0,n.toDisplayString(r.commentMsg.length)+"/200 ",1)]),i.param.isMsg?(n.openBlock(),n.createElementBlock("div",h0,[n.createElementVNode("span",{class:"msg-btn-click",onClick:t[2]||(t[2]=u=>o.handleMakeMsg())},"\u8BBE\u7F6E\u4E3A\u5E38\u7528\u610F\u89C1")])):n.createCommentVNode("",!0)])]),r.taskNode&&r.taskNode.length>0&&r.taskNode[0].taskState!=4?(n.openBlock(),n.createElementBlock("div",u0,[r.nextNodeData.length?(n.openBlock(!0),n.createElementBlock(n.Fragment,{key:0},n.renderList(r.nextNodeData,u=>{var g,E;return n.openBlock(),n.createElementBlock(n.Fragment,null,[o.isOption((E=(g=u==null?void 0:u.userTaskModelDTO)==null?void 0:g.humanPerformer)==null?void 0:E.name)?(n.openBlock(),n.createElementBlock(n.Fragment,{key:0},[n.createElementVNode("div",null,[n.createTextVNode(n.toDisplayString(u.userTaskModelDTO.name)+" ",1),t[8]||(t[8]=n.createElementVNode("br",null,null,-1)),t[9]||(t[9]=n.createTextVNode(" \u5BA1\u6279\u4EBA ",-1)),t[10]||(t[10]=n.createElementVNode("span",{class:"process-pc-label--re"},"*",-1))]),n.createElementVNode("div",{class:"process-pc-value",onClick:I=>o.handleOpenPopup(u.id)},[n.createElementVNode("div",m0,[r.partNode[u.id]&&r.partNode[u.id].length?(n.openBlock(),n.createElementBlock("div",g0,[(n.openBlock(!0),n.createElementBlock(n.Fragment,null,n.renderList(r.partNode[u.id],(I,P)=>(n.openBlock(),n.createElementBlock("span",null,n.toDisplayString(P==0?I:`,${I}`),1))),256))])):(n.openBlock(),n.createElementBlock("div",y0,t[11]||(t[11]=[n.createElementVNode("span",null," \u8BF7\u9009\u62E9\u5BA1\u6279\u4EBA ",-1)])))])],8,f0)],64)):n.createCommentVNode("",!0)],64)}),256)):r.outGatewayUserTaskModel.length?(n.openBlock(!0),n.createElementBlock(n.Fragment,{key:1},n.renderList(r.outGatewayUserTaskModel,u=>(n.openBlock(),n.createElementBlock(n.Fragment,null,[o.isOption(u.humanPerformerName)?(n.openBlock(),n.createElementBlock(n.Fragment,{key:0},[n.createElementVNode("div",A0,n.toDisplayString(u.name),1),t[13]||(t[13]=n.createElementVNode("div",{class:"process-pc-label"},[n.createTextVNode(" \u5BA1\u6279\u4EBA "),n.createElementVNode("span",{class:"process-pc-label--re"},"*")],-1)),n.createElementVNode("div",{class:"process-pc-value",onClick:t[3]||(t[3]=(...g)=>o.handleOpenPopup&&o.handleOpenPopup(...g))},t[12]||(t[12]=[n.createElementVNode("div",{class:"process-pc-value--people"},n.toDisplayString(234),-1)]))],64)):n.createCommentVNode("",!0)],64))),256)):n.createCommentVNode("",!0)])):n.createCommentVNode("",!0),n.createVNode(a,{ref:"topTips",text:r.textTips,statusTips:r.statusTips,type:r.typeTips},null,8,["text","statusTips","type"]),n.createVNode(c,{visible:r.visible,"onUpdate:visible":t[4]||(t[4]=u=>r.visible=u),ref:"TopPopup",titleText:"\u9009\u4EBA",isDrawer:!0},{default:n.withCtx(()=>[n.createElementVNode("div",k0,[r.visible?(n.openBlock(),n.createBlock(l,n.mergeProps({key:0,isTitle:!1,visible:r.visible,request:i.param.request},r.entity,{onCallback:o.handleCallback,onCancel:o.handleCancel}),null,16,["visible","request","onCallback","onCancel"])):n.createCommentVNode("",!0)])]),_:1},8,["visible"]),r.labels=="\u62D2\u7EDD"?(n.openBlock(),n.createBlock(f,{key:1,limit:r.limit?r.limit:-1,requires:r.requires,request:i.param.request,linkUrl:i.param.linkUrl,onGetValue:o.getValues},null,8,["limit","requires","request","linkUrl","onGetValue"])):n.createCommentVNode("",!0),n.createVNode(c,{visible:r.visibleListMsg,"onUpdate:visible":t[5]||(t[5]=u=>r.visibleListMsg=u),ref:"TopPopup",titleText:"\u5E38\u7528\u610F\u89C1",isDrawer:!0},{default:n.withCtx(()=>[n.createVNode(h,{visible:r.visibleListMsg,request:i.param.request,useInfo:i.param.userInfo,onHandleTips:o.handleTips,onHandleMsg:o.handleMsg},null,8,["visible","request","useInfo","onHandleTips","onHandleMsg"])]),_:1},8,["visible"]),n.createVNode(c,{titleText:"\u64CD\u4F5C\u6D88\u606F\u63D0\u793A",isTips:!0,context:`\u5C06${r.commentMsg}\u8BBE\u7F6E\u4E3A\u5E38\u7528\u610F\u89C1`,cancel:o.handleTipsCancel,comfig:o.handleTipsComfig,visible:r.visibleMsgComfig,"onUpdate:visible":t[6]||(t[6]=u=>r.visibleMsgComfig=u)},null,8,["context","cancel","comfig","visible"])])}const b0=pe(r0,[["render",E0],["__scopeId","data-v-672706e4"]]),JE="",C0={name:"backNode",props:{param:{type:Object,defalut:()=>{}}},components:{TopTips:st,attchViews:ti,TopPopup:Ke,departPerson:Tt.departPerson,TopDownSelect:Pa,MsgList:Ki},data(){return{commentMsg:"",style:{color:"#333",disableColor:"#F7F6F6"},textTips:"",statusTips:!1,typeTips:"success",limit:"",requires:"",labels:"",otherList:"",attchLists:[],nextNodeData:[],taskNode:[],outGatewayUserTaskModel:[],formData:{},visible:!1,entity:{source:"0",type:this.param.isCheckType||"0",orgType:this.param.isOrgType||[0],request:this.param.request,codeType:this.param.isCodeType||[3],multiple:!0,checkedArray:[]},multiNodeParticipant:{},partObjId:[],partNode:{},option:[],nodeId:"",actionName:"",visibleListMsg:!1,visibleMsgComfig:!1}},watch:{param:{async handler(e,t){this.nextNodeData=e.nextNodeData,this.taskNode=e.taskNode,this.outGatewayUserTaskModel=e.outGatewayUserTaskModel,this.entity.checkedArray=[],this.actionName=e.actionName},immediate:!0,deep:!0}},created(){this.getReturnNode()},methods:{handleMakeMsg(){this.commentMsg==""&&!this.commentMsg.length?(this.handleTips("\u8BF7\u8F93\u5165\u5BA1\u6279\u610F\u89C1!",!1,"success"),this.visibleMsgComfig=!1):this.visibleMsgComfig=!0},handleOpenMsg(){this.visibleListMsg=!0},handleTipsCancel(){this.visibleMsgComfig=!1},handleTipsComfig(){this.handleTips("",!0,"loading"),this.visibleMsgComfig=!1,this.param.request.post("/auth//user/opinion/save",{opinionName:this.commentMsg}).then(e=>{e.code===200?this.handleTips("\u8BBE\u7F6E\u6210\u529F!",!0,"success"):this.handleTips(e.msg,!0,"error")}).catch(e=>{this.handleTips(e.msg,!0,"error")})},handleMsg(e){this.commentMsg=e,this.visibleListMsg=!1},getReturnNode(){this.param.request.get("/bladex/blade-workflow/process/getBackNodes",{params:{taskId:this.param.taskInstId}}).then(e=>{e.code===200&&(this.option=(e.data||[]).map(t=>({...t,name:t.nodeName,id:t.nodeId})).filter(t=>!(t.nodeId||"").includes("startEvent")))})},handleChange(e){this.nodeId=e.id},handleOpenPopup(e){this.visible=!0,this.partObjId=e},confirm(){if(!this.commentMsg)return this.textTips="\u8BF7\u8F93\u5165\u9000\u56DE\u7406\u7531!",this.$refs.topTips.handleOpen(),!1;if(!this.nodeId)return this.textTips="\u8BF7\u9009\u62E9\u9000\u56DE\u8282\u70B9!",this.$refs.topTips.handleOpen(),!1;this.handleTips("",!0,"loading"),this.param.request.post("/bladex/blade-workflow/tis/rollback",{taskInstId:this.param.taskInstId,rollbackReason:this.commentMsg,targetActivityId:this.nodeId}).then(e=>{e.code==200?(this.$emit("handleClosePopup1"),this.handleTips("\u63D0\u4EA4\u6210\u529F!",!1,"success"),window.top.postMessage("success","*"),this.handleFinal(),this.commentMsg=""):this.handleTips(e.msg,!0,"error")}).catch(e=>{this.handleTips(e.msg,!0,"error")})},makeDelegateTaskButtonAnnex(){if(this.param.annex&&this.param.annex.length){this.otherList=this.param.annex;let e=this.otherList.split(";");this.limit=e[2],this.requires=JSON.parse(e[1]),this.labels=e[0]}},handleCallback(e){this.visible=!1,this.multiNodeParticipant[this.partObjId]=[],this.partNode[this.partObjId]=[],e.map((t,i)=>{this.multiNodeParticipant[this.partObjId].push(t.uid),this.partNode[this.partObjId].push(t.name),this.entity.checkedArray.push({type:3,uid:t.uid})})},handleCancel(){},getValues(e){this.attchLists=e},async uploadAttch(){if(this.attchLists.length>0){this.attchLists.map((i,s)=>{i.size=i.fileSize,i.format=i.originFileName.substring(i.originFileName.lastIndexOf(".")+1),i.uploadTime=i.createTime,i.processInstId=this.param.processInstId,i.taskInstId=this.param.taskInstId,i.name=i.originFileName});let e=this.attchLists;(await this.param.request.post("/aws/meta/annex/patchSave",{saveMetaAnnexCmdList:e})).success?(this.$emit("handleClosePopup1"),this.handleTips("\u63D0\u4EA4\u6210\u529F!",!1,"success"),this.handleFinal(),this.commentMsg=""):this.handleTips("\u4E0A\u4F20\u5931\u8D25",!0,"error")}},isOption(e){return e=="\u4EFB\u610F\u6307\u5B9A"||e=="\u56FA\u5B9A\u90E8\u95E8"||e=="\u56FA\u5B9A\u5355\u4F4D"||e=="\u4E0E\u6D41\u7A0B\u7533\u8BF7\u4EBA\u6240\u5728\u7EC4\u7EC7\u7ED3\u6784\u7684\u4F4D\u7F6E\u76F8\u5173"||e=="\u56FA\u5B9A\u7FA4\u7EC4"},handleTips(e,t,i){this.textTips=e,this.statusTips=t,this.typeTips=i,this.$refs.topTips.handleOpen()},handleFinal(){this.param.endFunction&&this.param.endFunction("\u9000\u56DE")}}},w0={class:"process-popup-content"},T0={class:"process-popup-content-msg"},N0={class:"process-pc-value",style:{display:"inline-block",width:"50%"}},B0={class:"process-pc-value"},I0={class:"process-popup-textarea"},x0={class:"process-popup-textarea-num"};function S0(e,t,i,s,r,o){const a=n.resolveComponent("TopDownSelect"),l=n.resolveComponent("TopTips"),c=n.resolveComponent("MsgList"),f=n.resolveComponent("TopPopup"),h=n.resolveComponent("attchViews");return n.openBlock(),n.createElementBlock("div",w0,[n.createElementVNode("div",T0,[t[3]||(t[3]=n.createElementVNode("div",{class:"process-pc-label",style:{"background-color":"#fff",position:"relative","z-index":"199",display:"inline-block",width:"50%"}},[n.createTextVNode(" \u9000\u56DE\u8282\u70B9\uFF1A "),n.createElementVNode("span",{class:"process-pc-label--re"},"*")],-1)),n.createElementVNode("div",N0,[n.createVNode(a,{option:r.option,onChange:o.handleChange,optionStyle:"width:calc(100% - 40px);left:20px;",maskShow:!1,border:""},null,8,["option","onChange"])]),t[4]||(t[4]=n.createElementVNode("div",{class:"process-pc-label"},[n.createTextVNode(" \u9000\u56DE\u7406\u7531\uFF1A "),n.createElementVNode("span",{class:"process-pc-label--re"},"*")],-1)),n.createElementVNode("div",B0,[n.createElementVNode("div",I0,[n.withDirectives(n.createElementVNode("textarea",{"onUpdate:modelValue":t[0]||(t[0]=u=>r.commentMsg=u),class:"textarea-item",name:"description",cols:"40",placeholder:"\u8BF7\u8F93\u5165\u5BA1\u6279\u610F\u89C1(200\u5B57\u4EE5\u5185)",maxlength:"200",onkeyup:"this.value=this.value.replace(/[\\uD800-\\uDFFF]/g,'')"},null,512),[[n.vModelText,r.commentMsg]]),n.createElementVNode("div",x0,n.toDisplayString(r.commentMsg.length)+"/200 ",1)])])]),n.createVNode(l,{ref:"topTips",text:r.textTips,statusTips:r.statusTips,type:r.typeTips},null,8,["text","statusTips","type"]),n.createVNode(f,{visible:r.visibleListMsg,"onUpdate:visible":t[1]||(t[1]=u=>r.visibleListMsg=u),ref:"TopPopup",titleText:"\u5E38\u7528\u610F\u89C1",isDrawer:!0},{default:n.withCtx(()=>[n.createVNode(c,{visible:r.visibleListMsg,request:i.param.request,useInfo:i.param.userInfo,onHandleTips:o.handleTips,onHandleMsg:o.handleMsg},null,8,["visible","request","useInfo","onHandleTips","onHandleMsg"])]),_:1},8,["visible"]),n.createVNode(f,{titleText:"\u64CD\u4F5C\u6D88\u606F\u63D0\u793A",isTips:!0,context:`\u5C06${r.commentMsg}\u8BBE\u7F6E\u4E3A\u5E38\u7528\u610F\u89C1`,cancel:o.handleTipsCancel,comfig:o.handleTipsComfig,visible:r.visibleMsgComfig,"onUpdate:visible":t[2]||(t[2]=u=>r.visibleMsgComfig=u)},null,8,["context","cancel","comfig","visible"]),r.labels=="\u9000\u56DE"?(n.openBlock(),n.createBlock(h,{key:0,limit:r.limit?r.limit:-1,requires:r.requires,request:i.param.request,linkUrl:i.param.linkUrl,onGetValue:o.getValues},null,8,["limit","requires","request","linkUrl","onGetValue"])):n.createCommentVNode("",!0)])}const D0=pe(C0,[["render",S0],["__scopeId","data-v-2790b2f8"]]),HE="",P0={name:"ccTask",props:{param:{type:Object,defalut:()=>{}}},components:{TopTips:st,departPerson:Tt.departPerson},data(){return{commentMsg:"",style:{color:"#333",disableColor:"#F7F6F6"},textTips:"",statusTips:!1,typeTips:"success",limit:"",requires:"",labels:"",otherList:"",attchLists:[],nextNodeData:[],taskNode:[],outGatewayUserTaskModel:[],formData:{},visible:!1,entity:{source:"0",type:this.param.isCheckType||"0",orgType:this.param.isOrgType||[0],request:this.param.request,codeType:this.param.isCodeType||[3],multiple:!0,checkedArray:[]},multiNodeParticipant:{},partObjId:[],partNode:{},actionName:""}},watch:{param:{handler(e,t){this.nextNodeData=e.nextNodeData,this.taskNode=e.taskNode,this.outGatewayUserTaskModel=e.outGatewayUserTaskModel,this.actionName=e.actionName,e.nextNodeData.length?this.nextNodeData[0].type=="userTask"||this.nextNodeData[0].type=="UserTaskModel"?(this.entity.multiple=!0,this.entity.codeType=this.param.isCodeType||[3],this.entity.source="1",this.entity.checkedArray=[],this.entity.type=this.param.isCheckType||"0",this.entity.orgType=this.param.isOrgType||[0]):this.nextNodeData[0].type=="ExclusiveGatewayModel"||this.nextNodeData[0].type=="InclusiveGatewayModel":e.outGatewayUserTaskModel.length&&(e.outGatewayUserTaskModel[0].type=="userTask"?(this.entity.multiple=!0,this.entity.codeType=this.param.isCodeType||[3],this.entity.source="1",this.entity.checkedArray=[],this.entity.type=this.param.isCheckType||"0",this.entity.orgType=this.param.isOrgType||[0]):e.outGatewayUserTaskModel[0].type=="ExclusiveGatewayModel"||e.outGatewayUserTaskModel[0].type=="InclusiveGatewayModel"||e.outGatewayUserTaskModel[0].type=="UserTaskModel"&&(this.entity.multiple=!0,this.entity.codeType=this.param.isCodeType||[3],this.entity.checkedArray=[],this.entity.source="1",this.entity.type=this.param.isCheckType||"0",this.entity.orgType=this.param.isOrgType||[0]))},immediate:!0,deep:!0}},created(){this.makeDelegateTaskButtonAnnex()},methods:{handleOpenPopup(e){this.visible=!0,this.partObjId=e},async confirm(){let e="";this.multiNodeParticipant[this.partObjId].map((t,i)=>{i==0?e=t:e=`${e} ${t}`}),await this.param.request.post("/bladex/blade-workflow/tis/createCCTask",{processInstId:this.param.processInstId,taskId:this.param.taskInstId,participant:e}).then(t=>{t.code==200?(this.$emit("handleClosecctaskTopPopup"),this.handleTips("\u63D0\u4EA4\u6210\u529F!",!1,"success"),window.top.postMessage("success","*"),this.handleFinal()):this.handleTips(t.msg,!0,"error")})},makeDelegateTaskButtonAnnex(){},handleCallback(e){this.visible=!1,this.multiNodeParticipant[this.partObjId]=[],this.partNode[this.partObjId]=[],e.map((t,i)=>{this.multiNodeParticipant[this.partObjId].push(t.uid),this.partNode[this.partObjId].push(t.name),this.entity.checkedArray.push({type:3,uid:t.uid})}),e&&e.length&&this.confirm()},handleCancel(){},getValues(e){this.attchLists=e},isOption(e){return e=="\u4EFB\u610F\u6307\u5B9A"||e=="\u56FA\u5B9A\u90E8\u95E8"||e=="\u56FA\u5B9A\u5355\u4F4D"||e=="\u4E0E\u6D41\u7A0B\u7533\u8BF7\u4EBA\u6240\u5728\u7EC4\u7EC7\u7ED3\u6784\u7684\u4F4D\u7F6E\u76F8\u5173"||e=="\u56FA\u5B9A\u7FA4\u7EC4"},handleTips(e,t,i){this.textTips=e,this.statusTips=t,this.typeTips=i,this.$refs.topTips.handleOpen()},handleFinal(){this.param.endFunction&&this.param.endFunction("ccTask")}}},M0={style:{height:"100%"}};function V0(e,t,i,s,r,o){const a=n.resolveComponent("departPerson"),l=n.resolveComponent("TopTips");return n.openBlock(),n.createElementBlock("div",M0,[i.param.visible?(n.openBlock(),n.createBlock(a,n.mergeProps({key:0,isTitle:!1,request:i.param.request},r.entity,{onCallback:o.handleCallback,onCancel:o.handleCancel}),null,16,["request","onCallback","onCancel"])):n.createCommentVNode("",!0),n.createVNode(l,{ref:"topTips",text:r.textTips,statusTips:r.statusTips,type:r.typeTips},null,8,["text","statusTips","type"])])}const O0=pe(P0,[["render",V0]]),KE="",v0={name:"nf-button",components:{TopTips:st},props:{uid:{type:String,default:""},loading:{type:Boolean,default:!1},buttonList:{type:Array,default:()=>[]},process:{type:Object,default:()=>({variables:{}})},request:{type:[Function,Object],default:()=>({get:()=>{},post:()=>{}})},comment:String},data(){return{isCollapse:!0,nodeVisible:!1,nodeForm:{},nodeOption:{column:[{label:"\u8282\u70B9",prop:"nodeId",type:"select",props:{label:"nodeName",value:"nodeId"},span:24,rules:[{required:!0,message:"\u8BF7\u9009\u62E9\u56DE\u9000\u8282\u70B9",trigger:"change"}]}]},backNodes:[]}},watch:{process:{handler(e,t){e&&e.taskId&&this.request.get("/bladex/blade-workflow/process/getBackNodes",{params:{taskId:e.taskId}}).then(i=>{const s=i.data;this.backNodes=s})},deep:!0,immediate:!0}},methods:{handleTips(e,t,i){this.textTips=e,this.statusTips=t,this.typeTips=i,this.$refs.topTips.handleOpen()},handleRollback(){if(!this.comment){this.$message.error("\u8BF7\u586B\u5199\u6279\u590D\u610F\u89C1");return}this.nodeVisible=!0},handleNodeSubmit(){const{nodeId:e}=this.nodeForm;this.$emit("rollback",e)},getButton(e){return this.buttonList.find(t=>t.buttonKey==e)}}},R0={class:"process-btns"},L0=["disabled"],F0={key:0},Q0={key:1},U0=["disabled"],j0={key:0},_0={key:1},G0=["disabled"],q0=["disabled"],J0=["disabled"],H0=["disabled"],K0=["disabled"],z0=["disabled"],W0=["disabled"],Y0=["disabled"],Z0=["disabled"];function X0(e,t,i,s,r,o){return n.openBlock(),n.createElementBlock("div",R0,[i.process.status=="todo"?(n.openBlock(),n.createElementBlock(n.Fragment,{key:0},[o.getButton("wf_pass")?(n.openBlock(),n.createElementBlock("button",{key:0,class:"process-button success",size:"default",disabled:i.loading,onClick:t[0]||(t[0]=a=>e.$emit("examine",!0,["recall","reject"].includes(i.process.processIsFinished)?"\u91CD\u65B0\u63D0\u4EA4":o.getButton("wf_pass").name))},[["recall","reject"].includes(i.process.processIsFinished)?(n.openBlock(),n.createElementBlock("span",F0,"\u91CD\u65B0\u63D0\u4EA4")):(n.openBlock(),n.createElementBlock("span",Q0,n.toDisplayString(o.getButton("wf_pass").name),1))],8,L0)):n.createCommentVNode("",!0),o.getButton("wf_reject")?(n.openBlock(),n.createElementBlock("button",{key:1,class:"process-button danger",size:"default",disabled:i.loading,onClick:t[1]||(t[1]=a=>e.$emit("examine",!1,(r.backNodes.length>1,o.getButton("wf_reject").name)))},[r.backNodes.length>1?(n.openBlock(),n.createElementBlock("span",j0,n.toDisplayString(o.getButton("wf_reject").name),1)):(n.openBlock(),n.createElementBlock("span",_0,n.toDisplayString(o.getButton("wf_reject").name),1))],8,U0)):n.createCommentVNode("",!0),i.uid==(i.process.variables||{}).applyUserId?(n.openBlock(),n.createElementBlock("button",{key:2,size:"default",class:"process-button info",disabled:i.loading,onClick:t[2]||(t[2]=a=>e.$emit("reminders"))},t[11]||(t[11]=[n.createElementVNode("span",null,"\u50AC\u529E",-1)]),8,G0)):n.createCommentVNode("",!0),o.getButton("wf_transfer")?(n.openBlock(),n.createElementBlock("button",{key:3,class:"process-button primary",size:"default",disabled:i.loading,onClick:t[3]||(t[3]=a=>e.$emit("user-select",{type:"transfer",checkType:"radio",name:o.getButton("wf_transfer").name}))},n.toDisplayString(o.getButton("wf_transfer").name),9,q0)):n.createCommentVNode("",!0),o.getButton("wf_delegate")?(n.openBlock(),n.createElementBlock("button",{key:4,class:"process-button warning",size:"default",disabled:i.loading,onClick:t[4]||(t[4]=a=>e.$emit("user-select",{type:"delegate",checkType:"radio",name:o.getButton("wf_delegate").name}))},n.toDisplayString(o.getButton("wf_delegate").name),9,J0)):n.createCommentVNode("",!0),o.getButton("wf_rollback")?(n.openBlock(),n.createElementBlock("button",{key:5,class:"process-button success",size:"default",disabled:i.loading,onClick:t[5]||(t[5]=a=>e.$emit("rollback",o.getButton("wf_rollback").name))},n.toDisplayString(o.getButton("wf_rollback").name),9,H0)):n.createCommentVNode("",!0),o.getButton("wf_terminate")?(n.openBlock(),n.createElementBlock("button",{key:6,class:"process-button danger",size:"default",disabled:i.loading,onClick:t[6]||(t[6]=a=>e.$emit("terminate"))},n.toDisplayString(o.getButton("wf_terminate").name),9,K0)):n.createCommentVNode("",!0),i.process.isMultiInstance&&o.getButton("wf_add_instance")?(n.openBlock(),n.createElementBlock("button",{key:7,class:"process-button primary",size:"default",disabled:i.loading,onClick:t[7]||(t[7]=a=>e.$emit("user-select",{type:"addInstance",checkType:"checkbox",name:o.getButton("wf_add_instance").name}))},n.toDisplayString(o.getButton("wf_add_instance").name),9,z0)):n.createCommentVNode("",!0),o.getButton("wf_cctask")?(n.openBlock(),n.createElementBlock("button",{key:8,class:"process-button info",size:"default",disabled:i.loading,onClick:t[8]||(t[8]=a=>e.$emit("circulate",o.getButton("wf_cctask").name))},[n.createElementVNode("span",null,n.toDisplayString(o.getButton("wf_cctask").name),1)],8,W0)):n.createCommentVNode("",!0)],64)):n.createCommentVNode("",!0),i.process.isOwner&&i.process.isReturnable&&!["recall","reject"].includes(i.process.processIsFinished)?(n.openBlock(),n.createElementBlock("button",{key:1,class:"process-button danger",size:"default",disabled:i.loading,onClick:t[9]||(t[9]=a=>e.$emit("withdraw","\u64A4\u9500"))}," \u64A4\u9500 ",8,Y0)):n.createCommentVNode("",!0),o.getButton("wf_print")?(n.openBlock(),n.createElementBlock("button",{key:2,class:"process-button info",size:"default",disabled:i.loading,onClick:t[10]||(t[10]=a=>e.$emit("print"))},n.toDisplayString(o.getButton("wf_print").name),9,Z0)):n.createCommentVNode("",!0)])}const $0=at({name:"TopProcess",components:{processBtns:pe(v0,[["render",X0],["__scopeId","data-v-8c1d1cae"]]),TopTab:Ng,TopPopup:Ke,TopTips:st,TopSumbitPopup:Ma},props:{tapList:{require:!1,default:()=>[],type:Array},selfTapList:{require:!1,default:()=>[],type:Array},processDefId:{require:!0,default:"",type:String},processInstId:{require:!0,default:"",type:String},isAdditional:{require:!1,default:!1,type:Boolean},isView:{default:!1,type:Boolean},formData:{default:{},type:Object},getVarsStatus:{default:!0,type:Boolean},getVars:{default:null,type:Function},request:{type:[Function,Object],default:()=>({get:()=>{},post:()=>{}})},endFunction:{type:Function,default:null},beforeFunction:{type:Function,default:null},isDocument:{type:Boolean,default:!1},restartData:{type:Object,default:{businessType:"",showType:"",processName:""}},selfList:{type:Array,default:()=>[]},selfBtn:{type:Array,default:()=>[]},uid:{type:String,default:""},isMsg:{type:Boolean,default:!0},isRequire:{type:Boolean,default:!0},isCheckType:{type:String,default:"0"},isOrgType:{type:Array,default:()=>[0]},isCodeType:{type:Array,default:()=>[3]},isQuickReply:{type:Boolean,default:!1},ccTaskFunction:{type:Function,default:null},hideHeader:{type:Boolean,default:!1},needResubmit:{type:Boolean,default:!0}},data(){return{incomingConditionItemList:[],submitLoading:!1,nextTaskNode:{},deptId:"",absoluteTaskId:"",comment:"",processXml:"",approvalData:[],processStatus:{},processDefList:{},processBusiness:{},getFirstProcessNode:{},taskNode:[],taskNodeList:[],taskNodeIds:[],taskState:NaN,taskCurrent:0,taskObj:{},taskId:"",taskNodeShow:!1,actionShow:!1,titleText:"",btnStyle:"",processIntId:"",trackUrl:"",taskCommentList:[],operationCom:null,operationComKey:Date.now(),ProcessInsObj:{button:[],flow:[],form:{},process:{}},popupContext:"",operationParam:{},nextTaskNode:{},annexlabel:"",handleTipsType:"",textTips:"",statusTips:!1,typeTips:"",outGatewayUserTaskModel:[],nextNodeData:[],visibleSong:!1,trackList:[],user:{},canCheck:!0,approveNode:{},restartDataS:{},selfBtnList:[],topNum:144,bottomNum:70,userIdData:"",TopPopup1:!1,cctaskTopPopup:!1,cctaskTopPopupTitle:"\u6284\u9001"}},watch:{processInstId:{async handler(e,t){this.processIntId=this.processInstId||this.formData.processId||this.formData.processInstId,e&&(this.request.get("/bladex/blade-workflow/tis/getTaskModelDetail",{params:{processInstId:this.processInstId}}).then(i=>{var s;if(i.code==200){this.ProcessInsObj={...this.ProcessInsObj,...i.data},this.taskObj.buttons=this.ProcessInsObj.button||[],this.trackList=(((s=i.data)==null?void 0:s.flow)||[]).filter(a=>["userTask","candidate"].includes(a.historyActivityType));const r=((this.ProcessInsObj.process||{}).variables||{}).deptId;this.deptId=r;const o=(this.ProcessInsObj.process||{}).taskId;this.absoluteTaskId=o,this.approvalData=(i.data||{}).flow||[],this.processXml=((i.data||{}).process||{}).xml||""}}),this.getUserInfo())},immediate:!0,deep:!0},restartData:{handler(e,t){e&&(this.restartDataS=e)},immediate:!0,deep:!0},selfBtn:{handler(e,t){e&&e.length&&(this.selfBtnList=e)},immediate:!0,deep:!0},uid:{handler(e,t){e&&(this.userIdData=e)},immediate:!0,deep:!0}},mounted(){},computed:{actionBtn(){return this.operBtn.length>3?this.operBtn.slice(3):[]},operBtn(){let e=[];const t=this.ProcessInsObj.process,i=this.ProcessInsObj.button;if(!t||!i)return e;if(console.log(this.getButton("wf_pass"),"this.getButton"),this.needResubmit&&t.status=="todo"&&this.userIdData&&this.userIdData==(t.variables||{}).applyUserId&&["recall","reject"].includes(t.processIsFinished)&&this.getButton("wf_pass")){let s={};s.name="\u91CD\u65B0\u63D0\u4EA4",s.btnProps={type:"default"},e.push(s),s.click=r=>{this.handlePass("\u91CD\u65B0\u63D0\u4EA4"),this.submitLoading=!0,this.handleActionClose()}}if(!this.isView&&t.status=="todo"&&this.getButton("wf_pass")){let s={};s.name=this.getButton("wf_pass").name,s.btnProps={type:"primary"},e.push(s),s.click=r=>{this.handlePass(this.getButton("wf_pass").name),this.submitLoading=!0,this.handleActionClose()}}if(!this.isView&&t.status=="todo"&&this.getButton("wf_reject")){let s={};s.name=this.getButton("wf_reject").name,s.btnProps={type:"danger"},e.push(s),s.click=r=>{this.handleCancel(this.getButton("wf_reject").name),this.submitLoading=!0,this.handleActionClose()}}if(this.selfBtnList&&this.selfBtnList.length&&this.selfBtnList.map(s=>{let r={};r.name=s.name,r.btnProps={type:s.type},e.push(r),r.click=s.click}),!this.isView&&t.status=="todo"&&this.getButton("wf_rollback")){let s={};s.name=this.getButton("wf_rollback").name,s.btnProps={type:"danger"},e.push(s),s.click=r=>{this.handleRollbackTask(this.getButton("wf_rollback").name),this.handleActionClose()}}if(!this.isView&&t.status=="todo"&&this.getButton("wf_cctask")){let s={};s.name=this.getButton("wf_cctask").name,s.btnProps={type:"default"},s.click=async r=>{this.handleCirculate(this.getButton("wf_cctask").name),this.handleActionClose()},e.push(s)}if(!this.isView&&t.status=="todo"&&this.getButton("wf_delegate")){let s={};s.name=this.getButton("wf_delegate").name,s.btnProps={type:"warning"},s.key="cc2",s.click=()=>{this.handleUserSelect({type:"delegate",checkType:"radio",name:this.getButton("wf_delegate").name}),this.handleActionClose()},e.push(s)}if(!this.isView&&t.status=="todo"&&this.getButton("wf_terminate")){let s={};s.name=this.getButton("wf_terminate").name,s.btnProps={type:"danger"},s.key="cc3",s.click=()=>{this.handleTerminateProcess(),this.handleActionClose()},e.push(s)}if(!this.isView&&t.status=="todo"&&this.getButton("wf_transfer")){let s={};s.name=this.getButton("wf_transfer").name,s.btnProps={type:"default"},s.click=r=>{this.handleUserSelect({type:"transfer",checkType:"radio",name:this.getButton("wf_transfer").name}),this.handleActionClose()},e.push(s)}if(!this.isView&&t.isMultiInstance&&this.getButton("wf_add_instance")){let s={};s.name=this.getButton("wf_add_instance").name,s.btnProps={type:"primary"},s.click=r=>{this.handleUserSelect({type:"addInstance",checkType:"checkbox",name:this.getButton("wf_add_instance").name}),this.handleActionClose()},e.push(s)}if(this.userIdData==(t.variables||{}).applyUserId&&this.processIntId){let s={};s.name="\u50AC\u529E",s.btnProps={type:"default"},s.click=r=>{this.handleReminders("\u50AC\u529E"),this.handleActionClose()},e.push(s)}if(this.processIntId&&t.isOwner&&t.isReturnable&&!["recall","reject"].includes(t.processIsFinished)){let s={};s.name="\u64A4\u9500",s.btnProps={type:"default"},s.click=r=>{this.handleWithdrawTask("\u64A4\u9500"),this.handleActionClose()},e.push(s)}return console.error(e,"btnList"),e},processCardHeight(){let e=this.topNum+this.bottomNum-10;return this.isAdditional&&!this.operBtn&&!this.operBtn.length&&!this.ProcessInsObj.end&&(e-=this.bottomNum),this.hideHeader&&(e-=204),`calc(100vh - ${e}px)`},processBtn(){if(this.isAdditional&&!this.operBtn&&!this.operBtn.length&&!this.ProcessInsObj.end)return`-${this.bottomNum}px`}},methods:{getButton(e){console.log(e,"key");const t=(this.ProcessInsObj.button||[]).find(i=>i.buttonKey==e);return console.log(t,"a"),t},handleActionBtn(e){switch(e.buttonKey){case"wf_pass":this.handleExamine(!0,["recall","reject"].includes(this.ProcessInsObj.process.processIsFinished)?"\u91CD\u65B0\u63D0\u4EA4":e.name);break;case"wf_reject":this.handleExamine(!1,e.name);break;case"wf_transfer":this.handleTransfer(e.name);break;case"wf_add_instance":this.handleAddInstance(e.name);break;case"wf_rollback":this.handleRollbackTask(e.name);break;case"wf_transfer":this.handleTransfer(e.name);break;case"wf_terminate":this.handleTerminateProcess(e.name);case"wf_cctask":this.handleCirculate(e.name);break}this.handleActionClose()},handleDraft(){this.submitLoading=!0},handleExamine(e,t){e?this.handlePass(t):this.handleCancel(t),this.submitLoading=!0},async handlePass(e){this.deptId&&await this.getNextNode(this.deptId),this.before?this.before().then(()=>{this.showOperation(Oa,e)}):this.showOperation(Oa,e)},handleCancel(e){this.showOperation(b0,e)},handleUserSelect({type:e,checkType:t,name:i}){e=="transfer"?this.handleTransfer(i):e=="addInstance"&&this.handleAddInstance(i)},async handleTransfer(e){this.deptId&&await this.getNextNode(this.deptId),this.showOperation(EA,e)},async handleAddInstance(e){this.deptId&&await this.getNextNode(this.deptId),this.showOperation(eA,e)},handlePrint(){console.log("handlePrint")},handleRollbackTask(e){console.log("handleRollbackTask"),this.showOperation(D0,e)},handleTerminateProcess(){console.log("handleTerminateProcess")},handleWithdrawTask(e){this.$refs.TopPopup2.handleOpen(),this.handleActionClose(),this.titleText="\u64A4\u9500",this.popupContext="\u786E\u5B9A\u64A4\u9500\u5417?",this.handleTipsType="\u64A4\u9500"},handleReminders(e){this.$refs.TopPopup2.handleOpen(),this.handleActionClose(),this.titleText="\u50AC\u529E",this.popupContext="\u786E\u5B9A\u50AC\u529E\u5417?",this.handleTipsType="\u50AC\u529E"},handleCirculate(e){console.log(e,"\u6284\u9001"),this.showOperation(O0,e,this.request,this.taskObj.ccTaskButtonAnnex,"\u6284\u9001"),this.cctaskTopPopupTitle=e},async getNextNode(e){let t;try{t=await this.request.get("/bladex/blade-workflow/tis/simulation",{params:{taskId:this.absoluteTaskId,processInstId:this.processId}})}catch(s){console.error(s),t={}}let i=t.data||{};if(t.code==200&&!t.data.evaluation&&(this.incomingConditionItemList=[],i.branches=await this.getOutgoingProcessNode(this.absoluteTaskId,t.data.id)),i.id&&!i.setPersonnel){const s=Sa(i);let r;try{r=await this.getNodeUser({deptId:e,intersection:s.intersection?1:0,userIds:s.userIds,postIds:s.postIds,deptIds:s.deptIds})}catch(o){console.log(o,"error")}r.code==200&&(i.userList=r.data)}this.nextTaskNode=i},async getNodeUser({deptId:e,intersection:t,userIds:i,postIds:s,deptIds:r}){return await this.request.post("/auth/post/getTaskAuditor",{deptId:e,intersection:t,userIds:i,postIds:s,deptIds:r})},handleGetHeight(){this.$nextTick(()=>{setTimeout(()=>{let e=document.getElementById("process-header"),t=document.getElementById("process-footer");this.bottomNum=t?t.scrollHeight+10:70,this.topNum=e?e.scrollHeight+10:144},1e3)})},handleTestsss(e,t){},handleTestS(){this.handleTips("\u63D0\u4EA4\u6210\u529F!",!1,"success")},handleTest(){this.visibleSong=!0},async getUserInfo(){let e=await this.request.get("/app/user/info");e.code===200&&(this.user=e.data||{},this.userIdData=e.data.userId)},async handleGetSimulation(e){this.handleTips("",!0,"loading");let t={processInstId:this.processInstId,taskInstId:this.taskNode.length?this.taskNode[0].taskId:"",vars:e,errorTip:!1},i=await this.request.post("/aws/tis/simulation",t);if(i.success){this.handleTips("",!1,"success"),this.nextNodeData=i.data;for(let s=0;s<this.nextNodeData.length;s++)this.approveNode=this.nextNodeData[s]}else{let s=this.taskNode&&this.taskNode.length?this.taskNode[0].taskId:"";this.outGatewayUserTaskModel=await this.getOutgoingProcessNode(s,"")}},async getOutgoingProcessNode(e,t){let i=await this.request.get("/bladex/blade-workflow/tis/getOutgoingProcessNode",{params:{taskId:e,processNodeId:t}});if(i.code==200){if(i.data&&i.data.length){for(let s=0;s<i.data.length;s++){let r=i.data[s];r.incomingConditionItemList&&r.incomingConditionItemList.length!==0&&(r.nodeInfoDTO.incomingConditionItemList=r.incomingConditionItemList,console.error(r.incomingConditionItemList,"o.incomingConditionItemList"),this.incomingConditionItemList.push(...r.incomingConditionItemList)),r.nodeInfoDTO.nodeType!="userTask"&&(r.nodeInfoDTO.branches=await this.getOutgoingProcessNode(e,r.nodeInfoDTO.id))}return this.handleTips("",!1,"success"),i.data}return this.handleTips("",!1,"success"),[]}return[]},handleGet(e){this.taskNode=[].concat(e),this.taskNodeShow=!1,this.actionShow=!1,this.handleGetProcessStatus(),this.handleGetUserTaskModel()},handleGetProcessStatus(){this.handleTips("",!0,"loading"),this.request.get("/aws/pis/getProcessStatus",{params:{processInstId:this.processInstId,taskId:this.taskNode.length?this.taskNode[0].taskId:""}}).then(e=>{e.code==200&&(this.processStatus=e.data,this.$emit("processStatus",this.processStatus,this.taskNode),this.processStatus.userNodeGroup&&this.processStatus.userNodeGroup[this.taskNode[0].nodeName]&&this.processStatus.userNodeGroup[this.taskNode[0].nodeName].length>1?this.canCheck=!1:this.canCheck=!0),this.handleGetHeight()}).catch(e=>{this.handleGetHeight()})},handleGetUserTaskModel(){this.taskNode&&this.taskNode.length?this.request.get("/aws/repository/getUserTaskModel",{params:{taskId:this.taskNode[0].taskId}}).then(e=>{e.code==200&&(this.taskObj=e.data),this.handleGetHeight(),this.$refs.topTips.handleClose()}).catch(e=>{this.handleGetHeight(),this.$refs.topTips.handleClose()}):this.$refs.topTips.handleClose()},async showOperation(e,t,i,s,r){switch(this.beforeFunction&&(this.operationParam.beforeFunction=this.beforeFunction),console.error(this.request,"requ"),this.operationParam.request=this.request,this.annexlabel=s||"fasdfsafdsa",this.titleText=t,this.operationCom=e,this.operationComKey=Date.now(),this.operationParam.selChildrenItems={},this.operationParam.annex=s||"fasdfsafdsa",this.operationParam.subjectId=this.formData.subjectId,this.operationParam.processInstId=this.processIntId,this.operationParam.taskInstId=(this.ProcessInsObj.process||{}).taskId||"",this.operationParam.variables=(this.ProcessInsObj.process||{}).variables||{},this.operationParam.extendedProperties=(this.ProcessInsObj.form||{}).extendedProperties||[],this.operationParam.actionName=t,this.operationParam.formData=this.formData,this.operationParam.ProcessInsObj=this.ProcessInsObj,this.operationParam.userInfo=this.user,console.log(this.nextTaskNode,"CES SHUJU"),this.operationParam.nextNodeData=(this.nextTaskNode||{}).id?[this.nextTaskNode]:[],this.operationParam.incomingConditionItemList=this.incomingConditionItemList,this.operationParam.outGatewayUserTaskModel=this.outGatewayUserTaskModel,this.operationParam.taskNode=this.taskNode,this.operationParam.appId=this.processStatus.appId,this.operationParam.endFunction=this.endFunction,this.operationParam.isDocument=this.isDocument,this.operationParam.isQuickReply=this.isQuickReply,this.operationParam.isMsg=this.isMsg,this.operationParam.isRequire=this.isRequire,this.operationParam.canCheck=this.canCheck,this.operationParam.isCheckType=this.isCheckType,this.operationParam.isOrgType=this.isOrgType,this.operationParam.isCodeType=this.isCodeType,console.log(r,"type"),r){case"\u6284\u9001":this.operationParam.visible=!0,this.cctaskTopPopup=!0;break;default:this.operationParam.visible=!0,this.TopPopup1=!0;break}},handleCancelPopup(){this.TopPopup1=!1,this.operationParam.visible=!1,this.submitLoading=!1},async handleComfig(){this.$refs.operationRef.confirm()},handleClosePopup1(){this.TopPopup1=!1,this.operationParam.visible=!1,this.submitLoading=!1},handleClosecctaskTopPopup(){this.cctaskTopPopup=!1,this.operationParam.visible=!1,this.submitLoading=!1},handleTipsComfig(){this.$refs.TopPopup2.handleCancel(),this.handleTipsType=="\u50AC\u529E"&&(this.handleTips("",!0,"loading"),this.request.get("/bladex/blade-workflow/tis/reminders",{params:{processInstId:this.processIntId}}).then(e=>{e.code==200?(this.handleTips("\u50AC\u529E\u6210\u529F",!0,"success"),window.top.postMessage("success","*"),this.endFunction("\u50AC\u529E")):this.handleTips(e.msg,!0,"error")})),this.handleTipsType=="\u64A4\u9500"&&(this.handleTips("",!0,"loading"),this.request.get("/bladex/blade-workflow/tis/withdrawTask",{params:{processInstId:this.processIntId}}).then(e=>{e.code==200?(this.handleTips("\u64A4\u9500\u6210\u529F",!0,"success"),window.top.postMessage("success","*"),this.endFunction("\u64A4\u9500")):(this.textTips=e.msg,this.typeTips="error",this.handleTips(e.msg,!0,"error"))}))},handleTipsCancel(){},getColor(e){return e=="\u5BA1\u6838\u4E2D"?"#FFA52D":e=="\u5DF2\u9A73\u56DE"?"#F14B4C":e=="\u5DF2\u64A4\u9500"?"#CECECE":e=="\u5DF2\u5B8C\u6210"?"#6DC743":"#1389FF"},handleActionOpen(){this.actionShow=!0},handleActionClose(){this.actionShow=!1},actionClick(e){this.titleText=e,this.actionShow=!1},getBtnStyle(e){switch(e){case"primary":return"background-color:#3c9cff;color:#fff";case"danger":return"background-color:rgb(255, 230, 230);color:rgb(255, 96, 96)";case"default":return"background-color:rgb(241, 241, 241);color:rgb(51, 51, 51)";default:return"background-color:rgb(241, 241, 241);color:rgb(51, 51, 51)"}},async handleRestart(){this.handleTips("",!0,"loading"),await this.request.post("/bladex/blade-workflow/repository/getProcessDefList",{appId:this.processStatus.appId}).then(e=>{this.processDefList=e.data,this.request.get("/aws/pis/getProcessInstanceByBusinessKey",{params:{businessKey:this.formData.businessKey}}).then(t=>{this.processBusiness=t.data,this.request.get("/bladex/blade-workflow/repository/getAllProcessNode",{params:{processDefId:this.processBusiness.processDefId}}).then(i=>{this.getFirstProcessNode=i.data[0],this.operationParam.getFirstProcessNode=this.getFirstProcessNode,this.operationParam.formData=this.formData,this.handleTips("",!1,"success"),this.handleActionClose(),this.showOperation(void 0,"\u91CD\u65B0\u63D0\u4EA4",this.request)}).catch(i=>{this.handleTips("\u8BF7\u6C42\u51FA\u9519",!0,"error")})}).catch(t=>{this.handleTips("\u8BF7\u6C42\u51FA\u9519",!0,"error")})}).catch(e=>{this.handleTips("\u8BF7\u6C42\u51FA\u9519",!0,"error")})},handleTips(e,t,i){this.textTips=e,this.statusTips=t,this.typeTips=i,this.$refs.topTips.handleOpen()}}}),WE="",eE={class:"process-warp"},tE={key:0,class:"process-main",id:"process-header",ref:"processheader"},iE={class:"process-ml-item border"},nE={class:"process-mli-value"},sE={class:"process-ml-item border"},rE={class:"process-mli-value"},oE={key:0,class:"process-ml-item"},aE={class:"process-mli-value",style:{width:"50%","text-align":"right"}},lE={class:"process-mliv-jd"},cE=["slot"],pE={slot:"default",style:{height:"100%"}},dE=["slot"],hE={key:0,class:"footBtnRow"},uE=["onClick"],fE={slot:"completeSlot"},mE=["onClick"],gE=["onClick"],yE={slot:"completeSlot"};function AE(e,t,i,s,r,o){const a=n.resolveComponent("TopTab"),l=n.resolveComponent("TopPopup"),c=n.resolveComponent("TopTips"),f=n.resolveComponent("TopSumbitPopup");return n.openBlock(),n.createElementBlock("div",null,[n.createElementVNode("div",eE,[(e.formData.currentState||e.processStatus.bizStatusName||e.processStatus.status)&&!e.hideHeader?(n.openBlock(),n.createElementBlock("div",tE,[n.createElementVNode("div",iE,[t[5]||(t[5]=n.createElementVNode("div",{class:"process-mli-name"},"\u6D41\u7A0B\u72B6\u6001",-1)),n.createElementVNode("div",nE,[e.formData.currentState||e.processStatus.bizStatusName||e.processStatus.status?(n.openBlock(),n.createElementBlock("div",{key:0,class:"process-mliv-dd",style:n.normalizeStyle({background:e.getColor(e.formData.currentState||e.processStatus.bizStatusName||e.processStatus.status)})},n.toDisplayString(e.formData.currentState||e.processStatus.bizStatusName||e.processStatus.status),5)):n.createCommentVNode("",!0)])]),n.createElementVNode("div",sE,[t[6]||(t[6]=n.createElementVNode("div",{class:"process-mli-name"},"\u6D41\u7A0B\u53D1\u8D77\u65F6\u95F4",-1)),n.createElementVNode("div",rE,[n.createElementVNode("span",null,n.toDisplayString(e.processStatus.createTime),1)])]),e.processStatus.allUserNames&&e.processStatus.allUserNames.length?(n.openBlock(),n.createElementBlock("div",oE,[t[7]||(t[7]=n.createElementVNode("div",{class:"process-mli-name"},"\u5BA1\u6279\u8282\u70B9",-1)),n.createElementVNode("div",aE,[n.createElementVNode("span",lE,n.toDisplayString(`${e.processStatus.taskState==4?e.processStatus.currUserName:e.processStatus.allUserNames.toString()}\u5BA1\u6279\u4E2D`),1)])])):n.createCommentVNode("",!0)],512)):n.createCommentVNode("",!0),n.createElementVNode("div",{class:"process-card",style:n.normalizeStyle({height:e.processCardHeight})},[n.createVNode(a,{ProcessInsObj:e.ProcessInsObj,processXml:e.processXml,approvalData:e.approvalData,tapList:e.tapList,selfTapList:e.selfTapList,processIntId:e.processIntId,track:e.trackUrl,taskComment:e.taskCommentList,trackList:e.trackList},{default:n.withCtx(()=>[e.selfTapList&&e.selfTapList.length?(n.openBlock(!0),n.createElementBlock(n.Fragment,{key:0},n.renderList(e.selfTapList,(h,u)=>(n.openBlock(),n.createElementBlock("div",{key:u,slot:h.slot,style:{height:"100%"}},[n.renderSlot(e.$slots,h.slot,{},void 0,!0)],8,cE))),128)):(n.openBlock(),n.createElementBlock(n.Fragment,{key:1},[n.createElementVNode("div",pE,[n.renderSlot(e.$slots,"default",{},void 0,!0)]),(n.openBlock(!0),n.createElementBlock(n.Fragment,null,n.renderList(e.tapList,(h,u)=>(n.openBlock(),n.createElementBlock("div",{style:{height:"100%"},key:u,slot:h.slot},[n.renderSlot(e.$slots,h.slot,{},void 0,!0)],8,dE))),128))],64))]),_:3},8,["ProcessInsObj","processXml","approvalData","tapList","selfTapList","processIntId","track","taskComment","trackList"])],4),e.isView?n.createCommentVNode("",!0):(n.openBlock(),n.createElementBlock("div",{key:1,class:"process-btn",id:"process-footer",style:n.normalizeStyle({bottom:e.processBtn})},[e.isAdditional?(n.openBlock(),n.createElementBlock("div",hE,[n.renderSlot(e.$slots,"btn",{data:e.processStatus},void 0,!0)])):(n.openBlock(),n.createElementBlock(n.Fragment,{key:1},[e.isDocument&&(e.formData.currentState=="\u7F16\u6587\u53F7\u5957\u7EA2"||e.formData.currentState=="\u76D6\u7AE0")?(n.openBlock(),n.createElementBlock("div",{key:0,class:"top-button",style:n.normalizeStyle(e.getBtnStyle("default"))}," \u8BF7\u53BBPC\u7AEF\u5904\u7406\u8BE5\u6D41\u7A0B ",4)):(n.openBlock(),n.createElementBlock(n.Fragment,{key:1},[e.formData.currentState!="\u5DF2\u5B8C\u6210"||e.processStatus.status!="\u5DF2\u5B8C\u6210"||e.processStatus.bizStatusName!="\u5DF2\u5B8C\u6210"?(n.openBlock(!0),n.createElementBlock(n.Fragment,{key:0},n.renderList(e.operBtn,(h,u)=>(n.openBlock(),n.createElementBlock(n.Fragment,null,[u<3?(n.openBlock(),n.createElementBlock("div",{class:"top-button",style:n.normalizeStyle(e.getBtnStyle(h.btnProps.type.toString())),key:h.name,onClick:g=>h.click(h.name)},n.toDisplayString(h.name),13,uE)):n.createCommentVNode("",!0)],64))),256)):n.createCommentVNode("",!0),e.operBtn.length>3&&e.actionBtn&&e.actionBtn.length?(n.openBlock(),n.createElementBlock("div",{key:1,class:"elips",onClick:t[0]||(t[0]=(...h)=>e.handleActionOpen&&e.handleActionOpen(...h))},t[8]||(t[8]=[n.createElementVNode("div",{class:"circle"},null,-1),n.createElementVNode("div",{class:"circle"},null,-1),n.createElementVNode("div",{class:"circle"},null,-1)]))):n.createCommentVNode("",!0)],64))],64))],4))]),n.createVNode(l,{ref:"TopPopup1",cancel:e.handleCancelPopup,comfig:e.handleComfig,titleText:e.titleText,visible:e.TopPopup1,"onUpdate:visible":t[1]||(t[1]=h=>e.TopPopup1=h),className:"toppopup-component"},{default:n.withCtx(()=>[(n.openBlock(),n.createBlock(n.resolveDynamicComponent(e.operationCom),{key:e.operationComKey,ref:"operationRef",param:e.operationParam,onHandleClosePopup1:e.handleClosePopup1},{default:n.withCtx(()=>[n.createElementVNode("div",fE,[n.renderSlot(e.$slots,"completeSlot",{},void 0,!0)])]),_:3},40,["param","onHandleClosePopup1"]))]),_:3},8,["cancel","comfig","titleText","visible"]),n.createVNode(l,{ref:"TopPopup2",titleText:e.titleText,isTips:!0,context:e.popupContext,cancel:e.handleTipsCancel,comfig:e.handleTipsComfig},null,8,["titleText","context","cancel","comfig"]),n.createVNode(c,{ref:"topTips",text:e.textTips,statusTips:e.statusTips,type:e.typeTips},null,8,["text","statusTips","type"]),e.actionBtn&&e.actionBtn.length||e.taskNodeList&&e.taskNodeList.length?(n.openBlock(),n.createElementBlock("div",{key:0,class:"top-elips",style:n.normalizeStyle(e.actionShow?"transform: translateY(0)":"transform: translateY(100%)")},[e.taskNodeShow?(n.openBlock(!0),n.createElementBlock(n.Fragment,{key:0},n.renderList(e.taskNodeList,h=>(n.openBlock(),n.createElementBlock("div",{class:"top-elips-items",onClick:u=>e.handleGet(h),key:h.taskId},n.toDisplayString(h.name),9,mE))),128)):(n.openBlock(!0),n.createElementBlock(n.Fragment,{key:1},n.renderList(e.actionBtn,h=>(n.openBlock(),n.createElementBlock("div",{class:"top-elips-items",onClick:u=>h.click(h.name),key:h.name},n.toDisplayString(h.name),9,gE))),128)),n.createElementVNode("div",{class:"top-elips-items top-elips-items--cancel",onClick:t[2]||(t[2]=(...h)=>e.handleActionClose&&e.handleActionClose(...h))}," \u53D6\u6D88 ")],4)):n.createCommentVNode("",!0),n.createElementVNode("div",{class:"top-elips-mask",onClick:t[3]||(t[3]=(...h)=>e.handleActionClose&&e.handleActionClose(...h)),style:n.normalizeStyle(e.actionShow?"visibility: visible; opacity: .7;":"visibility: hidden; opacity: 0;")},null,4),n.createVNode(f,n.mergeProps({visible:e.visibleSong,ref:"actionPop",request:e.request,appId:e.processStatus.appId,id:e.formData.businessKey,resubmit:!0},e.restartDataS,{onSuccessFn:e.endFunction,selfList:e.selfList,onChange:e.handleTestsss,isCheckType:e.isCheckType,isOrgType:e.isOrgType,isCodeType:e.isCodeType}),null,16,["visible","request","appId","id","onSuccessFn","selfList","onChange","isCheckType","isOrgType","isCodeType"]),n.createVNode(l,{ref:"cctaskTopPopup",titleText:e.cctaskTopPopupTitle,visible:e.cctaskTopPopup,"onUpdate:visible":t[4]||(t[4]=h=>e.cctaskTopPopup=h),isDrawer:!0},{default:n.withCtx(()=>[(n.openBlock(),n.createBlock(n.resolveDynamicComponent(e.operationCom),{ref:"cctaskOperationRef",param:e.operationParam,onHandleClosecctaskTopPopup:e.handleClosecctaskTopPopup},{default:n.withCtx(()=>[n.createElementVNode("div",yE,[n.renderSlot(e.$slots,"completeSlot",{},void 0,!0)])]),_:3},40,["param","onHandleClosecctaskTopPopup"]))]),_:3},8,["titleText","visible"])])}const kE=pe($0,[["render",AE],["__scopeId","data-v-20b8cf08"]]);qe.TopProcess=kE,qe.TopSumbitPopup=Ma,qe.ViewAttchList=Kr,qe.attchViews=ti,Object.defineProperties(qe,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}})});
29
+ <svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" width="`+c.width+'" height="'+c.height+'" viewBox="'+c.x+" "+c.y+" "+c.width+" "+c.height+'" version="1.1">'+l+a+"</svg>"}catch(s){i=s}if(this._emit("saveSVG.done",{error:i,svg:t}),i)throw i;return{svg:t}},ue.prototype._setDefinitions=function(e){this._definitions=e},ue.prototype.getModules=function(){return this._modules},ue.prototype.clear=function(){!this.getDefinitions()||Rt.prototype.clear.call(this)},ue.prototype.destroy=function(){Rt.prototype.destroy.call(this),mi(this._container)},ue.prototype.on=function(e,t,i,s){return this.get("eventBus").on(e,t,i,s)},ue.prototype.off=function(e,t){this.get("eventBus").off(e,t)},ue.prototype.attachTo=function(e){if(!e)throw new Error("parentNode required");this.detach(),e.get&&e.constructor.prototype.jquery&&(e=e.get(0)),typeof e=="string"&&(e=At(e)),e.appendChild(this._container),this._emit("attach",{}),this.get("canvas").resized()},ue.prototype.getDefinitions=function(){return this._definitions},ue.prototype.detach=function(){const e=this._container,t=e.parentNode;!t||(this._emit("detach",{}),t.removeChild(e))},ue.prototype._init=function(e,t,i){const s=i.modules||this.getModules(i),r=i.additionalModules||[],o=[{bpmnjs:["value",this],moddle:["value",t]}],a=[].concat(o,s,r),l=_(kp(i,["additionalModules"]),{canvas:_({},i.canvas,{container:e}),modules:a});Rt.call(this,l),i&&i.container&&this.attachTo(i.container)},ue.prototype._emit=function(e,t){return this.get("eventBus").fire(e,t)},ue.prototype._createContainer=function(e){const t=Fe('<div class="bjs-container"></div>');return we(t,{width:Ta(e.width),height:Ta(e.height),position:e.position}),t},ue.prototype._createModdle=function(e){const t=_({},this._moddleExtensions,e.moddleExtensions);return new Nf(t)},ue.prototype._modules=[];function vn(e,t){return e.warnings=t,e}function Uf(e){const i=/unparsable content <([^>]+)> detected([\s\S]*)$/.exec(e.message);return i&&(e.message="unparsable content <"+i[1]+"> detected; this may indicate an invalid BPMN 2.0 diagram file"+i[2]),e}const jf={width:"100%",height:"100%",position:"relative"};function Ta(e){return e+(Dt(e)?"px":"")}function _f(e,t){return t&&nt(e.diagrams,function(i){return i.id===t})||null}function Gf(e){const i='<a href="http://bpmn.io" target="_blank" class="bjs-powered-by" title="Powered by bpmn.io" >'+ba+"</a>",s=Fe(i);we(At("svg",s),Ca),we(s,wa,{position:"absolute",bottom:"15px",right:"15px",zIndex:"100"}),e.appendChild(s),Wt.bind(s,"click",function(r){Qf(),r.preventDefault()})}function wi(e){ue.call(this,e)}lt(wi,ue),wi.prototype._modules=[th,Eh,Bo,Bh,Eo],wi.prototype._moddleExtensions={};var qf=/^djs-cursor-.*$/;function Na(e){var t=zt(document.body);t.removeMatching(qf),e&&t.add("djs-cursor-"+e)}function Jf(){Na(null)}var Hf=5e3;function Kf(e,t){t=t||"element.click";function i(){return!1}return e.once(t,Hf,i),function(){e.off(t,i)}}function Ba(e,t){return{x:e.x-t.x,y:e.y-t.y}}var zf=15;function Ia(e,t){var i;function s(l){return a(l.originalEvent)}e.on("canvas.focus.changed",function(l){l.focused?e.on("element.mousedown",500,s):e.off("element.mousedown",s)});function r(l){var c=i.start,f=i.button,h=Vo(l),u=Ba(h,c);if(!i.dragging&&Wf(u)>zf&&(i.dragging=!0,f===0&&Kf(e),Na("grab")),i.dragging){var g=i.last||i.start;u=Ba(h,g),t.scroll({dx:u.x,dy:u.y}),i.last=h}l.preventDefault()}function o(l){Wt.unbind(document,"mousemove",r),Wt.unbind(document,"mouseup",o),i=null,Jf()}function a(l){if(!uo(l.target,".djs-draggable")){var c=l.button;if(!(c>=2||l.ctrlKey||l.shiftKey||l.altKey))return i={button:c,start:Vo(l)},Wt.bind(document,"mousemove",r),Wt.bind(document,"mouseup",o),!0}}this.isActive=function(){return!!i}}Ia.$inject=["eventBus","canvas"];function Wf(e){return Math.sqrt(Math.pow(e.x,2)+Math.pow(e.y,2))}const Js={__init__:["moveCanvas"],moveCanvas:["type",Ia]};var Yf=new Is("tt");function Zf(e){var t=Fe('<div class="djs-tooltip-container" />');return we(t,{position:"absolute",width:"0",height:"0"}),e.insertBefore(t,e.firstChild),t}function Xf(e,t,i){we(e,{left:t+"px",top:i+"px"})}function Hs(e,t){e.style.display=t===!1?"none":""}var xa="djs-tooltip",Ks="."+xa;function De(e,t){this._eventBus=e,this._canvas=t,this._ids=Yf,this._tooltipDefaults={show:{minZoom:.7,maxZoom:5}},this._tooltips={},this._tooltipRoot=Zf(t.getContainer());var i=this;fi.bind(this._tooltipRoot,Ks,"mousedown",function(s){s.stopPropagation()}),fi.bind(this._tooltipRoot,Ks,"mouseover",function(s){i.trigger("mouseover",s)}),fi.bind(this._tooltipRoot,Ks,"mouseout",function(s){i.trigger("mouseout",s)}),this._init()}De.$inject=["eventBus","canvas"],De.prototype.add=function(e){if(!e.position)throw new Error("must specifiy tooltip position");if(!e.html)throw new Error("must specifiy tooltip html");var t=this._ids.next();return e=_({},this._tooltipDefaults,e,{id:t}),this._addTooltip(e),e.timeout&&this.setTimeout(e),t},De.prototype.trigger=function(e,t){var i=t.delegateTarget||t.target,s=this.get(bs(i,"data-tooltip-id"));!s||(e==="mouseover"&&s.timeout&&this.clearTimeout(s),e==="mouseout"&&s.timeout&&(s.timeout=1e3,this.setTimeout(s)))},De.prototype.get=function(e){return typeof e!="string"&&(e=e.id),this._tooltips[e]},De.prototype.clearTimeout=function(e){if(e=this.get(e),!!e){var t=e.removeTimer;t&&(clearTimeout(t),e.removeTimer=null)}},De.prototype.setTimeout=function(e){if(e=this.get(e),!!e){this.clearTimeout(e);var t=this;e.removeTimer=setTimeout(function(){t.remove(e)},e.timeout)}},De.prototype.remove=function(e){var t=this.get(e);t&&(mi(t.html),mi(t.htmlContainer),delete t.htmlContainer,delete this._tooltips[t.id])},De.prototype.show=function(){Hs(this._tooltipRoot)},De.prototype.hide=function(){Hs(this._tooltipRoot,!1)},De.prototype._updateRoot=function(e){var t=e.scale||1,i=e.scale||1,s="matrix("+t+",0,0,"+i+","+-1*e.x*t+","+-1*e.y*i+")";this._tooltipRoot.style.transform=s,this._tooltipRoot.style["-ms-transform"]=s},De.prototype._addTooltip=function(e){var t=e.id,i=e.html,s,r=this._tooltipRoot;i.get&&i.constructor.prototype.jquery&&(i=i.get(0)),it(i)&&(i=Fe(i)),s=Fe('<div data-tooltip-id="'+t+'" class="'+xa+'">'),we(s,{position:"absolute"}),s.appendChild(i),e.type&&zt(s).add("djs-tooltip-"+e.type),e.className&&zt(s).add(e.className),e.htmlContainer=s,r.appendChild(s),this._tooltips[t]=e,this._updateTooltip(e)},De.prototype._updateTooltip=function(e){var t=e.position,i=e.htmlContainer;Xf(i,t.x,t.y)},De.prototype._updateTooltipVisibilty=function(e){v(this._tooltips,function(t){var i=t.show,s=t.htmlContainer,r=!0;i&&((i.minZoom>e.scale||i.maxZoom<e.scale)&&(r=!1),Hs(s,r))})},De.prototype._init=function(){var e=this;function t(i){e._updateRoot(i),e._updateTooltipVisibilty(i),e.show()}this._eventBus.on("canvas.viewbox.changing",function(i){e.hide()}),this._eventBus.on("canvas.viewbox.changed",function(i){t(i.viewbox)})};const zs={__init__:["tooltips"],tooltips:["type",De]},$f=e=>{var t=Object.prototype.toString,i={"[object Boolean]":"boolean","[object Number]":"number","[object String]":"string","[object Function]":"function","[object Array]":"array","[object Date]":"date","[object RegExp]":"regExp","[object Undefined]":"undefined","[object Null]":"null","[object Object]":"object"};return e instanceof Element?"element":i[t.call(e)]},Ws=e=>{var t=$f(e),i;if(t==="array")i=[];else if(t==="object")i={};else return e;if(t==="array")for(var s=0,r=e.length;s<r;s++)i.push(Ws(e[s]));else if(t==="object")for(var o in e)i[o]=Ws(e[o]);return i};function em(e,t="YYYY-MM-DD HH:mm:ss"){const i=new Date(e),s=i.getFullYear(),r=i.getMonth()+1,o=i.getDate(),a=i.getHours(),l=i.getMinutes(),c=i.getSeconds(),f=i.getDay(),u={YYYY:s,MM:r,DD:o,HH:a,mm:l,ss:c,ww:["\u65E5","\u4E00","\u4E8C","\u4E09","\u56DB","\u4E94","\u516D"][f]};for(let g in u)t=t.replace(g,u[g]);return t}function tm(e){e=Ws(e);const t={};e.forEach(s=>{t[s.historyActivityId]?t[s.historyActivityId].push(s):t[s.historyActivityId]=[s]});for(let s in t){const r=t[s];if(r.length>1){const o=e.findLast(a=>a.historyActivityId==s);o.assigneeName=Array.from(new Set(r.map(a=>a.assigneeName))).join("/")}}const i=[];return e.forEach(s=>{let{assigneeName:r,createTime:o,endTime:a,comments:l}=s;/Safari/.test(navigator.userAgent)&&!/Chrome/.test(navigator.userAgent)&&(o=o.replace(/-/g,"/"),a=a.replace(/-/g,"/"));const c={id:s.historyActivityId,class:!a&&s.historyActivityType!="candidate"?"nodePrimary":""};let f="";if(r){if(f=`<span title='${r}'>${r}</span><br>`,o&&(f+=`<span title='${o}'>${em(o,"YYYY-MM-DD HH:mm")}</span><br>`),l&&l.length>0){let u,{type:g,fullMessage:E}=l.find(I=>I.action=="AddComment")||{};g=="assigneeComment"&&(u="\u53D8\u66F4\u5BA1\u6838\u4EBA\uFF1A"+E,c.class="nodeWarn"),g=="dispatchComment"&&(u="\u8C03\u5EA6\uFF1A"+E,c.class="nodeWarn"),g=="transferComment"&&(u="\u8F6C\u529E\uFF1A"+E,c.class="nodeWarn"),g=="delegateComment"&&(u="\u59D4\u6258\uFF1A"+E,c.class="nodeWarn"),g=="rollbackComment"&&(u="\u9A73\u56DE\uFF1A"+E,c.class="nodeError"),g=="terminateComment"&&(u="\u7EC8\u6B62\uFF1A"+E,c.class="nodeError"),g=="addMultiInstanceComment"&&(u="\u52A0\u7B7E\uFF1A"+E,c.class="nodeWarn"),g=="deleteMultiInstanceComment"&&(u="\u51CF\u7B7E\uFF1A"+E,c.class="nodeError"),g=="withdrawComment"&&(u="\u64A4\u9500\uFF1A"+E,c.class="nodeWarn"),g=="deleteProcessComment"&&(u="\u5220\u9664\u6D41\u7A0B\uFF1A"+E,c.class="nodeError"),g=="cancelProcessComment"&&(u="\u64A4\u9500\u6D41\u7A0B\uFF1A"+E,c.class="nodeError"),g=="comment"&&(u="\u5BA1\u6279\uFF1A"+E,c.class="nodeSuccess"),u&&(f+=`<span title='${u}'>${u}</span>`)}c.tooltip=f}s.historyActivityType=="sequenceFlow"?c.class="lineWarn":!c.class&&s.historyActivityType!="candidate"&&(c.class="nodeSuccess");const h=i.findIndex(u=>u.id==s.historyActivityId);h!=-1?i.splice(h,1,c):i.push(c)}),i}function Sa(e){const t=[],i=[],s=[];return e.routeTxt&&e.routeTxt.length>0&&e.routeTxt.forEach(r=>{r.type==="user"?t.push(...r.ids.filter(o=>o&&o.trim()!=="")):r.type==="post"?i.push(...r.ids):r.type==="dept"&&s.push(...r.ids)}),{intersection:e.assigneeRetain=="true"?1:0,userIds:[...new Set(t)],postIds:[...new Set(i)],deptIds:[...new Set(s)]}}const IE="",im={name:"bpmn-look",props:{diagram:{type:String,default:"",required:!0},approvalData:{type:Array,default:()=>[]},isXml:{type:Boolean,default:!0}},data(){return{isAdd:!1,viewer:null,loading:!0}},mounted(){this.initViewer(),window.addEventListener("resize",this.canvasResize)},watch:{diagram:{async handler(e){let t=e;t&&this.isXml&&this.loadXml(t)},immediate:!0}},methods:{async getXml(e){let t={},i="";try{t=await api.repository.getXmlByProcessDefId({processDefId:e}),t.code==200&&(i=t.data)}catch(s){console.error(s)}return i},async initViewer(){this.viewer&&this.viewer.destroy();const e=Object.prototype.toString.call(wi)=="[object Function]"?wi:wi.default,t=Object.prototype.toString.call(zs)=="[object Object]"?zs:zs.default,i=Object.prototype.toString.call(Js)=="[object Object]"?Js:Js.default;this.viewer=new e({container:this.$refs.container,additionalModules:[t,i]}),this.viewer.on("import.done",({error:s})=>{s||(this.canvasResize(),this.addApprovalData(),this.enableTouchMove())})},canvasResize(){this.viewer&&this.viewer.get("canvas").zoom(1,"auto")},enableTouchMove(){const e=this.viewer.get("canvas"),t=e._svg,i=document.querySelector(".viewport"),s=document.querySelector(".djs-tooltip-container");let r=!1,o,a,l=0,c=0,f=0,h=0;t.addEventListener("touchstart",u=>{r=!0;const g=u.touches[0];o=g.clientX,a=g.clientY;const E=i.getAttribute("transform").match(/matrix\(([^)]+)\)/)[1].split(/\s*,\s*|\s+/);l=parseFloat(E[4]),c=parseFloat(E[5]);const I=this.getTransformMatrix(s.style.transform);this.isAdd?(f=parseFloat(I[4]),h=parseFloat(I[5])):(f=parseFloat(I[4])+30,h=parseFloat(I[5])+16,this.isAdd=!0)}),t.addEventListener("touchmove",u=>{if(!r)return;const g=u.touches[0],E=g.clientX-o,I=g.clientY-a;c!==void 0&&(i.setAttribute("transform",`matrix(0.679276 0 0 0.679276 ${l+E} ${c+I})`),s.setAttribute("style",`position: absolute; width: 0px; height: 0px; transform: matrix(0.615, 0, 0, 0.615, ${f+E}, ${h+I});`)),e._cachedViewbox&&(e._cachedViewbox.x=E,e._cachedViewbox.y=I),u.preventDefault()}),t.addEventListener("touchend",()=>{r=!1})},getTransformMatrix(e){if(!e||e==="none")return[1,0,0,1,0,0];const t=e.match(/matrix(3d)?\(([^)]+)\)/i);if(!t)return null;const i=t[2].split(/\s*,\s*|\s+/).map(parseFloat);return t[1]!=="3d"&&i.length===6||t[1]==="3d"&&i.length===16?i:null},setNodeColor(e){const t=this.viewer.get("canvas"),i=this.viewer.get("elementRegistry"),s=this.viewer.get("tooltips");e.forEach(r=>{if(r.id&&r.class&&t.addMarker(r.id,r.class),r.id&&r.tooltip){const o=i.get(r.id);if(o){let{x:a,y:l,type:c}=o;["bpmn:StartEvent","bpmn:EndEvent"].includes(c)?(a=a-45,l=l+65):["bpmn:UserTask"].includes(c)&&(a=a-10,l=l+90),s.add({position:{x:a,y:l},html:r.tooltip})}}})},addApprovalData(){if(!this.approvalData||this.approvalData.length==0)return;const e=tm(this.approvalData);e&&e.length>0&&this.setNodeColor(e)},async loadXml(e){this.viewer||await this.initViewer();try{const{warnings:t}=await this.viewer.importXML(e);t.length&&this.$emit("warning",t)}catch(t){this.$emit("error",{message:"XML \u52A0\u8F7D\u5931\u8D25",detail:t.message}),console.error("XML \u52A0\u8F7D\u5931\u8D25:",t)}}},beforeDestroy(){window.removeEventListener("resize",this.canvasResize),this.viewer&&this.viewer.destroy()}},nm={ref:"container",class:"bpmn-look"};function sm(e,t,i,s,r,o){return n.openBlock(),n.createElementBlock("div",nm,null,512)}const Da=pe(im,[["render",sm],["__scopeId","data-v-634aec1f"]]),rm="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAMgAAADICAYAAACtWK6eAAAAAXNSR0IArs4c6QAAByFJREFUeF7t19HJLEUUhdHpQEzEOMREjOMmIsZhIgYyou8KvTecA1Xrgm+zLXrV/9H08/GPAIH/FHjYECDw3wIC8ddB4H8EBOLPg4BA/A0QyAS8QTI3q0sEBHLJRXvMTEAgmZvVJQICueSiPWYmIJDMzeoSAYFcctEeMxMQSOZmdYmAQC65aI+ZCQgkc7O6REAgl1y0x8wEBJK5WV0iIJBLLtpjZgICydysLhEQyCUX7TEzAYFkblaXCAjkkov2mJmAQDI3q0sEBHLJRXvMTEAgmZvVJQICueSiPWYmIJDMrVp9v9+fP5/PHy//J788z/Pny42flwICKQGTuUAStZ2NQBbcBbKAHh4pkBCumQmk0ZvdCmTW+9/TBLKAHh4pkBCumQmk0ZvdCmTW2xtkwbs5UiCNXrj1BgnhFmYCWUAXyAJ6eKRAQrhmJpBGb3YrkFlv3yAL3s2RAmn0wq03SAi3MBPIArpAFtDDIwUSwjUzgTR6s1uBzHr7Blnwbo4USKMXbr1BQriFmUAW0AWygB4eKZAQrpkJpNGb3Qpk1ts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iAAEJkmiG6VOAgPh0o1UQBQhIkEQzTJ8CBMSnG62CKEBAgiSaYfoUICA+3WgVRAECEiTRDNOnAAHx6UarIAoQkCCJZpg+BQiITzdaBVGAgARJNMP0KUBAfLrRKogCBCRIohmmTwEC4tONVkEUICBBEs0wfQoQEJ9utAqiAAEJkmiG6VOAgPh0o1UQBQhIkEQzTJ8CBMSnG62CKEBAgiSaYfoUICA+3WgVRAECEiTRDNOnAAHx6UarIAoQkCCJZpg+BQiITzdaBVGAgARJNMP0KUBAfLrRKogCBCRIohmmTwEC4tONVkEUICBBEs0wfQoQEJ9utAqiAAEJkmiG6VPgf/UDKvbyCmTdAAAAAElFTkSuQmCC",am=at({name:"TopTips",props:{text:{default:"",type:String},type:{default:"default",type:String},statusTips:{default:!1,type:Boolean},domNode:{default:"",type:String},visible:{default:!1,type:Boolean}},data(){return{show:!1,status:"",timeOut:null}},computed:{error(){return rm},loading(){return om},success(){return Ys}},watch:{type:{handler(e,t){if(e=="loading"){clearInterval(this.timeOut);return}else this.timeOut=setTimeout(()=>{this.show=!1},1500)},immediate:!0,deep:!0}},mounted(){this.$nextTick(()=>{const e=document.getElementsByClassName("process-warp")[0]?document.getElementsByClassName("process-warp")[0]:document.getElementsByClassName("sumbmitPopup-index-sumbit")[0].getElementsByClassName("top-popup")[0];e.append?e.append(this.$el):e.appendChild(this.$el)})},methods:{handleOpen(){this.show||(this.show=!0,this.type=="loading"?clearInterval(this.timeOut):this.timeOut=setTimeout(()=>{this.show=!1},1500))},handleClose(){this.show=!1}}}),xE="",lm={key:0},cm={key:0,class:"top-tipss-text"},pm={class:"top-tipss-status"},dm={key:0,class:"top-tipss-loadinig"},hm=["src"],um={key:0,class:"top-tipss-status-text"},fm={key:1,class:"top-tipss-success"},mm=["src"],gm={key:0,class:"top-tipss-status-text"},ym={key:2,class:"top-tipss-error"},Am=["src"],km={key:0,class:"top-tipss-status-text"};function Em(e,t,i,s,r,o){return e.show?(n.openBlock(),n.createElementBlock("div",lm,[e.statusTips?(n.openBlock(),n.createElementBlock("div",{key:1,class:"top-tipss",style:n.normalizeStyle(e.show?"visibility: visible; opacity: 1;":"visibility: hidden; opacity: 0;")},[n.createElementVNode("div",pm,[e.type=="loading"?(n.openBlock(),n.createElementBlock("div",dm,[n.createElementVNode("img",{src:e.loading},null,8,hm),e.text?(n.openBlock(),n.createElementBlock("div",um,n.toDisplayString(e.text),1)):n.createCommentVNode("",!0)])):n.createCommentVNode("",!0),e.type=="success"?(n.openBlock(),n.createElementBlock("div",fm,[n.createElementVNode("img",{src:e.success},null,8,mm),e.text?(n.openBlock(),n.createElementBlock("div",gm,n.toDisplayString(e.text),1)):n.createCommentVNode("",!0)])):n.createCommentVNode("",!0),e.type=="error"?(n.openBlock(),n.createElementBlock("div",ym,[n.createElementVNode("img",{src:e.error},null,8,Am),e.text?(n.openBlock(),n.createElementBlock("div",km,n.toDisplayString(e.text),1)):n.createCommentVNode("",!0)])):n.createCommentVNode("",!0)])],4)):(n.openBlock(),n.createElementBlock("div",{key:0,class:"top-tipss",style:n.normalizeStyle(e.show?"visibility: visible; opacity: 1;":"visibility: hidden; opacity: 0;")},[e.text?(n.openBlock(),n.createElementBlock("div",cm,n.toDisplayString(e.text),1)):n.createCommentVNode("",!0)],4)),n.createElementVNode("div",{class:"top-tipss-mask",style:n.normalizeStyle(e.show&&e.statusTips?"visibility: visible; opacity: .7;":"visibility: hidden; opacity: 0;")},null,4)])):n.createCommentVNode("",!0)}const st=pe(am,[["render",Em],["__scopeId","data-v-239e459d"]]),bm="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAEgAAABICAYAAABV7bNHAAAAAXNSR0IArs4c6QAAEmBJREFUeF7tnAt0VdWZx397n3PvDUlISHgEkJfDGxXRVnGqq2o7PtvB1hl0fFun6ji+xhfgzCioq5WA2hFxptUOY23VqlNf06laW7VrVUfs8gEqgmBFRZ4hIRBIcu85e8/69j4HriEJAYLiY691181Ncs/Z+3/++/u+/b0U3T1mWM0AAlZhmaEirFU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ztCafaQ1xZai1hQHp60p+vmEpsEV3dyaYiO8Ka0p1vrcpFfba01h+Mi1pihwV+N1SWuKnWyZs/PWS9vmJopTrOJ4kUsiwIVRzQXXx8M1Nxlfg9rfNzdRkhg6oKcvt5QjS1WPpLlJOzX2aS28a27S7GvLJL1m1SaQhMvFddg312AXrvHNTcqkuUkGLYyR5ibW8or6RJubtN1uxe1xZtn+seF0FOcpGKIUpZJkKvaIa48T+8QGSac7fHBRe5zeSbmltMfp2aY9zqYk9C3tcdYXtcf50KftSU6TyLii9jixtWyx8AGWeYHm/nVTVNJHyOqdaWhSvNSdZ1B7UjfpqtKnB/2N4UQUVwFjlEoaLFmMa7CknH2iXEcp7d633r+zBkvSXCl5SaWQdSFxabCkXJcXAUbUgTRYulVrfvPpN1hKQWqnRVfVTFupDOMIOSwwTLAwWmnGttuiqyhVRhb9sRZdRY9OmNJeiy5reFvBklhadEW8ZDWLGqapxq3G307Km/aeffcwyPcWChB1mjR5GzHH5ta1MjCMGI5mnIGRGgYFmr4KpHawp1JJkzd/5tm+yVsyY2uRcu1N0vYsNqwzsELDUgyLopB3++ZYuWyvbPLW0XbrpE1gFg5DUYFvC3iQy+U0rp3XMKUZ6hSmL9Nejnb5nfK315A2gZaNeXjpk2wT+P9KELohNtx5+AAAAABJRU5ErkJggg==",Cm=at({name:"attchViews",components:{TopTips:st,PreviewImage:un,PreView:Qr,TopPopup:Ke},props:{request:{type:Function,defalut:()=>{}},limit:{type:[Number,String],default:4},changeFn:{type:Function,default:null},requires:{default:!1},inComing:{type:Array,defalut:()=>[]},deletFn:{type:Function},onlyShow:{type:Boolean,default:!1},linkUrl:{type:Function,defalut:null}},data(){return{lists:[],filesArr:[],imgIcon:["jpg","jpeg","png","gif"],docIcon:["doc","docx"],xlsIcon:["xls","xlsx"],zipIcon:["zip","rar","7z"],extension:["bmp","gif","jpg","jpeg","png","doc","docx","xls","xlsx","ppt","pptx","html","htm","txt","wps","rar","zip","gz","bz2","mp4","avi","rmvb","pdf"],current:"",buttonLoading:!1,handleCloseType:!0,uploadState:!0,textTips:"",statusTips:!1,typeTips:"success",visible:!1,indexd:0,visibleS:!1,fileUrl:""}},watch:{inComing:{handler(e,t){e&&(this.filesArr=[].concat(e),this.emitView())},immediate:!0,deep:!0}},computed:{haveCount(){return this.limit==-1?100:this.limit-this.filesArr.length},addFile(){return bm},del(){return Ur},doc(){return jr},file(){return _r},image(){return Gr},pdf(){return qr},xls(){return Jr},zip(){return Hr}},mounted(){this.$nextTick(()=>{let e=document.createElement("input");e.type="file",e.className="upload-input",e.style="opacity: 0;position: absolute;width:100%;height:100%;visibility: hidden;",e.multiple=!0,e.id="fileUp",e.addEventListener("change",this.handleSelect),document.getElementById("inputfile").appendChild(e)})},methods:{handleClick(){if(typeof nativeMethod<"u"&&nativeMethod.vueSelectFile&&nativeMethod.vueSelectFile(2,"*",this.limit||1),this.haveCount<=0){this.handleTips(`\u6700\u591A\u4E0A\u4F20${this.limit}\u4E2A\u6587\u4EF6`,!1,"success");return}document.getElementById("fileUp").click()},async handleSelect(e,t){this.handleTips("\u4E0A\u4F20\u4E2D",!0,"loading");const i=Array.from(e.target.files);document.getElementById("fileUp").value="";let s=0,r=this.haveCount>i.length?i.length:this.haveCount;try{for(let o=0;o<r;o++)if(this.extension.includes(i[o].name.substring(i[o].name.lastIndexOf(".")+1))){const a=new FormData;a.append("file",i[o]);const l=await this.request.post("/file/upload",a,{headers:{"Content-Type":"multipart/form-data"}});if(l.code===200){if(this.filesArr.length>0){for(let c=0;c<this.filesArr.length;c++)if(l.name==this.filesArr[c].name&&s++,this.filesArr[c].name.includes(`(${s})`)&&s++,s>0){let f=l.name.lastIndexOf(".");l.name=`${l.name.substring(0,f)} (${s}) .${l.name.substring(l.name.lastIndexOf(".")+1)}`}}this.filesArr.push(l.data)}else{this.handleTips("\u4E0A\u4F20\u5931\u8D25",!0,"error"),this.viewImage();return}}else{this.handleTips(`\u6587\u4EF6${i[o].name}\u683C\u5F0F\u9519\u8BEF,\u8BF7\u91CD\u65B0\u4E0A\u4F20`,!0,"error");return}this.handleTips("\u4E0A\u4F20\u6210\u529F",!0,"success"),this.viewImage(),this.emitView()}catch{this.handleTips("\u4E0A\u4F20\u5931\u8D25",!0,"error"),this.emitView()}},handleDel(e,t){if(this.deletFn){if(this.deletFn(t)===!1){this.handleTips("\u5220\u9664\u5931\u8D25",!0,"error");return}this.filesArr.splice(e,1),this.emitView()}else this.filesArr.splice(e,1),this.emitView()},viewFile(e,t){this.imgIcon.includes(e.name.substring(e.name.lastIndexOf(".")+1).toLowerCase())?(this.indexd=this.lists.indexOf(e.url),this.visible=!0):e.url&&(this.fileUrl=e.url,this.visibleS=!0)},viewImage(){this.lists=[];let e=[];this.filesArr.map((t,i)=>{this.imgIcon.includes(t.name.substring(t.name.lastIndexOf(".")+1).toLowerCase())}),e=this.filesArr.filter(t=>this.imgIcon.includes(t.name.substring(t.name.lastIndexOf(".")+1).toLowerCase())),e.forEach((t,i)=>{this.lists.push(t.url)})},emitView(){this.$emit("getValue",this.filesArr)},clearData(){this.filesArr=[]},handleTips(e,t,i){this.textTips=e,this.statusTips=t,this.typeTips=i,this.$refs.topTips.handleOpen()}}}),SE="",wm={class:"attch-upload"},Tm={key:0,class:"attch-upload-mask"},Nm={class:"attch-upload-body"},Bm={class:"upload-header"},Im={class:"upload-header-title"},xm={key:0,class:"upload-header-title--re"},Sm={class:"upload-header-upload"},Dm=["src"],Pm={class:"upload-body"},Mm={key:0,class:"upload-list"},Vm={class:"list-items-icon"},Om=["src"],vm=["src"],Rm=["src"],Lm=["src"],Fm=["src"],Qm=["src"],Um={class:"list-items-info"},jm={class:"info-name"},_m={class:"info-attribute"},Gm={class:"info-attribute-size"},qm=["onClick"],Jm={key:0,class:"list-items-operation"},Hm=["onClick"],Km=["src"];function zm(e,t,i,s,r,o){const a=n.resolveComponent("TopTips"),l=n.resolveComponent("PreviewImage"),c=n.resolveComponent("PreView"),f=n.resolveComponent("TopPopup");return n.openBlock(),n.createElementBlock("div",wm,[e.buttonLoading?(n.openBlock(),n.createElementBlock("div",Tm)):n.createCommentVNode("",!0),n.createElementVNode("div",Nm,[n.createElementVNode("div",Bm,[n.createElementVNode("div",Im,[t[3]||(t[3]=n.createTextVNode(" \u9644\u4EF6 ",-1)),e.requires?(n.openBlock(),n.createElementBlock("span",xm,"*")):n.createCommentVNode("",!0)]),n.createElementVNode("div",Sm,[e.onlyShow?n.createCommentVNode("",!0):(n.openBlock(),n.createElementBlock("div",{key:0,class:"upload-header-upload--item",id:"inputfile",onClick:t[0]||(t[0]=(...h)=>e.handleClick&&e.handleClick(...h))},[n.createElementVNode("img",{src:e.addFile},null,8,Dm),t[4]||(t[4]=n.createTextVNode("\u4E0A\u4F20\u9644\u4EF6 ",-1))]))])]),n.createElementVNode("div",Pm,[e.filesArr.length>0?(n.openBlock(),n.createElementBlock("div",Mm,[(n.openBlock(!0),n.createElementBlock(n.Fragment,null,n.renderList(e.filesArr,(h,u)=>(n.openBlock(),n.createElementBlock("div",{class:"list-items",key:h.uuid},[n.createElementVNode("div",Vm,[e.xlsIcon.includes(h.name.substring(h.name.lastIndexOf(".")+1).toLowerCase())?(n.openBlock(),n.createElementBlock("img",{key:0,class:"icon-img",src:e.xls},null,8,Om)):e.imgIcon.includes(h.name.substring(h.name.lastIndexOf(".")+1).toLowerCase())?(n.openBlock(),n.createElementBlock("img",{key:1,class:"icon-img",src:e.image},null,8,vm)):h.name.substring(h.name.lastIndexOf(".")+1).toLowerCase()=="pdf"?(n.openBlock(),n.createElementBlock("img",{key:2,class:"icon-img",src:e.pdf},null,8,Rm)):e.docIcon.includes(h.name.substring(h.name.lastIndexOf(".")+1).toLowerCase())?(n.openBlock(),n.createElementBlock("img",{key:3,class:"icon-img",src:e.doc},null,8,Lm)):e.zipIcon.includes(h.name.substring(h.name.lastIndexOf(".")+1).toLowerCase())?(n.openBlock(),n.createElementBlock("img",{key:4,class:"icon-img",src:e.zip},null,8,Fm)):(n.openBlock(),n.createElementBlock("img",{key:5,class:"icon-img",src:e.file},null,8,Qm))]),n.createElementVNode("div",Um,[n.createElementVNode("div",jm,n.toDisplayString(h.name),1),n.createElementVNode("div",_m,[n.createElementVNode("span",Gm,n.toDisplayString(h.fileSize<1024?h.fileSize:h.fileSize/1024>1024?parseFloat((h.fileSize/1024/1024).toFixed(2)):parseFloat((h.fileSize/1024).toFixed(2)))+n.toDisplayString(h.fileSize<1024?"b":parseFloat((h.fileSize/1024).toFixed(2))<1024?"kb":"M"),1),n.createElementVNode("span",{class:"info-attribute-views",onClick:g=>e.viewFile(h,u)}," \u9884\u89C8 ",8,qm)])]),e.onlyShow?n.createCommentVNode("",!0):(n.openBlock(),n.createElementBlock("div",Jm,[n.createElementVNode("div",{onClick:g=>e.handleDel(u,h),class:"list-items-operation-img"},[n.createElementVNode("img",{src:e.del},null,8,Km)],8,Hm)]))]))),128))])):n.createCommentVNode("",!0)])]),n.createVNode(a,{ref:"topTips",text:e.textTips,statusTips:e.statusTips,type:e.typeTips},null,8,["text","statusTips","type"]),n.createVNode(l,{images:e.lists,visible:e.visible,"onUpdate:visible":t[1]||(t[1]=h=>e.visible=h),indexd:e.indexd},null,8,["images","visible","indexd"]),n.createVNode(f,{visible:e.visibleS,"onUpdate:visible":t[2]||(t[2]=h=>e.visibleS=h),ref:"TopPopup",titleText:"\u9644\u4EF6\u9884\u89C8",isDrawer:"",isIndex:99},{default:n.withCtx(()=>[e.visibleS?(n.openBlock(),n.createBlock(c,{key:0,file:e.fileUrl},null,8,["file"])):n.createCommentVNode("",!0)]),_:1},8,["visible"])])}const ti=pe(Cm,[["render",zm],["__scopeId","data-v-69217b12"]]),DE="",Wm={name:"nf-flow",components:{attchViews:ti},props:{request:{type:Object,default:()=>{}},flowList:{type:Array,default:()=>[]}},data(){return{isFlag:!1,toggleText:"\u5C55\u5F00",commentMap:{assigneeComment:"\u53D8\u66F4\u5BA1\u6838\u4EBA",dispatchComment:"\u8C03\u5EA6",transferComment:"\u8F6C\u529E",delegateComment:"\u59D4\u6258",rollbackComment:"\u9A73\u56DE\u610F\u89C1",terminateComment:"\u7EC8\u6B62\u610F\u89C1",addMultiInstanceComment:"\u52A0\u7B7E",deleteMultiInstanceComment:"\u51CF\u7B7E",withdrawComment:"\u64A4\u9500",recallComment:"\u64A4\u56DE",deleteProcessComment:"\u5220\u9664\u6D41\u7A0B",skipComment:"\u8DF3\u8FC7",comment:"\u5BA1\u6279\u610F\u89C1"}}},methods:{handleClick(){this.isFlag=!this.isFlag,this.toggleText=this.isFlag?"\u6536\u8D77":"\u5C55\u5F00"}}},Ym={type:"flex"},Zm=["timestamp"],Xm={key:0},$m={key:0},eg={key:2,style:{color:"gray","font-size":"12px"}},tg={key:0},ig={key:1,style:{color:"gray","font-size":"12px"}},ng={key:2},sg={class:"p-file"},rg=["onClick"],og=["onClick"];function ag(e,t,i,s,r,o){return n.openBlock(),n.createElementBlock("div",Ym,[n.createElementVNode("div",null,[(n.openBlock(!0),n.createElementBlock(n.Fragment,null,n.renderList(i.flowList,(a,l)=>(n.openBlock(),n.createElementBlock(n.Fragment,null,[["candidate","sequenceFlow"].includes(a.historyActivityType)?n.createCommentVNode("",!0):(n.openBlock(),n.createElementBlock("div",{key:a.id,timestamp:a.endTime||a.createTime,placement:"top",class:"flow-item"},[n.createElementVNode("p",null,n.toDisplayString(a.assigneeName)+" \u5728 ["+n.toDisplayString(a.createTime)+"] \u5F00\u59CB\u5904\u7406 ["+n.toDisplayString(a.historyActivityType=="endEvent"?"\u7ED3\u675F":a.historyActivityName||"\u672A\u547D\u540D")+"] \u73AF\u8282 ",1),a.historyActivityDurationTime?(n.openBlock(),n.createElementBlock("p",Xm," \u4EFB\u52A1\u5386\u65F6 ["+n.toDisplayString(a.historyActivityDurationTime)+"] ",1)):n.createCommentVNode("",!0),a.comments&&a.comments.length>0?(n.openBlock(!0),n.createElementBlock(n.Fragment,{key:1},n.renderList(a.comments.filter(c=>c.action==="AddComment"),(c,f)=>(n.openBlock(),n.createElementBlock("p",{key:f},[f<1?(n.openBlock(),n.createElementBlock(n.Fragment,{key:0},[r.commentMap[c.type]?(n.openBlock(),n.createElementBlock("span",$m,n.toDisplayString(r.commentMap[c.type])+": ["+n.toDisplayString(c.fullMessage)+"] ",1)):n.createCommentVNode("",!0),a.comments.filter(h=>h.action==="AddComment").length>1?(n.openBlock(),n.createElementBlock("span",{key:1,style:{color:"#1989fa",float:"right"},onClick:t[0]||(t[0]=(...h)=>o.handleClick&&o.handleClick(...h))},[n.createTextVNode(n.toDisplayString(r.toggleText)+" ",1),n.createElementVNode("i",{class:n.normalizeClass([r.isFlag?"arrow-up":"arrow-down"])},null,2)])):n.createCommentVNode("",!0),c.time?(n.openBlock(),n.createElementBlock("p",eg,n.toDisplayString(c.time),1)):n.createCommentVNode("",!0)],64)):n.createCommentVNode("",!0),f>0&&r.isFlag?(n.openBlock(),n.createElementBlock(n.Fragment,{key:1},[r.commentMap[c.type]?(n.openBlock(),n.createElementBlock("span",tg,n.toDisplayString(r.commentMap[c.type])+": ["+n.toDisplayString(c.fullMessage)+"] ",1)):n.createCommentVNode("",!0),c.time?(n.openBlock(),n.createElementBlock("p",ig,n.toDisplayString(c.time),1)):n.createCommentVNode("",!0)],64)):n.createCommentVNode("",!0)]))),128)):n.createCommentVNode("",!0),a.endTime?(n.openBlock(),n.createElementBlock("p",ng,"\u7ED3\u675F\u65F6\u95F4: ["+n.toDisplayString(a.endTime)+"]",1)):n.createCommentVNode("",!0),n.createElementVNode("div",sg,[a.attachmentsFujian&&a.attachmentsFujian.length>0?(n.openBlock(),n.createElementBlock("div",{key:0,onClick:c=>e.$emit("view",a.attachmentsFujian)}," \u67E5\u770B\u9644\u4EF6",8,rg)):n.createCommentVNode("",!0),a.attachmentsQianzi&&a.attachmentsQianzi.length>0?(n.openBlock(),n.createElementBlock("div",{key:1,onClick:c=>e.$emit("view",a.attachmentsQianzi)}," \u67E5\u770B\u7B7E\u5B57",8,og)):n.createCommentVNode("",!0)])],8,Zm))],64))),256))])])}const lg=at({name:"TopTab",components:{processFlow:pe(Wm,[["render",ag],["__scopeId","data-v-5f7dda7c"]]),BpmnLook:Da,TopPopup:Ke,ViewAttchList:Kr,PreviewImage:un},props:{ProcessInsObj:{type:Object,default:()=>({})},processXml:{type:String,default:""},approvalData:{type:Array,default:()=>[]},tapList:{type:Array,default:()=>[]},selfTapList:{type:Array,default:()=>[]},track:{type:String,default:""},taskComment:{type:Array,default:()=>[]},trackList:{type:Array,default:()=>[]}},data(){return{trackUrl:"",taskCommentList:[],active:"",defaultTabList:[{label:"\u57FA\u672C\u4FE1\u606F",key:"a",type:"default",slot:"default"},{label:"\u6D41\u7A0B\u56FE",key:"b",type:"default",slot:"b"},{label:"\u5BA1\u6279\u8BB0\u5F55",key:"c",type:"default",slot:"c"}],isTapList:[{label:"\u57FA\u672C\u4FE1\u606F",key:"a",type:"default",slot:"default"},{label:"\u6D41\u7A0B\u56FE",key:"b",type:"default",slot:"b"},{label:"\u5BA1\u6279\u8BB0\u5F55",key:"c",type:"default",slot:"c"}],label:document.getElementsByClassName("tops-tab-header-items"),visible:!1,inList:[],visibleTack:!1,trackListss:[],signPreViewVisible:!1,signLists:[],indexd:0}},watch:{tapList:{handler(e,t){this.selfTapList.length||(this.isTapList=[].concat(this.defaultTabList),e.length>0&&e.forEach((i,s)=>{i.sort&&i.sort>1?this.isTapList.splice(i.sort-1,0,i):i.sort==1?this.isTapList.unshift(i):this.isTapList.push(i)}),this.active=this.isTapList[0].key)},immediate:!0,deep:!0},selfTapList:{handler(e,t){e.length&&(this.isTapList=[].concat(e),this.active=this.isTapList[0].key)},immediate:!0,deep:!0},track:{handler(e,t){e&&(this.trackUrl=e,window.location.protocol=="https:"&&(this.trackUrl=this.trackUrl.replace("http://59.53.91.230:8088/","https://kq.ddzg.cn:8093/"),this.trackUrl=this.trackUrl.replace("http://59.53.91.231:8088/","https://acme-test.ddzg.cn:2119/"),this.trackUrl=this.trackUrl.replace("http://121.40.143.183:80/","https://acme-aws.ddzg.cn/"),this.trackUrl=this.trackUrl.replace("http://121.40.143.183/","https://acme-aws.ddzg.cn/"),this.trackUrl=this.trackUrl.replace("http://acme-aws.ddzg.cn/","https://acme-aws.ddzg.cn/")))},immediate:!0,deep:!0},taskComment:{handler(e,t){e&&(this.taskCommentList=e)},immediate:!0,deep:!0},trackList:{handler(e,t){e&&(this.trackListss=e)},immediate:!0,deep:!0}},mounted(){this.tabAnimation(0)},methods:{formatFlow(e){return(e||[]).map(i=>({...i,attachmentsFujian:(i.attachments||[]).filter(s=>s.type!="signature"),attachmentsQianzi:(i.attachments||[]).filter(s=>s.type=="signature")}))},handleActive(e,t){e!==this.active&&(this.active=e,this.tabAnimation(t))},tabAnimation(e){if(this.label.length){let t=document.getElementsByClassName("bottom-line")[0],i;if(t.offsetWidth<this.label[e].offsetWidth-10){let s=(this.label[e].offsetWidth-t.offsetWidth-10)/2;i=`${this.label[e].offsetLeft+s}px`}else if(t.offsetWidth>this.label[e].offsetWidth-10){let s=(t.offsetWidth-this.label[e].offsetWidth+10)/2;i=`${this.label[e].offsetLeft-s}px`}else i=`${this.label[e].offsetLeft}px`;t.style.transition=".3s",t.style.transform=`translateX(${i})`}},viewList(e){this.visible=!0,this.inList=e},viewSign(e,t){this.signLists=e.filter(i=>i.digitalSignature).map(i=>i.digitalSignature),this.indexd=this.signLists.findIndex(i=>i==t),this.signPreViewVisible=!0}}}),ME="",cg={class:"tops-tab"},pg={class:"tops-tab-header"},dg=["onClick"],hg={key:0,class:"bottom-line"},ug={class:"tops-tab-body"},fg=["name"],mg={key:2,class:"textnone"},gg={key:2,style:{height:"100%"}},yg={key:1,class:"textnone"},Ag={class:"seal-list__item--option"},kg={style:{"max-width":"100px"}},Eg={class:"seal-list__item--option"},bg={style:{"max-width":"100px"}},Cg={class:"seal-list__item--option"},wg={style:{"max-width":"100px"}};function Tg(e,t,i,s,r,o){const a=n.resolveComponent("BpmnLook"),l=n.resolveComponent("processFlow"),c=n.resolveComponent("ViewAttchList"),f=n.resolveComponent("TopPopup"),h=n.resolveComponent("PreviewImage");return n.openBlock(),n.createElementBlock("div",cg,[n.createElementVNode("div",pg,[(n.openBlock(!0),n.createElementBlock(n.Fragment,null,n.renderList(e.isTapList,(u,g)=>(n.openBlock(),n.createElementBlock("div",{class:n.normalizeClass(["tops-tab-header-items",[u.key===e.active?"active":""]]),onClick:E=>e.handleActive(u.key,g)},n.toDisplayString(u.label),11,dg))),256)),e.isTapList.length?(n.openBlock(),n.createElementBlock("div",hg)):n.createCommentVNode("",!0)]),n.createElementVNode("div",ug,[(n.openBlock(!0),n.createElementBlock(n.Fragment,null,n.renderList(e.isTapList,u=>n.withDirectives((n.openBlock(),n.createElementBlock("div",{key:u.key,style:{height:"100%"},class:n.normalizeClass([u.key==="c"&&"tops-tab-body-taskcommentlist"])},[u.key==="a"&&u.type==="default"?n.renderSlot(e.$slots,"default",{key:0},void 0,!0):n.createCommentVNode("",!0),e.active===u.key&&u.key==="b"&&u.type==="default"?(n.openBlock(),n.createElementBlock("div",{key:1,class:"uph-tab-b",style:{height:"100%"},name:u.slot},[e.processXml?(n.openBlock(),n.createElementBlock("div",{key:0,style:{padding:"10px 20px",color:"#1389ff"},onClick:t[0]||(t[0]=()=>e.visibleTack=!0)}," \u67E5\u770B\u6D41\u7A0B\u8282\u70B9\u4FE1\u606F ")):n.createCommentVNode("",!0),u.key==="b"&&e.processXml?(n.openBlock(),n.createBlock(a,{key:1,ref_for:!0,ref:"PreviewRef",diagram:e.processXml,approvalData:e.approvalData},null,8,["diagram","approvalData"])):(n.openBlock(),n.createElementBlock("div",mg," \u6682\u65E0\u6D41\u7A0B\u56FE "))],8,fg)):n.createCommentVNode("",!0),u.key==="c"&&u.type==="default"?(n.openBlock(),n.createElementBlock("div",gg,[u.key==="c"&&e.ProcessInsObj.flow?(n.openBlock(),n.createBlock(l,{key:0,request:e.ProcessInsObj.request,"flow-list":e.formatFlow(e.ProcessInsObj.flow),onView:e.viewList},null,8,["request","flow-list","onView"])):(n.openBlock(),n.createElementBlock("div",yg,"\u6682\u65E0\u6570\u636E"))])):n.createCommentVNode("",!0),u.type=="slot"?n.renderSlot(e.$slots,u.slot,{key:3},void 0,!0):n.createCommentVNode("",!0)],2)),[[n.vShow,e.active===u.key]])),128))]),n.createVNode(f,{visible:e.visible,"onUpdate:visible":t[1]||(t[1]=u=>e.visible=u),ref:"TopPopup",titleText:"\u9644\u4EF6\u5217\u8868",isDrawer:"",isIndex:5},{default:n.withCtx(()=>[n.createVNode(c,{inList:e.inList},null,8,["inList"])]),_:1},8,["visible"]),n.createVNode(h,{images:e.signLists,visible:e.signPreViewVisible,"onUpdate:visible":t[2]||(t[2]=u=>e.signPreViewVisible=u),indexd:e.indexd},null,8,["images","visible","indexd"]),n.createVNode(f,{visible:e.visibleTack,"onUpdate:visible":t[3]||(t[3]=u=>e.visibleTack=u),ref:"TopPopups",titleText:"\u6D41\u7A0B\u4FE1\u606F",isDrawer:"",width:"60vw"},{default:n.withCtx(()=>[e.trackListss&&e.trackListss.length?(n.openBlock(!0),n.createElementBlock(n.Fragment,{key:0},n.renderList(e.trackListss,(u,g)=>(n.openBlock(),n.createElementBlock("div",{key:u.id,class:"seal-list__item"},[n.createElementVNode("div",null,[n.createElementVNode("div",Ag,[t[4]||(t[4]=n.createElementVNode("span",null,"\u5E8F\u53F7",-1)),n.createElementVNode("span",kg,n.toDisplayString(g+1),1)]),n.createElementVNode("div",Eg,[t[5]||(t[5]=n.createElementVNode("span",null,"\u8282\u70B9\u540D\u79F0",-1)),n.createElementVNode("span",bg,n.toDisplayString(u.historyActivityName),1)]),n.createElementVNode("div",Cg,[t[6]||(t[6]=n.createElementVNode("span",null,"\u5BA1\u6279\u4EBA",-1)),n.createElementVNode("span",wg,n.toDisplayString(u.assigneeName),1)])])]))),128)):n.createCommentVNode("",!0)]),_:1},8,["visible"])])}const Ng=pe(lg,[["render",Tg],["__scopeId","data-v-3cb88319"]]),Bg="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAMgAAADICAYAAACtWK6eAAAAAXN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+9shyQyZCAY+2mBn1XEsgkSMARtPRbri0LJDkScGzZ0sBvSwNJigQcgQu/9eryQJIhAcfWDQ3+XgJIEiTgCF52y/UyQIKRgMOynQnOSAEJQgKOBItufYIckMFIwGHdzCTnJIEMQgKOJEu+5xmyQJyRgGPPViY6Kw3ECQk4Ei343qfIA+mMBBx7NzLZeYD8N5AO/7EoOJItd4/nAOQkxR1IwNFjGxPWAMj/hmJAAo6Ei93rSQA5k+QGJODotYlJ6wDkicGsQAKOpEvd81kAuZDmBSTg6LmFiWsB5JnhnEECjsQL3ftpAFmR6AmSa/5pnhWBFfoEICuHeUTy+Wb5svJzPiuSAECKDJI2fBIAiE+uVC2SAECKDJI2fBIAiE+uVC2SAECKDJI2fBIAiE+uVC2SAECKDJI2fBIAiE+uVC2SAECKDJI2fBIAiE+uVC2SAECKDJI2fBIAiE+uVC2SAECKDJI2fBIAiE+uVC2SAECKDJI2fBIAiE+uVC2SAECKDJI2fBIAiE+uVC2SAECKDJI2fBIAiE+uVC2SAECKDJI2fBIAiE+uVC2SAECKDJI2fBIAiE+uVC2SAECKDJI2fBIAiE+uVC2SAECKDJI2fBIAiE+uVC2SAECKDJI2fBIAiE+uVC2SAECKDJI2fBIAiE+uVC2SAECKDJI2fBIAiE+uVC2SAECKDJI2fBIAiE+uVC2SAECKDJI2fBIAiE+uVC2SAECKDJI2fBIAiE+uVC2SAECKDJI2fBL4Csq/cvbKQGitAAAAAElFTkSuQmCC",xg=at({name:"TopDownSelect",props:{option:{type:Array,default:[]},optionStyle:{type:String,default:""},maskShow:{type:Boolean,default:!0},border:{type:Boolean,default:!1},defaultValue:{type:String,default:""},placeholder:{type:String,default:"\u8BF7\u9009\u62E9"},isSlots:{type:Boolean,default:!1},disibled:{type:Boolean,default:!1}},data(){return{value:{id:"",text:""},lists:[],expand:!1,active:"",activeItem:{name:""}}},watch:{option:{handler(e,t){e&&e.length&&(this.lists=e)},immediate:!0,deep:!0},defaultValue:{immediate:!0,deep:!0,handler(e,t){this.active=e;let s=JSON.parse(JSON.stringify(this.option)).filter((r,o)=>r.id==e);this.activeItem=s[0],this.activeItem&&this.$emit("change",this.activeItem)}}},computed:{arrow(){return Bg},check(){return Ig}},methods:{handleExpand(){this.disibled||(this.expand?this.expand=!1:this.expand=!0)},handleClick(e,t){this.active!=e.id&&(this.active=e.id,this.activeItem=e,this.expand=!1,this.$emit("change",this.activeItem,this.lists))},handleClose(){this.expand=!1,this.active="",this.activeItem={name:""}}}}),VE="",Sg={class:"top-select"},Dg={key:0,style:{position:"relative","z-index":"80"}},Pg=["src"],Mg=["onClick"],Vg=["src"];function Og(e,t,i,s,r,o){return n.openBlock(),n.createElementBlock("div",Sg,[e.isSlots?(n.openBlock(),n.createElementBlock("div",Dg,[n.renderSlot(e.$slots,"header",{data:{...e.activeItem,placeholder:e.placeholder}},void 0,!0)])):(n.openBlock(),n.createElementBlock("div",{key:1,class:n.normalizeClass(["top-select-menu",[e.border&&"top-select-menu-border",!e.activeItem&&"top-select-menu-placeholder"]]),onClick:t[0]||(t[0]=(...a)=>e.handleExpand&&e.handleExpand(...a))},[n.createTextVNode(n.toDisplayString(e.activeItem?e.activeItem.name:e.placeholder)+" ",1),e.disibled?n.createCommentVNode("",!0):(n.openBlock(),n.createElementBlock("img",{key:0,class:n.normalizeClass(["top-select-menu--arrow",[e.expand?"arrow-active":""]]),src:e.arrow},null,10,Pg))],2)),e.maskShow?(n.openBlock(),n.createElementBlock("div",{key:2,class:"top-select-option-mask",style:n.normalizeStyle(e.expand?"visibility: visible; opacity: .7;":"visibility: hidden; opacity: 0;")},null,4)):n.createCommentVNode("",!0),e.lists&&e.lists.length?(n.openBlock(),n.createElementBlock("div",{key:3,class:n.normalizeClass(["top-select-option",[e.border&&"top-select-option-border"]]),style:n.normalizeStyle(`${e.expand?"transform: translateY(2%);visibility: visible; opacity: 1;":"transform: translateY(-50%);visibility: hidden; opacity: 0"};${e.optionStyle?e.optionStyle:""}`)},[(n.openBlock(!0),n.createElementBlock(n.Fragment,null,n.renderList(e.lists,(a,l)=>(n.openBlock(),n.createElementBlock("div",{class:n.normalizeClass(["option-items",[e.active==a.id?"option-items-active":""]]),key:a.id,onClick:c=>e.handleClick(a,l)},[n.createTextVNode(n.toDisplayString(a.name)+" ",1),e.active==a.id?(n.openBlock(),n.createElementBlock("img",{key:0,class:"option-items-check",src:e.check},null,8,Vg)):n.createCommentVNode("",!0)],10,Mg))),128))],6)):n.createCommentVNode("",!0)])}const Pa=pe(xg,[["render",Og],["__scopeId","data-v-15c177a8"]]),vg="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAMgAAADICAYAAACtWK6eAAAAAXNSR0IArs4c6QAADGdJREFUeF7tnVFSHDkMhuVhD7AV9j1wksBJApeA5YnwlJBLQE4COUl63zOpHGAZb3l2mpqQGWYsS7as/qna2oe0ZeuXvpHd7W4Hwh8UgAJbFQjQBgpAge0KABBkBxR4RQEAgvSAAgAEOQAFeAqggvB0Q6uJKABAJhJouMlTAIDwdEOriSgAQCYSaLjJUwCA8HRDq4koAEAmEmi4yVMAgPB0Q6uJKNAdIH9+jEezGb0PkY5oRkeU/k/L/4ZlzAINtKAhBhpmC/r6/So8TiSWcFNBgS4AOfwcz2Kkt4HoA0ODgSI9hkhfAAtDvYk3MQ3IXx/jSZzR3apClIcq0v1TpJufV+H/aoM/KLBDAZOApGnUwQHdUaQThQgOkej+x2W4UbANk84UMAfIqmo8VNB5eFrQKapJBaU77sIUIG9u4zVzncENwUCBbuYX4Z5rAO18K2AGkMPP8UFpSrUrgphy7VJowv9uApAGleNlyIewoHPc5ZowCVtcbw5IxTXHruhjTbJLoQn+e1NADMExhn6YX4bjCeYBXLZYQRquO7YnRKBzLNrBy6hAswpisHqgioCL3xRoBojJ6rGSJxJ9wINE0JIUaAJI2ltFcbmFxOof1iJWI1N5XG0A+RTvKNBZZV+zugsLOsVt3yzJXF7cBpDb+E1sA6JWWCLdz/8O51rmYbcPBaoD0sH0Cov1PnK3yiirA2LgqfnewmKatbdUbi+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EdJf0wx7e7fmoDqzzakeAKSjIK+mWmnjYv4XBTvyU2GoRZ8/QgVRiIiWyRdnpJ9o9ePE7hCJ7n9chpsSfwBIiXoN247b/RsOwWzXuQvx1xwBIGbDjIFZUACAWIgCxmBWAQBiNjQYmAUFAIiFKGAMZhUAIGZDg4FZUACAWIgCxmBWAQBiNjQYmAUFAIiFKGAMZhUAIGZDg4FZUACAWIgCxmBWAQBiNjQYmAUFAIiFKGAMZhUAIGZDg4FZUOA/PPf9I/jtWsEAAAAASUVORK5CYII=",Rg=at({name:"TopSubmitPopup",components:{BpmnLook:Da,TopPopup:Ke,TopDownSelect:Pa,PreviewImage:un,departPerson:Tt.departPerson,TopTips:st},props:{isCheckType:{type:String,default:"0"},visible:{type:Boolean,default:!1},request:{type:[Function,Object],default:()=>({get:()=>{},post:()=>{},upload:()=>{}})},appId:{type:String,default:""},processName:{type:String,default:""},resubmit:{type:Boolean,default:!1},id:{type:String,default:""},businessType:{type:[String,Number]},businessDeptId:{type:[String,Number]},businessSubjectId:{type:[String,Number]},todoParameter:{type:Object,default(){return{}}},isClearHistory:{type:Boolean,default:!1},title:{type:String,default:"\u6D4B\u8BD5"},showType:{type:String,default:"all"},beforeFunction:{type:Function,default:null},manual:{type:Boolean,default:!1},selfList:{type:Array,default:()=>[]},isOrgType:{type:Array,default:()=>[0]},isCodeType:{type:Array,default:()=>[3]},extraParams:{type:Object,default:()=>{}},isSelectFirst:{type:Boolean,default:!0},showFlowForecast:{default:!1,type:Boolean},flowForecastFunction:{type:Function,default:null}},data(){return{approvalData:[],processXml:"",showFlow:!1,showFirstPerson:!1,selectDeptData:{},showDept:!1,deptList:[],show:!1,option:[],checkedItem:{},personList:[],checkedArray:[],trackUrl:[],taskurlshow:!1,isStyle:"width:35%",visiblePerson:!1,entity:{source:"0",type:this.isCheckType||"0",orgType:this.isOrgType||[0],request:this.request,codeType:this.isCodeType||[3],multiple:!1,checkedArray:[]},multiNodeParticipant:{},personListCopy:{},partNode:{},personObjId:"",processId:"",textTips:"",statusTips:!1,typeTips:"success",firstPerson:[],selectDefaultValue:"",businessTypeData:"",businessDeptIdData:"",idData:"",processNameData:"",titleData:"",todoParameterData:{},humanPerformerName:"",btnLoading:!1,flowForecastVisible:!1,flowForecastData:{completeTime:"",processBudgetModelList:[]},flowForecastProcessInstId:""}},watch:{visible:{async handler(e,t){this.show=e,this.$emit("update:visible",this.show),e?(this.selectDefaultValue="",this.handleOption()):this.$refs.TopDownSelect.handleClose()}},show:{handler(e,t){e||this.$refs.TopDownSelect.handleClose()}},businessType:{handler(e,t){this.businessTypeData=e},immediate:!0},businessDeptId:{handler(e,t){this.businessDeptIdData=e},immediate:!0},id:{handler(e,t){e&&(this.idData=e,this.resubmit&&this.getProcessInstance())},immediate:!0},processName:{handler(e,t){this.processNameData=e},immediate:!0},title:{handler(e,t){this.titleData=e},immediate:!0},todoParameter:{handler(e,t){this.todoParameterData=e},immediate:!0,deep:!0},selfList:{handler(e,t){e&&e.length&&(this.option=e,this.checkedItem=this.option[0],this.selectDefaultValue=this.checkedItem.id,this.$emit("change",this.checkedItem,this.option),this.handlefirstNode(this.checkedItem.id))},immediate:!0,deep:!0},resubmit:{handler(e,t){e&&this.getProcessInstance()}}},computed:{ProcessImg(){return vg}},methods:{getXmlByProcessDefId(e){this.request.get("/bladex/blade-workflow/process/getXmlByProcessDefId",{params:{processDefId:e}}).then(t=>{t.code==200&&(this.processXml=t.data)})},handleFlowSelect(){this.showFlow=!0},handleSumbitFlow(){this.showFlow=!1},handleDeptSelect(){this.showDept=!0},handleSumbitDept(){},async handleClickDept(e){this.businessDeptIdData=e.id,this.showDept=!1,this.selectDeptData=e,await this.getUserDataByDeptId(),this.showFirstPerson=!0,this.handleTips("",!1,"success")},handleSelect(){this.$refs.TopDownSelect.handleExpand()},async handleOption(){this.checkedItem={},this.firstPerson=[],this.personList=[],!(this.selfList&&this.selfList.length)&&(this.handleTips("",!0,"loading"),await this.request.post("/bladex/blade-workflow/repository/getProcessDefList",{businessCode:this.businessType,appId:this.appId,processGroupName:this.processNameData,...this.extraParams}).then(e=>{e.code==200&&(this.option=e.data,e.data&&e.data.length?(this.handleTips("",!1,"success"),(this.isSelectFirst||e.data.length==1)&&(this.checkedItem=this.option[0],this.selectDefaultValue=this.checkedItem.id,this.$emit("change",this.checkedItem,this.option),this.handlefirstNode(this.checkedItem.id))):(this.handleTips("\u6682\u65E0\u6D41\u7A0B\u8282\u70B9\u4FE1\u606F",!0,"error"),this.option=[]),this.businessDeptIdData||this.getNodeUserDept())}))},async getProcessInstance(){},async getNodeUserDept(){let e={};try{e=await this.request.get("/auth/dept/list/user/dept/selectTree")}catch(t){console.log(t,"error")}this.deptList=e.data||[]},async getNodeUser({deptId:e,intersection:t,userIds:i,postIds:s,deptIds:r}){return await this.request.post("/auth/post/getTaskAuditor",{deptId:e,intersection:t,userIds:i,postIds:s,deptIds:r})},getUserDataByDeptId(){this.firstPerson.map(async(e,t)=>{const i=Sa(e);let s;try{s=await this.getNodeUser({deptId:this.businessDeptIdData,intersection:(i.intersection,0),userIds:i.userIds,postIds:i.postIds,deptIds:i.deptIds})}catch(r){console.log(r,"error")}if(s.code==200){const r=this.firstPerson[t];r.userList=s.data,this.firstPerson[t]=r}})},async handlefirstNode(e){e&&(this.handleTips("",!0,"loading"),await this.request.get("/bladex/blade-workflow/repository/getAllProcessNode",{params:{processDefId:e}}).then(async t=>{if(t.code===200){if(this.firstPerson=t.data,await this.getNodeUserDept(),!this.businessDeptIdData){this.handleTips("",!1,"success");return}if(await this.getUserDataByDeptId(),this.showFirstPerson=!0,this.handleTips("",!1,"success"),Date.now())return;t.data.map(i=>{{let s={taskDefId:i.id,postIds:[]};i.routeTxt.postList.map(r=>{s.postIds.push(r.postId)}),this.request.post("/auth/post/getTaskAuditor",{deptId:this.businessDeptIdData,taskPostIds:[s]}).then(r=>{let o=[],a=[],l=!1;r.data.map(f=>{f.posts.map(h=>{a.push(...h.users),h.users.length==1?o.push(...h.users):l=!0})}),o.length>i.loopCardinality&&i.loopCardinality>0&&(l=!0),l&&(o=[]);let c=[];r.data[0].posts.map(f=>{c.push({...f,projectPost:!this.businessDeptIdData,id:f.users.map(h=>h.id),subjectId:f.subjectId})}),a.length==0&&this.$set(i,"noPersonnel",!0),o.length>0&&(this.personObjId=i.id,this.humanPerformerName=i.humanPerformerName,this.$set(i,"noPersonnel",!0),this.handleCallback(o)),i.positionArray=c})}}),this.getAfferentParticipantNodeList()}else this.firstPerson=[],this.getAfferentParticipantNodeList()}).catch(t=>{this.firstPerson=[],this.getAfferentParticipantNodeList()}))},async handleChange(e,t){this.handleTips("",!0,"loading"),this.checkedItem={},this.selectDefaultValue="",this.firstPerson=[],this.personList=[],this.checkedItem=e,this.selectDefaultValue=this.checkedItem.id,this.handlefirstNode(this.checkedItem.id),this.getXmlByProcessDefId(this.checkedItem.id),this.$emit("change",e,t)},async getAfferentParticipantNodeList(){await this.request.get("/aws/repository/getAfferentParticipantNodeList",{params:{processDefId:this.checkedItem.id}}).then(e=>{e.code==200&&(this.firstPerson&&this.firstPerson.length&&(e.data.map(t=>{if(t.humanPerformerName==="\u56FA\u5B9A\u89D2\u8272/\u5C97\u4F4D"){let i={taskDefId:t.id,postIds:[]};t.routeTxt.postList.map(s=>{i.postIds.push(s.postId)}),this.request.post("/auth/post/getTaskAuditor",{deptId:this.businessDeptIdData,taskPostIds:[i]}).then(s=>{let r=[],o=[],a=!1;s.data.map(c=>{c.posts.map(f=>{o.push(...f.users),f.users.length==1?r.push(...f.users):a=!0})}),r.length>t.loopCardinality&&t.loopCardinality>0&&(a=!0),a&&(r=[]);let l=[];s.data[0].posts.map(c=>{l.push({...c,projectPost:!(this.param.taskNode&&this.param.taskNode[0].vars&&this.param.taskNode[0].vars._businessDeptId),id:c.users.map(f=>f.id),subjectId:c.subjectId})}),o.length==0&&this.$set(t,"noPersonnel",!0),r.length>0&&(this.personObjId=t.id,this.humanPerformerName=t.humanPerformerName,this.$set(t,"noPersonnel",!0),this.handleCallback(r)),t.positionArray=l})}}),this.personList=e.data.filter(t=>!this.firstPerson.some(i=>i.id==t.id))),this.$emit("change",this.checkedItem,this.option)),this.$refs.topTips.handleClose()})},getDiagramUrl(){this.request.get("/aws/repository/getDiagramUrl",{params:{processDefId:this.checkedItem.id,diagramType:1,type:"pc"}}).then(e=>{e.code==200&&(this.trackUrl=[e.data])})},handleOpenPerson(e){if(this.visiblePerson=!0,this.personObjId=e.id,this.humanPerformerName=e.humanPerformerName,e.humanPerformerName==="\u4EFB\u610F\u6307\u5B9A")this.entity={source:"1",type:this.isCheckType||"0",orgType:this.isOrgType||[0],request:this.request,codeType:this.isCodeType||[3],multiple:e.loopCardinality!=1,maxMultiple:e.loopCardinality>0?e.loopCardinality:0,checkedArray:[]},this.multiNodeParticipant[e.id]&&this.multiNodeParticipant[e.id].length?this.entity.checkedArray=this.personListCopy[e.id].map(t=>({id:t.id,subjectId:t.subjectId,type:t.type,deptId:this.handleLastStr(t.ancestors,t.subjectId)})):this.entity.checkedArray=[];else if(e.humanPerformerName==="\u56FA\u5B9A\u90E8\u95E8"){let t,i=[];e.routeTxt.departmentIds&&e.routeTxt.departmentIds.length>1?(e.routeTxt.departmentIds.forEach((s,r)=>{i.push(s.rangeId)}),this.entity={source:"1",type:this.isCheckType||"0",orgType:this.isOrgType||"0",request:this.request,codeType:this.isCodeType||[3],deptCodeArray:i,multiple:e.loopCardinality!=1,maxMultiple:e.loopCardinality>0?e.loopCardinality:0}):e.routeTxt.departmentIds&&e.routeTxt.departmentIds.length==1&&(e.routeTxt.departmentIds.forEach((s,r)=>{t=s.rangeId}),this.entity={source:"1",type:this.isCheckType||"0",orgType:this.isOrgType||"0",request:this.request,codeType:this.isCodeType||[3],deptCode:t,multiple:e.loopCardinality!=1,maxMultiple:e.loopCardinality>0?e.loopCardinality:0}),this.multiNodeParticipant[e.id]&&this.multiNodeParticipant[e.id].length?this.entity.checkedArray=this.personListCopy[e.id].map(s=>({id:s.id,subjectId:s.subjectId,type:s.type,deptId:t})):this.entity.checkedArray=[]}else if(e.humanPerformerName==="\u56FA\u5B9A\u5355\u4F4D"){let t;e.routeTxt.companyIds.map((i,s)=>{t=i.name}),this.entity={source:"1",type:this.isCheckType||"0",orgType:this.isOrgType||"0",request:this.request,codeType:this.isCodeType||[3],multiple:e.loopCardinality!=1,maxMultiple:e.loopCardinality>0?e.loopCardinality:0,subjectName:t},this.multiNodeParticipant[e.id]&&this.multiNodeParticipant[e.id].length?this.entity.checkedArray=this.personListCopy[e.id].map(i=>({id:i.id,subjectId:i.subjectId,type:i.type,deptId:this.handleLastStr(i.ancestors,i.subjectId),subjectName:i.ancestorNames.slice(0,i.ancestorNames.indexOf("/"))})):this.entity.checkedArray=[]}else e.humanPerformerName==="\u56FA\u5B9A\u89D2\u8272/\u5C97\u4F4D"&&(this.entity={source:"1",type:this.isCheckType||"0",orgType:[5],request:this.request,codeType:[8],multiple:e.loopCardinality!=1,maxMultiple:e.loopCardinality>0?e.loopCardinality:0,positionArray:e.positionArray},this.multiNodeParticipant[e.id]&&this.multiNodeParticipant[e.id].length?this.entity.checkedArray=this.personListCopy[e.id].map(t=>({id:t.id,subjectId:t.subjectId,type:t.type,deptId:this.handleLastStr(t.ancestors,t.subjectId),subjectName:t.ancestorNames.slice(0,t.ancestorNames.indexOf("/"))})):this.entity.checkedArray=[])},handleCallback(e){this.personListCopy[this.personObjId]=e,this.entity.checkedArray=e.map(t=>({id:t.id,subjectId:t.subjectId,type:t.type,deptId:this.handleLastStr(t.ancestors,t.subjectId),subjectName:this.humanPerformerName==="\u56FA\u5B9A\u5355\u4F4D"?t.ancestorNames.slice(0,t.ancestorNames.indexOf("/")):""})),this.multiNodeParticipant[this.personObjId]=[],this.partNode[this.personObjId]=[],e.map((t,i)=>{this.multiNodeParticipant[this.personObjId].push(t.id),this.partNode[this.personObjId].push(t.name)}),this.visiblePerson=!1},handleCancel(){},handleLastStr(e,t){if(!!e)return e.split(",")[e.split(",").length-1]!==t?e.split(",")[e.split(",").length-1]:""},async handleSumbit(){if(!this.btnLoading){if(this.btnLoading=!0,!this.isSelectFirst&&!this.checkedItem.id){this.handleTips("\u8BF7\u5148\u9009\u62E9\u6D41\u7A0B",!0,"error"),this.btnLoading=!1;return}if(!this.isSelectFirst&&!this.businessDeptIdData){this.handleTips("\u8BF7\u5148\u9009\u62E9\u90E8\u95E8",!0,"error"),this.btnLoading=!1;return}if(this.firstPerson&&this.firstPerson.length&&!this.firstPerson[0].routeTxt.userNames&&(!this.multiNodeParticipant[this.firstPerson[0].id]||!this.multiNodeParticipant[this.firstPerson[0].id].length)){this.handleTips(`${this.firstPerson[0].name}\u8282\u70B9\u672A\u9009\u62E9\u5BA1\u6279\u4EBA`,!0,"error"),this.btnLoading=!1;return}this.beforeFunction&&(await this.beforeFunction(),this.manual&&(this.btnLoading=!1)),this.manual||this.$nextTick(async()=>{await this.handleSongshen()})}},handleSongshen(){if(this.btnLoading=!0,this.resubmit)this.handleTips("",!0,"loading"),this.request.post("/bladex/blade-workflow/pis/reactivate",{processDefId:this.checkedItem.id,isClearHistory:this.isClearHistory,reactivateReason:"\u91CD\u65B0\u63D0\u4EA4",multiNodeParticipant:this.multiNodeParticipant,firstNodeId:this.firstPerson&&this.firstPerson.length>0?this.firstPerson[0].id:"",processInstId:this.extraParams.processInstId,vars:{...this.extraParams,_businessDeptId:this.businessDeptIdData}}).then(e=>{e.code==200?(this.show=!1,this.$emit("update:visible",this.show),this.handleTips("\u63D0\u4EA4\u6210\u529F!",!1,"success"),this.$emit("successFn"),this.btnLoading=!1):(this.handleTips(e.msg,!0,"error"),this.btnLoading=!1)}).catch(e=>{this.handleTips(e.msg,!0,"error"),this.btnLoading=!1});else{this.handleTips("",!0,"loading");let e={processDefId:this.checkedItem.id,multiNodeParticipant:this.multiNodeParticipant,firstNodeId:this.firstPerson&&this.firstPerson.length>0?this.firstPerson[0].id:"",vars:{businessKey:this.extraParams.businessKey,showType:"all",subjectId:this.businessSubjectId,deptId:this.deptId,businessType:this.businessType,name:this.extraParams.name,title:this.extraParams.title}};if(!this.checkedItem.id){this.$refs.topTips.handleClose(),this.btnLoading=!1;return}this.request.post("/bladex/blade-workflow/pis/createAndStart",e).then(t=>{t.code===200?(this.show=!1,this.$emit("update:visible",this.show),this.handleTips("\u63D0\u4EA4\u6210\u529F!",!1,"success"),this.$emit("successFn"),this.btnLoading=!1):t.code==499?this.request.post("/bladex/blade-workflow/pis/reactivate",{processInstId:this.processId,isClearHistory:this.isClearHistory,reactivateReason:"\u91CD\u65B0\u63D0\u4EA4",multiNodeParticipant:this.multiNodeParticipant}).then(i=>{i.code==200?(this.show=!1,this.$emit("update:visible",this.show),this.handleTips("\u63D0\u4EA4\u6210\u529F!",!1,"success"),this.$emit("successFn"),this.btnLoading=!1):(this.handleTips(i.msg,!0,"error"),this.btnLoading=!1)}).catch(i=>{this.handleTips(i.msg,!0,"error"),this.btnLoading=!1}):(this.handleTips(t.msg,!0,"error"),this.btnLoading=!1)}).catch(t=>{this.handleTips(t.msg,!0,"error"),this.btnLoading=!1})}},handleTips(e,t,i){this.textTips=e,this.statusTips=t,this.typeTips=i,this.$refs.topTips&&this.$refs.topTips.handleOpen()},viewFlowForecast(){this.flowForecastFunction?this.flowForecastFunction():this.forecast({appId:this.appId,title:"1"})},forecast(e){this.request.post("/aws/pis/getProcessForecast",{processDefId:this.checkedItem.id,...e}).then(t=>{t.code==200?(t.data&&t.data.processBudgetModelList&&t.data.processBudgetModelList.length?this.flowForecastProcessInstId=t.data.processBudgetModelList[0].processInstId:(t.data.processBudgetModelList=[],this.flowForecastProcessInstId=""),this.flowForecastData=t.data,this.flowForecastVisible=!0):this.handleTips(t.msg,!0,"error")}).catch(t=>{this.btnLoading=!1,this.handleTips("\u6D41\u7A0B\u9884\u6D4B\u5931\u8D25\uFF0C\u8BF7\u91CD\u8BD5",!0,"error")})},flowForecastClose(){this.flowForecastProcessInstId?this.request.get("/aws/pis/deleteProcessById",{params:{processInstId:this.flowForecastProcessInstId}}).then(e=>{e.code==200&&(this.flowForecastVisible=!1,this.flowForecastData={completeTime:"",processBudgetModelList:[]},this.flowForecastProcessInstId="")}):(this.flowForecastVisible=!1,this.flowForecastData={completeTime:"",processBudgetModelList:[]})}}}),OE="",Lg={class:"sumbmitPopup-index-sumbit"},Fg={class:"sumbmitPopup-select"},Qg={class:"sumbmitPopup-select-viewTrack",style:{display:"flex"}},Ug=["src"],jg={key:0,class:"person-views"},_g={class:"views-items-label"},Gg={class:"views-items-name"},qg={class:"views-items-name-left"},Jg={key:0,class:"views-items-name--re"},Hg={class:"views-items-set"},Kg={key:0},zg={key:0},Wg={key:1},Yg={key:2},Zg={key:3},Xg=["onClick"],$g={key:0,class:"views-items-includes"},ey={class:"views-items-and2"},ty={key:0},iy={class:"include"},ny={class:"include include-name"},sy={key:1,class:"person-views"},ry={class:"views-items"},oy={class:"views-items-name"},ay={class:"views-items-set"},ly=["onClick"],cy={key:1},py={key:0},dy={key:2},hy={key:3},uy={key:2,class:"person-views-white"},fy={style:{height:"100%"}},my={class:"tree"},gy=["onClick"],yy={key:0,class:"children"},Ay=["onClick"],ky={style:{margin:"20px"}},Ey=["innerHTML"],by={class:"timeline"},Cy={class:"item-top"},wy={class:"top-spot"},Ty={class:"top-title"},Ny={style:{color:"#009800"}};function By(e,t,i,s,r,o){const a=n.resolveComponent("TopDownSelect"),l=n.resolveComponent("TopPopup"),c=n.resolveComponent("departPerson"),f=n.resolveComponent("BpmnLook"),h=n.resolveComponent("PreviewImage"),u=n.resolveComponent("TopTips");return n.openBlock(),n.createElementBlock("div",Lg,[t[16]||(t[16]=n.createElementVNode("div",{class:"top-popup"},null,-1)),n.createVNode(l,{visible:e.show,"onUpdate:visible":t[4]||(t[4]=g=>(e.show=g,e.$emit("update:visible",g))),ref:"TopPopup",titleText:"\u9001\u5BA1",isIndex:99,className:"sumbmitPopup-index",comfigText:"\u9001\u5BA1",comfig:e.handleSumbit},{default:n.withCtx(()=>[n.createVNode(a,{isSlots:"",option:e.option,onChange:e.handleChange,defaultValue:e.selectDefaultValue,ref:"TopDownSelect",disibled:!1},{header:n.withCtx(g=>[n.createElementVNode("div",Fg,[n.createElementVNode("div",{class:"sumbmitPopup-select-checked",onClick:t[0]||(t[0]=(...E)=>e.handleSelect&&e.handleSelect(...E))},[t[10]||(t[10]=n.createElementVNode("div",{class:"sumbmitPopup-select-checked-title"},"\u5F53\u524D\u6D41\u7A0B",-1)),n.createElementVNode("div",{class:n.normalizeClass(["sumbmitPopup-select-checked-node",""])},n.toDisplayString(g.data.name?g.data.name:g.data.placeholder),3)]),n.createElementVNode("div",{class:"sumbmitPopup-select-checked",onClick:t[1]||(t[1]=(...E)=>e.handleDeptSelect&&e.handleDeptSelect(...E))},[t[11]||(t[11]=n.createElementVNode("div",{class:"sumbmitPopup-select-checked-title"},"\u9009\u62E9\u90E8\u95E8",-1)),n.createElementVNode("div",{class:n.normalizeClass(["sumbmitPopup-select-checked-node",""])},n.toDisplayString(e.selectDeptData.label?e.selectDeptData.label:"\u8BF7\u9009\u62E9"),3)]),n.createElementVNode("div",Qg,[e.checkedItem.id?(n.openBlock(),n.createElementBlock("div",{key:0,class:"viewTrack",onClick:t[2]||(t[2]=(...E)=>e.handleFlowSelect&&e.handleFlowSelect(...E))},[n.createElementVNode("img",{src:e.ProcessImg},null,8,Ug),t[12]||(t[12]=n.createTextVNode(" \u67E5\u770B\u6D41\u7A0B\u56FE ",-1))])):n.createCommentVNode("",!0),e.checkedItem.id&&e.showFlowForecast?(n.openBlock(),n.createElementBlock("div",{key:1,class:"viewTrack",onClick:t[3]||(t[3]=(...E)=>e.viewFlowForecast&&e.viewFlowForecast(...E))}," \u6D41\u7A0B\u9884\u6D4B ")):n.createCommentVNode("",!0)])])]),_:1},8,["option","onChange","defaultValue","disibled"]),e.showFirstPerson&&e.firstPerson&&e.firstPerson.length?(n.openBlock(),n.createElementBlock("div",jg,[t[14]||(t[14]=n.createElementVNode("div",{class:"person-views-title"},"\u4E0B\u4E00\u6B65\u5904\u7406\u8282\u70B9",-1)),(n.openBlock(!0),n.createElementBlock(n.Fragment,null,n.renderList(e.firstPerson,(g,E)=>{var I;return n.openBlock(),n.createElementBlock("div",{class:"views-items",key:E},[n.createElementVNode("div",_g,[n.createElementVNode("div",Gg,[n.createElementVNode("div",qg,[n.createTextVNode(n.toDisplayString(g.name)+" ",1),E==0?(n.openBlock(),n.createElementBlock("span",Jg,"*")):n.createCommentVNode("",!0)])]),n.createElementVNode("div",Hg,[e.partNode[g.id]&&e.partNode[g.id].length?(n.openBlock(),n.createElementBlock("div",Kg,[(n.openBlock(!0),n.createElementBlock(n.Fragment,null,n.renderList(e.partNode[g.id],(P,H)=>(n.openBlock(),n.createElementBlock("span",{key:H},n.toDisplayString(H>=3?"":H==0?P:`,${P}`),1))),128)),e.partNode[g.id].length>3?(n.openBlock(),n.createElementBlock("span",zg,"...\u7B49"+n.toDisplayString(e.partNode[g.id].length)+"\u4EBA",1)):n.createCommentVNode("",!0)])):g.routeTxt&&g.routeTxt.userNames?(n.openBlock(),n.createElementBlock("div",Wg,n.toDisplayString(g.routeTxt.userNames),1)):n.createCommentVNode("",!0),g.humanPerformerName=="\u56FA\u5B9A\u8D26\u6237"||g.humanPerformerName=="\u4E0E\u6D41\u7A0B\u7533\u8BF7\u4EBA\u76F8\u5173"||((I=e.partNode[g.id])==null?void 0:I.length)>0&&g.noPersonnel?(n.openBlock(),n.createElementBlock("div",Yg)):g.humanPerformerName=="\u56FA\u5B9A\u8D26\u6237"||g.humanPerformerName=="\u4E0E\u6D41\u7A0B\u7533\u8BF7\u4EBA\u76F8\u5173"||g.noPersonnel?(n.openBlock(),n.createElementBlock("div",Zg," \u6CA1\u6709\u53EF\u9009\u4EBA\u5458\uFF0C\u8BF7\u68C0\u67E5\u914D\u7F6E ")):(n.openBlock(),n.createElementBlock("div",{key:4,class:"views-items-set-btn",onClick:P=>e.handleOpenPerson(g)}," \u8BBE\u7F6E ",8,Xg))])]),g.routeTxt&&g.routeTxt.length>0?(n.openBlock(),n.createElementBlock("div",$g,[t[13]||(t[13]=n.createElementVNode("div",{class:"views-items-name2"},n.toDisplayString("\u6240\u5C5E\u8303\u56F4"),-1)),n.createElementVNode("div",ey,[(n.openBlock(!0),n.createElementBlock(n.Fragment,null,n.renderList(g.routeTxt,(P,H)=>(n.openBlock(),n.createElementBlock("div",{key:P.type},[P.ids&&P.ids.length>0?(n.openBlock(),n.createElementBlock("div",ty,[n.createElementVNode("div",iy,[n.createElementVNode("b",{class:n.normalizeClass(["include include-type",["include-"+P.type]])},n.toDisplayString(P.type=="user"?"\u7528\u6237":P.type=="dept"?"\u90E8\u95E8":"\u5C97\u4F4D"),3),n.createElementVNode("span",ny,n.toDisplayString(P.name),1)]),H!==g.routeTxt.length-1?(n.openBlock(),n.createElementBlock("div",{key:0,class:n.normalizeClass(["include include-assign",["include-assign-"+(P.assigneeRetain?"true":"false")]])},n.toDisplayString(g.assigneeRetain=="true"?"\u4E14\u540C\u65F6\u6EE1\u8DB3":"\u6216\u8005\u6EE1\u8DB3"),3)):n.createCommentVNode("",!0)])):n.createCommentVNode("",!0)]))),128))])])):n.createCommentVNode("",!0)])}),128))])):n.createCommentVNode("",!0),e.personList&&e.personList.length?(n.openBlock(),n.createElementBlock("div",sy,[t[15]||(t[15]=n.createElementVNode("div",{class:"person-views-title"},"\u5176\u4ED6\u5904\u7406\u8282\u70B9",-1)),(n.openBlock(!0),n.createElementBlock(n.Fragment,null,n.renderList(e.personList,(g,E)=>(n.openBlock(),n.createElementBlock("div",ry,[n.createElementVNode("div",oy,n.toDisplayString(g.name),1),n.createElementVNode("div",ay,[g.noPersonnel?n.createCommentVNode("",!0):(n.openBlock(),n.createElementBlock("div",{key:0,class:"views-items-set-btn",onClick:I=>e.handleOpenPerson(g)}," \u8BBE\u7F6E ",8,ly)),e.partNode[g.id]&&e.partNode[g.id].length?(n.openBlock(),n.createElementBlock("div",cy,[(n.openBlock(!0),n.createElementBlock(n.Fragment,null,n.renderList(e.partNode[g.id],(I,P)=>(n.openBlock(),n.createElementBlock("span",null,n.toDisplayString(P>=3?"":P==0?I:`,${I}`),1))),256)),e.partNode[g.id].length>3?(n.openBlock(),n.createElementBlock("span",py,"...\u7B49"+n.toDisplayString(e.partNode[g.id].length)+"\u4EBA",1)):n.createCommentVNode("",!0)])):g.noPersonnel?(n.openBlock(),n.createElementBlock("div",dy,"\u6CA1\u6709\u53EF\u9009\u4EBA\u5458\uFF0C\u8BF7\u68C0\u67E5\u914D\u7F6E")):(n.openBlock(),n.createElementBlock("div",hy))])]))),256))])):n.createCommentVNode("",!0),!e.firstPerson&&!e.firstPerson.length&&!e.personList&&!e.personList.length?(n.openBlock(),n.createElementBlock("div",uy," \u65E0\u9700\u8BBE\u7F6E ")):n.createCommentVNode("",!0)]),_:1},8,["visible","comfig"]),n.createVNode(l,{visible:e.visiblePerson,"onUpdate:visible":t[5]||(t[5]=g=>e.visiblePerson=g),ref:"TopPopup",titleText:"\u9009\u4EBA",isDrawer:!0,isIndex:199},{default:n.withCtx(()=>[n.createElementVNode("div",fy,[e.visiblePerson?(n.openBlock(),n.createBlock(c,n.mergeProps({key:0,isTitle:!1,visible:e.visiblePerson},e.entity,{onCallback:e.handleCallback,onCancel:e.handleCancel,checkedArray:e.checkedArray}),null,16,["visible","onCallback","onCancel","checkedArray"])):n.createCommentVNode("",!0)])]),_:1},8,["visible"]),n.createVNode(l,{visible:e.showDept,"onUpdate:visible":t[6]||(t[6]=g=>e.showDept=g),ref:"TopPopupDept",titleText:"\u9009\u62E9\u90E8\u95E8",isIndex:99,className:"sumbmitPopup-index",comfigText:"\u786E\u5B9A",comfig:e.handleSumbitDept},{default:n.withCtx(()=>[n.createElementVNode("div",my,[(n.openBlock(!0),n.createElementBlock(n.Fragment,null,n.renderList([...e.deptList],g=>(n.openBlock(),n.createElementBlock("div",{class:"node",key:g.id},[n.createElementVNode("div",{class:"node-p",onClick:E=>e.handleClickDept(g)},n.toDisplayString(g.label),9,gy),g.children?(n.openBlock(),n.createElementBlock("div",yy,[(n.openBlock(!0),n.createElementBlock(n.Fragment,null,n.renderList(g.children,E=>(n.openBlock(),n.createElementBlock("div",{class:"node-s",onClick:I=>e.handleClickDept(E),key:E.id},n.toDisplayString(E.label),9,Ay))),128))])):n.createCommentVNode("",!0)]))),128))])]),_:1},8,["visible","comfig"]),n.createVNode(l,{class:"top-pop-flow",visible:e.showFlow,"onUpdate:visible":t[7]||(t[7]=g=>e.showFlow=g),ref:"TopPopupFlow",titleText:"\u67E5\u770B\u6D41\u7A0B\u56FE",isIndex:99,className:"sumbmitPopup-index",comfigText:"\u5173\u95ED",comfig:e.handleSumbitFlow},{default:n.withCtx(()=>[e.showFlow&&e.processXml?(n.openBlock(),n.createBlock(f,{key:0,ref:"PreviewRef",diagram:e.processXml,approvalData:e.approvalData},null,8,["diagram","approvalData"])):n.createCommentVNode("",!0)]),_:1},8,["visible","comfig"]),n.createVNode(h,{images:e.trackUrl,visible:e.taskurlshow,"onUpdate:visible":t[8]||(t[8]=g=>e.taskurlshow=g),indexd:0,isOne:!0,isStyle:e.isStyle},null,8,["images","visible","isStyle"]),n.createVNode(u,{ref:"topTips",text:e.textTips,statusTips:e.statusTips,type:e.typeTips},null,8,["text","statusTips","type"]),n.createVNode(l,{visible:e.flowForecastVisible,"onUpdate:visible":t[9]||(t[9]=g=>e.flowForecastVisible=g),ref:"TopPopupFF",titleText:"\u6D41\u7A0B\u9884\u6D4B",isIndex:129,cancel:e.flowForecastClose,comfig:e.flowForecastClose},{default:n.withCtx(()=>[n.createElementVNode("div",ky,[n.createElementVNode("div",{innerHTML:e.flowForecastData.completeTime,style:{"margin-left":"10px","margin-bottom":"10px"}},null,8,Ey),n.createElementVNode("div",by,[(n.openBlock(!0),n.createElementBlock(n.Fragment,null,n.renderList(e.flowForecastData.processBudgetModelList,(g,E)=>(n.openBlock(),n.createElementBlock("div",{class:"timeline-item",key:E},[n.createElementVNode("div",Cy,[n.createElementVNode("div",wy,[n.createElementVNode("div",{class:n.normalizeClass(["spot",{active:E==0}])},null,2)]),n.createElementVNode("div",Ty,n.toDisplayString(g.title),1)]),n.createElementVNode("div",{class:n.normalizeClass(["item-bottom",{last:E==e.flowForecastData.processBudgetModelList.length-1}])},[n.createElementVNode("span",Ny," \u6267\u884C\u4EBA\uFF1A"+n.toDisplayString(g.excutor),1)],2)]))),128))])])]),_:1},8,["visible","cancel","comfig"])])}const Ma=pe(Rg,[["render",By],["__scopeId","data-v-f25033d3"]]),Iy="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAMgAAADICAYAAACtWK6eAAAAAXNSR0IArs4c6QAADG5JREFUeF7tnVFaGzcXhjUD16WsoLCSwl1qsoeElRRWEroHcLkL/0rqfwUpvS6jPuPYiXGw0ZE+4TOel6s8T6Rj6T36pE/yWNME/iAAgY0EGthAAAKbCSAQRgcEthBAIAwPCCAQxgAE8giwguRxo9ZICCAQR4n+8u7dybfmHB5+/fe//86O7+9njpo5qqYgkB2kuxfCQduexRB+ibE5a5rQi+G7OF5u01IkDyHEWde2/zu+vX3YQfNH9ZEI5I3S3YuibdsPITRXwo+cxRhmbRP/+Gk6vRHGJdSCAAKpOBQqiWJji2MMD/GguWZl0SUVgehYfov01sJ4oQuzEOLN0XR6XaF7owqJQITpdiCM9d7MmhCvsV/5SUYg+eye1fzy/v1Z28XPonDSMHPrFZ8uOQ2zY0UgdmbPhfHu3UnTHHxqmnBWGKp2dWxXBmEEkgFtWcXzqrG5W/GKvUl60hFIOqvBWKqELs267ukcy/U6KQTyOqMfSvwzmXyMofmUUdVTFUSSkA0EkgBptcieiGPZJUTySv4RiEEgeyYORJKQewSSAKkvMswNeWLnQpgdTe9Ok0uPqCACSUj21y8AD/5KKFpSZP5cVdOE/jh28WBiM3+AMcavDzJWPkq+OZreXZZ0YB/rIpCErP7928XnCoNz/r2E5anc708BN7+GED4mNN1YhCPgdWAI5JUhVEEcksc/Kj3WMuva5pKHHb8PCgSyRSDifUeVwVdBKOxHVsYEAtkikMfJRb/veO2HTAk2pr51WeyT+mfBBtHeBGguiiCQDWl4nEx+F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E0kv6e+UiwrTVR6cwLeV44lEPcC6Rua+EqxN08yH5hNwN1x7mBXkNWGsy/JHpBeKr7JexGVnR3ECrLe4Q3v3lNyIZaWgOt3OW7r6iAFsro/OWjbs8WLKvuNPJt57cDOjTZ/UWjTxIeh/wxh0AJ5KXvzF1bytxMCx/f3e/cE9d4JZCcjgw/dWwIIZG9TS8cUBBCIgiIx9pYAAtnb1NIxBQEEoqBIjL0lgED2NrV0TEHgP1VLsH2X3+jEAAAAAElFTkSuQmCC",vE="",xy={name:"msgList",components:{TopPopup:Ke},props:{visible:{type:Boolean,default:!1},request:{default:null},useInfo:{type:Object,default:()=>{}}},data(){return{listData:[],visibleListMsg:!1,opinion:{},textTips:"",statusTips:!1,typeTips:""}},computed:{Del(){return Iy}},watch:{visible:{handler(e,t){e&&this.request.get("/auth/user/opinion/my").then(i=>{i.code===200&&(this.listData=i.data)})}}},methods:{handleMsg(e){this.$emit("handleMsg",e.opinionName)},handleOpenMsg(e){this.opinion=e,this.visibleListMsg=!0},handleTipsCancel(){this.visibleListMsg=!1},async handleDel(){this.opinion.opinionId&&(this.visibleListMsg=!1,this.$emit("handleTips","",!0,"loading"),await this.request.get(`/auth/user/opinion/del/${this.opinion.opinionId}`).then(e=>{e.code===200?(this.$emit("handleTips","\u5220\u9664\u6210\u529F",!0,"success"),this.request.get("/auth/user/opinion/my").then(t=>{t.code===200&&(this.listData=t.data)})):this.$emit("handleTips",e.msg,!0,"error")}).catch(e=>{this.$emit("handleTips",e.msg,!0,"error")}))}}},Sy={key:0,class:"top-msg"},Dy=["onClick"],Py={class:"top-msg-items-text"},My=["onClick"],Vy=["src"];function Oy(e,t,i,s,r,o){const a=n.resolveComponent("TopPopup");return n.openBlock(),n.createElementBlock("div",null,[i.visible?(n.openBlock(),n.createElementBlock("div",Sy,[(n.openBlock(!0),n.createElementBlock(n.Fragment,null,n.renderList(r.listData,l=>(n.openBlock(),n.createElementBlock("div",{class:"top-msg-items",onClick:c=>o.handleMsg(l)},[n.createElementVNode("div",Py,n.toDisplayString(l.opinionName),1),n.createElementVNode("div",{class:"top-msg-items-del",onClick:n.withModifiers(c=>o.handleOpenMsg(l),["stop"])},[n.createElementVNode("img",{src:o.Del},null,8,Vy)],8,My)],8,Dy))),256))])):n.createCommentVNode("",!0),n.createVNode(a,{isIndex:2299,titleText:"\u64CD\u4F5C\u6D88\u606F\u63D0\u793A",isTips:!0,context:`\u5C06\u5E38\u7528\u610F\u89C1'${r.opinion.opinionName}'\u5220\u9664`,cancel:o.handleTipsCancel,comfig:o.handleDel,visible:r.visibleListMsg,"onUpdate:visible":t[0]||(t[0]=l=>r.visibleListMsg=l)},null,8,["context","cancel","comfig","visible"])])}const Ki=pe(xy,[["render",Oy],["__scopeId","data-v-87fc3e49"]]),RE="",vy={name:"counterSign",props:{param:{type:Object,defalut:()=>{}}},components:{TopTips:st,attchViews:ti,TopPopup:Ke,departPerson:Tt.departPerson,MsgList:Ki},data(){return{commentMsg:"",style:{color:"#333",disableColor:"#F7F6F6"},textTips:"",statusTips:!1,typeTips:"success",limit:"",requires:"",labels:"",otherList:"",attchLists:[],nextNodeData:[],taskNode:[],outGatewayUserTaskModel:[],formData:{},visible:!1,entity:{source:"0",type:this.param.isCheckType||"0",orgType:this.param.isOrgType||"0",request:this.param.request,codeType:this.param.isCodeType||[3],multiple:!0,checkedArray:[]},multiNodeParticipant:{},partObjId:[],partNode:{},actionName:"",visibleListMsg:!1,visibleMsgComfig:!1}},watch:{param:{handler(e,t){this.nextNodeData=e.nextNodeData,this.taskNode=e.taskNode,this.outGatewayUserTaskModel=e.outGatewayUserTaskModel,this.actionName=e.actionName,e.nextNodeData.length?this.nextNodeData[0].type=="userTask"||this.nextNodeData[0].type=="UserTaskModel"?(this.entity.multiple=!0,this.entity.codeType=this.param.isCodeType||[3],this.entity.source="1",this.entity.checkedArray=[],this.entity.type=this.param.isCheckType||"0",this.entity.orgType=this.param.isOrgType||[0]):this.nextNodeData[0].type=="ExclusiveGatewayModel"||this.nextNodeData[0].type=="InclusiveGatewayModel":e.outGatewayUserTaskModel.length&&(e.outGatewayUserTaskModel[0].type=="userTask"?(this.entity.multiple=!0,this.entity.codeType=this.param.isCodeType||[3],this.entity.source="1",this.entity.checkedArray=[],this.entity.type=this.param.isCheckType||"0",this.entity.orgType=this.param.isOrgType||[0]):e.outGatewayUserTaskModel[0].type=="ExclusiveGatewayModel"||e.outGatewayUserTaskModel[0].type=="InclusiveGatewayModel"||e.outGatewayUserTaskModel[0].type=="UserTaskModel"&&(this.entity.multiple=!0,this.entity.codeType=this.param.isCodeType||[3],this.entity.checkedArray=[],this.entity.source="1",this.entity.type=this.param.isCheckType||"0",this.entity.orgType=this.param.isOrgType||[0]))},immediate:!0,deep:!0}},created(){this.makeDelegateTaskButtonAnnex()},methods:{handleMakeMsg(){this.commentMsg==""&&!this.commentMsg.length?(this.handleTips("\u8BF7\u8F93\u5165\u5BA1\u6279\u610F\u89C1!",!1,"success"),this.visibleMsgComfig=!1):this.visibleMsgComfig=!0},handleOpenMsg(){this.visibleListMsg=!0},handleTipsCancel(){this.visibleMsgComfig=!1},handleTipsComfig(){this.handleTips("",!0,"loading"),this.visibleMsgComfig=!1,this.param.request.post("/auth//user/opinion/save",{opinionName:this.commentMsg}).then(e=>{e.code===200?this.handleTips("\u8BBE\u7F6E\u6210\u529F!",!0,"success"):this.handleTips(e.msg,!0,"error")}).catch(e=>{this.handleTips(e.msg,!0,"error")})},handleMsg(e){this.commentMsg=e,this.visibleListMsg=!1},handleOpenPopup(e){this.visible=!0,this.partObjId=e},confirm(){if(!this.commentMsg)return this.textTips="\u8BF7\u8F93\u5165\u52A0\u7B7E\u7406\u7531!",this.$refs.topTips.handleOpen(),!1;let e="";this.multiNodeParticipant[this.partObjId].map((t,i)=>{i==0?e=t:e=`${e},${t}`}),this.handleTips("",!0,"loading"),this.param.request.post("/bladex/blade-workflow/tis/addMultiInstance",{assignee:e,taskId:this.param.taskInstId,comment:this.commentMsg}).then(t=>{t.code==200?(this.$emit("handleClosePopup1"),this.handleTips("\u63D0\u4EA4\u6210\u529F!",!1,"success"),window.top.postMessage("success","*"),this.handleFinal(),this.commentMsg=""):this.handleTips(t.msg,!0,"error")})},makeDelegateTaskButtonAnnex(){if(this.param.annex&&this.param.annex.length){this.otherList=this.param.annex;let e=this.otherList.split(";");this.limit=e[2],this.requires=JSON.parse(e[1]),this.labels=e[0]}},handleCallback(e){this.visible=!1,this.multiNodeParticipant[this.partObjId]=[],this.partNode[this.partObjId]=[],e.map((t,i)=>{this.multiNodeParticipant[this.partObjId].push(t.id),this.partNode[this.partObjId].push(t.name),this.entity.checkedArray.push({type:3,id:t.id,subjectId:t.subjectId})})},handleCancel(){},getValues(e){this.attchLists=e},async uploadAttch(){if(this.attchLists.length>0){this.attchLists.map((i,s)=>{i.size=i.fileSize,i.format=i.originFileName.substring(i.originFileName.lastIndexOf(".")+1),i.uploadTime=i.createTime,i.processInstId=this.param.processInstId,i.taskInstId=this.param.taskInstId,i.name=i.originFileName});let e=this.attchLists;(await this.param.request.post("/aws/meta/annex/patchSave",{saveMetaAnnexCmdList:e})).success?(this.$emit("handleClosePopup1"),this.handleTips("\u63D0\u4EA4\u6210\u529F!",!1,"success"),this.handleFinal(),this.commentMsg=""):this.handleTips("\u4E0A\u4F20\u5931\u8D25",!0,"error")}},isOption(e){return e=="\u4EFB\u610F\u6307\u5B9A"||e=="\u56FA\u5B9A\u90E8\u95E8"||e=="\u56FA\u5B9A\u5355\u4F4D"||e=="\u4E0E\u6D41\u7A0B\u7533\u8BF7\u4EBA\u6240\u5728\u7EC4\u7EC7\u7ED3\u6784\u7684\u4F4D\u7F6E\u76F8\u5173"||e=="\u56FA\u5B9A\u7FA4\u7EC4"},handleTips(e,t,i){this.textTips=e,this.statusTips=t,this.typeTips=i,this.$refs.topTips.handleOpen()},handleFinal(){this.param.endFunction&&this.param.endFunction("counterSign")}}},Ry={class:"process-popup-content"},Ly={class:"process-popup-content-msg"},Fy={key:0},Qy={class:"process-pc-value"},Uy={class:"process-popup-textarea"},jy={class:"process-popup-textarea-num"},_y={key:0,class:"msg-btn"},Gy={key:0,class:"process-popup-content-person"},qy=["onClick"],Jy={class:"process-pc-value--people"},Hy={key:0,class:"process-pc-value--data"},Ky={key:1,class:"process-pc-value--data",style:{color:"#888"}},zy=["onClick"],Wy={class:"process-pc-value--people"},Yy={key:0,class:"process-pc-value--data"},Zy={key:1,class:"process-pc-value--data",style:{color:"#888"}},Xy={style:{height:"100%"}};function $y(e,t,i,s,r,o){const a=n.resolveComponent("TopTips"),l=n.resolveComponent("departPerson"),c=n.resolveComponent("TopPopup"),f=n.resolveComponent("attchViews"),h=n.resolveComponent("MsgList");return n.openBlock(),n.createElementBlock("div",Ry,[n.createElementVNode("div",Ly,[i.param.isMsg?(n.openBlock(),n.createElementBlock("div",Fy,[n.createElementVNode("div",{class:"process-radio-item",onClick:t[0]||(t[0]=u=>o.handleOpenMsg()),style:{color:"#1389ff","font-size":"14px"}}," \u5E38\u7528\u610F\u89C1 ")])):n.createCommentVNode("",!0),t[6]||(t[6]=n.createElementVNode("div",{class:"process-pc-label"},[n.createTextVNode(" \u52A0\u7B7E\u7406\u7531\uFF1A"),n.createElementVNode("span",{class:"process-pc-label--re"},"*")],-1)),n.createElementVNode("div",Qy,[n.createElementVNode("div",Uy,[n.withDirectives(n.createElementVNode("textarea",{"onUpdate:modelValue":t[1]||(t[1]=u=>r.commentMsg=u),class:"textarea-item",name:"description",cols:"40",placeholder:"\u8BF7\u8F93\u5165\u5BA1\u6279\u610F\u89C1(200\u5B57\u4EE5\u5185)",maxlength:"200",onkeyup:"this.value=this.value.replace(/[\\uD800-\\uDFFF]/g,'')"},null,512),[[n.vModelText,r.commentMsg]]),n.createElementVNode("div",jy,n.toDisplayString(r.commentMsg.length)+"/200 ",1)]),i.param.isMsg?(n.openBlock(),n.createElementBlock("div",_y,[n.createElementVNode("span",{class:"msg-btn-click",onClick:t[2]||(t[2]=u=>o.handleMakeMsg())},"\u8BBE\u7F6E\u4E3A\u5E38\u7528\u610F\u89C1")])):n.createCommentVNode("",!0)])]),(n.openBlock(),n.createElementBlock("div",Gy,[r.nextNodeData.length?(n.openBlock(!0),n.createElementBlock(n.Fragment,{key:0},n.renderList(r.nextNodeData,u=>(n.openBlock(),n.createElementBlock(n.Fragment,null,[t[8]||(t[8]=n.createElementVNode("div",null,[n.createElementVNode("br"),n.createTextVNode(" \u5BA1\u6279\u4EBA "),n.createElementVNode("span",{class:"process-pc-label--re"},"*")],-1)),n.createElementVNode("div",{class:"process-pc-value",onClick:g=>o.handleOpenPopup(u.id)},[n.createElementVNode("div",Jy,[r.partNode[u.id]&&r.partNode[u.id].length?(n.openBlock(),n.createElementBlock("div",Hy,[(n.openBlock(!0),n.createElementBlock(n.Fragment,null,n.renderList(r.partNode[u.id],(g,E)=>(n.openBlock(),n.createElementBlock("span",null,n.toDisplayString(E==0?g:`,${g}`),1))),256))])):(n.openBlock(),n.createElementBlock("div",Ky,t[7]||(t[7]=[n.createElementVNode("span",null," \u8BF7\u9009\u62E9\u5BA1\u6279\u4EBA ",-1)])))])],8,qy)],64))),256)):r.outGatewayUserTaskModel.length?(n.openBlock(!0),n.createElementBlock(n.Fragment,{key:1},n.renderList(r.outGatewayUserTaskModel,u=>(n.openBlock(),n.createElementBlock(n.Fragment,null,[t[10]||(t[10]=n.createElementVNode("div",{class:"process-pc-label"},[n.createElementVNode("br"),n.createTextVNode(" \u5BA1\u6279\u4EBA "),n.createElementVNode("span",{class:"process-pc-label--re"},"*")],-1)),n.createElementVNode("div",{class:"process-pc-value",onClick:g=>o.handleOpenPopup(u.id)},[n.createElementVNode("div",Wy,[r.partNode[u.id]&&r.partNode[u.id].length?(n.openBlock(),n.createElementBlock("div",Yy,[(n.openBlock(!0),n.createElementBlock(n.Fragment,null,n.renderList(r.partNode[u.id],(g,E)=>(n.openBlock(),n.createElementBlock("span",null,n.toDisplayString(E==0?g:`,${g}`),1))),256))])):(n.openBlock(),n.createElementBlock("div",Zy,t[9]||(t[9]=[n.createElementVNode("span",null," \u8BF7\u9009\u62E9\u5BA1\u6279\u4EBA ",-1)])))])],8,zy)],64))),256)):n.createCommentVNode("",!0)])),n.createVNode(a,{ref:"topTips",text:r.textTips,statusTips:r.statusTips,type:r.typeTips},null,8,["text","statusTips","type"]),n.createVNode(c,{visible:r.visible,"onUpdate:visible":t[3]||(t[3]=u=>r.visible=u),ref:"TopPopup",titleText:"\u9009\u4EBA",isDrawer:!0},{default:n.withCtx(()=>[n.createElementVNode("div",Xy,[r.visible?(n.openBlock(),n.createBlock(l,n.mergeProps({key:0,isTitle:!1,visible:r.visible,request:i.param.request},r.entity,{onCallback:o.handleCallback,onCancel:o.handleCancel}),null,16,["visible","request","onCallback","onCancel"])):n.createCommentVNode("",!0)])]),_:1},8,["visible"]),r.labels=="5"?(n.openBlock(),n.createBlock(f,{key:1,limit:r.limit?r.limit:-1,requires:r.requires,request:i.param.request,linkUrl:i.param.linkUrl,onGetValue:o.getValues},null,8,["limit","requires","request","linkUrl","onGetValue"])):n.createCommentVNode("",!0),n.createVNode(c,{visible:r.visibleListMsg,"onUpdate:visible":t[4]||(t[4]=u=>r.visibleListMsg=u),ref:"TopPopup",titleText:"\u5E38\u7528\u610F\u89C1",isDrawer:!0},{default:n.withCtx(()=>[n.createVNode(h,{visible:r.visibleListMsg,request:i.param.request,useInfo:i.param.userInfo,onHandleTips:o.handleTips,onHandleMsg:o.handleMsg},null,8,["visible","request","useInfo","onHandleTips","onHandleMsg"])]),_:1},8,["visible"]),n.createVNode(c,{titleText:"\u64CD\u4F5C\u6D88\u606F\u63D0\u793A",isTips:!0,context:`\u5C06${r.commentMsg}\u8BBE\u7F6E\u4E3A\u5E38\u7528\u610F\u89C1`,cancel:o.handleTipsCancel,comfig:o.handleTipsComfig,visible:r.visibleMsgComfig,"onUpdate:visible":t[5]||(t[5]=u=>r.visibleMsgComfig=u)},null,8,["context","cancel","comfig","visible"])])}const eA=pe(vy,[["render",$y],["__scopeId","data-v-4f3fd96c"]]),LE="",tA={name:"delegateTask",props:{param:{type:Object,defalut:()=>{}}},components:{TopTips:st,attchViews:ti,TopPopup:Ke,departPerson:Tt.departPerson,MsgList:Ki},data(){return{commentMsg:"",style:{color:"#333",disableColor:"#F7F6F6"},textTips:"",statusTips:!1,typeTips:"success",limit:"",requires:"",labels:"",otherList:"",attchLists:[],nextNodeData:[],taskNode:[],outGatewayUserTaskModel:[],formData:{},visible:!1,entity:{source:"0",type:this.param.isCheckType||"0",orgType:this.param.isOrgType||[0],request:this.param.request,codeType:this.param.isCodeType||[3],multiple:!0,maxMultiple:1,checkedArray:[]},multiNodeParticipant:{},partNodeArr:{},partObjId:[],partNode:{},actionName:"",visibleListMsg:!1,visibleMsgComfig:!1}},watch:{param:{handler(e,t){this.nextNodeData=e.nextNodeData,this.taskNode=e.taskNode,this.outGatewayUserTaskModel=e.outGatewayUserTaskModel,this.actionName=e.actionName,this.attachShow(),e.nextNodeData.length?this.nextNodeData[0].type=="userTask"||this.nextNodeData[0].type=="UserTaskModel"?(this.entity.multiple=!0,this.entity.codeType=this.param.isCodeType||[3],this.entity.source="1",this.entity.checkedArray=[],this.entity.type=this.param.isCheckType||"0",this.entity.orgType=this.param.isOrgType||[0]):this.nextNodeData[0].type=="ExclusiveGatewayModel"||this.nextNodeData[0].type=="InclusiveGatewayModel":e.outGatewayUserTaskModel.length&&(e.outGatewayUserTaskModel[0].type=="userTask"?(this.entity.multiple=!0,this.entity.codeType=this.param.isCodeType||[3],this.entity.source="1",this.entity.checkedArray=[],this.entity.type=this.param.isCheckType||"0",this.entity.orgType=this.param.isOrgType||[0]):e.outGatewayUserTaskModel[0].type=="ExclusiveGatewayModel"||e.outGatewayUserTaskModel[0].type=="InclusiveGatewayModel"||e.outGatewayUserTaskModel[0].type=="UserTaskModel"&&(this.entity.multiple=!0,this.entity.codeType=this.param.isCodeType||[3],this.entity.source="1",this.entity.checkedArray=[],this.entity.type=this.param.isCheckType||"0",this.entity.orgType=this.param.isOrgType||[0]))},immediate:!0,deep:!0}},created(){},methods:{handleMakeMsg(){this.commentMsg==""&&!this.commentMsg.length?(this.handleTips("\u8BF7\u8F93\u5165\u5BA1\u6279\u610F\u89C1!",!1,"success"),this.visibleMsgComfig=!1):this.visibleMsgComfig=!0},handleOpenMsg(){this.visibleListMsg=!0},handleTipsCancel(){this.visibleMsgComfig=!1},handleTipsComfig(){this.handleTips("",!0,"loading"),this.visibleMsgComfig=!1,this.param.request.post("/auth//user/opinion/save",{opinionName:this.commentMsg}).then(e=>{e.code===200?this.handleTips("\u8BBE\u7F6E\u6210\u529F!",!0,"success"):this.handleTips(e.msg,!0,"error")}).catch(e=>{this.handleTips(e.msg,!0,"error")})},handleMsg(e){this.commentMsg=e,this.visibleListMsg=!1},handleOpenPopup(e){this.visible=!0,this.partObjId=e},async confirm(){if(!this.commentMsg){this.textTips="\u8BF7\u8F93\u5165\u8F6C\u5BA1\u7406\u7531!",this.$refs.topTips.handleOpen();return}let e=this.partNodeArr[this.partObjId].map(t=>t.id).join(",");this.handleTips("",!0,"loading"),await this.param.request.post("/bladex/blade-workflow/tis/transferTask",{comment:this.commentMsg,taskId:this.param.taskInstId,assignee:e}).then(t=>{t.code==200?(this.$emit("handleClosePopup1"),this.handleTips("\u63D0\u4EA4\u6210\u529F!",!1,"success"),window.top.postMessage("success","*"),this.handleFinal(),this.commentMsg=""):this.handleTips(t.msg,!0,"error")})},attachShow(e="\u529E\u7406"){const t=(this.param||{}).extendedProperties||[];let i=!1,s,r="";s=t.find(a=>a.name=="delegateTaskButtonAnnex"),r=s?s.value:"",r&&(i=!0);let o="";if(typeof r!="string"&&r!=null&&r.map(a=>{a.indexOf(this.operationLabel)!=-1&&(i=!0,o=a)}),o&&(r=o),i){const a=r.split(":");this.attachRule.required=a[1]=="true",this.attachRule.limit=a[2]==-1?999:a[2],this.otherList=r;let l=this.otherList.split(":");this.limit=l[2],this.requires=JSON.parse(l[1]),this.labels=l[0]}return console.log(i,"sign",this.labels,this.limit),i},makeDelegateTaskButtonAnnex(){if(this.param.annex&&this.param.annex.length){this.otherList=this.param.annex;let e=this.otherList.split(";");this.limit=e[2],this.requires=JSON.parse(e[1]),this.labels=e[0]}},handleCallback(e){this.visible=!1,this.multiNodeParticipant[this.partObjId]=[],this.partNodeArr[this.partObjId]=[],this.partNode[this.partObjId]=[],e.map((t,i)=>{this.multiNodeParticipant[this.partObjId].push(t.id),this.partNodeArr[this.partObjId].push(t),this.partNode[this.partObjId].push(t.name),this.entity.checkedArray.push({type:3,id:t.id,subjectId:t.subjectId})})},handleCancel(){},getValues(e){this.attchLists=e},async uploadAttch(){if(this.attchLists.length>0){this.attchLists.map((i,s)=>{i.size=i.fileSize,i.format=i.originFileName.substring(i.originFileName.lastIndexOf(".")+1),i.uploadTime=i.createTime,i.processInstId=this.param.processInstId,i.taskInstId=this.param.taskInstId,i.name=i.originFileName});let e=this.attchLists;(await this.param.request.post("/aws/meta/annex/patchSave",{saveMetaAnnexCmdList:e})).success?(this.$emit("handleClosePopup1"),this.handleTips("\u63D0\u4EA4\u6210\u529F!",!1,"success"),this.handleFinal(),this.commentMsg=""):this.handleTips("\u4E0A\u4F20\u5931\u8D25",!0,"error")}},isOption(e){return e=="\u4EFB\u610F\u6307\u5B9A"||e=="\u56FA\u5B9A\u90E8\u95E8"||e=="\u56FA\u5B9A\u5355\u4F4D"||e=="\u4E0E\u6D41\u7A0B\u7533\u8BF7\u4EBA\u6240\u5728\u7EC4\u7EC7\u7ED3\u6784\u7684\u4F4D\u7F6E\u76F8\u5173"||e=="\u56FA\u5B9A\u7FA4\u7EC4"},handleTips(e,t,i){this.textTips=e,this.statusTips=t,this.typeTips=i,this.$refs.topTips.handleOpen()},handleFinal(){this.param.endFunction&&this.param.endFunction("delegateTask")}}},iA={class:"process-popup-content"},nA={class:"process-popup-content-msg"},sA={key:0},rA={class:"process-pc-value"},oA={class:"process-popup-textarea"},aA={class:"process-popup-textarea-num"},lA={key:0,class:"msg-btn"},cA={key:0,class:"process-popup-content-person"},pA=["onClick"],dA={class:"process-pc-value--people"},hA={key:0,class:"process-pc-value--data"},uA={key:1,class:"process-pc-value--data",style:{color:"#888"}},fA=["onClick"],mA={class:"process-pc-value--people"},gA={key:0,class:"process-pc-value--data"},yA={key:1,class:"process-pc-value--data",style:{color:"#888"}},AA={style:{height:"100%"}};function kA(e,t,i,s,r,o){const a=n.resolveComponent("TopTips"),l=n.resolveComponent("departPerson"),c=n.resolveComponent("TopPopup"),f=n.resolveComponent("attchViews"),h=n.resolveComponent("MsgList");return n.openBlock(),n.createElementBlock("div",iA,[n.createElementVNode("div",nA,[i.param.isMsg?(n.openBlock(),n.createElementBlock("div",sA,[n.createElementVNode("div",{class:"process-radio-item",onClick:t[0]||(t[0]=u=>o.handleOpenMsg()),style:{color:"#1389ff","font-size":"14px"}}," \u5E38\u7528\u610F\u89C1 ")])):n.createCommentVNode("",!0),t[6]||(t[6]=n.createElementVNode("div",{class:"process-pc-label"},[n.createTextVNode(" \u8F6C\u5BA1\u7406\u7531\uFF1A"),n.createElementVNode("span",{class:"process-pc-label--re"},"*")],-1)),n.createElementVNode("div",rA,[n.createElementVNode("div",oA,[n.withDirectives(n.createElementVNode("textarea",{"onUpdate:modelValue":t[1]||(t[1]=u=>r.commentMsg=u),class:"textarea-item",name:"description",cols:"40",placeholder:"\u8BF7\u8F93\u5165\u5BA1\u6279\u610F\u89C1(200\u5B57\u4EE5\u5185)",maxlength:"200",onkeyup:"this.value=this.value.replace(/[\\uD800-\\uDFFF]/g,'')"},null,512),[[n.vModelText,r.commentMsg]]),n.createElementVNode("div",aA,n.toDisplayString(r.commentMsg.length)+"/200 ",1)]),i.param.isMsg?(n.openBlock(),n.createElementBlock("div",lA,[n.createElementVNode("span",{class:"msg-btn-click",onClick:t[2]||(t[2]=u=>o.handleMakeMsg())},"\u8BBE\u7F6E\u4E3A\u5E38\u7528\u610F\u89C1")])):n.createCommentVNode("",!0)])]),(n.openBlock(),n.createElementBlock("div",cA,[r.nextNodeData.length?(n.openBlock(!0),n.createElementBlock(n.Fragment,{key:0},n.renderList(r.nextNodeData,u=>(n.openBlock(),n.createElementBlock(n.Fragment,null,[t[8]||(t[8]=n.createElementVNode("div",null,[n.createTextVNode(" \u5BA1\u6279\u4EBA "),n.createElementVNode("span",{class:"process-pc-label--re"},"*")],-1)),n.createElementVNode("div",{class:"process-pc-value",onClick:g=>o.handleOpenPopup(u.id)},[n.createElementVNode("div",dA,[r.partNode[u.id]&&r.partNode[u.id].length?(n.openBlock(),n.createElementBlock("div",hA,[(n.openBlock(!0),n.createElementBlock(n.Fragment,null,n.renderList(r.partNode[u.id],(g,E)=>(n.openBlock(),n.createElementBlock("span",null,n.toDisplayString(E==0?g:`,${g}`),1))),256))])):(n.openBlock(),n.createElementBlock("div",uA,t[7]||(t[7]=[n.createElementVNode("span",null," \u8BF7\u9009\u62E9\u5BA1\u6279\u4EBA ",-1)])))])],8,pA)],64))),256)):r.outGatewayUserTaskModel.length?(n.openBlock(!0),n.createElementBlock(n.Fragment,{key:1},n.renderList(r.outGatewayUserTaskModel,u=>(n.openBlock(),n.createElementBlock(n.Fragment,null,[t[10]||(t[10]=n.createElementVNode("div",{class:"process-pc-label"},[n.createTextVNode(" \u5BA1\u6279\u4EBA "),n.createElementVNode("span",{class:"process-pc-label--re"},"*")],-1)),n.createElementVNode("div",{class:"process-pc-value",onClick:g=>o.handleOpenPopup(u.id)},[n.createElementVNode("div",mA,[r.partNode[u.id]&&r.partNode[u.id].length?(n.openBlock(),n.createElementBlock("div",gA,[(n.openBlock(!0),n.createElementBlock(n.Fragment,null,n.renderList(r.partNode[u.id],(g,E)=>(n.openBlock(),n.createElementBlock("span",null,n.toDisplayString(E==0?g:`,${g}`),1))),256))])):(n.openBlock(),n.createElementBlock("div",yA,t[9]||(t[9]=[n.createElementVNode("span",null," \u8BF7\u9009\u62E9\u5BA1\u6279\u4EBA ",-1)])))])],8,fA)],64))),256)):n.createCommentVNode("",!0)])),n.createVNode(a,{ref:"topTips",text:r.textTips,statusTips:r.statusTips,type:r.typeTips},null,8,["text","statusTips","type"]),n.createVNode(c,{visible:r.visible,"onUpdate:visible":t[3]||(t[3]=u=>r.visible=u),ref:"TopPopup",titleText:"\u9009\u4EBA",isDrawer:!0},{default:n.withCtx(()=>[n.createElementVNode("div",AA,[r.visible?(n.openBlock(),n.createBlock(l,n.mergeProps({key:0,isTitle:!1,visible:r.visible,request:i.param.request},r.entity,{onCallback:o.handleCallback,onCancel:o.handleCancel}),null,16,["visible","request","onCallback","onCancel"])):n.createCommentVNode("",!0)])]),_:1},8,["visible"]),r.labels=="1"?(n.openBlock(),n.createBlock(f,{key:1,limit:r.limit?r.limit:-1,requires:r.requires,request:i.param.request,linkUrl:i.param.linkUrl,onGetValue:o.getValues},null,8,["limit","requires","request","linkUrl","onGetValue"])):n.createCommentVNode("",!0),n.createVNode(c,{visible:r.visibleListMsg,"onUpdate:visible":t[4]||(t[4]=u=>r.visibleListMsg=u),ref:"TopPopup",titleText:"\u5E38\u7528\u610F\u89C1",isDrawer:!0},{default:n.withCtx(()=>[n.createVNode(h,{visible:r.visibleListMsg,request:i.param.request,useInfo:i.param.userInfo,onHandleTips:o.handleTips,onHandleMsg:o.handleMsg},null,8,["visible","request","useInfo","onHandleTips","onHandleMsg"])]),_:1},8,["visible"]),n.createVNode(c,{titleText:"\u64CD\u4F5C\u6D88\u606F\u63D0\u793A",isTips:!0,context:`\u5C06${r.commentMsg}\u8BBE\u7F6E\u4E3A\u5E38\u7528\u610F\u89C1`,cancel:o.handleTipsCancel,comfig:o.handleTipsComfig,visible:r.visibleMsgComfig,"onUpdate:visible":t[5]||(t[5]=u=>r.visibleMsgComfig=u)},null,8,["context","cancel","comfig","visible"])])}const EA=pe(tA,[["render",kA],["__scopeId","data-v-73a21e66"]]),bA="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAMgAAADICAYAAACtWK6eAAAAAXNSR0IArs4c6QAACZ5JREFUeF7tne1xG0cMhkE2EqeS2JXY6iLRZMb2jEdJF3YqiVNJ5EbMzIl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2tuLLl7cTDxy3NSqwos2Q/tLBe/vpXEDcNBfAkSbtueN+AOmvk1RLgmsj4HDJtXRxX4AAyfV8AsfSenfb9wcIkLycROBwF3cJgz4BARKeVpWo7gI++gUESPbppXMUKPO4i74BUYcEOOKVXciyf0BUIQGOQiW+zM0YgKhBAhzLqrqg9TiAqEACHAXLe7mrsQBZOyTAsbyiC3sYD5C1QgIchUu7jLsxAVkbJMBRppoTvIwLyFogAY6Esi7ncmxARocEOMpVcpKn8QEZFRLgSCrpsm7XAchokABH2SpO9LYeQEaBBDgSy7m863UB0jskwFG+gpM9rg+QXiEBjuRSznG/TkB6gwQ4cqq3gtf1AtILJMBRoYzztlg3IK0hAY68yq3kef2AtIIEOCqVcO42GoDUhgQ4cqu2oncdQGpBAhwVyzd/Ky1AsiEBjvyKrbyDHiBZkABH5dKts50mIKUhAY461dpgF11ASkECHA3Ktt6W2oAshQQ46lVqo50AJAoJcDQq2brbAshB7/3fJ5n7R3K+2MPmrm6q2K2FAgByrvr97p2ZvTez/V+WOv082tbunv7yFB8JBQDkUpr3HeW1mf1gZt9sa4+AIcHESZAAopdzInYoACAOsViqpwCA6OWciB0KAIhDLJbqKQAgejknYocCAOIQi6V6CgCIXs6J2KEAgDjEYqmeAgCil3MidigAIA6xWKqnAIDo5ZyIHQoAiEMsluopACB6OSdihwIA4hCLpXoKAIhezonYoQCAOMRiqZ4CAKKXcyJ2KAAgDrFYqqcAgOjlnIgdCgCIQyyW6ikAIHo5J2KHAgDiEIulegoAiF7OidihAIA4xGKpngIAopdzInYoACAOsViqpwCA6OWciB0KAIhDLJbqKQAgejknYocCAOIQi6V6CgCIXs6J2KEAgDjEYqmeAgCil3MidigAIA6xWKqnAIDo5ZyIHQoAiEMsluopACB6OSdihwIA4hCLpXoKAIhezonYoQCAOMRiqZ4CAKKXcyJ2KAAgDrFYqqcAgOjlnIgdCgCIQyyW6inwD771qeduEnFsAAAAAElFTkSuQmCC",FE="",QE="",CA={name:"TreeNode",components:{TopPopup:Ke,TopTips:st,departPerson:Tt.departPerson},props:{items:{type:Array,default:()=>[]},endNode:{type:Boolean,default:!1},nodeType:{type:String,default:"outing"},param:{type:Object,default:()=>{}},checkType:{type:String,default:""}},data(){return{nodeItems:[],visible:!1,checkBoxArr:[],checkBoxItem:[],radioArr:"",radioItem:[],partObjId:"",entity:{source:"0",type:this.param.isCheckType||"0",orgType:this.param.isOrgType||[0],request:this.param.request,codeType:this.param.isCodeType||[3],multiple:!0},multiNodeParticipant:{},partNode:{},partNodeArr:{},textTips:"",statusTips:!1,typeTips:"success",gateVars:{},onMultiNodeData:{},onVarsData:{},personMake:[],personMakeList:{}}},watch:{items:{handler(e,t){e&&e.length&&(this.multiNodeParticipant={},this.partNode={},this.partNodeArr={},this.gateVars={},this.nodeItems=JSON.parse(JSON.stringify(e)),console.log("\u8FDB\u6765\u4E86",this.nodeItems),this.nodeItems.map(i=>{if(console.log("v",i,Array.isArray(i.assignees),i.assignees),i.userTaskModelDTO||(i.userTaskModelDTO={name:i.name,humanPerformer:{name:i.humanPerformerName},routeTxt:i.routeTxt,participantList:i.participantList}),Array.isArray(i.assignees)&&i.assignees.length&&(this.multiNodeParticipant[i.id]||(this.multiNodeParticipant[i.id]=[]),this.partNodeArr[i.id]||(this.partNodeArr[i.id]=[]),i.assignees.forEach(s=>{console.log(this.partNodeArr,this.multiNodeParticipant,s,"\u6D4B\u8BD5");const r=this.partNodeArr[i.id].find(a=>a.name==s.name),o=this.multiNodeParticipant[i.id].find(a=>a==s.id);r||this.partNodeArr[i.id].push(s),o||(this.multiNodeParticipant[i.id].push(s.id),console.log("\u8FDB\u6765\u6765\u7740\u4E86"))})),i.userTaskModelDTO&&i.userTaskModelDTO.participantList&&i.userTaskModelDTO.participantList.length&&i.userTaskModelDTO.humanPerformer&&i.userTaskModelDTO.participantList.map(s=>{this.multiNodeParticipant[i.id]||(this.multiNodeParticipant[i.id]=[]),this.partNode[i.id]||(this.partNode[i.id]=[]),this.partNodeArr[i.id]||(this.partNodeArr[i.id]=[]),this.multiNodeParticipant[i.id].includes(s.id)||this.multiNodeParticipant[i.id].push(s.id),this.partNode[i.id].includes(s.name)||this.partNode[i.id].push(s.name),this.partNodeArr[i.id].find(r=>r.name==s.name)||this.partNodeArr[i.id].push(s)}),(i.userTaskModelDTO.humanPerformer.name=="\u56FA\u5B9A\u8D26\u6237"||i.userTaskModelDTO.humanPerformer.name=="\u4E0E\u6D41\u7A0B\u7533\u8BF7\u4EBA\u76F8\u5173")&&this.personMake.push(i.id),i.userTaskModelDTO.humanPerformer.name=="\u56FA\u5B9A\u89D2\u8272/\u5C97\u4F4D"){let s={taskDefId:i.id,postIds:[]};i.userTaskModelDTO.routeTxt.postList.map(r=>{s.postIds.push(r.postId)}),console.error("1"),this.param.request.post("/auth/post/getTaskAuditor",{deptId:this.param.taskNode&&this.param.taskNode[0].vars?this.param.taskNode[0].vars._businessDeptId:"",taskPostIds:[s]}).then(r=>{let o=[],a=[],l=!1;r.data.map(f=>{f.posts.map(h=>{a.push(...h.users),h.users.length==1?o.push(...h.users):l=!0})}),o.length>i.loopCardinality&&i.loopCardinality>0&&(l=!0),l&&(o=[]);let c=[];r.data[0].posts.map(f=>{c.push({...f,projectPost:!(this.param.taskNode&&this.param.taskNode[0].vars&&this.param.taskNode[0].vars._businessDeptId),id:f.users.map(h=>h.id)})}),a.length==0&&(i.noPersonnel=!0),o.length>0&&(i.noPersonnel=!0,this.partObjId=i.id,this.handleCallback(o)),i.positionArray=c})}this.personMake&&this.personMake.length&&this.param.request.post(`aws/repository/getParticipantsOfPerformerNames?taskInstId=${this.param.taskInstId}`,{userTaskDefIds:this.personMake}).then(s=>{s.code==200&&(this.personMakeList=s.data)})}),this.$emit("onMultiNode",this.multiNodeParticipant),this.$emit("onMultiNodeObj",this.partNodeArr),this.$emit("onVars",this.gateVars),this.checkType=="ExclusiveGatewayModel"&&e.length==1&&this.handleRadioClick(e[0]))},immediate:!0,deep:!0}},computed:{check(){return Ys}},mounted(){},methods:{clear(){this.radioArr="",this.radioItem=[],this.checkBoxArr=[],this.checkBoxItem=[],this.multiNodeParticipant={},this.partNode={},this.partNodeArr={},this.gateVars={}},isOption(e){return e=="\u4EFB\u610F\u6307\u5B9A"||e=="\u56FA\u5B9A\u90E8\u95E8"||e=="\u56FA\u5B9A\u5355\u4F4D"||e=="\u4E0E\u6D41\u7A0B\u7533\u8BF7\u4EBA\u6240\u5728\u7EC4\u7EC7\u7ED3\u6784\u7684\u4F4D\u7F6E\u76F8\u5173"||e=="\u56FA\u5B9A\u7FA4\u7EC4"||e=="\u56FA\u5B9A\u89D2\u8272/\u5C97\u4F4D"},handleCallback(e){this.visible=!1,this.multiNodeParticipant[this.partObjId]=[],this.partNode[this.partObjId]=[],this.partNodeArr[this.partObjId]=[],e.map((t,i)=>{this.multiNodeParticipant[this.partObjId].push(t.id),this.partNode[this.partObjId].push(t.name),this.partNodeArr[this.partObjId].push(t)}),this.onMultiNodeData&&(this.multiNodeParticipant={...this.multiNodeParticipant,...this.onMultiNodeData}),this.$emit("onMultiNode",this.multiNodeParticipant),this.$emit("onMultiNodeObj",this.partNodeArr)},handleRadioClick(e){e&&(this.multiNodeParticipant={},this.gateVars={},this.$emit("onMultiNode",this.multiNodeParticipant),this.$emit("onMultiNodeObj",this.partNodeArr),e.incomingConditionItemList.length>0&&e.incomingConditionItemList[0].itemName&&e.incomingConditionItemList[0].compareValue&&(this.gateVars[e.incomingConditionItemList[0].itemName]=e.incomingConditionItemList[0].compareValue),this.radioArr=e.id,this.radioItem=[e],this.handleNode(e),this.$emit("onVars",this.gateVars))},handleCheckBoxClick(e){e&&(this.checkBoxArr.includes(e.id)?(e.incomingConditionItemList.length>0&&e.incomingConditionItemList[0].itemName&&e.incomingConditionItemList[0].compareValue&&delete this.gateVars[e.incomingConditionItemList[0].itemName],delete this.multiNodeParticipant[e.id],this.checkBoxItem.splice(this.checkBoxArr.indexOf(e.id),1),this.checkBoxArr.splice(this.checkBoxArr.indexOf(e.id),1)):(e.incomingConditionItemList.length>0&&e.incomingConditionItemList[0].itemName&&e.incomingConditionItemList[0].compareValue&&(this.gateVars[e.incomingConditionItemList[0].itemName]=e.incomingConditionItemList[0].compareValue),this.checkBoxItem.push(e),this.checkBoxArr.push(e.id)),this.handleNode(e),this.$emit("onVars",this.gateVars))},handleNode(e){let t=e.childNode&&e.childNode.length?e.childNode:e&&e.length?e:[e];t&&t.length&&t.forEach((i,s)=>{i.participantList&&i.participantList.length?i.participantList.forEach((r,o)=>{this.multiNodeParticipant[i.id]||(this.multiNodeParticipant[i.id]=[]),this.partNode[i.id]||(this.partNode[i.id]=[]),this.partNodeArr[i.id]||(this.partNodeArr[i.id]=[]),this.multiNodeParticipant[i.id].includes(r.id)||this.multiNodeParticipant[i.id].push(r.id),this.partNode[i.id].includes(r.name)||this.partNode[i.id].push(r.name),this.partNodeArr[i.id].find(a=>a.name==r.name)||this.partNodeArr[i.id].push(r)}):i.id&&i.humanPerformerName=="\u56FA\u5B9A\u4EBA\u5458"&&(console.error("1"),this.param.request.post(`/aws/repository/getParticipantsOfPerformerNames?taskInstId=${this.param.taskInstId}`,{userTaskDefIds:[i.id]}).then(r=>{r.code==200&&(this.partNode[i.id]={},this.partNode[i.id]=r.data[i.id].split(";"))})),this.nodeType=="outing"&&(this.onVarsData&&(this.gateVars={...this.gateVars,...this.onVarsData}),this.$emit("onVars",this.gateVars))})},handleOpenPopup(e){if(this.visible=!0,this.partObjId=e.id,this.nodeType=="nexting"?e={...e,...e.userTaskModelDTO}:this.nodeType=="outing"?e={...e,humanPerformer:{name:e.humanPerformerName}}:this.handleTips("\u52A0\u8F7D\u5931\u8D25,\u8BF7\u5237\u65B0",!0,"error"),console.log(e,"itemsssssssss"),e.humanPerformer.name=="\u56FA\u5B9A\u5355\u4F4D"||e.humanPerformerName=="\u56FA\u5B9A\u5355\u4F4D"){let t,i=[];console.log(this.multiNodeParticipant,e,"multiNodeParticipant"),this.multiNodeParticipant[e.id]&&this.multiNodeParticipant[e.id].length&&this.partNodeArr[e.id].forEach((s,r)=>{i.push({type:3,id:s.id,subjectId:s.subjectId})}),console.error(this.param.request,"param"),this.entity={source:"1",type:this.param.isCheckType||"0",orgType:this.param.isOrgType||[0],request:this.param.request,codeType:this.param.isCodeType||[3],multiple:e.loopCardinality!=-1,maxMultiple:e.loopCardinality!=-1?100:1,subjectName:t,checkedArray:i}}else if(e.humanPerformer.name=="\u56FA\u5B9A\u90E8\u95E8"||e.humanPerformerName=="\u56FA\u5B9A\u90E8\u95E8"){let t,i=[],s=[];e.routeTxt.departmentIds.forEach((r,o)=>{e.routeTxt.departmentIds.length>1?i.push(r.rangeId):t=r.rangeId}),this.multiNodeParticipant[e.id]&&this.multiNodeParticipant[e.id].length&&this.partNodeArr[e.id].forEach((r,o)=>{s.push({type:3,id:r.id,deptId:t,subjectId:r.subjectId})}),e.routeTxt.departmentIds.length>1?this.entity={source:"1",type:this.param.isCheckType||"0",orgType:this.param.isOrgType||[0],request:this.param.request,codeType:this.param.isCodeType||[3],multiple:e.loopCardinality!=1,maxMultiple:e.loopCardinality>0?e.loopCardinality:0,deptCodeArray:i,checkedArray:s}:this.entity={source:"1",type:this.param.isCheckType||"0",orgType:this.param.isOrgType||[0],request:this.param.request,codeType:this.param.isCodeType||[3],multiple:e.loopCardinality!=1,maxMultiple:e.loopCardinality>0?e.loopCardinality:0,deptCode:t,checkedArray:s}}else if(e.humanPerformer.name=="\u56FA\u5B9A\u89D2\u8272/\u5C97\u4F4D"||e.humanPerformerName=="\u56FA\u5B9A\u89D2\u8272/\u5C97\u4F4D"){let t=[];this.multiNodeParticipant[e.id]&&this.multiNodeParticipant[e.id].length&&this.partNodeArr[e.id].forEach((i,s)=>{t.push({type:3,id:i.id,subjectId:i.subjectId})}),this.entity={source:"1",type:this.param.isCheckType||"0",orgType:[5],request:this.param.request,codeType:[8],multiple:e.loopCardinality!=1,maxMultiple:e.loopCardinality>0?e.loopCardinality:0,positionArray:e.positionArray,checkedArray:t}}else{let t=[];this.multiNodeParticipant[e.id]&&this.multiNodeParticipant[e.id].length&&this.partNodeArr[e.id].forEach((i,s)=>{t.push({type:3,id:i.id,subjectId:i.subjectId})}),console.error(this.param.request,"par"),this.entity={source:"1",type:this.param.isCheckType||"0",orgType:this.param.isOrgType||[0],request:this.param.request,codeType:this.param.isCodeType||[3],multiple:e.loopCardinality!=-1,maxMultiple:e.loopCardinality!=-1?100:1,checkedArray:t}}},handleTips(e,t,i){this.textTips=e,this.statusTips=t,this.typeTips=i,this.$refs.topTips.handleOpen()},onMultiNode(e){e&&(this.onMultiNodeData=e,this.multiNode={...this.multiNode,...this.onMultiNodeData},this.$emit("onMultiNode",this.multiNode),this.$emit("onMultiNodeObj",this.partNodeArr))},onVars(e){e&&(this.onVarsData=e,this.getVars={...this.gateVars,...this.onVarsData},this.$emit("onVars",this.getVars))}}},wA={key:0,class:"treenode"},TA={key:0,class:"treenode-multi"},NA={class:"treenode-node",style:{"margin-top":"0"}},BA=["onClick"],IA=["src"],xA=["onClick"],SA={class:"treenode-node"},DA={key:0},PA={key:1,class:"personselect"},MA={class:"personselect-name"},VA={class:"items-person"},OA=["onClick"],vA={key:1,class:"items-person-name"},RA={key:2,class:"items-person-name"},LA={class:"treenode-node"},FA={key:0},QA={key:1,class:"personselect"},UA={class:"personselect-name"},jA={class:"items-person"},_A=["onClick"],GA={key:1,class:"items-person-name"},qA={key:2,class:"items-person-name"},JA={key:1,class:"treenode-single"},HA={class:"treenode-single-items"},KA={class:"personselect"},zA={class:"personselect-name"},WA={key:0,class:"items-person"},YA=["onClick"],ZA={key:1,class:"items-person-name"},XA={class:"items-person-name"},$A={key:0};function ek(e,t,i,s,r,o){const a=n.resolveComponent("TreeNode",!0),l=n.resolveComponent("departPerson"),c=n.resolveComponent("TopPopup"),f=n.resolveComponent("TopTips");return r.nodeItems&&r.nodeItems.length?(n.openBlock(),n.createElementBlock("div",wA,[i.endNode?n.createCommentVNode("",!0):(n.openBlock(),n.createElementBlock("div",TA,[n.createElementVNode("div",NA,[(n.openBlock(!0),n.createElementBlock(n.Fragment,null,n.renderList(r.nodeItems,h=>(n.openBlock(),n.createElementBlock(n.Fragment,null,[i.checkType=="InclusiveGatewayModel"&&r.nodeItems.length>1?(n.openBlock(),n.createElementBlock("div",{key:0,class:n.normalizeClass(["treenode-checkbox",r.checkBoxArr.includes(h.id)?"treenode-checkbox-active":""]),onClick:u=>o.handleCheckBoxClick(h)},[n.createElementVNode("span",null,[r.checkBoxArr.includes(h.id)?(n.openBlock(),n.createElementBlock("img",{key:0,class:"treenode-checkbox-active-img",src:o.check},null,8,IA)):n.createCommentVNode("",!0)]),n.createTextVNode(" "+n.toDisplayString(h.nodeName||h.name),1)],10,BA)):i.checkType=="ExclusiveGatewayModel"&&r.nodeItems.length>1?(n.openBlock(),n.createElementBlock("div",{key:1,class:n.normalizeClass(["treenode-radio",r.radioArr==h.id?"treenode-radio-active":""]),onClick:u=>o.handleRadioClick(h)},[t[1]||(t[1]=n.createElementVNode("span",null,null,-1)),n.createTextVNode(" "+n.toDisplayString(h.nodeName||h.name),1)],10,xA)):n.createCommentVNode("",!0)],64))),256))]),i.checkType=="InclusiveGatewayModel"&&r.checkBoxItem&&r.checkBoxItem.length?(n.openBlock(!0),n.createElementBlock(n.Fragment,{key:0},n.renderList(r.checkBoxItem,h=>(n.openBlock(),n.createElementBlock("div",SA,[h.childNode&&h.childNode.length?(n.openBlock(),n.createElementBlock("div",DA,[n.createVNode(a,{items:h.childNode,endNode:h.childNode.length==1,nodeType:i.nodeType,param:i.param,checkType:h.type,onOnMultiNode:o.onMultiNode,onOnVars:o.onVars},null,8,["items","endNode","nodeType","param","checkType","onOnMultiNode","onOnVars"])])):(n.openBlock(),n.createElementBlock("div",PA,[n.createElementVNode("div",MA,n.toDisplayString(h.name||h.nodeName),1),n.createElementVNode("div",VA,[h.humanPerformerName!=="\u56FA\u5B9A\u8D26\u6237"&&h.humanPerformerName!=="\u4E0E\u6D41\u7A0B\u7533\u8BF7\u4EBA\u76F8\u5173"?(n.openBlock(),n.createElementBlock("div",{key:0,class:"items-person-set",onClick:n.withModifiers(u=>o.handleOpenPopup(h),["stop"])}," \u8BBE\u7F6E ",8,OA)):n.createCommentVNode("",!0),h.humanPerformerName!=="\u56FA\u5B9A\u8D26\u6237"&&h.humanPerformerName!=="\u4E0E\u6D41\u7A0B\u7533\u8BF7\u4EBA\u76F8\u5173"?(n.openBlock(),n.createElementBlock("div",vA,n.toDisplayString(r.partNode[h.id]?r.partNode[h.id].join(","):""),1)):h.routeTxt&&h.routeTxt.userNames?(n.openBlock(),n.createElementBlock("div",RA,n.toDisplayString(h.routeTxt.userNames),1)):n.createCommentVNode("",!0)])]))]))),256)):n.createCommentVNode("",!0),i.checkType=="ExclusiveGatewayModel"&&r.radioItem&&r.radioItem.length?(n.openBlock(!0),n.createElementBlock(n.Fragment,{key:1},n.renderList(r.radioItem,h=>(n.openBlock(),n.createElementBlock("div",LA,[h.childNode&&h.childNode.length?(n.openBlock(),n.createElementBlock("div",FA,[n.createVNode(a,{items:h.childNode,endNode:h.childNode.length==1,nodeType:i.nodeType,param:i.param,checkType:h.type,onOnMultiNode:o.onMultiNode,onOnVars:o.onVars},null,8,["items","endNode","nodeType","param","checkType","onOnMultiNode","onOnVars"])])):(n.openBlock(),n.createElementBlock("div",QA,[n.createElementVNode("div",UA,n.toDisplayString(h.name||h.nodeName),1),n.createElementVNode("div",jA,[h.humanPerformerName!=="\u56FA\u5B9A\u8D26\u6237"&&h.humanPerformerName!=="\u4E0E\u6D41\u7A0B\u7533\u8BF7\u4EBA\u76F8\u5173"?(n.openBlock(),n.createElementBlock("div",{key:0,class:"items-person-set",onClick:n.withModifiers(u=>o.handleOpenPopup(h),["stop"])}," \u8BBE\u7F6E ",8,_A)):n.createCommentVNode("",!0),h.humanPerformerName!=="\u56FA\u5B9A\u8D26\u6237"&&h.humanPerformerName!=="\u4E0E\u6D41\u7A0B\u7533\u8BF7\u4EBA\u76F8\u5173"?(n.openBlock(),n.createElementBlock("div",GA,n.toDisplayString(r.partNode[h.id]?r.partNode[h.id].join(","):""),1)):h.routeTxt&&h.routeTxt.userNames?(n.openBlock(),n.createElementBlock("div",qA,n.toDisplayString(h.routeTxt.userNames),1)):n.createCommentVNode("",!0)])]))]))),256)):n.createCommentVNode("",!0)])),i.endNode?(n.openBlock(),n.createElementBlock("div",JA,[(n.openBlock(!0),n.createElementBlock(n.Fragment,null,n.renderList(r.nodeItems,h=>(n.openBlock(),n.createElementBlock("div",HA,[n.createElementVNode("div",KA,[n.createElementVNode("div",zA,n.toDisplayString(h.name||h.nodeName),1),h.nodeType!=="endEvent"?(n.openBlock(),n.createElementBlock("div",WA,[h.setPersonnel?(n.openBlock(),n.createElementBlock("div",ZA,n.toDisplayString((h.assignees||[]).map(u=>u.name).join(",")),1)):(n.openBlock(),n.createElementBlock("div",{key:0,class:"items-person-set",onClick:n.withModifiers(u=>o.handleOpenPopup(h),["stop"])}," \u8BBE\u7F6E ",8,YA)),n.createElementVNode("div",XA,[!r.partNode[h.id]&&h.humanPerformerName=="\u56FA\u5B9A\u89D2\u8272/\u5C97\u4F4D"&&h.noPersonnel?(n.openBlock(),n.createElementBlock("div",$A," \u6CA1\u6709\u53EF\u9009\u4EBA\u5458\uFF0C\u8BF7\u68C0\u67E5\u914D\u7F6E ")):n.createCommentVNode("",!0),n.createTextVNode(" "+n.toDisplayString(r.partNode[h.id]?r.partNode[h.id].join(","):""),1)])])):n.createCommentVNode("",!0)])]))),256))])):n.createCommentVNode("",!0),n.createVNode(c,{visible:r.visible,"onUpdate:visible":t[0]||(t[0]=h=>r.visible=h),ref:"TopPopup",titleText:"\u9009\u4EBA",isDrawer:!0},{default:n.withCtx(()=>[r.visible?(n.openBlock(),n.createBlock(l,n.mergeProps({key:0,isTitle:!1},r.entity,{onCallback:o.handleCallback}),null,16,["onCallback"])):n.createCommentVNode("",!0)]),_:1},8,["visible"]),n.createVNode(f,{ref:"topTips",text:r.textTips,statusTips:r.statusTips,type:r.typeTips},null,8,["text","statusTips","type"])])):n.createCommentVNode("",!0)}const tk=pe(CA,[["render",ek],["__scopeId","data-v-b232903c"]]),UE="",ik={name:"tree-person",components:{TreeNode:tk},props:{items:{type:Array,default:()=>[]},nodeType:{type:String,default:"outing"},param:{type:Object,default:()=>{}}},data(){return{nodeItems:[],visible:!1,partObjId:"",partNode:[],firstCheck:"",firstCheckItem:{},firstType:"",firstMultiCheck:[],firstMultiCheckItem:[],firstMultiType:[],childrenItems:[],childrenEndItems:!1,gateVars:{},multiNode:{},partNodeArr:{},getVars:{}}},watch:{items:{handler(e,t){e&&e.length&&(console.log(e,"ceshi\u6570\u636E\u53D8\u5316"),this.nodeType=="nexting"?(this.nodeItems=[],this.childrenEndItems=!0,e.forEach(i=>{i={...i,...i.userTaskModelDTO},console.log("\u6253\u5370\u5F53\u524D\u5904\u7406\u540E\u6570\u636E",i),this.nodeItems.push(i)})):this.nodeType=="outing"&&(this.nodeItems=e),this.nodeItems.length==1&&this.nodeItems[0].type=="ExclusiveGatewayModel"&&this.nodeItems[0].childNode&&this.nodeItems[0].childNode.length==1&&this.handleFirstNodeClick(this.nodeItems[0]),console.log("nodeItems ===",this.nodeItems))},immediate:!0,deep:!0}},methods:{filterMultiItems(e=[]){return console.log(e,this.firstMultiCheck,"originItems"),e.filter(t=>this.firstMultiCheck.includes(t.nodeInfoDTO?t.nodeInfoDTO.id:t.id))},onMultiNode(e){console.log(e,"onMultiNode"),Object.prototype.toString.call(e)=="[object Object]"&&(Object.prototype.toString.call(this.multiNode)=="[object Object]"?Object.keys(e).forEach(t=>{e[t]||(e[t]=[""]),e[t]&&e[t].length>1?this.multiNode[t]=e[t].filter(i=>i):this.multiNode[t]=e[t]}):this.multiNode=e),console.error(JSON.parse(JSON.stringify(e)),"onMultiNode \u8282\u70B9\u4FEE\u6539",JSON.parse(JSON.stringify(this.multiNode))),this.$emit("onMultiNode",this.multiNode)},onMultiNodeObj(e){this.partNodeArr=e,this.$emit("onMultiNodeObj",this.partNodeArr)},onVars(e){e?this.getVars={...this.gateVars,...e}:this.getVars={...this.gateVars},this.$emit("onVars",this.getVars)},isOption(e){return e=="\u4EFB\u610F\u6307\u5B9A"||e=="\u56FA\u5B9A\u90E8\u95E8"||e=="\u56FA\u5B9A\u5355\u4F4D"||e=="\u4E0E\u6D41\u7A0B\u7533\u8BF7\u4EBA\u6240\u5728\u7EC4\u7EC7\u7ED3\u6784\u7684\u4F4D\u7F6E\u76F8\u5173"||e=="\u56FA\u5B9A\u7FA4\u7EC4"||e=="\u56FA\u5B9A\u89D2\u8272/\u5C97\u4F4D"},handleMultiFirstNodeClick(e,t=[]){let i=e;if(console.error(i,"\u70B9\u51FB\u8282\u70B9"),i&&i.nodeInfoDTO&&(i=i.nodeInfoDTO),this.firstMultiCheck.includes(i.id)){this.firstMultiCheck=this.firstMultiCheck.filter(s=>s!=i.id),this.firstMultiCheckItem=this.firstMultiCheckItem.filter(s=>s.id!=i.id),this.firstMultiType=this.firstMultiType.filter(s=>s!=i.nodeType),delete this.param.selChildrenItems[i.id];return}if(i){this.firstMultiCheck.push(i.id),this.firstMultiCheckItem.push(i),this.firstMultiType.push(i.nodeType);let s=[i];i.branches&&i.branches.length?(this.childrenItems=i.branches,this.childrenEndItems=!1):(this.childrenItems=[i],this.childrenEndItems=!0),console.error("\u4FEE\u6539\u503C",this.param.selChildrenItems,t),t.forEach(r=>{delete this.param.selChildrenItems[r.id],this.param.selChildrenItems[i.id]=(this.childrenItems||[]).map(o=>o.nodeInfoDTO||o)}),this.gateVars={},s.forEach(r=>{(!this.param||!this.param.vars)&&(this.param.vars={}),this.param.vars[r.incomingConditionItemList[0].itemName]=r.incomingConditionItemList[0].compareValue,this.gateVars[r.incomingConditionItemList[0].itemName]=r.incomingConditionItemList[0].compareValue})}},handleFirstNodeClick(e,t=[]){let i=e;if(console.error(i,"\u70B9\u51FB\u8282\u70B9",t),i&&i.nodeInfoDTO&&(i=i.nodeInfoDTO),i){this.firstCheck=i.id,this.firstCheckItem=i,this.firstType=i.nodeType;let s=[i];i.branches&&i.branches.length?(this.childrenItems=i.branches,this.childrenEndItems=!1):(this.childrenItems=[i],this.childrenEndItems=!0),console.error("\u4FEE\u6539\u503C2",this.param.selChildrenItems,t),t.forEach(r=>{const o=this.param.selChildrenItems[r.nodeInfoDTO?r.nodeInfoDTO.id:r.id];Array.isArray(o)&&o.forEach(a=>{delete this.param.selChildrenItems[a.id]}),delete this.param.selChildrenItems[r.nodeInfoDTO?r.nodeInfoDTO.id:r.id],this.param.selChildrenItems[i.id]=(this.childrenItems||[]).map(a=>a.nodeInfoDTO||a)}),this.gateVars={},s.forEach(r=>{(!this.param||!this.param.vars)&&(this.param.vars={}),this.param.vars[r.incomingConditionItemList[0].itemName]=r.incomingConditionItemList[0].compareValue,this.gateVars[r.incomingConditionItemList[0].itemName]=r.incomingConditionItemList[0].compareValue})}}}},nk={class:"test"},sk={key:0},rk={key:0,class:"treeperson-firstnode"},ok=["onClick"],ak={key:1,class:"treeperson-firstnode"},lk={key:2,class:"treeperson-firstnode"},ck=["onClick"],pk={key:3,class:"treeperson-firstnode"},dk=["onClick"],hk={key:0,class:"treeperson-firstnode"},uk={class:"treeperson-checkbox-box"},fk=["onClick"],mk={key:0,class:"treeperson-firstnode"},gk=["onClick"],yk=["onClick"];function Ak(e,t,i,s,r,o){const a=n.resolveComponent("TreePerson",!0),l=n.resolveComponent("TreeNode");return n.openBlock(),n.createElementBlock("div",nk,[r.nodeItems&&r.nodeItems.length?(n.openBlock(),n.createElementBlock("div",sk,[(n.openBlock(!0),n.createElementBlock(n.Fragment,null,n.renderList(r.nodeItems,(c,f)=>(n.openBlock(),n.createElementBlock("div",{class:"treeperson",key:f},[c.branches&&c.branches.length?(n.openBlock(),n.createElementBlock(n.Fragment,{key:0},[i.nodeType=="nexting"&&c.nodeType!="inclusiveGateway"?(n.openBlock(),n.createElementBlock(n.Fragment,{key:0},[c.nodeType=="exclusiveGateway"&&c.branches.length>1?(n.openBlock(),n.createElementBlock("div",rk,[t[1]||(t[1]=n.createElementVNode("div",{class:"treeperson-title"},[n.createTextVNode(" \u4E0B\u4E00\u6B65\u5BA1\u6279\u8282\u70B9 "),n.createElementVNode("span",{class:"treeperson-title--re"},"*")],-1)),(n.openBlock(!0),n.createElementBlock(n.Fragment,null,n.renderList(c.branches,(h,u)=>(n.openBlock(),n.createElementBlock("div",{class:n.normalizeClass(["treeperson-radio",r.firstCheck==(h.nodeInfoDTO?h.nodeInfoDTO.id:h.id)?"treeperson-radio-active":""]),onClick:g=>o.handleFirstNodeClick(h,c.branches),key:u},[t[0]||(t[0]=n.createElementVNode("span",null,null,-1)),n.createTextVNode(" "+n.toDisplayString(h.id.includes("Flow")?h.nodeName||h.name:h.nodeInfoDTO?h.nodeInfoDTO.nodeName||h.nodeInfoDTO.name||h.nodeName||h.name:h.nodeName||h.name),1)],10,ok))),128))])):c.nodeType=="exclusiveGateway"&&c.branches.length==1?(n.openBlock(),n.createElementBlock("div",ak,[(n.openBlock(!0),n.createElementBlock(n.Fragment,null,n.renderList(c.branches,(h,u)=>(n.openBlock(),n.createElementBlock("div",null,[t[2]||(t[2]=n.createElementVNode("span",null,null,-1)),n.createVNode(a,{ref_for:!0,ref:"TreePersonRef",items:h.branches&&h.branches.length>0?h.branches:[h],nodeType:"nexting",param:i.param,onOnMultiNode:o.onMultiNode,onOnMultiNodeObj:o.onMultiNodeObj},null,8,["items","param","onOnMultiNode","onOnMultiNodeObj"])]))),256))])):c.nodeType=="inclusiveGateway"&&c.branches.length>=1?(n.openBlock(),n.createElementBlock("div",lk,[t[4]||(t[4]=n.createElementVNode("div",{class:"treeperson-title"},[n.createTextVNode(" \u4E0B\u4E00\u6B65\u5BA1\u6279\u8282\u70B9 "),n.createElementVNode("span",{class:"treeperson-title--re"},"*")],-1)),(n.openBlock(!0),n.createElementBlock(n.Fragment,null,n.renderList(c.branches,(h,u)=>(n.openBlock(),n.createElementBlock("div",{class:n.normalizeClass(["treeperson-radio",r.firstCheck==(h.nodeInfoDTO?h.nodeInfoDTO.id:h.id)?"treeperson-radio-active":""]),onClick:g=>o.handleMultiFirstNodeClick(h),key:u},[t[3]||(t[3]=n.createElementVNode("span",null,null,-1)),n.createTextVNode(" "+n.toDisplayString(h.nodeInfoDTO?h.nodeInfoDTO.nodeName||h.nodeInfoDTO.name:h.nodeName||h.name),1)],10,ck))),128))])):(n.openBlock(),n.createElementBlock("div",pk,[t[6]||(t[6]=n.createElementVNode("div",{class:"treeperson-title"},[n.createTextVNode(" \u4E0B\u4E00\u6B65\u5BA1\u6279\u8282\u70B9 "),n.createElementVNode("span",{class:"treeperson-title--re"},"*")],-1)),(n.openBlock(!0),n.createElementBlock(n.Fragment,null,n.renderList(c.branches,(h,u)=>(n.openBlock(),n.createElementBlock("div",{class:n.normalizeClass(["treeperson-radio",r.firstCheck==(h.nodeInfoDTO?h.nodeInfoDTO.id:h.id)?"treeperson-radio-active":""]),onClick:g=>o.handleFirstNodeClick(h,c.branches),key:u},[t[5]||(t[5]=n.createElementVNode("span",null,null,-1)),n.createTextVNode(" "+n.toDisplayString(h.nodeInfoDTO?h.nodeInfoDTO.nodeName||h.nodeInfoDTO.name:h.nodeName||h.name),1)],10,dk))),128))])),r.childrenItems&&r.childrenItems.length>0&&r.childrenItems[0].nodeInfoDTO&&r.childrenItems[0].nodeInfoDTO.nodeType!="userTask"?(n.openBlock(),n.createBlock(a,{key:r.firstCheck,ref_for:!0,ref:"TreePersonRef",items:[r.firstCheckItem],nodeType:"nexting",param:i.param,onOnMultiNode:o.onMultiNode,onOnMultiNodeObj:o.onMultiNodeObj},null,8,["items","param","onOnMultiNode","onOnMultiNodeObj"])):(n.openBlock(),n.createBlock(l,{key:5,items:r.childrenItems,endNode:r.childrenEndItems,nodeType:i.nodeType,param:i.param,checkType:r.firstType,onOnMultiNode:o.onMultiNode,onOnMultiNodeObj:o.onMultiNodeObj,onOnVars:o.onVars},null,8,["items","endNode","nodeType","param","checkType","onOnMultiNode","onOnMultiNodeObj","onOnVars"]))],64)):i.nodeType=="nexting"&&c.nodeType=="inclusiveGateway"?(n.openBlock(),n.createElementBlock(n.Fragment,{key:1},[c.nodeType=="inclusiveGateway"&&c.branches.length>=1?(n.openBlock(),n.createElementBlock("div",hk,[t[8]||(t[8]=n.createElementVNode("div",{class:"treeperson-title"},[n.createTextVNode(" \u4E0B\u4E00\u6B65\u5BA1\u6279\u8282\u70B9 "),n.createElementVNode("span",{class:"treeperson-title--re"},"*")],-1)),n.createElementVNode("div",uk,[(n.openBlock(!0),n.createElementBlock(n.Fragment,null,n.renderList(c.branches,(h,u)=>(n.openBlock(),n.createElementBlock("div",{class:n.normalizeClass(["treeperson-checkbox",r.firstMultiCheck.includes(h.nodeInfoDTO?h.nodeInfoDTO.id:h.id)?"treeperson-checkbox-active":""]),onClick:g=>o.handleMultiFirstNodeClick(h,c.branches),key:u},[t[7]||(t[7]=n.createElementVNode("span",null,null,-1)),n.createTextVNode(" "+n.toDisplayString(h.nodeInfoDTO?h.nodeInfoDTO.nodeName||h.nodeInfoDTO.name:h.nodeName||h.name),1)],10,fk))),128))])])):n.createCommentVNode("",!0),(n.openBlock(!0),n.createElementBlock(n.Fragment,null,n.renderList(o.filterMultiItems(c.branches),h=>(n.openBlock(),n.createBlock(l,{items:h.branches&&h.branches.length>0?h.branches:[h.nodeInfoDTO?h.nodeInfoDTO:h],endNode:!0,nodeType:i.nodeType,param:i.param,checkType:r.firstType,onOnMultiNode:o.onMultiNode,onOnMultiNodeObj:o.onMultiNodeObj,onOnVars:o.onVars},null,8,["items","nodeType","param","checkType","onOnMultiNode","onOnMultiNodeObj","onOnVars"]))),256))],64)):n.createCommentVNode("",!0)],64)):c.nodeType=="exclusiveGateway"&&c.branches&&c.branches.length>1?(n.openBlock(),n.createElementBlock(n.Fragment,{key:1},[t[10]||(t[10]=n.createElementVNode("div",{class:"treeperson-title"},[n.createTextVNode(" \u4E0B\u4E00\u6B65\u5BA1\u6279\u8282\u70B9 "),n.createElementVNode("span",{class:"treeperson-title--re"},"*")],-1)),c.type=="ExclusiveGatewayModel"&&c.branches.length==1?n.createCommentVNode("",!0):(n.openBlock(),n.createElementBlock("div",mk,[(n.openBlock(!0),n.createElementBlock(n.Fragment,null,n.renderList(c.branches,(h,u)=>(n.openBlock(),n.createElementBlock("div",{class:n.normalizeClass(["treeperson-checkbox",r.firstCheck==h.id?"treeperson-checkbox-active":""]),onClick:g=>o.handleFirstNodeClick(h,c.branches),key:u},[t[9]||(t[9]=n.createElementVNode("span",null,null,-1)),n.createTextVNode(" "+n.toDisplayString(h.nodeName||h.name),1)],10,gk))),128))])),n.createVNode(l,{items:r.childrenItems,endNode:r.childrenEndItems,nodeType:i.nodeType,param:i.param,checkType:r.firstType,onOnMultiNode:o.onMultiNode,onOnMultiNodeObj:o.onMultiNodeObj,onOnVars:o.onVars},null,8,["items","endNode","nodeType","param","checkType","onOnMultiNode","onOnMultiNodeObj","onOnVars"])],64)):c.nodeType=="exclusiveGateway"&&c.branches&&c.branches.length==1?(n.openBlock(),n.createElementBlock(n.Fragment,{key:2},[t[11]||(t[11]=n.createElementVNode("div",{class:"treeperson-title"},[n.createTextVNode(" \u4E0B\u4E00\u6B65\u5BA1\u6279\u8282\u70B9 "),n.createElementVNode("span",{class:"treeperson-title--re"},"*")],-1)),i.nodeType=="nexting"?(n.openBlock(),n.createBlock(l,{key:0,items:[c.branches[0]],endNode:r.childrenEndItems,nodeType:i.nodeType,param:i.param,checkType:r.firstType,onOnMultiNode:o.onMultiNode,onOnMultiNodeObj:o.onMultiNodeObj,onOnVars:o.onVars},null,8,["items","endNode","nodeType","param","checkType","onOnMultiNode","onOnMultiNodeObj","onOnVars"])):(n.openBlock(),n.createBlock(l,{key:1,items:[c.branches[0]],endNode:!0,nodeType:"nexting",param:i.param,checkType:r.firstType,onOnMultiNode:o.onMultiNode,onOnMultiNodeObj:o.onMultiNodeObj,onOnVars:o.onVars},null,8,["items","param","checkType","onOnMultiNode","onOnMultiNodeObj","onOnVars"]))],64)):c.id||c.nodeInfoDTO&&c.nodeInfoDTO.id?(n.openBlock(),n.createElementBlock(n.Fragment,{key:3},[i.nodeType=="nexting"?(n.openBlock(),n.createElementBlock(n.Fragment,{key:0},[c.nodeInfoDTO&&c.nodeInfoDTO.nodeType=="exclusiveGateway"?(n.openBlock(),n.createElementBlock(n.Fragment,{key:0},[t[13]||(t[13]=n.createElementVNode("div",{class:"treeperson-title"},[n.createTextVNode(" \u4E0B\u4E00\u6B65\u5BA1\u6279\u8282\u70B9 "),n.createElementVNode("span",{class:"treeperson-title--re"},"*")],-1)),(n.openBlock(!0),n.createElementBlock(n.Fragment,null,n.renderList(c.nodeInfoDTO.branches,(h,u)=>(n.openBlock(),n.createElementBlock("div",{class:n.normalizeClass(["treeperson-radio",r.firstCheck==(h.nodeInfoDTO?h.nodeInfoDTO.id:h.id)?"treeperson-radio-active":""]),onClick:g=>o.handleFirstNodeClick(h,c.nodeInfoDTO.branches),key:u},[t[12]||(t[12]=n.createElementVNode("span",null,null,-1)),n.createTextVNode(" "+n.toDisplayString(h.nodeName||h.name),1)],10,yk))),128)),(n.openBlock(),n.createBlock(a,{key:r.firstCheck,ref_for:!0,ref:"TreePersonRef",items:[r.firstCheckItem],nodeType:"nexting",param:i.param,onOnMultiNode:o.onMultiNode,onOnMultiNodeObj:o.onMultiNodeObj},null,8,["items","param","onOnMultiNode","onOnMultiNodeObj"]))],64)):(n.openBlock(),n.createElementBlock(n.Fragment,{key:1},[t[14]||(t[14]=n.createElementVNode("div",{class:"treeperson-title"},[n.createTextVNode(" \u4E0B\u4E00\u6B65\u5BA1\u6279\u8282\u70B9 "),n.createElementVNode("span",{class:"treeperson-title--re"},"*")],-1)),n.createVNode(l,{items:[c.nodeInfoDTO?c.nodeInfoDTO:c],endNode:r.childrenEndItems,nodeType:i.nodeType,param:i.param,checkType:r.firstType,onOnMultiNode:o.onMultiNode,onOnMultiNodeObj:o.onMultiNodeObj,onOnVars:o.onVars},null,8,["items","endNode","nodeType","param","checkType","onOnMultiNode","onOnMultiNodeObj","onOnVars"])],64))],64)):(n.openBlock(),n.createBlock(l,{key:1,items:[c],endNode:!0,nodeType:"nexting",param:i.param,checkType:r.firstType,onOnMultiNode:o.onMultiNode,onOnMultiNodeObj:o.onMultiNodeObj,onOnVars:o.onVars},null,8,["items","param","checkType","onOnMultiNode","onOnMultiNodeObj","onOnVars"]))],64)):(n.openBlock(),n.createElementBlock(n.Fragment,{key:4},[],64))]))),128))])):n.createCommentVNode("",!0)])}const kk=pe(ik,[["render",Ak],["__scopeId","data-v-f892df8f"]]),jE="",Ek={data(){},props:{titleText:{default:"top-popup",type:String},context:{default:"\u5185\u5BB9",type:String},cancelText:{default:"\u53D6\u6D88",type:String},comfigText:{default:"\u786E\u5B9A",type:String},comfig:{default:null,type:Function},cancel:{default:null,type:Function},isMask:{default:!0,type:Boolean},isMaskClose:{default:!0,type:Boolean},isTips:{default:!1,type:Boolean},isDrawer:{default:!1,type:Boolean},visible:{default:!1,type:Boolean},isIndex:{type:Number},width:{type:String,default:"95vw"},className:{type:String,default:""},appendClass:{type:String,default:""}},data(){return{show:!1,top:0,useHidden:!1}},watch:{visible:{handler(e,t){if(e)this.show=e,document.body.style.position=="fixed"&&document.body.style.overflow=="hidden"?this.useHidden=!0:this.useHidden=!1,this.top=window.scrollY,document.body.style.position="fixed",document.body.style.top=`${-top}px`,document.body.style.overflow="hidden";else{if(this.useHidden){this.show=e,this.$emit("update:visible",!1);return}else document.body.style.position="",document.body.style.top="",document.body.style.overflow="visible",window.scrollTo(0,this.top);this.show=e,this.$emit("update:visible",!1)}},immediate:!0}},methods:{handleOpen(){this.show=!0,this.top=window.scrollY,document.body.style.position="fixed",document.body.style.top=-this.top+"px"},handleClose(){document.body.style.position="",document.body.style.top="",window.scrollTo(0,this.top),this.show=!1,this.$emit("update:visible",!1)},handleCancel(){typeof this.cancel=="function"&&this.cancel(),this.handleClose()},handleComfig(){typeof this.comfig=="function"&&this.comfig()},isIOS(){let e=navigator.userAgent.includes("iPhone"),t=navigator.userAgent.includes("iPad");return e||t}},mounted(){this.$nextTick(()=>{const e=document.getElementsByClassName("process-warp")[0]?document.getElementsByClassName("process-warp")[0]:document.getElementsByClassName("sumbmitPopup-index-sumbit")[0].getElementsByClassName("top-popup")[0];e.append?e.append(this.$el):e.appendChild(this.$el),document.documentElement.scrollTop||document.body.scrollTop})}},bk={class:"top-popup-header"},Ck={class:"header-title"},wk={class:"top-popup-body"},Tk={class:"top-popup-drawer--body"},Nk={class:"top-tips-header"},Bk={class:"top-tips-body"},Ik={class:"top-tips-footer"};function xk(e,t,i,s,r,o){return n.openBlock(),n.createElementBlock("div",{class:n.normalizeClass(["top-popup-zindex",i.className]),style:n.normalizeStyle(`${i.isIndex?`z-index:${i.isIndex}`:""}`)},[n.createElementVNode("div",{class:"top-popup-mask",style:n.normalizeStyle(r.show&&i.isMask?"visibility: visible; opacity: .7;":"visibility: hidden; opacity: 0;"),onClick:t[0]||(t[0]=a=>i.isMaskClose&&o.handleClose())},null,4),!i.isTips&&!i.isDrawer?(n.openBlock(),n.createElementBlock("div",{key:0,class:"top-popup",style:n.normalizeStyle(r.show?"transform: translateY(0)":"transform: translateY(150%)")},[n.createElementVNode("div",bk,[n.createElementVNode("div",{class:"header-cancel",onClick:t[1]||(t[1]=(...a)=>o.handleCancel&&o.handleCancel(...a))},n.toDisplayString(i.cancelText),1),n.createElementVNode("div",Ck,n.toDisplayString(i.titleText),1),n.createElementVNode("div",{class:"header-comfig",onClick:t[2]||(t[2]=(...a)=>o.handleComfig&&o.handleComfig(...a))},n.toDisplayString(i.comfigText),1)]),n.createElementVNode("div",wk,[n.renderSlot(e.$slots,"default",{},void 0,!0)])],4)):!i.isTips&&i.isDrawer?(n.openBlock(),n.createElementBlock("div",{key:1,class:n.normalizeClass(["top-popup-drawer",r.show?"top-popup-drawer--active":""]),style:n.normalizeStyle(i.width?`width:${i.width};`:"")},[n.createElementVNode("div",Tk,[n.renderSlot(e.$slots,"default",{},void 0,!0)])],6)):i.isTips&&!i.isDrawer?(n.openBlock(),n.createElementBlock("div",{key:2,class:"top-tips",style:n.normalizeStyle(r.show?"visibility: visible; opacity: 1; transform: scale(1)":"visibility: hidden; opacity: 0; transform: scale(1.2)")},[n.createElementVNode("div",Nk,n.toDisplayString(i.titleText),1),n.createElementVNode("div",Bk,n.toDisplayString(i.context),1),n.createElementVNode("div",Ik,[n.createElementVNode("div",{class:"top-tips-btn",onClick:t[3]||(t[3]=(...a)=>o.handleCancel&&o.handleCancel(...a))},n.toDisplayString(i.cancelText),1),n.createElementVNode("div",{class:"top-tips-btn",onClick:t[4]||(t[4]=(...a)=>o.handleComfig&&o.handleComfig(...a))},n.toDisplayString(i.comfigText),1)])],4)):n.createCommentVNode("",!0)],6)}const Va=pe(Ek,[["render",xk],["__scopeId","data-v-06a80662"]]),_E="",Sk={props:{request:{type:Function,default:()=>{}}},components:{signDrawer:Va},data(){return{ctx:null,signatureImage:"",actionHeight:0,historyHeight:0,isDrawing:!1,paths:[],currentPath:[],historyPics:[],savaClock:!1,confirmVisible:!1}},methods:{startDrawing(e){if(this.$refs.canvasRef.getContext){this.isDrawing=!0,this.currentPath=[];const t=this.$refs.canvasRef.getBoundingClientRect(),i=(e.touches[0].clientX-t.left)*(this.$refs.canvasRef.width/t.width)/window.devicePixelRatio,s=(e.touches[0].clientY-t.top)*(this.$refs.canvasRef.height/t.height)/window.devicePixelRatio;this.ctx.beginPath(),this.ctx.moveTo(i,s),this.currentPath.push({x:i,y:s})}else this.isDrawing=!0,this.currentPath=[],this.currentPath.push({x:e.touches[0].x,y:e.touches[0].y})},draw(e){if(!!this.isDrawing)if(this.$refs.canvasRef.getContext&&this.currentPath.length>0){const t=this.$refs.canvasRef.getBoundingClientRect(),i=(e.touches[0].clientX-t.left)*(this.$refs.canvasRef.width/t.width)/window.devicePixelRatio,s=(e.touches[0].clientY-t.top)*(this.$refs.canvasRef.height/t.height)/window.devicePixelRatio;this.ctx.lineWidth=3,this.ctx.lineCap="round",this.ctx.lineJoin="round",this.ctx.strokeStyle="#000000",this.ctx.imageSmoothingEnabled=!0,this.ctx.imageSmoothingQuality="high",this.$refs.canvasRef.style.imageRendering="auto",this.ctx.lineTo(i,s),this.ctx.stroke(),this.currentPath.push({x:i,y:s})}else this.currentPath.length>0&&(this.currentPath.push({x:e.touches[0].x,y:e.touches[0].y}),this.ctx.moveTo(this.currentPath[this.currentPath.length-2].x,this.currentPath[this.currentPath.length-2].y),this.ctx.lineTo(this.currentPath[this.currentPath.length-1].x,this.currentPath[this.currentPath.length-1].y),this.ctx.setLineWidth(3),this.ctx.lineCap="round",this.ctx.lineJoin="round",this.ctx.setStrokeStyle("#000"),this.ctx.stroke(),this.ctx.draw(!0))},undo(){if(this.$refs.canvasRef.getContext){this.paths.pop(),this.ctx.clearRect(0,0,this.$refs.canvasRef.width,this.$refs.canvasRef.height),this.ctx.fillStyle="#fff",this.ctx.fillRect(0,0,this.$refs.canvasRef.width,this.$refs.canvasRef.height);for(let e of this.paths)for(let t=0;t<e.length-1;t++){const{x:i,y:s}=e[t];t===0?(this.ctx.beginPath(),this.ctx.moveTo(i,s)):(this.ctx.lineTo(i,s),this.ctx.stroke())}}else if(this.paths.length>0){this.paths.pop(),this.ctx.clearRect(0,0,this.$refs.canvasRef.$el.offsetWidth,this.$refs.canvasRef.$el.offsetHeight),this.ctx.draw(!0);for(let e of this.paths)for(let t=0;t<e.length-1;t++)this.ctx.moveTo(e[t].x,e[t].y),this.ctx.lineTo(e[t+1].x,e[t+1].y),this.ctx.lineCap="round",this.ctx.lineJoin="round",this.ctx.setLineWidth(4),this.ctx.setStrokeStyle("#000"),this.ctx.stroke(),this.ctx.draw(!0);this.ctx.draw(!0)}this.currentPath=[]},finishDrawing(e){this.paths.push(this.currentPath),this.currentPath=[],this.isDrawing=!1},clearCanvas(){var e,t;(t=(e=this.$refs)==null?void 0:e.canvasRef)!=null&&t.getContext?(this.ctx.clearRect(0,0,this.$refs.canvasRef.width,this.$refs.canvasRef.height),this.ctx.fillStyle="#fff",this.ctx.fillRect(0,0,this.$refs.canvasRef.width,this.$refs.canvasRef.height),this.signatureImage="",this.paths=[]):(this.ctx.clearRect(0,0,this.$refs.canvasRef.$el.offsetWidth,this.$refs.canvasRef.$el.offsetHeight),this.ctx.draw(!0),this.signatureImage="",this.paths=[]),this.currentPath=[],this.$emit("saveSignature","",!1)},cancelSign(){this.clearCanvas(),this.$emit("close")},fixAccuracy(e,t){const i=new Blob([e],{type:"text/plain"}),o=new File([i],"text.txt").size/1024;if(o<=64){const a=document.getElementById("canvas-id");return this.getRotatedDataURL(a,-90,t)}else{if(o>300)return null;{let a,l;if(t<.005)return null;if(t-.05>0){a=t-.05;const c=document.getElementById("canvas-id");return l=this.getRotatedDataURL(c,-90,a),this.fixAccuracy(l,a)}else{a=t/2;const c=document.getElementById("canvas-id");return l=this.getRotatedDataURL(c,-90,a),this.fixAccuracy(l,a)}}}},confirmSave(){if(this.paths.length==0){this.$emit("validateFail","\u8BF7\u7B7E\u5B57!");return}this.confirmVisible=!0},saveSignature(){if(this.confirmVisible=!1,this.savaClock)return;this.savaClock=!0;let e=this;if(this.$refs.canvasRef.getContext){let t=.6;const i=document.getElementById("canvas-id");return this.getRotatedDataURL(i,-90,t),!0}else uni.canvasToTempFilePath({canvasId:"canvas-id",success(t){e.signatureImage=t.tempFilePath;let i=JSON.parse(localStorage.getItem("signaturesArr"))||[];i.unshift(this.signatureImage),this.$set(this,"historyPics",i.slice(0,3)),localStorage.setItem("signaturesArr",JSON.stringify(this.historyPics)),e.$emit("saveSignature",e.signatureImage)}},e)},isUniCanvas(){var e;return!((e=this.$refs.canvasRef)!=null&&e.getContext)},disableWeChatScroll(e){e.preventDefault()},useHistory(e){this.historyPics[e]&&this.$emit("saveSignature",this.historyPics[e],!0)},handleTips(e,t,i){this.textTips=e,this.statusTips=t,this.typeTips=i,this.$refs.topTips.handleOpen()},getRotatedDataURL(e,t,i){let s=e.width/window.devicePixelRatio,r=e.height/window.devicePixelRatio,o=t*Math.PI/180,a=Math.max(s*Math.abs(Math.cos(o)),r*Math.abs(Math.sin(o))),l=Math.max(s*Math.abs(Math.sin(o)),r*Math.abs(Math.cos(o)));const c=document.createElement("canvas"),f=c.getContext("2d");c.width=a,c.height=l,f.translate(a/2,l/2),f.rotate(o),f.drawImage(e,-s/2,-r/2,s,r),c.toBlob(h=>{this.uploadImage(h)},"image/png",.95)},async uploadImage(e,t){this.loading=!0;const i=new FormData;i.append("file",e,t||`signature-${Date.now()}.png`);const s=await this.request.post("/file/upload",i,{headers:{"Content-Type":"multipart/form-data"}});if(console.log(s),this.loading=!1,!s.success)return;let r=JSON.parse(localStorage.getItem("signaturesArr"))||[];r.unshift(s.data),this.historyPics=r.slice(0,3),localStorage.setItem("signaturesArr",JSON.stringify(this.historyPics)),this.$emit("saveSignature",s.data,!0)}},computed:{setDynamicVars(){return{"--action-height":`${this.historyHeight}px`}}},mounted(){var e;if(this.historyHeight=(e=document.querySelector(".history"))==null?void 0:e.offsetHeight,this.$refs.canvasRef.getContext){let t=document.querySelector(".canvas-container");if(t){let i=document.getElementById("canvas-id");const s=t.offsetWidth,r=t.offsetHeight-this.actionHeight-this.historyHeight;i.style.width=`${s}px`,i.style.height=`${r}px`,i.width=s*window.devicePixelRatio,i.height=r*window.devicePixelRatio,this.ctx=this.$refs.canvasRef.getContext("2d"),this.ctx.scale(window.devicePixelRatio,window.devicePixelRatio),this.ctx.fillStyle="#fff",this.ctx.fillRect(0,0,i.width,i.height)}}else{this.ctx=uni.createCanvasContext("canvas-id",this);const t=uni.getSystemInfoSync().pixelRatio;this.ctx.scale(t,t)}document.addEventListener("touchmove",this.disableWeChatScroll,{passive:!1}),localStorage.getItem("signaturesArr")?this.historyPics=JSON.parse(localStorage.getItem("signaturesArr")):this.historyPics=[]},beforeDestroy(){document.removeEventListener("touchmove",this.disableWeChatScroll)}},Dk={class:"canvas-container"},Pk={key:0,class:"tips"},Mk={class:"history"},Vk=["src"],Ok=["src"],vk=["src"],Rk={class:"actions-area"};function Lk(e,t,i,s,r,o){const a=n.resolveComponent("signDrawer");return n.openBlock(),n.createElementBlock("div",{class:"sign-container",style:n.normalizeStyle(o.setDynamicVars)},[n.createElementVNode("div",Dk,[r.paths.length==0&&r.currentPath.length==0?(n.openBlock(),n.createElementBlock("div",Pk,"\u8BF7\u5728\u6B64\u533A\u57DF\u7B7E\u5B57")):n.createCommentVNode("",!0),n.createElementVNode("canvas",{ref:"canvasRef",onTouchmove:t[0]||(t[0]=(...l)=>o.draw&&o.draw(...l)),onTouchstart:t[1]||(t[1]=(...l)=>o.startDrawing&&o.startDrawing(...l)),onTouchend:t[2]||(t[2]=(...l)=>o.finishDrawing&&o.finishDrawing(...l)),id:"canvas-id","canvas-id":"canvas-id",class:n.normalizeClass({"uni-canvas-style":o.isUniCanvas()})},null,34)]),n.createElementVNode("div",Mk,[n.createElementVNode("div",{class:"img-grid",onClick:t[3]||(t[3]=l=>o.useHistory(0))},[r.historyPics[0]?(n.openBlock(),n.createElementBlock("img",{key:0,src:r.historyPics[0]?r.historyPics[0].url:"",fit:"scale-down"},null,8,Vk)):n.createCommentVNode("",!0)]),n.createElementVNode("div",{class:"img-grid",onClick:t[4]||(t[4]=l=>o.useHistory(1))},[r.historyPics[1]&&r.historyPics[1].url?(n.openBlock(),n.createElementBlock("img",{key:0,src:r.historyPics[1].url,fit:"scale-down"},null,8,Ok)):n.createCommentVNode("",!0)]),n.createElementVNode("div",{class:"img-grid",onClick:t[5]||(t[5]=l=>o.useHistory(2)),style:{"margin-right":"10rpx"}},[r.historyPics[2]&&r.historyPics[2].url?(n.openBlock(),n.createElementBlock("img",{key:0,src:r.historyPics[2].url,fit:"scale-down"},null,8,vk)):n.createCommentVNode("",!0)])]),n.createElementVNode("div",Rk,[n.createElementVNode("button",{onClick:t[6]||(t[6]=(...l)=>o.confirmSave&&o.confirmSave(...l)),class:"btns-common cmf-btn"},"\u786E\u8BA4"),n.createElementVNode("button",{onClick:t[7]||(t[7]=(...l)=>o.cancelSign&&o.cancelSign(...l)),class:"btns-common"},"\u8FD4\u56DE"),n.createElementVNode("button",{onClick:t[8]||(t[8]=(...l)=>o.undo&&o.undo(...l)),class:"btns-common"},"\u64A4\u9500"),n.createElementVNode("button",{onClick:t[9]||(t[9]=(...l)=>o.clearCanvas&&o.clearCanvas(...l)),class:"btns-common"},"\u6E05\u7A7A")]),n.createVNode(a,{visible:r.confirmVisible,"onUpdate:visible":t[10]||(t[10]=l=>r.confirmVisible=l),ref:"TopPopupSign",titleText:"",isDrawer:!1,isTips:!0,context:"\u63D0\u4EA4\u4E4B\u540E\u5C06\u4E0D\u80FD\u518D\u4FEE\u6539,\u786E\u8BA4\u8981\u63D0\u4EA4\u7B7E\u540D\u5417?",comfig:o.saveSignature},null,8,["visible","comfig"])],4)}const Fk=pe(Sk,[["render",Lk],["__scopeId","data-v-d91bfd13"]]),GE="",Qk={name:"complete",props:{param:{type:Object,defalut:()=>{}}},components:{TopTips:st,attchViews:ti,TopPopup:Ke,departPerson:Tt.departPerson,MsgList:Ki,TreePerson:kk,TopSign:Fk,signDrawer:Va},computed:{check(){return Ys},checkS(){return bA},isSelectPerson(){if(this.pureTip=!1,console.log(this.nextNodeData,this.taskNode,this.multiNodeParticipant,this.$refs.TreePersonRef,"\u6D4B\u8BD5\u9009\u62E9\u5FC5\u586B",this.param),this.nextNodeData[0].nodeType!="endEvent"){let e=this.param.selChildrenItems||{};console.error(e,"selChildrenItemsObj");let t=[];if(Object.keys(e).filter(s=>s.startsWith("Activity")).forEach(s=>{t=t.concat(e[s])}),t.length==0&&Object.values(e).forEach(s=>{console.log(s,"ovitem"),Array.isArray(s)&&s.length>0&&s.forEach(r=>{(r.id||"").startsWith("Activity")&&(t=t.concat(r))})}),console.log(t,"selChildrenItems"),t.length>0){let s="";const r=t.every(o=>{console.log(o,"item");let a=this.multiNodeParticipant[o.id];a=(a||[]).filter(c=>c);const l=a&&a.length>0;return l||(s=o),console.log(l,"v"),l});return console.log(r,"hasV",s),r?!1:s.name}else if(this.nextNodeData[0].nodeType=="exclusiveGateway"&&this.nextNodeData[0].branches&&this.nextNodeData[0].branches.length==1){const s=this.findUserTaskNode(this.nextNodeData[0].branches[0]);let r=(this.multiNodeParticipant[s.id]||[]).filter(a=>a);const o=r&&r.length>0;return console.log(this.nextNodeData[0].branches[0],s,"nbnNode",o),o?!1:s.name}else if(this.nextNodeData[0].nodeType=="exclusiveGateway"&&this.nextNodeData[0].branches&&this.nextNodeData[0].branches.length>1){const s=this.$refs.TreePersonRef.childrenItems||null;if(s&&s.length>0){let r="";return s.every(a=>{const l=this.multiNodeParticipant[a.id]&&this.multiNodeParticipant[a.id].length>0;return l||(r=a),l})?!1:r.name}else return this.pureTip=!0,"\u8BF7\u9009\u62E9\u4E0B\u4E00\u6B65\u5BA1\u6279\u8282\u70B9"}else if(this.nextNodeData[0].nodeType=="userTask"){let s=(this.multiNodeParticipant[this.nextNodeData[0].id]||[]).filter(r=>r);return s&&s.length>0?!1:this.nextNodeData[0].name}}else return!1;if(this.nextNodeData.length==1&&this.nextNodeData[0].userTaskModelDTO&&this.taskNode&&this.taskNode.length>0&&this.taskNode[0].taskState!=4&&this.taskNode[0].taskState!=11){let e=this.nextNodeData[0].userTaskModelDTO.humanPerformer.name;if(e!="\u56FA\u5B9A\u8D26\u6237"&&e!="\u4E0E\u6D41\u7A0B\u7533\u8BF7\u4EBA\u76F8\u5173"&&JSON.stringify(this.multiNodeParticipant)=="{}")return this.nextNodeData[0].userTaskModelDTO.name}return console.error("\u8FD4\u56DEtrue"),this.pureTip=!0,"\u8BF7\u9009\u62E9\u4E0B\u4E00\u6B65\u5BA1\u6279\u8282\u70B9"},signRequired(){return!!this.param.extendedProperties.find(t=>t.name=="signature")}},data(){return{pureTip:!1,showFile:!1,attachRule:{limit:0,required:!1},partNodeArr:{},commentMsg:"",style:{color:"#333",disableColor:"#F7F6F6"},textTips:"",statusTips:!1,typeTips:"success",limit:"",requires:"",labels:"",otherList:"",attchLists:[],nextNodeData:[],taskNode:[],outGatewayUserTaskModel:[],formData:{},visible:!1,entity:{source:"0",type:this.param.isCheckType||"0",orgType:this.param.isOrgType||[0],request:this.param.request,codeType:this.param.isCodeType||[3],multiple:!0},multiNodeParticipant:{},partObjId:[],partNode:{},canCheck:!0,radioCheck:"",radioCheckChild:[],radioCheckName:"",radioCheckNameList:[],radioCheckNode:[],radioCheckNodeList:[],partList:[],gateVars:{},personMake:[],personMakeList:{},visibleListMsg:!1,visibleMsgComfig:!1,msgCheck:"",msgCheckList:["\u540C\u610F","\u5982\u62DF","\u5DF2\u9605"],msgCheckListS:["\u540C\u610F","\u5DF2\u9605"],actionName:"",partNodeS:[],makeType:"",digitalSignature:"",signVisible:!1}},watch:{"param.visible":{handler(e,t){this.nextNodeData=this.param.nextNodeData,this.taskNode=this.param.taskNode,this.outGatewayUserTaskModel=this.param.outGatewayUserTaskModel,this.actionName=this.param.actionName,this.attachShow(),console.log(this.showFile,"showFile:::"),this.outGatewayUserTaskModel&&this.outGatewayUserTaskModel.length&&this.outGatewayUserTaskModel.map(i=>{i.type!=="endEvent"&&(i.userTaskModelDTO={name:i.name,humanPerformer:{name:i.humanPerformerName},routeTxt:i.routeTxt,participantList:i.participantList},i.humanPerformer={name:i.humanPerformerName})}),this.nextNodeData&&this.nextNodeData.length?(this.nextNodeData.map((i,s)=>{i.nodeType!=="endEvent"&&(i.userTaskModelDTO||(i.userTaskModelDTO={name:i.name,humanPerformer:{name:i.humanPerformerName},routeTxt:i.routeTxt,participantList:i.participantList}),console.log("v=========",i),i.userTaskModelDTO&&i.userTaskModelDTO.participantList&&i.userTaskModelDTO.participantList.length&&i.userTaskModelDTO.participantList.map(r=>{this.multiNodeParticipant[i.id]||(this.multiNodeParticipant[i.id]=[]),this.partNode[i.id]||(this.partNode[i.id]=[]),this.multiNodeParticipant[i.id].includes(r.id)||this.multiNodeParticipant[i.id].push(r.id),this.partNode[i.id].includes(r.name)||this.partNode[i.id].push(r.name)}),(i.userTaskModelDTO.humanPerformer.name=="\u56FA\u5B9A\u8D26\u6237"||i.userTaskModelDTO.humanPerformer.name=="\u4E0E\u6D41\u7A0B\u7533\u8BF7\u4EBA\u76F8\u5173")&&this.personMake.push(i.id))}),this.personMake&&this.personMake.length&&this.param.request.post(`aws/repository/getParticipantsOfPerformerNames?taskInstId=${this.param.taskInstId}`,{userTaskDefIds:this.personMake}).then(i=>{i.code==200&&(this.personMakeList=i.data)})):this.outGatewayUserTaskModel&&this.outGatewayUserTaskModel.length&&this.outGatewayUserTaskModel.map((i,s)=>{i.nodeType!=="endEvent"&&i.participantList&&i.participantList.length&&i.participantList.map(r=>{this.multiNodeParticipant[i.id]||(this.multiNodeParticipant[i.id]=[]),this.partNode[i.id]||(this.partNode[i.id]=[]),this.multiNodeParticipant[i.id].includes(r.id)||this.multiNodeParticipant[i.id].push(r.id),this.partNode[i.id].includes(r.name)||this.partNode[i.id].push(r.name)})})},immediate:!0,deep:!0}},created(){this.makeDelegateTaskButtonAnnex()},methods:{findUserTaskNode(e){return console.log(e,"node"),e?e.nodeInfoDTO&&e.nodeInfoDTO.nodeType!="userTask"?this.findUserTaskNode(e.nodeInfoDTO.branches[0]):e.nodeInfoDTO?e.nodeInfoDTO:e:{}},handleMakeMsg(){this.commentMsg==""&&!this.commentMsg.length?(this.handleTips("\u8BF7\u8F93\u5165\u5BA1\u6279\u610F\u89C1!",!1,"success"),this.visibleMsgComfig=!1):this.visibleMsgComfig=!0},handleTipsCancel(){this.visibleMsgComfig=!1},handleTipsComfig(){this.handleTips("",!0,"loading"),this.visibleMsgComfig=!1,this.param.request.post("/auth/user/opinion/save",{opinionName:this.commentMsg}).then(e=>{e.code===200?this.handleTips("\u8BBE\u7F6E\u6210\u529F!",!0,"success"):this.handleTips(e.msg,!0,"error")}).catch(e=>{this.handleTips(e.msg,!0,"error")})},handleMsg(e){this.commentMsg=e,this.visibleListMsg=!1},handleSaveNode(e){this.makeType=="InclusiveGatewayModel"?(this.radioCheckNameList.includes(e.id)?this.radioCheckNameList.splice(this.radioCheckNameList.indexOf(e.id),1):(this.radioCheckNameList.push(e.id),this.gateVars[e.incomingConditionItemList[0].itemName]=e.incomingConditionItemList[0].compareValue),this.gateVars[e.itemName]=e.compareValue):(this.radioCheckNameList=[],this.radioCheckNodeList=[],this.radioCheckNameList.push(e.id),e.childNode&&e.childNode.length&&(this.radioCheckNodeList=e.childNode),this.gateVars[e.incomingConditionItemList[0].itemName]=e.incomingConditionItemList[0].compareValue,this.gateVars[e.itemName]=e.compareValue)},handleSaveNodeS(e){this.makeType=="InclusiveGatewayModel"?this.radioCheckNode.includes(e.id)?this.radioCheckNode.splice(this.radioCheckNode.indexOf(e.id),1):this.radioCheckNode.push(e.id):this.radioCheckNode&&this.radioCheckNode.length?this.radioCheckNode=[]:(this.radioCheckNode.push(e.id),e.childNode&&e.childNode.length&&this.radioCheckNodeList.push(e.childNode))},forRadioChild(e,t){e.map((i,s)=>{i.childNode&&i.childNode.length?this.forRadioChild(i.childNode,!0):t&&this.radioCheckChild.push(i)})},async handleNode(e){this.makeType=e.type,this.radioCheckNameList=[],this.radioCheck=e.id,this.radioCheckName=e.nodeName,this.radioCheckChild=e.childNode&&e.childNode.length?e.childNode:[e],this.radioCheckChild&&this.radioCheckChild.length&&this.radioCheckChild.map(t=>{t.participantList&&t.participantList.length?t.participantList.map(i=>{this.multiNodeParticipant[t.id]||(this.multiNodeParticipant[t.id]=[]),this.partNode[t.id]||(this.partNode[t.id]=[]),this.multiNodeParticipant[t.id].includes(i.id)||this.multiNodeParticipant[t.id].push(i.id),this.partNode[t.id].includes(i.name)||this.partNode[t.id].push(i.name)}):this.param.request.post(`/aws/repository/getParticipantsOfPerformerNames?taskInstId=${this.param.taskInstId}`,{userTaskDefIds:[t.id]}).then(i=>{i.code==200&&(this.partNodeS=[],this.partNodeS.push(i.data[t.id]))})}),(!this.radioCheckChild[0].incomingConditionItemList||!this.radioCheckChild[0].incomingConditionItemList.length)&&e.incomingConditionItemList&&e.incomingConditionItemList.length&&(this.radioCheckChild[0].incomingConditionItemList=e.incomingConditionItemList),this.outGatewayUserTaskModel&&this.outGatewayUserTaskModel.length&&(this.radioCheckChild&&this.radioCheckChild.length?(this.gateVars[this.radioCheckChild[0].incomingConditionItemList[0].itemName]=this.radioCheckChild[0].incomingConditionItemList[0].compareValue,this.gateVars[e.incomingConditionItemList[0].itemName]=e.incomingConditionItemList[0].compareValue):this.gateVars[e.incomingConditionItemList[0].itemName]=e.incomingConditionItemList[0].compareValue)},handleOpenPopup(e){if(this.visible=!0,this.partObjId=e.id,this.nextNodeData&&this.nextNodeData.length?e={...e,...e.userTaskModelDTO}:e.humanPerformer||(e={...e,humanPerformer:{name:e.humanPerformerName}}),e.humanPerformer.name=="\u56FA\u5B9A\u5355\u4F4D"){let t,i=[];e.routeTxt.companyIds.map((s,r)=>{t=s.name}),this.multiNodeParticipant[e.id]&&this.multiNodeParticipant[e.id].length&&this.multiNodeParticipant[e.id].map((s,r)=>{i.push({type:3,uid:s})}),this.entity={source:"1",type:this.param.isCheckType||"0",orgType:this.param.isOrgType||[0],request:this.param.request,codeType:this.param.isCodeType||[3],multiple:e.loopCardinality!=1,maxMultiple:e.loopCardinality>0?e.loopCardinality:0,subjectName:t,checkedArray:i}}else if(e.humanPerformer.name=="\u56FA\u5B9A\u90E8\u95E8"){let t,i=[],s=[];e.routeTxt.departmentIds.forEach((r,o)=>{e.routeTxt.departmentIds.length>1?i.push(r.rangeId):t=r.rangeId}),this.multiNodeParticipant[e.id]&&this.multiNodeParticipant[e.id].length&&this.multiNodeParticipant[e.id].forEach((r,o)=>{s.push({type:3,uid:r,deptId:t})}),e.routeTxt.departmentIds.length>1?this.entity={source:"1",type:this.param.isCheckType||"0",orgType:this.param.isOrgType||[0],request:this.param.request,codeType:this.param.isCodeType||[3],multiple:e.loopCardinality!=1,maxMultiple:e.loopCardinality>0?e.loopCardinality:0,deptCodeArray:i,checkedArray:s}:this.entity={source:"1",type:this.param.isCheckType||"0",orgType:this.param.isOrgType||[0],request:this.param.request,codeType:this.param.isCodeType||[3],multiple:e.loopCardinality!=1,maxMultiple:e.loopCardinality>0?e.loopCardinality:0,deptCode:t,checkedArray:s}}else{let t=[];this.multiNodeParticipant[e.id]&&this.multiNodeParticipant[e.id].length&&this.multiNodeParticipant[e.id].map((i,s)=>{t.push({type:3,uid:i})}),this.entity={source:"1",type:this.param.isCheckType||"0",orgType:this.param.isOrgType||[0],request:this.param.request,codeType:this.param.isCodeType||[3],multiple:e.loopCardinality!=1,maxMultiple:e.loopCardinality>0?e.loopCardinality:0,checkedArray:t}}},handleOpenMsg(){this.visibleListMsg=!0},async confirm(){this.signRequired?this.signConfirm():this.commonConfirm()},async commonConfirm(){if(this.param.ProcessInsObj.processDefId=="obj_94014ede99b6495d8f6d5977314faa15"&&(this.commentMsg="\u540C\u610F"),!this.commentMsg&&this.param.isRequire){this.handleTips("\u8BF7\u8F93\u5165\u5BA1\u6279\u610F\u89C1!",!1,"success");return}if(this.requires&&this.attchLists.length<=0){this.handleTips("\u8BF7\u4E0A\u4F20\u9644\u4EF6!",!1,"success");return}if(this.isSelectPerson!==!1){this.handleTips(this.pureTip?this.isSelectPerson:"\u8BF7\u9009\u62E9["+this.isSelectPerson+"]\u5BA1\u6279\u4EBA!",!1,"success");return}this.commentMsg||(this.commentMsg=" ");let e={};if(this.radioCheckNameList&&this.radioCheckNameList.length){if(this.radioCheckChild[0].type!=="EndEventModel"){let s=0;if(this.radioCheckNameList.map((r,o)=>{(!this.multiNodeParticipant[r]||!this.multiNodeParticipant[r].length)&&this.radioCheckChild.map((a,l)=>{a.id==r&&(a.humanPerformerName!=="\u56FA\u5B9A\u8D26\u6237"||a.humanPerformerName!=="\u4E0E\u6D41\u7A0B\u7533\u8BF7\u4EBA\u76F8\u5173")&&(!a.childNode||!a.childNode.length?s+=1:this.radioCheckNode.map((c,f)=>{(!this.multiNodeParticipant[c]||!this.multiNodeParticipant[c].length)&&(s+=1),e[c]=this.multiNodeParticipant[c]}))}),e[r]=this.multiNodeParticipant[r]}),s>0){this.handleTips("\u8BF7\u9009\u62E9\u5BA1\u6279\u4EBA!",!1,"success");return}}}else{if(console.error(this.multiNodeParticipant,"\u6D4B\u8BD5 multiNodeParticipant \u7A7A\u503C\u60C5\u51B5"),this.multiNodeParticipant[this.partObjId]&&!this.multiNodeParticipant[this.partObjId].length){this.handleTips("\u8BF7\u9009\u62E9\u5BA1\u6279\u4EBA!",!1,"success");return}e=this.multiNodeParticipant}if(this.signRequired){this.signVisible=!0;return}if(this.param.beforeFunction&&!await this.param.beforeFunction())return;console.log(this,"this"),(this.param.incomingConditionItemList||[]).forEach(s=>{let r=this.param.vars||this.gateVars||{};r[s.itemName]||(r[s.itemName]="")}),this.handleTips("",!0,"loading"),this.param.actionComplete,this.commentMsg,this.param.taskInstId,this.param.vars||this.gateVars;let t=[];const i=Array.isArray(this.param.nextNodeData)?this.param.nextNodeData[0]:this.param.nextNodeData;i.setPersonnel?t=i.assignees:t=(this.partNodeArr[i.id]||[]).map(s=>({id:s.id,name:s.name})),Date.now()&&console.log("\u63D0\u4EA4\u6570\u636E",{pass:!0,assignees:t,processInstanceId:this.param.processInstId,actionName:this.param.actionComplete,commentMsg:this.commentMsg,taskId:this.param.taskInstId,vars:this.param.vars||this.gateVars,multiNodeParticipant:e,attachment:this.attchLists}),await this.param.request.post("/bladex/blade-workflow/tis/complete",{pass:!0,assignees:t,processInstanceId:this.param.processInstId,actionName:this.param.actionComplete,commentMsg:this.commentMsg,taskId:this.param.taskInstId,vars:this.param.vars||this.gateVars,multiNodeParticipant:e,attachment:this.attchLists}).then(s=>{s.code==200?(this.$emit("handleClosePopup1"),this.handleTips("\u63D0\u4EA4\u6210\u529F!",!1,"success"),window.top.postMessage("success","*"),this.handleFinal(),this.commentMsg=""):this.handleTips(s.msg,!0,"error")})},async signConfirm(e=!0){if(this.param.ProcessInsObj.processDefId=="obj_94014ede99b6495d8f6d5977314faa15"&&(this.commentMsg="\u540C\u610F"),!this.commentMsg&&this.param.isRequire){this.handleTips("\u8BF7\u8F93\u5165\u5BA1\u6279\u610F\u89C1!",!1,"success");return}if(this.requires&&this.attchLists.length<=0){this.handleTips("\u8BF7\u4E0A\u4F20\u9644\u4EF6!",!1,"success");return}if(this.isSelectPerson!==!1){this.handleTips(this.pureTip?this.isSelectPerson:"\u8BF7\u9009\u62E9["+this.isSelectPerson+"]\u5BA1\u6279\u4EBA!",!1,"success");return}this.commentMsg||(this.commentMsg=" ");let t={};if(this.radioCheckNameList&&this.radioCheckNameList.length){if(this.radioCheckChild[0].type!=="EndEventModel"){let r=0;if(this.radioCheckNameList.map((o,a)=>{(!this.multiNodeParticipant[o]||!this.multiNodeParticipant[o].length)&&this.radioCheckChild.map((l,c)=>{l.id==o&&(l.humanPerformerName!=="\u56FA\u5B9A\u8D26\u6237"||l.humanPerformerName!=="\u4E0E\u6D41\u7A0B\u7533\u8BF7\u4EBA\u76F8\u5173")&&(!l.childNode||!l.childNode.length?r+=1:this.radioCheckNode.map((f,h)=>{(!this.multiNodeParticipant[f]||!this.multiNodeParticipant[f].length)&&(r+=1),t[f]=this.multiNodeParticipant[f]}))}),t[o]=this.multiNodeParticipant[o]}),r>0){this.handleTips("\u8BF7\u9009\u62E9\u5BA1\u6279\u4EBA!",!1,"success");return}}}else{if(this.multiNodeParticipant[this.partObjId]&&!this.multiNodeParticipant[this.partObjId].length){this.handleTips("\u8BF7\u9009\u62E9\u5BA1\u6279\u4EBA!",!1,"success");return}t=this.multiNodeParticipant}if(e){this.signVisible=!0;return}if(!this.digitalSignature){this.handleTips("\u8BF7\u7B7E\u5B57!",!1,"success");return}if(this.param.beforeFunction&&!await this.param.beforeFunction())return;this.handleTips("",!0,"loading"),this.signVisible=!1;let i=[];const s=Array.isArray(this.param.nextNodeData)?this.param.nextNodeData[0]:this.param.nextNodeData;s.setPersonnel?i=s.assignees:i=(this.partNodeArr[s.id]||[]).map(r=>({id:r.id,name:r.name})),await this.param.request.post("/bladex/blade-workflow/tis/complete",{pass:!0,assignees:i,processInstanceId:this.param.processInstId,actionName:this.param.actionComplete,commentMsg:this.commentMsg,taskId:this.param.taskInstId,vars:this.param.vars||this.gateVars,multiNodeParticipant:t,digitalSignature:this.digitalSignature,attachment:this.attchLists}).then(r=>{r.code==200?(this.$emit("handleClosePopup1"),this.handleTips("\u63D0\u4EA4\u6210\u529F!",!1,"success"),window.top.postMessage("success","*"),this.handleFinal(),this.commentMsg=""):this.handleTips(r.msg,!0,"error")})},attachShow(e="\u529E\u7406"){const t=(this.param||{}).extendedProperties||[];let i=!1,s,r="";s=t.find(a=>a.name=="completeButtonAnnex"),r=s?s.value:"",r&&(i=!0);let o="";if(typeof r!="string"&&r!=null&&r.map(a=>{a.indexOf(this.operationLabel)!=-1&&(i=!0,o=a)}),o&&(r=o),i){const a=r.split(":");this.attachRule.required=a[1]=="true",this.attachRule.limit=a[2]==-1?999:a[2],this.otherList=r;let l=this.otherList.split(":");this.limit=l[2],this.requires=JSON.parse(l[1]),this.labels=l[0]}return console.log(i,"sign",this.labels,this.limit),i},makeDelegateTaskButtonAnnex(){},handleCallback(e){this.visible=!1,this.multiNodeParticipant[this.partObjId]=[],this.partNode[this.partObjId]=[],e.map((t,i)=>{this.multiNodeParticipant[this.partObjId].push(t.uid),this.partNode[this.partObjId].push(t.name)})},handleCancel(){},getValues(e){this.attchLists=e},async uploadAttch(){if(this.attchLists.length>0){this.attchLists.map((i,s)=>{i.size=i.fileSize,i.format=i.name.substring(i.name.lastIndexOf(".")+1),i.uploadTime=i.createTime,i.processInstId=this.param.processInstId,i.taskInstId=this.param.taskInstId,i.name=i.name});let e=this.attchLists;(await this.param.request.post("/aws/meta/annex/patchSave",{saveMetaAnnexCmdList:e})).success?(this.$emit("handleClosePopup1"),this.handleTips("\u63D0\u4EA4\u6210\u529F!",!1,"success"),this.handleFinal(),this.commentMsg=""):this.handleTips("\u4E0A\u4F20\u5931\u8D25",!0,"error")}},isOption(e){return e=="\u4EFB\u610F\u6307\u5B9A"||e=="\u56FA\u5B9A\u90E8\u95E8"||e=="\u56FA\u5B9A\u5355\u4F4D"||e=="\u4E0E\u6D41\u7A0B\u7533\u8BF7\u4EBA\u6240\u5728\u7EC4\u7EC7\u7ED3\u6784\u7684\u4F4D\u7F6E\u76F8\u5173"||e=="\u56FA\u5B9A\u7FA4\u7EC4"},handleTips(e,t,i){this.textTips=e,this.statusTips=t,this.typeTips=i,this.$refs.topTips.handleOpen()},handleFinal(){this.param.endFunction&&this.param.endFunction("complete")},onMultiNode(e){this.multiNodeParticipant=e},onMultiNodeObj(e){this.partNodeArr=e},onVars(e){this.gateVars=e},handleSignature(e,t){this.digitalSignature=e,t&&(this.signVisible=!1,this.signConfirm(!1))},noticeFail(e){this.handleTips(e,!1,"success")},handleClose(){this.signVisible=!1}}},Uk={class:"process-popup-content"},jk={key:0,class:"process-popup-content-msg"},_k={key:0,class:"process-pc-label"},Gk={key:1,class:"process-pc-value",style:{display:"flex"}},qk={class:"process-radio",style:{width:"100%"}},Jk=["onClick"],Hk=["onClick"],Kk={key:2},zk={class:"process-pc-label"},Wk={key:0,class:"process-pc-label--re"},Yk={class:"process-pc-value"},Zk={class:"process-popup-textarea"},Xk={class:"process-popup-textarea-num"},$k={key:0,class:"msg-btn"},e0={class:"process-popup-content-person"},t0={key:0},i0={style:{height:"100%"}},n0={style:{height:"100%"}};function s0(e,t,i,s,r,o){const a=n.resolveComponent("TreePerson"),l=n.resolveComponent("TopTips"),c=n.resolveComponent("departPerson"),f=n.resolveComponent("TopPopup"),h=n.resolveComponent("MsgList"),u=n.resolveComponent("attchViews"),g=n.resolveComponent("TopSign"),E=n.resolveComponent("signDrawer");return n.openBlock(),n.createElementBlock("div",Uk,[i.param.ProcessInsObj&&i.param.ProcessInsObj.processDefId!="obj_94014ede99b6495d8f6d5977314faa15"?(n.openBlock(),n.createElementBlock("div",jk,[i.param.isQuickReply?(n.openBlock(),n.createElementBlock("div",_k,"\u5FEB\u6377\u56DE\u590D")):n.createCommentVNode("",!0),i.param.isQuickReply?(n.openBlock(),n.createElementBlock("div",Gk,[n.createElementVNode("div",qk,[i.param.isDocument?(n.openBlock(!0),n.createElementBlock(n.Fragment,{key:0},n.renderList(r.msgCheckList,I=>(n.openBlock(),n.createElementBlock("div",{class:n.normalizeClass(["process-radio-item",I==r.commentMsg?"process-radio-item--check":""]),onClick:()=>r.commentMsg=I},[t[8]||(t[8]=n.createElementVNode("span",null,null,-1)),n.createTextVNode(" "+n.toDisplayString(I),1)],10,Jk))),256)):(n.openBlock(!0),n.createElementBlock(n.Fragment,{key:1},n.renderList(r.msgCheckListS,I=>(n.openBlock(),n.createElementBlock("div",{class:n.normalizeClass(["process-radio-item",I==r.commentMsg?"process-radio-item--check":""]),onClick:()=>r.commentMsg=I},[t[9]||(t[9]=n.createElementVNode("span",null,null,-1)),n.createTextVNode(" "+n.toDisplayString(I),1)],10,Hk))),256)),i.param.isMsg?(n.openBlock(),n.createElementBlock("div",{key:2,class:"process-radio-item",onClick:t[0]||(t[0]=I=>o.handleOpenMsg()),style:{color:"#1389ff","font-size":"14px","margin-left":"auto"}}," \u5E38\u7528\u610F\u89C1 ")):n.createCommentVNode("",!0)])])):n.createCommentVNode("",!0),i.param.isMsg&&!i.param.isQuickReply?(n.openBlock(),n.createElementBlock("div",Kk,[n.createElementVNode("div",{class:"process-radio-item",onClick:t[1]||(t[1]=I=>o.handleOpenMsg()),style:{color:"#1389ff","font-size":"14px"}}," \u5E38\u7528\u610F\u89C1 ")])):n.createCommentVNode("",!0),n.createElementVNode("div",zk,[t[10]||(t[10]=n.createTextVNode(" \u5BA1\u6279\u610F\u89C1 ",-1)),i.param.isRequire?(n.openBlock(),n.createElementBlock("span",Wk,"*")):n.createCommentVNode("",!0)]),n.createElementVNode("div",Yk,[n.createElementVNode("div",Zk,[n.withDirectives(n.createElementVNode("textarea",{"onUpdate:modelValue":t[2]||(t[2]=I=>r.commentMsg=I),class:"textarea-item",name:"description",cols:"40",placeholder:"\u8BF7\u8F93\u5165\u5BA1\u6279\u610F\u89C1(200\u5B57\u4EE5\u5185)",maxlength:"200",onkeyup:"this.value=this.value.replace(/[\\uD800-\\uDFFF]/g,'')"},null,512),[[n.vModelText,r.commentMsg]]),n.createElementVNode("div",Xk,n.toDisplayString(r.commentMsg.length)+"/200 ",1)]),i.param.isMsg?(n.openBlock(),n.createElementBlock("div",$k,[n.createElementVNode("span",{class:"msg-btn-click",onClick:t[3]||(t[3]=I=>o.handleMakeMsg())},"\u8BBE\u7F6E\u4E3A\u5E38\u7528\u610F\u89C1")])):n.createCommentVNode("",!0)])])):n.createCommentVNode("",!0),n.createElementVNode("div",e0,[r.nextNodeData.length==1&&r.nextNodeData[0].nodeType=="endEvent"?(n.openBlock(),n.createElementBlock("div",t0," \u4E0B\u4E00\u8282\u70B9\uFF1A\u7ED3\u675F\u4E8B\u4EF6 ")):(n.openBlock(),n.createBlock(a,{key:1,ref:"TreePersonRef",items:r.nextNodeData,nodeType:"nexting",param:i.param,onOnMultiNode:o.onMultiNode,onOnMultiNodeObj:o.onMultiNodeObj},null,8,["items","param","onOnMultiNode","onOnMultiNodeObj"]))]),n.renderSlot(e.$slots,"completeSlot",{},void 0,!0),n.createVNode(l,{ref:"topTips",text:r.textTips,statusTips:r.statusTips,type:r.typeTips},null,8,["text","statusTips","type"]),n.createVNode(f,{visible:r.visible,"onUpdate:visible":t[4]||(t[4]=I=>r.visible=I),ref:"TopPopup",titleText:"\u9009\u4EBA",isDrawer:!0},{default:n.withCtx(()=>[n.createElementVNode("div",i0,[r.visible?(n.openBlock(),n.createBlock(c,n.mergeProps({key:0,isTitle:!1,visible:r.visible},r.entity,{onCallback:o.handleCallback,onCancel:o.handleCancel}),null,16,["visible","onCallback","onCancel"])):n.createCommentVNode("",!0)])]),_:1},8,["visible"]),n.createVNode(f,{visible:r.visibleListMsg,"onUpdate:visible":t[5]||(t[5]=I=>r.visibleListMsg=I),ref:"TopPopup",titleText:"\u5E38\u7528\u610F\u89C1",isDrawer:!0},{default:n.withCtx(()=>[n.createVNode(h,{visible:r.visibleListMsg,request:i.param.request,useInfo:i.param.userInfo,onHandleTips:o.handleTips,onHandleMsg:o.handleMsg},null,8,["visible","request","useInfo","onHandleTips","onHandleMsg"])]),_:1},8,["visible"]),n.createVNode(f,{titleText:"\u64CD\u4F5C\u6D88\u606F\u63D0\u793A",isTips:!0,context:`\u5C06${r.commentMsg}\u8BBE\u7F6E\u4E3A\u5E38\u7528\u610F\u89C1`,cancel:o.handleTipsCancel,comfig:o.handleTipsComfig,visible:r.visibleMsgComfig,"onUpdate:visible":t[6]||(t[6]=I=>r.visibleMsgComfig=I)},null,8,["context","cancel","comfig","visible"]),r.labels=="1"?(n.openBlock(),n.createBlock(u,{key:1,limit:r.limit?r.limit:-1,requires:r.requires,request:i.param.request,linkUrl:i.param.linkUrl,onGetValue:o.getValues},null,8,["limit","requires","request","linkUrl","onGetValue"])):n.createCommentVNode("",!0),n.createVNode(E,{visible:r.signVisible,"onUpdate:visible":t[7]||(t[7]=I=>r.signVisible=I),ref:"TopPopupSign",titleText:"\u7B7E\u5B57",isDrawer:!0,width:"100vw"},{default:n.withCtx(()=>[n.createElementVNode("div",n0,[r.signVisible?(n.openBlock(),n.createBlock(g,{key:0,request:i.param.request,onSaveSignature:o.handleSignature,onValidateFail:o.noticeFail,onClose:o.handleClose},null,8,["request","onSaveSignature","onValidateFail","onClose"])):n.createCommentVNode("",!0)])]),_:1},8,["visible"])])}const Oa=pe(Qk,[["render",s0],["__scopeId","data-v-66bf5c41"]]),qE="",r0={name:"cancel",props:{param:{type:Object,defalut:()=>{}}},components:{TopTips:st,attchViews:ti,TopPopup:Ke,departPerson:Tt.departPerson,MsgList:Ki},watch:{param:{async handler(e,t){this.entity.checkedArray=[],this.actionName=e.actionName},immediate:!0,deep:!0}},data(){return{commentMsg:"",actionName:"",style:{color:"#333",disableColor:"#F7F6F6"},textTips:"",statusTips:!1,typeTips:"success",limit:"",requires:"",labels:"",otherList:"",attchLists:[],nextNodeData:[],taskNode:[],outGatewayUserTaskModel:[],formData:{},visible:!1,entity:{source:"0",type:this.param.isCheckType||"0",orgType:this.param.isOrgType||[770],request:this.param.request,codeType:this.param.isCodeType||[3],multiple:!0,checkedArray:[]},multiNodeParticipant:{},partObjId:[],partNode:{},visibleListMsg:!1,visibleMsgComfig:!1}},created(){this.makeDelegateTaskButtonAnnex()},methods:{handleMakeMsg(){this.commentMsg==""&&!this.commentMsg.length?(this.handleTips("\u8BF7\u8F93\u5165\u5BA1\u6279\u610F\u89C1!",!1,"success"),this.visibleMsgComfig=!1):this.visibleMsgComfig=!0},handleOpenMsg(){this.visibleListMsg=!0},handleTipsCancel(){this.visibleMsgComfig=!1},handleTipsComfig(){this.handleTips("",!0,"loading"),this.visibleMsgComfig=!1,this.param.request.post("/auth//user/opinion/save",{opinionName:this.commentMsg}).then(e=>{e.code===200?this.handleTips("\u8BBE\u7F6E\u6210\u529F!",!0,"success"):this.handleTips(e.msg,!0,"error")}).catch(e=>{this.handleTips(e.msg,!0,"error")})},handleMsg(e){this.commentMsg=e,this.visibleListMsg=!1},handleOpenPopup(e){this.visible=!0,this.partObjId=e},async confirm(){if(!this.commentMsg)return this.handleTips("\u8BF7\u8F93\u5165\u62D2\u7EDD\u7406\u7531!",!1,"success"),!1;this.handleTips("",!0,"loading"),await this.param.request.post("/bladex/blade-workflow/tis/complete",{pass:!1,assignees:[],processInstanceId:this.param.processInstId,commentMsg:this.commentMsg,comment:this.commentMsg||" ",taskId:this.param.taskInstId}).then(e=>{e.code==200?(this.$emit("handleClosePopup1"),this.handleTips("\u63D0\u4EA4\u6210\u529F!",!1,"success"),this.handleFinal(),window.top.postMessage("success","*"),this.commentMsg=""):this.handleTips(e.msg,!0,"error")})},makeDelegateTaskButtonAnnex(){if(this.param.annex&&this.param.annex.length){this.otherList=this.param.annex;let e=this.otherList.split(";");this.limit=e[2],this.labels=e[0]}},handleCallback(e){this.visible=!1,this.multiNodeParticipant[this.partObjId]=[],this.partNode[this.partObjId]=[],e.map((t,i)=>{this.multiNodeParticipant[this.partObjId].push(t.uid),this.partNode[this.partObjId].push(t.name),this.entity.checkedArray.push({type:3,uid:t.uid})})},handleCancel(){},getValues(e){this.attchLists=e},async uploadAttch(){if(this.attchLists.length>0){this.attchLists.map((i,s)=>{i.size=i.fileSize,i.format=i.originFileName.substring(i.originFileName.lastIndexOf(".")+1),i.uploadTime=i.createTime,i.processInstId=this.param.processInstId,i.taskInstId=this.param.taskInstId,i.name=i.originFileName});let e=this.attchLists;(await this.param.request.post("/aws/meta/annex/patchSave",{saveMetaAnnexCmdList:e})).success?(this.$emit("handleClosePopup1"),this.handleTips("\u63D0\u4EA4\u6210\u529F!",!1,"success"),this.handleFinal(),this.commentMsg=""):this.handleTips("\u4E0A\u4F20\u5931\u8D25",!0,"error")}},isOption(e){return e=="\u4EFB\u610F\u6307\u5B9A"||e=="\u56FA\u5B9A\u90E8\u95E8"||e=="\u56FA\u5B9A\u5355\u4F4D"||e=="\u4E0E\u6D41\u7A0B\u7533\u8BF7\u4EBA\u6240\u5728\u7EC4\u7EC7\u7ED3\u6784\u7684\u4F4D\u7F6E\u76F8\u5173"||e=="\u56FA\u5B9A\u7FA4\u7EC4"},handleTips(e,t,i){this.textTips=e,this.statusTips=t,this.typeTips=i,this.$refs.topTips.handleOpen()},handleFinal(){this.param.endFunction&&this.param.endFunction("\u62D2\u7EDD")}}},o0={class:"process-popup-content"},a0={class:"process-popup-content-msg"},l0={key:0},c0={class:"process-pc-value"},p0={class:"process-popup-textarea"},d0={class:"process-popup-textarea-num"},h0={key:0,class:"msg-btn"},u0={key:0,class:"process-popup-content-person"},f0=["onClick"],m0={class:"process-pc-value--people"},g0={key:0,class:"process-pc-value--data"},y0={key:1,class:"process-pc-value--data",style:{color:"#888"}},A0={style:{"font-size":"15px"}},k0={style:{height:"100%"}};function E0(e,t,i,s,r,o){const a=n.resolveComponent("TopTips"),l=n.resolveComponent("departPerson"),c=n.resolveComponent("TopPopup"),f=n.resolveComponent("attchViews"),h=n.resolveComponent("MsgList");return n.openBlock(),n.createElementBlock("div",o0,[n.createElementVNode("div",a0,[i.param.isMsg?(n.openBlock(),n.createElementBlock("div",l0,[n.createElementVNode("div",{class:"process-radio-item",onClick:t[0]||(t[0]=u=>o.handleOpenMsg()),style:{color:"#1389ff","font-size":"14px"}}," \u5E38\u7528\u610F\u89C1 ")])):n.createCommentVNode("",!0),t[7]||(t[7]=n.createElementVNode("div",{class:"process-pc-label"},[n.createTextVNode(" \u62D2\u7EDD\u7406\u7531\uFF1A "),n.createElementVNode("span",{class:"process-pc-label--re"},"*")],-1)),n.createElementVNode("div",c0,[n.createElementVNode("div",p0,[n.withDirectives(n.createElementVNode("textarea",{"onUpdate:modelValue":t[1]||(t[1]=u=>r.commentMsg=u),class:"textarea-item",name:"description",cols:"40",placeholder:"\u8BF7\u8F93\u5165\u5BA1\u6279\u610F\u89C1(200\u5B57\u4EE5\u5185)",maxlength:"200",onkeyup:"this.value=this.value.replace(/[\\uD800-\\uDFFF]/g,'')"},null,512),[[n.vModelText,r.commentMsg]]),n.createElementVNode("div",d0,n.toDisplayString(r.commentMsg.length)+"/200 ",1)]),i.param.isMsg?(n.openBlock(),n.createElementBlock("div",h0,[n.createElementVNode("span",{class:"msg-btn-click",onClick:t[2]||(t[2]=u=>o.handleMakeMsg())},"\u8BBE\u7F6E\u4E3A\u5E38\u7528\u610F\u89C1")])):n.createCommentVNode("",!0)])]),r.taskNode&&r.taskNode.length>0&&r.taskNode[0].taskState!=4?(n.openBlock(),n.createElementBlock("div",u0,[r.nextNodeData.length?(n.openBlock(!0),n.createElementBlock(n.Fragment,{key:0},n.renderList(r.nextNodeData,u=>{var g,E;return n.openBlock(),n.createElementBlock(n.Fragment,null,[o.isOption((E=(g=u==null?void 0:u.userTaskModelDTO)==null?void 0:g.humanPerformer)==null?void 0:E.name)?(n.openBlock(),n.createElementBlock(n.Fragment,{key:0},[n.createElementVNode("div",null,[n.createTextVNode(n.toDisplayString(u.userTaskModelDTO.name)+" ",1),t[8]||(t[8]=n.createElementVNode("br",null,null,-1)),t[9]||(t[9]=n.createTextVNode(" \u5BA1\u6279\u4EBA ",-1)),t[10]||(t[10]=n.createElementVNode("span",{class:"process-pc-label--re"},"*",-1))]),n.createElementVNode("div",{class:"process-pc-value",onClick:I=>o.handleOpenPopup(u.id)},[n.createElementVNode("div",m0,[r.partNode[u.id]&&r.partNode[u.id].length?(n.openBlock(),n.createElementBlock("div",g0,[(n.openBlock(!0),n.createElementBlock(n.Fragment,null,n.renderList(r.partNode[u.id],(I,P)=>(n.openBlock(),n.createElementBlock("span",null,n.toDisplayString(P==0?I:`,${I}`),1))),256))])):(n.openBlock(),n.createElementBlock("div",y0,t[11]||(t[11]=[n.createElementVNode("span",null," \u8BF7\u9009\u62E9\u5BA1\u6279\u4EBA ",-1)])))])],8,f0)],64)):n.createCommentVNode("",!0)],64)}),256)):r.outGatewayUserTaskModel.length?(n.openBlock(!0),n.createElementBlock(n.Fragment,{key:1},n.renderList(r.outGatewayUserTaskModel,u=>(n.openBlock(),n.createElementBlock(n.Fragment,null,[o.isOption(u.humanPerformerName)?(n.openBlock(),n.createElementBlock(n.Fragment,{key:0},[n.createElementVNode("div",A0,n.toDisplayString(u.name),1),t[13]||(t[13]=n.createElementVNode("div",{class:"process-pc-label"},[n.createTextVNode(" \u5BA1\u6279\u4EBA "),n.createElementVNode("span",{class:"process-pc-label--re"},"*")],-1)),n.createElementVNode("div",{class:"process-pc-value",onClick:t[3]||(t[3]=(...g)=>o.handleOpenPopup&&o.handleOpenPopup(...g))},t[12]||(t[12]=[n.createElementVNode("div",{class:"process-pc-value--people"},n.toDisplayString(234),-1)]))],64)):n.createCommentVNode("",!0)],64))),256)):n.createCommentVNode("",!0)])):n.createCommentVNode("",!0),n.createVNode(a,{ref:"topTips",text:r.textTips,statusTips:r.statusTips,type:r.typeTips},null,8,["text","statusTips","type"]),n.createVNode(c,{visible:r.visible,"onUpdate:visible":t[4]||(t[4]=u=>r.visible=u),ref:"TopPopup",titleText:"\u9009\u4EBA",isDrawer:!0},{default:n.withCtx(()=>[n.createElementVNode("div",k0,[r.visible?(n.openBlock(),n.createBlock(l,n.mergeProps({key:0,isTitle:!1,visible:r.visible,request:i.param.request},r.entity,{onCallback:o.handleCallback,onCancel:o.handleCancel}),null,16,["visible","request","onCallback","onCancel"])):n.createCommentVNode("",!0)])]),_:1},8,["visible"]),r.labels=="\u62D2\u7EDD"?(n.openBlock(),n.createBlock(f,{key:1,limit:r.limit?r.limit:-1,requires:r.requires,request:i.param.request,linkUrl:i.param.linkUrl,onGetValue:o.getValues},null,8,["limit","requires","request","linkUrl","onGetValue"])):n.createCommentVNode("",!0),n.createVNode(c,{visible:r.visibleListMsg,"onUpdate:visible":t[5]||(t[5]=u=>r.visibleListMsg=u),ref:"TopPopup",titleText:"\u5E38\u7528\u610F\u89C1",isDrawer:!0},{default:n.withCtx(()=>[n.createVNode(h,{visible:r.visibleListMsg,request:i.param.request,useInfo:i.param.userInfo,onHandleTips:o.handleTips,onHandleMsg:o.handleMsg},null,8,["visible","request","useInfo","onHandleTips","onHandleMsg"])]),_:1},8,["visible"]),n.createVNode(c,{titleText:"\u64CD\u4F5C\u6D88\u606F\u63D0\u793A",isTips:!0,context:`\u5C06${r.commentMsg}\u8BBE\u7F6E\u4E3A\u5E38\u7528\u610F\u89C1`,cancel:o.handleTipsCancel,comfig:o.handleTipsComfig,visible:r.visibleMsgComfig,"onUpdate:visible":t[6]||(t[6]=u=>r.visibleMsgComfig=u)},null,8,["context","cancel","comfig","visible"])])}const b0=pe(r0,[["render",E0],["__scopeId","data-v-672706e4"]]),JE="",C0={name:"backNode",props:{param:{type:Object,defalut:()=>{}}},components:{TopTips:st,attchViews:ti,TopPopup:Ke,departPerson:Tt.departPerson,TopDownSelect:Pa,MsgList:Ki},data(){return{commentMsg:"",style:{color:"#333",disableColor:"#F7F6F6"},textTips:"",statusTips:!1,typeTips:"success",limit:"",requires:"",labels:"",otherList:"",attchLists:[],nextNodeData:[],taskNode:[],outGatewayUserTaskModel:[],formData:{},visible:!1,entity:{source:"0",type:this.param.isCheckType||"0",orgType:this.param.isOrgType||[0],request:this.param.request,codeType:this.param.isCodeType||[3],multiple:!0,checkedArray:[]},multiNodeParticipant:{},partObjId:[],partNode:{},option:[],nodeId:"",actionName:"",visibleListMsg:!1,visibleMsgComfig:!1}},watch:{param:{async handler(e,t){this.nextNodeData=e.nextNodeData,this.taskNode=e.taskNode,this.outGatewayUserTaskModel=e.outGatewayUserTaskModel,this.entity.checkedArray=[],this.actionName=e.actionName},immediate:!0,deep:!0}},created(){this.getReturnNode()},methods:{handleMakeMsg(){this.commentMsg==""&&!this.commentMsg.length?(this.handleTips("\u8BF7\u8F93\u5165\u5BA1\u6279\u610F\u89C1!",!1,"success"),this.visibleMsgComfig=!1):this.visibleMsgComfig=!0},handleOpenMsg(){this.visibleListMsg=!0},handleTipsCancel(){this.visibleMsgComfig=!1},handleTipsComfig(){this.handleTips("",!0,"loading"),this.visibleMsgComfig=!1,this.param.request.post("/auth//user/opinion/save",{opinionName:this.commentMsg}).then(e=>{e.code===200?this.handleTips("\u8BBE\u7F6E\u6210\u529F!",!0,"success"):this.handleTips(e.msg,!0,"error")}).catch(e=>{this.handleTips(e.msg,!0,"error")})},handleMsg(e){this.commentMsg=e,this.visibleListMsg=!1},getReturnNode(){this.param.request.get("/bladex/blade-workflow/process/getBackNodes",{params:{taskId:this.param.taskInstId}}).then(e=>{e.code===200&&(this.option=(e.data||[]).map(t=>({...t,name:t.nodeName,id:t.nodeId})).filter(t=>!(t.nodeId||"").includes("startEvent")))})},handleChange(e){this.nodeId=e.id},handleOpenPopup(e){this.visible=!0,this.partObjId=e},confirm(){if(!this.commentMsg)return this.textTips="\u8BF7\u8F93\u5165\u9000\u56DE\u7406\u7531!",this.$refs.topTips.handleOpen(),!1;if(!this.nodeId)return this.textTips="\u8BF7\u9009\u62E9\u9000\u56DE\u8282\u70B9!",this.$refs.topTips.handleOpen(),!1;this.handleTips("",!0,"loading"),this.param.request.post("/bladex/blade-workflow/tis/rollback",{taskInstId:this.param.taskInstId,rollbackReason:this.commentMsg,targetActivityId:this.nodeId}).then(e=>{e.code==200?(this.$emit("handleClosePopup1"),this.handleTips("\u63D0\u4EA4\u6210\u529F!",!1,"success"),window.top.postMessage("success","*"),this.handleFinal(),this.commentMsg=""):this.handleTips(e.msg,!0,"error")}).catch(e=>{this.handleTips(e.msg,!0,"error")})},makeDelegateTaskButtonAnnex(){if(this.param.annex&&this.param.annex.length){this.otherList=this.param.annex;let e=this.otherList.split(";");this.limit=e[2],this.requires=JSON.parse(e[1]),this.labels=e[0]}},handleCallback(e){this.visible=!1,this.multiNodeParticipant[this.partObjId]=[],this.partNode[this.partObjId]=[],e.map((t,i)=>{this.multiNodeParticipant[this.partObjId].push(t.uid),this.partNode[this.partObjId].push(t.name),this.entity.checkedArray.push({type:3,uid:t.uid})})},handleCancel(){},getValues(e){this.attchLists=e},async uploadAttch(){if(this.attchLists.length>0){this.attchLists.map((i,s)=>{i.size=i.fileSize,i.format=i.originFileName.substring(i.originFileName.lastIndexOf(".")+1),i.uploadTime=i.createTime,i.processInstId=this.param.processInstId,i.taskInstId=this.param.taskInstId,i.name=i.originFileName});let e=this.attchLists;(await this.param.request.post("/aws/meta/annex/patchSave",{saveMetaAnnexCmdList:e})).success?(this.$emit("handleClosePopup1"),this.handleTips("\u63D0\u4EA4\u6210\u529F!",!1,"success"),this.handleFinal(),this.commentMsg=""):this.handleTips("\u4E0A\u4F20\u5931\u8D25",!0,"error")}},isOption(e){return e=="\u4EFB\u610F\u6307\u5B9A"||e=="\u56FA\u5B9A\u90E8\u95E8"||e=="\u56FA\u5B9A\u5355\u4F4D"||e=="\u4E0E\u6D41\u7A0B\u7533\u8BF7\u4EBA\u6240\u5728\u7EC4\u7EC7\u7ED3\u6784\u7684\u4F4D\u7F6E\u76F8\u5173"||e=="\u56FA\u5B9A\u7FA4\u7EC4"},handleTips(e,t,i){this.textTips=e,this.statusTips=t,this.typeTips=i,this.$refs.topTips.handleOpen()},handleFinal(){this.param.endFunction&&this.param.endFunction("\u9000\u56DE")}}},w0={class:"process-popup-content"},T0={class:"process-popup-content-msg"},N0={class:"process-pc-value",style:{display:"inline-block",width:"50%"}},B0={class:"process-pc-value"},I0={class:"process-popup-textarea"},x0={class:"process-popup-textarea-num"};function S0(e,t,i,s,r,o){const a=n.resolveComponent("TopDownSelect"),l=n.resolveComponent("TopTips"),c=n.resolveComponent("MsgList"),f=n.resolveComponent("TopPopup"),h=n.resolveComponent("attchViews");return n.openBlock(),n.createElementBlock("div",w0,[n.createElementVNode("div",T0,[t[3]||(t[3]=n.createElementVNode("div",{class:"process-pc-label",style:{"background-color":"#fff",position:"relative","z-index":"199",display:"inline-block",width:"50%"}},[n.createTextVNode(" \u9000\u56DE\u8282\u70B9\uFF1A "),n.createElementVNode("span",{class:"process-pc-label--re"},"*")],-1)),n.createElementVNode("div",N0,[n.createVNode(a,{option:r.option,onChange:o.handleChange,optionStyle:"width:calc(100% - 40px);left:20px;",maskShow:!1,border:""},null,8,["option","onChange"])]),t[4]||(t[4]=n.createElementVNode("div",{class:"process-pc-label"},[n.createTextVNode(" \u9000\u56DE\u7406\u7531\uFF1A "),n.createElementVNode("span",{class:"process-pc-label--re"},"*")],-1)),n.createElementVNode("div",B0,[n.createElementVNode("div",I0,[n.withDirectives(n.createElementVNode("textarea",{"onUpdate:modelValue":t[0]||(t[0]=u=>r.commentMsg=u),class:"textarea-item",name:"description",cols:"40",placeholder:"\u8BF7\u8F93\u5165\u5BA1\u6279\u610F\u89C1(200\u5B57\u4EE5\u5185)",maxlength:"200",onkeyup:"this.value=this.value.replace(/[\\uD800-\\uDFFF]/g,'')"},null,512),[[n.vModelText,r.commentMsg]]),n.createElementVNode("div",x0,n.toDisplayString(r.commentMsg.length)+"/200 ",1)])])]),n.createVNode(l,{ref:"topTips",text:r.textTips,statusTips:r.statusTips,type:r.typeTips},null,8,["text","statusTips","type"]),n.createVNode(f,{visible:r.visibleListMsg,"onUpdate:visible":t[1]||(t[1]=u=>r.visibleListMsg=u),ref:"TopPopup",titleText:"\u5E38\u7528\u610F\u89C1",isDrawer:!0},{default:n.withCtx(()=>[n.createVNode(c,{visible:r.visibleListMsg,request:i.param.request,useInfo:i.param.userInfo,onHandleTips:o.handleTips,onHandleMsg:o.handleMsg},null,8,["visible","request","useInfo","onHandleTips","onHandleMsg"])]),_:1},8,["visible"]),n.createVNode(f,{titleText:"\u64CD\u4F5C\u6D88\u606F\u63D0\u793A",isTips:!0,context:`\u5C06${r.commentMsg}\u8BBE\u7F6E\u4E3A\u5E38\u7528\u610F\u89C1`,cancel:o.handleTipsCancel,comfig:o.handleTipsComfig,visible:r.visibleMsgComfig,"onUpdate:visible":t[2]||(t[2]=u=>r.visibleMsgComfig=u)},null,8,["context","cancel","comfig","visible"]),r.labels=="\u9000\u56DE"?(n.openBlock(),n.createBlock(h,{key:0,limit:r.limit?r.limit:-1,requires:r.requires,request:i.param.request,linkUrl:i.param.linkUrl,onGetValue:o.getValues},null,8,["limit","requires","request","linkUrl","onGetValue"])):n.createCommentVNode("",!0)])}const D0=pe(C0,[["render",S0],["__scopeId","data-v-2790b2f8"]]),HE="",P0={name:"ccTask",props:{param:{type:Object,defalut:()=>{}}},components:{TopTips:st,departPerson:Tt.departPerson},data(){return{commentMsg:"",style:{color:"#333",disableColor:"#F7F6F6"},textTips:"",statusTips:!1,typeTips:"success",limit:"",requires:"",labels:"",otherList:"",attchLists:[],nextNodeData:[],taskNode:[],outGatewayUserTaskModel:[],formData:{},visible:!1,entity:{source:"0",type:this.param.isCheckType||"0",orgType:this.param.isOrgType||[0],request:this.param.request,codeType:this.param.isCodeType||[3],multiple:!0,checkedArray:[]},multiNodeParticipant:{},partObjId:[],partNode:{},actionName:""}},watch:{param:{handler(e,t){this.nextNodeData=e.nextNodeData,this.taskNode=e.taskNode,this.outGatewayUserTaskModel=e.outGatewayUserTaskModel,this.actionName=e.actionName,e.nextNodeData.length?this.nextNodeData[0].type=="userTask"||this.nextNodeData[0].type=="UserTaskModel"?(this.entity.multiple=!0,this.entity.codeType=this.param.isCodeType||[3],this.entity.source="1",this.entity.checkedArray=[],this.entity.type=this.param.isCheckType||"0",this.entity.orgType=this.param.isOrgType||[0]):this.nextNodeData[0].type=="ExclusiveGatewayModel"||this.nextNodeData[0].type=="InclusiveGatewayModel":e.outGatewayUserTaskModel.length&&(e.outGatewayUserTaskModel[0].type=="userTask"?(this.entity.multiple=!0,this.entity.codeType=this.param.isCodeType||[3],this.entity.source="1",this.entity.checkedArray=[],this.entity.type=this.param.isCheckType||"0",this.entity.orgType=this.param.isOrgType||[0]):e.outGatewayUserTaskModel[0].type=="ExclusiveGatewayModel"||e.outGatewayUserTaskModel[0].type=="InclusiveGatewayModel"||e.outGatewayUserTaskModel[0].type=="UserTaskModel"&&(this.entity.multiple=!0,this.entity.codeType=this.param.isCodeType||[3],this.entity.checkedArray=[],this.entity.source="1",this.entity.type=this.param.isCheckType||"0",this.entity.orgType=this.param.isOrgType||[0]))},immediate:!0,deep:!0}},created(){this.makeDelegateTaskButtonAnnex()},methods:{handleOpenPopup(e){this.visible=!0,this.partObjId=e},async confirm(){let e="";this.multiNodeParticipant[this.partObjId].map((t,i)=>{i==0?e=t:e=`${e} ${t}`}),await this.param.request.post("/bladex/blade-workflow/tis/createCCTask",{processInstId:this.param.processInstId,taskId:this.param.taskInstId,participant:e}).then(t=>{t.code==200?(this.$emit("handleClosecctaskTopPopup"),this.handleTips("\u63D0\u4EA4\u6210\u529F!",!1,"success"),window.top.postMessage("success","*"),this.handleFinal()):this.handleTips(t.msg,!0,"error")})},makeDelegateTaskButtonAnnex(){},handleCallback(e){this.visible=!1,this.multiNodeParticipant[this.partObjId]=[],this.partNode[this.partObjId]=[],e.map((t,i)=>{this.multiNodeParticipant[this.partObjId].push(t.uid),this.partNode[this.partObjId].push(t.name),this.entity.checkedArray.push({type:3,uid:t.uid})}),e&&e.length&&this.confirm()},handleCancel(){},getValues(e){this.attchLists=e},isOption(e){return e=="\u4EFB\u610F\u6307\u5B9A"||e=="\u56FA\u5B9A\u90E8\u95E8"||e=="\u56FA\u5B9A\u5355\u4F4D"||e=="\u4E0E\u6D41\u7A0B\u7533\u8BF7\u4EBA\u6240\u5728\u7EC4\u7EC7\u7ED3\u6784\u7684\u4F4D\u7F6E\u76F8\u5173"||e=="\u56FA\u5B9A\u7FA4\u7EC4"},handleTips(e,t,i){this.textTips=e,this.statusTips=t,this.typeTips=i,this.$refs.topTips.handleOpen()},handleFinal(){this.param.endFunction&&this.param.endFunction("ccTask")}}},M0={style:{height:"100%"}};function V0(e,t,i,s,r,o){const a=n.resolveComponent("departPerson"),l=n.resolveComponent("TopTips");return n.openBlock(),n.createElementBlock("div",M0,[i.param.visible?(n.openBlock(),n.createBlock(a,n.mergeProps({key:0,isTitle:!1,request:i.param.request},r.entity,{onCallback:o.handleCallback,onCancel:o.handleCancel}),null,16,["request","onCallback","onCancel"])):n.createCommentVNode("",!0),n.createVNode(l,{ref:"topTips",text:r.textTips,statusTips:r.statusTips,type:r.typeTips},null,8,["text","statusTips","type"])])}const O0=pe(P0,[["render",V0]]),KE="",v0={name:"nf-button",components:{TopTips:st},props:{uid:{type:String,default:""},loading:{type:Boolean,default:!1},buttonList:{type:Array,default:()=>[]},process:{type:Object,default:()=>({variables:{}})},request:{type:[Function,Object],default:()=>({get:()=>{},post:()=>{}})},comment:String},data(){return{isCollapse:!0,nodeVisible:!1,nodeForm:{},nodeOption:{column:[{label:"\u8282\u70B9",prop:"nodeId",type:"select",props:{label:"nodeName",value:"nodeId"},span:24,rules:[{required:!0,message:"\u8BF7\u9009\u62E9\u56DE\u9000\u8282\u70B9",trigger:"change"}]}]},backNodes:[]}},watch:{process:{handler(e,t){e&&e.taskId&&this.request.get("/bladex/blade-workflow/process/getBackNodes",{params:{taskId:e.taskId}}).then(i=>{const s=i.data;this.backNodes=s})},deep:!0,immediate:!0}},methods:{handleTips(e,t,i){this.textTips=e,this.statusTips=t,this.typeTips=i,this.$refs.topTips.handleOpen()},handleRollback(){if(!this.comment){this.$message.error("\u8BF7\u586B\u5199\u6279\u590D\u610F\u89C1");return}this.nodeVisible=!0},handleNodeSubmit(){const{nodeId:e}=this.nodeForm;this.$emit("rollback",e)},getButton(e){return this.buttonList.find(t=>t.buttonKey==e)}}},R0={class:"process-btns"},L0=["disabled"],F0={key:0},Q0={key:1},U0=["disabled"],j0={key:0},_0={key:1},G0=["disabled"],q0=["disabled"],J0=["disabled"],H0=["disabled"],K0=["disabled"],z0=["disabled"],W0=["disabled"],Y0=["disabled"],Z0=["disabled"];function X0(e,t,i,s,r,o){return n.openBlock(),n.createElementBlock("div",R0,[i.process.status=="todo"?(n.openBlock(),n.createElementBlock(n.Fragment,{key:0},[o.getButton("wf_pass")?(n.openBlock(),n.createElementBlock("button",{key:0,class:"process-button success",size:"default",disabled:i.loading,onClick:t[0]||(t[0]=a=>e.$emit("examine",!0,["recall","reject"].includes(i.process.processIsFinished)?"\u91CD\u65B0\u63D0\u4EA4":o.getButton("wf_pass").name))},[["recall","reject"].includes(i.process.processIsFinished)?(n.openBlock(),n.createElementBlock("span",F0,"\u91CD\u65B0\u63D0\u4EA4")):(n.openBlock(),n.createElementBlock("span",Q0,n.toDisplayString(o.getButton("wf_pass").name),1))],8,L0)):n.createCommentVNode("",!0),o.getButton("wf_reject")?(n.openBlock(),n.createElementBlock("button",{key:1,class:"process-button danger",size:"default",disabled:i.loading,onClick:t[1]||(t[1]=a=>e.$emit("examine",!1,(r.backNodes.length>1,o.getButton("wf_reject").name)))},[r.backNodes.length>1?(n.openBlock(),n.createElementBlock("span",j0,n.toDisplayString(o.getButton("wf_reject").name),1)):(n.openBlock(),n.createElementBlock("span",_0,n.toDisplayString(o.getButton("wf_reject").name),1))],8,U0)):n.createCommentVNode("",!0),i.uid==(i.process.variables||{}).applyUserId?(n.openBlock(),n.createElementBlock("button",{key:2,size:"default",class:"process-button info",disabled:i.loading,onClick:t[2]||(t[2]=a=>e.$emit("reminders"))},t[11]||(t[11]=[n.createElementVNode("span",null,"\u50AC\u529E",-1)]),8,G0)):n.createCommentVNode("",!0),o.getButton("wf_transfer")?(n.openBlock(),n.createElementBlock("button",{key:3,class:"process-button primary",size:"default",disabled:i.loading,onClick:t[3]||(t[3]=a=>e.$emit("user-select",{type:"transfer",checkType:"radio",name:o.getButton("wf_transfer").name}))},n.toDisplayString(o.getButton("wf_transfer").name),9,q0)):n.createCommentVNode("",!0),o.getButton("wf_delegate")?(n.openBlock(),n.createElementBlock("button",{key:4,class:"process-button warning",size:"default",disabled:i.loading,onClick:t[4]||(t[4]=a=>e.$emit("user-select",{type:"delegate",checkType:"radio",name:o.getButton("wf_delegate").name}))},n.toDisplayString(o.getButton("wf_delegate").name),9,J0)):n.createCommentVNode("",!0),o.getButton("wf_rollback")?(n.openBlock(),n.createElementBlock("button",{key:5,class:"process-button success",size:"default",disabled:i.loading,onClick:t[5]||(t[5]=a=>e.$emit("rollback",o.getButton("wf_rollback").name))},n.toDisplayString(o.getButton("wf_rollback").name),9,H0)):n.createCommentVNode("",!0),o.getButton("wf_terminate")?(n.openBlock(),n.createElementBlock("button",{key:6,class:"process-button danger",size:"default",disabled:i.loading,onClick:t[6]||(t[6]=a=>e.$emit("terminate"))},n.toDisplayString(o.getButton("wf_terminate").name),9,K0)):n.createCommentVNode("",!0),i.process.isMultiInstance&&o.getButton("wf_add_instance")?(n.openBlock(),n.createElementBlock("button",{key:7,class:"process-button primary",size:"default",disabled:i.loading,onClick:t[7]||(t[7]=a=>e.$emit("user-select",{type:"addInstance",checkType:"checkbox",name:o.getButton("wf_add_instance").name}))},n.toDisplayString(o.getButton("wf_add_instance").name),9,z0)):n.createCommentVNode("",!0),o.getButton("wf_cctask")?(n.openBlock(),n.createElementBlock("button",{key:8,class:"process-button info",size:"default",disabled:i.loading,onClick:t[8]||(t[8]=a=>e.$emit("circulate",o.getButton("wf_cctask").name))},[n.createElementVNode("span",null,n.toDisplayString(o.getButton("wf_cctask").name),1)],8,W0)):n.createCommentVNode("",!0)],64)):n.createCommentVNode("",!0),i.process.isOwner&&i.process.isReturnable&&!["recall","reject"].includes(i.process.processIsFinished)?(n.openBlock(),n.createElementBlock("button",{key:1,class:"process-button danger",size:"default",disabled:i.loading,onClick:t[9]||(t[9]=a=>e.$emit("withdraw","\u64A4\u9500"))}," \u64A4\u9500 ",8,Y0)):n.createCommentVNode("",!0),o.getButton("wf_print")?(n.openBlock(),n.createElementBlock("button",{key:2,class:"process-button info",size:"default",disabled:i.loading,onClick:t[10]||(t[10]=a=>e.$emit("print"))},n.toDisplayString(o.getButton("wf_print").name),9,Z0)):n.createCommentVNode("",!0)])}const $0=at({name:"TopProcess",components:{processBtns:pe(v0,[["render",X0],["__scopeId","data-v-8c1d1cae"]]),TopTab:Ng,TopPopup:Ke,TopTips:st,TopSumbitPopup:Ma},props:{tapList:{require:!1,default:()=>[],type:Array},selfTapList:{require:!1,default:()=>[],type:Array},processDefId:{require:!0,default:"",type:String},processInstId:{require:!0,default:"",type:String},isAdditional:{require:!1,default:!1,type:Boolean},isView:{default:!1,type:Boolean},formData:{default:{},type:Object},getVarsStatus:{default:!0,type:Boolean},getVars:{default:null,type:Function},request:{type:[Function,Object],default:()=>({get:()=>{},post:()=>{}})},endFunction:{type:Function,default:null},beforeFunction:{type:Function,default:null},isDocument:{type:Boolean,default:!1},restartData:{type:Object,default:{businessType:"",showType:"",processName:""}},selfList:{type:Array,default:()=>[]},selfBtn:{type:Array,default:()=>[]},uid:{type:String,default:""},isMsg:{type:Boolean,default:!0},isRequire:{type:Boolean,default:!0},isCheckType:{type:String,default:"0"},isOrgType:{type:Array,default:()=>[0]},isCodeType:{type:Array,default:()=>[3]},isQuickReply:{type:Boolean,default:!1},ccTaskFunction:{type:Function,default:null},hideHeader:{type:Boolean,default:!1},needResubmit:{type:Boolean,default:!0}},data(){return{incomingConditionItemList:[],submitLoading:!1,nextTaskNode:{},deptId:"",absoluteTaskId:"",comment:"",processXml:"",approvalData:[],processStatus:{},processDefList:{},processBusiness:{},getFirstProcessNode:{},taskNode:[],taskNodeList:[],taskNodeIds:[],taskState:NaN,taskCurrent:0,taskObj:{},taskId:"",taskNodeShow:!1,actionShow:!1,titleText:"",btnStyle:"",processIntId:"",trackUrl:"",taskCommentList:[],operationCom:null,operationComKey:Date.now(),ProcessInsObj:{button:[],flow:[],form:{},process:{}},popupContext:"",operationParam:{},nextTaskNode:{},annexlabel:"",handleTipsType:"",textTips:"",statusTips:!1,typeTips:"",outGatewayUserTaskModel:[],nextNodeData:[],visibleSong:!1,trackList:[],user:{},canCheck:!0,approveNode:{},restartDataS:{},selfBtnList:[],topNum:144,bottomNum:70,userIdData:"",TopPopup1:!1,cctaskTopPopup:!1,cctaskTopPopupTitle:"\u6284\u9001"}},watch:{processInstId:{async handler(e,t){this.processIntId=this.processInstId||this.formData.processId||this.formData.processInstId,e&&(this.request.get("/bladex/blade-workflow/tis/getTaskModelDetail",{params:{processInstId:this.processInstId}}).then(i=>{var s;if(i.code==200){this.ProcessInsObj={...this.ProcessInsObj,...i.data},this.taskObj.buttons=this.ProcessInsObj.button||[],this.trackList=(((s=i.data)==null?void 0:s.flow)||[]).filter(a=>["userTask","candidate"].includes(a.historyActivityType));const r=((this.ProcessInsObj.process||{}).variables||{}).deptId;this.deptId=r;const o=(this.ProcessInsObj.process||{}).taskId;this.absoluteTaskId=o,this.approvalData=(i.data||{}).flow||[],this.processXml=((i.data||{}).process||{}).xml||""}}),this.getUserInfo())},immediate:!0,deep:!0},restartData:{handler(e,t){e&&(this.restartDataS=e)},immediate:!0,deep:!0},selfBtn:{handler(e,t){e&&e.length&&(this.selfBtnList=e)},immediate:!0,deep:!0},uid:{handler(e,t){e&&(this.userIdData=e)},immediate:!0,deep:!0}},mounted(){},computed:{actionBtn(){return this.operBtn.length>3?this.operBtn.slice(3):[]},operBtn(){let e=[];const t=this.ProcessInsObj.process,i=this.ProcessInsObj.button;if(!t||!i)return e;if(console.log(this.getButton("wf_pass"),"this.getButton"),this.needResubmit&&t.status=="todo"&&this.userIdData&&this.userIdData==(t.variables||{}).applyUserId&&["recall","reject"].includes(t.processIsFinished)&&this.getButton("wf_pass")){let s={};s.name="\u91CD\u65B0\u63D0\u4EA4",s.btnProps={type:"default"},e.push(s),s.click=r=>{this.handlePass("\u91CD\u65B0\u63D0\u4EA4"),this.submitLoading=!0,this.handleActionClose()}}if(!this.isView&&t.status=="todo"&&this.getButton("wf_pass")){let s={};s.name=this.getButton("wf_pass").name,s.btnProps={type:"primary"},e.push(s),s.click=r=>{this.handlePass(this.getButton("wf_pass").name),this.submitLoading=!0,this.handleActionClose()}}if(!this.isView&&t.status=="todo"&&this.getButton("wf_reject")){let s={};s.name=this.getButton("wf_reject").name,s.btnProps={type:"danger"},e.push(s),s.click=r=>{this.handleCancel(this.getButton("wf_reject").name),this.submitLoading=!0,this.handleActionClose()}}if(this.selfBtnList&&this.selfBtnList.length&&this.selfBtnList.map(s=>{let r={};r.name=s.name,r.btnProps={type:s.type},e.push(r),r.click=s.click}),!this.isView&&t.status=="todo"&&this.getButton("wf_rollback")){let s={};s.name=this.getButton("wf_rollback").name,s.btnProps={type:"danger"},e.push(s),s.click=r=>{this.handleRollbackTask(this.getButton("wf_rollback").name),this.handleActionClose()}}if(!this.isView&&t.status=="todo"&&this.getButton("wf_cctask")){let s={};s.name=this.getButton("wf_cctask").name,s.btnProps={type:"default"},s.click=async r=>{this.handleCirculate(this.getButton("wf_cctask").name),this.handleActionClose()},e.push(s)}if(!this.isView&&t.status=="todo"&&this.getButton("wf_delegate")){let s={};s.name=this.getButton("wf_delegate").name,s.btnProps={type:"warning"},s.key="cc2",s.click=()=>{this.handleUserSelect({type:"delegate",checkType:"radio",name:this.getButton("wf_delegate").name}),this.handleActionClose()},e.push(s)}if(!this.isView&&t.status=="todo"&&this.getButton("wf_terminate")){let s={};s.name=this.getButton("wf_terminate").name,s.btnProps={type:"danger"},s.key="cc3",s.click=()=>{this.handleTerminateProcess(),this.handleActionClose()},e.push(s)}if(!this.isView&&t.status=="todo"&&this.getButton("wf_transfer")){let s={};s.name=this.getButton("wf_transfer").name,s.btnProps={type:"default"},s.click=r=>{this.handleUserSelect({type:"transfer",checkType:"radio",name:this.getButton("wf_transfer").name}),this.handleActionClose()},e.push(s)}if(!this.isView&&t.isMultiInstance&&this.getButton("wf_add_instance")){let s={};s.name=this.getButton("wf_add_instance").name,s.btnProps={type:"primary"},s.click=r=>{this.handleUserSelect({type:"addInstance",checkType:"checkbox",name:this.getButton("wf_add_instance").name}),this.handleActionClose()},e.push(s)}if(this.userIdData==(t.variables||{}).applyUserId&&this.processIntId){let s={};s.name="\u50AC\u529E",s.btnProps={type:"default"},s.click=r=>{this.handleReminders("\u50AC\u529E"),this.handleActionClose()},e.push(s)}if(this.processIntId&&t.isOwner&&t.isReturnable&&!["recall","reject"].includes(t.processIsFinished)){let s={};s.name="\u64A4\u9500",s.btnProps={type:"default"},s.click=r=>{this.handleWithdrawTask("\u64A4\u9500"),this.handleActionClose()},e.push(s)}return console.error(e,"btnList"),e},processCardHeight(){let e=this.topNum+this.bottomNum-10;return this.isAdditional&&!this.operBtn&&!this.operBtn.length&&!this.ProcessInsObj.end&&(e-=this.bottomNum),this.hideHeader&&(e-=204),`calc(100vh - ${e}px)`},processBtn(){if(this.isAdditional&&!this.operBtn&&!this.operBtn.length&&!this.ProcessInsObj.end)return`-${this.bottomNum}px`}},methods:{getButton(e){console.log(e,"key");const t=(this.ProcessInsObj.button||[]).find(i=>i.buttonKey==e);return console.log(t,"a"),t},handleActionBtn(e){switch(e.buttonKey){case"wf_pass":this.handleExamine(!0,["recall","reject"].includes(this.ProcessInsObj.process.processIsFinished)?"\u91CD\u65B0\u63D0\u4EA4":e.name);break;case"wf_reject":this.handleExamine(!1,e.name);break;case"wf_transfer":this.handleTransfer(e.name);break;case"wf_add_instance":this.handleAddInstance(e.name);break;case"wf_rollback":this.handleRollbackTask(e.name);break;case"wf_transfer":this.handleTransfer(e.name);break;case"wf_terminate":this.handleTerminateProcess(e.name);case"wf_cctask":this.handleCirculate(e.name);break}this.handleActionClose()},handleDraft(){this.submitLoading=!0},handleExamine(e,t){e?this.handlePass(t):this.handleCancel(t),this.submitLoading=!0},async handlePass(e){this.deptId&&await this.getNextNode(this.deptId),this.before?this.before().then(()=>{this.showOperation(Oa,e)}):this.showOperation(Oa,e)},handleCancel(e){this.showOperation(b0,e)},handleUserSelect({type:e,checkType:t,name:i}){e=="transfer"?this.handleTransfer(i):e=="addInstance"&&this.handleAddInstance(i)},async handleTransfer(e){this.deptId&&await this.getNextNode(this.deptId),this.showOperation(EA,e)},async handleAddInstance(e){this.deptId&&await this.getNextNode(this.deptId),this.showOperation(eA,e)},handlePrint(){console.log("handlePrint")},handleRollbackTask(e){console.log("handleRollbackTask"),this.showOperation(D0,e)},handleTerminateProcess(){console.log("handleTerminateProcess")},handleWithdrawTask(e){this.$refs.TopPopup2.handleOpen(),this.handleActionClose(),this.titleText="\u64A4\u9500",this.popupContext="\u786E\u5B9A\u64A4\u9500\u5417?",this.handleTipsType="\u64A4\u9500"},handleReminders(e){this.$refs.TopPopup2.handleOpen(),this.handleActionClose(),this.titleText="\u50AC\u529E",this.popupContext="\u786E\u5B9A\u50AC\u529E\u5417?",this.handleTipsType="\u50AC\u529E"},handleCirculate(e){console.log(e,"\u6284\u9001"),this.showOperation(O0,e,this.request,this.taskObj.ccTaskButtonAnnex,"\u6284\u9001"),this.cctaskTopPopupTitle=e},async getNextNode(e){let t;try{t=await this.request.get("/bladex/blade-workflow/tis/simulation",{params:{taskId:this.absoluteTaskId,processInstId:this.processId}})}catch(s){console.error(s),t={}}let i=t.data||{};if(t.code==200&&!t.data.evaluation&&(this.incomingConditionItemList=[],i.branches=await this.getOutgoingProcessNode(this.absoluteTaskId,t.data.id)),i.id&&!i.setPersonnel){const s=Sa(i);let r;try{r=await this.getNodeUser({deptId:e,intersection:s.intersection?1:0,userIds:s.userIds,postIds:s.postIds,deptIds:s.deptIds})}catch(o){console.log(o,"error")}r.code==200&&(i.userList=r.data)}this.nextTaskNode=i},async getNodeUser({deptId:e,intersection:t,userIds:i,postIds:s,deptIds:r}){return await this.request.post("/auth/post/getTaskAuditor",{deptId:e,intersection:t,userIds:i,postIds:s,deptIds:r})},handleGetHeight(){this.$nextTick(()=>{setTimeout(()=>{let e=document.getElementById("process-header"),t=document.getElementById("process-footer");this.bottomNum=t?t.scrollHeight+10:70,this.topNum=e?e.scrollHeight+10:144},1e3)})},handleTestsss(e,t){},handleTestS(){this.handleTips("\u63D0\u4EA4\u6210\u529F!",!1,"success")},handleTest(){this.visibleSong=!0},async getUserInfo(){let e=await this.request.get("/app/user/info");e.code===200&&(this.user=e.data||{},this.userIdData=e.data.userId)},async handleGetSimulation(e){this.handleTips("",!0,"loading");let t={processInstId:this.processInstId,taskInstId:this.taskNode.length?this.taskNode[0].taskId:"",vars:e,errorTip:!1},i=await this.request.post("/aws/tis/simulation",t);if(i.success){this.handleTips("",!1,"success"),this.nextNodeData=i.data;for(let s=0;s<this.nextNodeData.length;s++)this.approveNode=this.nextNodeData[s]}else{let s=this.taskNode&&this.taskNode.length?this.taskNode[0].taskId:"";this.outGatewayUserTaskModel=await this.getOutgoingProcessNode(s,"")}},async getOutgoingProcessNode(e,t){let i=await this.request.get("/bladex/blade-workflow/tis/getOutgoingProcessNode",{params:{taskId:e,processNodeId:t}});if(i.code==200){if(i.data&&i.data.length){for(let s=0;s<i.data.length;s++){let r=i.data[s];r.incomingConditionItemList&&r.incomingConditionItemList.length!==0&&(r.nodeInfoDTO.incomingConditionItemList=r.incomingConditionItemList,console.error(r.incomingConditionItemList,"o.incomingConditionItemList"),this.incomingConditionItemList.push(...r.incomingConditionItemList)),r.nodeInfoDTO.nodeType!="userTask"&&(r.nodeInfoDTO.branches=await this.getOutgoingProcessNode(e,r.nodeInfoDTO.id))}return this.handleTips("",!1,"success"),i.data}return this.handleTips("",!1,"success"),[]}return[]},handleGet(e){this.taskNode=[].concat(e),this.taskNodeShow=!1,this.actionShow=!1,this.handleGetProcessStatus(),this.handleGetUserTaskModel()},handleGetProcessStatus(){this.handleTips("",!0,"loading"),this.request.get("/aws/pis/getProcessStatus",{params:{processInstId:this.processInstId,taskId:this.taskNode.length?this.taskNode[0].taskId:""}}).then(e=>{e.code==200&&(this.processStatus=e.data,this.$emit("processStatus",this.processStatus,this.taskNode),this.processStatus.userNodeGroup&&this.processStatus.userNodeGroup[this.taskNode[0].nodeName]&&this.processStatus.userNodeGroup[this.taskNode[0].nodeName].length>1?this.canCheck=!1:this.canCheck=!0),this.handleGetHeight()}).catch(e=>{this.handleGetHeight()})},handleGetUserTaskModel(){this.taskNode&&this.taskNode.length?this.request.get("/aws/repository/getUserTaskModel",{params:{taskId:this.taskNode[0].taskId}}).then(e=>{e.code==200&&(this.taskObj=e.data),this.handleGetHeight(),this.$refs.topTips.handleClose()}).catch(e=>{this.handleGetHeight(),this.$refs.topTips.handleClose()}):this.$refs.topTips.handleClose()},async showOperation(e,t,i,s,r){switch(this.beforeFunction&&(this.operationParam.beforeFunction=this.beforeFunction),console.error(this.request,"requ"),this.operationParam.request=this.request,this.annexlabel=s||"fasdfsafdsa",this.titleText=t,this.operationCom=e,this.operationComKey=Date.now(),this.operationParam.selChildrenItems={},this.operationParam.annex=s||"fasdfsafdsa",this.operationParam.subjectId=this.formData.subjectId,this.operationParam.processInstId=this.processIntId,this.operationParam.taskInstId=(this.ProcessInsObj.process||{}).taskId||"",this.operationParam.variables=(this.ProcessInsObj.process||{}).variables||{},this.operationParam.extendedProperties=(this.ProcessInsObj.form||{}).extendedProperties||[],this.operationParam.actionName=t,this.operationParam.formData=this.formData,this.operationParam.ProcessInsObj=this.ProcessInsObj,this.operationParam.userInfo=this.user,console.log(this.nextTaskNode,"CES SHUJU"),this.operationParam.nextNodeData=(this.nextTaskNode||{}).id?[this.nextTaskNode]:[],this.operationParam.incomingConditionItemList=this.incomingConditionItemList,this.operationParam.outGatewayUserTaskModel=this.outGatewayUserTaskModel,this.operationParam.taskNode=this.taskNode,this.operationParam.appId=this.processStatus.appId,this.operationParam.endFunction=this.endFunction,this.operationParam.isDocument=this.isDocument,this.operationParam.isQuickReply=this.isQuickReply,this.operationParam.isMsg=this.isMsg,this.operationParam.isRequire=this.isRequire,this.operationParam.canCheck=this.canCheck,this.operationParam.isCheckType=this.isCheckType,this.operationParam.isOrgType=this.isOrgType,this.operationParam.isCodeType=this.isCodeType,console.log(r,"type"),r){case"\u6284\u9001":this.operationParam.visible=!0,this.cctaskTopPopup=!0;break;default:this.operationParam.visible=!0,this.TopPopup1=!0;break}},handleCancelPopup(){this.TopPopup1=!1,this.operationParam.visible=!1,this.submitLoading=!1},async handleComfig(){this.$refs.operationRef.confirm()},handleClosePopup1(){this.TopPopup1=!1,this.operationParam.visible=!1,this.submitLoading=!1},handleClosecctaskTopPopup(){this.cctaskTopPopup=!1,this.operationParam.visible=!1,this.submitLoading=!1},handleTipsComfig(){this.$refs.TopPopup2.handleCancel(),this.handleTipsType=="\u50AC\u529E"&&(this.handleTips("",!0,"loading"),this.request.get("/bladex/blade-workflow/tis/reminders",{params:{processInstId:this.processIntId}}).then(e=>{e.code==200?(this.handleTips("\u50AC\u529E\u6210\u529F",!0,"success"),window.top.postMessage("success","*"),this.endFunction("\u50AC\u529E")):this.handleTips(e.msg,!0,"error")})),this.handleTipsType=="\u64A4\u9500"&&(this.handleTips("",!0,"loading"),this.request.get("/bladex/blade-workflow/tis/withdrawTask",{params:{processInstId:this.processIntId}}).then(e=>{e.code==200?(this.handleTips("\u64A4\u9500\u6210\u529F",!0,"success"),window.top.postMessage("success","*"),this.endFunction("\u64A4\u9500")):(this.textTips=e.msg,this.typeTips="error",this.handleTips(e.msg,!0,"error"))}))},handleTipsCancel(){},getColor(e){return e=="\u5BA1\u6838\u4E2D"?"#FFA52D":e=="\u5DF2\u9A73\u56DE"?"#F14B4C":e=="\u5DF2\u64A4\u9500"?"#CECECE":e=="\u5DF2\u5B8C\u6210"?"#6DC743":"#1389FF"},handleActionOpen(){this.actionShow=!0},handleActionClose(){this.actionShow=!1},actionClick(e){this.titleText=e,this.actionShow=!1},getBtnStyle(e){switch(e){case"primary":return"background-color:#3c9cff;color:#fff";case"danger":return"background-color:rgb(255, 230, 230);color:rgb(255, 96, 96)";case"default":return"background-color:rgb(241, 241, 241);color:rgb(51, 51, 51)";default:return"background-color:rgb(241, 241, 241);color:rgb(51, 51, 51)"}},async handleRestart(){this.handleTips("",!0,"loading"),await this.request.post("/bladex/blade-workflow/repository/getProcessDefList",{appId:this.processStatus.appId}).then(e=>{this.processDefList=e.data,this.request.get("/aws/pis/getProcessInstanceByBusinessKey",{params:{businessKey:this.formData.businessKey}}).then(t=>{this.processBusiness=t.data,this.request.get("/bladex/blade-workflow/repository/getAllProcessNode",{params:{processDefId:this.processBusiness.processDefId}}).then(i=>{this.getFirstProcessNode=i.data[0],this.operationParam.getFirstProcessNode=this.getFirstProcessNode,this.operationParam.formData=this.formData,this.handleTips("",!1,"success"),this.handleActionClose(),this.showOperation(void 0,"\u91CD\u65B0\u63D0\u4EA4",this.request)}).catch(i=>{this.handleTips("\u8BF7\u6C42\u51FA\u9519",!0,"error")})}).catch(t=>{this.handleTips("\u8BF7\u6C42\u51FA\u9519",!0,"error")})}).catch(e=>{this.handleTips("\u8BF7\u6C42\u51FA\u9519",!0,"error")})},handleTips(e,t,i){this.textTips=e,this.statusTips=t,this.typeTips=i,this.$refs.topTips.handleOpen()}}}),WE="",eE={class:"process-warp"},tE={key:0,class:"process-main",id:"process-header",ref:"processheader"},iE={class:"process-ml-item border"},nE={class:"process-mli-value"},sE={class:"process-ml-item border"},rE={class:"process-mli-value"},oE={key:0,class:"process-ml-item"},aE={class:"process-mli-value",style:{width:"50%","text-align":"right"}},lE={class:"process-mliv-jd"},cE=["slot"],pE={slot:"default",style:{height:"100%"}},dE=["slot"],hE={key:0,class:"footBtnRow"},uE=["onClick"],fE={slot:"completeSlot"},mE=["onClick"],gE=["onClick"],yE={slot:"completeSlot"};function AE(e,t,i,s,r,o){const a=n.resolveComponent("TopTab"),l=n.resolveComponent("TopPopup"),c=n.resolveComponent("TopTips"),f=n.resolveComponent("TopSumbitPopup");return n.openBlock(),n.createElementBlock("div",null,[n.createElementVNode("div",eE,[(e.formData.currentState||e.processStatus.bizStatusName||e.processStatus.status)&&!e.hideHeader?(n.openBlock(),n.createElementBlock("div",tE,[n.createElementVNode("div",iE,[t[5]||(t[5]=n.createElementVNode("div",{class:"process-mli-name"},"\u6D41\u7A0B\u72B6\u6001",-1)),n.createElementVNode("div",nE,[e.formData.currentState||e.processStatus.bizStatusName||e.processStatus.status?(n.openBlock(),n.createElementBlock("div",{key:0,class:"process-mliv-dd",style:n.normalizeStyle({background:e.getColor(e.formData.currentState||e.processStatus.bizStatusName||e.processStatus.status)})},n.toDisplayString(e.formData.currentState||e.processStatus.bizStatusName||e.processStatus.status),5)):n.createCommentVNode("",!0)])]),n.createElementVNode("div",sE,[t[6]||(t[6]=n.createElementVNode("div",{class:"process-mli-name"},"\u6D41\u7A0B\u53D1\u8D77\u65F6\u95F4",-1)),n.createElementVNode("div",rE,[n.createElementVNode("span",null,n.toDisplayString(e.processStatus.createTime),1)])]),e.processStatus.allUserNames&&e.processStatus.allUserNames.length?(n.openBlock(),n.createElementBlock("div",oE,[t[7]||(t[7]=n.createElementVNode("div",{class:"process-mli-name"},"\u5BA1\u6279\u8282\u70B9",-1)),n.createElementVNode("div",aE,[n.createElementVNode("span",lE,n.toDisplayString(`${e.processStatus.taskState==4?e.processStatus.currUserName:e.processStatus.allUserNames.toString()}\u5BA1\u6279\u4E2D`),1)])])):n.createCommentVNode("",!0)],512)):n.createCommentVNode("",!0),n.createElementVNode("div",{class:"process-card",style:n.normalizeStyle({height:e.processCardHeight})},[n.createVNode(a,{ProcessInsObj:e.ProcessInsObj,processXml:e.processXml,approvalData:e.approvalData,tapList:e.tapList,selfTapList:e.selfTapList,processIntId:e.processIntId,track:e.trackUrl,taskComment:e.taskCommentList,trackList:e.trackList},{default:n.withCtx(()=>[e.selfTapList&&e.selfTapList.length?(n.openBlock(!0),n.createElementBlock(n.Fragment,{key:0},n.renderList(e.selfTapList,(h,u)=>(n.openBlock(),n.createElementBlock("div",{key:u,slot:h.slot,style:{height:"100%"}},[n.renderSlot(e.$slots,h.slot,{},void 0,!0)],8,cE))),128)):(n.openBlock(),n.createElementBlock(n.Fragment,{key:1},[n.createElementVNode("div",pE,[n.renderSlot(e.$slots,"default",{},void 0,!0)]),(n.openBlock(!0),n.createElementBlock(n.Fragment,null,n.renderList(e.tapList,(h,u)=>(n.openBlock(),n.createElementBlock("div",{style:{height:"100%"},key:u,slot:h.slot},[n.renderSlot(e.$slots,h.slot,{},void 0,!0)],8,dE))),128))],64))]),_:3},8,["ProcessInsObj","processXml","approvalData","tapList","selfTapList","processIntId","track","taskComment","trackList"])],4),e.isView?n.createCommentVNode("",!0):(n.openBlock(),n.createElementBlock("div",{key:1,class:"process-btn",id:"process-footer",style:n.normalizeStyle({bottom:e.processBtn})},[e.isAdditional?(n.openBlock(),n.createElementBlock("div",hE,[n.renderSlot(e.$slots,"btn",{data:e.processStatus},void 0,!0)])):(n.openBlock(),n.createElementBlock(n.Fragment,{key:1},[e.isDocument&&(e.formData.currentState=="\u7F16\u6587\u53F7\u5957\u7EA2"||e.formData.currentState=="\u76D6\u7AE0")?(n.openBlock(),n.createElementBlock("div",{key:0,class:"top-button",style:n.normalizeStyle(e.getBtnStyle("default"))}," \u8BF7\u53BBPC\u7AEF\u5904\u7406\u8BE5\u6D41\u7A0B ",4)):(n.openBlock(),n.createElementBlock(n.Fragment,{key:1},[e.formData.currentState!="\u5DF2\u5B8C\u6210"||e.processStatus.status!="\u5DF2\u5B8C\u6210"||e.processStatus.bizStatusName!="\u5DF2\u5B8C\u6210"?(n.openBlock(!0),n.createElementBlock(n.Fragment,{key:0},n.renderList(e.operBtn,(h,u)=>(n.openBlock(),n.createElementBlock(n.Fragment,null,[u<3?(n.openBlock(),n.createElementBlock("div",{class:"top-button",style:n.normalizeStyle(e.getBtnStyle(h.btnProps.type.toString())),key:h.name,onClick:g=>h.click(h.name)},n.toDisplayString(h.name),13,uE)):n.createCommentVNode("",!0)],64))),256)):n.createCommentVNode("",!0),e.operBtn.length>3&&e.actionBtn&&e.actionBtn.length?(n.openBlock(),n.createElementBlock("div",{key:1,class:"elips",onClick:t[0]||(t[0]=(...h)=>e.handleActionOpen&&e.handleActionOpen(...h))},t[8]||(t[8]=[n.createElementVNode("div",{class:"circle"},null,-1),n.createElementVNode("div",{class:"circle"},null,-1),n.createElementVNode("div",{class:"circle"},null,-1)]))):n.createCommentVNode("",!0)],64))],64))],4))]),n.createVNode(l,{ref:"TopPopup1",cancel:e.handleCancelPopup,comfig:e.handleComfig,titleText:e.titleText,visible:e.TopPopup1,"onUpdate:visible":t[1]||(t[1]=h=>e.TopPopup1=h),className:"toppopup-component"},{default:n.withCtx(()=>[(n.openBlock(),n.createBlock(n.resolveDynamicComponent(e.operationCom),{key:e.operationComKey,ref:"operationRef",param:e.operationParam,onHandleClosePopup1:e.handleClosePopup1},{default:n.withCtx(()=>[n.createElementVNode("div",fE,[n.renderSlot(e.$slots,"completeSlot",{},void 0,!0)])]),_:3},40,["param","onHandleClosePopup1"]))]),_:3},8,["cancel","comfig","titleText","visible"]),n.createVNode(l,{ref:"TopPopup2",titleText:e.titleText,isTips:!0,context:e.popupContext,cancel:e.handleTipsCancel,comfig:e.handleTipsComfig},null,8,["titleText","context","cancel","comfig"]),n.createVNode(c,{ref:"topTips",text:e.textTips,statusTips:e.statusTips,type:e.typeTips},null,8,["text","statusTips","type"]),e.actionBtn&&e.actionBtn.length||e.taskNodeList&&e.taskNodeList.length?(n.openBlock(),n.createElementBlock("div",{key:0,class:"top-elips",style:n.normalizeStyle(e.actionShow?"transform: translateY(0)":"transform: translateY(100%)")},[e.taskNodeShow?(n.openBlock(!0),n.createElementBlock(n.Fragment,{key:0},n.renderList(e.taskNodeList,h=>(n.openBlock(),n.createElementBlock("div",{class:"top-elips-items",onClick:u=>e.handleGet(h),key:h.taskId},n.toDisplayString(h.name),9,mE))),128)):(n.openBlock(!0),n.createElementBlock(n.Fragment,{key:1},n.renderList(e.actionBtn,h=>(n.openBlock(),n.createElementBlock("div",{class:"top-elips-items",onClick:u=>h.click(h.name),key:h.name},n.toDisplayString(h.name),9,gE))),128)),n.createElementVNode("div",{class:"top-elips-items top-elips-items--cancel",onClick:t[2]||(t[2]=(...h)=>e.handleActionClose&&e.handleActionClose(...h))}," \u53D6\u6D88 ")],4)):n.createCommentVNode("",!0),n.createElementVNode("div",{class:"top-elips-mask",onClick:t[3]||(t[3]=(...h)=>e.handleActionClose&&e.handleActionClose(...h)),style:n.normalizeStyle(e.actionShow?"visibility: visible; opacity: .7;":"visibility: hidden; opacity: 0;")},null,4),n.createVNode(f,n.mergeProps({visible:e.visibleSong,ref:"actionPop",request:e.request,appId:e.processStatus.appId,id:e.formData.businessKey,resubmit:!0},e.restartDataS,{onSuccessFn:e.endFunction,selfList:e.selfList,onChange:e.handleTestsss,isCheckType:e.isCheckType,isOrgType:e.isOrgType,isCodeType:e.isCodeType}),null,16,["visible","request","appId","id","onSuccessFn","selfList","onChange","isCheckType","isOrgType","isCodeType"]),n.createVNode(l,{ref:"cctaskTopPopup",titleText:e.cctaskTopPopupTitle,visible:e.cctaskTopPopup,"onUpdate:visible":t[4]||(t[4]=h=>e.cctaskTopPopup=h),isDrawer:!0},{default:n.withCtx(()=>[(n.openBlock(),n.createBlock(n.resolveDynamicComponent(e.operationCom),{ref:"cctaskOperationRef",param:e.operationParam,onHandleClosecctaskTopPopup:e.handleClosecctaskTopPopup},{default:n.withCtx(()=>[n.createElementVNode("div",yE,[n.renderSlot(e.$slots,"completeSlot",{},void 0,!0)])]),_:3},40,["param","onHandleClosecctaskTopPopup"]))]),_:3},8,["titleText","visible"])])}const kE=pe($0,[["render",AE],["__scopeId","data-v-20b8cf08"]]);qe.TopProcess=kE,qe.TopSumbitPopup=Ma,qe.ViewAttchList=Kr,qe.attchViews=ti,Object.defineProperties(qe,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}})});