ddy-process-h5 1.0.1-rc.3.33 → 1.0.1-rc.3.35

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.
@@ -23,4 +23,4 @@ See more tips at https://vuejs.org/guide/deployment.html`)},0);var Mr=function(e
23
23
  `),this},this.appendIndent=function(){return i&&e.write(t.join(" ")),this},this.indent=function(){return t.push(""),this},this.unindent=function(){return t.pop(),this}}function pA(e){e=z({format:!1,preamble:!0},e||{});function i(t,s){var n=s||new cA,r=new uA(n,e.format);if(e.preamble&&r.append(Wv),new ve().build(t).serializeTo(r),!s)return n.value}return{toXML:i}}function _n(e,i){at.call(this,e,i)}_n.prototype=Object.create(at.prototype),_n.prototype.fromXML=function(e,i,t){dt(i)||(t=i,i="bpmn:Definitions");var s=new ba(z({model:this,lax:!0},t)),n=s.handler(i);return s.fromXML(e,n)},_n.prototype.toXML=function(e,i){var t=new pA(i);return new Promise(function(s,n){try{var r=t.toXML(e);return s({xml:r})}catch(a){return n(a)}})};var dA="BPMN20",hA="http://www.omg.org/spec/BPMN/20100524/MODEL",fA="bpmn",mA=[],gA=[{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",isAttr:!0,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"}]}],yA=[{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"}]}],vA={tagAlias:"lowerCase",typePrefix:"t"},AA={name:dA,uri:hA,prefix:fA,associations:mA,types:gA,enumerations:yA,xml:vA},bA="BPMNDI",CA="http://www.omg.org/spec/BPMN/20100524/DI",wA="bpmndi",xA=[{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"]}],EA=[{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"}]}],TA=[],IA={name:bA,uri:CA,prefix:wA,types:xA,enumerations:EA,associations:TA},kA="DC",NA="http://www.omg.org/spec/DD/20100524/DC",_A="dc",SA=[{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}]}],PA=[],DA={name:kA,uri:NA,prefix:_A,types:SA,associations:PA},OA="DI",MA="http://www.omg.org/spec/DD/20100524/DI",BA="di",RA=[{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"}]}],LA=[],FA={tagAlias:"lowerCase"},VA={name:OA,uri:MA,prefix:BA,types:RA,associations:LA,xml:FA},jA="bpmn.io colors for BPMN",QA="http://bpmn.io/schema/bpmn/biocolor/1.0",UA="bioc",GA=[{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"}]}],qA=[],JA=[],HA={name:jA,uri:QA,prefix:UA,types:GA,enumerations:qA,associations:JA},KA="BPMN in Color",WA="http://www.omg.org/spec/BPMN/non-normative/color/1.0",YA="color",zA=[{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"}]}],XA=[],ZA=[],$A={name:KA,uri:WA,prefix:YA,types:zA,enumerations:XA,associations:ZA},eb={bpmn:AA,bpmndi:IA,dc:DA,di:VA,bioc:HA,color:$A};function tb(e,i){var t=z({},eb,e);return new _n(t,i)}var ib="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 sb(e){Fi(e,"di")||Object.defineProperty(e,"di",{enumerable:!1,get:function(){throw new Error(ib)}})}function je(e,i){return e.$instanceOf(i)}function nb(e){return ht(e.rootElements,function(i){return je(i,"bpmn:Process")||je(i,"bpmn:Collaboration")})}function rb(e,i){var t={},s=[],n={};function r(C,w){return function(O){C(O,w)}}function a(C){t[C.id]=C}function o(C){return t[C.id]}function l(C,w){var O=C.gfx;if(O)throw new Error(i("already rendered {element}",{element:De(C)}));return e.element(C,n[C.id],w)}function p(C,w){return e.root(C,n[C.id],w)}function h(C,w){try{var O=n[C.id]&&l(C,w);return a(C),O}catch(Y){f(Y.message,{element:C,error:Y}),console.error(i("failed to import {element}",{element:De(C)})),console.error(Y)}}function f(C,w){e.error(C,w)}var A=this.registerDi=function(w){var O=w.bpmnElement;O?n[O.id]?f(i("multiple DI elements defined for {element}",{element:De(O)}),{element:O}):(n[O.id]=w,sb(O)):f(i("no bpmnElement referenced in {element}",{element:De(w)}),{element:w})};function I(C){F(C.plane)}function F(C){A(C),U(C.planeElement,j)}function j(C){A(C)}this.handleDefinitions=function(w,O){var Y=w.diagrams;if(O&&Y.indexOf(O)===-1)throw new Error(i("diagram not part of bpmn:Definitions"));if(!O&&Y&&Y.length&&(O=Y[0]),!O)throw new Error(i("no diagram to display"));n={},I(O);var $=O.plane;if(!$)throw new Error(i("no plane for {element}",{element:De(O)}));var ne=$.bpmnElement;if(!ne)if(ne=nb(w),ne)f(i("correcting missing bpmnElement on {plane} to {rootElement}",{plane:De($),rootElement:De(ne)})),$.bpmnElement=ne,A($);else throw new Error(i("no process or collaboration to display"));var d=p(ne,$);if(je(ne,"bpmn:Process")||je(ne,"bpmn:SubProcess"))X(ne,d);else if(je(ne,"bpmn:Collaboration"))K(ne,d),q(w.rootElements,d);else throw new Error(i("unsupported bpmnElement for {plane}: {rootElement}",{plane:De($),rootElement:De(ne)}));ie(s)};var ie=this.handleDeferred=function(){for(var w;s.length;)w=s.shift(),w()};function X(C,w){y(C,w),P(C.ioSpecification,w),L(C.artifacts,w),a(C)}function q(C,w){var O=Vi(C,function(Y){return!o(Y)&&je(Y,"bpmn:Process")&&Y.laneSets});O.forEach(r(X,w))}function N(C,w){h(C,w)}function T(C,w){U(C,r(N,w))}function D(C,w){h(C,w)}function S(C,w){h(C,w)}function _(C,w){h(C,w)}function k(C,w){h(C,w)}function L(C,w){U(C,function(O){je(O,"bpmn:Association")?s.push(function(){k(O,w)}):k(O,w)})}function P(C,w){!C||(U(C.dataInputs,r(S,w)),U(C.dataOutputs,r(_,w)))}var R=this.handleSubProcess=function(w,O){y(w,O),L(w.artifacts,O)};function B(C,w){var O=h(C,w);je(C,"bpmn:SubProcess")&&R(C,O||w),je(C,"bpmn:Activity")&&P(C.ioSpecification,w),s.push(function(){U(C.dataInputAssociations,r(D,w)),U(C.dataOutputAssociations,r(D,w))})}function G(C,w){h(C,w)}function Z(C,w){h(C,w)}function Te(C,w){s.push(function(){var O=h(C,w);C.childLaneSet&&oe(C.childLaneSet,O||w),re(C)})}function oe(C,w){U(C.lanes,r(Te,w))}function g(C,w){U(C,r(oe,w))}function y(C,w){x(C.flowElements,w),C.laneSets&&g(C.laneSets,w)}function x(C,w){U(C,function(O){je(O,"bpmn:SequenceFlow")?s.push(function(){G(O,w)}):je(O,"bpmn:BoundaryEvent")?s.unshift(function(){B(O,w)}):je(O,"bpmn:FlowNode")?B(O,w):je(O,"bpmn:DataObject")||(je(O,"bpmn:DataStoreReference")||je(O,"bpmn:DataObjectReference")?Z(O,w):f(i("unrecognized flowElement {element} in context {context}",{element:De(O),context:w?De(w.businessObject):"null"}),{element:O,context:w}))})}function M(C,w){var O=h(C,w),Y=C.processRef;Y&&X(Y,O||w)}function K(C,w){U(C.participants,r(M,w)),L(C.artifacts,w),s.push(function(){T(C.messageFlows,w)})}function re(C){U(C.flowNodeRef,function(w){var O=w.get("lanes");O&&O.push(C)})}}function ab(e,i,t){var s,n,r,a,o,l=[];function p(h,f){var A={root:function(ie,X){return s.add(ie,X)},element:function(ie,X,q){return s.add(ie,X,q)},error:function(ie,X){l.push({message:ie,context:X})}},I=new rb(A,r);f=f||h.diagrams&&h.diagrams[0];var F=ob(h,f);if(!F)throw new Error(r("no diagram to display"));U(F,function(ie){I.handleDefinitions(h,ie)});var j=f.plane.bpmnElement.id;a.setRootElement(a.findRoot(j+"_plane")||a.findRoot(j))}return new Promise(function(h,f){try{return s=e.get("bpmnImporter"),n=e.get("eventBus"),r=e.get("translate"),a=e.get("canvas"),n.fire("import.render.start",{definitions:i}),p(i,t),n.fire("import.render.complete",{error:o,warnings:l}),h({warnings:l})}catch(A){return A.warnings=l,f(A)}})}function ob(e,i){if(!!i){var t=i.plane.bpmnElement,s=t;!H(t,"bpmn:Process")&&!H(t,"bpmn:Collaboration")&&(s=lb(t));var n;H(s,"bpmn:Collaboration")?n=s:n=ht(e.rootElements,function(p){if(!!H(p,"bpmn:Collaboration"))return ht(p.participants,function(h){return h.processRef===s})});var r=[s];n&&(r=Rm(n.participants,function(p){return p.processRef}),r.push(n));var a=Mu(r),o=[i],l=[t];return U(e.diagrams,function(p){var h=p.plane.bpmnElement;a.indexOf(h)!==-1&&l.indexOf(h)===-1&&(o.push(p),l.push(h))}),o}}function Mu(e){var i=[];return U(e,function(t){!t||(i.push(t),i=i.concat(Mu(t.flowElements)))}),i}function lb(e){for(var i=e;i;){if(H(i,"bpmn:Process"))return i;i=i.$parent}}var cb='<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>',Bu=cb,Ru={verticalAlign:"middle"},Lu={color:"#404040"},ub={zIndex:"1001",position:"fixed",top:"0",left:"0",right:"0",bottom:"0"},pb={width:"100%",height:"100%",background:"rgba(40,40,40,0.2)"},db={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"},hb='<div class="bjs-powered-by-lightbox"><div class="backdrop"></div><div class="notice"><a href="https://bpmn.io" target="_blank" rel="noopener" class="link">'+Bu+'</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>',Ct;function fb(){Ct=Ze(hb),Pe(Ct,ub),Pe(ft("svg",Ct),Ru),Pe(ft(".backdrop",Ct),pb),Pe(ft(".notice",Ct),db),Pe(ft(".link",Ct),Lu,{margin:"15px 20px 15px 10px",alignSelf:"center"})}function mb(){Ct||(fb(),Qi.bind(Ct,".backdrop","click",function(e){document.body.removeChild(Ct)})),document.body.appendChild(Ct)}function we(e){e=z({},yb,e),this._moddle=this._createModdle(e),this._container=this._createContainer(e),Ab(this._container),this._init(this._container,this._moddle,e)}At(we,Ki),we.prototype.importXML=async function(i,t){const s=this;function n(a){return s.get("eventBus").createEvent(a)}let r=[];try{i=this._emit("import.parse.start",{xml:i})||i;let a;try{a=await this._moddle.fromXML(i,"bpmn:Definitions")}catch(A){throw this._emit("import.parse.complete",{error:A}),A}let o=a.rootElement;const l=a.references,p=a.warnings,h=a.elementsById;r=r.concat(p),o=this._emit("import.parse.complete",n({error:null,definitions:o,elementsById:h,references:l,warnings:r}))||o;const f=await this.importDefinitions(o,t);return r=r.concat(f.warnings),this._emit("import.done",{error:null,warnings:r}),{warnings:r}}catch(a){let o=a;throw r=r.concat(o.warnings||[]),Sn(o,r),o=gb(o),this._emit("import.done",{error:o,warnings:o.warnings}),o}},we.prototype.importDefinitions=async function(i,t){return this._setDefinitions(i),{warnings:(await this.open(t)).warnings}},we.prototype.open=async function(i){const t=this._definitions;let s=i;if(!t){const r=new Error("no XML imported");throw Sn(r,[]),r}if(typeof i=="string"&&(s=vb(t,i),!s)){const r=new Error("BPMNDiagram <"+i+"> not found");throw Sn(r,[]),r}try{this.clear()}catch(r){throw Sn(r,[]),r}const{warnings:n}=await ab(this,t,s);return{warnings:n}},we.prototype.saveXML=async function(i){i=i||{};let t=this._definitions,s,n;try{if(!t)throw new Error("no definitions loaded");t=this._emit("saveXML.start",{definitions:t})||t,n=(await this._moddle.toXML(t,i)).xml,n=this._emit("saveXML.serialized",{xml:n})||n}catch(a){s=a}const r=s?{error:s}:{xml:n};if(this._emit("saveXML.done",r),s)throw s;return r},we.prototype.saveSVG=async function(){this._emit("saveSVG.start");let i,t;try{const s=this.get("canvas"),n=s.getActiveLayer(),r=ft("defs",s._svg),a=xc(n),o=r?"<defs>"+xc(r)+"</defs>":"",l=n.getBBox();i=`<?xml version="1.0" encoding="utf-8"?>
24
24
  <!-- created with bpmn-js / http://bpmn.io -->
25
25
  <!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd">
26
- <svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" width="`+l.width+'" height="'+l.height+'" viewBox="'+l.x+" "+l.y+" "+l.width+" "+l.height+'" version="1.1">'+o+a+"</svg>"}catch(s){t=s}if(this._emit("saveSVG.done",{error:t,svg:i}),t)throw t;return{svg:i}},we.prototype._setDefinitions=function(e){this._definitions=e},we.prototype.getModules=function(){return this._modules},we.prototype.clear=function(){!this.getDefinitions()||Ki.prototype.clear.call(this)},we.prototype.destroy=function(){Ki.prototype.destroy.call(this),Ui(this._container)},we.prototype.on=function(e,i,t,s){return this.get("eventBus").on(e,i,t,s)},we.prototype.off=function(e,i){this.get("eventBus").off(e,i)},we.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=ft(e)),e.appendChild(this._container),this._emit("attach",{}),this.get("canvas").resized()},we.prototype.getDefinitions=function(){return this._definitions},we.prototype.detach=function(){const e=this._container,i=e.parentNode;!i||(this._emit("detach",{}),i.removeChild(e))},we.prototype._init=function(e,i,t){const s=t.modules||this.getModules(t),n=t.additionalModules||[],r=[{bpmnjs:["value",this],moddle:["value",i]}],a=[].concat(r,s,n),o=z(Um(t,["additionalModules"]),{canvas:z({},t.canvas,{container:e}),modules:a});Ki.call(this,o),t&&t.container&&this.attachTo(t.container)},we.prototype._emit=function(e,i){return this.get("eventBus").fire(e,i)},we.prototype._createContainer=function(e){const i=Ze('<div class="bjs-container"></div>');return Pe(i,{width:Fu(e.width),height:Fu(e.height),position:e.position}),i},we.prototype._createModdle=function(e){const i=z({},this._moddleExtensions,e.moddleExtensions);return new tb(i)},we.prototype._modules=[];function Sn(e,i){return e.warnings=i,e}function gb(e){const t=/unparsable content <([^>]+)> detected([\s\S]*)$/.exec(e.message);return t&&(e.message="unparsable content <"+t[1]+"> detected; this may indicate an invalid BPMN 2.0 diagram file"+t[2]),e}const yb={width:"100%",height:"100%",position:"relative"};function Fu(e){return e+(Ft(e)?"px":"")}function vb(e,i){return i&&ht(e.diagrams,function(t){return t.id===i})||null}function Ab(e){const t='<a href="http://bpmn.io" target="_blank" class="bjs-powered-by" title="Powered by bpmn.io" >'+Bu+"</a>",s=Ze(t);Pe(ft("svg",s),Ru),Pe(s,Lu,{position:"absolute",bottom:"15px",right:"15px",zIndex:"100"}),e.appendChild(s),mi.bind(s,"click",function(n){mb(),n.preventDefault()})}function Xi(e){we.call(this,e)}At(Xi,we),Xi.prototype._modules=[xy,Bc,By,Wc,ev],Xi.prototype._moddleExtensions={};var bb=/^djs-cursor-.*$/;function Vu(e){var i=fi(document.body);i.removeMatching(bb),e&&i.add("djs-cursor-"+e)}function Cb(){Vu(null)}var wb=5e3;function xb(e,i){i=i||"element.click";function t(){return!1}return e.once(i,wb,t),function(){e.off(i,t)}}function ju(e,i){return{x:e.x-i.x,y:e.y-i.y}}function Qu(e){return e.pointers&&e.pointers.length&&(e=e.pointers[0]),e.touches&&e.touches.length&&(e=e.touches[0]),e?{x:e.clientX,y:e.clientY}:null}var Eb=15;function Uu(e,i){var t;function s(o){return a(o.originalEvent)}e.on("canvas.focus.changed",function(o){o.focused?e.on("element.mousedown",500,s):e.off("element.mousedown",s)});function n(o){var l=t.start,p=t.button,h=Qu(o),f=ju(h,l);if(!t.dragging&&Tb(f)>Eb&&(t.dragging=!0,p===0&&xb(e),Vu("grab")),t.dragging){var A=t.last||t.start;f=ju(h,A),i.scroll({dx:f.x,dy:f.y}),t.last=h}o.preventDefault()}function r(o){mi.unbind(document,"mousemove",n),mi.unbind(document,"mouseup",r),t=null,Cb()}function a(o){if(!Nc(o.target,".djs-draggable")){var l=o.button;if(!(l>=2||o.ctrlKey||o.shiftKey||o.altKey))return t={button:l,start:Qu(o)},mi.bind(document,"mousemove",n),mi.bind(document,"mouseup",r),!0}}this.isActive=function(){return!!t}}Uu.$inject=["eventBus","canvas"];function Tb(e){return Math.sqrt(Math.pow(e.x,2)+Math.pow(e.y,2))}const xa={__init__:["moveCanvas"],moveCanvas:["type",Uu]};function Gu(e){this._counter=0,this._prefix=(e?e+"-":"")+Math.floor(Math.random()*1e9)+"-"}Gu.prototype.next=function(){return this._prefix+ ++this._counter};var Ib=new Gu("tt");function kb(e){var i=Ze('<div class="djs-tooltip-container" />');return Pe(i,{position:"absolute",width:"0",height:"0"}),e.insertBefore(i,e.firstChild),i}function Nb(e,i,t){Pe(e,{left:i+"px",top:t+"px"})}function Ea(e,i){e.style.display=i===!1?"none":""}var qu="djs-tooltip",Ta="."+qu;function Qe(e,i){this._eventBus=e,this._canvas=i,this._ids=Ib,this._tooltipDefaults={show:{minZoom:.7,maxZoom:5}},this._tooltips={},this._tooltipRoot=kb(i.getContainer());var t=this;Qi.bind(this._tooltipRoot,Ta,"mousedown",function(s){s.stopPropagation()}),Qi.bind(this._tooltipRoot,Ta,"mouseover",function(s){t.trigger("mouseover",s)}),Qi.bind(this._tooltipRoot,Ta,"mouseout",function(s){t.trigger("mouseout",s)}),this._init()}Qe.$inject=["eventBus","canvas"],Qe.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 i=this._ids.next();return e=z({},this._tooltipDefaults,e,{id:i}),this._addTooltip(e),e.timeout&&this.setTimeout(e),i},Qe.prototype.trigger=function(e,i){var t=i.delegateTarget||i.target,s=this.get(Ic(t,"data-tooltip-id"));!s||(e==="mouseover"&&s.timeout&&this.clearTimeout(s),e==="mouseout"&&s.timeout&&(s.timeout=1e3,this.setTimeout(s)))},Qe.prototype.get=function(e){return typeof e!="string"&&(e=e.id),this._tooltips[e]},Qe.prototype.clearTimeout=function(e){if(e=this.get(e),!!e){var i=e.removeTimer;i&&(clearTimeout(i),e.removeTimer=null)}},Qe.prototype.setTimeout=function(e){if(e=this.get(e),!!e){this.clearTimeout(e);var i=this;e.removeTimer=setTimeout(function(){i.remove(e)},e.timeout)}},Qe.prototype.remove=function(e){var i=this.get(e);i&&(Ui(i.html),Ui(i.htmlContainer),delete i.htmlContainer,delete this._tooltips[i.id])},Qe.prototype.show=function(){Ea(this._tooltipRoot)},Qe.prototype.hide=function(){Ea(this._tooltipRoot,!1)},Qe.prototype._updateRoot=function(e){var i=e.scale||1,t=e.scale||1,s="matrix("+i+",0,0,"+t+","+-1*e.x*i+","+-1*e.y*t+")";this._tooltipRoot.style.transform=s,this._tooltipRoot.style["-ms-transform"]=s},Qe.prototype._addTooltip=function(e){var i=e.id,t=e.html,s,n=this._tooltipRoot;t.get&&t.constructor.prototype.jquery&&(t=t.get(0)),dt(t)&&(t=Ze(t)),s=Ze('<div data-tooltip-id="'+i+'" class="'+qu+'">'),Pe(s,{position:"absolute"}),s.appendChild(t),e.type&&fi(s).add("djs-tooltip-"+e.type),e.className&&fi(s).add(e.className),e.htmlContainer=s,n.appendChild(s),this._tooltips[i]=e,this._updateTooltip(e)},Qe.prototype._updateTooltip=function(e){var i=e.position,t=e.htmlContainer;Nb(t,i.x,i.y)},Qe.prototype._updateTooltipVisibilty=function(e){U(this._tooltips,function(i){var t=i.show,s=i.htmlContainer,n=!0;t&&((t.minZoom>e.scale||t.maxZoom<e.scale)&&(n=!1),Ea(s,n))})},Qe.prototype._init=function(){var e=this;function i(t){e._updateRoot(t),e._updateTooltipVisibilty(t),e.show()}this._eventBus.on("canvas.viewbox.changing",function(t){e.hide()}),this._eventBus.on("canvas.viewbox.changed",function(t){i(t.viewbox)})};const Ia={__init__:["tooltips"],tooltips:["type",Qe]},_b=e=>{var i=Object.prototype.toString,t={"[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":t[i.call(e)]},ka=e=>{var i=_b(e),t;if(i==="array")t=[];else if(i==="object")t={};else return e;if(i==="array")for(var s=0,n=e.length;s<n;s++)t.push(ka(e[s]));else if(i==="object")for(var r in e)t[r]=ka(e[r]);return t};function Sb(e,i="YYYY-MM-DD HH:mm:ss"){const t=new Date(e),s=t.getFullYear(),n=t.getMonth()+1,r=t.getDate(),a=t.getHours(),o=t.getMinutes(),l=t.getSeconds(),p=t.getDay(),f={YYYY:s,MM:n,DD:r,HH:a,mm:o,ss:l,ww:["\u65E5","\u4E00","\u4E8C","\u4E09","\u56DB","\u4E94","\u516D"][p]};for(let A in f)i=i.replace(A,f[A]);return i}function Pb(e){e=ka(e);const i={};e.forEach(s=>{i[s.historyActivityId]?i[s.historyActivityId].push(s):i[s.historyActivityId]=[s]});for(let s in i){const n=i[s];if(n.length>1){const r=e.findLast(a=>a.historyActivityId==s);r.assigneeName=Array.from(new Set(n.map(a=>a.assigneeName))).join("/")}}const t=[];return e.forEach(s=>{let{assigneeName:n,createTime:r,endTime:a,comments:o}=s;/Safari/.test(navigator.userAgent)&&!/Chrome/.test(navigator.userAgent)&&(r=r.replace(/-/g,"/"),a=a.replace(/-/g,"/"));const l={id:s.historyActivityId,class:!a&&s.historyActivityType!="candidate"?"nodePrimary":""};let p="";if(n){if(p=`<span title='${n}'>${n}</span><br>`,r&&(p+=`<span title='${r}'>${Sb(r,"YYYY-MM-DD HH:mm")}</span><br>`),o&&o.length>0){let f,{type:A,fullMessage:I}=o.find(F=>F.action=="AddComment")||{};A=="assigneeComment"&&(f="\u53D8\u66F4\u5BA1\u6838\u4EBA\uFF1A"+I,l.class="nodeWarn"),A=="dispatchComment"&&(f="\u8C03\u5EA6\uFF1A"+I,l.class="nodeWarn"),A=="transferComment"&&(f="\u8F6C\u529E\uFF1A"+I,l.class="nodeWarn"),A=="delegateComment"&&(f="\u59D4\u6258\uFF1A"+I,l.class="nodeWarn"),A=="rollbackComment"&&(f="\u6307\u5B9A\u56DE\u9000\uFF1A"+I,l.class="nodeError"),A=="terminateComment"&&(f="\u7EC8\u6B62\uFF1A"+I,l.class="nodeError"),(A=="addMultiInstanceComment"||(A||"").includes("\u52A0\u7B7E"))&&(f="\u52A0\u7B7E\uFF1A"+I,l.class="nodeWarn"),A=="deleteMultiInstanceComment"&&(f="\u51CF\u7B7E\uFF1A"+I,l.class="nodeError"),A=="withdrawComment"&&(f="\u64A4\u9500\uFF1A"+I,l.class="nodeWarn"),A=="deleteProcessComment"&&(f="\u5220\u9664\u6D41\u7A0B\uFF1A"+I,l.class="nodeError"),A=="cancelProcessComment"&&(f="\u62D2\u7EDD\uFF1A"+I,l.class="nodeError"),A=="comment"&&(f="\u5BA1\u6279\uFF1A"+I,l.class="nodeSuccess"),f&&(p+=`<span title='${f}'>${f}</span>`)}l.tooltip=p}s.historyActivityType=="sequenceFlow"?l.class="lineWarn":!l.class&&s.historyActivityType!="candidate"&&(l.class="nodeSuccess");const h=t.findIndex(f=>f.id==s.historyActivityId);h!=-1?t.splice(h,1,l):t.push(l)}),t}function Ju(e){const i=[],t=[],s=[];return e.routeTxt&&e.routeTxt.length>0&&e.routeTxt.forEach(n=>{n.type==="user"?i.push(...n.ids.filter(r=>r&&r.trim()!=="")):n.type==="post"?t.push(...n.ids):n.type==="dept"&&s.push(...n.ids)}),{intersection:e.assigneeRetain=="true"?1:0,userIds:[...new Set(i)],postIds:[...new Set(t)],deptIds:[...new Set(s)]}}var Db=function(){var e=this,i=e.$createElement,t=e._self._c||i;return t("div",{ref:"container",staticClass:"bpmn-look"})},Ob=[];const tw="",Mb={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 i=e;i&&this.isXml&&this.loadXml(i)},immediate:!0}},methods:{async getXml(e){let i={},t="";try{i=await api.repository.getXmlByProcessDefId({processDefId:e}),i.code==200&&(t=i.data)}catch(s){console.error(s)}return t},async initViewer(){this.viewer&&this.viewer.destroy();const e=Object.prototype.toString.call(Xi)=="[object Function]"?Xi:Xi.default,i=Object.prototype.toString.call(Ia)=="[object Object]"?Ia:Ia.default,t=Object.prototype.toString.call(xa)=="[object Object]"?xa:xa.default;this.viewer=new e({container:this.$refs.container,additionalModules:[i,t]}),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"),i=e._svg,t=document.querySelector(".viewport"),s=document.querySelector(".djs-tooltip-container");let n=!1,r,a,o=0,l=0,p=0,h=0;i.addEventListener("touchstart",f=>{n=!0;const A=f.touches[0];r=A.clientX,a=A.clientY;const I=t.getAttribute("transform").match(/matrix\(([^)]+)\)/)[1].split(/\s*,\s*|\s+/);o=parseFloat(I[4]),l=parseFloat(I[5]);const F=this.getTransformMatrix(s.style.transform);this.isAdd?(p=parseFloat(F[4]),h=parseFloat(F[5])):(p=parseFloat(F[4])+30,h=parseFloat(F[5])+16,this.isAdd=!0)}),i.addEventListener("touchmove",f=>{if(!n)return;const A=f.touches[0],I=A.clientX-r,F=A.clientY-a;l!==void 0&&(t.setAttribute("transform",`matrix(0.679276 0 0 0.679276 ${o+I} ${l+F})`),s.setAttribute("style",`position: absolute; width: 0px; height: 0px; transform: matrix(0.615, 0, 0, 0.615, ${p+I}, ${h+F});`)),e._cachedViewbox&&(e._cachedViewbox.x=I,e._cachedViewbox.y=F),f.preventDefault()}),i.addEventListener("touchend",()=>{n=!1})},getTransformMatrix(e){if(!e||e==="none")return[1,0,0,1,0,0];const i=e.match(/matrix(3d)?\(([^)]+)\)/i);if(!i)return null;const t=i[2].split(/\s*,\s*|\s+/).map(parseFloat);return i[1]!=="3d"&&t.length===6||i[1]==="3d"&&t.length===16?t:null},setNodeColor(e){const i=this.viewer.get("canvas"),t=this.viewer.get("elementRegistry"),s=this.viewer.get("tooltips");e.forEach(n=>{if(n.id&&n.class&&i.addMarker(n.id,n.class),n.id&&n.tooltip){const r=t.get(n.id);if(r){let{x:a,y:o,type:l}=r;["bpmn:StartEvent","bpmn:EndEvent"].includes(l)?(a=a-45,o=o+65):["bpmn:UserTask"].includes(l)&&(a=a-10,o=o+90),s.add({position:{x:a,y:o},html:n.tooltip})}}})},addApprovalData(){if(!this.approvalData||this.approvalData.length==0)return;const e=Pb(this.approvalData);e&&e.length>0&&this.setNodeColor(e)},async loadXml(e){this.viewer||await this.initViewer();try{const{warnings:i}=await this.viewer.importXML(e);i.length&&this.$emit("warning",i)}catch(i){this.$emit("error",{message:"XML \u52A0\u8F7D\u5931\u8D25",detail:i.message}),console.error("XML \u52A0\u8F7D\u5931\u8D25:",i)}}},beforeDestroy(){window.removeEventListener("resize",this.canvasResize),this.viewer&&this.viewer.destroy()}},Hu={};var Bb=ye(Mb,Db,Ob,!1,Rb,"e21f06b8",null,null);function Rb(e){for(let i in Hu)this[i]=Hu[i]}const Ku=function(){return Bb.exports}(),Lb="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAMgAAADICAYAAACtWK6eAAAAAXNSR0IArs4c6QAAByFJREFUeF7t19HJLEUUhdHpQEzEOMREjOMmIsZhIgYyou8KvTecA1Xrgm+zLXrV/9H08/GPAIH/FHjYECDw3wIC8ddB4H8EBOLPg4BA/A0QyAS8QTI3q0sEBHLJRXvMTEAgmZvVJQICueSiPWYmIJDMzeoSAYFcctEeMxMQSOZmdYmAQC65aI+ZCQgkc7O6REAgl1y0x8wEBJK5WV0iIJBLLtpjZgICydysLhEQyCUX7TEzAYFkblaXCAjkkov2mJmAQDI3q0sEBHLJRXvMTEAgmZvVJQICueSiPWYmIJDMrVp9v9+fP5/PHy//J788z/Pny42flwICKQGTuUAStZ2NQBbcBbKAHh4pkBCumQmk0ZvdCmTW+9/TBLKAHh4pkBCumQmk0ZvdCmTW2xtkwbs5UiCNXrj1BgnhFmYCWUAXyAJ6eKRAQrhmJpBGb3YrkFlv3yAL3s2RAmn0wq03SAi3MBPIArpAFtDDIwUSwjUzgTR6s1uBzHr7Blnwbo4USKMXbr1BQriFmUAW0AWygB4eKZAQrpkJpNGb3Qpk1ts3yIJ3c6RAGr1w6w0Swi3MBLKALpAF9PBIgYRwzUwgjd7sViCz3r5BFrybIwXS6IVbb5AQbmEmkAV0gSygh0cKJIRrZgJp9Ga3Apn19g2y4N0cKZBGL9x6g4RwCzOBLKALZAE9PFIgIVwzE0ijN7sVyKy3b5AF7+ZIgTR64dYbJIRbmAlkAV0gC+jhkQIJ4ZqZQBq92a1AZr19gyx4N0cKpNELt94gIdzCTCAL6AJZQA+PFEgI18wE0ujNbgUy6+0bZMG7OVIgjV649QYJ4RZmAllAF8gCenikQEK4ZiaQRm92K5BZb98gC97NkQJp9MKtN0gItzATyAK6QBbQwyMFEsI1M4E0erNbgcx6+wZZ8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YIBlati1HwAIpV3InnCFggWRo2bYcAQukXMmdcIaABZKhZdtyBCyQciV3whkCFkiGlm3LEbBAypXcCWcIWCAZWrYtR8ACKVdyJ5whYIFkaNm2HAELpFzJnXCGgAWSoWXbcgQskHIld8IZAhZIhpZtyxGwQMqV3AlnCFggGVq2LUfAAilXciecIWCBZGjZthwBC6RcyZ1whoAFkqFl23IELJByJXfCGQIWSIaWbcsRsEDKldwJZwhYIBlati1HwAIpV3InnCFggWRo2bYcAQukXMmdcIaABZKhZdtyBCyQciV3whkCFkiGlm3LEbBAypXcCWcIWCAZWrYtR8ACKVdyJ5whYIFkaNm2HAELpFzJnXCGgAWSoWXbcgQskHIld8IZAhZIhpZtyxGwQMqV3AlnCFggGVq2LUfAAilXciecIWCBZGjZthwBC6RcyZ1whoAFkqFl23IELJByJXfCGQIWSIaWbcsRsEDKldwJZwhYIBlati1HwAIpV3InnCFggWRo2bYcAQukXMmdcIaABZKhZdtyBCyQciV3whkCFkiGlm3LEbBAypXcCWcIWCAZWrYtR8ACKVdyJ5whYIFkaNm2HAELpFzJnXCGgAWSoWXbcgQskHIld8IZAhZIhpZtyxGwQMqV3AlnCFggGVq2LUfAAilXciecIWCBZGjZthwBC6RcyZ1whoAFkqFl23IELJByJXfCGQIWSIaWbcsRsEDKldwJZwhYIBlati1HwAIpV3InnCFggWRo2bYcAQukXMmdcIaABZKhZdtyBCyQciV3whkCFkiGlm3LEbBAypXcCWcI/B+xx2bn1cBs4wAAAABJRU5ErkJggg==",Na="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAMgAAADICAYAAACtWK6eAAAAAXNSR0IArs4c6QAADR9JREFUeF7tnXvIbkUVxp9VVtrF0hQMM8MgoahMu3cqzVI6x9KkC9lRhKAoxS5aWXZHIqMrWIQWohlZlkWpJ092v1BEEFlkQlAQBVEmRRcqW7E68x1ev/N977f3emdmz+z17H/fWWtmPWt+7+zL7LUFPKgAFdhUAaE2VIAKbK4AAeHsoAJLFCAgnB5UgIBwD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QmCC",Vb={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 Lb},loading(){return Fb},success(){return Na}},watch:{type:{handler(e,i){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}}};var jb=function(){var e=this,i=e.$createElement,t=e._self._c||i;return e.show?t("div",[e.statusTips?t("div",{staticClass:"top-tipss",style:e.show?"visibility: visible; opacity: 1;":"visibility: hidden; opacity: 0;"},[t("div",{staticClass:"top-tipss-status"},[e.type=="loading"?t("div",{staticClass:"top-tipss-loadinig"},[t("img",{attrs:{src:e.loading}}),e.text?t("div",{staticClass:"top-tipss-status-text"},[e._v(" "+e._s(e.text)+" ")]):e._e()]):e._e(),e.type=="success"?t("div",{staticClass:"top-tipss-success"},[t("img",{attrs:{src:e.success}}),e.text?t("div",{staticClass:"top-tipss-status-text"},[e._v(" "+e._s(e.text)+" ")]):e._e()]):e._e(),e.type=="error"?t("div",{staticClass:"top-tipss-error"},[t("img",{attrs:{src:e.error}}),e.text?t("div",{staticClass:"top-tipss-status-text"},[e._v(" "+e._s(e.text)+" ")]):e._e()]):e._e()])]):t("div",{staticClass:"top-tipss",style:e.show?"visibility: visible; opacity: 1;":"visibility: hidden; opacity: 0;"},[e.text?t("div",{staticClass:"top-tipss-text"},[e._v(e._s(e.text))]):e._e()]),t("div",{staticClass:"top-tipss-mask",style:e.show&&e.statusTips?"visibility: visible; opacity: .7;":"visibility: hidden; opacity: 0;"})]):e._e()},Qb=[];const iw="",Wu={};var Ub=ye(Vb,jb,Qb,!1,Gb,"79d9d777",null,null);function Gb(e){for(let i in Wu)this[i]=Wu[i]}const mt=function(){return Ub.exports}(),qb="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAEgAAABICAYAAABV7bNHAAAAAXNSR0IArs4c6QAAEmBJREFUeF7tnAt0VdWZx397n3PvDUlISHgEkJfDGxXRVnGqq2o7PtvB1hl0fFun6ji+xhfgzCioq5WA2hFxptUOY23VqlNf06laW7VrVUfs8gEqgmBFRZ4hIRBIcu85e8/69j4HriEJAYLiY691181Ncs/Z+3/++/u+/b0U3T1mWM0AAlZhmaEirFUoZZlus+WlDM8ZJqKpsJZhCiYAxmgC5T8Pk+lYWG4Vy7UhBrSF15ViOYaNrZr5TVt4lxtUfuu1Z9iQAShWETNDme5ckuqWiwkIdxGyEsUMCg6QOTbXazMDAs1wYD9jGKk1gwJFX6UIUZQrS7W7v0AI5fJKAGqy0IQVrMAq6rE0WUsUW9YZwwqtWQq8FRve3VDGKi5TrQ6wGWRQGKYTu3ns5tg9gGRCD6NZ5Njinlz1HFtBK/thOUwZJmjNKGCcggoDthChYguRvIqetTFCJb8arf0rHaGGUEGgIBNiNcjKNwKLjOEdq3kdxUvkeKv+MiW/B2HyOBSTMbsD1O4BlK5AKA706UE/AyeguBrLGAVxbAksWGMwGmwuRAWyYI3KaLbeX36Xfi4YbFwEnnyOkt+1RlgDSmu0AhUoBO8AxWIst2h4sq6Z1R6k3d9uuwaQMOcG2U5+An1vtiNizWlYJivFMKUoExIIvwvGM6U1gqoSOHwIDKyAYb1gdDXIBYQZ+1TA0EqP+PuN8NFG3MqFSEvqYfkGWLkRXvgAGlogFzqQBVSHshDQWjZbeB/DPF3CL+uuUKu2smk6dleYtPMAPWQDFjlwosqbbVUGJhvNJA1fDRQ18libI0xTAdszCwf0Qx1QgxrTB0ZUoQSc0gx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ZaNeXjpk2wT+P9KELohNtx5+AAAAABJRU5ErkJggg==",Jb={name:"attchViews",components:{TopTips:mt,PreviewImage:on,PreView:Xl,TopPopup:ze},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,i){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 qb},del(){return $l},doc(){return ec},file(){return tc},image(){return ic},pdf(){return sc},xls(){return nc},zip(){return rc}},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,i){this.handleTips("\u4E0A\u4F20\u4E2D",!0,"loading");const t=Array.from(e.target.files);document.getElementById("fileUp").value="";let s=0,n=this.haveCount>t.length?t.length:this.haveCount;try{for(let r=0;r<n;r++)if(this.extension.includes(t[r].name.substring(t[r].name.lastIndexOf(".")+1))){const a=new FormData;a.append("file",t[r]);const o=await this.request.post("/file/upload",a,{headers:{"Content-Type":"multipart/form-data"}});if(o.code===200){if(this.filesArr.length>0){for(let l=0;l<this.filesArr.length;l++)if(o.name==this.filesArr[l].name&&s++,this.filesArr[l].name.includes(`(${s})`)&&s++,s>0){let p=o.name.lastIndexOf(".");o.name=`${o.name.substring(0,p)} (${s}) .${o.name.substring(o.name.lastIndexOf(".")+1)}`}}this.filesArr.push(o.data)}else{this.handleTips("\u4E0A\u4F20\u5931\u8D25",!0,"error"),this.viewImage();return}}else{this.handleTips(`\u6587\u4EF6${t[r].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,i){if(this.deletFn){if(this.deletFn(i)===!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,i){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((i,t)=>{this.imgIcon.includes(i.name.substring(i.name.lastIndexOf(".")+1).toLowerCase())}),e=this.filesArr.filter(i=>this.imgIcon.includes(i.name.substring(i.name.lastIndexOf(".")+1).toLowerCase())),e.forEach((i,t)=>{this.lists.push(i.url)})},emitView(){this.$emit("getValue",this.filesArr)},clearData(){this.filesArr=[]},handleTips(e,i,t){this.textTips=e,this.statusTips=i,this.typeTips=t,this.$refs.topTips.handleOpen()}}};var Hb=function(){var e=this,i=e.$createElement,t=e._self._c||i;return t("div",{staticClass:"attch-upload"},[e.buttonLoading?t("div",{staticClass:"attch-upload-mask"}):e._e(),t("div",{staticClass:"attch-upload-body"},[t("div",{staticClass:"upload-header"},[t("div",{staticClass:"upload-header-title"},[e._v(" \u9644\u4EF6 "),e.requires?t("span",{staticClass:"upload-header-title--re"},[e._v("*")]):e._e()]),t("div",{staticClass:"upload-header-upload"},[e.onlyShow?e._e():t("div",{staticClass:"upload-header-upload--item",attrs:{id:"inputfile"},on:{click:e.handleClick}},[t("img",{attrs:{src:e.addFile}}),e._v("\u4E0A\u4F20\u9644\u4EF6 ")])])]),t("div",{staticClass:"upload-body"},[e.filesArr.length>0?t("div",{staticClass:"upload-list"},e._l(e.filesArr,function(s,n){return t("div",{key:s.uuid,staticClass:"list-items"},[t("div",{staticClass:"list-items-icon"},[e.xlsIcon.includes(s.name.substring(s.name.lastIndexOf(".")+1).toLowerCase())?t("img",{staticClass:"icon-img",attrs:{src:e.xls}}):e.imgIcon.includes(s.name.substring(s.name.lastIndexOf(".")+1).toLowerCase())?t("img",{staticClass:"icon-img",attrs:{src:e.image}}):s.name.substring(s.name.lastIndexOf(".")+1).toLowerCase()=="pdf"?t("img",{staticClass:"icon-img",attrs:{src:e.pdf}}):e.docIcon.includes(s.name.substring(s.name.lastIndexOf(".")+1).toLowerCase())?t("img",{staticClass:"icon-img",attrs:{src:e.doc}}):e.zipIcon.includes(s.name.substring(s.name.lastIndexOf(".")+1).toLowerCase())?t("img",{staticClass:"icon-img",attrs:{src:e.zip}}):t("img",{staticClass:"icon-img",attrs:{src:e.file}})]),t("div",{staticClass:"list-items-info"},[t("div",{staticClass:"info-name"},[e._v(" "+e._s(s.name)+" ")]),t("div",{staticClass:"info-attribute"},[t("span",{staticClass:"info-attribute-size"},[e._v(e._s(s.fileSize<1024?s.fileSize:s.fileSize/1024>1024?parseFloat((s.fileSize/1024/1024).toFixed(2)):parseFloat((s.fileSize/1024).toFixed(2)))+e._s(s.fileSize<1024?"b":parseFloat((s.fileSize/1024).toFixed(2))<1024?"kb":"M")+" ")]),t("span",{staticClass:"info-attribute-views",on:{click:function(r){return e.viewFile(s,n)}}},[e._v(" \u9884\u89C8 ")])])]),e.onlyShow?e._e():t("div",{staticClass:"list-items-operation"},[t("div",{staticClass:"list-items-operation-img",on:{click:function(r){return e.handleDel(n,s)}}},[t("img",{attrs:{src:e.del}})])])])}),0):e._e()])]),t("TopTips",{ref:"topTips",attrs:{text:e.textTips,statusTips:e.statusTips,type:e.typeTips}}),t("PreviewImage",{attrs:{images:e.lists,visible:e.visible,indexd:e.indexd},on:{"update:visible":function(s){return e.visible=s}}}),t("TopPopup",{ref:"TopPopup",attrs:{visible:e.visibleS,titleText:"\u9644\u4EF6\u9884\u89C8",isDrawer:"",isIndex:99},on:{"update:visible":function(s){return e.visibleS=s}}},[e.visibleS?t("PreView",{attrs:{file:e.fileUrl}}):e._e()],1)],1)},Kb=[];const sw="",Yu={};var Wb=ye(Jb,Hb,Kb,!1,Yb,"26dcacc2",null,null);function Yb(e){for(let i in Yu)this[i]=Yu[i]}const xi=function(){return Wb.exports}();var zb=function(){var e=this,i=e.$createElement,t=e._self._c||i;return t("div",{attrs:{type:"flex"}},[t("div",[e._l(e.flowList,function(s,n){return[["candidate","sequenceFlow"].includes(s.historyActivityType)?e._e():t("div",{key:s.id,staticClass:"flow-item",attrs:{timestamp:s.endTime||s.createTime,placement:"top"}},[t("p",[t("span",{staticClass:"flow-name"},[e._v(e._s(s.assigneeName))]),e._v(" \u5728 ["+e._s(s.createTime)+"] \u5F00\u59CB\u5904\u7406 "),t("span",{staticClass:"flow-node"},[e._v("["+e._s(s.historyActivityType=="endEvent"?"\u7ED3\u675F":s.historyActivityName||"\u672A\u547D\u540D")+"]")]),e._v(" \u73AF\u8282 ")]),s.historyActivityDurationTime?t("p",[e._v(" \u4EFB\u52A1\u5386\u65F6 ["+e._s(s.historyActivityDurationTime)+"] ")]):e._e(),s.comments&&s.comments.length>0?e._l(s.comments.filter(function(r){return r.action==="AddComment"}),function(r,a){return t("p",{key:a},[a<1?[e.commentMap[r.type]?t("span",[e._v(" "+e._s(e.commentMap[r.type])+": ["+e._s(r.fullMessage)+"] ")]):r.fullMessage?t("span",[e._v(" "+e._s(r.type)+": ["+e._s(r.fullMessage)+"] ")]):e._e(),s.comments.filter(function(o){return o.action==="AddComment"}).length>1?t("span",{staticStyle:{color:"#1989fa",float:"right"},on:{click:e.handleClick}},[e._v(" "+e._s(e.toggleText)+" "),t("i",{class:[e.isFlag?"arrow-up":"arrow-down"]})]):e._e(),r.time&&e.isFlag?t("p",{staticStyle:{color:"gray","font-size":"12px"}},[e._v(e._s(r.time))]):e._e()]:e._e(),a>0&&e.isFlag?[e.commentMap[r.type]?t("span",[e._v(" "+e._s(e.commentMap[r.type])+": ["+e._s(r.fullMessage)+"] ")]):r.fullMessage?t("span",[e._v(" "+e._s(r.type)+": ["+e._s(r.fullMessage)+"] ")]):e._e(),r.time?t("p",{staticStyle:{color:"gray","font-size":"12px"}},[e._v(e._s(r.time))]):e._e()]:e._e()],2)}):e._e(),s.endTime?t("p",[e._v("\u7ED3\u675F\u65F6\u95F4: ["+e._s(s.endTime)+"]")]):e._e(),t("div",{staticClass:"p-file"},[s.attachmentsFujian&&s.attachmentsFujian.length>0?t("div",{on:{click:function(r){return e.$emit("view",s.attachmentsFujian)}}},[e._v(" \u67E5\u770B\u9644\u4EF6")]):e._e(),s.attachmentsQianzi&&s.attachmentsQianzi.length>0?t("div",{on:{click:function(r){return e.$emit("view",s.attachmentsQianzi)}}},[e._v(" \u67E5\u770B\u7B7E\u5B57")]):e._e()])],2)]})],2)])},Xb=[];const nw="",Zb={name:"nf-flow",components:{attchViews:xi},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"}}},zu={};var $b=ye(Zb,zb,Xb,!1,e0,"6634cd3f",null,null);function e0(e){for(let i in zu)this[i]=zu[i]}const t0={name:"TopTab",components:{processFlow:function(){return $b.exports}(),BpmnLook:Ku,TopPopup:ze,ViewAttchList:oc,PreviewImage:on},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,i){this.selfTapList.length||(this.isTapList=[].concat(this.defaultTabList),e.length>0&&e.forEach((t,s)=>{t.sort&&t.sort>1?this.isTapList.splice(t.sort-1,0,t):t.sort==1?this.isTapList.unshift(t):this.isTapList.push(t)}),this.active=this.isTapList[0].key)},immediate:!0,deep:!0},selfTapList:{handler(e,i){e.length&&(this.isTapList=[].concat(e),this.active=this.isTapList[0].key)},immediate:!0,deep:!0},track:{handler(e,i){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,i){e&&(this.taskCommentList=e)},immediate:!0,deep:!0},trackList:{handler(e,i){e&&(this.trackListss=e)},immediate:!0,deep:!0}},mounted(){this.tabAnimation(0)},methods:{formatFlow(e){let i=(e||[]).map(t=>({...t,attachmentsFujian:(t.attachments||[]).filter(s=>s.type!="signature"),attachmentsQianzi:(t.attachments||[]).filter(s=>s.type=="signature")}));return i=i.reverse(),i},handleActive(e,i){e!==this.active&&(this.active=e,this.tabAnimation(i))},tabAnimation(e){if(this.label.length){let i=document.getElementsByClassName("bottom-line")[0],t;if(i.offsetWidth<this.label[e].offsetWidth-10){let s=(this.label[e].offsetWidth-i.offsetWidth-10)/2;t=`${this.label[e].offsetLeft+s}px`}else if(i.offsetWidth>this.label[e].offsetWidth-10){let s=(i.offsetWidth-this.label[e].offsetWidth+10)/2;t=`${this.label[e].offsetLeft-s}px`}else t=`${this.label[e].offsetLeft}px`;i.style.transition=".3s",i.style.transform=`translateX(${t})`}},viewList(e){this.visible=!0,this.inList=e},viewSign(e,i){this.signLists=e.filter(t=>t.digitalSignature).map(t=>t.digitalSignature),this.indexd=this.signLists.findIndex(t=>t==i),this.signPreViewVisible=!0}}};var i0=function(){var e=this,i=e.$createElement,t=e._self._c||i;return t("div",{staticClass:"tops-tab"},[t("div",{staticClass:"tops-tab-header"},[e._l(e.isTapList,function(s,n){return[t("div",{staticClass:"tops-tab-header-items",class:[s.key===e.active?"active":""],on:{click:function(r){return e.handleActive(s.key,n)}}},[e._v(" "+e._s(s.label)+" ")])]}),e.isTapList.length?t("div",{staticClass:"bottom-line"}):e._e()],2),t("div",{staticClass:"tops-tab-body"},e._l(e.isTapList,function(s){return t("div",{directives:[{name:"show",rawName:"v-show",value:e.active===s.key,expression:"active === item.key"}],key:s.key,class:[s.key==="c"&&"tops-tab-body-taskcommentlist"],staticStyle:{height:"100%"}},[s.key==="a"&&s.type==="default"?e._t("default"):e._e(),e.active===s.key&&s.key==="b"&&s.type==="default"?t("div",{staticClass:"uph-tab-b",staticStyle:{height:"100%"},attrs:{name:s.slot}},[e.processXml?t("div",{staticStyle:{padding:"10px 20px",color:"#1389ff"},on:{click:function(){return e.visibleTack=!0}}},[e._v(" \u67E5\u770B\u6D41\u7A0B\u8282\u70B9\u4FE1\u606F ")]):e._e(),s.key==="b"&&e.processXml?t("BpmnLook",{ref:"PreviewRef",refInFor:!0,attrs:{diagram:e.processXml,approvalData:e.approvalData}}):t("div",{staticClass:"textnone"},[e._v(" \u6682\u65E0\u6D41\u7A0B\u56FE ")])],1):e._e(),s.key==="c"&&s.type==="default"?t("div",{staticStyle:{height:"100%"}},[s.key==="c"&&e.ProcessInsObj.flow?t("processFlow",{attrs:{request:e.ProcessInsObj.request,"flow-list":e.formatFlow(e.ProcessInsObj.flow)},on:{view:e.viewList}}):t("div",{staticClass:"textnone"},[e._v("\u6682\u65E0\u6570\u636E")])],1):e._e(),s.type=="slot"?e._t(s.slot):e._e()],2)}),0),t("TopPopup",{ref:"TopPopup",attrs:{visible:e.visible,titleText:"\u9644\u4EF6\u5217\u8868",isDrawer:"",isIndex:5},on:{"update:visible":function(s){return e.visible=s}}},[t("ViewAttchList",{attrs:{inList:e.inList}})],1),t("PreviewImage",{attrs:{images:e.signLists,visible:e.signPreViewVisible,indexd:e.indexd},on:{"update:visible":function(s){return e.signPreViewVisible=s}}}),t("TopPopup",{ref:"TopPopups",attrs:{visible:e.visibleTack,titleText:"\u6D41\u7A0B\u4FE1\u606F",isDrawer:"",width:"60vw"},on:{"update:visible":function(s){return e.visibleTack=s}}},[e.trackListss&&e.trackListss.length?e._l(e.trackListss,function(s,n){return t("div",{key:s.id,staticClass:"seal-list__item"},[t("div",[t("div",{staticClass:"seal-list__item--option"},[t("span",[e._v("\u5E8F\u53F7")]),t("span",{staticStyle:{"max-width":"100px"}},[e._v(e._s(n+1))])]),t("div",{staticClass:"seal-list__item--option"},[t("span",[e._v("\u8282\u70B9\u540D\u79F0")]),t("span",{staticStyle:{"max-width":"100px"}},[e._v(e._s(s.historyActivityName))])]),t("div",{staticClass:"seal-list__item--option"},[t("span",[e._v("\u5BA1\u6279\u4EBA")]),t("span",{staticStyle:{"max-width":"100px"}},[e._v(e._s(s.assigneeName))])])])])}):e._e()],2)],1)},s0=[];const aw="",Xu={};var n0=ye(t0,i0,s0,!1,r0,"8ff4442e",null,null);function r0(e){for(let i in Xu)this[i]=Xu[i]}const a0=function(){return n0.exports}(),o0="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAMgAAADICAYAAACtWK6eAAAAAXNSR0IArs4c6QAACfVJREFUeF7tnT2S1FYYRaUCYgJ2wArYgRMIYQPGMVUQt8bDAoDRxFBFbLwBE5qEHbACdkBAbCi5HjxgGKbn6b7Wz9O7h9B8avV3rk7J6r7VtA1/IACBvQRa2EAAAvsJIAhXBwQuIYAgXB4QQBCuAQjkEeAOkseNo0wIIIhJ0KyZRwBB8rhxlAkBBDEJmjXzCCBIHjeOMiGAICZBs2YeAQTJ48ZRJgQQxCRo1swjgCB53DjKhACCmATNmnkEECSPG0eZEEAQk6BZM48AguRx4ygTAghiEjRr5hFAkDxuHGVCAEFMgmbNPAIIkseNo0wIIIhJ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zPiuSAECKDJI2fBIAiE+uVC2SAECKDJI2fBIAiE+uVC2SAECKDJI2fBIAiE+uVC2SAECKDJI2fBIAiE+uVC2SAECKDJI2fBIAiE+uVC2SAECKDJI2fBIAiE+uVC2SAECKDJI2fBIAiE+uVC2SAECKDJI2fBIAiE+uVC2SAECKDJI2fBIAiE+uVC2SAECKDJI2fBIAiE+uVC2SAECKDJI2fBIAiE+uVC2SAECKDJI2fBIAiE+uVC2SAECKDJI2fBIAiE+uVC2SAECKDJI2fBIAiE+uVC2SAECKDJI2fBIAiE+uVC2SAECKDJI2fBIAiE+uVC2SAECKDJI2fBIAiE+uVC2SAECKDJI2fBIAiE+uVC2SAECKDJI2fBIAiE+uVC2SAECKDJI2fBIAiE+uVC2SAECKDJI2fBL4Csq/cvbKQGitAAAAAElFTkSuQmCC",c0={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,i){e&&e.length&&(this.lists=e)},immediate:!0,deep:!0},defaultValue:{immediate:!0,deep:!0,handler(e,i){this.active=e;let s=JSON.parse(JSON.stringify(this.option)).filter((n,r)=>n.id==e);this.activeItem=s[0],this.activeItem&&this.$emit("change",this.activeItem)}}},computed:{arrow(){return o0},check(){return l0}},methods:{handleExpand(){this.disibled||(this.expand?this.expand=!1:this.expand=!0)},handleClick(e,i){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:""}}}};var u0=function(){var e=this,i=e.$createElement,t=e._self._c||i;return t("div",{staticClass:"top-select"},[e.isSlots?t("div",{staticStyle:{position:"relative","z-index":"80"}},[e._t("header",null,{data:Object.assign({},e.activeItem,{placeholder:e.placeholder})})],2):t("div",{staticClass:"top-select-menu",class:[e.border&&"top-select-menu-border",!e.activeItem&&"top-select-menu-placeholder"],on:{click:e.handleExpand}},[e._v(" "+e._s(e.activeItem?e.activeItem.name:e.placeholder)+" "),e.disibled?e._e():t("img",{staticClass:"top-select-menu--arrow",class:[e.expand?"arrow-active":""],attrs:{src:e.arrow}})]),e.maskShow?t("div",{staticClass:"top-select-option-mask",style:e.expand?"visibility: visible; opacity: .7;":"visibility: hidden; opacity: 0;"}):e._e(),e.lists&&e.lists.length?t("div",{staticClass:"top-select-option",class:[e.border&&"top-select-option-border"],style:`${e.expand?"transform: translateY(2%);visibility: visible; opacity: 1;":"transform: translateY(-50%);visibility: hidden; opacity: 0"};${e.optionStyle?e.optionStyle:""}`},e._l(e.lists,function(s,n){return t("div",{key:s.id,staticClass:"option-items",class:[e.active==s.id?"option-items-active":""],on:{click:function(r){return e.handleClick(s,n)}}},[e._v(" "+e._s(s.name)+" "),e.active==s.id?t("img",{staticClass:"option-items-check",attrs:{src:e.check}}):e._e()])}),0):e._e()])},p0=[];const ow="",Zu={};var d0=ye(c0,u0,p0,!1,h0,"a791e974",null,null);function h0(e){for(let i in Zu)this[i]=Zu[i]}const $u=function(){return d0.exports}(),f0="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAMgAAADICAYAAACtWK6eAAAAAXNSR0IArs4c6QAADGdJREFUeF7tnVFSHDkMhuVhD7AV9j1wksBJApeA5YnwlJBLQE4COUl63zOpHGAZb3l2mpqQGWYsS7as/qna2oe0ZeuXvpHd7W4Hwh8UgAJbFQjQBgpAge0KABBkBxR4RQEAgvSAAgAEOQAFeAqggvB0Q6uJKABAJhJouMlTAIDwdEOriSgAQCYSaLjJUwCA8HRDq4koAEAmEmi4yVMAgPB0Q6uJKNAdIH9+jEezGb0PkY5oRkeU/k/L/4ZlzAINtKAhBhpmC/r6/So8TiSWcFNBgS4AOfwcz2Kkt4HoA0OD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M28VhEAAkBEACHGnFumY10rAASASGUY+0UhqQFo2AEgG1Rli6IRoV5sooL8GimGHt3cCsRrpwwqO9+Hts1j9o+lZ0CSWHj1NA8Szht0eT20uRqAbNEdVSQjIZ1Wj6QAAHklD/A8ZD9I8CR9g07ep1ijy6tK8oBNfNthASATBiS5niBJ/z84oBNa0Lv9flc7vCrQGWfUAGTigHCSpsc23DcK01P0Hv3dZ8whfXKV88MxlSnWPiJ6uYYLiBf/Rf0AIKJymjAGQATDAEAExTRiCoAIBgKACIppxBQAEQwEABEU04gpACIYCAAiKKYRUwBEMBAARFBMI6aw/0wwEIztN93s5hWUqStTAEQwXJ6/7i4oU1em3tzG6+D4oV/NYDwt6PjnVcj6HBIqSM0IMfrCvjOGaJuaMNYfyQwAEdJf0wx7e7fmoDqzzakeAKSjIK+mWmnjYv4XBTvyU2GoRZ8/QgVRiIiWyRdnpJ9o9ePE7hCJ7n9chpsSfwBIiXoN247b/RsOwWzXuQvx1xwBIGbDjIFZUACAWIgCxmBWAQBiNjQYmAUFAIiFKGAMZhUAIGZDg4FZUACAWIgCxmBWAQBiNjQYmAUFAIiFKGAMZhUAIGZDg4FZUACAWIgCxmBWAQBiNjQYmAUFAIiFKGAMZhUAIGZDg4FZUOA/PPf9I/jtWsEAAAAASUVORK5CYII=";var m0=function(){var e=this,i=e.$createElement,t=e._self._c||i;return t("TopPopup",{ref:"TopPopupFixedPerson",attrs:{visible:e.showFixedPerson,titleText:"\u9009\u62E9\u4EBA\u5458("+e.fixedPersonList.length+"\u4EBA)",isIndex:99,className:"sumbmitPopup-index",comfigText:"\u786E\u5B9A",comfig:e.handleSumbitFixedPerson},on:{"update:visible":e.updateVisible}},[t("div",{staticClass:"s-tree"},e._l([].concat(e.fixedPersonList),function(s){return t("div",{key:s.userId,staticClass:"s-node",on:{click:function(n){return e.handleClickFixedPerson(s)}}},[e.mySelectIds.includes(s.userId)?t("div",{staticClass:"radio-select"},[t("svg",{staticClass:"icon",attrs:{t:"1758260488735",viewBox:"0 0 1024 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg","p-id":"7527",width:"18",height:"18"}},[t("path",{attrs:{d:"M512 0a512 512 0 1 0 512 512A512 512 0 0 0 512 0z m314.916571 369.371429l-354.304 349.184a46.409143 46.409143 0 0 1-64.987428 0l-212.955429-209.883429a44.763429 44.763429 0 0 1 0-64 46.336 46.336 0 0 1 64.987429 0l180.443428 177.810286 321.828572-317.184a46.482286 46.482286 0 0 1 64.987428 0 44.836571 44.836571 0 0 1-0.036571 64.073143z",fill:"#409eff","p-id":"7528"}})])]):t("div",{staticClass:"radio-select-not"},[t("svg",{staticClass:"icon",attrs:{t:"1758260589679",viewBox:"0 0 1024 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg","p-id":"8704",width:"18",height:"18"}},[t("path",{attrs:{d:"M150.144 150.144C250.24 50.048 370.88 0 512 0s261.76 50.048 361.856 150.144S1024 370.88 1024 512s-50.048 261.76-150.144 361.856S653.12 1024 512 1024s-261.76-50.048-361.856-150.144S0 653.12 0 512s50.048-261.76 150.144-361.856zM64 512c0 124.16 43.328 228.48 131.392 316.608C283.52 916.672 387.84 960 512 960s228.48-43.328 316.608-131.392C916.672 740.48 960 636.16 960 512s-43.328-228.48-131.392-316.608C740.48 107.328 636.16 64 512 64s-228.48 43.328-316.608 131.392C107.328 283.52 64 387.84 64 512z",fill:"#b5bbc1","p-id":"8705"}})])]),s.avatar?t("img",{staticClass:"node-avatar",attrs:{src:s.avatar,alt:"\u5934\u50CF"}}):t("div",{staticClass:"node-avatar-text"},[e._v(" "+e._s((s.realName||"").slice(-2))+" ")]),t("div",{staticClass:"node-name"},[t("div",{staticClass:"node-name-text"},[e._v(e._s(s.realName))]),t("div",{staticClass:"node-name-phone"},[e._v(e._s(s.phonenumber))])])])}),0)])},g0=[];const lw="",y0={name:"selectFixedPerson",components:{TopPopup:ze},props:{multiple:{},visible:{type:Boolean,default:!1},list:{type:Array,default(){return[]}},select:{type:Array,default(){return[]}},multiple:{type:Boolean,default:!1}},data(){return{showFixedPerson:!1,fixedPersonList:[],mySelect:[],mySelectIds:[]}},watch:{visible:{handler(e,i){this.showFixedPerson=e,e?(this.fixedPersonList=this.list||[],this.mySelect=this.select||[],this.mySelectIds=this.mySelect.map(t=>t.userId)):(this.fixedPersonList=[],this.mySelect=[],this.mySelectIds=[])},immediate:!0},fixedPersonList:{handler(e,i){e&&e.length>0&&JSON.stringify(e)!==JSON.stringify(this.list)&&this.$emit("updateList",e)},immediate:!0,deep:!0}},methods:{updateVisible(e){this.$emit("updateVisible",e)},handleClickFixedPerson(e){const i=this.select.find(t=>t.userId===e.userId);this.multiple||(this.mySelect=[],this.mySelectIds=[]),i?(this.mySelect=this.select.filter(t=>t.userId!==e.userId),this.mySelectIds=this.mySelect.map(t=>t.userId)):(this.mySelect.push(e),this.mySelectIds.push(e.userId)),this.$emit("updateSelect",this.mySelect)},handleSumbitFixedPerson(){this.$emit("confirm",this.mySelect)}}},ep={};var v0=ye(y0,m0,g0,!1,A0,"4e0e3ca1",null,null);function A0(e){for(let i in ep)this[i]=ep[i]}const tp=function(){return v0.exports}(),b0={name:"TopSubmitPopup",components:{SelectFixedPerson:tp,BpmnLook:Ku,TopPopup:ze,TopDownSelect:$u,PreviewImage:on,departPerson:Pt.departPerson,TopTips:mt},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{currentClickItem:{},fixedSelect:{},showFixedPerson:!1,fixedPersonList:[],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,i){this.show=e,this.$emit("update:visible",this.show),e?(this.selectDefaultValue="",this.handleOption()):this.$refs.TopDownSelect.handleClose()}},show:{handler(e,i){e||this.$refs.TopDownSelect.handleClose()}},businessType:{handler(e,i){this.businessTypeData=e},immediate:!0},businessDeptId:{handler(e,i){e&&(this.businessDeptIdData=e)},immediate:!0},extraParams:{handler(e,i){e&&e.businessDeptId&&(console.error(e.businessDeptId,"\u4E1A\u52A1\u90E8\u95E8id\u66F4\u65B0\u5230extraParams.businessDeptId\u4E2D\uFF0C\u8BF7\u68C0\u67E5\u662F\u5426\u9700\u8981\u66F4\u65B0\u5230\u6B64\u5904"),this.businessDeptIdData=e.businessDeptId)},immediate:!0,deep:!0},id:{handler(e,i){e&&(this.idData=e,this.resubmit&&this.getProcessInstance())},immediate:!0},processName:{handler(e,i){this.processNameData=e},immediate:!0},title:{handler(e,i){this.titleData=e},immediate:!0},todoParameter:{handler(e,i){this.todoParameterData=e},immediate:!0,deep:!0},selfList:{handler(e,i){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,i){e&&this.getProcessInstance()}}},computed:{ProcessImg(){return f0}},methods:{getXmlByProcessDefId(e){this.request.get("/bladex/blade-workflow/process/getXmlByProcessDefId",{params:{processDefId:e}}).then(i=>{i.code==200&&(this.processXml=i.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(){if(this.checkedItem={},this.firstPerson=[],this.personList=[],this.selfList&&this.selfList.length)return;this.handleTips("",!0,"loading");let e={businessCode:this.businessType,appId:this.appId,processGroupName:this.processNameData,...this.extraParams};this.processNameData&&delete e.processGroupName,await this.request.post("/bladex/blade-workflow/repository/getProcessDefList",e).then(i=>{i.code==200&&(this.option=i.data,i.data&&i.data.length?(this.handleTips("",!1,"success"),(this.isSelectFirst||i.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(i){}this.deptList=e.data||[]},async getNodeUser({deptId:e,intersection:i,userIds:t,postIds:s,deptIds:n}){return await this.request.post("/auth/user/getTaskAuditor",{deptId:e,intersection:i,userIds:t,postIds:s,deptIds:n})},getUserDataByDeptId(){this.firstPerson.map(async(e,i)=>{const t=Ju(e);let s;try{s=await this.getNodeUser({deptId:this.businessDeptIdData,intersection:(t.intersection,0),userIds:t.userIds,postIds:t.postIds,deptIds:t.deptIds})}catch(n){}if(s.code==200){const n=this.firstPerson[i];n.userList=s.data,this.$set(this.firstPerson,i,n)}})},async handlefirstNode(e){e&&(this.handleTips("",!0,"loading"),await this.request.get("/bladex/blade-workflow/repository/getAllProcessNode",{params:{processDefId:e}}).then(async i=>{if(i.code===200){if(this.firstPerson=i.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;i.data.map(t=>{{let s={taskDefId:t.id,postIds:[]};t.routeTxt.postList.map(n=>{s.postIds.push(n.postId)}),this.request.post("/auth/user/getTaskAuditor",{deptId:this.businessDeptIdData,taskPostIds:[s]}).then(n=>{let r=[],a=[],o=!1;n.data.map(p=>{p.posts.map(h=>{a.push(...h.users),h.users.length==1?r.push(...h.users):o=!0})}),r.length>t.loopCardinality&&t.loopCardinality>0&&(o=!0),o&&(r=[]);let l=[];n.data[0].posts.map(p=>{l.push({...p,projectPost:!this.businessDeptIdData,id:p.users.map(h=>h.id),subjectId:p.subjectId})}),a.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.getAfferentParticipantNodeList()}else this.firstPerson=[],this.getAfferentParticipantNodeList()}).catch(i=>{this.firstPerson=[],this.getAfferentParticipantNodeList()}))},async handleChange(e,i){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,i)},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(i=>{if(i.humanPerformerName==="\u56FA\u5B9A\u89D2\u8272/\u5C97\u4F4D"){let t={taskDefId:i.id,postIds:[]};i.routeTxt.postList.map(s=>{t.postIds.push(s.postId)}),this.request.post("/auth/user/getTaskAuditor",{deptId:this.businessDeptIdData,taskPostIds:[t]}).then(s=>{let n=[],r=[],a=!1;s.data.map(l=>{l.posts.map(p=>{r.push(...p.users),p.users.length==1?n.push(...p.users):a=!0})}),n.length>i.loopCardinality&&i.loopCardinality>0&&(a=!0),a&&(n=[]);let o=[];s.data[0].posts.map(l=>{o.push({...l,projectPost:!(this.param.taskNode&&this.param.taskNode[0].vars&&this.param.taskNode[0].vars._businessDeptId),id:l.users.map(p=>p.id),subjectId:l.subjectId})}),r.length==0&&this.$set(i,"noPersonnel",!0),n.length>0&&(this.personObjId=i.id,this.humanPerformerName=i.humanPerformerName,this.$set(i,"noPersonnel",!0),this.handleCallback(n)),i.positionArray=o})}}),this.personList=e.data.filter(i=>!this.firstPerson.some(t=>t.id==i.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])})},handleOpenFixedPerson(e){this.currentClickItem=e,this.personObjId=e.id,this.showFixedPerson=!0,this.fixedPersonList=e.userList||[]},updateFixedPersonVisible(e){this.showFixedPerson=e},updateFixedSelect(e){},handleSumbitFixedPerson(e){this.$set(this.fixedSelect,this.personObjId,e),this.$set(this.multiNodeParticipant,this.personObjId,[]),this.$set(this.partNode,this.personObjId,[]),e.map((i,t)=>{this.multiNodeParticipant[this.personObjId].push(i.userId),this.partNode[this.personObjId].push(i.realName)}),this.showFixedPerson=!1},handleClickFixedPerson(e){this.$set(this.multiNodeParticipant,this.personObjId,[]),this.$set(this.partNode,this.personObjId,[]),e.map((i,t)=>{this.multiNodeParticipant[this.personObjId].push(i.userId),this.partNode[this.personObjId].push(i.realName)}),this.showFixedPerson=!1},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==-1?0:1,checkedArray:[]},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)})):this.entity.checkedArray=[];else if(e.humanPerformerName==="\u56FA\u5B9A\u90E8\u95E8"){let i,t=[];e.routeTxt.departmentIds&&e.routeTxt.departmentIds.length>1?(e.routeTxt.departmentIds.forEach((s,n)=>{t.push(s.rangeId)}),this.entity={source:"1",type:this.isCheckType||"0",orgType:this.isOrgType||"0",request:this.request,codeType:this.isCodeType||[3],deptCodeArray:t,multiple:e.loopCardinality==-1,maxMultiple:e.loopCardinality==-1?0:1}):e.routeTxt.departmentIds&&e.routeTxt.departmentIds.length==1&&(e.routeTxt.departmentIds.forEach((s,n)=>{i=s.rangeId}),this.entity={source:"1",type:this.isCheckType||"0",orgType:this.isOrgType||"0",request:this.request,codeType:this.isCodeType||[3],deptCode:i,multiple:e.loopCardinality==-1,maxMultiple:e.loopCardinality==-1?0:1}),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:i})):this.entity.checkedArray=[]}else if(e.humanPerformerName==="\u56FA\u5B9A\u5355\u4F4D"){let i;e.routeTxt.companyIds.map((t,s)=>{i=t.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==-1?0:1,subjectName:i},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=[]}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==-1?0:1,positionArray:e.positionArray},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=[]):(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==-1?0:1,checkedArray:[]},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)})):this.entity.checkedArray=[])},handleCallback(e){this.personListCopy[this.personObjId]=e,this.entity.checkedArray=e.map(i=>({id:i.id,subjectId:i.subjectId,type:i.type,deptId:this.handleLastStr(i.ancestors,i.subjectId),subjectName:this.humanPerformerName==="\u56FA\u5B9A\u5355\u4F4D"?i.ancestorNames.slice(0,i.ancestorNames.indexOf("/")):""})),this.$set(this.multiNodeParticipant,this.personObjId,[]),this.$set(this.partNode,this.personObjId,[]),e.map((i,t)=>{this.multiNodeParticipant[this.personObjId].push(i.id),this.partNode[this.personObjId].push(i.name)}),this.visiblePerson=!1},handleCancel(){},handleLastStr(e,i){if(!!e)return e.split(",")[e.split(",").length-1]!==i?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:{processBusinessKey:this.id||this.extraParams.businessKey,showType:"all",subjectId:this.businessSubjectId,deptId:this.businessDeptIdData,businessType:this.businessType,name:this.extraParams.name,title:this.title||this.extraParams.title,applyUserId:this.extraParams.applyUserId}};if(!this.checkedItem.id){this.$refs.topTips.handleClose(),this.btnLoading=!1;return}this.request.post("/bladex/blade-workflow/pis/createAndStart",e).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):i.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(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):(this.handleTips(t.msg,!0,"error"),this.btnLoading=!1)}).catch(t=>{this.handleTips(t.msg,!0,"error"),this.btnLoading=!1}):(this.handleTips(i.msg,!0,"error"),this.btnLoading=!1)}).catch(i=>{this.handleTips(i.msg,!0,"error"),this.btnLoading=!1})}},handleTips(e,i,t){this.textTips=e,this.statusTips=i,this.typeTips=t,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(i=>{i.code==200?(i.data&&i.data.processBudgetModelList&&i.data.processBudgetModelList.length?this.flowForecastProcessInstId=i.data.processBudgetModelList[0].processInstId:(i.data.processBudgetModelList=[],this.flowForecastProcessInstId=""),this.flowForecastData=i.data,this.flowForecastVisible=!0):this.handleTips(i.msg,!0,"error")}).catch(i=>{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:[]})}}};var C0=function(){var e=this,i=e.$createElement,t=e._self._c||i;return t("div",{staticClass:"sumbmitPopup-index-sumbit"},[t("div",{staticClass:"top-popup"}),t("TopPopup",{ref:"TopPopup",attrs:{visible:e.show,titleText:"\u9001\u5BA1",isIndex:99,className:"sumbmitPopup-index",comfigText:"\u9001\u5BA1",comfig:e.handleSumbit},on:{"update:visible":function(s){return e.show=s,e.$emit("update:visible",s)}}},[t("TopDownSelect",{ref:"TopDownSelect",attrs:{isSlots:"",option:e.option,defaultValue:e.selectDefaultValue,disibled:!1},on:{change:e.handleChange},scopedSlots:e._u([{key:"header",fn:function(s){return[t("div",{staticClass:"sumbmitPopup-select"},[t("div",{staticClass:"sumbmitPopup-select-checked",on:{click:e.handleSelect}},[t("div",{staticClass:"sumbmitPopup-select-checked-title"},[e._v("\u5F53\u524D\u6D41\u7A0B")]),t("div",{staticClass:"sumbmitPopup-select-checked-node",class:""},[e._v(" "+e._s(s.data.name?s.data.name:s.data.placeholder)+" ")])]),e.businessDeptIdData?e._e():t("div",{staticClass:"sumbmitPopup-select-checked",on:{click:e.handleDeptSelect}},[t("div",{staticClass:"sumbmitPopup-select-checked-title"},[e._v("\u9009\u62E9\u90E8\u95E8")]),t("div",{staticClass:"sumbmitPopup-select-checked-node",class:""},[e._v(" "+e._s(e.selectDeptData.label?e.selectDeptData.label:"\u8BF7\u9009\u62E9")+" ")])]),t("div",{staticClass:"sumbmitPopup-select-viewTrack",staticStyle:{display:"flex"}},[e.checkedItem.id?t("div",{staticClass:"viewTrack",on:{click:e.handleFlowSelect}},[t("img",{attrs:{src:e.ProcessImg}}),e._v(" \u67E5\u770B\u6D41\u7A0B\u56FE ")]):e._e(),e.checkedItem.id&&e.showFlowForecast?t("div",{staticClass:"viewTrack",on:{click:e.viewFlowForecast}},[e._v(" \u6D41\u7A0B\u9884\u6D4B ")]):e._e()])])]}}])}),e.showFirstPerson&&e.firstPerson&&e.firstPerson.length?t("div",{staticClass:"person-views"},[t("div",{staticClass:"person-views-title"},[e._v("\u4E0B\u4E00\u6B65\u5904\u7406\u8282\u70B9")]),e._l(e.firstPerson,function(s,n){var r;return t("div",{key:n,staticClass:"views-items"},[t("div",{staticClass:"views-items-label"},[t("div",{staticClass:"views-items-name"},[t("div",{staticClass:"views-items-name-left"},[e._v(" "+e._s(s.name)+" "),n==0?t("span",{staticClass:"views-items-name--re"},[e._v("*")]):e._e()])]),t("div",{staticClass:"views-items-set"},[e.partNode[s.id]&&e.partNode[s.id].length?t("div",[e._l(e.partNode[s.id],function(a,o){return t("span",{key:o},[e._v(" "+e._s(o>=3?"":o==0?a:`,${a}`)+" ")])}),e.partNode[s.id].length>3?t("span",[e._v("...\u7B49"+e._s(e.partNode[s.id].length)+"\u4EBA")]):e._e()],2):s.routeTxt&&s.routeTxt.userNames?t("div",[e._v(" "+e._s(s.routeTxt.userNames)+" ")]):e._e(),s.humanPerformerName=="\u56FA\u5B9A\u8D26\u6237"||s.humanPerformerName=="\u4E0E\u6D41\u7A0B\u7533\u8BF7\u4EBA\u76F8\u5173"||((r=e.partNode[s.id])===null||r===void 0?void 0:r.length)>0&&s.noPersonnel?t("div"):s.humanPerformerName=="\u56FA\u5B9A\u8D26\u6237"||s.humanPerformerName=="\u4E0E\u6D41\u7A0B\u7533\u8BF7\u4EBA\u76F8\u5173"||s.noPersonnel?t("div",[e._v(" \u6CA1\u6709\u53EF\u9009\u4EBA\u5458\uFF0C\u8BF7\u68C0\u67E5\u914D\u7F6E ")]):s.userList&&s.userList.length>0?t("div",{staticClass:"views-items-set-btn",on:{click:function(a){return e.handleOpenFixedPerson(s)}}},[e._v(" \u9009\u62E9 ")]):t("div",{staticClass:"views-items-set-btn",on:{click:function(a){return e.handleOpenPerson(s)}}},[e._v(" \u8BBE\u7F6E ")])])]),s.routeTxt&&s.routeTxt.length>0?t("div",{staticClass:"views-items-includes"},[t("div",{staticClass:"views-items-name2"},[e._v(" "+e._s("\u6240\u5C5E\u8303\u56F4")+" ")]),t("div",{staticClass:"views-items-and2"},e._l(s.routeTxt,function(a,o){return t("div",{key:a.type},[a.ids&&a.ids.length>0?t("div",[t("div",{staticClass:"include"},[t("b",{staticClass:"include include-type",class:["include-"+a.type]},[e._v(e._s(a.type=="user"?"\u7528\u6237":a.type=="dept"?"\u90E8\u95E8":"\u5C97\u4F4D"))]),t("span",{staticClass:"include include-name"},[e._v(e._s(a.name))])]),o!==s.routeTxt.length-1?t("div",{staticClass:"include include-assign",class:["include-assign-"+(a.assigneeRetain?"true":"false")]},[e._v(e._s(s.assigneeRetain=="true"?"\u4E14\u540C\u65F6\u6EE1\u8DB3":"\u6216\u8005\u6EE1\u8DB3"))]):e._e()]):e._e()])}),0)]):e._e()])})],2):e._e(),e.personList&&e.personList.length?t("div",{staticClass:"person-views"},[t("div",{staticClass:"person-views-title"},[e._v("\u5176\u4ED6\u5904\u7406\u8282\u70B9")]),e._l(e.personList,function(s,n){return t("div",{staticClass:"views-items"},[t("div",{staticClass:"views-items-name"},[e._v(" "+e._s(s.name)+" ")]),t("div",{staticClass:"views-items-set"},[s.noPersonnel?e._e():t("div",{staticClass:"views-items-set-btn",on:{click:function(r){return e.handleOpenPerson(s)}}},[e._v(" \u8BBE\u7F6E ")]),e.partNode[s.id]&&e.partNode[s.id].length?t("div",[e._l(e.partNode[s.id],function(r,a){return t("span",[e._v(" "+e._s(a>=3?"":a==0?r:`,${r}`)+" ")])}),e.partNode[s.id].length>3?t("span",[e._v("...\u7B49"+e._s(e.partNode[s.id].length)+"\u4EBA")]):e._e()],2):s.noPersonnel?t("div",[e._v("\u6CA1\u6709\u53EF\u9009\u4EBA\u5458\uFF0C\u8BF7\u68C0\u67E5\u914D\u7F6E")]):t("div")])])})],2):e._e(),!e.firstPerson&&!e.firstPerson.length&&!e.personList&&!e.personList.length?t("div",{staticClass:"person-views-white"},[e._v(" \u65E0\u9700\u8BBE\u7F6E ")]):e._e()],1),t("TopPopup",{ref:"TopPopup",attrs:{visible:e.visiblePerson,titleText:"\u9009\u4EBA",isDrawer:!0,isIndex:199},on:{"update:visible":function(s){return e.visiblePerson=s}}},[t("div",{staticStyle:{height:"100%"}},[e.visiblePerson?t("departPerson",e._b({attrs:{isTitle:!1,visible:e.visiblePerson,checkedArray:e.checkedArray},on:{"update:visible":function(s){e.visiblePerson=s},callback:e.handleCallback,cancel:e.handleCancel}},"departPerson",e.entity,!1)):e._e()],1)]),t("TopPopup",{ref:"TopPopupDept",attrs:{visible:e.showDept,titleText:"\u9009\u62E9\u90E8\u95E8",isIndex:99,className:"sumbmitPopup-index",comfigText:"\u786E\u5B9A",comfig:e.handleSumbitDept},on:{"update:visible":function(s){return e.showDept=s}}},[t("div",{staticClass:"tree"},e._l([].concat(e.deptList),function(s){return t("div",{key:s.id,staticClass:"node"},[t("div",{staticClass:"node-p",on:{click:function(n){return e.handleClickDept(s)}}},[e._v(e._s(s.label))]),s.children?t("div",{staticClass:"children"},e._l(s.children,function(n){return t("div",{key:n.id,staticClass:"node-s",on:{click:function(r){return e.handleClickDept(n)}}},[e._v(" "+e._s(n.label)+" ")])}),0):e._e()])}),0)]),t("SelectFixedPerson",{attrs:{visible:e.showFixedPerson,list:e.fixedPersonList,multiple:e.currentClickItem.loopCardinality==-1,select:e.fixedSelect[e.personObjId]||[]},on:{updateList:e.handleClickFixedPerson,updateVisible:e.updateFixedPersonVisible,updateSelect:e.updateFixedSelect,confirm:e.handleSumbitFixedPerson}}),t("TopPopup",{ref:"TopPopupFlow",staticClass:"top-pop-flow",attrs:{visible:e.showFlow,titleText:"\u67E5\u770B\u6D41\u7A0B\u56FE",isIndex:99,className:"sumbmitPopup-index",comfigText:"\u5173\u95ED",comfig:e.handleSumbitFlow},on:{"update:visible":function(s){return e.showFlow=s}}},[e.showFlow&&e.processXml?t("BpmnLook",{ref:"PreviewRef",attrs:{diagram:e.processXml,approvalData:e.approvalData}}):e._e()],1),t("PreviewImage",{attrs:{images:e.trackUrl,visible:e.taskurlshow,indexd:0,isOne:!0,isStyle:e.isStyle},on:{"update:visible":function(s){return e.taskurlshow=s}}}),t("TopTips",{ref:"topTips",attrs:{text:e.textTips,statusTips:e.statusTips,type:e.typeTips}}),t("TopPopup",{ref:"TopPopupFF",attrs:{visible:e.flowForecastVisible,titleText:"\u6D41\u7A0B\u9884\u6D4B",isIndex:129,cancel:e.flowForecastClose,comfig:e.flowForecastClose},on:{"update:visible":function(s){return e.flowForecastVisible=s}}},[t("div",{staticStyle:{margin:"20px"}},[t("div",{staticStyle:{"margin-left":"10px","margin-bottom":"10px"},domProps:{innerHTML:e._s(e.flowForecastData.completeTime)}}),t("div",{staticClass:"timeline"},e._l(e.flowForecastData.processBudgetModelList,function(s,n){return t("div",{key:n,staticClass:"timeline-item"},[t("div",{staticClass:"item-top"},[t("div",{staticClass:"top-spot"},[t("div",{staticClass:"spot",class:{active:n==0}})]),t("div",{staticClass:"top-title"},[e._v(e._s(s.title))])]),t("div",{staticClass:"item-bottom",class:{last:n==e.flowForecastData.processBudgetModelList.length-1}},[t("span",{staticStyle:{color:"#009800"}},[e._v(" \u6267\u884C\u4EBA\uFF1A"+e._s(s.excutor)+" ")])])])}),0)])])],1)},w0=[];const cw="",ip={};var x0=ye(b0,C0,w0,!1,E0,"a0f579ac",null,null);function E0(e){for(let i in ip)this[i]=ip[i]}const sp=function(){return x0.exports}(),T0="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAMgAAADICAYAAACtWK6eAAAAAXNSR0IArs4c6QAADG5JREFUeF7tnVFaGzcXhjUD16WsoLC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staticClass:"top-msg"},e._l(e.listData,function(s){return t("div",{staticClass:"top-msg-items",on:{click:function(n){return e.handleMsg(s)}}},[t("div",{staticClass:"top-msg-items-text"},[e._v(e._s(s.opinionName))]),t("div",{staticClass:"top-msg-items-del",on:{click:function(n){return n.stopPropagation(),e.handleOpenMsg(s)}}},[t("img",{attrs:{src:e.Del}})])])}),0):e._e(),t("TopPopup",{attrs:{isIndex:2299,titleText:"\u64CD\u4F5C\u6D88\u606F\u63D0\u793A",isTips:!0,context:`\u5C06\u5E38\u7528\u610F\u89C1'${e.opinion.opinionName}'\u5220\u9664`,cancel:e.handleTipsCancel,comfig:e.handleDel,visible:e.visibleListMsg},on:{"update:visible":function(s){return e.visibleListMsg=s}}})],1)},k0=[];const uw="",N0={name:"msgList",components:{TopPopup:ze},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 T0}},watch:{visible:{handler(e,i){e&&this.request.get("/auth/user/opinion/my").then(t=>{t.code===200&&(this.listData=t.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(i=>{i.code===200&&(this.listData=i.data)})):this.$emit("handleTips",e.msg,!0,"error")}).catch(e=>{this.$emit("handleTips",e.msg,!0,"error")}))}}},np={};var _0=ye(N0,I0,k0,!1,S0,"66478dbb",null,null);function S0(e){for(let i in np)this[i]=np[i]}const Is=function(){return _0.exports}();var P0=function(){var e=this,i=e.$createElement,t=e._self._c||i;return t("div",{staticClass:"process-popup-content"},[t("div",{staticClass:"process-popup-content-msg"},[e.param.isMsg?t("div",[t("div",{staticClass:"process-radio-item",staticStyle:{color:"#1389ff","font-size":"14px"},on:{click:function(s){return e.handleOpenMsg()}}},[e._v(" \u5E38\u7528\u610F\u89C1 ")])]):e._e(),e._m(0),t("div",{staticClass:"process-pc-value"},[t("div",{staticClass:"process-popup-textarea"},[t("textarea",{directives:[{name:"model",rawName:"v-model",value:e.commentMsg,expression:"commentMsg"}],staticClass:"textarea-item",attrs:{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,'')"},domProps:{value:e.commentMsg},on:{input:function(s){s.target.composing||(e.commentMsg=s.target.value)}}}),t("div",{staticClass:"process-popup-textarea-num"},[e._v(" "+e._s(e.commentMsg.length)+"/200 ")])]),e.param.isMsg?t("div",{staticClass:"msg-btn"},[t("span",{staticClass:"msg-btn-click",on:{click:function(s){return e.handleMakeMsg()}}},[e._v("\u8BBE\u7F6E\u4E3A\u5E38\u7528\u610F\u89C1")])]):e._e()])]),t("div",{staticClass:"process-popup-content-person"},[e.nextNodeData.length?[e._l(e.nextNodeData,function(s){return[t("div",[t("br"),e._v(" \u5BA1\u6279\u4EBA "),t("span",{staticClass:"process-pc-label--re"},[e._v("*")])]),t("div",{staticClass:"process-pc-value",on:{click:function(n){return e.handleOpenPopup(s.id)}}},[t("div",{staticClass:"process-pc-value--people"},[e.partNode[s.id]&&e.partNode[s.id].length?t("div",{staticClass:"process-pc-value--data"},e._l(e.partNode[s.id],function(n,r){return t("span",[e._v(" "+e._s(r==0?n:`,${n}`)+" ")])}),0):t("div",{staticClass:"process-pc-value--data",staticStyle:{color:"#888"}},[t("span",[e._v(" \u8BF7\u9009\u62E9\u5BA1\u6279\u4EBA ")])])])])]})]:e.outGatewayUserTaskModel.length?[e._l(e.outGatewayUserTaskModel,function(s){return[t("div",{staticClass:"process-pc-label"},[t("br"),e._v(" \u5BA1\u6279\u4EBA "),t("span",{staticClass:"process-pc-label--re"},[e._v("*")])]),t("div",{staticClass:"process-pc-value",on:{click:function(n){return e.handleOpenPopup(s.id)}}},[t("div",{staticClass:"process-pc-value--people"},[e.partNode[s.id]&&e.partNode[s.id].length?t("div",{staticClass:"process-pc-value--data"},e._l(e.partNode[s.id],function(n,r){return t("span",[e._v(" "+e._s(r==0?n:`,${n}`)+" ")])}),0):t("div",{staticClass:"process-pc-value--data",staticStyle:{color:"#888"}},[t("span",[e._v(" \u8BF7\u9009\u62E9\u5BA1\u6279\u4EBA ")])])])])]})]:e._e()],2),t("TopTips",{ref:"topTips",attrs:{text:e.textTips,statusTips:e.statusTips,type:e.typeTips}}),t("TopPopup",{ref:"TopPopup",attrs:{visible:e.visible,titleText:"\u9009\u4EBA",isDrawer:!0},on:{"update:visible":function(s){return e.visible=s}}},[t("div",{staticStyle:{height:"100%"}},[e.visible?t("departPerson",e._b({attrs:{isTitle:!1,visible:e.visible,request:e.param.request},on:{"update:visible":function(s){e.visible=s},callback:e.handleCallback,cancel:e.handleCancel}},"departPerson",e.entity,!1)):e._e()],1)]),e.labels=="5"?t("attchViews",{attrs:{limit:e.limit?e.limit:-1,requires:e.requires,request:e.param.request,linkUrl:e.param.linkUrl},on:{getValue:e.getValues}}):e._e(),t("TopPopup",{ref:"TopPopup",attrs:{visible:e.visibleListMsg,titleText:"\u5E38\u7528\u610F\u89C1",isDrawer:!0},on:{"update:visible":function(s){return e.visibleListMsg=s}}},[t("MsgList",{attrs:{visible:e.visibleListMsg,request:e.param.request,useInfo:e.param.userInfo},on:{handleTips:e.handleTips,handleMsg:e.handleMsg}})],1),t("TopPopup",{attrs:{titleText:"\u64CD\u4F5C\u6D88\u606F\u63D0\u793A",isTips:!0,context:`\u5C06${e.commentMsg}\u8BBE\u7F6E\u4E3A\u5E38\u7528\u610F\u89C1`,cancel:e.handleTipsCancel,comfig:e.handleTipsComfig,visible:e.visibleMsgComfig},on:{"update:visible":function(s){return e.visibleMsgComfig=s}}})],1)},D0=[function(){var e=this,i=e.$createElement,t=e._self._c||i;return t("div",{staticClass:"process-pc-label"},[e._v(" \u52A0\u7B7E\u7406\u7531\uFF1A"),t("span",{staticClass:"process-pc-label--re"},[e._v("*")])])}];const pw="",O0={name:"counterSign",props:{param:{type:Object,defalut:()=>{}}},components:{TopTips:mt,attchViews:xi,TopPopup:ze,departPerson:Pt.departPerson,MsgList:Is},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,i){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((i,t)=>{e.push(i)}),this.handleTips("",!0,"loading"),this.param.request.post("/bladex/blade-workflow/tis/addSignTask",{signPersoneds:e,taskId:this.param.taskInstId,comment:this.commentMsg}).then(i=>{i.code==200?(this.$emit("handleClosePopup1"),this.handleTips("\u63D0\u4EA4\u6210\u529F!",!1,"success"),window.top.postMessage("success","*"),this.handleFinal(),this.commentMsg=""):this.handleTips(i.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((i,t)=>{this.multiNodeParticipant[this.partObjId].push(i.id),this.partNode[this.partObjId].push(i.name),this.entity.checkedArray.push({type:3,id:i.id,subjectId:i.subjectId})})},handleCancel(){},getValues(e){this.attchLists=e},async uploadAttch(){if(this.attchLists.length>0){this.attchLists.map((t,s)=>{t.size=t.fileSize,t.format=t.originFileName.substring(t.originFileName.lastIndexOf(".")+1),t.uploadTime=t.createTime,t.processInstId=this.param.processInstId,t.taskInstId=this.param.taskInstId,t.name=t.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,i,t){this.textTips=e,this.statusTips=i,this.typeTips=t,this.$refs.topTips.handleOpen()},handleFinal(){this.param.endFunction&&this.param.endFunction("counterSign")}}},rp={};var M0=ye(O0,P0,D0,!1,B0,"b5145b72",null,null);function B0(e){for(let i in rp)this[i]=rp[i]}const R0=function(){return M0.exports}();var L0=function(){var e=this,i=e.$createElement,t=e._self._c||i;return t("div",{staticClass:"process-popup-content"},[t("div",{staticClass:"process-popup-content-msg"},[e.param.isMsg?t("div",[t("div",{staticClass:"process-radio-item",staticStyle:{color:"#1389ff","font-size":"14px"},on:{click:function(s){return e.handleOpenMsg()}}},[e._v(" \u5E38\u7528\u610F\u89C1 ")])]):e._e(),e._m(0),t("div",{staticClass:"process-pc-value"},[t("div",{staticClass:"process-popup-textarea"},[t("textarea",{directives:[{name:"model",rawName:"v-model",value:e.commentMsg,expression:"commentMsg"}],staticClass:"textarea-item",attrs:{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,'')"},domProps:{value:e.commentMsg},on:{input:function(s){s.target.composing||(e.commentMsg=s.target.value)}}}),t("div",{staticClass:"process-popup-textarea-num"},[e._v(" "+e._s(e.commentMsg.length)+"/200 ")])]),e.param.isMsg?t("div",{staticClass:"msg-btn"},[t("span",{staticClass:"msg-btn-click",on:{click:function(s){return e.handleMakeMsg()}}},[e._v("\u8BBE\u7F6E\u4E3A\u5E38\u7528\u610F\u89C1")])]):e._e()])]),t("div",{staticClass:"process-popup-content-person"},[e.nextNodeData.length?[e._l(e.nextNodeData,function(s){return[t("div",[e._v(" \u5BA1\u6279\u4EBA "),t("span",{staticClass:"process-pc-label--re"},[e._v("*")])]),t("div",{staticClass:"process-pc-value",on:{click:function(n){return e.handleOpenPopup(s.id)}}},[t("div",{staticClass:"process-pc-value--people"},[e.partNode[s.id]&&e.partNode[s.id].length?t("div",{staticClass:"process-pc-value--data"},e._l(e.partNode[s.id],function(n,r){return t("span",[e._v(" "+e._s(r==0?n:`,${n}`)+" ")])}),0):t("div",{staticClass:"process-pc-value--data",staticStyle:{color:"#888"}},[t("span",[e._v(" \u8BF7\u9009\u62E9\u5BA1\u6279\u4EBA ")])])])])]})]:e.outGatewayUserTaskModel.length?[e._l(e.outGatewayUserTaskModel,function(s){return[t("div",{staticClass:"process-pc-label"},[e._v(" \u5BA1\u6279\u4EBA "),t("span",{staticClass:"process-pc-label--re"},[e._v("*")])]),t("div",{staticClass:"process-pc-value",on:{click:function(n){return e.handleOpenPopup(s.id)}}},[t("div",{staticClass:"process-pc-value--people"},[e.partNode[s.id]&&e.partNode[s.id].length?t("div",{staticClass:"process-pc-value--data"},e._l(e.partNode[s.id],function(n,r){return t("span",[e._v(" "+e._s(r==0?n:`,${n}`)+" ")])}),0):t("div",{staticClass:"process-pc-value--data",staticStyle:{color:"#888"}},[t("span",[e._v(" \u8BF7\u9009\u62E9\u5BA1\u6279\u4EBA ")])])])])]})]:e._e()],2),t("TopTips",{ref:"topTips",attrs:{text:e.textTips,statusTips:e.statusTips,type:e.typeTips}}),t("TopPopup",{ref:"TopPopup",attrs:{visible:e.visible,titleText:"\u9009\u4EBA",isDrawer:!0},on:{"update:visible":function(s){return e.visible=s}}},[t("div",{staticStyle:{height:"100%"}},[e.visible?t("departPerson",e._b({attrs:{isTitle:!1,visible:e.visible,request:e.param.request},on:{"update:visible":function(s){e.visible=s},callback:e.handleCallback,cancel:e.handleCancel}},"departPerson",e.entity,!1)):e._e()],1)]),e.labels=="1"?t("attchViews",{attrs:{limit:e.limit?e.limit:-1,requires:e.requires,request:e.param.request,linkUrl:e.param.linkUrl},on:{getValue:e.getValues}}):e._e(),t("TopPopup",{ref:"TopPopup",attrs:{visible:e.visibleListMsg,titleText:"\u5E38\u7528\u610F\u89C1",isDrawer:!0},on:{"update:visible":function(s){return e.visibleListMsg=s}}},[t("MsgList",{attrs:{visible:e.visibleListMsg,request:e.param.request,useInfo:e.param.userInfo},on:{handleTips:e.handleTips,handleMsg:e.handleMsg}})],1),t("TopPopup",{attrs:{titleText:"\u64CD\u4F5C\u6D88\u606F\u63D0\u793A",isTips:!0,context:`\u5C06${e.commentMsg}\u8BBE\u7F6E\u4E3A\u5E38\u7528\u610F\u89C1`,cancel:e.handleTipsCancel,comfig:e.handleTipsComfig,visible:e.visibleMsgComfig},on:{"update:visible":function(s){return e.visibleMsgComfig=s}}})],1)},F0=[function(){var e=this,i=e.$createElement,t=e._self._c||i;return t("div",{staticClass:"process-pc-label"},[e._v(" \u8F6C\u5BA1\u7406\u7531\uFF1A"),t("span",{staticClass:"process-pc-label--re"},[e._v("*")])])}];const dw="",V0={name:"delegateTask",props:{param:{type:Object,defalut:()=>{}}},components:{TopTips:mt,attchViews:xi,TopPopup:ze,departPerson:Pt.departPerson,MsgList:Is},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,i){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(i=>i.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(i=>{i.code==200?(this.$emit("handleClosePopup1"),this.handleTips("\u63D0\u4EA4\u6210\u529F!",!1,"success"),window.top.postMessage("success","*"),this.handleFinal(),this.commentMsg=""):this.handleTips(i.msg,!0,"error")})},attachShow(e="\u529E\u7406"){const i=(this.param||{}).extendedProperties||[];let t=!1,s,n="";s=i.find(a=>a.name=="delegateTaskButtonAnnex"),n=s?s.value:"",n&&(t=!0);let r="";if(typeof n!="string"&&n!=null&&n.map(a=>{a.indexOf(this.operationLabel)!=-1&&(t=!0,r=a)}),r&&(n=r),t){const a=n.split(":");this.attachRule.required=a[1]=="true",this.attachRule.limit=a[2]==-1?999:a[2],this.otherList=n;let o=this.otherList.split(":");this.limit=o[2],this.requires=JSON.parse(o[1]),this.labels=o[0]}return this.labels,this.limit,t},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((i,t)=>{this.multiNodeParticipant[this.partObjId].push(i.id),this.partNodeArr[this.partObjId].push(i),this.partNode[this.partObjId].push(i.name),this.entity.checkedArray.push({type:3,id:i.id,subjectId:i.subjectId})})},handleCancel(){},getValues(e){this.attchLists=e},async uploadAttch(){if(this.attchLists.length>0){this.attchLists.map((t,s)=>{t.size=t.fileSize,t.format=t.originFileName.substring(t.originFileName.lastIndexOf(".")+1),t.uploadTime=t.createTime,t.processInstId=this.param.processInstId,t.taskInstId=this.param.taskInstId,t.name=t.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,i,t){this.textTips=e,this.statusTips=i,this.typeTips=t,this.$refs.topTips.handleOpen()},handleFinal(){this.param.endFunction&&this.param.endFunction("delegateTask")}}},ap={};var j0=ye(V0,L0,F0,!1,Q0,"3e18ae74",null,null);function Q0(e){for(let i in ap)this[i]=ap[i]}const U0=function(){return j0.exports}(),G0="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAMgAAADICAYAAACtWK6eAAAAAXNSR0IArs4c6QAACZ5JREFU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eduEnFsAAAAAElFTkSuQmCC",hw="";var q0=function(){var e=this,i=e.$createElement,t=e._self._c||i;return e.nodeItems&&e.nodeItems.length?t("div",{staticClass:"treenode"},[e.endNode?e._e():t("div",{staticClass:"treenode-multi"},[t("div",{staticClass:"treenode-node",staticStyle:{"margin-top":"0"}},[e._l(e.nodeItems,function(s){return[e.checkType=="InclusiveGatewayModel"&&e.nodeItems.length>1?t("div",{staticClass:"treenode-checkbox",class:e.checkBoxArr.includes(s.id)?"treenode-checkbox-active":"",on:{click:function(n){return e.handleCheckBoxClick(s)}}},[t("span",[e.checkBoxArr.includes(s.id)?t("img",{staticClass:"treenode-checkbox-active-img",attrs:{src:e.check}}):e._e()]),e._v(" "+e._s(s.nodeName||s.name)+" ")]):e.checkType=="ExclusiveGatewayModel"&&e.nodeItems.length>1?t("div",{staticClass:"treenode-radio",class:e.radioArr==s.id?"treenode-radio-active":"",on:{click:function(n){return e.handleRadioClick(s)}}},[t("span"),e._v(" "+e._s(s.nodeName||s.name)+" ")]):e._e()]})],2),e.checkType=="InclusiveGatewayModel"&&e.checkBoxItem&&e.checkBoxItem.length?e._l(e.checkBoxItem,function(s){return t("div",{staticClass:"treenode-node"},[s.childNode&&s.childNode.length?t("div",[t("TreeNode",{attrs:{items:s.childNode,endNode:s.childNode.length==1,nodeType:e.nodeType,param:e.param,checkType:s.type},on:{onMultiNode:e.onMultiNode,onVars:e.onVars}})],1):t("div",{staticClass:"personselect"},[t("div",{staticClass:"personselect-name"},[e._v(" "+e._s(s.name||s.nodeName)+" ")]),t("div",{staticClass:"items-person"},[s.userList&&s.userList.length>0?t("div",{staticClass:"items-person-set",on:{click:function(n){return e.handleOpenFixedPerson(s)}}},[e._v(" \u9009\u62E9 ")]):s.humanPerformerName!=="\u56FA\u5B9A\u8D26\u6237"&&s.humanPerformerName!=="\u4E0E\u6D41\u7A0B\u7533\u8BF7\u4EBA\u76F8\u5173"?[t("div",{staticClass:"items-person-set",on:{click:function(n){return n.stopPropagation(),e.handleOpenPopup(s)}}},[e._v(" \u8BBE\u7F6E ")])]:e._e(),s.userList&&s.userList.length>0?t("div",{staticClass:"items-person-name"},[e._v(" "+e._s(e.partNode[s.id]?e.partNode[s.id].join(","):"")+" ")]):s.humanPerformerName!=="\u56FA\u5B9A\u8D26\u6237"&&s.humanPerformerName!=="\u4E0E\u6D41\u7A0B\u7533\u8BF7\u4EBA\u76F8\u5173"?t("div",{staticClass:"items-person-name"},[e._v(" "+e._s(e.partNode[s.id]?e.partNode[s.id].join(","):"")+" ")]):s.routeTxt&&s.routeTxt.userNames?t("div",{staticClass:"items-person-name"},[e._v(" "+e._s(s.routeTxt.userNames)+" ")]):e._e()],2),s.routeTxt&&s.routeTxt.length>0?t("div",{staticClass:"views-items-includes"},[t("div",{staticClass:"views-items-name2"},[e._v(" "+e._s("\u6240\u5C5E\u8303\u56F4")+" ")]),t("div",{staticClass:"views-items-and2"},e._l(s.routeTxt,function(n,r){return t("div",{key:n.type},[n.ids&&n.ids.length>0?t("div",[t("div",{staticClass:"include"},[t("b",{staticClass:"include include-type",class:["include-"+n.type]},[e._v(e._s(n.type=="user"?"\u7528\u6237":n.type=="dept"?"\u90E8\u95E8":"\u5C97\u4F4D"))]),t("span",{staticClass:"include include-name"},[e._v(e._s(n.name))])]),r!==s.routeTxt.length-1?t("div",{staticClass:"include include-assign",class:["include-assign-"+(n.assigneeRetain?"true":"false")]},[e._v(e._s(s.assigneeRetain=="true"?"\u4E14\u540C\u65F6\u6EE1\u8DB3":"\u6216\u8005\u6EE1\u8DB3"))]):e._e()]):e._e()])}),0)]):e._e()])])}):e._e(),e.checkType=="ExclusiveGatewayModel"&&e.radioItem&&e.radioItem.length?e._l(e.radioItem,function(s){return t("div",{staticClass:"treenode-node"},[s.childNode&&s.childNode.length?t("div",[t("TreeNode",{attrs:{items:s.childNode,endNode:s.childNode.length==1,nodeType:e.nodeType,param:e.param,checkType:s.type},on:{onMultiNode:e.onMultiNode,onVars:e.onVars}})],1):t("div",{staticClass:"personselect"},[t("div",{staticClass:"personselect-name"},[e._v(" "+e._s(s.name||s.nodeName)+" ")]),t("div",{staticClass:"items-person"},[s.userList&&s.userList.length>0?t("div",{staticClass:"items-person-set",on:{click:function(n){return e.handleOpenFixedPerson(s)}}},[e._v(" \u9009\u62E9 ")]):s.humanPerformerName!=="\u56FA\u5B9A\u8D26\u6237"&&s.humanPerformerName!=="\u4E0E\u6D41\u7A0B\u7533\u8BF7\u4EBA\u76F8\u5173"?[t("div",{staticClass:"items-person-set",on:{click:function(n){return n.stopPropagation(),e.handleOpenPopup(s)}}},[e._v(" \u8BBE\u7F6E ")])]:e._e(),s.userList&&s.userList.length>0?t("div",{staticClass:"items-person-name"},[e._v(" "+e._s(e.partNode[s.id]?e.partNode[s.id].join(","):"")+" ")]):s.humanPerformerName!=="\u56FA\u5B9A\u8D26\u6237"&&s.humanPerformerName!=="\u4E0E\u6D41\u7A0B\u7533\u8BF7\u4EBA\u76F8\u5173"?t("div",{staticClass:"items-person-name"},[e._v(" "+e._s(e.partNode[s.id]?e.partNode[s.id].join(","):"")+" ")]):s.routeTxt&&s.routeTxt.userNames?t("div",{staticClass:"items-person-name"},[e._v(" "+e._s(s.routeTxt.userNames)+" ")]):e._e()],2),s.routeTxt&&s.routeTxt.length>0?t("div",{staticClass:"views-items-includes"},[t("div",{staticClass:"views-items-name2"},[e._v(" "+e._s("\u6240\u5C5E\u8303\u56F4")+" ")]),t("div",{staticClass:"views-items-and2"},e._l(s.routeTxt,function(n,r){return t("div",{key:n.type},[n.ids&&n.ids.length>0?t("div",[t("div",{staticClass:"include"},[t("b",{staticClass:"include include-type",class:["include-"+n.type]},[e._v(e._s(n.type=="user"?"\u7528\u6237":n.type=="dept"?"\u90E8\u95E8":"\u5C97\u4F4D"))]),t("span",{staticClass:"include include-name"},[e._v(e._s(n.name))])]),r!==s.routeTxt.length-1?t("div",{staticClass:"include include-assign",class:["include-assign-"+(n.assigneeRetain?"true":"false")]},[e._v(e._s(s.assigneeRetain=="true"?"\u4E14\u540C\u65F6\u6EE1\u8DB3":"\u6216\u8005\u6EE1\u8DB3"))]):e._e()]):e._e()])}),0)]):e._e()])])}):e._e()],2),e.endNode?t("div",{staticClass:"treenode-single"},e._l(e.nodeItems,function(s){return t("div",{staticClass:"treenode-single-items"},[t("div",{staticClass:"personselect"},[t("div",{staticClass:"personselect-name"},[e._v(" "+e._s(s.name||s.nodeName)+" ")]),s.nodeType!=="endEvent"?t("div",{staticClass:"items-person"},[s.userList&&s.userList.length>0?t("div",{staticClass:"items-person-set",on:{click:function(n){return e.handleOpenFixedPerson(s)}}},[e._v(" \u9009\u62E9 ")]):s.setPersonnel?t("div",{staticClass:"items-person-name"},[e._v(" "+e._s((s.assignees||[]).map(function(n){return n.name}).join(","))+" ")]):[t("div",{staticClass:"items-person-set",on:{click:function(n){return n.stopPropagation(),e.handleOpenPopup(s)}}},[e._v(" \u8BBE\u7F6E ")])],t("div",{staticClass:"items-person-name"},[!e.partNode[s.id]&&s.humanPerformerName=="\u56FA\u5B9A\u89D2\u8272/\u5C97\u4F4D"&&s.noPersonnel?t("div",[e._v(" \u6CA1\u6709\u53EF\u9009\u4EBA\u5458\uFF0C\u8BF7\u68C0\u67E5\u914D\u7F6E ")]):e._e(),e._v(" "+e._s(e.partNode[s.id]?e.partNode[s.id].join(","):"")+" ")])],2):e._e(),s.routeTxt&&s.routeTxt.length>0?t("div",{staticClass:"views-items-includes"},[t("div",{staticClass:"views-items-name2"},[e._v(" "+e._s("\u6240\u5C5E\u8303\u56F4")+" ")]),t("div",{staticClass:"views-items-and2"},e._l(s.routeTxt,function(n,r){return t("div",{key:n.type},[n.ids&&n.ids.length>0?t("div",[t("div",{staticClass:"include"},[t("b",{staticClass:"include include-type",class:["include-"+n.type]},[e._v(e._s(n.type=="user"?"\u7528\u6237":n.type=="dept"?"\u90E8\u95E8":"\u5C97\u4F4D"))]),t("span",{staticClass:"include include-name"},[e._v(e._s(n.name))])]),r!==s.routeTxt.length-1?t("div",{staticClass:"include include-assign",class:["include-assign-"+(n.assigneeRetain?"true":"false")]},[e._v(e._s(s.assigneeRetain=="true"?"\u4E14\u540C\u65F6\u6EE1\u8DB3":"\u6216\u8005\u6EE1\u8DB3"))]):e._e()]):e._e()])}),0)]):e._e()])])}),0):e._e(),t("TopPopup",{ref:"TopPopup",attrs:{visible:e.visible,titleText:"\u9009\u4EBA",isDrawer:!0},on:{"update:visible":function(s){return e.visible=s}}},[e.visible?t("departPerson",e._b({attrs:{isTitle:!1},on:{callback:e.handleCallback}},"departPerson",e.entity,!1)):e._e()],1),t("SelectFixedPerson",{attrs:{visible:e.showFixedPerson,list:e.fixedPersonList,multiple:e.currentClickItem.loopCardinality==-1,select:e.fixedSelect[e.partObjId]||[]},on:{updateList:e.handleClickFixedPerson,updateVisible:e.updateFixedPersonVisible,updateSelect:e.updateFixedSelect,confirm:e.handleSumbitFixedPerson}}),t("TopTips",{ref:"topTips",attrs:{text:e.textTips,statusTips:e.statusTips,type:e.typeTips}})],1):e._e()},J0=[];const fw="",H0={name:"TreeNode",components:{SelectFixedPerson:tp,TopPopup:ze,TopTips:mt,departPerson:Pt.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{currentClickItem:{},fixedSelect:{},showFixedPerson:!1,fixedPersonList:[],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,i){e&&e.length&&(this.multiNodeParticipant={},this.partNode={},this.partNodeArr={},this.gateVars={},this.nodeItems=JSON.parse(JSON.stringify(e)),this.nodeItems,this.nodeItems.map(t=>{if(Array.isArray(t.assignees),t.assignees,t.userTaskModelDTO||(t.userTaskModelDTO={name:t.name,humanPerformer:{name:t.humanPerformerName},routeTxt:t.routeTxt,participantList:t.participantList}),Array.isArray(t.assignees)&&t.assignees.length&&(this.multiNodeParticipant[t.id]||(this.multiNodeParticipant[t.id]=[]),this.partNodeArr[t.id]||(this.partNodeArr[t.id]=[]),t.assignees.forEach(s=>{this.partNodeArr,this.multiNodeParticipant;const n=this.partNodeArr[t.id].find(a=>a.name==s.name),r=this.multiNodeParticipant[t.id].find(a=>a==s.id);n||this.partNodeArr[t.id].push(s),r||this.multiNodeParticipant[t.id].push(s.id)})),t.userTaskModelDTO&&t.userTaskModelDTO.participantList&&t.userTaskModelDTO.participantList.length&&t.userTaskModelDTO.humanPerformer&&t.userTaskModelDTO.participantList.map(s=>{this.multiNodeParticipant[t.id]||(this.multiNodeParticipant[t.id]=[]),this.partNode[t.id]||(this.partNode[t.id]=[]),this.partNodeArr[t.id]||(this.partNodeArr[t.id]=[]),this.multiNodeParticipant[t.id].includes(s.id)||this.multiNodeParticipant[t.id].push(s.id),this.partNode[t.id].includes(s.name)||this.partNode[t.id].push(s.name),this.partNodeArr[t.id].find(n=>n.name==s.name)||this.partNodeArr[t.id].push(s)}),(t.userTaskModelDTO.humanPerformer.name=="\u56FA\u5B9A\u8D26\u6237"||t.userTaskModelDTO.humanPerformer.name=="\u4E0E\u6D41\u7A0B\u7533\u8BF7\u4EBA\u76F8\u5173")&&this.personMake.push(t.id),t.userTaskModelDTO.humanPerformer.name=="\u56FA\u5B9A\u89D2\u8272/\u5C97\u4F4D"){let s={taskDefId:t.id,postIds:[]};t.userTaskModelDTO.routeTxt.postList.map(n=>{s.postIds.push(n.postId)}),this.param.request.post("/auth/user/getTaskAuditor",{deptId:this.param.taskNode&&this.param.taskNode[0].vars?this.param.taskNode[0].vars._businessDeptId:"",taskPostIds:[s]}).then(n=>{let r=[],a=[],o=!1;n.data.map(p=>{p.posts.map(h=>{a.push(...h.users),h.users.length==1?r.push(...h.users):o=!0})}),r.length>t.loopCardinality&&t.loopCardinality>0&&(o=!0),o&&(r=[]);let l=[];n.data[0].posts.map(p=>{l.push({...p,projectPost:!(this.param.taskNode&&this.param.taskNode[0].vars&&this.param.taskNode[0].vars._businessDeptId),id:p.users.map(h=>h.id)})}),a.length==0&&this.$set(t,"noPersonnel",!0),r.length>0&&(this.$set(t,"noPersonnel",!0),this.partObjId=t.id,this.handleCallback(r)),t.positionArray=l})}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 Na}},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.$set(this.multiNodeParticipant,this.partObjId,[]),this.$set(this.partNode,this.partObjId,[]),this.$set(this.partNodeArr,this.partObjId,[]),e.map((i,t)=>{this.multiNodeParticipant[this.partObjId].push(i.id),this.partNode[this.partObjId].push(i.name),this.partNodeArr[this.partObjId].push(i)}),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 i=e.childNode&&e.childNode.length?e.childNode:e&&e.length?e:[e];i&&i.length&&i.forEach((t,s)=>{t.participantList&&t.participantList.length?t.participantList.forEach((n,r)=>{this.multiNodeParticipant[t.id]||(this.multiNodeParticipant[t.id]=[]),this.partNode[t.id]||(this.partNode[t.id]=[]),this.partNodeArr[t.id]||(this.partNodeArr[t.id]=[]),this.multiNodeParticipant[t.id].includes(n.id)||this.multiNodeParticipant[t.id].push(n.id),this.partNode[t.id].includes(n.name)||this.partNode[t.id].push(n.name),this.partNodeArr[t.id].find(a=>a.name==n.name)||this.partNodeArr[t.id].push(n)}):t.id&&t.humanPerformerName=="\u56FA\u5B9A\u4EBA\u5458"&&this.param.request.post(`/aws/repository/getParticipantsOfPerformerNames?taskInstId=${this.param.taskInstId}`,{userTaskDefIds:[t.id]}).then(n=>{n.code==200&&(this.partNode[t.id]={},this.partNode[t.id]=n.data[t.id].split(";"))}),this.nodeType=="outing"&&(this.onVarsData&&(this.gateVars={...this.gateVars,...this.onVarsData}),this.$emit("onVars",this.gateVars))})},handleOpenFixedPerson(e){this.currentClickItem=e,this.partObjId=e.id,this.showFixedPerson=!0,this.fixedPersonList=e.userList||[]},updateFixedPersonVisible(e){this.showFixedPerson=e},updateFixedSelect(e){},handleSumbitFixedPerson(e){this.$set(this.fixedSelect,this.partObjId,e),this.$set(this.multiNodeParticipant,this.partObjId,[]),this.$set(this.partNode,this.partObjId,[]),this.$set(this.partNodeArr,this.partObjId,[]),e.map((i,t)=>{this.multiNodeParticipant[this.partObjId].push(i.userId),this.partNode[this.partObjId].push(i.realName),this.partNodeArr[this.partObjId].push({...i,name:i.realName,id:i.userId})}),this.onMultiNodeData&&(this.multiNodeParticipant={...this.multiNodeParticipant,...this.onMultiNodeData}),this.$emit("onMultiNode",this.multiNodeParticipant),this.$emit("onMultiNodeObj",this.partNodeArr),this.showFixedPerson=!1},handleClickFixedPerson(e){this.$set(this.multiNodeParticipant,this.partObjId,[]),this.$set(this.partNode,this.partObjId,[]),this.$set(this.partNodeArr,this.partObjId,[]),e.map((i,t)=>{this.multiNodeParticipant[this.partObjId].push(i.userId),this.partNode[this.partObjId].push(i.realName),this.partNodeArr[this.partObjId].push({...i,name:i.realName,id:i.userId})}),this.onMultiNodeData&&(this.multiNodeParticipant={...this.multiNodeParticipant,...this.onMultiNodeData}),this.$emit("onMultiNode",this.multiNodeParticipant),this.$emit("onMultiNodeObj",this.partNodeArr),this.showFixedPerson=!1},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"),e.humanPerformer.name=="\u56FA\u5B9A\u5355\u4F4D"||e.humanPerformerName=="\u56FA\u5B9A\u5355\u4F4D"){let i,t=[];this.multiNodeParticipant,this.multiNodeParticipant[e.id]&&this.multiNodeParticipant[e.id].length&&this.partNodeArr[e.id].forEach((s,n)=>{t.push({type:3,id:s.id,subjectId:s.subjectId})}),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?0:1,subjectName:i,checkedArray:t}}else if(e.humanPerformer.name=="\u56FA\u5B9A\u90E8\u95E8"||e.humanPerformerName=="\u56FA\u5B9A\u90E8\u95E8"){let i,t=[],s=[];e.routeTxt.departmentIds.forEach((n,r)=>{e.routeTxt.departmentIds.length>1?t.push(n.rangeId):i=n.rangeId}),this.multiNodeParticipant[e.id]&&this.multiNodeParticipant[e.id].length&&this.partNodeArr[e.id].forEach((n,r)=>{s.push({type:3,id:n.id,deptId:i,subjectId:n.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==-1?0:1,deptCodeArray:t,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==-1?0:1,deptCode:i,checkedArray:s}}else if(e.humanPerformer.name=="\u56FA\u5B9A\u89D2\u8272/\u5C97\u4F4D"||e.humanPerformerName=="\u56FA\u5B9A\u89D2\u8272/\u5C97\u4F4D"){let i=[];this.multiNodeParticipant[e.id]&&this.multiNodeParticipant[e.id].length&&this.partNodeArr[e.id].forEach((t,s)=>{i.push({type:3,id:t.id,subjectId:t.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==-1?0:1,positionArray:e.positionArray,checkedArray:i}}else{let i=[];this.multiNodeParticipant[e.id]&&this.multiNodeParticipant[e.id].length&&this.partNodeArr[e.id].forEach((t,s)=>{i.push({type:3,id:t.id,subjectId:t.subjectId})}),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?0:1,checkedArray:i}}},handleTips(e,i,t){this.textTips=e,this.statusTips=i,this.typeTips=t,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))}}},op={};var K0=ye(H0,q0,J0,!1,W0,"4064b34c",null,null);function W0(e){for(let i in op)this[i]=op[i]}const Y0=function(){return K0.exports}();var z0=function(){var e=this,i=e.$createElement,t=e._self._c||i;return t("div",{staticClass:"test"},[e.param.nodeLoading?[e._m(0)]:[e.nodeItems&&e.nodeItems.length?t("div",e._l(e.nodeItems,function(s,n){return t("div",{key:n,staticClass:"treeperson"},[s.nodeType=="endEvent"?[t("div",[e._v(" \u4E0B\u4E00\u8282\u70B9\uFF1A\u7ED3\u675F\u4E8B\u4EF6 ")])]:s.branches&&s.branches.length?[e.nodeType=="nexting"&&s.nodeType!="inclusiveGateway"?[s.nodeType=="exclusiveGateway"&&s.branches.length>1?t("div",{staticClass:"treeperson-firstnode"},[e._m(1,!0),e._l(s.branches,function(r,a){return t("div",{key:a,staticClass:"treeperson-radio",class:e.firstCheck==(r.nodeInfoDTO?r.nodeInfoDTO.id:r.id)?"treeperson-radio-active":"",on:{click:function(o){return e.handleFirstNodeClick(r,s.branches)}}},[t("span"),e._v(" "+e._s(r.id.includes("Flow")?r.nodeName||r.name?r.nodeName||r.name:r.nodeInfoDTO?r.nodeInfoDTO.nodeName||r.nodeInfoDTO.name:"":r.nodeInfoDTO?r.nodeInfoDTO.nodeName||r.nodeInfoDTO.name||r.nodeName||r.name:r.nodeName||r.name)+" ")])})],2):s.nodeType=="exclusiveGateway"&&s.branches.length==1?t("div",{staticClass:"treeperson-firstnode"},e._l(s.branches,function(r,a){return t("div",[t("span"),t("tree-person",{ref:"TreePersonRef",refInFor:!0,attrs:{items:r.branches&&r.branches.length>0?r.branches:[r],nodeType:"nexting",param:e.param},on:{onMultiNode:e.onMultiNode,onMultiNodeObj:e.onMultiNodeObj}})],1)}),0):s.nodeType=="inclusiveGateway"&&s.branches.length>=1?t("div",{staticClass:"treeperson-firstnode"},[e._m(2,!0),e._l(s.branches,function(r,a){return t("div",{key:a,staticClass:"treeperson-radio",class:e.firstCheck==(r.nodeInfoDTO?r.nodeInfoDTO.id:r.id)?"treeperson-radio-active":"",on:{click:function(o){return e.handleMultiFirstNodeClick(r)}}},[t("span"),e._v(" "+e._s(r.nodeInfoDTO?r.nodeInfoDTO.nodeName||r.nodeInfoDTO.name:r.nodeName||r.name)+" ")])})],2):t("div",{staticClass:"treeperson-firstnode"},[e._m(3,!0),e._l(s.branches,function(r,a){return t("div",{key:a,staticClass:"treeperson-radio",class:e.firstCheck==(r.nodeInfoDTO?r.nodeInfoDTO.id:r.id)?"treeperson-radio-active":"",on:{click:function(o){return e.handleFirstNodeClick(r,s.branches)}}},[t("span"),e._v(" "+e._s(r.nodeInfoDTO?r.nodeInfoDTO.nodeName||r.nodeInfoDTO.name:r.nodeName||r.name)+" ")])})],2),e.childrenItems&&e.childrenItems.length>0&&e.childrenItems[0].nodeInfoDTO&&e.childrenItems[0].nodeInfoDTO.nodeType!="userTask"?[t("tree-person",{key:e.firstCheck,ref:"TreePersonRef",refInFor:!0,attrs:{items:[e.firstCheckItem],nodeType:"nexting",param:e.param},on:{onMultiNode:e.onMultiNode,onMultiNodeObj:e.onMultiNodeObj}})]:e.childrenItems&&e.childrenItems.length>1&&e.childrenItems[0].nodeInfoDTO&&e.childrenItems[0].nodeInfoDTO.nodeType=="userTask"?[e._m(4,!0),t("div",{staticClass:"treeperson-checkbox-box"},e._l(e.childrenItems,function(r,a){return t("div",{key:a,staticClass:"treeperson-checkbox",class:e.firstMultiCheckSub.includes(r.nodeInfoDTO?r.nodeInfoDTO.id:r.id)?"treeperson-checkbox-active":"",on:{click:function(o){return e.handleMultiFirstNodeClickSub(r,e.childrenItems)}}},[t("span"),e._v(" "+e._s(r.nodeInfoDTO?r.nodeInfoDTO.nodeName||r.nodeInfoDTO.name:r.nodeName||r.name)+" ")])}),0),e._l(e.filterMultiItemsSub(e.childrenItems),function(r){return[t("TreeNode",{attrs:{items:r.branches&&r.branches.length>0?r.branches:[r.nodeInfoDTO?r.nodeInfoDTO:r],endNode:!0,nodeType:e.nodeType,param:e.param,checkType:e.firstType},on:{onMultiNode:function(a){return e.onMultiNode(a,"multi")},onMultiNodeObj:e.onMultiNodeObj,onVars:e.onVars}})]})]:[t("TreeNode",{attrs:{items:e.childrenItems,endNode:e.childrenEndItems,nodeType:e.nodeType,param:e.param,checkType:e.firstType},on:{onMultiNode:e.onMultiNode,onMultiNodeObj:e.onMultiNodeObj,onVars:e.onVars}})]]:e.nodeType=="nexting"&&s.nodeType=="inclusiveGateway"?[s.nodeType=="inclusiveGateway"&&s.branches.length>=1?t("div",{staticClass:"treeperson-firstnode"},[e._m(5,!0),t("div",{staticClass:"treeperson-checkbox-box"},e._l(s.branches,function(r,a){return t("div",{key:a,staticClass:"treeperson-checkbox",class:e.firstMultiCheck.includes(r.nodeInfoDTO?r.nodeInfoDTO.id:r.id)?"treeperson-checkbox-active":"",on:{click:function(o){return e.handleMultiFirstNodeClick(r,s.branches)}}},[t("span"),e._v(" "+e._s(r.nodeInfoDTO?r.nodeInfoDTO.nodeName||r.nodeInfoDTO.name:r.nodeName||r.name)+" ")])}),0)]):e._e(),e._l(e.filterMultiItems(s.branches),function(r){return[t("TreeNode",{attrs:{items:r.branches&&r.branches.length>0?r.branches:[r.nodeInfoDTO?r.nodeInfoDTO:r],endNode:!0,nodeType:e.nodeType,param:e.param,checkType:e.firstType},on:{onMultiNode:function(a){return e.onMultiNode(a,"multi")},onMultiNodeObj:e.onMultiNodeObj,onVars:e.onVars}})]})]:e._e()]:s.nodeType=="exclusiveGateway"&&s.branches&&s.branches.length>1?[e._m(6,!0),s.type=="ExclusiveGatewayModel"&&s.branches.length==1?e._e():t("div",{staticClass:"treeperson-firstnode"},e._l(s.branches,function(r,a){return t("div",{key:a,staticClass:"treeperson-checkbox",class:e.firstCheck==r.id?"treeperson-checkbox-active":"",on:{click:function(o){return e.handleFirstNodeClick(r,s.branches)}}},[t("span"),e._v(" "+e._s(r.nodeName||r.name)+" ")])}),0),t("TreeNode",{attrs:{items:e.childrenItems,endNode:e.childrenEndItems,nodeType:e.nodeType,param:e.param,checkType:e.firstType},on:{onMultiNode:function(r){return e.onMultiNode(r,"multi")},onMultiNodeObj:e.onMultiNodeObj,onVars:e.onVars}})]:s.nodeType=="exclusiveGateway"&&s.branches&&s.branches.length==1?[e._m(7,!0),e.nodeType=="nexting"?[t("TreeNode",{attrs:{items:[s.branches[0]],endNode:e.childrenEndItems,nodeType:e.nodeType,param:e.param,checkType:e.firstType},on:{onMultiNode:e.onMultiNode,onMultiNodeObj:e.onMultiNodeObj,onVars:e.onVars}})]:[t("TreeNode",{attrs:{items:[s.branches[0]],endNode:!0,nodeType:"nexting",param:e.param,checkType:e.firstType},on:{onMultiNode:e.onMultiNode,onMultiNodeObj:e.onMultiNodeObj,onVars:e.onVars}})]]:s.id||s.nodeInfoDTO&&s.nodeInfoDTO.id?[e.nodeType=="nexting"?[s.nodeInfoDTO&&s.nodeInfoDTO.nodeType=="exclusiveGateway"?[e._m(8,!0),e._l(s.nodeInfoDTO.branches,function(r,a){return t("div",{key:a,staticClass:"treeperson-radio",class:e.firstCheck==(r.nodeInfoDTO?r.nodeInfoDTO.id:r.id)?"treeperson-radio-active":"",on:{click:function(o){return e.handleFirstNodeClick(r,s.nodeInfoDTO.branches)}}},[t("span"),e._v(" "+e._s(r.nodeName||r.name)+" ")])}),t("tree-person",{key:e.firstCheck,ref:"TreePersonRef",refInFor:!0,attrs:{items:[e.firstCheckItem],nodeType:"nexting",param:e.param},on:{onMultiNode:e.onMultiNode,onMultiNodeObj:e.onMultiNodeObj}})]:[e._m(9,!0),t("TreeNode",{attrs:{items:[s.nodeInfoDTO?s.nodeInfoDTO:s],endNode:e.childrenEndItems,nodeType:e.nodeType,param:e.param,checkType:e.firstType},on:{onMultiNode:e.onMultiNode,onMultiNodeObj:e.onMultiNodeObj,onVars:e.onVars}})]]:[t("TreeNode",{attrs:{items:[s],endNode:!0,nodeType:"nexting",param:e.param,checkType:e.firstType},on:{onMultiNode:e.onMultiNode,onMultiNodeObj:e.onMultiNodeObj,onVars:e.onVars}})]]:void 0],2)}),0):e._e()]],2)},X0=[function(){var e=this,i=e.$createElement,t=e._self._c||i;return t("div",[t("span",[e._v("\u4E0B\u4E00\u8282\u70B9: ")]),t("b",{staticStyle:{"font-size":"16px"}},[e._v("\u8282\u70B9\u52A0\u8F7D\u4E2D\uFF0C\u8BF7\u7A0D\u540E......")])])},function(){var e=this,i=e.$createElement,t=e._self._c||i;return t("div",{staticClass:"treeperson-title"},[e._v(" \u4E0B\u4E00\u6B65\u5BA1\u6279\u8282\u70B9 "),t("span",{staticClass:"treeperson-title--re"},[e._v("*")])])},function(){var e=this,i=e.$createElement,t=e._self._c||i;return t("div",{staticClass:"treeperson-title"},[e._v(" \u4E0B\u4E00\u6B65\u5BA1\u6279\u8282\u70B9 "),t("span",{staticClass:"treeperson-title--re"},[e._v("*")])])},function(){var e=this,i=e.$createElement,t=e._self._c||i;return t("div",{staticClass:"treeperson-title"},[e._v(" \u4E0B\u4E00\u6B65\u5BA1\u6279\u8282\u70B9 "),t("span",{staticClass:"treeperson-title--re"},[e._v("*")])])},function(){var e=this,i=e.$createElement,t=e._self._c||i;return t("div",{staticClass:"treeperson-title"},[e._v(" \u4E0B\u4E00\u6B65\u5BA1\u6279\u8282\u70B9 "),t("span",{staticClass:"treeperson-title--re"},[e._v("*")])])},function(){var e=this,i=e.$createElement,t=e._self._c||i;return t("div",{staticClass:"treeperson-title"},[e._v(" \u4E0B\u4E00\u6B65\u5BA1\u6279\u8282\u70B9 "),t("span",{staticClass:"treeperson-title--re"},[e._v("*")])])},function(){var e=this,i=e.$createElement,t=e._self._c||i;return t("div",{staticClass:"treeperson-title"},[e._v(" \u4E0B\u4E00\u6B65\u5BA1\u6279\u8282\u70B9 "),t("span",{staticClass:"treeperson-title--re"},[e._v("*")])])},function(){var e=this,i=e.$createElement,t=e._self._c||i;return t("div",{staticClass:"treeperson-title"},[e._v(" \u4E0B\u4E00\u6B65\u5BA1\u6279\u8282\u70B9 "),t("span",{staticClass:"treeperson-title--re"},[e._v("*")])])},function(){var e=this,i=e.$createElement,t=e._self._c||i;return t("div",{staticClass:"treeperson-title"},[e._v(" \u4E0B\u4E00\u6B65\u5BA1\u6279\u8282\u70B9 "),t("span",{staticClass:"treeperson-title--re"},[e._v("*")])])},function(){var e=this,i=e.$createElement,t=e._self._c||i;return t("div",{staticClass:"treeperson-title"},[e._v(" \u4E0B\u4E00\u6B65\u5BA1\u6279\u8282\u70B9 "),t("span",{staticClass:"treeperson-title--re"},[e._v("*")])])}];const mw="",Z0={name:"tree-person",components:{TreeNode:Y0},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:[],firstMultiCheckSub:[],firstMultiCheckItemSub:[],firstMultiTypeSub:[],childrenItems:[],childrenEndItems:!1,childrenItemsSub:[],childrenEndItemsSub:!1,gateVars:{},multiNode:{},partNodeArr:{},getVars:{}}},watch:{items:{handler(e,i){e&&e.length&&(this.nodeType=="nexting"?(this.nodeItems=[],this.childrenEndItems=!0,e.forEach(t=>{t={...t,...t.userTaskModelDTO},this.nodeItems.push(t)})):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]),this.nodeItems)},immediate:!0,deep:!0}},methods:{filterMultiItems(e=[]){return this.firstMultiCheck,e.filter(i=>this.firstMultiCheck.includes(i.nodeInfoDTO?i.nodeInfoDTO.id:i.id))},filterMultiItemsSub(e=[]){return this.firstMultiCheckSub,e.filter(i=>this.firstMultiCheckSub.includes(i.nodeInfoDTO?i.nodeInfoDTO.id:i.id))},onMultiNode(e,i=""){i&&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(s=>s):this.multiNode[t]=e[t]}):this.multiNode=e:this.multiNode=e,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,i=[]){let t=e;if(t&&t.nodeInfoDTO&&(t=t.nodeInfoDTO),this.firstMultiCheck.includes(t.id)){this.firstMultiCheck=this.firstMultiCheck.filter(s=>s!=t.id),this.firstMultiCheckItem=this.firstMultiCheckItem.filter(s=>s.id!=t.id),this.firstMultiType=this.firstMultiType.filter(s=>s!=t.nodeType),delete this.param.selChildrenItems[t.id];return}if(t){this.firstMultiCheck.push(t.id),this.firstMultiCheckItem.push(t),this.firstMultiType.push(t.nodeType);let s=[t];t.branches&&t.branches.length?(this.childrenItems=t.branches,this.childrenEndItems=!1):(this.childrenItems=[t],this.childrenEndItems=!0),i.forEach(n=>{delete this.param.selChildrenItems[n.id],this.param.selChildrenItems[t.id]=(this.childrenItems||[]).map(r=>r.nodeInfoDTO||r)}),this.gateVars={},s.forEach(n=>{(!this.param||!this.param.vars)&&(this.param.vars={}),Array.isArray(n.incomingConditionItemList)&&n.incomingConditionItemList.length>0&&(this.param.vars[n.incomingConditionItemList[0].itemName]=n.incomingConditionItemList[0].compareValue,this.gateVars[n.incomingConditionItemList[0].itemName]=n.incomingConditionItemList[0].compareValue)})}},handleMultiFirstNodeClickSub(e,i=[]){let t=e;if(t&&t.nodeInfoDTO&&(t=t.nodeInfoDTO),this.firstMultiCheckSub.includes(t.id)){this.firstMultiCheckSub=this.firstMultiCheckSub.filter(s=>s!=t.id),this.firstMultiCheckItemSub=this.firstMultiCheckItemSub.filter(s=>s.id!=t.id),this.firstMultiTypeSub=this.firstMultiTypeSub.filter(s=>s!=t.nodeType),this.childrenItemsSub=this.childrenItemsSub.filter(s=>s.id!=t.id),i.forEach(s=>{delete this.param.selChildrenItems[s.nodeInfoDTO?s.nodeInfoDTO.id:s.id]}),delete this.param.selChildrenItems[t.id];return}if(t){this.firstMultiCheckSub.push(t.id),this.firstMultiCheckItemSub.push(t),this.firstMultiTypeSub.push(t.nodeType);let s=[t];t.branches&&t.branches.length?(this.childrenItemsSub.push(t.branches),this.childrenEndItemsSub=!1):(this.childrenItemsSub.push(t),this.childrenEndItemsSub=!0),i.forEach(n=>{delete this.param.selChildrenItems[n.nodeInfoDTO?n.nodeInfoDTO.id:n.id],this.param.selChildrenItems[t.id]=(this.childrenItemsSub||[]).map(r=>r.nodeInfoDTO||r)}),this.gateVars={},s.forEach(n=>{(!this.param||!this.param.vars)&&(this.param.vars={}),Array.isArray(n.incomingConditionItemList)&&n.incomingConditionItemList.length>0&&(this.param.vars[n.incomingConditionItemList[0].itemName]=n.incomingConditionItemList[0].compareValue,this.gateVars[n.incomingConditionItemList[0].itemName]=n.incomingConditionItemList[0].compareValue)})}},handleFirstNodeClick(e,i=[]){let t=e;if(t&&t.nodeInfoDTO&&(t=t.nodeInfoDTO),t){this.firstCheck=t.id,this.firstCheckItem=t,this.firstType=t.nodeType;let s=[t];t.branches&&t.branches.length?(this.childrenItems=t.branches,this.childrenEndItems=!1):(this.childrenItems=[t],this.childrenEndItems=!0),i.forEach(n=>{const r=this.param.selChildrenItems[n.nodeInfoDTO?n.nodeInfoDTO.id:n.id];Array.isArray(r)&&r.forEach(a=>{delete this.param.selChildrenItems[a.id]}),delete this.param.selChildrenItems[n.nodeInfoDTO?n.nodeInfoDTO.id:n.id],this.param.selChildrenItems[t.id]=(this.childrenItems||[]).map(a=>a.nodeInfoDTO||a)}),this.gateVars={},s.forEach(n=>{(!this.param||!this.param.vars)&&(this.param.vars={}),Array.isArray(n.incomingConditionItemList)&&n.incomingConditionItemList.length>0&&(this.param.vars[n.incomingConditionItemList[0].itemName]=n.incomingConditionItemList[0].compareValue,this.gateVars[n.incomingConditionItemList[0].itemName]=n.incomingConditionItemList[0].compareValue)})}}}},lp={};var $0=ye(Z0,z0,X0,!1,eC,"04a361c0",null,null);function eC(e){for(let i in lp)this[i]=lp[i]}const tC=function(){return $0.exports}();var iC=function(){var e=this,i=e.$createElement,t=e._self._c||i;return t("div",{staticClass:"top-popup-zindex",class:e.className,style:`${e.isIndex?`z-index:${e.isIndex}`:""}`},[t("div",{staticClass:"top-popup-mask",style:e.show&&e.isMask?"visibility: visible; opacity: .7;":"visibility: hidden; opacity: 0;",on:{click:function(s){e.isMaskClose&&e.handleClose()}}}),!e.isTips&&!e.isDrawer?t("div",{staticClass:"top-popup",style:e.show?"transform: translateY(0)":"transform: translateY(150%)"},[t("div",{staticClass:"top-popup-header"},[t("div",{staticClass:"header-cancel",on:{click:e.handleCancel}},[e._v(" "+e._s(e.cancelText)+" ")]),t("div",{staticClass:"header-title"},[e._v(e._s(e.titleText))]),t("div",{staticClass:"header-comfig",on:{click:e.handleComfig}},[e._v(" "+e._s(e.comfigText)+" ")])]),t("div",{staticClass:"top-popup-body"},[e._t("default")],2)]):!e.isTips&&e.isDrawer?t("div",{staticClass:"top-popup-drawer",class:e.show?"top-popup-drawer--active":"",style:e.width?`width:${e.width};`:""},[t("div",{staticClass:"top-popup-drawer--body"},[e._t("default")],2)]):e.isTips&&!e.isDrawer?t("div",{staticClass:"top-tips",style:e.show?"visibility: visible; opacity: 1; transform: scale(1)":"visibility: hidden; opacity: 0; transform: scale(1.2)"},[t("div",{staticClass:"top-tips-header"},[e._v(e._s(e.titleText))]),t("div",{staticClass:"top-tips-body"},[e._v(e._s(e.context))]),t("div",{staticClass:"top-tips-footer"},[t("div",{staticClass:"top-tips-btn",on:{click:e.handleCancel}},[e._v(" "+e._s(e.cancelText)+" ")]),t("div",{staticClass:"top-tips-btn",on:{click:e.handleComfig}},[e._v(" "+e._s(e.comfigText)+" ")])])]):e._e()])},sC=[];const gw="",nC={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,i){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"),i=navigator.userAgent.includes("iPad");return e||i}},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})}},cp={};var rC=ye(nC,iC,sC,!1,aC,"37f0c2ca",null,null);function aC(e){for(let i in cp)this[i]=cp[i]}const up=function(){return rC.exports}();var oC=function(){var e=this,i=e.$createElement,t=e._self._c||i;return t("div",{staticClass:"sign-container",style:e.setDynamicVars},[t("div",{staticClass:"canvas-container"},[e.paths.length==0&&e.currentPath.length==0?t("div",{staticClass:"tips"},[e._v("\u8BF7\u5728\u6B64\u533A\u57DF\u7B7E\u5B57")]):e._e(),t("canvas",{ref:"canvasRef",class:{"uni-canvas-style":e.isUniCanvas()},attrs:{id:"canvas-id","canvas-id":"canvas-id"},on:{touchmove:e.draw,touchstart:e.startDrawing,touchend:e.finishDrawing}})]),t("div",{staticClass:"history"},[t("div",{staticClass:"img-grid",on:{click:function(s){return e.useHistory(0)}}},[e.historyPics[0]?t("img",{attrs:{src:e.historyPics[0]?e.historyPics[0].url:"",fit:"scale-down"}}):e._e()]),t("div",{staticClass:"img-grid",on:{click:function(s){return e.useHistory(1)}}},[e.historyPics[1]&&e.historyPics[1].url?t("img",{attrs:{src:e.historyPics[1].url,fit:"scale-down"}}):e._e()]),t("div",{staticClass:"img-grid",staticStyle:{"margin-right":"10rpx"},on:{click:function(s){return e.useHistory(2)}}},[e.historyPics[2]&&e.historyPics[2].url?t("img",{attrs:{src:e.historyPics[2].url,fit:"scale-down"}}):e._e()])]),t("div",{staticClass:"actions-area"},[t("button",{staticClass:"btns-common cmf-btn",on:{click:e.confirmSave}},[e._v("\u786E\u8BA4")]),t("button",{staticClass:"btns-common",on:{click:e.cancelSign}},[e._v("\u8FD4\u56DE")]),t("button",{staticClass:"btns-common",on:{click:e.undo}},[e._v("\u64A4\u9500")]),t("button",{staticClass:"btns-common",on:{click:e.clearCanvas}},[e._v("\u6E05\u7A7A")])]),t("signDrawer",{ref:"TopPopupSign",attrs:{visible:e.confirmVisible,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:e.saveSignature},on:{"update:visible":function(s){return e.confirmVisible=s}}})],1)},lC=[];const yw="",cC={props:{request:{type:Function,default:()=>{}}},components:{signDrawer:up},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 i=this.$refs.canvasRef.getBoundingClientRect(),t=(e.touches[0].clientX-i.left)*(this.$refs.canvasRef.width/i.width)/window.devicePixelRatio,s=(e.touches[0].clientY-i.top)*(this.$refs.canvasRef.height/i.height)/window.devicePixelRatio;this.ctx.beginPath(),this.ctx.moveTo(t,s),this.currentPath.push({x:t,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 i=this.$refs.canvasRef.getBoundingClientRect(),t=(e.touches[0].clientX-i.left)*(this.$refs.canvasRef.width/i.width)/window.devicePixelRatio,s=(e.touches[0].clientY-i.top)*(this.$refs.canvasRef.height/i.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(t,s),this.ctx.stroke(),this.currentPath.push({x:t,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 i=0;i<e.length-1;i++){const{x:t,y:s}=e[i];i===0?(this.ctx.beginPath(),this.ctx.moveTo(t,s)):(this.ctx.lineTo(t,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 i=0;i<e.length-1;i++)this.ctx.moveTo(e[i].x,e[i].y),this.ctx.lineTo(e[i+1].x,e[i+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,i;(i=(e=this.$refs)==null?void 0:e.canvasRef)!=null&&i.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,i){const t=new Blob([e],{type:"text/plain"}),r=new File([t],"text.txt").size/1024;if(r<=64){const a=document.getElementById("canvas-id");return this.getRotatedDataURL(a,-90,i)}else{if(r>300)return null;{let a,o;if(i<.005)return null;if(i-.05>0){a=i-.05;const l=document.getElementById("canvas-id");return o=this.getRotatedDataURL(l,-90,a),this.fixAccuracy(o,a)}else{a=i/2;const l=document.getElementById("canvas-id");return o=this.getRotatedDataURL(l,-90,a),this.fixAccuracy(o,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 i=.6;const t=document.getElementById("canvas-id");return this.getRotatedDataURL(t,-90,i),!0}else uni.canvasToTempFilePath({canvasId:"canvas-id",success(i){e.signatureImage=i.tempFilePath;let t=JSON.parse(localStorage.getItem("signaturesArr"))||[];t.unshift(this.signatureImage),this.$set(this,"historyPics",t.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,i,t){this.textTips=e,this.statusTips=i,this.typeTips=t,this.$refs.topTips.handleOpen()},getRotatedDataURL(e,i,t){let s=e.width/window.devicePixelRatio,n=e.height/window.devicePixelRatio,r=i*Math.PI/180,a=Math.max(s*Math.abs(Math.cos(r)),n*Math.abs(Math.sin(r))),o=Math.max(s*Math.abs(Math.sin(r)),n*Math.abs(Math.cos(r)));const l=document.createElement("canvas"),p=l.getContext("2d");l.width=a,l.height=o,p.translate(a/2,o/2),p.rotate(r),p.drawImage(e,-s/2,-n/2,s,n),l.toBlob(h=>{this.uploadImage(h)},"image/png",.95)},async uploadImage(e,i){this.loading=!0;const t=new FormData;t.append("file",e,i||`signature-${Date.now()}.png`);const s=await this.request.post("/file/upload",t,{headers:{"Content-Type":"multipart/form-data"}});if(this.loading=!1,!s.success)return;let n=JSON.parse(localStorage.getItem("signaturesArr"))||[];n.unshift(s.data),this.$set(this,"historyPics",n.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 i=document.querySelector(".canvas-container");if(i){let t=document.getElementById("canvas-id");const s=i.offsetWidth,n=i.offsetHeight-this.actionHeight-this.historyHeight;t.style.width=`${s}px`,t.style.height=`${n}px`,t.width=s*window.devicePixelRatio,t.height=n*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,t.width,t.height)}}else{this.ctx=uni.createCanvasContext("canvas-id",this);const i=uni.getSystemInfoSync().pixelRatio;this.ctx.scale(i,i)}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)}},pp={};var uC=ye(cC,oC,lC,!1,pC,"58762489",null,null);function pC(e){for(let i in pp)this[i]=pp[i]}const dC=function(){return uC.exports}();var hC=function(){var e=this,i=e.$createElement,t=e._self._c||i;return t("div",{staticClass:"process-popup-content"},[e.param.ProcessInsObj&&e.param.ProcessInsObj.processDefId!="obj_94014ede99b6495d8f6d5977314faa15"?t("div",{staticClass:"process-popup-content-msg"},[e.param.isQuickReply?t("div",{staticClass:"process-pc-label"},[e._v("\u5FEB\u6377\u56DE\u590D")]):e._e(),e.param.isQuickReply?t("div",{staticClass:"process-pc-value",staticStyle:{display:"flex"}},[t("div",{staticClass:"process-radio",staticStyle:{width:"100%"}},[e.param.isDocument?e._l(e.msgCheckList,function(s){return t("div",{staticClass:"process-radio-item",class:s==e.commentMsg?"process-radio-item--check":"",on:{click:function(){return e.commentMsg=s}}},[t("span"),e._v(" "+e._s(s)+" ")])}):e._l(e.msgCheckListS,function(s){return t("div",{staticClass:"process-radio-item",class:s==e.commentMsg?"process-radio-item--check":"",on:{click:function(){return e.commentMsg=s}}},[t("span"),e._v(" "+e._s(s)+" ")])}),e.param.isMsg?t("div",{staticClass:"process-radio-item",staticStyle:{color:"#1389ff","font-size":"14px","margin-left":"auto"},on:{click:function(s){return e.handleOpenMsg()}}},[e._v(" \u5E38\u7528\u610F\u89C1 ")]):e._e()],2)]):e._e(),e.param.isMsg&&!e.param.isQuickReply?t("div",[t("div",{staticClass:"process-radio-item",staticStyle:{color:"#1389ff","font-size":"14px"},on:{click:function(s){return e.handleOpenMsg()}}},[e._v(" \u5E38\u7528\u610F\u89C1 ")])]):e._e(),t("div",{staticClass:"process-pc-label"},[e._v(" \u5BA1\u6279\u610F\u89C1 "),e.param.isRequire?t("span",{staticClass:"process-pc-label--re"},[e._v("*")]):e._e()]),t("div",{staticClass:"process-pc-value"},[t("div",{staticClass:"process-popup-textarea"},[t("textarea",{directives:[{name:"model",rawName:"v-model",value:e.commentMsg,expression:"commentMsg"}],staticClass:"textarea-item",attrs:{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,'')"},domProps:{value:e.commentMsg},on:{input:function(s){s.target.composing||(e.commentMsg=s.target.value)}}}),t("div",{staticClass:"process-popup-textarea-num"},[e._v(" "+e._s(e.commentMsg.length)+"/200 ")])]),e.param.isMsg?t("div",{staticClass:"msg-btn"},[t("span",{staticClass:"msg-btn-click",on:{click:function(s){return e.handleMakeMsg()}}},[e._v("\u8BBE\u7F6E\u4E3A\u5E38\u7528\u610F\u89C1")])]):e._e()])]):e._e(),t("div",{staticClass:"process-popup-content-person"},[e.nextNodeData.length==1&&e.nextNodeData[0].nodeType=="endEvent"?t("div",[e._v(" \u4E0B\u4E00\u8282\u70B9\uFF1A\u7ED3\u675F\u4E8B\u4EF6 ")]):e.nextNodeData&&e.nextNodeData.nodeType=="endEvent"?t("div",[e._v(" \u4E0B\u4E00\u8282\u70B9\uFF1A\u7ED3\u675F\u4E8B\u4EF6 ")]):e.param.ProcessInsObj.taskParentId?e._e():t("TreePerson",{ref:"TreePersonRef",attrs:{items:e.nextNodeData,nodeType:"nexting",param:e.param},on:{onMultiNode:e.onMultiNode,onMultiNodeObj:e.onMultiNodeObj}})],1),e._t("completeSlot"),t("TopTips",{ref:"topTips",attrs:{text:e.textTips,statusTips:e.statusTips,type:e.typeTips}}),t("TopPopup",{ref:"TopPopup",attrs:{visible:e.visible,titleText:"\u9009\u4EBA",isDrawer:!0},on:{"update:visible":function(s){return e.visible=s}}},[t("div",{staticStyle:{height:"100%"}},[e.visible?t("departPerson",e._b({attrs:{isTitle:!1,visible:e.visible},on:{"update:visible":function(s){e.visible=s},callback:e.handleCallback,cancel:e.handleCancel}},"departPerson",e.entity,!1)):e._e()],1)]),t("TopPopup",{ref:"TopPopup",attrs:{visible:e.visibleListMsg,titleText:"\u5E38\u7528\u610F\u89C1",isDrawer:!0},on:{"update:visible":function(s){return e.visibleListMsg=s}}},[t("MsgList",{attrs:{visible:e.visibleListMsg,request:e.param.request,useInfo:e.param.userInfo},on:{handleTips:e.handleTips,handleMsg:e.handleMsg}})],1),t("TopPopup",{attrs:{titleText:"\u64CD\u4F5C\u6D88\u606F\u63D0\u793A",isTips:!0,context:`\u5C06${e.commentMsg}\u8BBE\u7F6E\u4E3A\u5E38\u7528\u610F\u89C1`,cancel:e.handleTipsCancel,comfig:e.handleTipsComfig,visible:e.visibleMsgComfig},on:{"update:visible":function(s){return e.visibleMsgComfig=s}}}),e.labels=="1"?t("attchViews",{attrs:{limit:e.limit?e.limit:-1,requires:e.requires,request:e.param.request,linkUrl:e.param.linkUrl},on:{getValue:e.getValues}}):e._e(),t("signDrawer",{ref:"TopPopupSign",attrs:{visible:e.signVisible,titleText:"\u7B7E\u5B57",isDrawer:!0,width:"100vw"},on:{"update:visible":function(s){return e.signVisible=s}}},[t("div",{staticStyle:{height:"100%"}},[e.signVisible?t("TopSign",{attrs:{request:e.param.request},on:{saveSignature:e.handleSignature,validateFail:e.noticeFail,close:e.handleClose}}):e._e()],1)])],2)},fC=[];const vw="",mC={name:"complete",props:{param:{type:Object,defalut:()=>{}}},components:{TopTips:mt,attchViews:xi,TopPopup:ze,departPerson:Pt.departPerson,MsgList:Is,TreePerson:tC,TopSign:dC,signDrawer:up},computed:{check(){return Na},checkS(){return G0},isSelectPerson(){if(this.pureTip=!1,this.nextNodeData,this.taskNode,this.multiNodeParticipant,this.$refs.TreePersonRef,this.param,Array.isArray(this.nextNodeData)&&this.nextNodeData[0].nodeType!="endEvent"){let e=this.param.selChildrenItems||{},i=[];if(Object.keys(e).filter(s=>s.startsWith("Activity")).forEach(s=>{i=i.concat(e[s])}),i.length==0&&Object.values(e).forEach(s=>{Array.isArray(s)&&s.length>0&&s.forEach(n=>{(n.id||"").startsWith("Activity")&&(i=i.concat(n))})}),i.length>0){let s="";const n=i.every(r=>{let a=this.multiNodeParticipant[r.id];a=(a||[]).filter(l=>l);const o=a&&a.length>0;return o||(s=r),o});return n?!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 n=(this.multiNodeParticipant[s.id]||[]).filter(a=>a);const r=n&&n.length>0;return this.nextNodeData[0].branches[0],r?!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 n="";return s.every(a=>{const o=this.multiNodeParticipant[a.id]&&this.multiNodeParticipant[a.id].length>0;return o||(n=a),o})?!1:n.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(n=>n);return s&&s.length>0?!1:this.nextNodeData[0].name}}else return!1;if(this.nextNodeData.nodeType!="endEvent"){let e=this.param.selChildrenItems||{},i=[];if(Object.keys(e).filter(s=>s.startsWith("Activity")).forEach(s=>{i=i.concat(e[s])}),i.length==0&&Object.values(e).forEach(s=>{Array.isArray(s)&&s.length>0&&s.forEach(n=>{(n.id||"").startsWith("Activity")&&(i=i.concat(n))})}),i.length>0){let s="";const n=i.every(r=>{let a=this.multiNodeParticipant[r.id];a=(a||[]).filter(l=>l);const o=a&&a.length>0;return o||(s=r),o});return n?!1:s.name}else if(this.nextNodeData.nodeType=="exclusiveGateway"&&this.nextNodeData.branches&&this.nextNodeData.branches.length==1){const s=this.findUserTaskNode(this.nextNodeData.branches[0]);let n=(this.multiNodeParticipant[s.id]||[]).filter(a=>a);const r=n&&n.length>0;return this.nextNodeData.branches[0],r?!1:s.name}else if(this.nextNodeData.nodeType=="exclusiveGateway"&&this.nextNodeData.branches&&this.nextNodeData.branches.length>1){const s=this.$refs.TreePersonRef.childrenItems||null;if(s&&s.length>0){let n="";return s.every(a=>{const o=this.multiNodeParticipant[a.id]&&this.multiNodeParticipant[a.id].length>0;return o||(n=a),o})?!1:n.name}else return this.pureTip=!0,"\u8BF7\u9009\u62E9\u4E0B\u4E00\u6B65\u5BA1\u6279\u8282\u70B9"}else if(this.nextNodeData.nodeType=="userTask"){let s=(this.multiNodeParticipant[this.nextNodeData.id]||[]).filter(n=>n);return s&&s.length>0?!1:this.nextNodeData.name}}else return!1;if(Array.isArray(this.nextNodeData)&&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 this.pureTip=!0,"\u8BF7\u9009\u62E9\u4E0B\u4E00\u6B65\u5BA1\u6279\u8282\u70B9"},signRequired(){return!!this.param.extendedProperties.find(i=>i.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.nodeLoading":{handler(e,i){e||(this.param,this.nextNodeData=this.param.nextNodeData,this.nextNodeData&&this.nextNodeData.length?(this.nextNodeData.map((t,s)=>{t.nodeType!=="endEvent"&&(t.userTaskModelDTO||(t.userTaskModelDTO={name:t.name,humanPerformer:{name:t.humanPerformerName},routeTxt:t.routeTxt,participantList:t.participantList}),t.userTaskModelDTO&&t.userTaskModelDTO.participantList&&t.userTaskModelDTO.participantList.length&&t.userTaskModelDTO.participantList.map(n=>{this.multiNodeParticipant[t.id]||(this.multiNodeParticipant[t.id]=[]),this.partNode[t.id]||(this.partNode[t.id]=[]),this.multiNodeParticipant[t.id].includes(n.id)||this.multiNodeParticipant[t.id].push(n.id),this.partNode[t.id].includes(n.name)||this.partNode[t.id].push(n.name)}),(t.userTaskModelDTO.humanPerformer.name=="\u56FA\u5B9A\u8D26\u6237"||t.userTaskModelDTO.humanPerformer.name=="\u4E0E\u6D41\u7A0B\u7533\u8BF7\u4EBA\u76F8\u5173")&&this.personMake.push(t.id))}),this.personMake&&this.personMake.length&&this.param.request.post(`aws/repository/getParticipantsOfPerformerNames?taskInstId=${this.param.taskInstId}`,{userTaskDefIds:this.personMake}).then(t=>{t.code==200&&(this.personMakeList=t.data)})):this.outGatewayUserTaskModel&&this.outGatewayUserTaskModel.length&&this.outGatewayUserTaskModel.map((t,s)=>{t.nodeType!=="endEvent"&&t.participantList&&t.participantList.length&&t.participantList.map(n=>{this.multiNodeParticipant[t.id]||(this.multiNodeParticipant[t.id]=[]),this.partNode[t.id]||(this.partNode[t.id]=[]),this.multiNodeParticipant[t.id].includes(n.id)||this.multiNodeParticipant[t.id].push(n.id),this.partNode[t.id].includes(n.name)||this.partNode[t.id].push(n.name)})}))}},"param.visible":{handler(e,i){this.nextNodeData=this.param.nextNodeData,this.taskNode=this.param.taskNode,this.outGatewayUserTaskModel=this.param.outGatewayUserTaskModel,this.actionName=this.param.actionName,this.attachShow(),this.showFile,this.outGatewayUserTaskModel&&this.outGatewayUserTaskModel.length&&this.outGatewayUserTaskModel.map(t=>{t.type!=="endEvent"&&(t.userTaskModelDTO={name:t.name,humanPerformer:{name:t.humanPerformerName},routeTxt:t.routeTxt,participantList:t.participantList},t.humanPerformer={name:t.humanPerformerName})}),this.nextNodeData&&this.nextNodeData.length?(this.nextNodeData.map((t,s)=>{t.nodeType!=="endEvent"&&(t.userTaskModelDTO||(t.userTaskModelDTO={name:t.name,humanPerformer:{name:t.humanPerformerName},routeTxt:t.routeTxt,participantList:t.participantList}),t.userTaskModelDTO&&t.userTaskModelDTO.participantList&&t.userTaskModelDTO.participantList.length&&t.userTaskModelDTO.participantList.map(n=>{this.multiNodeParticipant[t.id]||(this.multiNodeParticipant[t.id]=[]),this.partNode[t.id]||(this.partNode[t.id]=[]),this.multiNodeParticipant[t.id].includes(n.id)||this.multiNodeParticipant[t.id].push(n.id),this.partNode[t.id].includes(n.name)||this.partNode[t.id].push(n.name)}),(t.userTaskModelDTO.humanPerformer.name=="\u56FA\u5B9A\u8D26\u6237"||t.userTaskModelDTO.humanPerformer.name=="\u4E0E\u6D41\u7A0B\u7533\u8BF7\u4EBA\u76F8\u5173")&&this.personMake.push(t.id))}),this.personMake&&this.personMake.length&&this.param.request.post(`aws/repository/getParticipantsOfPerformerNames?taskInstId=${this.param.taskInstId}`,{userTaskDefIds:this.personMake}).then(t=>{t.code==200&&(this.personMakeList=t.data)})):this.outGatewayUserTaskModel&&this.outGatewayUserTaskModel.length&&this.outGatewayUserTaskModel.map((t,s)=>{t.nodeType!=="endEvent"&&t.participantList&&t.participantList.length&&t.participantList.map(n=>{this.multiNodeParticipant[t.id]||(this.multiNodeParticipant[t.id]=[]),this.partNode[t.id]||(this.partNode[t.id]=[]),this.multiNodeParticipant[t.id].includes(n.id)||this.multiNodeParticipant[t.id].push(n.id),this.partNode[t.id].includes(n.name)||this.partNode[t.id].push(n.name)})})},immediate:!0,deep:!0}},created(){this.makeDelegateTaskButtonAnnex()},methods:{findUserTaskNode(e){return 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,i){e.map((t,s)=>{t.childNode&&t.childNode.length?this.forRadioChild(t.childNode,!0):i&&this.radioCheckChild.push(t)})},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(i=>{i.participantList&&i.participantList.length?i.participantList.map(t=>{this.multiNodeParticipant[i.id]||(this.multiNodeParticipant[i.id]=[]),this.partNode[i.id]||(this.partNode[i.id]=[]),this.multiNodeParticipant[i.id].includes(t.id)||this.multiNodeParticipant[i.id].push(t.id),this.partNode[i.id].includes(t.name)||this.partNode[i.id].push(t.name)}):this.param.request.post(`/aws/repository/getParticipantsOfPerformerNames?taskInstId=${this.param.taskInstId}`,{userTaskDefIds:[i.id]}).then(t=>{t.code==200&&(this.partNodeS=[],this.partNodeS.push(t.data[i.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 i,t=[];e.routeTxt.companyIds.map((s,n)=>{i=s.name}),this.multiNodeParticipant[e.id]&&this.multiNodeParticipant[e.id].length&&this.multiNodeParticipant[e.id].map((s,n)=>{t.push({type:3,id: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==-1?0:1,subjectName:i,checkedArray:t}}else if(e.humanPerformer.name=="\u56FA\u5B9A\u90E8\u95E8"){let i,t=[],s=[];e.routeTxt.departmentIds.forEach((n,r)=>{e.routeTxt.departmentIds.length>1?t.push(n.rangeId):i=n.rangeId}),this.multiNodeParticipant[e.id]&&this.multiNodeParticipant[e.id].length&&this.multiNodeParticipant[e.id].forEach((n,r)=>{s.push({type:3,id:n,deptId:i})}),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==-1?0:1,deptCodeArray:t,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==-1?0:1,deptCode:i,checkedArray:s}}else{let i=[];this.multiNodeParticipant[e.id]&&this.multiNodeParticipant[e.id].length&&this.multiNodeParticipant[e.id].map((t,s)=>{i.push({type:3,id:t})}),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?0:1,checkedArray:i}}},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 o=0;if(this.radioCheckNameList.map((l,p)=>{(!this.multiNodeParticipant[l]||!this.multiNodeParticipant[l].length)&&this.radioCheckChild.map((h,f)=>{h.id==l&&(h.humanPerformerName!=="\u56FA\u5B9A\u8D26\u6237"||h.humanPerformerName!=="\u4E0E\u6D41\u7A0B\u7533\u8BF7\u4EBA\u76F8\u5173")&&(!h.childNode||!h.childNode.length?o+=1:this.radioCheckNode.map((A,I)=>{(!this.multiNodeParticipant[A]||!this.multiNodeParticipant[A].length)&&(o+=1),e[A]=this.multiNodeParticipant[A]}))}),e[l]=this.multiNodeParticipant[l]}),o>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}e=this.multiNodeParticipant}if(this.signRequired){this.signVisible=!0;return}if(this.param.beforeFunction&&!await this.param.beforeFunction())return;(this.param.incomingConditionItemList||[]).forEach(o=>{let l=this.param.vars||this.gateVars||{};l[o.itemName]||(l[o.itemName]="")}),this.handleTips("",!0,"loading");let i=[];const t=Array.isArray(this.param.nextNodeData)?this.param.nextNodeData[0]:this.param.nextNodeData;t.setPersonnel?i=t.assignees:i=(this.partNodeArr[t.id]||[]).map(o=>({id:o.id,name:o.name})),Object.keys(e).forEach(o=>{Array.isArray(e[o])&&(e[o]=e[o].filter(l=>l)),(!e[o]||Array.isArray(e[o])&&e[o].length<=0)&&delete e[o]});let s=t&&t.nodeType!="endEvent"&&(!t.branches||t.branches.length<=0),n=t&&t.nodeType!="endEvent"&&t.branches&&t.branches.length==1&&t.branches[0].nodeInfoDTO&&t.branches[0].nodeInfoDTO.nodeType!="endEvent",r=t&&t.nodeType!="endEvent"&&t.branches&&t.branches.length==1&&!t.branches[0].nodeInfoDTO&&t.branches[0].nodeType!="endEvent";if((s||n||r)&&!Object.keys(e).length){let l={};return s?l=t:n?l=t.branches[0].nodeInfoDTO:r&&(l=t.branches[0]),this.handleTips(l.nodeType?"\u8BF7\u9009\u62E9["+l.name+"]\u5BA1\u6279\u4EBA!":"\u8BF7\u9009\u62E9\u4E0B\u4E00\u8282\u70B9\u5BA1\u6279\u4EBA",!0,"error"),!1}Date.now()&&(this.param.processInstId,this.param.actionComplete,this.commentMsg,this.param.taskInstId,this.param.vars||this.gateVars,this.attchLists),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:e,attachment:this.attchLists}).then(o=>{o.code==200?(this.$emit("handleClosePopup1"),this.handleTips("\u63D0\u4EA4\u6210\u529F!",!1,"success"),window.top.postMessage("success","*"),this.handleFinal(),this.commentMsg=""):this.handleTips(o.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 i={};if(this.radioCheckNameList&&this.radioCheckNameList.length){if(this.radioCheckChild[0].type!=="EndEventModel"){let l=0;if(this.radioCheckNameList.map((p,h)=>{(!this.multiNodeParticipant[p]||!this.multiNodeParticipant[p].length)&&this.radioCheckChild.map((f,A)=>{f.id==p&&(f.humanPerformerName!=="\u56FA\u5B9A\u8D26\u6237"||f.humanPerformerName!=="\u4E0E\u6D41\u7A0B\u7533\u8BF7\u4EBA\u76F8\u5173")&&(!f.childNode||!f.childNode.length?l+=1:this.radioCheckNode.map((I,F)=>{(!this.multiNodeParticipant[I]||!this.multiNodeParticipant[I].length)&&(l+=1),i[I]=this.multiNodeParticipant[I]}))}),i[p]=this.multiNodeParticipant[p]}),l>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}i=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)(this.param.incomingConditionItemList||[]).forEach(l=>{let p=this.param.vars||this.gateVars||{};p[l.itemName]||(p[l.itemName]="")});let t=[];const s=Array.isArray(this.param.nextNodeData)?this.param.nextNodeData[0]:this.param.nextNodeData;s.setPersonnel?t=s.assignees:t=(this.partNodeArr[s.id]||[]).map(l=>({id:l.id,name:l.name})),Object.keys(i).forEach(l=>{Array.isArray(i[l])&&(i[l]=i[l].filter(p=>p)),(!i[l]||Array.isArray(i[l])&&i[l].length<=0)&&delete i[l]});let n=s&&s.nodeType!="endEvent"&&(!s.branches||s.branches.length<=0),r=s&&s.nodeType!="endEvent"&&s.branches&&s.branches.length==1&&s.branches[0].nodeInfoDTO&&s.branches[0].nodeInfoDTO.nodeType!="endEvent",a=s&&s.nodeType!="endEvent"&&s.branches&&s.branches.length==1&&!s.branches[0].nodeInfoDTO&&s.branches[0].nodeType!="endEvent";if((n||r||a)&&!Object.keys(i).length){let p={};return n?p=s:r?p=s.branches[0].nodeInfoDTO:a&&(p=s.branches[0]),this.handleTips(p.nodeType?"\u8BF7\u9009\u62E9["+p.name+"]\u5BA1\u6279\u4EBA!":"\u8BF7\u9009\u62E9\u4E0B\u4E00\u8282\u70B9\u5BA1\u6279\u4EBA",!0,"error"),!1}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:i,digitalSignature:this.digitalSignature,attachment:this.attchLists}).then(l=>{l.code==200?(this.$emit("handleClosePopup1"),this.handleTips("\u63D0\u4EA4\u6210\u529F!",!1,"success"),window.top.postMessage("success","*"),this.handleFinal(),this.commentMsg=""):this.handleTips(l.msg,!0,"error")})},attachShow(e="\u529E\u7406"){const i=(this.param||{}).extendedProperties||[];let t=!1,s,n="";s=i.find(a=>a.name=="completeButtonAnnex"),n=s?s.value:"",n&&(t=!0);let r="";if(typeof n!="string"&&n!=null&&n.map(a=>{a.indexOf(this.operationLabel)!=-1&&(t=!0,r=a)}),r&&(n=r),t){const a=n.split(":");this.attachRule.required=a[1]=="true",this.attachRule.limit=a[2]==-1?999:a[2],this.otherList=n;let o=this.otherList.split(":");this.limit=o[2],this.requires=JSON.parse(o[1]),this.labels=o[0]}return this.labels,this.limit,t},makeDelegateTaskButtonAnnex(){},handleCallback(e){this.visible=!1,this.multiNodeParticipant[this.partObjId]=[],this.partNode[this.partObjId]=[],e.map((i,t)=>{this.multiNodeParticipant[this.partObjId].push(i.id),this.partNode[this.partObjId].push(i.name)})},handleCancel(){},getValues(e){this.attchLists=e},async uploadAttch(){if(this.attchLists.length>0){this.attchLists.map((t,s)=>{t.size=t.fileSize,t.format=t.name.substring(t.name.lastIndexOf(".")+1),t.uploadTime=t.createTime,t.processInstId=this.param.processInstId,t.taskInstId=this.param.taskInstId,t.name=t.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,i,t){this.textTips=e,this.statusTips=i,this.typeTips=t,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,i){this.digitalSignature=e,i&&(this.signVisible=!1,this.signConfirm(!1))},noticeFail(e){this.handleTips(e,!1,"success")},handleClose(){this.signVisible=!1}}},dp={};var gC=ye(mC,hC,fC,!1,yC,"5ea02048",null,null);function yC(e){for(let i in dp)this[i]=dp[i]}const hp=function(){return gC.exports}();var vC=function(){var e=this,i=e.$createElement,t=e._self._c||i;return t("div",{staticClass:"process-popup-content"},[t("div",{staticClass:"process-popup-content-msg"},[e.param.isMsg?t("div",[t("div",{staticClass:"process-radio-item",staticStyle:{color:"#1389ff","font-size":"14px"},on:{click:function(s){return e.handleOpenMsg()}}},[e._v(" \u5E38\u7528\u610F\u89C1 ")])]):e._e(),e._m(0),t("div",{staticClass:"process-pc-value"},[t("div",{staticClass:"process-popup-textarea"},[t("textarea",{directives:[{name:"model",rawName:"v-model",value:e.commentMsg,expression:"commentMsg"}],staticClass:"textarea-item",attrs:{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,'')"},domProps:{value:e.commentMsg},on:{input:function(s){s.target.composing||(e.commentMsg=s.target.value)}}}),t("div",{staticClass:"process-popup-textarea-num"},[e._v(" "+e._s(e.commentMsg.length)+"/200 ")])]),e.param.isMsg?t("div",{staticClass:"msg-btn"},[t("span",{staticClass:"msg-btn-click",on:{click:function(s){return e.handleMakeMsg()}}},[e._v("\u8BBE\u7F6E\u4E3A\u5E38\u7528\u610F\u89C1")])]):e._e()])]),e.taskNode&&e.taskNode.length>0&&e.taskNode[0].taskState!=4?t("div",{staticClass:"process-popup-content-person"},[e.nextNodeData.length?[e._l(e.nextNodeData,function(s){var n,r;return[e.isOption(s==null||(n=s.userTaskModelDTO)===null||n===void 0||(r=n.humanPerformer)===null||r===void 0?void 0:r.name)?[t("div",[e._v(" "+e._s(s.userTaskModelDTO.name)+" "),t("br"),e._v(" \u5BA1\u6279\u4EBA "),t("span",{staticClass:"process-pc-label--re"},[e._v("*")])]),t("div",{staticClass:"process-pc-value",on:{click:function(a){return e.handleOpenPopup(s.id)}}},[t("div",{staticClass:"process-pc-value--people"},[e.partNode[s.id]&&e.partNode[s.id].length?t("div",{staticClass:"process-pc-value--data"},e._l(e.partNode[s.id],function(a,o){return t("span",[e._v(" "+e._s(o==0?a:`,${a}`)+" ")])}),0):t("div",{staticClass:"process-pc-value--data",staticStyle:{color:"#888"}},[t("span",[e._v(" \u8BF7\u9009\u62E9\u5BA1\u6279\u4EBA ")])])])])]:e._e()]})]:e.outGatewayUserTaskModel.length?[e._l(e.outGatewayUserTaskModel,function(s){return[e.isOption(s.humanPerformerName)?[t("div",{staticStyle:{"font-size":"15px"}},[e._v(" "+e._s(s.name)+" ")]),t("div",{staticClass:"process-pc-label"},[e._v(" \u5BA1\u6279\u4EBA "),t("span",{staticClass:"process-pc-label--re"},[e._v("*")])]),t("div",{staticClass:"process-pc-value",on:{click:e.handleOpenPopup}},[t("div",{staticClass:"process-pc-value--people"},[e._v(" "+e._s(234)+" ")])])]:e._e()]})]:e._e()],2):e._e(),t("TopTips",{ref:"topTips",attrs:{text:e.textTips,statusTips:e.statusTips,type:e.typeTips}}),t("TopPopup",{ref:"TopPopup",attrs:{visible:e.visible,titleText:"\u9009\u4EBA",isDrawer:!0},on:{"update:visible":function(s){return e.visible=s}}},[t("div",{staticStyle:{height:"100%"}},[e.visible?t("departPerson",e._b({attrs:{isTitle:!1,visible:e.visible,request:e.param.request},on:{"update:visible":function(s){e.visible=s},callback:e.handleCallback,cancel:e.handleCancel}},"departPerson",e.entity,!1)):e._e()],1)]),e.labels=="\u62D2\u7EDD"?t("attchViews",{attrs:{limit:e.limit?e.limit:-1,requires:e.requires,request:e.param.request,linkUrl:e.param.linkUrl},on:{getValue:e.getValues}}):e._e(),t("TopPopup",{ref:"TopPopup",attrs:{visible:e.visibleListMsg,titleText:"\u5E38\u7528\u610F\u89C1",isDrawer:!0},on:{"update:visible":function(s){return e.visibleListMsg=s}}},[t("MsgList",{attrs:{visible:e.visibleListMsg,request:e.param.request,useInfo:e.param.userInfo},on:{handleTips:e.handleTips,handleMsg:e.handleMsg}})],1),t("TopPopup",{attrs:{titleText:"\u64CD\u4F5C\u6D88\u606F\u63D0\u793A",isTips:!0,context:`\u5C06${e.commentMsg}\u8BBE\u7F6E\u4E3A\u5E38\u7528\u610F\u89C1`,cancel:e.handleTipsCancel,comfig:e.handleTipsComfig,visible:e.visibleMsgComfig},on:{"update:visible":function(s){return e.visibleMsgComfig=s}}})],1)},AC=[function(){var e=this,i=e.$createElement,t=e._self._c||i;return t("div",{staticClass:"process-pc-label"},[e._v(" \u62D2\u7EDD\u7406\u7531\uFF1A "),t("span",{staticClass:"process-pc-label--re"},[e._v("*")])])}];const Aw="",bC={name:"cancel",props:{param:{type:Object,defalut:()=>{}}},components:{TopTips:mt,attchViews:xi,TopPopup:ze,departPerson:Pt.departPerson,MsgList:Is},watch:{param:{async handler(e,i){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((i,t)=>{this.multiNodeParticipant[this.partObjId].push(i.id),this.partNode[this.partObjId].push(i.name),this.entity.checkedArray.push({type:3,id:i.id,subjectId:i.subjectId})})},handleCancel(){},getValues(e){this.attchLists=e},async uploadAttch(){if(this.attchLists.length>0){this.attchLists.map((t,s)=>{t.size=t.fileSize,t.format=t.originFileName.substring(t.originFileName.lastIndexOf(".")+1),t.uploadTime=t.createTime,t.processInstId=this.param.processInstId,t.taskInstId=this.param.taskInstId,t.name=t.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,i,t){this.textTips=e,this.statusTips=i,this.typeTips=t,this.$refs.topTips.handleOpen()},handleFinal(){this.param.endFunction&&this.param.endFunction("\u62D2\u7EDD")}}},fp={};var CC=ye(bC,vC,AC,!1,wC,"3be26d49",null,null);function wC(e){for(let i in fp)this[i]=fp[i]}const xC=function(){return CC.exports}();var EC=function(){var e=this,i=e.$createElement,t=e._self._c||i;return t("div",{staticClass:"process-popup-content"},[t("div",{staticClass:"process-popup-content-msg"},[e._m(0),t("div",{staticClass:"process-pc-value",staticStyle:{display:"inline-block",width:"50%"}},[t("TopDownSelect",{attrs:{option:e.option,optionStyle:"width:calc(100% - 40px);left:20px;",maskShow:!1,border:""},on:{change:e.handleChange}})],1),e._m(1),t("div",{staticClass:"process-pc-value"},[t("div",{staticClass:"process-popup-textarea"},[t("textarea",{directives:[{name:"model",rawName:"v-model",value:e.commentMsg,expression:"commentMsg"}],staticClass:"textarea-item",attrs:{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,'')"},domProps:{value:e.commentMsg},on:{input:function(s){s.target.composing||(e.commentMsg=s.target.value)}}}),t("div",{staticClass:"process-popup-textarea-num"},[e._v(" "+e._s(e.commentMsg.length)+"/200 ")])])])]),t("TopTips",{ref:"topTips",attrs:{text:e.textTips,statusTips:e.statusTips,type:e.typeTips}}),t("TopPopup",{ref:"TopPopup",attrs:{visible:e.visibleListMsg,titleText:"\u5E38\u7528\u610F\u89C1",isDrawer:!0},on:{"update:visible":function(s){return e.visibleListMsg=s}}},[t("MsgList",{attrs:{visible:e.visibleListMsg,request:e.param.request,useInfo:e.param.userInfo},on:{handleTips:e.handleTips,handleMsg:e.handleMsg}})],1),t("TopPopup",{attrs:{titleText:"\u64CD\u4F5C\u6D88\u606F\u63D0\u793A",isTips:!0,context:`\u5C06${e.commentMsg}\u8BBE\u7F6E\u4E3A\u5E38\u7528\u610F\u89C1`,cancel:e.handleTipsCancel,comfig:e.handleTipsComfig,visible:e.visibleMsgComfig},on:{"update:visible":function(s){return e.visibleMsgComfig=s}}}),e.labels=="\u9000\u56DE"?t("attchViews",{attrs:{limit:e.limit?e.limit:-1,requires:e.requires,request:e.param.request,linkUrl:e.param.linkUrl},on:{getValue:e.getValues}}):e._e()],1)},TC=[function(){var e=this,i=e.$createElement,t=e._self._c||i;return t("div",{staticClass:"process-pc-label",staticStyle:{"background-color":"#fff",position:"relative","z-index":"199",display:"inline-block",width:"50%"}},[e._v(" \u9000\u56DE\u8282\u70B9\uFF1A "),t("span",{staticClass:"process-pc-label--re"},[e._v("*")])])},function(){var e=this,i=e.$createElement,t=e._self._c||i;return t("div",{staticClass:"process-pc-label"},[e._v(" \u9000\u56DE\u7406\u7531\uFF1A "),t("span",{staticClass:"process-pc-label--re"},[e._v("*")])])}];const bw="",IC={name:"backNode",props:{param:{type:Object,defalut:()=>{}}},components:{TopTips:mt,attchViews:xi,TopPopup:ze,departPerson:Pt.departPerson,TopDownSelect:$u,MsgList:Is},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,i){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(i=>({...i,name:i.nodeName,id:i.nodeId})).filter(i=>!(i.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((i,t)=>{this.multiNodeParticipant[this.partObjId].push(i.id),this.partNode[this.partObjId].push(i.name),this.entity.checkedArray.push({type:3,id:i.id,subjectId:i.subjectId})})},handleCancel(){},getValues(e){this.attchLists=e},async uploadAttch(){if(this.attchLists.length>0){this.attchLists.map((t,s)=>{t.size=t.fileSize,t.format=t.originFileName.substring(t.originFileName.lastIndexOf(".")+1),t.uploadTime=t.createTime,t.processInstId=this.param.processInstId,t.taskInstId=this.param.taskInstId,t.name=t.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,i,t){this.textTips=e,this.statusTips=i,this.typeTips=t,this.$refs.topTips.handleOpen()},handleFinal(){this.param.endFunction&&this.param.endFunction("\u9000\u56DE")}}},mp={};var kC=ye(IC,EC,TC,!1,NC,"0d20c2b4",null,null);function NC(e){for(let i in mp)this[i]=mp[i]}const _C=function(){return kC.exports}();var SC=function(){var e=this,i=e.$createElement,t=e._self._c||i;return t("div",{staticStyle:{height:"100%"}},[e.param.visible?t("departPerson",e._b({attrs:{isTitle:!1,request:e.param.request},on:{callback:e.handleCallback,cancel:e.handleCancel}},"departPerson",e.entity,!1)):e._e(),t("TopTips",{ref:"topTips",attrs:{text:e.textTips,statusTips:e.statusTips,type:e.typeTips}})],1)},PC=[];const Cw="",DC={name:"ccTask",props:{param:{type:Object,defalut:()=>{}}},components:{TopTips:mt,departPerson:Pt.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,i){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((i,t)=>{t==0?e=i:e=`${e} ${i}`}),await this.param.request.post("/bladex/blade-workflow/tis/createCCTask",{processInstId:this.param.processInstId,taskId:this.param.taskInstId,title:"",participant:e}).then(i=>{i.code==200?(this.$emit("handleClosecctaskTopPopup"),this.handleTips("\u63D0\u4EA4\u6210\u529F!",!1,"success"),window.top.postMessage("success","*"),this.handleFinal()):this.handleTips(i.msg,!0,"error")})},makeDelegateTaskButtonAnnex(){},handleCallback(e){this.visible=!1,this.multiNodeParticipant[this.partObjId]=[],this.partNode[this.partObjId]=[],e.map((i,t)=>{this.multiNodeParticipant[this.partObjId].push(i.id),this.partNode[this.partObjId].push(i.name),this.entity.checkedArray.push({type:3,id:i.id,subjectId:i.subjectId})}),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,i,t){this.textTips=e,this.statusTips=i,this.typeTips=t,this.$refs.topTips.handleOpen()},handleFinal(){this.param.endFunction&&this.param.endFunction("ccTask")}}},gp={};var OC=ye(DC,SC,PC,!1,MC,null,null,null);function MC(e){for(let i in gp)this[i]=gp[i]}const BC=function(){return OC.exports}();var RC=function(){var e=this,i=e.$createElement,t=e._self._c||i;return t("div",{staticClass:"process-btns"},[e.process.status=="todo"?[e.getButton("wf_pass")?t("button",{staticClass:"process-button success",attrs:{size:"default",disabled:e.loading},on:{click:function(s){e.$emit("examine",!0,["deleted"].includes(e.process.processIsFinished)?"\u91CD\u65B0\u63D0\u4EA4":e.getButton("wf_pass").name)}}},[["deleted"].includes(e.process.processIsFinished)?t("span",[e._v("\u91CD\u65B0\u63D0\u4EA4")]):t("span",[e._v(e._s(e.getButton("wf_pass").name))])]):e._e(),e.getButton("wf_reject")?t("button",{staticClass:"process-button danger",attrs:{size:"default",disabled:e.loading},on:{click:function(s){e.$emit("examine",!1,(e.backNodes.length>1,e.getButton("wf_reject").name))}}},[e.backNodes.length>1?t("span",[e._v(e._s(e.getButton("wf_reject").name))]):t("span",[e._v(e._s(e.getButton("wf_reject").name))])]):e._e(),e.uid==(e.process.variables||{}).applyUserId?t("button",{staticClass:"process-button info",attrs:{size:"default",disabled:e.loading},on:{click:function(s){return e.$emit("reminders")}}},[t("span",[e._v("\u50AC\u529E")])]):e._e(),e.getButton("wf_transfer")?t("button",{staticClass:"process-button primary",attrs:{size:"default",disabled:e.loading},on:{click:function(s){e.$emit("user-select",{type:"transfer",checkType:"radio",name:e.getButton("wf_transfer").name})}}},[e._v(e._s(e.getButton("wf_transfer").name))]):e._e(),e.getButton("wf_delegate")?t("button",{staticClass:"process-button warning",attrs:{size:"default",disabled:e.loading},on:{click:function(s){e.$emit("user-select",{type:"delegate",checkType:"radio",name:e.getButton("wf_delegate").name})}}},[e._v(" "+e._s(e.getButton("wf_delegate").name)+" ")]):e._e(),e.getButton("wf_rollback")?t("button",{staticClass:"process-button success",attrs:{size:"default",disabled:e.loading},on:{click:function(s){e.$emit("rollback",e.getButton("wf_rollback").name)}}},[e._v(" "+e._s(e.getButton("wf_rollback").name)+" ")]):e._e(),e.getButton("wf_terminate")?t("button",{staticClass:"process-button danger",attrs:{size:"default",disabled:e.loading},on:{click:function(s){return e.$emit("terminate")}}},[e._v(" "+e._s(e.getButton("wf_terminate").name)+" ")]):e._e(),e.process.isMultiInstance&&e.getButton("wf_add_instance")?t("button",{staticClass:"process-button primary",attrs:{size:"default",disabled:e.loading},on:{click:function(s){e.$emit("user-select",{type:"addInstance",checkType:"checkbox",name:e.getButton("wf_add_instance").name})}}},[e._v(" "+e._s(e.getButton("wf_add_instance").name)+" ")]):e._e(),e.getButton("wf_cctask")?t("button",{staticClass:"process-button info",attrs:{size:"default",disabled:e.loading},on:{click:function(s){e.$emit("circulate",e.getButton("wf_cctask").name)}}},[t("span",[e._v(e._s(e.getButton("wf_cctask").name))])]):e._e()]:e._e(),e.process.isOwner&&e.process.isReturnable&&!["deleted"].includes(e.process.processIsFinished)?t("button",{staticClass:"process-button danger",attrs:{size:"default",disabled:e.loading},on:{click:function(s){return e.$emit("withdraw","\u64A4\u9500")}}},[e._v(" \u64A4\u9500 ")]):e._e(),e.getButton("wf_print")?t("button",{staticClass:"process-button info",attrs:{size:"default",disabled:e.loading},on:{click:function(s){return e.$emit("print")}}},[e._v(" "+e._s(e.getButton("wf_print").name)+" ")]):e._e()],2)},LC=[];const ww="",FC={name:"nf-button",components:{TopTips:mt},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,i){e&&e.taskId&&this.request.get("/bladex/blade-workflow/process/getBackNodes",{params:{taskId:e.taskId}}).then(t=>{const s=t.data;this.backNodes=s})},deep:!0,immediate:!0}},methods:{handleTips(e,i,t){this.textTips=e,this.statusTips=i,this.typeTips=t,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(i=>i.buttonKey==e)}}},yp={};var VC=ye(FC,RC,LC,!1,jC,"128c5f57",null,null);function jC(e){for(let i in yp)this[i]=yp[i]}const QC={name:"TopProcess",components:{processBtns:function(){return VC.exports}(),TopTab:a0,TopPopup:ze,TopTips:mt,TopSumbitPopup:sp},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{currentProcess:{currentProcessOriginData:[],currentMan:[],currentFirstNode:{}},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,i){this.processIntId=this.processInstId||this.formData.processId||this.formData.processInstId,e&&(this.request.get("/bladex/blade-workflow/tis/getTaskModelDetail",{params:{processInstId:this.processInstId}}).then(t=>{var s;if(t.code==200){this.ProcessInsObj={...this.ProcessInsObj,...t.data},this.taskObj.buttons=this.ProcessInsObj.button||[],this.trackList=(((s=t.data)==null?void 0:s.flow)||[]).filter(a=>["userTask","candidate"].includes(a.historyActivityType));const n=((this.ProcessInsObj.process||{}).variables||{}).deptId;this.deptId=n;const r=(this.ProcessInsObj.process||{}).taskId;this.absoluteTaskId=r,this.approvalData=(t.data||{}).flow||[],this.processXml=((t.data||{}).process||{}).xml||"",this.handleGetProcessStatus(),this.$emit("get-process-data",this.ProcessInsObj)}}),this.getCurrentProcess(),this.getUserInfo())},immediate:!0,deep:!0},restartData:{handler(e,i){e&&(this.restartDataS=e)},immediate:!0,deep:!0},selfBtn:{handler(e,i){e&&e.length&&(this.selfBtnList=e)},immediate:!0,deep:!0},uid:{handler(e,i){e&&(this.userIdData=e)},immediate:!0,deep:!0}},mounted(){},computed:{actionBtn(){return this.operBtn.length>3?this.operBtn.slice(3):[]},operBtn(){let e=[];const i=this.ProcessInsObj.process,t=this.ProcessInsObj.button;if(!i||!t)return e;if(this.getButton("wf_pass"),this.needResubmit&&i.status=="todo"&&this.userIdData&&i.isOwner&&["deleted"].includes(i.processIsFinished)&&this.getButton("wf_pass")){let n={};n.name="\u91CD\u65B0\u63D0\u4EA4",n.btnProps={type:"default"},e.push(n),n.click=r=>{this.handlePass("\u91CD\u65B0\u63D0\u4EA4"),this.submitLoading=!0,this.handleActionClose()}}if(!this.isView&&i.status=="todo"&&this.getButton("wf_pass")){let n={};n.name=this.getButton("wf_pass").name,n.btnProps={type:"primary"},e.push(n),n.click=r=>{this.handlePass(this.getButton("wf_pass").name),this.submitLoading=!0,this.handleActionClose()}}if(!this.isView&&i.status=="todo"&&this.getButton("wf_reject")){let n={};n.name=this.getButton("wf_reject").name,n.btnProps={type:"danger"},e.push(n),n.click=r=>{this.handleCancel(this.getButton("wf_reject").name),this.submitLoading=!0,this.handleActionClose()}}if(this.selfBtnList&&this.selfBtnList.length&&this.selfBtnList.map(n=>{let r={};r.name=n.name,r.btnProps={type:n.type},e.push(r),r.click=n.click}),["wf_edit"].map(n=>{if(!this.isView&&i.status=="todo"&&this.getButton(n)){let r={};r.name=this.getButton(n).name,r.btnProps={},r.key=r.name,r.click=()=>{this.$emit("clickCustomButton",r.name)},e.push(r)}}),!this.isView&&i.status=="todo"&&this.getButton("wf_rollback")){let n={};n.name=this.getButton("wf_rollback").name,n.btnProps={type:"danger"},e.push(n),n.click=r=>{this.handleRollbackTask(this.getButton("wf_rollback").name),this.handleActionClose()}}if(!this.isView&&i.status=="todo"&&this.getButton("wf_cctask")){let n={};n.name=this.getButton("wf_cctask").name,n.btnProps={type:"default"},n.click=async r=>{this.handleCirculate(this.getButton("wf_cctask").name),this.handleActionClose()},e.push(n)}if(!this.isView&&i.status=="todo"&&this.getButton("wf_delegate")){let n={};n.name=this.getButton("wf_delegate").name,n.btnProps={type:"warning"},n.key="cc2",n.click=()=>{this.handleUserSelect({type:"delegate",checkType:"radio",name:this.getButton("wf_delegate").name}),this.handleActionClose()},e.push(n)}if(!this.isView&&i.status=="todo"&&this.getButton("wf_terminate")){let n={};n.name=this.getButton("wf_terminate").name,n.btnProps={type:"danger"},n.key="cc3",n.click=()=>{this.handleTerminateProcess(),this.handleActionClose()},e.push(n)}if(!this.isView&&i.status=="todo"&&this.getButton("wf_transfer")){let n={};n.name=this.getButton("wf_transfer").name,n.btnProps={type:"default"},n.click=r=>{this.handleUserSelect({type:"transfer",checkType:"radio",name:this.getButton("wf_transfer").name}),this.handleActionClose()},e.push(n)}if(!this.isView&&this.getButton("wf_add_instance")){let n={};n.name=this.getButton("wf_add_instance").name,n.btnProps={type:"primary"},n.click=r=>{this.handleUserSelect({type:"addInstance",checkType:"checkbox",name:this.getButton("wf_add_instance").name}),this.handleActionClose()},e.push(n)}if(i.pass==!1&&i.isOwner&&this.processIntId){let n={};n.name="\u50AC\u529E",n.btnProps={type:"default"},n.click=r=>{this.handleReminders("\u50AC\u529E"),this.handleActionClose()},e.push(n)}if(this.processIntId&&i.isOwner&&i.isReturnable&&!["deleted"].includes(i.processIsFinished)){let n={};n.name="\u64A4\u9500",n.btnProps={type:"default"},n.click=r=>{this.handleWithdrawTask("\u64A4\u9500"),this.handleActionClose()},e.push(n)}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:{async getCurrentProcess(){this.request.get("/bladex/blade-workflow/repository/queryTaskNodeList",{params:{processInstId:this.processIntId}}).then(e=>{if(e.code==200){const i={};if(i.currentProcessOriginData=e.data||[],i.currentProcessOriginData.length>0){let t=i.currentProcessOriginData[0],s=(t.currentName||"").split(","),n=(t.avatar||"").split(",");s=s.map((r,a)=>({realName:r,avatar:n[a]||"",phone:"",ancestorNames:[]})),i.currentMan=s,i.currentFirstNode=t,this.currentProcess=i}}else this.currentProcess={currentProcessOriginData:[],currentMan:[],currentFirstNode:{}}}).catch(e=>{console.error(e)})},getButton(e){const i=(this.ProcessInsObj.button||[]).find(t=>t.buttonKey==e);return i},handleActionBtn(e){switch(e.buttonKey){case"wf_pass":this.handleExamine(!0,["deleted"].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,i){e?this.handlePass(i):this.handleCancel(i),this.submitLoading=!0},async handlePass(e){this.operationParam.nodeLoading=!0,this.before?this.before().then(()=>{this.showOperation(hp,e)}):this.showOperation(hp,e),this.deptId&&(await this.getNextNode(this.deptId),this.operationParam={...this.operationParam,nodeLoading:!1,incomingConditionItemList:this.incomingConditionItemList,nextNodeData:this.nextTaskNode})},handleCancel(e){this.showOperation(xC,e)},handleUserSelect({type:e,checkType:i,name:t}){e=="transfer"?this.handleTransfer(t):e=="addInstance"&&this.handleAddInstance(t)},async handleTransfer(e){this.deptId&&await this.getNextNode(this.deptId),this.showOperation(U0,e)},async handleAddInstance(e){this.deptId&&await this.getNextNode(this.deptId),this.showOperation(R0,e)},handlePrint(){},handleRollbackTask(e){this.showOperation(_C,e)},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){this.showOperation(BC,e,this.request,this.taskObj.ccTaskButtonAnnex,"\u6284\u9001"),this.cctaskTopPopupTitle=e},async getNextNode(e){if(this.ProcessInsObj.process&&(this.ProcessInsObj.process||{}).taskParentId)return!0;let i;try{i=await this.request.get("/bladex/blade-workflow/tis/simulation",{params:{taskId:this.absoluteTaskId,processInstId:this.processIntId}})}catch(s){console.error(s),i={}}let t=i.data||{};i.code==200&&!i.data.evaluation&&(this.incomingConditionItemList=[],t.branches=await this.getOutgoingProcessNode(this.absoluteTaskId,i.data.id)),i.code==200&&i.data.evaluation&&i.data.branches&&i.data.branches.length>0&&i.data.branches[0].nodeType!="userTask"&&(this.incomingConditionItemList=[],t.branches=await this.getOutgoingProcessNode(this.absoluteTaskId,i.data.branches[0].id)),t=await this.getSelectFixData(t,e),this.nextTaskNode=t,this.operationParam={...this.operationParam,nextNodeData:(this.nextTaskNode||{}).id?[this.nextTaskNode]:[]}},async getNodeUser({deptId:e,intersection:i,userIds:t,postIds:s,deptIds:n}){return await this.request.post("/auth/user/getTaskAuditor",{deptId:e,intersection:i,userIds:t,postIds:s,deptIds:n})},handleGetHeight(){this.$nextTick(()=>{setTimeout(()=>{let e=document.getElementById("process-header"),i=document.getElementById("process-footer");this.bottomNum=i?i.scrollHeight+10:70,this.topNum=e?e.scrollHeight+10:144},1e3)})},handleTestsss(e,i){},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 i={processInstId:this.processInstId,taskInstId:this.taskNode.length?this.taskNode[0].taskId:"",vars:e,errorTip:!1},t=await this.request.post("/aws/tis/simulation",i);if(t.success){this.handleTips("",!1,"success"),this.nextNodeData=t.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 getSelectFixData(e,i){let t=JSON.parse(JSON.stringify(e));if(t.nodeType!="userTask"&&Array.isArray(t.branches))for(let s=0;s<t.branches.length;s++){let n=t.branches[s],r=n.nodeInfoDTO?n.nodeInfoDTO:n;try{r=await this.getSelectFixData(r,i)}catch(a){}n.nodeInfoDTO?n.nodeInfoDTO=r:n=r,t.branches[s]=n}else if(t.nodeType=="userTask"&&!t.setPersonnel){let s=Ju(t),n;try{n=await this.getNodeUser({deptId:i,intersection:s.intersection?1:0,userIds:s.userIds,postIds:s.postIds,deptIds:s.deptIds}),n.code==$enum.apiCode.success}catch(r){}n.code==200&&(t.userList=n.data)}return t},async getOutgoingProcessNode(e,i){let t=await this.request.get("/bladex/blade-workflow/tis/getOutgoingProcessNode",{params:{taskId:e,processNodeId:i}});if(t.code==200){if(t.data&&t.data.length){for(let s=0;s<t.data.length;s++){let n=t.data[s];n.incomingConditionItemList&&n.incomingConditionItemList.length!==0&&(n.nodeInfoDTO.incomingConditionItemList=n.incomingConditionItemList,this.incomingConditionItemList.push(...n.incomingConditionItemList)),n.nodeInfoDTO.nodeType!="userTask"&&(n.nodeInfoDTO.branches=await this.getOutgoingProcessNode(e,n.nodeInfoDTO.id))}return this.handleTips("",!1,"success"),t.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("/bladex/blade-workflow/repository/findTaskTodoInfoByTaskId",{params:{taskId:this.absoluteTaskId||""}}).then(e=>{e.code==200&&(this.processStatus={...e.data||{},...e.data.vars?e.data.vars:{},bizStatusName:e.data.taskState,currUserName:e.data.currentName,allUserNames:e.data.currentName}),this.handleGetHeight(),this.handleTips("",!1,"success")}).catch(e=>{this.handleGetHeight()}).finally(()=>{})},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,i,t,s,n){switch(this.beforeFunction&&(this.operationParam.beforeFunction=this.beforeFunction),this.operationParam.request=this.request,this.annexlabel=s||"fasdfsafdsa",this.titleText=i,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=i,this.operationParam.formData=this.formData,this.operationParam.ProcessInsObj=this.ProcessInsObj.process||{},this.operationParam.userInfo=this.user,this.nextTaskNode,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,n){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(i=>{this.processBusiness=i.data,this.request.get("/bladex/blade-workflow/repository/getAllProcessNode",{params:{processDefId:this.processBusiness.processDefId}}).then(t=>{this.getFirstProcessNode=t.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(t=>{this.handleTips("\u8BF7\u6C42\u51FA\u9519",!0,"error")})}).catch(i=>{this.handleTips("\u8BF7\u6C42\u51FA\u9519",!0,"error")})}).catch(e=>{this.handleTips("\u8BF7\u6C42\u51FA\u9519",!0,"error")})},handleTips(e,i,t){this.textTips=e,this.statusTips=i,this.typeTips=t,this.$refs.topTips.handleOpen()}}};var UC=function(){var e=this,i=e.$createElement,t=e._self._c||i;return t("div",[t("div",{staticClass:"process-warp"},[(e.formData.currentState||e.processStatus.bizStatusName||e.processStatus.status)&&!e.hideHeader?t("div",{ref:"processheader",staticClass:"process-main",attrs:{id:"process-header"}},[t("div",{staticClass:"process-ml-item border"},[t("div",{staticClass:"process-mli-name"},[e._v("\u6D41\u7A0B\u72B6\u6001")]),t("div",{staticClass:"process-mli-value"},[e.formData.currentState||e.processStatus.bizStatusName||e.processStatus.status?t("div",{staticClass:"process-mliv-dd",style:{background:e.getColor(e.formData.currentState||e.processStatus.bizStatusName||e.processStatus.status)}},[e._v(" "+e._s(e.formData.currentState||e.processStatus.bizStatusName||e.processStatus.status)+" ")]):e._e()])]),t("div",{staticClass:"process-ml-item border"},[t("div",{staticClass:"process-mli-name"},[e._v("\u6D41\u7A0B\u53D1\u8D77\u65F6\u95F4")]),t("div",{staticClass:"process-mli-value"},[t("span",[e._v(e._s(e.processStatus.createTime))])])]),e.processStatus.allUserNames&&e.processStatus.allUserNames.length?t("div",{staticClass:"process-ml-item"},[t("div",{staticClass:"process-mli-name"},[e._v("\u5BA1\u6279\u8282\u70B9")]),t("div",{staticClass:"process-mli-value",staticStyle:{width:"50%","text-align":"right"}},[t("span",{staticClass:"process-mliv-jd"},[e._v(e._s(`${e.processStatus.taskState==4?e.processStatus.currUserName:e.processStatus.allUserNames.toString()}\u5BA1\u6279\u4E2D`))])])]):e._e()]):e._e(),t("div",{staticClass:"process-card",style:{height:e.processCardHeight}},[t("TopTab",{attrs:{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}},[e.selfTapList&&e.selfTapList.length?e._l(e.selfTapList,function(s,n){return t("div",{key:n,staticStyle:{height:"100%"},attrs:{slot:s.slot},slot:s.slot},[e._t(s.slot,null,{processData:e.ProcessInsObj,currentProcess:e.currentProcess})],2)}):[t("div",{staticStyle:{height:"100%"},attrs:{slot:"default"},slot:"default"},[e._t("default",null,{processData:e.ProcessInsObj,currentProcess:e.currentProcess})],2),e._l(e.tapList,function(s,n){return t("div",{key:n,staticStyle:{height:"100%"},attrs:{slot:s.slot},slot:s.slot},[e._t(s.slot,null,{processData:e.ProcessInsObj,currentProcess:e.currentProcess})],2)})]],2)],1),e.isView?e._e():t("div",{staticClass:"process-btn",style:{bottom:e.processBtn},attrs:{id:"process-footer"}},[e.isAdditional?t("div",{staticClass:"footBtnRow"},[e._t("btn",null,{data:e.processStatus,processData:e.ProcessInsObj,currentProcess:e.currentProcess})],2):[e.isDocument&&(e.formData.currentState=="\u7F16\u6587\u53F7\u5957\u7EA2"||e.formData.currentState=="\u76D6\u7AE0")?[t("div",{staticClass:"top-button",style:e.getBtnStyle("default")},[e._v(" \u8BF7\u53BBPC\u7AEF\u5904\u7406\u8BE5\u6D41\u7A0B ")])]:[e.formData.currentState!="\u5DF2\u5B8C\u6210"||e.processStatus.status!="\u5DF2\u5B8C\u6210"||e.processStatus.bizStatusName!="\u5DF2\u5B8C\u6210"?[e._l(e.operBtn,function(s,n){return[n<3?t("div",{key:s.name,staticClass:"top-button",style:e.getBtnStyle((s.btnProps.type||"default").toString()),on:{click:function(r){return s.click(s.name)}}},[e._v(" "+e._s(s.name)+" ")]):e._e()]})]:e._e(),e.operBtn.length>3&&e.actionBtn&&e.actionBtn.length?t("div",{staticClass:"elips",on:{click:e.handleActionOpen}},[t("div",{staticClass:"circle"}),t("div",{staticClass:"circle"}),t("div",{staticClass:"circle"})]):e._e()]]],2)]),t("TopPopup",{ref:"TopPopup1",attrs:{cancel:e.handleCancelPopup,comfig:e.handleComfig,titleText:e.titleText,visible:e.TopPopup1,className:"toppopup-component"},on:{"update:visible":function(s){return e.TopPopup1=s}}},[t(e.operationCom,{key:e.operationComKey,ref:"operationRef",tag:"component",attrs:{param:e.operationParam},on:{handleClosePopup1:e.handleClosePopup1}},[t("div",{attrs:{slot:"completeSlot"},slot:"completeSlot"},[e._t("completeSlot",null,{processData:e.ProcessInsObj,currentProcess:e.currentProcess})],2)])],1),t("TopPopup",{ref:"TopPopup2",attrs:{titleText:e.titleText,isTips:!0,context:e.popupContext,cancel:e.handleTipsCancel,comfig:e.handleTipsComfig}}),t("TopTips",{ref:"topTips",attrs:{text:e.textTips,statusTips:e.statusTips,type:e.typeTips}}),e.actionBtn&&e.actionBtn.length||e.taskNodeList&&e.taskNodeList.length?t("div",{staticClass:"top-elips",style:e.actionShow?"transform: translateY(0)":"transform: translateY(100%)"},[e.taskNodeShow?e._l(e.taskNodeList,function(s){return t("div",{key:s.taskId,staticClass:"top-elips-items",on:{click:function(n){return e.handleGet(s)}}},[e._v(" "+e._s(s.name)+" ")])}):e._l(e.actionBtn,function(s){return t("div",{key:s.name,staticClass:"top-elips-items",on:{click:function(n){return s.click(s.name)}}},[e._v(" "+e._s(s.name)+" ")])}),t("div",{staticClass:"top-elips-items top-elips-items--cancel",on:{click:e.handleActionClose}},[e._v(" \u53D6\u6D88 ")])],2):e._e(),t("div",{staticClass:"top-elips-mask",style:e.actionShow?"visibility: visible; opacity: .7;":"visibility: hidden; opacity: 0;",on:{click:e.handleActionClose}}),t("TopSumbitPopup",e._b({ref:"actionPop",attrs:{visible:e.visibleSong,request:e.request,appId:e.processStatus.appId,id:e.formData.businessKey,resubmit:!0,selfList:e.selfList,isCheckType:e.isCheckType,isOrgType:e.isOrgType,isCodeType:e.isCodeType},on:{"update:visible":function(s){e.visibleSong=s},successFn:e.endFunction,change:e.handleTestsss}},"TopSumbitPopup",e.restartDataS,!1)),t("TopPopup",{ref:"cctaskTopPopup",attrs:{titleText:e.cctaskTopPopupTitle,visible:e.cctaskTopPopup,isDrawer:!0},on:{"update:visible":function(s){return e.cctaskTopPopup=s}}},[t(e.operationCom,{ref:"cctaskOperationRef",tag:"component",attrs:{param:e.operationParam},on:{handleClosecctaskTopPopup:e.handleClosecctaskTopPopup}},[t("div",{attrs:{slot:"completeSlot"},slot:"completeSlot"},[e._t("completeSlot",null,{processData:e.ProcessInsObj,currentProcess:e.currentProcess})],2)])],1)],1)},GC=[];const Ew="",vp={};var qC=ye(QC,UC,GC,!1,JC,"a4fed71a",null,null);function JC(e){for(let i in vp)this[i]=vp[i]}const HC=function(){return qC.exports}(),Ap={name:"ddy-process-h5",version:"1.0.1-rc.3.33",description:"> app\u7AEF \u6D41\u7A0B\u63D2\u4EF6",main:"./ddy-process-h5.umd.cjs",style:"./style.css",type:"module",exports:{".":{import:"./ddy-process-h5.js",require:"./ddy-process-h5.umd.cjs"},"./style.css":{import:"./style.css",require:"./style.css"}},scripts:{test:'echo "Error: no test specified" && exit 1',postinstall:"node scripts/postinstall.mjs"},devDependencies:{"checked-pick-app":"1.6.7",dsbridge:"^3.1.4"},dependencies:{"checked-pick-app":"1.6.7",dsbridge:"^3.1.4"},author:"",license:"ISC"};console.info("%c\u26A1"+Ap.name+"%c v"+Ap.version,"background: linear-gradient(135deg, #ff3939ff, #ffbe5cff); color: white; padding: 9px 4px 9px 4px; border-radius: 3px 0 0 3px;font-size: 12px;","background: #5100ffff; color: white; padding: 9px 6px 9px 4px; border-radius: 0px 3px 3px 0px;font-size: 12px;"),ot.TopProcess=HC,ot.TopSumbitPopup=sp,ot.ViewAttchList=oc,ot.attchViews=xi,Object.defineProperties(ot,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}})});
26
+ <svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" width="`+l.width+'" height="'+l.height+'" viewBox="'+l.x+" "+l.y+" "+l.width+" "+l.height+'" version="1.1">'+o+a+"</svg>"}catch(s){t=s}if(this._emit("saveSVG.done",{error:t,svg:i}),t)throw t;return{svg:i}},we.prototype._setDefinitions=function(e){this._definitions=e},we.prototype.getModules=function(){return this._modules},we.prototype.clear=function(){!this.getDefinitions()||Ki.prototype.clear.call(this)},we.prototype.destroy=function(){Ki.prototype.destroy.call(this),Ui(this._container)},we.prototype.on=function(e,i,t,s){return this.get("eventBus").on(e,i,t,s)},we.prototype.off=function(e,i){this.get("eventBus").off(e,i)},we.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=ft(e)),e.appendChild(this._container),this._emit("attach",{}),this.get("canvas").resized()},we.prototype.getDefinitions=function(){return this._definitions},we.prototype.detach=function(){const e=this._container,i=e.parentNode;!i||(this._emit("detach",{}),i.removeChild(e))},we.prototype._init=function(e,i,t){const s=t.modules||this.getModules(t),n=t.additionalModules||[],r=[{bpmnjs:["value",this],moddle:["value",i]}],a=[].concat(r,s,n),o=z(Um(t,["additionalModules"]),{canvas:z({},t.canvas,{container:e}),modules:a});Ki.call(this,o),t&&t.container&&this.attachTo(t.container)},we.prototype._emit=function(e,i){return this.get("eventBus").fire(e,i)},we.prototype._createContainer=function(e){const i=Ze('<div class="bjs-container"></div>');return Pe(i,{width:Fu(e.width),height:Fu(e.height),position:e.position}),i},we.prototype._createModdle=function(e){const i=z({},this._moddleExtensions,e.moddleExtensions);return new tb(i)},we.prototype._modules=[];function Sn(e,i){return e.warnings=i,e}function gb(e){const t=/unparsable content <([^>]+)> detected([\s\S]*)$/.exec(e.message);return t&&(e.message="unparsable content <"+t[1]+"> detected; this may indicate an invalid BPMN 2.0 diagram file"+t[2]),e}const yb={width:"100%",height:"100%",position:"relative"};function Fu(e){return e+(Ft(e)?"px":"")}function vb(e,i){return i&&ht(e.diagrams,function(t){return t.id===i})||null}function Ab(e){const t='<a href="http://bpmn.io" target="_blank" class="bjs-powered-by" title="Powered by bpmn.io" >'+Bu+"</a>",s=Ze(t);Pe(ft("svg",s),Ru),Pe(s,Lu,{position:"absolute",bottom:"15px",right:"15px",zIndex:"100"}),e.appendChild(s),mi.bind(s,"click",function(n){mb(),n.preventDefault()})}function Xi(e){we.call(this,e)}At(Xi,we),Xi.prototype._modules=[xy,Bc,By,Wc,ev],Xi.prototype._moddleExtensions={};var bb=/^djs-cursor-.*$/;function Vu(e){var i=fi(document.body);i.removeMatching(bb),e&&i.add("djs-cursor-"+e)}function Cb(){Vu(null)}var wb=5e3;function xb(e,i){i=i||"element.click";function t(){return!1}return e.once(i,wb,t),function(){e.off(i,t)}}function ju(e,i){return{x:e.x-i.x,y:e.y-i.y}}function Qu(e){return e.pointers&&e.pointers.length&&(e=e.pointers[0]),e.touches&&e.touches.length&&(e=e.touches[0]),e?{x:e.clientX,y:e.clientY}:null}var Eb=15;function Uu(e,i){var t;function s(o){return a(o.originalEvent)}e.on("canvas.focus.changed",function(o){o.focused?e.on("element.mousedown",500,s):e.off("element.mousedown",s)});function n(o){var l=t.start,p=t.button,h=Qu(o),f=ju(h,l);if(!t.dragging&&Tb(f)>Eb&&(t.dragging=!0,p===0&&xb(e),Vu("grab")),t.dragging){var A=t.last||t.start;f=ju(h,A),i.scroll({dx:f.x,dy:f.y}),t.last=h}o.preventDefault()}function r(o){mi.unbind(document,"mousemove",n),mi.unbind(document,"mouseup",r),t=null,Cb()}function a(o){if(!Nc(o.target,".djs-draggable")){var l=o.button;if(!(l>=2||o.ctrlKey||o.shiftKey||o.altKey))return t={button:l,start:Qu(o)},mi.bind(document,"mousemove",n),mi.bind(document,"mouseup",r),!0}}this.isActive=function(){return!!t}}Uu.$inject=["eventBus","canvas"];function Tb(e){return Math.sqrt(Math.pow(e.x,2)+Math.pow(e.y,2))}const xa={__init__:["moveCanvas"],moveCanvas:["type",Uu]};function Gu(e){this._counter=0,this._prefix=(e?e+"-":"")+Math.floor(Math.random()*1e9)+"-"}Gu.prototype.next=function(){return this._prefix+ ++this._counter};var Ib=new Gu("tt");function kb(e){var i=Ze('<div class="djs-tooltip-container" />');return Pe(i,{position:"absolute",width:"0",height:"0"}),e.insertBefore(i,e.firstChild),i}function Nb(e,i,t){Pe(e,{left:i+"px",top:t+"px"})}function Ea(e,i){e.style.display=i===!1?"none":""}var qu="djs-tooltip",Ta="."+qu;function Qe(e,i){this._eventBus=e,this._canvas=i,this._ids=Ib,this._tooltipDefaults={show:{minZoom:.7,maxZoom:5}},this._tooltips={},this._tooltipRoot=kb(i.getContainer());var t=this;Qi.bind(this._tooltipRoot,Ta,"mousedown",function(s){s.stopPropagation()}),Qi.bind(this._tooltipRoot,Ta,"mouseover",function(s){t.trigger("mouseover",s)}),Qi.bind(this._tooltipRoot,Ta,"mouseout",function(s){t.trigger("mouseout",s)}),this._init()}Qe.$inject=["eventBus","canvas"],Qe.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 i=this._ids.next();return e=z({},this._tooltipDefaults,e,{id:i}),this._addTooltip(e),e.timeout&&this.setTimeout(e),i},Qe.prototype.trigger=function(e,i){var t=i.delegateTarget||i.target,s=this.get(Ic(t,"data-tooltip-id"));!s||(e==="mouseover"&&s.timeout&&this.clearTimeout(s),e==="mouseout"&&s.timeout&&(s.timeout=1e3,this.setTimeout(s)))},Qe.prototype.get=function(e){return typeof e!="string"&&(e=e.id),this._tooltips[e]},Qe.prototype.clearTimeout=function(e){if(e=this.get(e),!!e){var i=e.removeTimer;i&&(clearTimeout(i),e.removeTimer=null)}},Qe.prototype.setTimeout=function(e){if(e=this.get(e),!!e){this.clearTimeout(e);var i=this;e.removeTimer=setTimeout(function(){i.remove(e)},e.timeout)}},Qe.prototype.remove=function(e){var i=this.get(e);i&&(Ui(i.html),Ui(i.htmlContainer),delete i.htmlContainer,delete this._tooltips[i.id])},Qe.prototype.show=function(){Ea(this._tooltipRoot)},Qe.prototype.hide=function(){Ea(this._tooltipRoot,!1)},Qe.prototype._updateRoot=function(e){var i=e.scale||1,t=e.scale||1,s="matrix("+i+",0,0,"+t+","+-1*e.x*i+","+-1*e.y*t+")";this._tooltipRoot.style.transform=s,this._tooltipRoot.style["-ms-transform"]=s},Qe.prototype._addTooltip=function(e){var i=e.id,t=e.html,s,n=this._tooltipRoot;t.get&&t.constructor.prototype.jquery&&(t=t.get(0)),dt(t)&&(t=Ze(t)),s=Ze('<div data-tooltip-id="'+i+'" class="'+qu+'">'),Pe(s,{position:"absolute"}),s.appendChild(t),e.type&&fi(s).add("djs-tooltip-"+e.type),e.className&&fi(s).add(e.className),e.htmlContainer=s,n.appendChild(s),this._tooltips[i]=e,this._updateTooltip(e)},Qe.prototype._updateTooltip=function(e){var i=e.position,t=e.htmlContainer;Nb(t,i.x,i.y)},Qe.prototype._updateTooltipVisibilty=function(e){U(this._tooltips,function(i){var t=i.show,s=i.htmlContainer,n=!0;t&&((t.minZoom>e.scale||t.maxZoom<e.scale)&&(n=!1),Ea(s,n))})},Qe.prototype._init=function(){var e=this;function i(t){e._updateRoot(t),e._updateTooltipVisibilty(t),e.show()}this._eventBus.on("canvas.viewbox.changing",function(t){e.hide()}),this._eventBus.on("canvas.viewbox.changed",function(t){i(t.viewbox)})};const Ia={__init__:["tooltips"],tooltips:["type",Qe]},_b=e=>{var i=Object.prototype.toString,t={"[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":t[i.call(e)]},ka=e=>{var i=_b(e),t;if(i==="array")t=[];else if(i==="object")t={};else return e;if(i==="array")for(var s=0,n=e.length;s<n;s++)t.push(ka(e[s]));else if(i==="object")for(var r in e)t[r]=ka(e[r]);return t};function Sb(e,i="YYYY-MM-DD HH:mm:ss"){const t=new Date(e),s=t.getFullYear(),n=t.getMonth()+1,r=t.getDate(),a=t.getHours(),o=t.getMinutes(),l=t.getSeconds(),p=t.getDay(),f={YYYY:s,MM:n,DD:r,HH:a,mm:o,ss:l,ww:["\u65E5","\u4E00","\u4E8C","\u4E09","\u56DB","\u4E94","\u516D"][p]};for(let A in f)i=i.replace(A,f[A]);return i}function Pb(e){e=ka(e);const i={};e.forEach(s=>{i[s.historyActivityId]?i[s.historyActivityId].push(s):i[s.historyActivityId]=[s]});for(let s in i){const n=i[s];if(n.length>1){const r=e.findLast(a=>a.historyActivityId==s);r.assigneeName=Array.from(new Set(n.map(a=>a.assigneeName))).join("/")}}const t=[];return e.forEach(s=>{let{assigneeName:n,createTime:r,endTime:a,comments:o}=s;/Safari/.test(navigator.userAgent)&&!/Chrome/.test(navigator.userAgent)&&(r=r.replace(/-/g,"/"),a=a.replace(/-/g,"/"));const l={id:s.historyActivityId,class:!a&&s.historyActivityType!="candidate"?"nodePrimary":""};let p="";if(n||o&&o.length>0){if(p=`<span title='${n}'>${n}</span><br>`,r&&(p+=`<span title='${r}'>${Sb(r,"YYYY-MM-DD HH:mm")}</span><br>`),o&&o.length>0){let f,{type:A,fullMessage:I}=o.find(F=>F.action=="AddComment")||{};A=="assigneeComment"&&(f="\u53D8\u66F4\u5BA1\u6838\u4EBA\uFF1A"+I,l.class="nodeWarn"),A=="dispatchComment"&&(f="\u8C03\u5EA6\uFF1A"+I,l.class="nodeWarn"),A=="transferComment"&&(f="\u8F6C\u529E\uFF1A"+I,l.class="nodeWarn"),A=="delegateComment"&&(f="\u59D4\u6258\uFF1A"+I,l.class="nodeWarn"),A=="rollbackComment"&&(f="\u6307\u5B9A\u56DE\u9000\uFF1A"+I,l.class="nodeError"),A=="terminateComment"&&(f="\u7EC8\u6B62\uFF1A"+I,l.class="nodeError"),(A=="addMultiInstanceComment"||(A||"").includes("\u52A0\u7B7E"))&&(f="\u52A0\u7B7E\uFF1A"+I,l.class="nodeWarn"),A=="deleteMultiInstanceComment"&&(f="\u51CF\u7B7E\uFF1A"+I,l.class="nodeError"),A=="withdrawComment"&&(f="\u64A4\u9500\uFF1A"+I,l.class="nodeWarn"),A=="deleteProcessComment"&&(f="\u5220\u9664\u6D41\u7A0B\uFF1A"+I,l.class="nodeError"),A=="cancelProcessComment"&&(f="\u62D2\u7EDD\uFF1A"+I,l.class="nodeError"),A=="comment"&&(f="\u5BA1\u6279\uFF1A"+I,l.class="nodeSuccess"),f&&(p+=`<span title='${f}'>${f}</span>`)}l.tooltip=p}s.historyActivityType=="sequenceFlow"?l.class="lineWarn":!l.class&&s.historyActivityType!="candidate"&&(l.class="nodeSuccess");const h=t.findIndex(f=>f.id==s.historyActivityId);h!=-1?t.splice(h,1,l):t.push(l)}),t}function Ju(e){const i=[],t=[],s=[];return e.routeTxt&&e.routeTxt.length>0&&e.routeTxt.forEach(n=>{n.type==="user"?i.push(...n.ids.filter(r=>r&&r.trim()!=="")):n.type==="post"?t.push(...n.ids):n.type==="dept"&&s.push(...n.ids)}),{intersection:e.assigneeRetain=="true"?1:0,userIds:[...new Set(i)],postIds:[...new Set(t)],deptIds:[...new Set(s)]}}var Db=function(){var e=this,i=e.$createElement,t=e._self._c||i;return t("div",{ref:"container",staticClass:"bpmn-look"})},Ob=[];const tw="",Mb={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 i=e;i&&this.isXml&&this.loadXml(i)},immediate:!0}},methods:{async getXml(e){let i={},t="";try{i=await api.repository.getXmlByProcessDefId({processDefId:e}),i.code==200&&(t=i.data)}catch(s){console.error(s)}return t},async initViewer(){this.viewer&&this.viewer.destroy();const e=Object.prototype.toString.call(Xi)=="[object Function]"?Xi:Xi.default,i=Object.prototype.toString.call(Ia)=="[object Object]"?Ia:Ia.default,t=Object.prototype.toString.call(xa)=="[object Object]"?xa:xa.default;this.viewer=new e({container:this.$refs.container,additionalModules:[i,t]}),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"),i=e._svg,t=document.querySelector(".viewport"),s=document.querySelector(".djs-tooltip-container");let n=!1,r,a,o=0,l=0,p=0,h=0;i.addEventListener("touchstart",f=>{n=!0;const A=f.touches[0];r=A.clientX,a=A.clientY;const I=t.getAttribute("transform").match(/matrix\(([^)]+)\)/)[1].split(/\s*,\s*|\s+/);o=parseFloat(I[4]),l=parseFloat(I[5]);const F=this.getTransformMatrix(s.style.transform);this.isAdd?(p=parseFloat(F[4]),h=parseFloat(F[5])):(p=parseFloat(F[4])+30,h=parseFloat(F[5])+16,this.isAdd=!0)}),i.addEventListener("touchmove",f=>{if(!n)return;const A=f.touches[0],I=A.clientX-r,F=A.clientY-a;l!==void 0&&(t.setAttribute("transform",`matrix(0.679276 0 0 0.679276 ${o+I} ${l+F})`),s.setAttribute("style",`position: absolute; width: 0px; height: 0px; transform: matrix(0.615, 0, 0, 0.615, ${p+I}, ${h+F});`)),e._cachedViewbox&&(e._cachedViewbox.x=I,e._cachedViewbox.y=F),f.preventDefault()}),i.addEventListener("touchend",()=>{n=!1})},getTransformMatrix(e){if(!e||e==="none")return[1,0,0,1,0,0];const i=e.match(/matrix(3d)?\(([^)]+)\)/i);if(!i)return null;const t=i[2].split(/\s*,\s*|\s+/).map(parseFloat);return i[1]!=="3d"&&t.length===6||i[1]==="3d"&&t.length===16?t:null},setNodeColor(e){const i=this.viewer.get("canvas"),t=this.viewer.get("elementRegistry"),s=this.viewer.get("tooltips");e.forEach(n=>{if(n.id&&n.class&&i.addMarker(n.id,n.class),n.id&&n.tooltip){const r=t.get(n.id);if(r){let{x:a,y:o,type:l}=r;["bpmn:StartEvent","bpmn:EndEvent"].includes(l)?(a=a-45,o=o+65):["bpmn:UserTask"].includes(l)&&(a=a-10,o=o+90),s.add({position:{x:a,y:o},html:n.tooltip})}}})},addApprovalData(){if(!this.approvalData||this.approvalData.length==0)return;const e=Pb(this.approvalData);e&&e.length>0&&this.setNodeColor(e)},async loadXml(e){this.viewer||await this.initViewer();try{const{warnings:i}=await this.viewer.importXML(e);i.length&&this.$emit("warning",i)}catch(i){this.$emit("error",{message:"XML \u52A0\u8F7D\u5931\u8D25",detail:i.message}),console.error("XML \u52A0\u8F7D\u5931\u8D25:",i)}}},beforeDestroy(){window.removeEventListener("resize",this.canvasResize),this.viewer&&this.viewer.destroy()}},Hu={};var Bb=ye(Mb,Db,Ob,!1,Rb,"e21f06b8",null,null);function Rb(e){for(let i in Hu)this[i]=Hu[i]}const Ku=function(){return Bb.exports}(),Lb="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAMgAAADICAYAAACtWK6eAAAAAXNSR0IArs4c6QAAByFJREFUeF7t19HJLEUUhdHpQEzEOMREjOMmIsZhIgYyou8KvTecA1Xrgm+zLXrV/9H08/GPAIH/FHjYECDw3wIC8ddB4H8EBOLPg4BA/A0QyAS8QTI3q0sEBHLJRXvMTEAgmZvVJQICueSiPWYmIJDMzeoSAYFcctEeMxMQSOZmdYmAQC65aI+ZCQgkc7O6REAgl1y0x8wEBJK5WV0iIJBLLtpjZgICydysLhEQyCUX7TEzAYFkblaXCAjkkov2mJmAQDI3q0sEBHLJRXvMTEAgmZvVJQICueSiPWYmIJDMrVp9v9+fP5/PHy//J788z/Pny42flwICKQGTuUAStZ2NQBbcBbKAHh4pkBCumQmk0ZvdCmTW+9/TBLKAHh4pkBCumQmk0ZvdCmTW2xtkwbs5UiCNXrj1BgnhFmYCWUAXyAJ6eKRAQrhmJpBGb3YrkFlv3yAL3s2RAmn0wq03SAi3MBPIArpAFtDDIwUSwjUzgTR6s1uBzHr7Blnwbo4USKMXbr1BQriFmUAW0AWygB4eKZAQrpkJpNGb3Qpk1ts3yIJ3c6RAGr1w6w0Swi3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QBQhIkEQzTJ8CBMSnG62CKEBAgiSaYfoUICA+3WgVRAECEiTRDNOnAAHx6UarIAoQkCCJZpg+BQiITzdaBVGAgARJNMP0KUBAfLrRKogCBCRIohmmTwEC4tONVkEUICBBEs0wfQoQEJ9utAqiAAEJkmiG6VOAgPh0o1UQBQhIkEQzTJ8CBMSnG62CKEBAgiSaYfoUICA+3WgVRAECEiTRDNOnAAHx6UarIAoQkCCJZpg+BQiITzdaBVGAgARJNMP0KUBAfLrRKogCBCRIohmmTwEC4tONVkEUICBBEs0wfQoQEJ9utAqiAAEJkmiG6VPgf/UDKvbyCmTdAAAAAElFTkSuQmCC",Vb={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 Lb},loading(){return Fb},success(){return Na}},watch:{type:{handler(e,i){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}}};var jb=function(){var e=this,i=e.$createElement,t=e._self._c||i;return e.show?t("div",[e.statusTips?t("div",{staticClass:"top-tipss",style:e.show?"visibility: visible; opacity: 1;":"visibility: hidden; opacity: 0;"},[t("div",{staticClass:"top-tipss-status"},[e.type=="loading"?t("div",{staticClass:"top-tipss-loadinig"},[t("img",{attrs:{src:e.loading}}),e.text?t("div",{staticClass:"top-tipss-status-text"},[e._v(" "+e._s(e.text)+" ")]):e._e()]):e._e(),e.type=="success"?t("div",{staticClass:"top-tipss-success"},[t("img",{attrs:{src:e.success}}),e.text?t("div",{staticClass:"top-tipss-status-text"},[e._v(" "+e._s(e.text)+" ")]):e._e()]):e._e(),e.type=="error"?t("div",{staticClass:"top-tipss-error"},[t("img",{attrs:{src:e.error}}),e.text?t("div",{staticClass:"top-tipss-status-text"},[e._v(" "+e._s(e.text)+" ")]):e._e()]):e._e()])]):t("div",{staticClass:"top-tipss",style:e.show?"visibility: visible; opacity: 1;":"visibility: hidden; opacity: 0;"},[e.text?t("div",{staticClass:"top-tipss-text"},[e._v(e._s(e.text))]):e._e()]),t("div",{staticClass:"top-tipss-mask",style:e.show&&e.statusTips?"visibility: visible; opacity: .7;":"visibility: hidden; opacity: 0;"})]):e._e()},Qb=[];const iw="",Wu={};var Ub=ye(Vb,jb,Qb,!1,Gb,"79d9d777",null,null);function Gb(e){for(let i in Wu)this[i]=Wu[i]}const mt=function(){return Ub.exports}(),qb="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAEgAAABICAYAAABV7bNHAAAAAXNSR0IArs4c6QAAEmBJREFUeF7tnAt0VdWZx397n3PvDUlISHgEkJfDGxXRVnGqq2o7PtvB1hl0fFun6ji+xhfgzCioq5WA2hFxptUOY23VqlNf06laW7VrVUfs8gEqgmBFRZ4hIRBIcu85e8/69j4HriEJAYLiY691181Ncs/Z+3/++/u+/b0U3T1mWM0AAlZhmaEirFUoZZlus+WlDM8ZJqKpsJZhCiYAxmgC5T8Pk+lYWG4Vy7UhBrSF15ViOYaNrZr5TVt4lxtUfuu1Z9iQAShWETNDme5ckuqWiwkIdxGyEsUMCg6QOTbXazMDAs1wYD9jGKk1gwJFX6UIUZQrS7W7v0AI5fJKAGqy0IQVrMAq6rE0WUsUW9YZwwqtWQq8FRve3VDGKi5TrQ6wGWRQGKYTu3ns5tg9gGRCD6NZ5Njinlz1HFtBK/thOUwZJmjNKGCcggoDthChYguRvIqetTFCJb8arf0rHaGGUEGgIBNiNcjKNwKLjOEdq3kdxUvkeKv+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SdZ1B7UjfpqtKnB/2N4UQUVwFjlEoaLFmMa7CknH2iXEcp7d633r+zBkvSXCl5SaWQdSFxabCkXJcXAUbUgTRYulVrfvPpN1hKQWqnRVfVTFupDOMIOSwwTLAwWmnGttuiqyhVRhb9sRZdRY9OmNJeiy5reFvBklhadEW8ZDWLGqapxq3G307Km/aeffcwyPcWChB1mjR5GzHH5ta1MjCMGI5mnIGRGgYFmr4KpHawp1JJkzd/5tm+yVsyY2uRcu1N0vYsNqwzsELDUgyLopB3++ZYuWyvbPLW0XbrpE1gFg5DUYFvC3iQy+U0rp3XMKUZ6hSmL9Nejnb5nfK315A2gZaNeXjpk2wT+P9KELohNtx5+AAAAABJRU5ErkJggg==",Jb={name:"attchViews",components:{TopTips:mt,PreviewImage:on,PreView:Xl,TopPopup:ze},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,i){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 qb},del(){return $l},doc(){return ec},file(){return tc},image(){return ic},pdf(){return sc},xls(){return nc},zip(){return rc}},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,i){this.handleTips("\u4E0A\u4F20\u4E2D",!0,"loading");const t=Array.from(e.target.files);document.getElementById("fileUp").value="";let s=0,n=this.haveCount>t.length?t.length:this.haveCount;try{for(let r=0;r<n;r++)if(this.extension.includes(t[r].name.substring(t[r].name.lastIndexOf(".")+1))){const a=new FormData;a.append("file",t[r]);const o=await this.request.post("/file/upload",a,{headers:{"Content-Type":"multipart/form-data"}});if(o.code===200){if(this.filesArr.length>0){for(let l=0;l<this.filesArr.length;l++)if(o.name==this.filesArr[l].name&&s++,this.filesArr[l].name.includes(`(${s})`)&&s++,s>0){let p=o.name.lastIndexOf(".");o.name=`${o.name.substring(0,p)} (${s}) .${o.name.substring(o.name.lastIndexOf(".")+1)}`}}this.filesArr.push(o.data)}else{this.handleTips("\u4E0A\u4F20\u5931\u8D25",!0,"error"),this.viewImage();return}}else{this.handleTips(`\u6587\u4EF6${t[r].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,i){if(this.deletFn){if(this.deletFn(i)===!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,i){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((i,t)=>{this.imgIcon.includes(i.name.substring(i.name.lastIndexOf(".")+1).toLowerCase())}),e=this.filesArr.filter(i=>this.imgIcon.includes(i.name.substring(i.name.lastIndexOf(".")+1).toLowerCase())),e.forEach((i,t)=>{this.lists.push(i.url)})},emitView(){this.$emit("getValue",this.filesArr)},clearData(){this.filesArr=[]},handleTips(e,i,t){this.textTips=e,this.statusTips=i,this.typeTips=t,this.$refs.topTips.handleOpen()}}};var Hb=function(){var e=this,i=e.$createElement,t=e._self._c||i;return t("div",{staticClass:"attch-upload"},[e.buttonLoading?t("div",{staticClass:"attch-upload-mask"}):e._e(),t("div",{staticClass:"attch-upload-body"},[t("div",{staticClass:"upload-header"},[t("div",{staticClass:"upload-header-title"},[e._v(" \u9644\u4EF6 "),e.requires?t("span",{staticClass:"upload-header-title--re"},[e._v("*")]):e._e()]),t("div",{staticClass:"upload-header-upload"},[e.onlyShow?e._e():t("div",{staticClass:"upload-header-upload--item",attrs:{id:"inputfile"},on:{click:e.handleClick}},[t("img",{attrs:{src:e.addFile}}),e._v("\u4E0A\u4F20\u9644\u4EF6 ")])])]),t("div",{staticClass:"upload-body"},[e.filesArr.length>0?t("div",{staticClass:"upload-list"},e._l(e.filesArr,function(s,n){return t("div",{key:s.uuid,staticClass:"list-items"},[t("div",{staticClass:"list-items-icon"},[e.xlsIcon.includes(s.name.substring(s.name.lastIndexOf(".")+1).toLowerCase())?t("img",{staticClass:"icon-img",attrs:{src:e.xls}}):e.imgIcon.includes(s.name.substring(s.name.lastIndexOf(".")+1).toLowerCase())?t("img",{staticClass:"icon-img",attrs:{src:e.image}}):s.name.substring(s.name.lastIndexOf(".")+1).toLowerCase()=="pdf"?t("img",{staticClass:"icon-img",attrs:{src:e.pdf}}):e.docIcon.includes(s.name.substring(s.name.lastIndexOf(".")+1).toLowerCase())?t("img",{staticClass:"icon-img",attrs:{src:e.doc}}):e.zipIcon.includes(s.name.substring(s.name.lastIndexOf(".")+1).toLowerCase())?t("img",{staticClass:"icon-img",attrs:{src:e.zip}}):t("img",{staticClass:"icon-img",attrs:{src:e.file}})]),t("div",{staticClass:"list-items-info"},[t("div",{staticClass:"info-name"},[e._v(" "+e._s(s.name)+" ")]),t("div",{staticClass:"info-attribute"},[t("span",{staticClass:"info-attribute-size"},[e._v(e._s(s.fileSize<1024?s.fileSize:s.fileSize/1024>1024?parseFloat((s.fileSize/1024/1024).toFixed(2)):parseFloat((s.fileSize/1024).toFixed(2)))+e._s(s.fileSize<1024?"b":parseFloat((s.fileSize/1024).toFixed(2))<1024?"kb":"M")+" ")]),t("span",{staticClass:"info-attribute-views",on:{click:function(r){return e.viewFile(s,n)}}},[e._v(" \u9884\u89C8 ")])])]),e.onlyShow?e._e():t("div",{staticClass:"list-items-operation"},[t("div",{staticClass:"list-items-operation-img",on:{click:function(r){return e.handleDel(n,s)}}},[t("img",{attrs:{src:e.del}})])])])}),0):e._e()])]),t("TopTips",{ref:"topTips",attrs:{text:e.textTips,statusTips:e.statusTips,type:e.typeTips}}),t("PreviewImage",{attrs:{images:e.lists,visible:e.visible,indexd:e.indexd},on:{"update:visible":function(s){return e.visible=s}}}),t("TopPopup",{ref:"TopPopup",attrs:{visible:e.visibleS,titleText:"\u9644\u4EF6\u9884\u89C8",isDrawer:"",isIndex:99},on:{"update:visible":function(s){return e.visibleS=s}}},[e.visibleS?t("PreView",{attrs:{file:e.fileUrl}}):e._e()],1)],1)},Kb=[];const sw="",Yu={};var Wb=ye(Jb,Hb,Kb,!1,Yb,"26dcacc2",null,null);function Yb(e){for(let i in Yu)this[i]=Yu[i]}const xi=function(){return Wb.exports}();var zb=function(){var e=this,i=e.$createElement,t=e._self._c||i;return t("div",{attrs:{type:"flex"}},[t("div",[e._l(e.flowList,function(s,n){return[["candidate","sequenceFlow"].includes(s.historyActivityType)?e._e():t("div",{key:s.id,staticClass:"flow-item",attrs:{timestamp:s.endTime||s.createTime,placement:"top"}},[t("p",[t("span",{staticClass:"flow-name"},[e._v(e._s(s.assigneeName))]),e._v(" \u5728 ["+e._s(s.createTime)+"] \u5F00\u59CB\u5904\u7406 "),t("span",{staticClass:"flow-node"},[e._v("["+e._s(s.historyActivityType=="endEvent"?"\u7ED3\u675F":s.historyActivityName||"\u672A\u547D\u540D")+"]")]),e._v(" \u73AF\u8282 ")]),s.historyActivityDurationTime?t("p",[e._v(" \u4EFB\u52A1\u5386\u65F6 ["+e._s(s.historyActivityDurationTime)+"] ")]):e._e(),s.comments&&s.comments.length>0?e._l(s.comments.filter(function(r){return r.action==="AddComment"}),function(r,a){return t("p",{key:a},[a<1?[e.commentMap[r.type]?t("span",[e._v(" "+e._s(e.commentMap[r.type])+": ["+e._s(r.fullMessage)+"] ")]):r.fullMessage?t("span",[e._v(" "+e._s(r.type)+": ["+e._s(r.fullMessage)+"] ")]):e._e(),s.comments.filter(function(o){return o.action==="AddComment"}).length>1?t("span",{staticStyle:{color:"#1989fa",float:"right"},on:{click:e.handleClick}},[e._v(" "+e._s(e.toggleText)+" "),t("i",{class:[e.isFlag?"arrow-up":"arrow-down"]})]):e._e(),r.time&&e.isFlag?t("p",{staticStyle:{color:"gray","font-size":"12px"}},[e._v(e._s(r.time))]):e._e()]:e._e(),a>0&&e.isFlag?[e.commentMap[r.type]?t("span",[e._v(" "+e._s(e.commentMap[r.type])+": ["+e._s(r.fullMessage)+"] ")]):r.fullMessage?t("span",[e._v(" "+e._s(r.type)+": ["+e._s(r.fullMessage)+"] ")]):e._e(),r.time?t("p",{staticStyle:{color:"gray","font-size":"12px"}},[e._v(e._s(r.time))]):e._e()]:e._e()],2)}):e._e(),s.endTime?t("p",[e._v("\u7ED3\u675F\u65F6\u95F4: ["+e._s(s.endTime)+"]")]):e._e(),t("div",{staticClass:"p-file"},[s.attachmentsFujian&&s.attachmentsFujian.length>0?t("div",{on:{click:function(r){return e.$emit("view",s.attachmentsFujian)}}},[e._v(" \u67E5\u770B\u9644\u4EF6")]):e._e(),s.attachmentsQianzi&&s.attachmentsQianzi.length>0?t("div",{on:{click:function(r){return e.$emit("view",s.attachmentsQianzi)}}},[e._v(" \u67E5\u770B\u7B7E\u5B57")]):e._e()])],2)]})],2)])},Xb=[];const nw="",Zb={name:"nf-flow",components:{attchViews:xi},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"}}},zu={};var $b=ye(Zb,zb,Xb,!1,e0,"34ee4b32",null,null);function e0(e){for(let i in zu)this[i]=zu[i]}const t0={name:"TopTab",components:{processFlow:function(){return $b.exports}(),BpmnLook:Ku,TopPopup:ze,ViewAttchList:oc,PreviewImage:on},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,i){this.selfTapList.length||(this.isTapList=[].concat(this.defaultTabList),e.length>0&&e.forEach((t,s)=>{t.sort&&t.sort>1?this.isTapList.splice(t.sort-1,0,t):t.sort==1?this.isTapList.unshift(t):this.isTapList.push(t)}),this.active=this.isTapList[0].key)},immediate:!0,deep:!0},selfTapList:{handler(e,i){e.length&&(this.isTapList=[].concat(e),this.active=this.isTapList[0].key)},immediate:!0,deep:!0},track:{handler(e,i){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,i){e&&(this.taskCommentList=e)},immediate:!0,deep:!0},trackList:{handler(e,i){e&&(this.trackListss=e)},immediate:!0,deep:!0}},mounted(){this.tabAnimation(0)},methods:{formatFlow(e){let i=(e||[]).map(t=>({...t,attachmentsFujian:(t.attachments||[]).filter(s=>s.type!="signature"),attachmentsQianzi:(t.attachments||[]).filter(s=>s.type=="signature")}));return i=i.reverse(),i},handleActive(e,i){e!==this.active&&(this.active=e,this.tabAnimation(i))},tabAnimation(e){if(this.label.length){let i=document.getElementsByClassName("bottom-line")[0],t;if(i.offsetWidth<this.label[e].offsetWidth-10){let s=(this.label[e].offsetWidth-i.offsetWidth-10)/2;t=`${this.label[e].offsetLeft+s}px`}else if(i.offsetWidth>this.label[e].offsetWidth-10){let s=(i.offsetWidth-this.label[e].offsetWidth+10)/2;t=`${this.label[e].offsetLeft-s}px`}else t=`${this.label[e].offsetLeft}px`;i.style.transition=".3s",i.style.transform=`translateX(${t})`}},viewList(e){this.visible=!0,this.inList=e},viewSign(e,i){this.signLists=e.filter(t=>t.digitalSignature).map(t=>t.digitalSignature),this.indexd=this.signLists.findIndex(t=>t==i),this.signPreViewVisible=!0}}};var i0=function(){var e=this,i=e.$createElement,t=e._self._c||i;return t("div",{staticClass:"tops-tab"},[t("div",{staticClass:"tops-tab-header"},[e._l(e.isTapList,function(s,n){return[t("div",{staticClass:"tops-tab-header-items",class:[s.key===e.active?"active":""],on:{click:function(r){return e.handleActive(s.key,n)}}},[e._v(" "+e._s(s.label)+" ")])]}),e.isTapList.length?t("div",{staticClass:"bottom-line"}):e._e()],2),t("div",{staticClass:"tops-tab-body"},e._l(e.isTapList,function(s){return t("div",{directives:[{name:"show",rawName:"v-show",value:e.active===s.key,expression:"active === item.key"}],key:s.key,class:[s.key==="c"&&"tops-tab-body-taskcommentlist"],staticStyle:{height:"100%"}},[s.key==="a"&&s.type==="default"?e._t("default"):e._e(),e.active===s.key&&s.key==="b"&&s.type==="default"?t("div",{staticClass:"uph-tab-b",staticStyle:{height:"100%"},attrs:{name:s.slot}},[e.processXml?t("div",{staticStyle:{padding:"10px 20px",color:"#1389ff"},on:{click:function(){return e.visibleTack=!0}}},[e._v(" \u67E5\u770B\u6D41\u7A0B\u8282\u70B9\u4FE1\u606F ")]):e._e(),s.key==="b"&&e.processXml?t("BpmnLook",{ref:"PreviewRef",refInFor:!0,attrs:{diagram:e.processXml,approvalData:e.approvalData}}):t("div",{staticClass:"textnone"},[e._v(" \u6682\u65E0\u6D41\u7A0B\u56FE ")])],1):e._e(),s.key==="c"&&s.type==="default"?t("div",{staticStyle:{height:"100%"}},[s.key==="c"&&e.ProcessInsObj.flow?t("processFlow",{attrs:{request:e.ProcessInsObj.request,"flow-list":e.formatFlow(e.ProcessInsObj.flow)},on:{view:e.viewList}}):t("div",{staticClass:"textnone"},[e._v("\u6682\u65E0\u6570\u636E")])],1):e._e(),s.type=="slot"?e._t(s.slot):e._e()],2)}),0),t("TopPopup",{ref:"TopPopup",attrs:{visible:e.visible,titleText:"\u9644\u4EF6\u5217\u8868",isDrawer:"",isIndex:5},on:{"update:visible":function(s){return e.visible=s}}},[t("ViewAttchList",{attrs:{inList:e.inList}})],1),t("PreviewImage",{attrs:{images:e.signLists,visible:e.signPreViewVisible,indexd:e.indexd},on:{"update:visible":function(s){return e.signPreViewVisible=s}}}),t("TopPopup",{ref:"TopPopups",attrs:{visible:e.visibleTack,titleText:"\u6D41\u7A0B\u4FE1\u606F",isDrawer:"",width:"60vw"},on:{"update:visible":function(s){return e.visibleTack=s}}},[e.trackListss&&e.trackListss.length?e._l(e.trackListss,function(s,n){return t("div",{key:s.id,staticClass:"seal-list__item"},[t("div",[t("div",{staticClass:"seal-list__item--option"},[t("span",[e._v("\u5E8F\u53F7")]),t("span",{staticStyle:{"max-width":"100px"}},[e._v(e._s(n+1))])]),t("div",{staticClass:"seal-list__item--option"},[t("span",[e._v("\u8282\u70B9\u540D\u79F0")]),t("span",{staticStyle:{"max-width":"100px"}},[e._v(e._s(s.historyActivityName))])]),t("div",{staticClass:"seal-list__item--option"},[t("span",[e._v("\u5BA1\u6279\u4EBA")]),t("span",{staticStyle:{"max-width":"100px"}},[e._v(e._s(s.assigneeName))])])])])}):e._e()],2)],1)},s0=[];const aw="",Xu={};var n0=ye(t0,i0,s0,!1,r0,"8ff4442e",null,null);function r0(e){for(let i in Xu)this[i]=Xu[i]}const a0=function(){return n0.exports}(),o0="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAMgAAADICAYAAACtWK6eAAAAA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q+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",c0={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,i){e&&e.length&&(this.lists=e)},immediate:!0,deep:!0},defaultValue:{immediate:!0,deep:!0,handler(e,i){this.active=e;let s=JSON.parse(JSON.stringify(this.option)).filter((n,r)=>n.id==e);this.activeItem=s[0],this.activeItem&&this.$emit("change",this.activeItem)}}},computed:{arrow(){return o0},check(){return l0}},methods:{handleExpand(){this.disibled||(this.expand?this.expand=!1:this.expand=!0)},handleClick(e,i){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:""}}}};var u0=function(){var e=this,i=e.$createElement,t=e._self._c||i;return t("div",{staticClass:"top-select"},[e.isSlots?t("div",{staticStyle:{position:"relative","z-index":"80"}},[e._t("header",null,{data:Object.assign({},e.activeItem,{placeholder:e.placeholder})})],2):t("div",{staticClass:"top-select-menu",class:[e.border&&"top-select-menu-border",!e.activeItem&&"top-select-menu-placeholder"],on:{click:e.handleExpand}},[e._v(" "+e._s(e.activeItem?e.activeItem.name:e.placeholder)+" "),e.disibled?e._e():t("img",{staticClass:"top-select-menu--arrow",class:[e.expand?"arrow-active":""],attrs:{src:e.arrow}})]),e.maskShow?t("div",{staticClass:"top-select-option-mask",style:e.expand?"visibility: visible; opacity: .7;":"visibility: hidden; opacity: 0;"}):e._e(),e.lists&&e.lists.length?t("div",{staticClass:"top-select-option",class:[e.border&&"top-select-option-border"],style:`${e.expand?"transform: translateY(2%);visibility: visible; opacity: 1;":"transform: translateY(-50%);visibility: hidden; opacity: 0"};${e.optionStyle?e.optionStyle:""}`},e._l(e.lists,function(s,n){return t("div",{key:s.id,staticClass:"option-items",class:[e.active==s.id?"option-items-active":""],on:{click:function(r){return e.handleClick(s,n)}}},[e._v(" "+e._s(s.name)+" "),e.active==s.id?t("img",{staticClass:"option-items-check",attrs:{src:e.check}}):e._e()])}),0):e._e()])},p0=[];const ow="",Zu={};var d0=ye(c0,u0,p0,!1,h0,"a791e974",null,null);function h0(e){for(let i in Zu)this[i]=Zu[i]}const $u=function(){return d0.exports}(),f0="data:image/png;base64,iVBORw0KGgoAAAANSUhEUg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;return t("TopPopup",{ref:"TopPopupFixedPerson",attrs:{visible:e.showFixedPerson,titleText:"\u9009\u62E9\u4EBA\u5458("+e.fixedPersonList.length+"\u4EBA)",isIndex:99,className:"sumbmitPopup-index",comfigText:"\u786E\u5B9A",comfig:e.handleSumbitFixedPerson},on:{"update:visible":e.updateVisible}},[t("div",{staticClass:"s-tree"},e._l([].concat(e.fixedPersonList),function(s){return t("div",{key:s.userId,staticClass:"s-node",on:{click:function(n){return e.handleClickFixedPerson(s)}}},[e.mySelectIds.includes(s.userId)?t("div",{staticClass:"radio-select"},[t("svg",{staticClass:"icon",attrs:{t:"1758260488735",viewBox:"0 0 1024 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg","p-id":"7527",width:"18",height:"18"}},[t("path",{attrs:{d:"M512 0a512 512 0 1 0 512 512A512 512 0 0 0 512 0z m314.916571 369.371429l-354.304 349.184a46.409143 46.409143 0 0 1-64.987428 0l-212.955429-209.883429a44.763429 44.763429 0 0 1 0-64 46.336 46.336 0 0 1 64.987429 0l180.443428 177.810286 321.828572-317.184a46.482286 46.482286 0 0 1 64.987428 0 44.836571 44.836571 0 0 1-0.036571 64.073143z",fill:"#409eff","p-id":"7528"}})])]):t("div",{staticClass:"radio-select-not"},[t("svg",{staticClass:"icon",attrs:{t:"1758260589679",viewBox:"0 0 1024 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg","p-id":"8704",width:"18",height:"18"}},[t("path",{attrs:{d:"M150.144 150.144C250.24 50.048 370.88 0 512 0s261.76 50.048 361.856 150.144S1024 370.88 1024 512s-50.048 261.76-150.144 361.856S653.12 1024 512 1024s-261.76-50.048-361.856-150.144S0 653.12 0 512s50.048-261.76 150.144-361.856zM64 512c0 124.16 43.328 228.48 131.392 316.608C283.52 916.672 387.84 960 512 960s228.48-43.328 316.608-131.392C916.672 740.48 960 636.16 960 512s-43.328-228.48-131.392-316.608C740.48 107.328 636.16 64 512 64s-228.48 43.328-316.608 131.392C107.328 283.52 64 387.84 64 512z",fill:"#b5bbc1","p-id":"8705"}})])]),s.avatar?t("img",{staticClass:"node-avatar",attrs:{src:s.avatar,alt:"\u5934\u50CF"}}):t("div",{staticClass:"node-avatar-text"},[e._v(" "+e._s((s.realName||"").slice(-2))+" ")]),t("div",{staticClass:"node-name"},[t("div",{staticClass:"node-name-text"},[e._v(e._s(s.realName))]),t("div",{staticClass:"node-name-phone"},[e._v(e._s(s.phonenumber))])])])}),0)])},g0=[];const lw="",y0={name:"selectFixedPerson",components:{TopPopup:ze},props:{multiple:{},visible:{type:Boolean,default:!1},list:{type:Array,default(){return[]}},select:{type:Array,default(){return[]}},multiple:{type:Boolean,default:!1}},data(){return{showFixedPerson:!1,fixedPersonList:[],mySelect:[],mySelectIds:[]}},watch:{visible:{handler(e,i){this.showFixedPerson=e,e?(this.fixedPersonList=this.list||[],this.mySelect=this.select||[],this.mySelectIds=this.mySelect.map(t=>t.userId)):(this.fixedPersonList=[],this.mySelect=[],this.mySelectIds=[])},immediate:!0},fixedPersonList:{handler(e,i){e&&e.length>0&&JSON.stringify(e)!==JSON.stringify(this.list)&&this.$emit("updateList",e)},immediate:!0,deep:!0}},methods:{updateVisible(e){this.$emit("updateVisible",e)},handleClickFixedPerson(e){const i=this.select.find(t=>t.userId===e.userId);this.multiple||(this.mySelect=[],this.mySelectIds=[]),i?(this.mySelect=this.select.filter(t=>t.userId!==e.userId),this.mySelectIds=this.mySelect.map(t=>t.userId)):(this.mySelect.push(e),this.mySelectIds.push(e.userId)),this.$emit("updateSelect",this.mySelect)},handleSumbitFixedPerson(){this.$emit("confirm",this.mySelect)}}},ep={};var v0=ye(y0,m0,g0,!1,A0,"4e0e3ca1",null,null);function A0(e){for(let i in ep)this[i]=ep[i]}const tp=function(){return v0.exports}(),b0={name:"TopSubmitPopup",components:{SelectFixedPerson:tp,BpmnLook:Ku,TopPopup:ze,TopDownSelect:$u,PreviewImage:on,departPerson:Pt.departPerson,TopTips:mt},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{currentClickItem:{},fixedSelect:{},showFixedPerson:!1,fixedPersonList:[],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,i){this.show=e,this.$emit("update:visible",this.show),e?(this.selectDefaultValue="",this.handleOption()):this.$refs.TopDownSelect.handleClose()}},show:{handler(e,i){e||this.$refs.TopDownSelect.handleClose()}},businessType:{handler(e,i){this.businessTypeData=e},immediate:!0},businessDeptId:{handler(e,i){e&&(this.businessDeptIdData=e)},immediate:!0},extraParams:{handler(e,i){e&&e.businessDeptId&&(console.error(e.businessDeptId,"\u4E1A\u52A1\u90E8\u95E8id\u66F4\u65B0\u5230extraParams.businessDeptId\u4E2D\uFF0C\u8BF7\u68C0\u67E5\u662F\u5426\u9700\u8981\u66F4\u65B0\u5230\u6B64\u5904"),this.businessDeptIdData=e.businessDeptId)},immediate:!0,deep:!0},id:{handler(e,i){e&&(this.idData=e,this.resubmit&&this.getProcessInstance())},immediate:!0},processName:{handler(e,i){this.processNameData=e},immediate:!0},title:{handler(e,i){this.titleData=e},immediate:!0},todoParameter:{handler(e,i){this.todoParameterData=e},immediate:!0,deep:!0},selfList:{handler(e,i){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,i){e&&this.getProcessInstance()}}},computed:{ProcessImg(){return f0}},methods:{getXmlByProcessDefId(e){this.request.get("/bladex/blade-workflow/process/getXmlByProcessDefId",{params:{processDefId:e}}).then(i=>{i.code==200&&(this.processXml=i.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(){if(this.checkedItem={},this.firstPerson=[],this.personList=[],this.selfList&&this.selfList.length)return;this.handleTips("",!0,"loading");let e={businessCode:this.businessType,appId:this.appId,processGroupName:this.processNameData,...this.extraParams};this.processNameData&&delete e.processGroupName,await this.request.post("/bladex/blade-workflow/repository/getProcessDefList",e).then(i=>{i.code==200&&(this.option=i.data,i.data&&i.data.length?(this.handleTips("",!1,"success"),(this.isSelectFirst||i.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(i){}this.deptList=e.data||[]},async getNodeUser({deptId:e,intersection:i,userIds:t,postIds:s,deptIds:n}){return await this.request.post("/auth/user/getTaskAuditor",{deptId:e,intersection:i,userIds:t,postIds:s,deptIds:n})},getUserDataByDeptId(){this.firstPerson.map(async(e,i)=>{const t=Ju(e);let s;try{s=await this.getNodeUser({deptId:this.businessDeptIdData,intersection:(t.intersection,0),userIds:t.userIds,postIds:t.postIds,deptIds:t.deptIds})}catch(n){}if(s.code==200){const n=this.firstPerson[i];n.userList=s.data,this.$set(this.firstPerson,i,n)}})},async handlefirstNode(e){e&&(this.handleTips("",!0,"loading"),await this.request.get("/bladex/blade-workflow/repository/getAllProcessNode",{params:{processDefId:e}}).then(async i=>{if(i.code===200){if(this.firstPerson=i.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;i.data.map(t=>{{let s={taskDefId:t.id,postIds:[]};t.routeTxt.postList.map(n=>{s.postIds.push(n.postId)}),this.request.post("/auth/user/getTaskAuditor",{deptId:this.businessDeptIdData,taskPostIds:[s]}).then(n=>{let r=[],a=[],o=!1;n.data.map(p=>{p.posts.map(h=>{a.push(...h.users),h.users.length==1?r.push(...h.users):o=!0})}),r.length>t.loopCardinality&&t.loopCardinality>0&&(o=!0),o&&(r=[]);let l=[];n.data[0].posts.map(p=>{l.push({...p,projectPost:!this.businessDeptIdData,id:p.users.map(h=>h.id),subjectId:p.subjectId})}),a.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.getAfferentParticipantNodeList()}else this.firstPerson=[],this.getAfferentParticipantNodeList()}).catch(i=>{this.firstPerson=[],this.getAfferentParticipantNodeList()}))},async handleChange(e,i){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,i)},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(i=>{if(i.humanPerformerName==="\u56FA\u5B9A\u89D2\u8272/\u5C97\u4F4D"){let t={taskDefId:i.id,postIds:[]};i.routeTxt.postList.map(s=>{t.postIds.push(s.postId)}),this.request.post("/auth/user/getTaskAuditor",{deptId:this.businessDeptIdData,taskPostIds:[t]}).then(s=>{let n=[],r=[],a=!1;s.data.map(l=>{l.posts.map(p=>{r.push(...p.users),p.users.length==1?n.push(...p.users):a=!0})}),n.length>i.loopCardinality&&i.loopCardinality>0&&(a=!0),a&&(n=[]);let o=[];s.data[0].posts.map(l=>{o.push({...l,projectPost:!(this.param.taskNode&&this.param.taskNode[0].vars&&this.param.taskNode[0].vars._businessDeptId),id:l.users.map(p=>p.id),subjectId:l.subjectId})}),r.length==0&&this.$set(i,"noPersonnel",!0),n.length>0&&(this.personObjId=i.id,this.humanPerformerName=i.humanPerformerName,this.$set(i,"noPersonnel",!0),this.handleCallback(n)),i.positionArray=o})}}),this.personList=e.data.filter(i=>!this.firstPerson.some(t=>t.id==i.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])})},handleOpenFixedPerson(e){this.currentClickItem=e,this.personObjId=e.id,this.showFixedPerson=!0,this.fixedPersonList=e.userList||[]},updateFixedPersonVisible(e){this.showFixedPerson=e},updateFixedSelect(e){},handleSumbitFixedPerson(e){this.$set(this.fixedSelect,this.personObjId,e),this.$set(this.multiNodeParticipant,this.personObjId,[]),this.$set(this.partNode,this.personObjId,[]),e.map((i,t)=>{this.multiNodeParticipant[this.personObjId].push(i.userId),this.partNode[this.personObjId].push(i.realName)}),this.showFixedPerson=!1},handleClickFixedPerson(e){this.$set(this.multiNodeParticipant,this.personObjId,[]),this.$set(this.partNode,this.personObjId,[]),e.map((i,t)=>{this.multiNodeParticipant[this.personObjId].push(i.userId),this.partNode[this.personObjId].push(i.realName)}),this.showFixedPerson=!1},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==-1?0:1,checkedArray:[]},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)})):this.entity.checkedArray=[];else if(e.humanPerformerName==="\u56FA\u5B9A\u90E8\u95E8"){let i,t=[];e.routeTxt.departmentIds&&e.routeTxt.departmentIds.length>1?(e.routeTxt.departmentIds.forEach((s,n)=>{t.push(s.rangeId)}),this.entity={source:"1",type:this.isCheckType||"0",orgType:this.isOrgType||"0",request:this.request,codeType:this.isCodeType||[3],deptCodeArray:t,multiple:e.loopCardinality==-1,maxMultiple:e.loopCardinality==-1?0:1}):e.routeTxt.departmentIds&&e.routeTxt.departmentIds.length==1&&(e.routeTxt.departmentIds.forEach((s,n)=>{i=s.rangeId}),this.entity={source:"1",type:this.isCheckType||"0",orgType:this.isOrgType||"0",request:this.request,codeType:this.isCodeType||[3],deptCode:i,multiple:e.loopCardinality==-1,maxMultiple:e.loopCardinality==-1?0:1}),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:i})):this.entity.checkedArray=[]}else if(e.humanPerformerName==="\u56FA\u5B9A\u5355\u4F4D"){let i;e.routeTxt.companyIds.map((t,s)=>{i=t.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==-1?0:1,subjectName:i},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=[]}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==-1?0:1,positionArray:e.positionArray},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=[]):(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==-1?0:1,checkedArray:[]},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)})):this.entity.checkedArray=[])},handleCallback(e){this.personListCopy[this.personObjId]=e,this.entity.checkedArray=e.map(i=>({id:i.id,subjectId:i.subjectId,type:i.type,deptId:this.handleLastStr(i.ancestors,i.subjectId),subjectName:this.humanPerformerName==="\u56FA\u5B9A\u5355\u4F4D"?i.ancestorNames.slice(0,i.ancestorNames.indexOf("/")):""})),this.$set(this.multiNodeParticipant,this.personObjId,[]),this.$set(this.partNode,this.personObjId,[]),e.map((i,t)=>{this.multiNodeParticipant[this.personObjId].push(i.id),this.partNode[this.personObjId].push(i.name)}),this.visiblePerson=!1},handleCancel(){},handleLastStr(e,i){if(!!e)return e.split(",")[e.split(",").length-1]!==i?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:{processBusinessKey:this.id||this.extraParams.businessKey,showType:"all",subjectId:this.businessSubjectId,deptId:this.businessDeptIdData,businessType:this.businessType,name:this.extraParams.name,title:this.title||this.extraParams.title,applyUserId:this.extraParams.applyUserId}};if(!this.checkedItem.id){this.$refs.topTips.handleClose(),this.btnLoading=!1;return}this.request.post("/bladex/blade-workflow/pis/createAndStart",e).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):i.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(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):(this.handleTips(t.msg,!0,"error"),this.btnLoading=!1)}).catch(t=>{this.handleTips(t.msg,!0,"error"),this.btnLoading=!1}):(this.handleTips(i.msg,!0,"error"),this.btnLoading=!1)}).catch(i=>{this.handleTips(i.msg,!0,"error"),this.btnLoading=!1})}},handleTips(e,i,t){this.textTips=e,this.statusTips=i,this.typeTips=t,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(i=>{i.code==200?(i.data&&i.data.processBudgetModelList&&i.data.processBudgetModelList.length?this.flowForecastProcessInstId=i.data.processBudgetModelList[0].processInstId:(i.data.processBudgetModelList=[],this.flowForecastProcessInstId=""),this.flowForecastData=i.data,this.flowForecastVisible=!0):this.handleTips(i.msg,!0,"error")}).catch(i=>{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:[]})}}};var C0=function(){var e=this,i=e.$createElement,t=e._self._c||i;return t("div",{staticClass:"sumbmitPopup-index-sumbit"},[t("div",{staticClass:"top-popup"}),t("TopPopup",{ref:"TopPopup",attrs:{visible:e.show,titleText:"\u9001\u5BA1",isIndex:99,className:"sumbmitPopup-index",comfigText:"\u9001\u5BA1",comfig:e.handleSumbit},on:{"update:visible":function(s){return e.show=s,e.$emit("update:visible",s)}}},[t("TopDownSelect",{ref:"TopDownSelect",attrs:{isSlots:"",option:e.option,defaultValue:e.selectDefaultValue,disibled:!1},on:{change:e.handleChange},scopedSlots:e._u([{key:"header",fn:function(s){return[t("div",{staticClass:"sumbmitPopup-select"},[t("div",{staticClass:"sumbmitPopup-select-checked",on:{click:e.handleSelect}},[t("div",{staticClass:"sumbmitPopup-select-checked-title"},[e._v("\u5F53\u524D\u6D41\u7A0B")]),t("div",{staticClass:"sumbmitPopup-select-checked-node",class:""},[e._v(" "+e._s(s.data.name?s.data.name:s.data.placeholder)+" ")])]),e.businessDeptIdData?e._e():t("div",{staticClass:"sumbmitPopup-select-checked",on:{click:e.handleDeptSelect}},[t("div",{staticClass:"sumbmitPopup-select-checked-title"},[e._v("\u9009\u62E9\u90E8\u95E8")]),t("div",{staticClass:"sumbmitPopup-select-checked-node",class:""},[e._v(" "+e._s(e.selectDeptData.label?e.selectDeptData.label:"\u8BF7\u9009\u62E9")+" ")])]),t("div",{staticClass:"sumbmitPopup-select-viewTrack",staticStyle:{display:"flex"}},[e.checkedItem.id?t("div",{staticClass:"viewTrack",on:{click:e.handleFlowSelect}},[t("img",{attrs:{src:e.ProcessImg}}),e._v(" \u67E5\u770B\u6D41\u7A0B\u56FE ")]):e._e(),e.checkedItem.id&&e.showFlowForecast?t("div",{staticClass:"viewTrack",on:{click:e.viewFlowForecast}},[e._v(" \u6D41\u7A0B\u9884\u6D4B ")]):e._e()])])]}}])}),e.showFirstPerson&&e.firstPerson&&e.firstPerson.length?t("div",{staticClass:"person-views"},[t("div",{staticClass:"person-views-title"},[e._v("\u4E0B\u4E00\u6B65\u5904\u7406\u8282\u70B9")]),e._l(e.firstPerson,function(s,n){var r;return t("div",{key:n,staticClass:"views-items"},[t("div",{staticClass:"views-items-label"},[t("div",{staticClass:"views-items-name"},[t("div",{staticClass:"views-items-name-left"},[e._v(" "+e._s(s.name)+" "),n==0?t("span",{staticClass:"views-items-name--re"},[e._v("*")]):e._e()])]),t("div",{staticClass:"views-items-set"},[e.partNode[s.id]&&e.partNode[s.id].length?t("div",[e._l(e.partNode[s.id],function(a,o){return t("span",{key:o},[e._v(" "+e._s(o>=3?"":o==0?a:`,${a}`)+" ")])}),e.partNode[s.id].length>3?t("span",[e._v("...\u7B49"+e._s(e.partNode[s.id].length)+"\u4EBA")]):e._e()],2):s.routeTxt&&s.routeTxt.userNames?t("div",[e._v(" "+e._s(s.routeTxt.userNames)+" ")]):e._e(),s.humanPerformerName=="\u56FA\u5B9A\u8D26\u6237"||s.humanPerformerName=="\u4E0E\u6D41\u7A0B\u7533\u8BF7\u4EBA\u76F8\u5173"||((r=e.partNode[s.id])===null||r===void 0?void 0:r.length)>0&&s.noPersonnel?t("div"):s.humanPerformerName=="\u56FA\u5B9A\u8D26\u6237"||s.humanPerformerName=="\u4E0E\u6D41\u7A0B\u7533\u8BF7\u4EBA\u76F8\u5173"||s.noPersonnel?t("div",[e._v(" \u6CA1\u6709\u53EF\u9009\u4EBA\u5458\uFF0C\u8BF7\u68C0\u67E5\u914D\u7F6E ")]):s.userList&&s.userList.length>0?t("div",{staticClass:"views-items-set-btn",on:{click:function(a){return e.handleOpenFixedPerson(s)}}},[e._v(" \u9009\u62E9 ")]):t("div",{staticClass:"views-items-set-btn",on:{click:function(a){return e.handleOpenPerson(s)}}},[e._v(" \u8BBE\u7F6E ")])])]),s.routeTxt&&s.routeTxt.length>0?t("div",{staticClass:"views-items-includes"},[t("div",{staticClass:"views-items-name2"},[e._v(" "+e._s("\u6240\u5C5E\u8303\u56F4")+" ")]),t("div",{staticClass:"views-items-and2"},e._l(s.routeTxt,function(a,o){return t("div",{key:a.type},[a.ids&&a.ids.length>0?t("div",[t("div",{staticClass:"include"},[t("b",{staticClass:"include include-type",class:["include-"+a.type]},[e._v(e._s(a.type=="user"?"\u7528\u6237":a.type=="dept"?"\u90E8\u95E8":"\u5C97\u4F4D"))]),t("span",{staticClass:"include include-name"},[e._v(e._s(a.name))])]),o!==s.routeTxt.length-1?t("div",{staticClass:"include include-assign",class:["include-assign-"+(a.assigneeRetain?"true":"false")]},[e._v(e._s(s.assigneeRetain=="true"?"\u4E14\u540C\u65F6\u6EE1\u8DB3":"\u6216\u8005\u6EE1\u8DB3"))]):e._e()]):e._e()])}),0)]):e._e()])})],2):e._e(),e.personList&&e.personList.length?t("div",{staticClass:"person-views"},[t("div",{staticClass:"person-views-title"},[e._v("\u5176\u4ED6\u5904\u7406\u8282\u70B9")]),e._l(e.personList,function(s,n){return t("div",{staticClass:"views-items"},[t("div",{staticClass:"views-items-name"},[e._v(" "+e._s(s.name)+" ")]),t("div",{staticClass:"views-items-set"},[s.noPersonnel?e._e():t("div",{staticClass:"views-items-set-btn",on:{click:function(r){return e.handleOpenPerson(s)}}},[e._v(" \u8BBE\u7F6E ")]),e.partNode[s.id]&&e.partNode[s.id].length?t("div",[e._l(e.partNode[s.id],function(r,a){return t("span",[e._v(" "+e._s(a>=3?"":a==0?r:`,${r}`)+" ")])}),e.partNode[s.id].length>3?t("span",[e._v("...\u7B49"+e._s(e.partNode[s.id].length)+"\u4EBA")]):e._e()],2):s.noPersonnel?t("div",[e._v("\u6CA1\u6709\u53EF\u9009\u4EBA\u5458\uFF0C\u8BF7\u68C0\u67E5\u914D\u7F6E")]):t("div")])])})],2):e._e(),!e.firstPerson&&!e.firstPerson.length&&!e.personList&&!e.personList.length?t("div",{staticClass:"person-views-white"},[e._v(" \u65E0\u9700\u8BBE\u7F6E ")]):e._e()],1),t("TopPopup",{ref:"TopPopup",attrs:{visible:e.visiblePerson,titleText:"\u9009\u4EBA",isDrawer:!0,isIndex:199},on:{"update:visible":function(s){return e.visiblePerson=s}}},[t("div",{staticStyle:{height:"100%"}},[e.visiblePerson?t("departPerson",e._b({attrs:{isTitle:!1,visible:e.visiblePerson,checkedArray:e.checkedArray},on:{"update:visible":function(s){e.visiblePerson=s},callback:e.handleCallback,cancel:e.handleCancel}},"departPerson",e.entity,!1)):e._e()],1)]),t("TopPopup",{ref:"TopPopupDept",attrs:{visible:e.showDept,titleText:"\u9009\u62E9\u90E8\u95E8",isIndex:99,className:"sumbmitPopup-index",comfigText:"\u786E\u5B9A",comfig:e.handleSumbitDept},on:{"update:visible":function(s){return e.showDept=s}}},[t("div",{staticClass:"tree"},e._l([].concat(e.deptList),function(s){return t("div",{key:s.id,staticClass:"node"},[t("div",{staticClass:"node-p",on:{click:function(n){return e.handleClickDept(s)}}},[e._v(e._s(s.label))]),s.children?t("div",{staticClass:"children"},e._l(s.children,function(n){return t("div",{key:n.id,staticClass:"node-s",on:{click:function(r){return e.handleClickDept(n)}}},[e._v(" "+e._s(n.label)+" ")])}),0):e._e()])}),0)]),t("SelectFixedPerson",{attrs:{visible:e.showFixedPerson,list:e.fixedPersonList,multiple:e.currentClickItem.loopCardinality==-1,select:e.fixedSelect[e.personObjId]||[]},on:{updateList:e.handleClickFixedPerson,updateVisible:e.updateFixedPersonVisible,updateSelect:e.updateFixedSelect,confirm:e.handleSumbitFixedPerson}}),t("TopPopup",{ref:"TopPopupFlow",staticClass:"top-pop-flow",attrs:{visible:e.showFlow,titleText:"\u67E5\u770B\u6D41\u7A0B\u56FE",isIndex:99,className:"sumbmitPopup-index",comfigText:"\u5173\u95ED",comfig:e.handleSumbitFlow},on:{"update:visible":function(s){return e.showFlow=s}}},[e.showFlow&&e.processXml?t("BpmnLook",{ref:"PreviewRef",attrs:{diagram:e.processXml,approvalData:e.approvalData}}):e._e()],1),t("PreviewImage",{attrs:{images:e.trackUrl,visible:e.taskurlshow,indexd:0,isOne:!0,isStyle:e.isStyle},on:{"update:visible":function(s){return e.taskurlshow=s}}}),t("TopTips",{ref:"topTips",attrs:{text:e.textTips,statusTips:e.statusTips,type:e.typeTips}}),t("TopPopup",{ref:"TopPopupFF",attrs:{visible:e.flowForecastVisible,titleText:"\u6D41\u7A0B\u9884\u6D4B",isIndex:129,cancel:e.flowForecastClose,comfig:e.flowForecastClose},on:{"update:visible":function(s){return e.flowForecastVisible=s}}},[t("div",{staticStyle:{margin:"20px"}},[t("div",{staticStyle:{"margin-left":"10px","margin-bottom":"10px"},domProps:{innerHTML:e._s(e.flowForecastData.completeTime)}}),t("div",{staticClass:"timeline"},e._l(e.flowForecastData.processBudgetModelList,function(s,n){return t("div",{key:n,staticClass:"timeline-item"},[t("div",{staticClass:"item-top"},[t("div",{staticClass:"top-spot"},[t("div",{staticClass:"spot",class:{active:n==0}})]),t("div",{staticClass:"top-title"},[e._v(e._s(s.title))])]),t("div",{staticClass:"item-bottom",class:{last:n==e.flowForecastData.processBudgetModelList.length-1}},[t("span",{staticStyle:{color:"#009800"}},[e._v(" \u6267\u884C\u4EBA\uFF1A"+e._s(s.excutor)+" ")])])])}),0)])])],1)},w0=[];const cw="",ip={};var x0=ye(b0,C0,w0,!1,E0,"a0f579ac",null,null);function E0(e){for(let i in ip)this[i]=ip[i]}const sp=function(){return x0.exports}(),T0="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+mfB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5FoPjOLgJt3EW5qvdsVZE0kv6e+UiwrTVR6cwLeV44lEPcC6Rua+EqxN08yH5hNwN1x7mBXkNWGsy/JHpBeKr7JexGVnR3ECrLe4Q3v3lNyIZaWgOt3OW7r6iAFsro/OWjbs8WLKvuNPJt57cDOjTZ/UWjTxIeh/wxh0AJ5KXvzF1bytxMCx/f3e/cE9d4JZCcjgw/dWwIIZG9TS8cUBBCIgiIx9pYAAtnb1NIxBQEEoqBIjL0lgED2NrV0TEHgP1VLsH2X3+jEAAAAAElFTkSuQmCC";var I0=function(){var e=this,i=e.$createElement,t=e._self._c||i;return t("div",[e.visible?t("div",{staticClass:"top-msg"},e._l(e.listData,function(s){return t("div",{staticClass:"top-msg-items",on:{click:function(n){return e.handleMsg(s)}}},[t("div",{staticClass:"top-msg-items-text"},[e._v(e._s(s.opinionName))]),t("div",{staticClass:"top-msg-items-del",on:{click:function(n){return n.stopPropagation(),e.handleOpenMsg(s)}}},[t("img",{attrs:{src:e.Del}})])])}),0):e._e(),t("TopPopup",{attrs:{isIndex:2299,titleText:"\u64CD\u4F5C\u6D88\u606F\u63D0\u793A",isTips:!0,context:`\u5C06\u5E38\u7528\u610F\u89C1'${e.opinion.opinionName}'\u5220\u9664`,cancel:e.handleTipsCancel,comfig:e.handleDel,visible:e.visibleListMsg},on:{"update:visible":function(s){return e.visibleListMsg=s}}})],1)},k0=[];const uw="",N0={name:"msgList",components:{TopPopup:ze},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 T0}},watch:{visible:{handler(e,i){e&&this.request.get("/auth/user/opinion/my").then(t=>{t.code===200&&(this.listData=t.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(i=>{i.code===200&&(this.listData=i.data)})):this.$emit("handleTips",e.msg,!0,"error")}).catch(e=>{this.$emit("handleTips",e.msg,!0,"error")}))}}},np={};var _0=ye(N0,I0,k0,!1,S0,"66478dbb",null,null);function S0(e){for(let i in np)this[i]=np[i]}const Is=function(){return _0.exports}();var P0=function(){var e=this,i=e.$createElement,t=e._self._c||i;return t("div",{staticClass:"process-popup-content"},[t("div",{staticClass:"process-popup-content-msg"},[e.param.isMsg?t("div",[t("div",{staticClass:"process-radio-item",staticStyle:{color:"#1389ff","font-size":"14px"},on:{click:function(s){return e.handleOpenMsg()}}},[e._v(" \u5E38\u7528\u610F\u89C1 ")])]):e._e(),e._m(0),t("div",{staticClass:"process-pc-value"},[t("div",{staticClass:"process-popup-textarea"},[t("textarea",{directives:[{name:"model",rawName:"v-model",value:e.commentMsg,expression:"commentMsg"}],staticClass:"textarea-item",attrs:{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,'')"},domProps:{value:e.commentMsg},on:{input:function(s){s.target.composing||(e.commentMsg=s.target.value)}}}),t("div",{staticClass:"process-popup-textarea-num"},[e._v(" "+e._s(e.commentMsg.length)+"/200 ")])]),e.param.isMsg?t("div",{staticClass:"msg-btn"},[t("span",{staticClass:"msg-btn-click",on:{click:function(s){return e.handleMakeMsg()}}},[e._v("\u8BBE\u7F6E\u4E3A\u5E38\u7528\u610F\u89C1")])]):e._e()])]),t("div",{staticClass:"process-popup-content-person"},[e.nextNodeData.length?[e._l(e.nextNodeData,function(s){return[t("div",[t("br"),e._v(" \u5BA1\u6279\u4EBA "),t("span",{staticClass:"process-pc-label--re"},[e._v("*")])]),t("div",{staticClass:"process-pc-value",on:{click:function(n){return e.handleOpenPopup(s.id)}}},[t("div",{staticClass:"process-pc-value--people"},[e.partNode[s.id]&&e.partNode[s.id].length?t("div",{staticClass:"process-pc-value--data"},e._l(e.partNode[s.id],function(n,r){return t("span",[e._v(" "+e._s(r==0?n:`,${n}`)+" ")])}),0):t("div",{staticClass:"process-pc-value--data",staticStyle:{color:"#888"}},[t("span",[e._v(" \u8BF7\u9009\u62E9\u5BA1\u6279\u4EBA ")])])])])]})]:e.outGatewayUserTaskModel.length?[e._l(e.outGatewayUserTaskModel,function(s){return[t("div",{staticClass:"process-pc-label"},[t("br"),e._v(" \u5BA1\u6279\u4EBA "),t("span",{staticClass:"process-pc-label--re"},[e._v("*")])]),t("div",{staticClass:"process-pc-value",on:{click:function(n){return e.handleOpenPopup(s.id)}}},[t("div",{staticClass:"process-pc-value--people"},[e.partNode[s.id]&&e.partNode[s.id].length?t("div",{staticClass:"process-pc-value--data"},e._l(e.partNode[s.id],function(n,r){return t("span",[e._v(" "+e._s(r==0?n:`,${n}`)+" ")])}),0):t("div",{staticClass:"process-pc-value--data",staticStyle:{color:"#888"}},[t("span",[e._v(" \u8BF7\u9009\u62E9\u5BA1\u6279\u4EBA ")])])])])]})]:e._e()],2),t("TopTips",{ref:"topTips",attrs:{text:e.textTips,statusTips:e.statusTips,type:e.typeTips}}),t("TopPopup",{ref:"TopPopup",attrs:{visible:e.visible,titleText:"\u9009\u4EBA",isDrawer:!0},on:{"update:visible":function(s){return e.visible=s}}},[t("div",{staticStyle:{height:"100%"}},[e.visible?t("departPerson",e._b({attrs:{isTitle:!1,visible:e.visible,request:e.param.request},on:{"update:visible":function(s){e.visible=s},callback:e.handleCallback,cancel:e.handleCancel}},"departPerson",e.entity,!1)):e._e()],1)]),e.labels=="5"?t("attchViews",{attrs:{limit:e.limit?e.limit:-1,requires:e.requires,request:e.param.request,linkUrl:e.param.linkUrl},on:{getValue:e.getValues}}):e._e(),t("TopPopup",{ref:"TopPopup",attrs:{visible:e.visibleListMsg,titleText:"\u5E38\u7528\u610F\u89C1",isDrawer:!0},on:{"update:visible":function(s){return e.visibleListMsg=s}}},[t("MsgList",{attrs:{visible:e.visibleListMsg,request:e.param.request,useInfo:e.param.userInfo},on:{handleTips:e.handleTips,handleMsg:e.handleMsg}})],1),t("TopPopup",{attrs:{titleText:"\u64CD\u4F5C\u6D88\u606F\u63D0\u793A",isTips:!0,context:`\u5C06${e.commentMsg}\u8BBE\u7F6E\u4E3A\u5E38\u7528\u610F\u89C1`,cancel:e.handleTipsCancel,comfig:e.handleTipsComfig,visible:e.visibleMsgComfig},on:{"update:visible":function(s){return e.visibleMsgComfig=s}}})],1)},D0=[function(){var e=this,i=e.$createElement,t=e._self._c||i;return t("div",{staticClass:"process-pc-label"},[e._v(" \u52A0\u7B7E\u7406\u7531\uFF1A"),t("span",{staticClass:"process-pc-label--re"},[e._v("*")])])}];const pw="",O0={name:"counterSign",props:{param:{type:Object,defalut:()=>{}}},components:{TopTips:mt,attchViews:xi,TopPopup:ze,departPerson:Pt.departPerson,MsgList:Is},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,i){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((i,t)=>{e.push(i)}),this.handleTips("",!0,"loading"),this.param.request.post("/bladex/blade-workflow/tis/addSignTask",{signPersoneds:e,taskId:this.param.taskInstId,comment:this.commentMsg}).then(i=>{i.code==200?(this.$emit("handleClosePopup1"),this.handleTips("\u63D0\u4EA4\u6210\u529F!",!1,"success"),window.top.postMessage("success","*"),this.handleFinal(),this.commentMsg=""):this.handleTips(i.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((i,t)=>{this.multiNodeParticipant[this.partObjId].push(i.id),this.partNode[this.partObjId].push(i.name),this.entity.checkedArray.push({type:3,id:i.id,subjectId:i.subjectId})})},handleCancel(){},getValues(e){this.attchLists=e},async uploadAttch(){if(this.attchLists.length>0){this.attchLists.map((t,s)=>{t.size=t.fileSize,t.format=t.originFileName.substring(t.originFileName.lastIndexOf(".")+1),t.uploadTime=t.createTime,t.processInstId=this.param.processInstId,t.taskInstId=this.param.taskInstId,t.name=t.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,i,t){this.textTips=e,this.statusTips=i,this.typeTips=t,this.$refs.topTips.handleOpen()},handleFinal(){this.param.endFunction&&this.param.endFunction("counterSign")}}},rp={};var M0=ye(O0,P0,D0,!1,B0,"b5145b72",null,null);function B0(e){for(let i in rp)this[i]=rp[i]}const R0=function(){return M0.exports}();var L0=function(){var e=this,i=e.$createElement,t=e._self._c||i;return t("div",{staticClass:"process-popup-content"},[t("div",{staticClass:"process-popup-content-msg"},[e.param.isMsg?t("div",[t("div",{staticClass:"process-radio-item",staticStyle:{color:"#1389ff","font-size":"14px"},on:{click:function(s){return e.handleOpenMsg()}}},[e._v(" \u5E38\u7528\u610F\u89C1 ")])]):e._e(),e._m(0),t("div",{staticClass:"process-pc-value"},[t("div",{staticClass:"process-popup-textarea"},[t("textarea",{directives:[{name:"model",rawName:"v-model",value:e.commentMsg,expression:"commentMsg"}],staticClass:"textarea-item",attrs:{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,'')"},domProps:{value:e.commentMsg},on:{input:function(s){s.target.composing||(e.commentMsg=s.target.value)}}}),t("div",{staticClass:"process-popup-textarea-num"},[e._v(" "+e._s(e.commentMsg.length)+"/200 ")])]),e.param.isMsg?t("div",{staticClass:"msg-btn"},[t("span",{staticClass:"msg-btn-click",on:{click:function(s){return e.handleMakeMsg()}}},[e._v("\u8BBE\u7F6E\u4E3A\u5E38\u7528\u610F\u89C1")])]):e._e()])]),t("div",{staticClass:"process-popup-content-person"},[e.nextNodeData.length?[e._l(e.nextNodeData,function(s){return[t("div",[e._v(" \u5BA1\u6279\u4EBA "),t("span",{staticClass:"process-pc-label--re"},[e._v("*")])]),t("div",{staticClass:"process-pc-value",on:{click:function(n){return e.handleOpenPopup(s.id)}}},[t("div",{staticClass:"process-pc-value--people"},[e.partNode[s.id]&&e.partNode[s.id].length?t("div",{staticClass:"process-pc-value--data"},e._l(e.partNode[s.id],function(n,r){return t("span",[e._v(" "+e._s(r==0?n:`,${n}`)+" ")])}),0):t("div",{staticClass:"process-pc-value--data",staticStyle:{color:"#888"}},[t("span",[e._v(" \u8BF7\u9009\u62E9\u5BA1\u6279\u4EBA ")])])])])]})]:e.outGatewayUserTaskModel.length?[e._l(e.outGatewayUserTaskModel,function(s){return[t("div",{staticClass:"process-pc-label"},[e._v(" \u5BA1\u6279\u4EBA "),t("span",{staticClass:"process-pc-label--re"},[e._v("*")])]),t("div",{staticClass:"process-pc-value",on:{click:function(n){return e.handleOpenPopup(s.id)}}},[t("div",{staticClass:"process-pc-value--people"},[e.partNode[s.id]&&e.partNode[s.id].length?t("div",{staticClass:"process-pc-value--data"},e._l(e.partNode[s.id],function(n,r){return t("span",[e._v(" "+e._s(r==0?n:`,${n}`)+" ")])}),0):t("div",{staticClass:"process-pc-value--data",staticStyle:{color:"#888"}},[t("span",[e._v(" \u8BF7\u9009\u62E9\u5BA1\u6279\u4EBA ")])])])])]})]:e._e()],2),t("TopTips",{ref:"topTips",attrs:{text:e.textTips,statusTips:e.statusTips,type:e.typeTips}}),t("TopPopup",{ref:"TopPopup",attrs:{visible:e.visible,titleText:"\u9009\u4EBA",isDrawer:!0},on:{"update:visible":function(s){return e.visible=s}}},[t("div",{staticStyle:{height:"100%"}},[e.visible?t("departPerson",e._b({attrs:{isTitle:!1,visible:e.visible,request:e.param.request},on:{"update:visible":function(s){e.visible=s},callback:e.handleCallback,cancel:e.handleCancel}},"departPerson",e.entity,!1)):e._e()],1)]),e.labels=="1"?t("attchViews",{attrs:{limit:e.limit?e.limit:-1,requires:e.requires,request:e.param.request,linkUrl:e.param.linkUrl},on:{getValue:e.getValues}}):e._e(),t("TopPopup",{ref:"TopPopup",attrs:{visible:e.visibleListMsg,titleText:"\u5E38\u7528\u610F\u89C1",isDrawer:!0},on:{"update:visible":function(s){return e.visibleListMsg=s}}},[t("MsgList",{attrs:{visible:e.visibleListMsg,request:e.param.request,useInfo:e.param.userInfo},on:{handleTips:e.handleTips,handleMsg:e.handleMsg}})],1),t("TopPopup",{attrs:{titleText:"\u64CD\u4F5C\u6D88\u606F\u63D0\u793A",isTips:!0,context:`\u5C06${e.commentMsg}\u8BBE\u7F6E\u4E3A\u5E38\u7528\u610F\u89C1`,cancel:e.handleTipsCancel,comfig:e.handleTipsComfig,visible:e.visibleMsgComfig},on:{"update:visible":function(s){return e.visibleMsgComfig=s}}})],1)},F0=[function(){var e=this,i=e.$createElement,t=e._self._c||i;return t("div",{staticClass:"process-pc-label"},[e._v(" \u8F6C\u5BA1\u7406\u7531\uFF1A"),t("span",{staticClass:"process-pc-label--re"},[e._v("*")])])}];const dw="",V0={name:"delegateTask",props:{param:{type:Object,defalut:()=>{}}},components:{TopTips:mt,attchViews:xi,TopPopup:ze,departPerson:Pt.departPerson,MsgList:Is},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,i){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(i=>i.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(i=>{i.code==200?(this.$emit("handleClosePopup1"),this.handleTips("\u63D0\u4EA4\u6210\u529F!",!1,"success"),window.top.postMessage("success","*"),this.handleFinal(),this.commentMsg=""):this.handleTips(i.msg,!0,"error")})},attachShow(e="\u529E\u7406"){const i=(this.param||{}).extendedProperties||[];let t=!1,s,n="";s=i.find(a=>a.name=="delegateTaskButtonAnnex"),n=s?s.value:"",n&&(t=!0);let r="";if(typeof n!="string"&&n!=null&&n.map(a=>{a.indexOf(this.operationLabel)!=-1&&(t=!0,r=a)}),r&&(n=r),t){const a=n.split(":");this.attachRule.required=a[1]=="true",this.attachRule.limit=a[2]==-1?999:a[2],this.otherList=n;let o=this.otherList.split(":");this.limit=o[2],this.requires=JSON.parse(o[1]),this.labels=o[0]}return this.labels,this.limit,t},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((i,t)=>{this.multiNodeParticipant[this.partObjId].push(i.id),this.partNodeArr[this.partObjId].push(i),this.partNode[this.partObjId].push(i.name),this.entity.checkedArray.push({type:3,id:i.id,subjectId:i.subjectId})})},handleCancel(){},getValues(e){this.attchLists=e},async uploadAttch(){if(this.attchLists.length>0){this.attchLists.map((t,s)=>{t.size=t.fileSize,t.format=t.originFileName.substring(t.originFileName.lastIndexOf(".")+1),t.uploadTime=t.createTime,t.processInstId=this.param.processInstId,t.taskInstId=this.param.taskInstId,t.name=t.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,i,t){this.textTips=e,this.statusTips=i,this.typeTips=t,this.$refs.topTips.handleOpen()},handleFinal(){this.param.endFunction&&this.param.endFunction("delegateTask")}}},ap={};var j0=ye(V0,L0,F0,!1,Q0,"3e18ae74",null,null);function Q0(e){for(let i in ap)this[i]=ap[i]}const U0=function(){return j0.exports}(),G0="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAMgAAADICAYAAACtWK6eAAAAAXNSR0IArs4c6QAACZ5JREFUeF7tne1xG0cMhkE2EqeS2JXY6iLRZMb2jEdJF3YqiVNJ5EbMzIlhRDIiecAt9uPeh3+9wC5e4BEWx7O0MT4ogAIXFdigDQqgwGUFAITqQIErCgAI5YECAEINoEBMATpITDesRBQAEJFEE2ZMAQCJ6YaViAIAIpJowowpACAx3bASUQBARBJNmDEFACSmG1YiCgCISKIJM6YAgMR0w0pEAQARSTRhxhQAkJhuWIkoACAiiSbMmAIAEtMNKxEFAEQk0YQZUwBAYrphJaIAgIgkmjBjCgBITDesRBQAEJFEE2ZMAQCJ6YaViAIAIpJowowpACAx3bASUQBARBJNmDEFACSmG1YiCgCISKIJM6YAgMR0w0pEAQARSTRhxhQAkJhuWIkoACAiiSbMmAIAEtMNKxEFAEQk0YQZUwBAYrphJaIAgIgkmjBjCgBITDesRBQAEJFEE2ZMAQCJ6YaViAIAIpJowowpACAx3bASUQBARBJNmDEFACSmG1YiCgCISKKHDfPn3Svb2tt/z//NtvZonzZfa8UDILWUZh+fAs9gfDgzfDSzL/aw+ehzGFsNIDHdsMpUYA/Hn2b26so2j/aw+THzGJNvAMlWGP8+BX7dvbbvT3DM+aRDAiBz0sCaOgrc796b2fmV6tbe03Xr7tai6L8DSFQ57Moq8MvuT9vY65DTrb3JGtwBJJQRjIopMM0bG/schmN/kLQuAiDFMo0jtwK+eeOy+519td82b9z7zzAAkBk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igAIA6xWKqnAIDo5ZyIHQoAiEMsluopACB6OSdihwIA4hCLpXoKAIhezonYoQCAOMRiqZ4CAKKXcyJ2KAAgDrFYqqcAgOjlnIgdCgCIQyyW6ikAIHo5J2KHAgDiEIulegoAiF7OidihAIA4xGKpngIAopdzInYoACAOsViqpwCA6OWciB0KAIhDLJbqKQAgejknYocCAOIQi6V6CgCIXs6J2KEAgDjEYqmeAgCil3MidigAIA6xWKqnAIDo5ZyIHQoAiEMsluopACB6OSdihwIA4hCLpXoKAIhezonYoQCAOMRiqZ4CAKKXcyJ2KAAgDrFYqqcAgOjlnIgdCgCIQyyW6inwD771qeduEnFsAAAAAElFTkSuQmCC",hw="";var q0=function(){var e=this,i=e.$createElement,t=e._self._c||i;return e.nodeItems&&e.nodeItems.length?t("div",{staticClass:"treenode"},[e.endNode?e._e():t("div",{staticClass:"treenode-multi"},[t("div",{staticClass:"treenode-node",staticStyle:{"margin-top":"0"}},[e._l(e.nodeItems,function(s){return[e.checkType=="InclusiveGatewayModel"&&e.nodeItems.length>1?t("div",{staticClass:"treenode-checkbox",class:e.checkBoxArr.includes(s.id)?"treenode-checkbox-active":"",on:{click:function(n){return e.handleCheckBoxClick(s)}}},[t("span",[e.checkBoxArr.includes(s.id)?t("img",{staticClass:"treenode-checkbox-active-img",attrs:{src:e.check}}):e._e()]),e._v(" "+e._s(s.nodeName||s.name)+" ")]):e.checkType=="ExclusiveGatewayModel"&&e.nodeItems.length>1?t("div",{staticClass:"treenode-radio",class:e.radioArr==s.id?"treenode-radio-active":"",on:{click:function(n){return e.handleRadioClick(s)}}},[t("span"),e._v(" "+e._s(s.nodeName||s.name)+" ")]):e._e()]})],2),e.checkType=="InclusiveGatewayModel"&&e.checkBoxItem&&e.checkBoxItem.length?e._l(e.checkBoxItem,function(s){return t("div",{staticClass:"treenode-node"},[s.childNode&&s.childNode.length?t("div",[t("TreeNode",{attrs:{items:s.childNode,endNode:s.childNode.length==1,nodeType:e.nodeType,param:e.param,checkType:s.type},on:{onMultiNode:e.onMultiNode,onVars:e.onVars}})],1):t("div",{staticClass:"personselect"},[t("div",{staticClass:"personselect-name"},[e._v(" "+e._s(s.name||s.nodeName)+" ")]),t("div",{staticClass:"items-person"},[s.userList&&s.userList.length>0?t("div",{staticClass:"items-person-set",on:{click:function(n){return e.handleOpenFixedPerson(s)}}},[e._v(" \u9009\u62E9 ")]):s.humanPerformerName!=="\u56FA\u5B9A\u8D26\u6237"&&s.humanPerformerName!=="\u4E0E\u6D41\u7A0B\u7533\u8BF7\u4EBA\u76F8\u5173"?[t("div",{staticClass:"items-person-set",on:{click:function(n){return n.stopPropagation(),e.handleOpenPopup(s)}}},[e._v(" \u8BBE\u7F6E ")])]:e._e(),s.userList&&s.userList.length>0?t("div",{staticClass:"items-person-name"},[e._v(" "+e._s(e.partNode[s.id]?e.partNode[s.id].join(","):"")+" ")]):s.humanPerformerName!=="\u56FA\u5B9A\u8D26\u6237"&&s.humanPerformerName!=="\u4E0E\u6D41\u7A0B\u7533\u8BF7\u4EBA\u76F8\u5173"?t("div",{staticClass:"items-person-name"},[e._v(" "+e._s(e.partNode[s.id]?e.partNode[s.id].join(","):"")+" ")]):s.routeTxt&&s.routeTxt.userNames?t("div",{staticClass:"items-person-name"},[e._v(" "+e._s(s.routeTxt.userNames)+" ")]):e._e()],2),s.routeTxt&&s.routeTxt.length>0?t("div",{staticClass:"views-items-includes"},[t("div",{staticClass:"views-items-name2"},[e._v(" "+e._s("\u6240\u5C5E\u8303\u56F4")+" ")]),t("div",{staticClass:"views-items-and2"},e._l(s.routeTxt,function(n,r){return t("div",{key:n.type},[n.ids&&n.ids.length>0?t("div",[t("div",{staticClass:"include"},[t("b",{staticClass:"include include-type",class:["include-"+n.type]},[e._v(e._s(n.type=="user"?"\u7528\u6237":n.type=="dept"?"\u90E8\u95E8":"\u5C97\u4F4D"))]),t("span",{staticClass:"include include-name"},[e._v(e._s(n.name))])]),r!==s.routeTxt.length-1?t("div",{staticClass:"include include-assign",class:["include-assign-"+(n.assigneeRetain?"true":"false")]},[e._v(e._s(s.assigneeRetain=="true"?"\u4E14\u540C\u65F6\u6EE1\u8DB3":"\u6216\u8005\u6EE1\u8DB3"))]):e._e()]):e._e()])}),0)]):e._e()])])}):e._e(),e.checkType=="ExclusiveGatewayModel"&&e.radioItem&&e.radioItem.length?e._l(e.radioItem,function(s){return t("div",{staticClass:"treenode-node"},[s.childNode&&s.childNode.length?t("div",[t("TreeNode",{attrs:{items:s.childNode,endNode:s.childNode.length==1,nodeType:e.nodeType,param:e.param,checkType:s.type},on:{onMultiNode:e.onMultiNode,onVars:e.onVars}})],1):t("div",{staticClass:"personselect"},[t("div",{staticClass:"personselect-name"},[e._v(" "+e._s(s.name||s.nodeName)+" ")]),t("div",{staticClass:"items-person"},[s.userList&&s.userList.length>0?t("div",{staticClass:"items-person-set",on:{click:function(n){return e.handleOpenFixedPerson(s)}}},[e._v(" \u9009\u62E9 ")]):s.humanPerformerName!=="\u56FA\u5B9A\u8D26\u6237"&&s.humanPerformerName!=="\u4E0E\u6D41\u7A0B\u7533\u8BF7\u4EBA\u76F8\u5173"?[t("div",{staticClass:"items-person-set",on:{click:function(n){return n.stopPropagation(),e.handleOpenPopup(s)}}},[e._v(" \u8BBE\u7F6E ")])]:e._e(),s.userList&&s.userList.length>0?t("div",{staticClass:"items-person-name"},[e._v(" "+e._s(e.partNode[s.id]?e.partNode[s.id].join(","):"")+" ")]):s.humanPerformerName!=="\u56FA\u5B9A\u8D26\u6237"&&s.humanPerformerName!=="\u4E0E\u6D41\u7A0B\u7533\u8BF7\u4EBA\u76F8\u5173"?t("div",{staticClass:"items-person-name"},[e._v(" "+e._s(e.partNode[s.id]?e.partNode[s.id].join(","):"")+" ")]):s.routeTxt&&s.routeTxt.userNames?t("div",{staticClass:"items-person-name"},[e._v(" "+e._s(s.routeTxt.userNames)+" ")]):e._e()],2),s.routeTxt&&s.routeTxt.length>0?t("div",{staticClass:"views-items-includes"},[t("div",{staticClass:"views-items-name2"},[e._v(" "+e._s("\u6240\u5C5E\u8303\u56F4")+" ")]),t("div",{staticClass:"views-items-and2"},e._l(s.routeTxt,function(n,r){return t("div",{key:n.type},[n.ids&&n.ids.length>0?t("div",[t("div",{staticClass:"include"},[t("b",{staticClass:"include include-type",class:["include-"+n.type]},[e._v(e._s(n.type=="user"?"\u7528\u6237":n.type=="dept"?"\u90E8\u95E8":"\u5C97\u4F4D"))]),t("span",{staticClass:"include include-name"},[e._v(e._s(n.name))])]),r!==s.routeTxt.length-1?t("div",{staticClass:"include include-assign",class:["include-assign-"+(n.assigneeRetain?"true":"false")]},[e._v(e._s(s.assigneeRetain=="true"?"\u4E14\u540C\u65F6\u6EE1\u8DB3":"\u6216\u8005\u6EE1\u8DB3"))]):e._e()]):e._e()])}),0)]):e._e()])])}):e._e()],2),e.endNode?t("div",{staticClass:"treenode-single"},e._l(e.nodeItems,function(s){return t("div",{staticClass:"treenode-single-items"},[t("div",{staticClass:"personselect"},[t("div",{staticClass:"personselect-name"},[e._v(" "+e._s(s.name||s.nodeName)+" ")]),s.nodeType!=="endEvent"?t("div",{staticClass:"items-person"},[s.userList&&s.userList.length>0?t("div",{staticClass:"items-person-set",on:{click:function(n){return e.handleOpenFixedPerson(s)}}},[e._v(" \u9009\u62E9 ")]):s.setPersonnel?t("div",{staticClass:"items-person-name"},[e._v(" "+e._s((s.assignees||[]).map(function(n){return n.name}).join(","))+" ")]):[t("div",{staticClass:"items-person-set",on:{click:function(n){return n.stopPropagation(),e.handleOpenPopup(s)}}},[e._v(" \u8BBE\u7F6E ")])],t("div",{staticClass:"items-person-name"},[!e.partNode[s.id]&&s.humanPerformerName=="\u56FA\u5B9A\u89D2\u8272/\u5C97\u4F4D"&&s.noPersonnel?t("div",[e._v(" \u6CA1\u6709\u53EF\u9009\u4EBA\u5458\uFF0C\u8BF7\u68C0\u67E5\u914D\u7F6E ")]):e._e(),e._v(" "+e._s(e.partNode[s.id]?e.partNode[s.id].join(","):"")+" ")])],2):e._e(),s.routeTxt&&s.routeTxt.length>0?t("div",{staticClass:"views-items-includes"},[t("div",{staticClass:"views-items-name2"},[e._v(" "+e._s("\u6240\u5C5E\u8303\u56F4")+" ")]),t("div",{staticClass:"views-items-and2"},e._l(s.routeTxt,function(n,r){return t("div",{key:n.type},[n.ids&&n.ids.length>0?t("div",[t("div",{staticClass:"include"},[t("b",{staticClass:"include include-type",class:["include-"+n.type]},[e._v(e._s(n.type=="user"?"\u7528\u6237":n.type=="dept"?"\u90E8\u95E8":"\u5C97\u4F4D"))]),t("span",{staticClass:"include include-name"},[e._v(e._s(n.name))])]),r!==s.routeTxt.length-1?t("div",{staticClass:"include include-assign",class:["include-assign-"+(n.assigneeRetain?"true":"false")]},[e._v(e._s(s.assigneeRetain=="true"?"\u4E14\u540C\u65F6\u6EE1\u8DB3":"\u6216\u8005\u6EE1\u8DB3"))]):e._e()]):e._e()])}),0)]):e._e()])])}),0):e._e(),t("TopPopup",{ref:"TopPopup",attrs:{visible:e.visible,titleText:"\u9009\u4EBA",isDrawer:!0},on:{"update:visible":function(s){return e.visible=s}}},[e.visible?t("departPerson",e._b({attrs:{isTitle:!1},on:{callback:e.handleCallback}},"departPerson",e.entity,!1)):e._e()],1),t("SelectFixedPerson",{attrs:{visible:e.showFixedPerson,list:e.fixedPersonList,multiple:e.currentClickItem.loopCardinality==-1,select:e.fixedSelect[e.partObjId]||[]},on:{updateList:e.handleClickFixedPerson,updateVisible:e.updateFixedPersonVisible,updateSelect:e.updateFixedSelect,confirm:e.handleSumbitFixedPerson}}),t("TopTips",{ref:"topTips",attrs:{text:e.textTips,statusTips:e.statusTips,type:e.typeTips}})],1):e._e()},J0=[];const fw="",H0={name:"TreeNode",components:{SelectFixedPerson:tp,TopPopup:ze,TopTips:mt,departPerson:Pt.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{currentClickItem:{},fixedSelect:{},showFixedPerson:!1,fixedPersonList:[],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,i){e&&e.length&&(this.multiNodeParticipant={},this.partNode={},this.partNodeArr={},this.gateVars={},this.nodeItems=JSON.parse(JSON.stringify(e)),this.nodeItems,this.nodeItems.map(t=>{if(Array.isArray(t.assignees),t.assignees,t.userTaskModelDTO||(t.userTaskModelDTO={name:t.name,humanPerformer:{name:t.humanPerformerName},routeTxt:t.routeTxt,participantList:t.participantList}),Array.isArray(t.assignees)&&t.assignees.length&&(this.multiNodeParticipant[t.id]||(this.multiNodeParticipant[t.id]=[]),this.partNodeArr[t.id]||(this.partNodeArr[t.id]=[]),t.assignees.forEach(s=>{this.partNodeArr,this.multiNodeParticipant;const n=this.partNodeArr[t.id].find(a=>a.name==s.name),r=this.multiNodeParticipant[t.id].find(a=>a==s.id);n||this.partNodeArr[t.id].push(s),r||this.multiNodeParticipant[t.id].push(s.id)})),t.userTaskModelDTO&&t.userTaskModelDTO.participantList&&t.userTaskModelDTO.participantList.length&&t.userTaskModelDTO.humanPerformer&&t.userTaskModelDTO.participantList.map(s=>{this.multiNodeParticipant[t.id]||(this.multiNodeParticipant[t.id]=[]),this.partNode[t.id]||(this.partNode[t.id]=[]),this.partNodeArr[t.id]||(this.partNodeArr[t.id]=[]),this.multiNodeParticipant[t.id].includes(s.id)||this.multiNodeParticipant[t.id].push(s.id),this.partNode[t.id].includes(s.name)||this.partNode[t.id].push(s.name),this.partNodeArr[t.id].find(n=>n.name==s.name)||this.partNodeArr[t.id].push(s)}),(t.userTaskModelDTO.humanPerformer.name=="\u56FA\u5B9A\u8D26\u6237"||t.userTaskModelDTO.humanPerformer.name=="\u4E0E\u6D41\u7A0B\u7533\u8BF7\u4EBA\u76F8\u5173")&&this.personMake.push(t.id),t.userTaskModelDTO.humanPerformer.name=="\u56FA\u5B9A\u89D2\u8272/\u5C97\u4F4D"){let s={taskDefId:t.id,postIds:[]};t.userTaskModelDTO.routeTxt.postList.map(n=>{s.postIds.push(n.postId)}),this.param.request.post("/auth/user/getTaskAuditor",{deptId:this.param.taskNode&&this.param.taskNode[0].vars?this.param.taskNode[0].vars._businessDeptId:"",taskPostIds:[s]}).then(n=>{let r=[],a=[],o=!1;n.data.map(p=>{p.posts.map(h=>{a.push(...h.users),h.users.length==1?r.push(...h.users):o=!0})}),r.length>t.loopCardinality&&t.loopCardinality>0&&(o=!0),o&&(r=[]);let l=[];n.data[0].posts.map(p=>{l.push({...p,projectPost:!(this.param.taskNode&&this.param.taskNode[0].vars&&this.param.taskNode[0].vars._businessDeptId),id:p.users.map(h=>h.id)})}),a.length==0&&this.$set(t,"noPersonnel",!0),r.length>0&&(this.$set(t,"noPersonnel",!0),this.partObjId=t.id,this.handleCallback(r)),t.positionArray=l})}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 Na}},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.$set(this.multiNodeParticipant,this.partObjId,[]),this.$set(this.partNode,this.partObjId,[]),this.$set(this.partNodeArr,this.partObjId,[]),e.map((i,t)=>{this.multiNodeParticipant[this.partObjId].push(i.id),this.partNode[this.partObjId].push(i.name),this.partNodeArr[this.partObjId].push(i)}),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 i=e.childNode&&e.childNode.length?e.childNode:e&&e.length?e:[e];i&&i.length&&i.forEach((t,s)=>{t.participantList&&t.participantList.length?t.participantList.forEach((n,r)=>{this.multiNodeParticipant[t.id]||(this.multiNodeParticipant[t.id]=[]),this.partNode[t.id]||(this.partNode[t.id]=[]),this.partNodeArr[t.id]||(this.partNodeArr[t.id]=[]),this.multiNodeParticipant[t.id].includes(n.id)||this.multiNodeParticipant[t.id].push(n.id),this.partNode[t.id].includes(n.name)||this.partNode[t.id].push(n.name),this.partNodeArr[t.id].find(a=>a.name==n.name)||this.partNodeArr[t.id].push(n)}):t.id&&t.humanPerformerName=="\u56FA\u5B9A\u4EBA\u5458"&&this.param.request.post(`/aws/repository/getParticipantsOfPerformerNames?taskInstId=${this.param.taskInstId}`,{userTaskDefIds:[t.id]}).then(n=>{n.code==200&&(this.partNode[t.id]={},this.partNode[t.id]=n.data[t.id].split(";"))}),this.nodeType=="outing"&&(this.onVarsData&&(this.gateVars={...this.gateVars,...this.onVarsData}),this.$emit("onVars",this.gateVars))})},handleOpenFixedPerson(e){this.currentClickItem=e,this.partObjId=e.id,this.showFixedPerson=!0,this.fixedPersonList=e.userList||[]},updateFixedPersonVisible(e){this.showFixedPerson=e},updateFixedSelect(e){},handleSumbitFixedPerson(e){this.$set(this.fixedSelect,this.partObjId,e),this.$set(this.multiNodeParticipant,this.partObjId,[]),this.$set(this.partNode,this.partObjId,[]),this.$set(this.partNodeArr,this.partObjId,[]),e.map((i,t)=>{this.multiNodeParticipant[this.partObjId].push(i.userId),this.partNode[this.partObjId].push(i.realName),this.partNodeArr[this.partObjId].push({...i,name:i.realName,id:i.userId})}),this.onMultiNodeData&&(this.multiNodeParticipant={...this.multiNodeParticipant,...this.onMultiNodeData}),this.$emit("onMultiNode",this.multiNodeParticipant),this.$emit("onMultiNodeObj",this.partNodeArr),this.showFixedPerson=!1},handleClickFixedPerson(e){this.$set(this.multiNodeParticipant,this.partObjId,[]),this.$set(this.partNode,this.partObjId,[]),this.$set(this.partNodeArr,this.partObjId,[]),e.map((i,t)=>{this.multiNodeParticipant[this.partObjId].push(i.userId),this.partNode[this.partObjId].push(i.realName),this.partNodeArr[this.partObjId].push({...i,name:i.realName,id:i.userId})}),this.onMultiNodeData&&(this.multiNodeParticipant={...this.multiNodeParticipant,...this.onMultiNodeData}),this.$emit("onMultiNode",this.multiNodeParticipant),this.$emit("onMultiNodeObj",this.partNodeArr),this.showFixedPerson=!1},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"),e.humanPerformer.name=="\u56FA\u5B9A\u5355\u4F4D"||e.humanPerformerName=="\u56FA\u5B9A\u5355\u4F4D"){let i,t=[];this.multiNodeParticipant,this.multiNodeParticipant[e.id]&&this.multiNodeParticipant[e.id].length&&this.partNodeArr[e.id].forEach((s,n)=>{t.push({type:3,id:s.id,subjectId:s.subjectId})}),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?0:1,subjectName:i,checkedArray:t}}else if(e.humanPerformer.name=="\u56FA\u5B9A\u90E8\u95E8"||e.humanPerformerName=="\u56FA\u5B9A\u90E8\u95E8"){let i,t=[],s=[];e.routeTxt.departmentIds.forEach((n,r)=>{e.routeTxt.departmentIds.length>1?t.push(n.rangeId):i=n.rangeId}),this.multiNodeParticipant[e.id]&&this.multiNodeParticipant[e.id].length&&this.partNodeArr[e.id].forEach((n,r)=>{s.push({type:3,id:n.id,deptId:i,subjectId:n.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==-1?0:1,deptCodeArray:t,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==-1?0:1,deptCode:i,checkedArray:s}}else if(e.humanPerformer.name=="\u56FA\u5B9A\u89D2\u8272/\u5C97\u4F4D"||e.humanPerformerName=="\u56FA\u5B9A\u89D2\u8272/\u5C97\u4F4D"){let i=[];this.multiNodeParticipant[e.id]&&this.multiNodeParticipant[e.id].length&&this.partNodeArr[e.id].forEach((t,s)=>{i.push({type:3,id:t.id,subjectId:t.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==-1?0:1,positionArray:e.positionArray,checkedArray:i}}else{let i=[];this.multiNodeParticipant[e.id]&&this.multiNodeParticipant[e.id].length&&this.partNodeArr[e.id].forEach((t,s)=>{i.push({type:3,id:t.id,subjectId:t.subjectId})}),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?0:1,checkedArray:i}}},handleTips(e,i,t){this.textTips=e,this.statusTips=i,this.typeTips=t,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))}}},op={};var K0=ye(H0,q0,J0,!1,W0,"4064b34c",null,null);function W0(e){for(let i in op)this[i]=op[i]}const Y0=function(){return K0.exports}();var z0=function(){var e=this,i=e.$createElement,t=e._self._c||i;return t("div",{staticClass:"test"},[e.param.nodeLoading?[e._m(0)]:[e.nodeItems&&e.nodeItems.length?t("div",e._l(e.nodeItems,function(s,n){return t("div",{key:n,staticClass:"treeperson"},[s.nodeType=="endEvent"?[t("div",[e._v(" \u4E0B\u4E00\u8282\u70B9\uFF1A\u7ED3\u675F\u4E8B\u4EF6 ")])]:s.branches&&s.branches.length?[e.nodeType=="nexting"&&s.nodeType!="inclusiveGateway"?[s.nodeType=="exclusiveGateway"&&s.branches.length>1?t("div",{staticClass:"treeperson-firstnode"},[e._m(1,!0),e._l(s.branches,function(r,a){return t("div",{key:a,staticClass:"treeperson-radio",class:e.firstCheck==(r.nodeInfoDTO?r.nodeInfoDTO.id:r.id)?"treeperson-radio-active":"",on:{click:function(o){return e.handleFirstNodeClick(r,s.branches)}}},[t("span"),e._v(" "+e._s(r.id.includes("Flow")?r.nodeName||r.name?r.nodeName||r.name:r.nodeInfoDTO?r.nodeInfoDTO.nodeName||r.nodeInfoDTO.name:"":r.nodeInfoDTO?r.nodeInfoDTO.nodeName||r.nodeInfoDTO.name||r.nodeName||r.name:r.nodeName||r.name)+" ")])})],2):s.nodeType=="exclusiveGateway"&&s.branches.length==1?t("div",{staticClass:"treeperson-firstnode"},e._l(s.branches,function(r,a){return t("div",[t("span"),t("tree-person",{ref:"TreePersonRef",refInFor:!0,attrs:{items:r.branches&&r.branches.length>0?r.branches:[r],nodeType:"nexting",param:e.param},on:{onMultiNode:e.onMultiNode,onMultiNodeObj:e.onMultiNodeObj}})],1)}),0):s.nodeType=="inclusiveGateway"&&s.branches.length>=1?t("div",{staticClass:"treeperson-firstnode"},[e._m(2,!0),e._l(s.branches,function(r,a){return t("div",{key:a,staticClass:"treeperson-radio",class:e.firstCheck==(r.nodeInfoDTO?r.nodeInfoDTO.id:r.id)?"treeperson-radio-active":"",on:{click:function(o){return e.handleMultiFirstNodeClick(r)}}},[t("span"),e._v(" "+e._s(r.nodeInfoDTO?r.nodeInfoDTO.nodeName||r.nodeInfoDTO.name:r.nodeName||r.name)+" ")])})],2):t("div",{staticClass:"treeperson-firstnode"},[e._m(3,!0),e._l(s.branches,function(r,a){return t("div",{key:a,staticClass:"treeperson-radio",class:e.firstCheck==(r.nodeInfoDTO?r.nodeInfoDTO.id:r.id)?"treeperson-radio-active":"",on:{click:function(o){return e.handleFirstNodeClick(r,s.branches)}}},[t("span"),e._v(" "+e._s(r.nodeInfoDTO?r.nodeInfoDTO.nodeName||r.nodeInfoDTO.name:r.nodeName||r.name)+" ")])})],2),e.childrenItems&&e.childrenItems.length>0&&e.childrenItems[0].nodeInfoDTO&&e.childrenItems[0].nodeInfoDTO.nodeType!="userTask"?[t("tree-person",{key:e.firstCheck,ref:"TreePersonRef",refInFor:!0,attrs:{items:[e.firstCheckItem],nodeType:"nexting",param:e.param},on:{onMultiNode:e.onMultiNode,onMultiNodeObj:e.onMultiNodeObj}})]:e.childrenItems&&e.childrenItems.length>1&&e.childrenItems[0].nodeInfoDTO&&e.childrenItems[0].nodeInfoDTO.nodeType=="userTask"?[e._m(4,!0),t("div",{staticClass:"treeperson-checkbox-box"},e._l(e.childrenItems,function(r,a){return t("div",{key:a,staticClass:"treeperson-checkbox",class:e.firstMultiCheckSub.includes(r.nodeInfoDTO?r.nodeInfoDTO.id:r.id)?"treeperson-checkbox-active":"",on:{click:function(o){return e.handleMultiFirstNodeClickSub(r,e.childrenItems)}}},[t("span"),e._v(" "+e._s(r.nodeInfoDTO?r.nodeInfoDTO.nodeName||r.nodeInfoDTO.name:r.nodeName||r.name)+" ")])}),0),e._l(e.filterMultiItemsSub(e.childrenItems),function(r){return[t("TreeNode",{attrs:{items:r.branches&&r.branches.length>0?r.branches:[r.nodeInfoDTO?r.nodeInfoDTO:r],endNode:!0,nodeType:e.nodeType,param:e.param,checkType:e.firstType},on:{onMultiNode:function(a){return e.onMultiNode(a,"multi")},onMultiNodeObj:e.onMultiNodeObj,onVars:e.onVars}})]})]:[t("TreeNode",{attrs:{items:e.childrenItems,endNode:e.childrenEndItems,nodeType:e.nodeType,param:e.param,checkType:e.firstType},on:{onMultiNode:e.onMultiNode,onMultiNodeObj:e.onMultiNodeObj,onVars:e.onVars}})]]:e.nodeType=="nexting"&&s.nodeType=="inclusiveGateway"?[s.nodeType=="inclusiveGateway"&&s.branches.length>=1?t("div",{staticClass:"treeperson-firstnode"},[e._m(5,!0),t("div",{staticClass:"treeperson-checkbox-box"},e._l(s.branches,function(r,a){return t("div",{key:a,staticClass:"treeperson-checkbox",class:e.firstMultiCheck.includes(r.nodeInfoDTO?r.nodeInfoDTO.id:r.id)?"treeperson-checkbox-active":"",on:{click:function(o){return e.handleMultiFirstNodeClick(r,s.branches)}}},[t("span"),e._v(" "+e._s(r.nodeInfoDTO?r.nodeInfoDTO.nodeName||r.nodeInfoDTO.name:r.nodeName||r.name)+" ")])}),0)]):e._e(),e._l(e.filterMultiItems(s.branches),function(r){return[t("TreeNode",{attrs:{items:r.branches&&r.branches.length>0?r.branches:[r.nodeInfoDTO?r.nodeInfoDTO:r],endNode:!0,nodeType:e.nodeType,param:e.param,checkType:e.firstType},on:{onMultiNode:function(a){return e.onMultiNode(a,"multi")},onMultiNodeObj:e.onMultiNodeObj,onVars:e.onVars}})]})]:e._e()]:s.nodeType=="exclusiveGateway"&&s.branches&&s.branches.length>1?[e._m(6,!0),s.type=="ExclusiveGatewayModel"&&s.branches.length==1?e._e():t("div",{staticClass:"treeperson-firstnode"},e._l(s.branches,function(r,a){return t("div",{key:a,staticClass:"treeperson-checkbox",class:e.firstCheck==r.id?"treeperson-checkbox-active":"",on:{click:function(o){return e.handleFirstNodeClick(r,s.branches)}}},[t("span"),e._v(" "+e._s(r.nodeName||r.name)+" ")])}),0),t("TreeNode",{attrs:{items:e.childrenItems,endNode:e.childrenEndItems,nodeType:e.nodeType,param:e.param,checkType:e.firstType},on:{onMultiNode:function(r){return e.onMultiNode(r,"multi")},onMultiNodeObj:e.onMultiNodeObj,onVars:e.onVars}})]:s.nodeType=="exclusiveGateway"&&s.branches&&s.branches.length==1?[e._m(7,!0),e.nodeType=="nexting"?[t("TreeNode",{attrs:{items:[s.branches[0]],endNode:e.childrenEndItems,nodeType:e.nodeType,param:e.param,checkType:e.firstType},on:{onMultiNode:e.onMultiNode,onMultiNodeObj:e.onMultiNodeObj,onVars:e.onVars}})]:[t("TreeNode",{attrs:{items:[s.branches[0]],endNode:!0,nodeType:"nexting",param:e.param,checkType:e.firstType},on:{onMultiNode:e.onMultiNode,onMultiNodeObj:e.onMultiNodeObj,onVars:e.onVars}})]]:s.id||s.nodeInfoDTO&&s.nodeInfoDTO.id?[e.nodeType=="nexting"?[s.nodeInfoDTO&&s.nodeInfoDTO.nodeType=="exclusiveGateway"?[e._m(8,!0),e._l(s.nodeInfoDTO.branches,function(r,a){return t("div",{key:a,staticClass:"treeperson-radio",class:e.firstCheck==(r.nodeInfoDTO?r.nodeInfoDTO.id:r.id)?"treeperson-radio-active":"",on:{click:function(o){return e.handleFirstNodeClick(r,s.nodeInfoDTO.branches)}}},[t("span"),e._v(" "+e._s(r.nodeName||r.name)+" ")])}),t("tree-person",{key:e.firstCheck,ref:"TreePersonRef",refInFor:!0,attrs:{items:[e.firstCheckItem],nodeType:"nexting",param:e.param},on:{onMultiNode:e.onMultiNode,onMultiNodeObj:e.onMultiNodeObj}})]:[e._m(9,!0),t("TreeNode",{attrs:{items:[s.nodeInfoDTO?s.nodeInfoDTO:s],endNode:e.childrenEndItems,nodeType:e.nodeType,param:e.param,checkType:e.firstType},on:{onMultiNode:e.onMultiNode,onMultiNodeObj:e.onMultiNodeObj,onVars:e.onVars}})]]:[t("TreeNode",{attrs:{items:[s],endNode:!0,nodeType:"nexting",param:e.param,checkType:e.firstType},on:{onMultiNode:e.onMultiNode,onMultiNodeObj:e.onMultiNodeObj,onVars:e.onVars}})]]:void 0],2)}),0):e._e()]],2)},X0=[function(){var e=this,i=e.$createElement,t=e._self._c||i;return t("div",[t("span",[e._v("\u4E0B\u4E00\u8282\u70B9: ")]),t("b",{staticStyle:{"font-size":"16px"}},[e._v("\u8282\u70B9\u52A0\u8F7D\u4E2D\uFF0C\u8BF7\u7A0D\u540E......")])])},function(){var e=this,i=e.$createElement,t=e._self._c||i;return t("div",{staticClass:"treeperson-title"},[e._v(" \u4E0B\u4E00\u6B65\u5BA1\u6279\u8282\u70B9 "),t("span",{staticClass:"treeperson-title--re"},[e._v("*")])])},function(){var e=this,i=e.$createElement,t=e._self._c||i;return t("div",{staticClass:"treeperson-title"},[e._v(" \u4E0B\u4E00\u6B65\u5BA1\u6279\u8282\u70B9 "),t("span",{staticClass:"treeperson-title--re"},[e._v("*")])])},function(){var e=this,i=e.$createElement,t=e._self._c||i;return t("div",{staticClass:"treeperson-title"},[e._v(" \u4E0B\u4E00\u6B65\u5BA1\u6279\u8282\u70B9 "),t("span",{staticClass:"treeperson-title--re"},[e._v("*")])])},function(){var e=this,i=e.$createElement,t=e._self._c||i;return t("div",{staticClass:"treeperson-title"},[e._v(" \u4E0B\u4E00\u6B65\u5BA1\u6279\u8282\u70B9 "),t("span",{staticClass:"treeperson-title--re"},[e._v("*")])])},function(){var e=this,i=e.$createElement,t=e._self._c||i;return t("div",{staticClass:"treeperson-title"},[e._v(" \u4E0B\u4E00\u6B65\u5BA1\u6279\u8282\u70B9 "),t("span",{staticClass:"treeperson-title--re"},[e._v("*")])])},function(){var e=this,i=e.$createElement,t=e._self._c||i;return t("div",{staticClass:"treeperson-title"},[e._v(" \u4E0B\u4E00\u6B65\u5BA1\u6279\u8282\u70B9 "),t("span",{staticClass:"treeperson-title--re"},[e._v("*")])])},function(){var e=this,i=e.$createElement,t=e._self._c||i;return t("div",{staticClass:"treeperson-title"},[e._v(" \u4E0B\u4E00\u6B65\u5BA1\u6279\u8282\u70B9 "),t("span",{staticClass:"treeperson-title--re"},[e._v("*")])])},function(){var e=this,i=e.$createElement,t=e._self._c||i;return t("div",{staticClass:"treeperson-title"},[e._v(" \u4E0B\u4E00\u6B65\u5BA1\u6279\u8282\u70B9 "),t("span",{staticClass:"treeperson-title--re"},[e._v("*")])])},function(){var e=this,i=e.$createElement,t=e._self._c||i;return t("div",{staticClass:"treeperson-title"},[e._v(" \u4E0B\u4E00\u6B65\u5BA1\u6279\u8282\u70B9 "),t("span",{staticClass:"treeperson-title--re"},[e._v("*")])])}];const mw="",Z0={name:"tree-person",components:{TreeNode:Y0},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:[],firstMultiCheckSub:[],firstMultiCheckItemSub:[],firstMultiTypeSub:[],childrenItems:[],childrenEndItems:!1,childrenItemsSub:[],childrenEndItemsSub:!1,gateVars:{},multiNode:{},partNodeArr:{},getVars:{}}},watch:{items:{handler(e,i){e&&e.length&&(this.nodeType=="nexting"?(this.nodeItems=[],this.childrenEndItems=!0,e.forEach(t=>{t={...t,...t.userTaskModelDTO},this.nodeItems.push(t)})):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]),this.nodeItems)},immediate:!0,deep:!0}},methods:{filterMultiItems(e=[]){return this.firstMultiCheck,e.filter(i=>this.firstMultiCheck.includes(i.nodeInfoDTO?i.nodeInfoDTO.id:i.id))},filterMultiItemsSub(e=[]){return this.firstMultiCheckSub,e.filter(i=>this.firstMultiCheckSub.includes(i.nodeInfoDTO?i.nodeInfoDTO.id:i.id))},onMultiNode(e,i=""){i&&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(s=>s):this.multiNode[t]=e[t]}):this.multiNode=e:this.multiNode=e,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,i=[]){let t=e;if(t&&t.nodeInfoDTO&&(t=t.nodeInfoDTO),this.firstMultiCheck.includes(t.id)){this.firstMultiCheck=this.firstMultiCheck.filter(s=>s!=t.id),this.firstMultiCheckItem=this.firstMultiCheckItem.filter(s=>s.id!=t.id),this.firstMultiType=this.firstMultiType.filter(s=>s!=t.nodeType),delete this.param.selChildrenItems[t.id];return}if(t){this.firstMultiCheck.push(t.id),this.firstMultiCheckItem.push(t),this.firstMultiType.push(t.nodeType);let s=[t];t.branches&&t.branches.length?(this.childrenItems=t.branches,this.childrenEndItems=!1):(this.childrenItems=[t],this.childrenEndItems=!0),i.forEach(n=>{delete this.param.selChildrenItems[n.id],this.param.selChildrenItems[t.id]=(this.childrenItems||[]).map(r=>r.nodeInfoDTO||r)}),this.gateVars={},s.forEach(n=>{(!this.param||!this.param.vars)&&(this.param.vars={}),Array.isArray(n.incomingConditionItemList)&&n.incomingConditionItemList.length>0&&(this.param.vars[n.incomingConditionItemList[0].itemName]=n.incomingConditionItemList[0].compareValue,this.gateVars[n.incomingConditionItemList[0].itemName]=n.incomingConditionItemList[0].compareValue)})}},handleMultiFirstNodeClickSub(e,i=[]){let t=e;if(t&&t.nodeInfoDTO&&(t=t.nodeInfoDTO),this.firstMultiCheckSub.includes(t.id)){this.firstMultiCheckSub=this.firstMultiCheckSub.filter(s=>s!=t.id),this.firstMultiCheckItemSub=this.firstMultiCheckItemSub.filter(s=>s.id!=t.id),this.firstMultiTypeSub=this.firstMultiTypeSub.filter(s=>s!=t.nodeType),this.childrenItemsSub=this.childrenItemsSub.filter(s=>s.id!=t.id),i.forEach(s=>{delete this.param.selChildrenItems[s.nodeInfoDTO?s.nodeInfoDTO.id:s.id]}),delete this.param.selChildrenItems[t.id];return}if(t){this.firstMultiCheckSub.push(t.id),this.firstMultiCheckItemSub.push(t),this.firstMultiTypeSub.push(t.nodeType);let s=[t];t.branches&&t.branches.length?(this.childrenItemsSub.push(t.branches),this.childrenEndItemsSub=!1):(this.childrenItemsSub.push(t),this.childrenEndItemsSub=!0),i.forEach(n=>{delete this.param.selChildrenItems[n.nodeInfoDTO?n.nodeInfoDTO.id:n.id],this.param.selChildrenItems[t.id]=(this.childrenItemsSub||[]).map(r=>r.nodeInfoDTO||r)}),this.gateVars={},s.forEach(n=>{(!this.param||!this.param.vars)&&(this.param.vars={}),Array.isArray(n.incomingConditionItemList)&&n.incomingConditionItemList.length>0&&(this.param.vars[n.incomingConditionItemList[0].itemName]=n.incomingConditionItemList[0].compareValue,this.gateVars[n.incomingConditionItemList[0].itemName]=n.incomingConditionItemList[0].compareValue)})}},handleFirstNodeClick(e,i=[]){let t=e;if(t&&t.nodeInfoDTO&&(t=t.nodeInfoDTO),t){this.firstCheck=t.id,this.firstCheckItem=t,this.firstType=t.nodeType;let s=[t];t.branches&&t.branches.length?(this.childrenItems=t.branches,this.childrenEndItems=!1):(this.childrenItems=[t],this.childrenEndItems=!0),i.forEach(n=>{const r=this.param.selChildrenItems[n.nodeInfoDTO?n.nodeInfoDTO.id:n.id];Array.isArray(r)&&r.forEach(a=>{delete this.param.selChildrenItems[a.id]}),delete this.param.selChildrenItems[n.nodeInfoDTO?n.nodeInfoDTO.id:n.id],this.param.selChildrenItems[t.id]=(this.childrenItems||[]).map(a=>a.nodeInfoDTO||a)}),this.gateVars={},s.forEach(n=>{(!this.param||!this.param.vars)&&(this.param.vars={}),Array.isArray(n.incomingConditionItemList)&&n.incomingConditionItemList.length>0&&(this.param.vars[n.incomingConditionItemList[0].itemName]=n.incomingConditionItemList[0].compareValue,this.gateVars[n.incomingConditionItemList[0].itemName]=n.incomingConditionItemList[0].compareValue)})}}}},lp={};var $0=ye(Z0,z0,X0,!1,eC,"04a361c0",null,null);function eC(e){for(let i in lp)this[i]=lp[i]}const tC=function(){return $0.exports}();var iC=function(){var e=this,i=e.$createElement,t=e._self._c||i;return t("div",{staticClass:"top-popup-zindex",class:e.className,style:`${e.isIndex?`z-index:${e.isIndex}`:""}`},[t("div",{staticClass:"top-popup-mask",style:e.show&&e.isMask?"visibility: visible; opacity: .7;":"visibility: hidden; opacity: 0;",on:{click:function(s){e.isMaskClose&&e.handleClose()}}}),!e.isTips&&!e.isDrawer?t("div",{staticClass:"top-popup",style:e.show?"transform: translateY(0)":"transform: translateY(150%)"},[t("div",{staticClass:"top-popup-header"},[t("div",{staticClass:"header-cancel",on:{click:e.handleCancel}},[e._v(" "+e._s(e.cancelText)+" ")]),t("div",{staticClass:"header-title"},[e._v(e._s(e.titleText))]),t("div",{staticClass:"header-comfig",on:{click:e.handleComfig}},[e._v(" "+e._s(e.comfigText)+" ")])]),t("div",{staticClass:"top-popup-body"},[e._t("default")],2)]):!e.isTips&&e.isDrawer?t("div",{staticClass:"top-popup-drawer",class:e.show?"top-popup-drawer--active":"",style:e.width?`width:${e.width};`:""},[t("div",{staticClass:"top-popup-drawer--body"},[e._t("default")],2)]):e.isTips&&!e.isDrawer?t("div",{staticClass:"top-tips",style:e.show?"visibility: visible; opacity: 1; transform: scale(1)":"visibility: hidden; opacity: 0; transform: scale(1.2)"},[t("div",{staticClass:"top-tips-header"},[e._v(e._s(e.titleText))]),t("div",{staticClass:"top-tips-body"},[e._v(e._s(e.context))]),t("div",{staticClass:"top-tips-footer"},[t("div",{staticClass:"top-tips-btn",on:{click:e.handleCancel}},[e._v(" "+e._s(e.cancelText)+" ")]),t("div",{staticClass:"top-tips-btn",on:{click:e.handleComfig}},[e._v(" "+e._s(e.comfigText)+" ")])])]):e._e()])},sC=[];const gw="",nC={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,i){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"),i=navigator.userAgent.includes("iPad");return e||i}},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})}},cp={};var rC=ye(nC,iC,sC,!1,aC,"37f0c2ca",null,null);function aC(e){for(let i in cp)this[i]=cp[i]}const up=function(){return rC.exports}();var oC=function(){var e=this,i=e.$createElement,t=e._self._c||i;return t("div",{staticClass:"sign-container",style:e.setDynamicVars},[t("div",{staticClass:"canvas-container"},[e.paths.length==0&&e.currentPath.length==0?t("div",{staticClass:"tips"},[e._v("\u8BF7\u5728\u6B64\u533A\u57DF\u7B7E\u5B57")]):e._e(),t("canvas",{ref:"canvasRef",class:{"uni-canvas-style":e.isUniCanvas()},attrs:{id:"canvas-id","canvas-id":"canvas-id"},on:{touchmove:e.draw,touchstart:e.startDrawing,touchend:e.finishDrawing}})]),t("div",{staticClass:"history"},[t("div",{staticClass:"img-grid",on:{click:function(s){return e.useHistory(0)}}},[e.historyPics[0]?t("img",{attrs:{src:e.historyPics[0]?e.historyPics[0].url:"",fit:"scale-down"}}):e._e()]),t("div",{staticClass:"img-grid",on:{click:function(s){return e.useHistory(1)}}},[e.historyPics[1]&&e.historyPics[1].url?t("img",{attrs:{src:e.historyPics[1].url,fit:"scale-down"}}):e._e()]),t("div",{staticClass:"img-grid",staticStyle:{"margin-right":"10rpx"},on:{click:function(s){return e.useHistory(2)}}},[e.historyPics[2]&&e.historyPics[2].url?t("img",{attrs:{src:e.historyPics[2].url,fit:"scale-down"}}):e._e()])]),t("div",{staticClass:"actions-area"},[t("button",{staticClass:"btns-common cmf-btn",on:{click:e.confirmSave}},[e._v("\u786E\u8BA4")]),t("button",{staticClass:"btns-common",on:{click:e.cancelSign}},[e._v("\u8FD4\u56DE")]),t("button",{staticClass:"btns-common",on:{click:e.undo}},[e._v("\u64A4\u9500")]),t("button",{staticClass:"btns-common",on:{click:e.clearCanvas}},[e._v("\u6E05\u7A7A")])]),t("signDrawer",{ref:"TopPopupSign",attrs:{visible:e.confirmVisible,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:e.saveSignature},on:{"update:visible":function(s){return e.confirmVisible=s}}})],1)},lC=[];const yw="",cC={props:{request:{type:Function,default:()=>{}}},components:{signDrawer:up},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 i=this.$refs.canvasRef.getBoundingClientRect(),t=(e.touches[0].clientX-i.left)*(this.$refs.canvasRef.width/i.width)/window.devicePixelRatio,s=(e.touches[0].clientY-i.top)*(this.$refs.canvasRef.height/i.height)/window.devicePixelRatio;this.ctx.beginPath(),this.ctx.moveTo(t,s),this.currentPath.push({x:t,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 i=this.$refs.canvasRef.getBoundingClientRect(),t=(e.touches[0].clientX-i.left)*(this.$refs.canvasRef.width/i.width)/window.devicePixelRatio,s=(e.touches[0].clientY-i.top)*(this.$refs.canvasRef.height/i.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(t,s),this.ctx.stroke(),this.currentPath.push({x:t,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 i=0;i<e.length-1;i++){const{x:t,y:s}=e[i];i===0?(this.ctx.beginPath(),this.ctx.moveTo(t,s)):(this.ctx.lineTo(t,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 i=0;i<e.length-1;i++)this.ctx.moveTo(e[i].x,e[i].y),this.ctx.lineTo(e[i+1].x,e[i+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,i;(i=(e=this.$refs)==null?void 0:e.canvasRef)!=null&&i.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,i){const t=new Blob([e],{type:"text/plain"}),r=new File([t],"text.txt").size/1024;if(r<=64){const a=document.getElementById("canvas-id");return this.getRotatedDataURL(a,-90,i)}else{if(r>300)return null;{let a,o;if(i<.005)return null;if(i-.05>0){a=i-.05;const l=document.getElementById("canvas-id");return o=this.getRotatedDataURL(l,-90,a),this.fixAccuracy(o,a)}else{a=i/2;const l=document.getElementById("canvas-id");return o=this.getRotatedDataURL(l,-90,a),this.fixAccuracy(o,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 i=.6;const t=document.getElementById("canvas-id");return this.getRotatedDataURL(t,-90,i),!0}else uni.canvasToTempFilePath({canvasId:"canvas-id",success(i){e.signatureImage=i.tempFilePath;let t=JSON.parse(localStorage.getItem("signaturesArr"))||[];t.unshift(this.signatureImage),this.$set(this,"historyPics",t.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,i,t){this.textTips=e,this.statusTips=i,this.typeTips=t,this.$refs.topTips.handleOpen()},getRotatedDataURL(e,i,t){let s=e.width/window.devicePixelRatio,n=e.height/window.devicePixelRatio,r=i*Math.PI/180,a=Math.max(s*Math.abs(Math.cos(r)),n*Math.abs(Math.sin(r))),o=Math.max(s*Math.abs(Math.sin(r)),n*Math.abs(Math.cos(r)));const l=document.createElement("canvas"),p=l.getContext("2d");l.width=a,l.height=o,p.translate(a/2,o/2),p.rotate(r),p.drawImage(e,-s/2,-n/2,s,n),l.toBlob(h=>{this.uploadImage(h)},"image/png",.95)},async uploadImage(e,i){this.loading=!0;const t=new FormData;t.append("file",e,i||`signature-${Date.now()}.png`);const s=await this.request.post("/file/upload",t,{headers:{"Content-Type":"multipart/form-data"}});if(this.loading=!1,!s.success)return;let n=JSON.parse(localStorage.getItem("signaturesArr"))||[];n.unshift(s.data),this.$set(this,"historyPics",n.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 i=document.querySelector(".canvas-container");if(i){let t=document.getElementById("canvas-id");const s=i.offsetWidth,n=i.offsetHeight-this.actionHeight-this.historyHeight;t.style.width=`${s}px`,t.style.height=`${n}px`,t.width=s*window.devicePixelRatio,t.height=n*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,t.width,t.height)}}else{this.ctx=uni.createCanvasContext("canvas-id",this);const i=uni.getSystemInfoSync().pixelRatio;this.ctx.scale(i,i)}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)}},pp={};var uC=ye(cC,oC,lC,!1,pC,"58762489",null,null);function pC(e){for(let i in pp)this[i]=pp[i]}const dC=function(){return uC.exports}();var hC=function(){var e=this,i=e.$createElement,t=e._self._c||i;return t("div",{staticClass:"process-popup-content"},[e.param.ProcessInsObj&&e.param.ProcessInsObj.processDefId!="obj_94014ede99b6495d8f6d5977314faa15"?t("div",{staticClass:"process-popup-content-msg"},[e.param.isQuickReply?t("div",{staticClass:"process-pc-label"},[e._v("\u5FEB\u6377\u56DE\u590D")]):e._e(),e.param.isQuickReply?t("div",{staticClass:"process-pc-value",staticStyle:{display:"flex"}},[t("div",{staticClass:"process-radio",staticStyle:{width:"100%"}},[e.param.isDocument?e._l(e.msgCheckList,function(s){return t("div",{staticClass:"process-radio-item",class:s==e.commentMsg?"process-radio-item--check":"",on:{click:function(){return e.commentMsg=s}}},[t("span"),e._v(" "+e._s(s)+" ")])}):e._l(e.msgCheckListS,function(s){return t("div",{staticClass:"process-radio-item",class:s==e.commentMsg?"process-radio-item--check":"",on:{click:function(){return e.commentMsg=s}}},[t("span"),e._v(" "+e._s(s)+" ")])}),e.param.isMsg?t("div",{staticClass:"process-radio-item",staticStyle:{color:"#1389ff","font-size":"14px","margin-left":"auto"},on:{click:function(s){return e.handleOpenMsg()}}},[e._v(" \u5E38\u7528\u610F\u89C1 ")]):e._e()],2)]):e._e(),e.param.isMsg&&!e.param.isQuickReply?t("div",[t("div",{staticClass:"process-radio-item",staticStyle:{color:"#1389ff","font-size":"14px"},on:{click:function(s){return e.handleOpenMsg()}}},[e._v(" \u5E38\u7528\u610F\u89C1 ")])]):e._e(),t("div",{staticClass:"process-pc-label"},[e._v(" \u5BA1\u6279\u610F\u89C1 "),e.param.isRequire?t("span",{staticClass:"process-pc-label--re"},[e._v("*")]):e._e()]),t("div",{staticClass:"process-pc-value"},[t("div",{staticClass:"process-popup-textarea"},[t("textarea",{directives:[{name:"model",rawName:"v-model",value:e.commentMsg,expression:"commentMsg"}],staticClass:"textarea-item",attrs:{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,'')"},domProps:{value:e.commentMsg},on:{input:function(s){s.target.composing||(e.commentMsg=s.target.value)}}}),t("div",{staticClass:"process-popup-textarea-num"},[e._v(" "+e._s(e.commentMsg.length)+"/200 ")])]),e.param.isMsg?t("div",{staticClass:"msg-btn"},[t("span",{staticClass:"msg-btn-click",on:{click:function(s){return e.handleMakeMsg()}}},[e._v("\u8BBE\u7F6E\u4E3A\u5E38\u7528\u610F\u89C1")])]):e._e()])]):e._e(),t("div",{staticClass:"process-popup-content-person"},[e.nextNodeData.length==1&&e.nextNodeData[0].nodeType=="endEvent"?t("div",[e._v(" \u4E0B\u4E00\u8282\u70B9\uFF1A\u7ED3\u675F\u4E8B\u4EF6 ")]):e.nextNodeData&&e.nextNodeData.nodeType=="endEvent"?t("div",[e._v(" \u4E0B\u4E00\u8282\u70B9\uFF1A\u7ED3\u675F\u4E8B\u4EF6 ")]):e.param.ProcessInsObj.taskParentId?e._e():t("TreePerson",{ref:"TreePersonRef",attrs:{items:e.nextNodeData,nodeType:"nexting",param:e.param},on:{onMultiNode:e.onMultiNode,onMultiNodeObj:e.onMultiNodeObj}})],1),e._t("completeSlot"),t("TopTips",{ref:"topTips",attrs:{text:e.textTips,statusTips:e.statusTips,type:e.typeTips}}),t("TopPopup",{ref:"TopPopup",attrs:{visible:e.visible,titleText:"\u9009\u4EBA",isDrawer:!0},on:{"update:visible":function(s){return e.visible=s}}},[t("div",{staticStyle:{height:"100%"}},[e.visible?t("departPerson",e._b({attrs:{isTitle:!1,visible:e.visible},on:{"update:visible":function(s){e.visible=s},callback:e.handleCallback,cancel:e.handleCancel}},"departPerson",e.entity,!1)):e._e()],1)]),t("TopPopup",{ref:"TopPopup",attrs:{visible:e.visibleListMsg,titleText:"\u5E38\u7528\u610F\u89C1",isDrawer:!0},on:{"update:visible":function(s){return e.visibleListMsg=s}}},[t("MsgList",{attrs:{visible:e.visibleListMsg,request:e.param.request,useInfo:e.param.userInfo},on:{handleTips:e.handleTips,handleMsg:e.handleMsg}})],1),t("TopPopup",{attrs:{titleText:"\u64CD\u4F5C\u6D88\u606F\u63D0\u793A",isTips:!0,context:`\u5C06${e.commentMsg}\u8BBE\u7F6E\u4E3A\u5E38\u7528\u610F\u89C1`,cancel:e.handleTipsCancel,comfig:e.handleTipsComfig,visible:e.visibleMsgComfig},on:{"update:visible":function(s){return e.visibleMsgComfig=s}}}),e.labels=="1"?t("attchViews",{attrs:{limit:e.limit?e.limit:-1,requires:e.requires,request:e.param.request,linkUrl:e.param.linkUrl},on:{getValue:e.getValues}}):e._e(),t("signDrawer",{ref:"TopPopupSign",attrs:{visible:e.signVisible,titleText:"\u7B7E\u5B57",isDrawer:!0,width:"100vw"},on:{"update:visible":function(s){return e.signVisible=s}}},[t("div",{staticStyle:{height:"100%"}},[e.signVisible?t("TopSign",{attrs:{request:e.param.request},on:{saveSignature:e.handleSignature,validateFail:e.noticeFail,close:e.handleClose}}):e._e()],1)])],2)},fC=[];const vw="",mC={name:"complete",props:{param:{type:Object,defalut:()=>{}}},components:{TopTips:mt,attchViews:xi,TopPopup:ze,departPerson:Pt.departPerson,MsgList:Is,TreePerson:tC,TopSign:dC,signDrawer:up},computed:{check(){return Na},checkS(){return G0},isSelectPerson(){if(this.pureTip=!1,this.nextNodeData,this.taskNode,this.multiNodeParticipant,this.$refs.TreePersonRef,this.param,Array.isArray(this.nextNodeData)&&this.nextNodeData[0].nodeType!="endEvent"){let e=this.param.selChildrenItems||{},i=[];if(Object.keys(e).filter(s=>s.startsWith("Activity")).forEach(s=>{i=i.concat(e[s])}),i.length==0&&Object.values(e).forEach(s=>{Array.isArray(s)&&s.length>0&&s.forEach(n=>{(n.id||"").startsWith("Activity")&&(i=i.concat(n))})}),i.length>0){let s="";const n=i.every(r=>{let a=this.multiNodeParticipant[r.id];a=(a||[]).filter(l=>l);const o=a&&a.length>0;return o||(s=r),o});return n?!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 n=(this.multiNodeParticipant[s.id]||[]).filter(a=>a);const r=n&&n.length>0;return this.nextNodeData[0].branches[0],r?!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 n="";return s.every(a=>{const o=this.multiNodeParticipant[a.id]&&this.multiNodeParticipant[a.id].length>0;return o||(n=a),o})?!1:n.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(n=>n);return s&&s.length>0?!1:this.nextNodeData[0].name}}else return!1;if(this.nextNodeData.nodeType!="endEvent"){let e=this.param.selChildrenItems||{},i=[];if(Object.keys(e).filter(s=>s.startsWith("Activity")).forEach(s=>{i=i.concat(e[s])}),i.length==0&&Object.values(e).forEach(s=>{Array.isArray(s)&&s.length>0&&s.forEach(n=>{(n.id||"").startsWith("Activity")&&(i=i.concat(n))})}),i.length>0){let s="";const n=i.every(r=>{let a=this.multiNodeParticipant[r.id];a=(a||[]).filter(l=>l);const o=a&&a.length>0;return o||(s=r),o});return n?!1:s.name}else if(this.nextNodeData.nodeType=="exclusiveGateway"&&this.nextNodeData.branches&&this.nextNodeData.branches.length==1){const s=this.findUserTaskNode(this.nextNodeData.branches[0]);let n=(this.multiNodeParticipant[s.id]||[]).filter(a=>a);const r=n&&n.length>0;return this.nextNodeData.branches[0],r?!1:s.name}else if(this.nextNodeData.nodeType=="exclusiveGateway"&&this.nextNodeData.branches&&this.nextNodeData.branches.length>1){const s=this.$refs.TreePersonRef.childrenItems||null;if(s&&s.length>0){let n="";return s.every(a=>{const o=this.multiNodeParticipant[a.id]&&this.multiNodeParticipant[a.id].length>0;return o||(n=a),o})?!1:n.name}else return this.pureTip=!0,"\u8BF7\u9009\u62E9\u4E0B\u4E00\u6B65\u5BA1\u6279\u8282\u70B9"}else if(this.nextNodeData.nodeType=="userTask"){let s=(this.multiNodeParticipant[this.nextNodeData.id]||[]).filter(n=>n);return s&&s.length>0?!1:this.nextNodeData.name}}else return!1;if(Array.isArray(this.nextNodeData)&&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 this.pureTip=!0,"\u8BF7\u9009\u62E9\u4E0B\u4E00\u6B65\u5BA1\u6279\u8282\u70B9"},signRequired(){return!!this.param.extendedProperties.find(i=>i.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.nodeLoading":{handler(e,i){e||(this.param,this.nextNodeData=this.param.nextNodeData,this.nextNodeData&&this.nextNodeData.length?(this.nextNodeData.map((t,s)=>{t.nodeType!=="endEvent"&&(t.userTaskModelDTO||(t.userTaskModelDTO={name:t.name,humanPerformer:{name:t.humanPerformerName},routeTxt:t.routeTxt,participantList:t.participantList}),t.userTaskModelDTO&&t.userTaskModelDTO.participantList&&t.userTaskModelDTO.participantList.length&&t.userTaskModelDTO.participantList.map(n=>{this.multiNodeParticipant[t.id]||(this.multiNodeParticipant[t.id]=[]),this.partNode[t.id]||(this.partNode[t.id]=[]),this.multiNodeParticipant[t.id].includes(n.id)||this.multiNodeParticipant[t.id].push(n.id),this.partNode[t.id].includes(n.name)||this.partNode[t.id].push(n.name)}),(t.userTaskModelDTO.humanPerformer.name=="\u56FA\u5B9A\u8D26\u6237"||t.userTaskModelDTO.humanPerformer.name=="\u4E0E\u6D41\u7A0B\u7533\u8BF7\u4EBA\u76F8\u5173")&&this.personMake.push(t.id))}),this.personMake&&this.personMake.length&&this.param.request.post(`aws/repository/getParticipantsOfPerformerNames?taskInstId=${this.param.taskInstId}`,{userTaskDefIds:this.personMake}).then(t=>{t.code==200&&(this.personMakeList=t.data)})):this.outGatewayUserTaskModel&&this.outGatewayUserTaskModel.length&&this.outGatewayUserTaskModel.map((t,s)=>{t.nodeType!=="endEvent"&&t.participantList&&t.participantList.length&&t.participantList.map(n=>{this.multiNodeParticipant[t.id]||(this.multiNodeParticipant[t.id]=[]),this.partNode[t.id]||(this.partNode[t.id]=[]),this.multiNodeParticipant[t.id].includes(n.id)||this.multiNodeParticipant[t.id].push(n.id),this.partNode[t.id].includes(n.name)||this.partNode[t.id].push(n.name)})}))}},"param.visible":{handler(e,i){this.nextNodeData=this.param.nextNodeData,this.taskNode=this.param.taskNode,this.outGatewayUserTaskModel=this.param.outGatewayUserTaskModel,this.actionName=this.param.actionName,this.attachShow(),this.showFile,this.outGatewayUserTaskModel&&this.outGatewayUserTaskModel.length&&this.outGatewayUserTaskModel.map(t=>{t.type!=="endEvent"&&(t.userTaskModelDTO={name:t.name,humanPerformer:{name:t.humanPerformerName},routeTxt:t.routeTxt,participantList:t.participantList},t.humanPerformer={name:t.humanPerformerName})}),this.nextNodeData&&this.nextNodeData.length?(this.nextNodeData.map((t,s)=>{t.nodeType!=="endEvent"&&(t.userTaskModelDTO||(t.userTaskModelDTO={name:t.name,humanPerformer:{name:t.humanPerformerName},routeTxt:t.routeTxt,participantList:t.participantList}),t.userTaskModelDTO&&t.userTaskModelDTO.participantList&&t.userTaskModelDTO.participantList.length&&t.userTaskModelDTO.participantList.map(n=>{this.multiNodeParticipant[t.id]||(this.multiNodeParticipant[t.id]=[]),this.partNode[t.id]||(this.partNode[t.id]=[]),this.multiNodeParticipant[t.id].includes(n.id)||this.multiNodeParticipant[t.id].push(n.id),this.partNode[t.id].includes(n.name)||this.partNode[t.id].push(n.name)}),(t.userTaskModelDTO.humanPerformer.name=="\u56FA\u5B9A\u8D26\u6237"||t.userTaskModelDTO.humanPerformer.name=="\u4E0E\u6D41\u7A0B\u7533\u8BF7\u4EBA\u76F8\u5173")&&this.personMake.push(t.id))}),this.personMake&&this.personMake.length&&this.param.request.post(`aws/repository/getParticipantsOfPerformerNames?taskInstId=${this.param.taskInstId}`,{userTaskDefIds:this.personMake}).then(t=>{t.code==200&&(this.personMakeList=t.data)})):this.outGatewayUserTaskModel&&this.outGatewayUserTaskModel.length&&this.outGatewayUserTaskModel.map((t,s)=>{t.nodeType!=="endEvent"&&t.participantList&&t.participantList.length&&t.participantList.map(n=>{this.multiNodeParticipant[t.id]||(this.multiNodeParticipant[t.id]=[]),this.partNode[t.id]||(this.partNode[t.id]=[]),this.multiNodeParticipant[t.id].includes(n.id)||this.multiNodeParticipant[t.id].push(n.id),this.partNode[t.id].includes(n.name)||this.partNode[t.id].push(n.name)})})},immediate:!0,deep:!0}},created(){this.makeDelegateTaskButtonAnnex()},methods:{findUserTaskNode(e){return 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,i){e.map((t,s)=>{t.childNode&&t.childNode.length?this.forRadioChild(t.childNode,!0):i&&this.radioCheckChild.push(t)})},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(i=>{i.participantList&&i.participantList.length?i.participantList.map(t=>{this.multiNodeParticipant[i.id]||(this.multiNodeParticipant[i.id]=[]),this.partNode[i.id]||(this.partNode[i.id]=[]),this.multiNodeParticipant[i.id].includes(t.id)||this.multiNodeParticipant[i.id].push(t.id),this.partNode[i.id].includes(t.name)||this.partNode[i.id].push(t.name)}):this.param.request.post(`/aws/repository/getParticipantsOfPerformerNames?taskInstId=${this.param.taskInstId}`,{userTaskDefIds:[i.id]}).then(t=>{t.code==200&&(this.partNodeS=[],this.partNodeS.push(t.data[i.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 i,t=[];e.routeTxt.companyIds.map((s,n)=>{i=s.name}),this.multiNodeParticipant[e.id]&&this.multiNodeParticipant[e.id].length&&this.multiNodeParticipant[e.id].map((s,n)=>{t.push({type:3,id: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==-1?0:1,subjectName:i,checkedArray:t}}else if(e.humanPerformer.name=="\u56FA\u5B9A\u90E8\u95E8"){let i,t=[],s=[];e.routeTxt.departmentIds.forEach((n,r)=>{e.routeTxt.departmentIds.length>1?t.push(n.rangeId):i=n.rangeId}),this.multiNodeParticipant[e.id]&&this.multiNodeParticipant[e.id].length&&this.multiNodeParticipant[e.id].forEach((n,r)=>{s.push({type:3,id:n,deptId:i})}),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==-1?0:1,deptCodeArray:t,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==-1?0:1,deptCode:i,checkedArray:s}}else{let i=[];this.multiNodeParticipant[e.id]&&this.multiNodeParticipant[e.id].length&&this.multiNodeParticipant[e.id].map((t,s)=>{i.push({type:3,id:t})}),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?0:1,checkedArray:i}}},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 o=0;if(this.radioCheckNameList.map((l,p)=>{(!this.multiNodeParticipant[l]||!this.multiNodeParticipant[l].length)&&this.radioCheckChild.map((h,f)=>{h.id==l&&(h.humanPerformerName!=="\u56FA\u5B9A\u8D26\u6237"||h.humanPerformerName!=="\u4E0E\u6D41\u7A0B\u7533\u8BF7\u4EBA\u76F8\u5173")&&(!h.childNode||!h.childNode.length?o+=1:this.radioCheckNode.map((A,I)=>{(!this.multiNodeParticipant[A]||!this.multiNodeParticipant[A].length)&&(o+=1),e[A]=this.multiNodeParticipant[A]}))}),e[l]=this.multiNodeParticipant[l]}),o>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}e=this.multiNodeParticipant}if(this.signRequired){this.signVisible=!0;return}if(this.param.beforeFunction&&!await this.param.beforeFunction())return;(this.param.incomingConditionItemList||[]).forEach(o=>{let l=this.param.vars||this.gateVars||{};l[o.itemName]||(l[o.itemName]="")}),this.handleTips("",!0,"loading");let i=[];const t=Array.isArray(this.param.nextNodeData)?this.param.nextNodeData[0]:this.param.nextNodeData;t.setPersonnel?i=t.assignees:i=(this.partNodeArr[t.id]||[]).map(o=>({id:o.id,name:o.name})),Object.keys(e).forEach(o=>{Array.isArray(e[o])&&(e[o]=e[o].filter(l=>l)),(!e[o]||Array.isArray(e[o])&&e[o].length<=0)&&delete e[o]});let s=t&&t.nodeType!="endEvent"&&(!t.branches||t.branches.length<=0),n=t&&t.nodeType!="endEvent"&&t.branches&&t.branches.length==1&&t.branches[0].nodeInfoDTO&&t.branches[0].nodeInfoDTO.nodeType!="endEvent",r=t&&t.nodeType!="endEvent"&&t.branches&&t.branches.length==1&&!t.branches[0].nodeInfoDTO&&t.branches[0].nodeType!="endEvent";if((s||n||r)&&!Object.keys(e).length){let l={};return s?l=t:n?l=t.branches[0].nodeInfoDTO:r&&(l=t.branches[0]),this.handleTips(l.nodeType?"\u8BF7\u9009\u62E9["+l.name+"]\u5BA1\u6279\u4EBA!":"\u8BF7\u9009\u62E9\u4E0B\u4E00\u8282\u70B9\u5BA1\u6279\u4EBA",!0,"error"),!1}Date.now()&&(this.param.processInstId,this.param.actionComplete,this.commentMsg,this.param.taskInstId,this.param.vars||this.gateVars,this.attchLists),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:e,attachment:this.attchLists}).then(o=>{o.code==200?(this.$emit("handleClosePopup1"),this.handleTips("\u63D0\u4EA4\u6210\u529F!",!1,"success"),window.top.postMessage("success","*"),this.handleFinal(),this.commentMsg=""):this.handleTips(o.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 i={};if(this.radioCheckNameList&&this.radioCheckNameList.length){if(this.radioCheckChild[0].type!=="EndEventModel"){let l=0;if(this.radioCheckNameList.map((p,h)=>{(!this.multiNodeParticipant[p]||!this.multiNodeParticipant[p].length)&&this.radioCheckChild.map((f,A)=>{f.id==p&&(f.humanPerformerName!=="\u56FA\u5B9A\u8D26\u6237"||f.humanPerformerName!=="\u4E0E\u6D41\u7A0B\u7533\u8BF7\u4EBA\u76F8\u5173")&&(!f.childNode||!f.childNode.length?l+=1:this.radioCheckNode.map((I,F)=>{(!this.multiNodeParticipant[I]||!this.multiNodeParticipant[I].length)&&(l+=1),i[I]=this.multiNodeParticipant[I]}))}),i[p]=this.multiNodeParticipant[p]}),l>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}i=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)(this.param.incomingConditionItemList||[]).forEach(l=>{let p=this.param.vars||this.gateVars||{};p[l.itemName]||(p[l.itemName]="")});let t=[];const s=Array.isArray(this.param.nextNodeData)?this.param.nextNodeData[0]:this.param.nextNodeData;s.setPersonnel?t=s.assignees:t=(this.partNodeArr[s.id]||[]).map(l=>({id:l.id,name:l.name})),Object.keys(i).forEach(l=>{Array.isArray(i[l])&&(i[l]=i[l].filter(p=>p)),(!i[l]||Array.isArray(i[l])&&i[l].length<=0)&&delete i[l]});let n=s&&s.nodeType!="endEvent"&&(!s.branches||s.branches.length<=0),r=s&&s.nodeType!="endEvent"&&s.branches&&s.branches.length==1&&s.branches[0].nodeInfoDTO&&s.branches[0].nodeInfoDTO.nodeType!="endEvent",a=s&&s.nodeType!="endEvent"&&s.branches&&s.branches.length==1&&!s.branches[0].nodeInfoDTO&&s.branches[0].nodeType!="endEvent";if((n||r||a)&&!Object.keys(i).length){let p={};return n?p=s:r?p=s.branches[0].nodeInfoDTO:a&&(p=s.branches[0]),this.handleTips(p.nodeType?"\u8BF7\u9009\u62E9["+p.name+"]\u5BA1\u6279\u4EBA!":"\u8BF7\u9009\u62E9\u4E0B\u4E00\u8282\u70B9\u5BA1\u6279\u4EBA",!0,"error"),!1}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:i,digitalSignature:this.digitalSignature,attachment:this.attchLists}).then(l=>{l.code==200?(this.$emit("handleClosePopup1"),this.handleTips("\u63D0\u4EA4\u6210\u529F!",!1,"success"),window.top.postMessage("success","*"),this.handleFinal(),this.commentMsg=""):this.handleTips(l.msg,!0,"error")})},attachShow(e="\u529E\u7406"){const i=(this.param||{}).extendedProperties||[];let t=!1,s,n="";s=i.find(a=>a.name=="completeButtonAnnex"),n=s?s.value:"",n&&(t=!0);let r="";if(typeof n!="string"&&n!=null&&n.map(a=>{a.indexOf(this.operationLabel)!=-1&&(t=!0,r=a)}),r&&(n=r),t){const a=n.split(":");this.attachRule.required=a[1]=="true",this.attachRule.limit=a[2]==-1?999:a[2],this.otherList=n;let o=this.otherList.split(":");this.limit=o[2],this.requires=JSON.parse(o[1]),this.labels=o[0]}return this.labels,this.limit,t},makeDelegateTaskButtonAnnex(){},handleCallback(e){this.visible=!1,this.multiNodeParticipant[this.partObjId]=[],this.partNode[this.partObjId]=[],e.map((i,t)=>{this.multiNodeParticipant[this.partObjId].push(i.id),this.partNode[this.partObjId].push(i.name)})},handleCancel(){},getValues(e){this.attchLists=e},async uploadAttch(){if(this.attchLists.length>0){this.attchLists.map((t,s)=>{t.size=t.fileSize,t.format=t.name.substring(t.name.lastIndexOf(".")+1),t.uploadTime=t.createTime,t.processInstId=this.param.processInstId,t.taskInstId=this.param.taskInstId,t.name=t.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,i,t){this.textTips=e,this.statusTips=i,this.typeTips=t,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,i){this.digitalSignature=e,i&&(this.signVisible=!1,this.signConfirm(!1))},noticeFail(e){this.handleTips(e,!1,"success")},handleClose(){this.signVisible=!1}}},dp={};var gC=ye(mC,hC,fC,!1,yC,"5ea02048",null,null);function yC(e){for(let i in dp)this[i]=dp[i]}const hp=function(){return gC.exports}();var vC=function(){var e=this,i=e.$createElement,t=e._self._c||i;return t("div",{staticClass:"process-popup-content"},[t("div",{staticClass:"process-popup-content-msg"},[e.param.isMsg?t("div",[t("div",{staticClass:"process-radio-item",staticStyle:{color:"#1389ff","font-size":"14px"},on:{click:function(s){return e.handleOpenMsg()}}},[e._v(" \u5E38\u7528\u610F\u89C1 ")])]):e._e(),e._m(0),t("div",{staticClass:"process-pc-value"},[t("div",{staticClass:"process-popup-textarea"},[t("textarea",{directives:[{name:"model",rawName:"v-model",value:e.commentMsg,expression:"commentMsg"}],staticClass:"textarea-item",attrs:{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,'')"},domProps:{value:e.commentMsg},on:{input:function(s){s.target.composing||(e.commentMsg=s.target.value)}}}),t("div",{staticClass:"process-popup-textarea-num"},[e._v(" "+e._s(e.commentMsg.length)+"/200 ")])]),e.param.isMsg?t("div",{staticClass:"msg-btn"},[t("span",{staticClass:"msg-btn-click",on:{click:function(s){return e.handleMakeMsg()}}},[e._v("\u8BBE\u7F6E\u4E3A\u5E38\u7528\u610F\u89C1")])]):e._e()])]),e.taskNode&&e.taskNode.length>0&&e.taskNode[0].taskState!=4?t("div",{staticClass:"process-popup-content-person"},[e.nextNodeData.length?[e._l(e.nextNodeData,function(s){var n,r;return[e.isOption(s==null||(n=s.userTaskModelDTO)===null||n===void 0||(r=n.humanPerformer)===null||r===void 0?void 0:r.name)?[t("div",[e._v(" "+e._s(s.userTaskModelDTO.name)+" "),t("br"),e._v(" \u5BA1\u6279\u4EBA "),t("span",{staticClass:"process-pc-label--re"},[e._v("*")])]),t("div",{staticClass:"process-pc-value",on:{click:function(a){return e.handleOpenPopup(s.id)}}},[t("div",{staticClass:"process-pc-value--people"},[e.partNode[s.id]&&e.partNode[s.id].length?t("div",{staticClass:"process-pc-value--data"},e._l(e.partNode[s.id],function(a,o){return t("span",[e._v(" "+e._s(o==0?a:`,${a}`)+" ")])}),0):t("div",{staticClass:"process-pc-value--data",staticStyle:{color:"#888"}},[t("span",[e._v(" \u8BF7\u9009\u62E9\u5BA1\u6279\u4EBA ")])])])])]:e._e()]})]:e.outGatewayUserTaskModel.length?[e._l(e.outGatewayUserTaskModel,function(s){return[e.isOption(s.humanPerformerName)?[t("div",{staticStyle:{"font-size":"15px"}},[e._v(" "+e._s(s.name)+" ")]),t("div",{staticClass:"process-pc-label"},[e._v(" \u5BA1\u6279\u4EBA "),t("span",{staticClass:"process-pc-label--re"},[e._v("*")])]),t("div",{staticClass:"process-pc-value",on:{click:e.handleOpenPopup}},[t("div",{staticClass:"process-pc-value--people"},[e._v(" "+e._s(234)+" ")])])]:e._e()]})]:e._e()],2):e._e(),t("TopTips",{ref:"topTips",attrs:{text:e.textTips,statusTips:e.statusTips,type:e.typeTips}}),t("TopPopup",{ref:"TopPopup",attrs:{visible:e.visible,titleText:"\u9009\u4EBA",isDrawer:!0},on:{"update:visible":function(s){return e.visible=s}}},[t("div",{staticStyle:{height:"100%"}},[e.visible?t("departPerson",e._b({attrs:{isTitle:!1,visible:e.visible,request:e.param.request},on:{"update:visible":function(s){e.visible=s},callback:e.handleCallback,cancel:e.handleCancel}},"departPerson",e.entity,!1)):e._e()],1)]),e.labels=="\u62D2\u7EDD"?t("attchViews",{attrs:{limit:e.limit?e.limit:-1,requires:e.requires,request:e.param.request,linkUrl:e.param.linkUrl},on:{getValue:e.getValues}}):e._e(),t("TopPopup",{ref:"TopPopup",attrs:{visible:e.visibleListMsg,titleText:"\u5E38\u7528\u610F\u89C1",isDrawer:!0},on:{"update:visible":function(s){return e.visibleListMsg=s}}},[t("MsgList",{attrs:{visible:e.visibleListMsg,request:e.param.request,useInfo:e.param.userInfo},on:{handleTips:e.handleTips,handleMsg:e.handleMsg}})],1),t("TopPopup",{attrs:{titleText:"\u64CD\u4F5C\u6D88\u606F\u63D0\u793A",isTips:!0,context:`\u5C06${e.commentMsg}\u8BBE\u7F6E\u4E3A\u5E38\u7528\u610F\u89C1`,cancel:e.handleTipsCancel,comfig:e.handleTipsComfig,visible:e.visibleMsgComfig},on:{"update:visible":function(s){return e.visibleMsgComfig=s}}})],1)},AC=[function(){var e=this,i=e.$createElement,t=e._self._c||i;return t("div",{staticClass:"process-pc-label"},[e._v(" \u62D2\u7EDD\u7406\u7531\uFF1A "),t("span",{staticClass:"process-pc-label--re"},[e._v("*")])])}];const Aw="",bC={name:"cancel",props:{param:{type:Object,defalut:()=>{}}},components:{TopTips:mt,attchViews:xi,TopPopup:ze,departPerson:Pt.departPerson,MsgList:Is},watch:{param:{async handler(e,i){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((i,t)=>{this.multiNodeParticipant[this.partObjId].push(i.id),this.partNode[this.partObjId].push(i.name),this.entity.checkedArray.push({type:3,id:i.id,subjectId:i.subjectId})})},handleCancel(){},getValues(e){this.attchLists=e},async uploadAttch(){if(this.attchLists.length>0){this.attchLists.map((t,s)=>{t.size=t.fileSize,t.format=t.originFileName.substring(t.originFileName.lastIndexOf(".")+1),t.uploadTime=t.createTime,t.processInstId=this.param.processInstId,t.taskInstId=this.param.taskInstId,t.name=t.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,i,t){this.textTips=e,this.statusTips=i,this.typeTips=t,this.$refs.topTips.handleOpen()},handleFinal(){this.param.endFunction&&this.param.endFunction("\u62D2\u7EDD")}}},fp={};var CC=ye(bC,vC,AC,!1,wC,"3be26d49",null,null);function wC(e){for(let i in fp)this[i]=fp[i]}const xC=function(){return CC.exports}();var EC=function(){var e=this,i=e.$createElement,t=e._self._c||i;return t("div",{staticClass:"process-popup-content"},[t("div",{staticClass:"process-popup-content-msg"},[e._m(0),t("div",{staticClass:"process-pc-value",staticStyle:{display:"inline-block",width:"50%"}},[t("TopDownSelect",{attrs:{option:e.option,optionStyle:"width:calc(100% - 40px);left:20px;",maskShow:!1,border:""},on:{change:e.handleChange}})],1),e._m(1),t("div",{staticClass:"process-pc-value"},[t("div",{staticClass:"process-popup-textarea"},[t("textarea",{directives:[{name:"model",rawName:"v-model",value:e.commentMsg,expression:"commentMsg"}],staticClass:"textarea-item",attrs:{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,'')"},domProps:{value:e.commentMsg},on:{input:function(s){s.target.composing||(e.commentMsg=s.target.value)}}}),t("div",{staticClass:"process-popup-textarea-num"},[e._v(" "+e._s(e.commentMsg.length)+"/200 ")])])])]),t("TopTips",{ref:"topTips",attrs:{text:e.textTips,statusTips:e.statusTips,type:e.typeTips}}),t("TopPopup",{ref:"TopPopup",attrs:{visible:e.visibleListMsg,titleText:"\u5E38\u7528\u610F\u89C1",isDrawer:!0},on:{"update:visible":function(s){return e.visibleListMsg=s}}},[t("MsgList",{attrs:{visible:e.visibleListMsg,request:e.param.request,useInfo:e.param.userInfo},on:{handleTips:e.handleTips,handleMsg:e.handleMsg}})],1),t("TopPopup",{attrs:{titleText:"\u64CD\u4F5C\u6D88\u606F\u63D0\u793A",isTips:!0,context:`\u5C06${e.commentMsg}\u8BBE\u7F6E\u4E3A\u5E38\u7528\u610F\u89C1`,cancel:e.handleTipsCancel,comfig:e.handleTipsComfig,visible:e.visibleMsgComfig},on:{"update:visible":function(s){return e.visibleMsgComfig=s}}}),e.labels=="\u9000\u56DE"?t("attchViews",{attrs:{limit:e.limit?e.limit:-1,requires:e.requires,request:e.param.request,linkUrl:e.param.linkUrl},on:{getValue:e.getValues}}):e._e()],1)},TC=[function(){var e=this,i=e.$createElement,t=e._self._c||i;return t("div",{staticClass:"process-pc-label",staticStyle:{"background-color":"#fff",position:"relative","z-index":"199",display:"inline-block",width:"50%"}},[e._v(" \u9000\u56DE\u8282\u70B9\uFF1A "),t("span",{staticClass:"process-pc-label--re"},[e._v("*")])])},function(){var e=this,i=e.$createElement,t=e._self._c||i;return t("div",{staticClass:"process-pc-label"},[e._v(" \u9000\u56DE\u7406\u7531\uFF1A "),t("span",{staticClass:"process-pc-label--re"},[e._v("*")])])}];const bw="",IC={name:"backNode",props:{param:{type:Object,defalut:()=>{}}},components:{TopTips:mt,attchViews:xi,TopPopup:ze,departPerson:Pt.departPerson,TopDownSelect:$u,MsgList:Is},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,i){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(i=>({...i,name:i.nodeName,id:i.nodeId})).filter(i=>!(i.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((i,t)=>{this.multiNodeParticipant[this.partObjId].push(i.id),this.partNode[this.partObjId].push(i.name),this.entity.checkedArray.push({type:3,id:i.id,subjectId:i.subjectId})})},handleCancel(){},getValues(e){this.attchLists=e},async uploadAttch(){if(this.attchLists.length>0){this.attchLists.map((t,s)=>{t.size=t.fileSize,t.format=t.originFileName.substring(t.originFileName.lastIndexOf(".")+1),t.uploadTime=t.createTime,t.processInstId=this.param.processInstId,t.taskInstId=this.param.taskInstId,t.name=t.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,i,t){this.textTips=e,this.statusTips=i,this.typeTips=t,this.$refs.topTips.handleOpen()},handleFinal(){this.param.endFunction&&this.param.endFunction("\u9000\u56DE")}}},mp={};var kC=ye(IC,EC,TC,!1,NC,"0d20c2b4",null,null);function NC(e){for(let i in mp)this[i]=mp[i]}const _C=function(){return kC.exports}();var SC=function(){var e=this,i=e.$createElement,t=e._self._c||i;return t("div",{staticStyle:{height:"100%"}},[e.param.visible?t("departPerson",e._b({attrs:{isTitle:!1,request:e.param.request},on:{callback:e.handleCallback,cancel:e.handleCancel}},"departPerson",e.entity,!1)):e._e(),t("TopTips",{ref:"topTips",attrs:{text:e.textTips,statusTips:e.statusTips,type:e.typeTips}})],1)},PC=[];const Cw="",DC={name:"ccTask",props:{param:{type:Object,defalut:()=>{}}},components:{TopTips:mt,departPerson:Pt.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,i){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((i,t)=>{t==0?e=i:e=`${e} ${i}`}),await this.param.request.post("/bladex/blade-workflow/tis/createCCTask",{processInstId:this.param.processInstId,taskId:this.param.taskInstId,title:"",participant:e}).then(i=>{i.code==200?(this.$emit("handleClosecctaskTopPopup"),this.handleTips("\u63D0\u4EA4\u6210\u529F!",!1,"success"),window.top.postMessage("success","*"),this.handleFinal()):this.handleTips(i.msg,!0,"error")})},makeDelegateTaskButtonAnnex(){},handleCallback(e){this.visible=!1,this.multiNodeParticipant[this.partObjId]=[],this.partNode[this.partObjId]=[],e.map((i,t)=>{this.multiNodeParticipant[this.partObjId].push(i.id),this.partNode[this.partObjId].push(i.name),this.entity.checkedArray.push({type:3,id:i.id,subjectId:i.subjectId})}),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,i,t){this.textTips=e,this.statusTips=i,this.typeTips=t,this.$refs.topTips.handleOpen()},handleFinal(){this.param.endFunction&&this.param.endFunction("ccTask")}}},gp={};var OC=ye(DC,SC,PC,!1,MC,null,null,null);function MC(e){for(let i in gp)this[i]=gp[i]}const BC=function(){return OC.exports}();var RC=function(){var e=this,i=e.$createElement,t=e._self._c||i;return t("div",{staticClass:"process-btns"},[e.process.status=="todo"?[e.getButton("wf_pass")?t("button",{staticClass:"process-button success",attrs:{size:"default",disabled:e.loading},on:{click:function(s){e.$emit("examine",!0,["deleted"].includes(e.process.processIsFinished)?"\u91CD\u65B0\u63D0\u4EA4":e.getButton("wf_pass").name)}}},[["deleted"].includes(e.process.processIsFinished)?t("span",[e._v("\u91CD\u65B0\u63D0\u4EA4")]):t("span",[e._v(e._s(e.getButton("wf_pass").name))])]):e._e(),e.getButton("wf_reject")?t("button",{staticClass:"process-button danger",attrs:{size:"default",disabled:e.loading},on:{click:function(s){e.$emit("examine",!1,(e.backNodes.length>1,e.getButton("wf_reject").name))}}},[e.backNodes.length>1?t("span",[e._v(e._s(e.getButton("wf_reject").name))]):t("span",[e._v(e._s(e.getButton("wf_reject").name))])]):e._e(),e.uid==(e.process.variables||{}).applyUserId?t("button",{staticClass:"process-button info",attrs:{size:"default",disabled:e.loading},on:{click:function(s){return e.$emit("reminders")}}},[t("span",[e._v("\u50AC\u529E")])]):e._e(),e.getButton("wf_transfer")?t("button",{staticClass:"process-button primary",attrs:{size:"default",disabled:e.loading},on:{click:function(s){e.$emit("user-select",{type:"transfer",checkType:"radio",name:e.getButton("wf_transfer").name})}}},[e._v(e._s(e.getButton("wf_transfer").name))]):e._e(),e.getButton("wf_delegate")?t("button",{staticClass:"process-button warning",attrs:{size:"default",disabled:e.loading},on:{click:function(s){e.$emit("user-select",{type:"delegate",checkType:"radio",name:e.getButton("wf_delegate").name})}}},[e._v(" "+e._s(e.getButton("wf_delegate").name)+" ")]):e._e(),e.getButton("wf_rollback")?t("button",{staticClass:"process-button success",attrs:{size:"default",disabled:e.loading},on:{click:function(s){e.$emit("rollback",e.getButton("wf_rollback").name)}}},[e._v(" "+e._s(e.getButton("wf_rollback").name)+" ")]):e._e(),e.getButton("wf_terminate")?t("button",{staticClass:"process-button danger",attrs:{size:"default",disabled:e.loading},on:{click:function(s){return e.$emit("terminate")}}},[e._v(" "+e._s(e.getButton("wf_terminate").name)+" ")]):e._e(),e.process.isMultiInstance&&e.getButton("wf_add_instance")?t("button",{staticClass:"process-button primary",attrs:{size:"default",disabled:e.loading},on:{click:function(s){e.$emit("user-select",{type:"addInstance",checkType:"checkbox",name:e.getButton("wf_add_instance").name})}}},[e._v(" "+e._s(e.getButton("wf_add_instance").name)+" ")]):e._e(),e.getButton("wf_cctask")?t("button",{staticClass:"process-button info",attrs:{size:"default",disabled:e.loading},on:{click:function(s){e.$emit("circulate",e.getButton("wf_cctask").name)}}},[t("span",[e._v(e._s(e.getButton("wf_cctask").name))])]):e._e()]:e._e(),e.process.isOwner&&e.process.isReturnable&&!["deleted"].includes(e.process.processIsFinished)?t("button",{staticClass:"process-button danger",attrs:{size:"default",disabled:e.loading},on:{click:function(s){return e.$emit("withdraw","\u64A4\u9500")}}},[e._v(" \u64A4\u9500 ")]):e._e(),e.getButton("wf_print")?t("button",{staticClass:"process-button info",attrs:{size:"default",disabled:e.loading},on:{click:function(s){return e.$emit("print")}}},[e._v(" "+e._s(e.getButton("wf_print").name)+" ")]):e._e()],2)},LC=[];const ww="",FC={name:"nf-button",components:{TopTips:mt},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,i){e&&e.taskId&&this.request.get("/bladex/blade-workflow/process/getBackNodes",{params:{taskId:e.taskId}}).then(t=>{const s=t.data;this.backNodes=s})},deep:!0,immediate:!0}},methods:{handleTips(e,i,t){this.textTips=e,this.statusTips=i,this.typeTips=t,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(i=>i.buttonKey==e)}}},yp={};var VC=ye(FC,RC,LC,!1,jC,"128c5f57",null,null);function jC(e){for(let i in yp)this[i]=yp[i]}const QC={name:"TopProcess",components:{processBtns:function(){return VC.exports}(),TopTab:a0,TopPopup:ze,TopTips:mt,TopSumbitPopup:sp},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{currentProcess:{currentProcessOriginData:[],currentMan:[],currentFirstNode:{}},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,i){this.processIntId=this.processInstId||this.formData.processId||this.formData.processInstId,e&&(this.request.get("/bladex/blade-workflow/tis/getTaskModelDetail",{params:{processInstId:this.processInstId}}).then(t=>{var s;if(t.code==200){this.ProcessInsObj={...this.ProcessInsObj,...t.data},this.taskObj.buttons=this.ProcessInsObj.button||[],this.trackList=(((s=t.data)==null?void 0:s.flow)||[]).filter(a=>["userTask","candidate"].includes(a.historyActivityType));const n=((this.ProcessInsObj.process||{}).variables||{}).deptId;this.deptId=n;const r=(this.ProcessInsObj.process||{}).taskId;this.absoluteTaskId=r,this.approvalData=(t.data||{}).flow||[],this.processXml=((t.data||{}).process||{}).xml||"",this.handleGetProcessStatus(),this.$emit("get-process-data",this.ProcessInsObj)}}),this.getCurrentProcess(),this.getUserInfo())},immediate:!0,deep:!0},restartData:{handler(e,i){e&&(this.restartDataS=e)},immediate:!0,deep:!0},selfBtn:{handler(e,i){e&&e.length&&(this.selfBtnList=e)},immediate:!0,deep:!0},uid:{handler(e,i){e&&(this.userIdData=e)},immediate:!0,deep:!0}},mounted(){},computed:{actionBtn(){return this.operBtn.length>3?this.operBtn.slice(3):[]},operBtn(){let e=[];const i=this.ProcessInsObj.process,t=this.ProcessInsObj.button;if(!i||!t)return e;if(this.getButton("wf_pass"),this.needResubmit&&i.status=="todo"&&this.userIdData&&i.isOwner&&["deleted"].includes(i.processIsFinished)&&this.getButton("wf_pass")){let n={};n.name="\u91CD\u65B0\u63D0\u4EA4",n.btnProps={type:"default"},e.push(n),n.click=r=>{this.handlePass("\u91CD\u65B0\u63D0\u4EA4"),this.submitLoading=!0,this.handleActionClose()}}if(!this.isView&&i.status=="todo"&&this.getButton("wf_pass")){let n={};n.name=this.getButton("wf_pass").name,n.btnProps={type:"primary"},e.push(n),n.click=r=>{this.handlePass(this.getButton("wf_pass").name),this.submitLoading=!0,this.handleActionClose()}}if(!this.isView&&i.status=="todo"&&this.getButton("wf_reject")){let n={};n.name=this.getButton("wf_reject").name,n.btnProps={type:"danger"},e.push(n),n.click=r=>{this.handleCancel(this.getButton("wf_reject").name),this.submitLoading=!0,this.handleActionClose()}}if(this.selfBtnList&&this.selfBtnList.length&&this.selfBtnList.map(n=>{let r={};r.name=n.name,r.btnProps={type:n.type},e.push(r),r.click=n.click}),["wf_edit"].map(n=>{if(!this.isView&&i.status=="todo"&&this.getButton(n)){let r={};r.name=this.getButton(n).name,r.btnProps={},r.key=r.name,r.click=()=>{this.$emit("clickCustomButton",r.name)},e.push(r)}}),!this.isView&&i.status=="todo"&&this.getButton("wf_rollback")){let n={};n.name=this.getButton("wf_rollback").name,n.btnProps={type:"danger"},e.push(n),n.click=r=>{this.handleRollbackTask(this.getButton("wf_rollback").name),this.handleActionClose()}}if(!this.isView&&i.status=="todo"&&this.getButton("wf_cctask")){let n={};n.name=this.getButton("wf_cctask").name,n.btnProps={type:"default"},n.click=async r=>{this.handleCirculate(this.getButton("wf_cctask").name),this.handleActionClose()},e.push(n)}if(!this.isView&&i.status=="todo"&&this.getButton("wf_delegate")){let n={};n.name=this.getButton("wf_delegate").name,n.btnProps={type:"warning"},n.key="cc2",n.click=()=>{this.handleUserSelect({type:"delegate",checkType:"radio",name:this.getButton("wf_delegate").name}),this.handleActionClose()},e.push(n)}if(!this.isView&&i.status=="todo"&&this.getButton("wf_terminate")){let n={};n.name=this.getButton("wf_terminate").name,n.btnProps={type:"danger"},n.key="cc3",n.click=()=>{this.handleTerminateProcess(),this.handleActionClose()},e.push(n)}if(!this.isView&&i.status=="todo"&&this.getButton("wf_transfer")){let n={};n.name=this.getButton("wf_transfer").name,n.btnProps={type:"default"},n.click=r=>{this.handleUserSelect({type:"transfer",checkType:"radio",name:this.getButton("wf_transfer").name}),this.handleActionClose()},e.push(n)}if(!this.isView&&this.getButton("wf_add_instance")){let n={};n.name=this.getButton("wf_add_instance").name,n.btnProps={type:"primary"},n.click=r=>{this.handleUserSelect({type:"addInstance",checkType:"checkbox",name:this.getButton("wf_add_instance").name}),this.handleActionClose()},e.push(n)}if(i.pass==!1&&i.isOwner&&this.processIntId){let n={};n.name="\u50AC\u529E",n.btnProps={type:"default"},n.click=r=>{this.handleReminders("\u50AC\u529E"),this.handleActionClose()},e.push(n)}if(this.processIntId&&i.isOwner&&i.isReturnable&&!["deleted"].includes(i.processIsFinished)){let n={};n.name="\u64A4\u9500",n.btnProps={type:"default"},n.click=r=>{this.handleWithdrawTask("\u64A4\u9500"),this.handleActionClose()},e.push(n)}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:{async getCurrentProcess(){this.request.get("/bladex/blade-workflow/repository/queryTaskNodeList",{params:{processInstId:this.processIntId}}).then(e=>{if(e.code==200){const i={};if(i.currentProcessOriginData=e.data||[],i.currentProcessOriginData.length>0){let t=i.currentProcessOriginData[0],s=(t.currentName||"").split(","),n=(t.avatar||"").split(",");s=s.map((r,a)=>({realName:r,avatar:n[a]||"",phone:"",ancestorNames:[]})),i.currentMan=s,i.currentFirstNode=t,this.currentProcess=i}}else this.currentProcess={currentProcessOriginData:[],currentMan:[],currentFirstNode:{}}}).catch(e=>{console.error(e)})},getButton(e){const i=(this.ProcessInsObj.button||[]).find(t=>t.buttonKey==e);return i},handleActionBtn(e){switch(e.buttonKey){case"wf_pass":this.handleExamine(!0,["deleted"].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,i){e?this.handlePass(i):this.handleCancel(i),this.submitLoading=!0},async handlePass(e){this.operationParam.nodeLoading=!0,this.before?this.before().then(()=>{this.showOperation(hp,e)}):this.showOperation(hp,e),this.deptId&&(await this.getNextNode(this.deptId),this.operationParam={...this.operationParam,nodeLoading:!1,incomingConditionItemList:this.incomingConditionItemList,nextNodeData:this.nextTaskNode})},handleCancel(e){this.showOperation(xC,e)},handleUserSelect({type:e,checkType:i,name:t}){e=="transfer"?this.handleTransfer(t):e=="addInstance"&&this.handleAddInstance(t)},async handleTransfer(e){this.deptId&&await this.getNextNode(this.deptId),this.showOperation(U0,e)},async handleAddInstance(e){this.deptId&&await this.getNextNode(this.deptId),this.showOperation(R0,e)},handlePrint(){},handleRollbackTask(e){this.showOperation(_C,e)},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){this.showOperation(BC,e,this.request,this.taskObj.ccTaskButtonAnnex,"\u6284\u9001"),this.cctaskTopPopupTitle=e},async getNextNode(e){if(this.ProcessInsObj.process&&(this.ProcessInsObj.process||{}).taskParentId)return!0;let i;try{i=await this.request.get("/bladex/blade-workflow/tis/simulation",{params:{taskId:this.absoluteTaskId,processInstId:this.processIntId}})}catch(s){console.error(s),i={}}let t=i.data||{};i.code==200&&!i.data.evaluation&&(this.incomingConditionItemList=[],t.branches=await this.getOutgoingProcessNode(this.absoluteTaskId,i.data.id)),i.code==200&&i.data.evaluation&&i.data.branches&&i.data.branches.length>0&&i.data.branches[0].nodeType!="userTask"&&(this.incomingConditionItemList=[],t.branches=await this.getOutgoingProcessNode(this.absoluteTaskId,i.data.branches[0].id)),t=await this.getSelectFixData(t,e),this.nextTaskNode=t,this.operationParam={...this.operationParam,nextNodeData:(this.nextTaskNode||{}).id?[this.nextTaskNode]:[]}},async getNodeUser({deptId:e,intersection:i,userIds:t,postIds:s,deptIds:n}){return await this.request.post("/auth/user/getTaskAuditor",{deptId:e,intersection:i,userIds:t,postIds:s,deptIds:n})},handleGetHeight(){this.$nextTick(()=>{setTimeout(()=>{let e=document.getElementById("process-header"),i=document.getElementById("process-footer");this.bottomNum=i?i.scrollHeight+10:70,this.topNum=e?e.scrollHeight+10:144},1e3)})},handleTestsss(e,i){},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 i={processInstId:this.processInstId,taskInstId:this.taskNode.length?this.taskNode[0].taskId:"",vars:e,errorTip:!1},t=await this.request.post("/aws/tis/simulation",i);if(t.success){this.handleTips("",!1,"success"),this.nextNodeData=t.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 getSelectFixData(e,i){let t=JSON.parse(JSON.stringify(e));if(t.nodeType!="userTask"&&Array.isArray(t.branches))for(let s=0;s<t.branches.length;s++){let n=t.branches[s],r=n.nodeInfoDTO?n.nodeInfoDTO:n;try{r=await this.getSelectFixData(r,i)}catch(a){}n.nodeInfoDTO?n.nodeInfoDTO=r:n=r,t.branches[s]=n}else if(t.nodeType=="userTask"&&!t.setPersonnel){let s=Ju(t),n;try{n=await this.getNodeUser({deptId:i,intersection:s.intersection?1:0,userIds:s.userIds,postIds:s.postIds,deptIds:s.deptIds}),n.code==$enum.apiCode.success}catch(r){}n.code==200&&(t.userList=n.data)}return t},async getOutgoingProcessNode(e,i){let t=await this.request.get("/bladex/blade-workflow/tis/getOutgoingProcessNode",{params:{taskId:e,processNodeId:i}});if(t.code==200){if(t.data&&t.data.length){for(let s=0;s<t.data.length;s++){let n=t.data[s];n.incomingConditionItemList&&n.incomingConditionItemList.length!==0&&(n.nodeInfoDTO.incomingConditionItemList=n.incomingConditionItemList,this.incomingConditionItemList.push(...n.incomingConditionItemList)),n.nodeInfoDTO.nodeType!="userTask"&&(n.nodeInfoDTO.branches=await this.getOutgoingProcessNode(e,n.nodeInfoDTO.id))}return this.handleTips("",!1,"success"),t.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("/bladex/blade-workflow/repository/findTaskTodoInfoByTaskId",{params:{taskId:this.absoluteTaskId||""}}).then(e=>{e.code==200&&(this.processStatus={...e.data||{},...e.data.vars?e.data.vars:{},bizStatusName:e.data.taskState,currUserName:e.data.currentName,allUserNames:e.data.currentName}),this.handleGetHeight(),this.handleTips("",!1,"success")}).catch(e=>{this.handleGetHeight()}).finally(()=>{})},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,i,t,s,n){switch(this.beforeFunction&&(this.operationParam.beforeFunction=this.beforeFunction),this.operationParam.request=this.request,this.annexlabel=s||"fasdfsafdsa",this.titleText=i,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=i,this.operationParam.formData=this.formData,this.operationParam.ProcessInsObj=this.ProcessInsObj.process||{},this.operationParam.userInfo=this.user,this.nextTaskNode,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,n){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(i=>{this.processBusiness=i.data,this.request.get("/bladex/blade-workflow/repository/getAllProcessNode",{params:{processDefId:this.processBusiness.processDefId}}).then(t=>{this.getFirstProcessNode=t.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(t=>{this.handleTips("\u8BF7\u6C42\u51FA\u9519",!0,"error")})}).catch(i=>{this.handleTips("\u8BF7\u6C42\u51FA\u9519",!0,"error")})}).catch(e=>{this.handleTips("\u8BF7\u6C42\u51FA\u9519",!0,"error")})},handleTips(e,i,t){this.textTips=e,this.statusTips=i,this.typeTips=t,this.$refs.topTips.handleOpen()}}};var UC=function(){var e=this,i=e.$createElement,t=e._self._c||i;return t("div",[t("div",{staticClass:"process-warp"},[(e.formData.currentState||e.processStatus.bizStatusName||e.processStatus.status)&&!e.hideHeader?t("div",{ref:"processheader",staticClass:"process-main",attrs:{id:"process-header"}},[t("div",{staticClass:"process-ml-item border"},[t("div",{staticClass:"process-mli-name"},[e._v("\u6D41\u7A0B\u72B6\u6001")]),t("div",{staticClass:"process-mli-value"},[e.formData.currentState||e.processStatus.bizStatusName||e.processStatus.status?t("div",{staticClass:"process-mliv-dd",style:{background:e.getColor(e.formData.currentState||e.processStatus.bizStatusName||e.processStatus.status)}},[e._v(" "+e._s(e.formData.currentState||e.processStatus.bizStatusName||e.processStatus.status)+" ")]):e._e()])]),t("div",{staticClass:"process-ml-item border"},[t("div",{staticClass:"process-mli-name"},[e._v("\u6D41\u7A0B\u53D1\u8D77\u65F6\u95F4")]),t("div",{staticClass:"process-mli-value"},[t("span",[e._v(e._s(e.processStatus.createTime))])])]),e.processStatus.allUserNames&&e.processStatus.allUserNames.length?t("div",{staticClass:"process-ml-item"},[t("div",{staticClass:"process-mli-name"},[e._v("\u5BA1\u6279\u8282\u70B9")]),t("div",{staticClass:"process-mli-value",staticStyle:{width:"50%","text-align":"right"}},[t("span",{staticClass:"process-mliv-jd"},[e._v(e._s(`${e.processStatus.taskState==4?e.processStatus.currUserName:e.processStatus.allUserNames.toString()}\u5BA1\u6279\u4E2D`))])])]):e._e()]):e._e(),t("div",{staticClass:"process-card",style:{height:e.processCardHeight}},[t("TopTab",{attrs:{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}},[e.selfTapList&&e.selfTapList.length?e._l(e.selfTapList,function(s,n){return t("div",{key:n,staticStyle:{height:"100%"},attrs:{slot:s.slot},slot:s.slot},[e._t(s.slot,null,{processData:e.ProcessInsObj,currentProcess:e.currentProcess})],2)}):[t("div",{staticStyle:{height:"100%"},attrs:{slot:"default"},slot:"default"},[e._t("default",null,{processData:e.ProcessInsObj,currentProcess:e.currentProcess})],2),e._l(e.tapList,function(s,n){return t("div",{key:n,staticStyle:{height:"100%"},attrs:{slot:s.slot},slot:s.slot},[e._t(s.slot,null,{processData:e.ProcessInsObj,currentProcess:e.currentProcess})],2)})]],2)],1),e.isView?e._e():t("div",{staticClass:"process-btn",style:{bottom:e.processBtn},attrs:{id:"process-footer"}},[e.isAdditional?t("div",{staticClass:"footBtnRow"},[e._t("btn",null,{data:e.processStatus,processData:e.ProcessInsObj,currentProcess:e.currentProcess})],2):[e.isDocument&&(e.formData.currentState=="\u7F16\u6587\u53F7\u5957\u7EA2"||e.formData.currentState=="\u76D6\u7AE0")?[t("div",{staticClass:"top-button",style:e.getBtnStyle("default")},[e._v(" \u8BF7\u53BBPC\u7AEF\u5904\u7406\u8BE5\u6D41\u7A0B ")])]:[e.formData.currentState!="\u5DF2\u5B8C\u6210"||e.processStatus.status!="\u5DF2\u5B8C\u6210"||e.processStatus.bizStatusName!="\u5DF2\u5B8C\u6210"?[e._l(e.operBtn,function(s,n){return[n<3?t("div",{key:s.name,staticClass:"top-button",style:e.getBtnStyle((s.btnProps.type||"default").toString()),on:{click:function(r){return s.click(s.name)}}},[e._v(" "+e._s(s.name)+" ")]):e._e()]})]:e._e(),e.operBtn.length>3&&e.actionBtn&&e.actionBtn.length?t("div",{staticClass:"elips",on:{click:e.handleActionOpen}},[t("div",{staticClass:"circle"}),t("div",{staticClass:"circle"}),t("div",{staticClass:"circle"})]):e._e()]]],2)]),t("TopPopup",{ref:"TopPopup1",attrs:{cancel:e.handleCancelPopup,comfig:e.handleComfig,titleText:e.titleText,visible:e.TopPopup1,className:"toppopup-component"},on:{"update:visible":function(s){return e.TopPopup1=s}}},[t(e.operationCom,{key:e.operationComKey,ref:"operationRef",tag:"component",attrs:{param:e.operationParam},on:{handleClosePopup1:e.handleClosePopup1}},[t("div",{attrs:{slot:"completeSlot"},slot:"completeSlot"},[e._t("completeSlot",null,{processData:e.ProcessInsObj,currentProcess:e.currentProcess})],2)])],1),t("TopPopup",{ref:"TopPopup2",attrs:{titleText:e.titleText,isTips:!0,context:e.popupContext,cancel:e.handleTipsCancel,comfig:e.handleTipsComfig}}),t("TopTips",{ref:"topTips",attrs:{text:e.textTips,statusTips:e.statusTips,type:e.typeTips}}),e.actionBtn&&e.actionBtn.length||e.taskNodeList&&e.taskNodeList.length?t("div",{staticClass:"top-elips",style:e.actionShow?"transform: translateY(0)":"transform: translateY(100%)"},[e.taskNodeShow?e._l(e.taskNodeList,function(s){return t("div",{key:s.taskId,staticClass:"top-elips-items",on:{click:function(n){return e.handleGet(s)}}},[e._v(" "+e._s(s.name)+" ")])}):e._l(e.actionBtn,function(s){return t("div",{key:s.name,staticClass:"top-elips-items",on:{click:function(n){return s.click(s.name)}}},[e._v(" "+e._s(s.name)+" ")])}),t("div",{staticClass:"top-elips-items top-elips-items--cancel",on:{click:e.handleActionClose}},[e._v(" \u53D6\u6D88 ")])],2):e._e(),t("div",{staticClass:"top-elips-mask",style:e.actionShow?"visibility: visible; opacity: .7;":"visibility: hidden; opacity: 0;",on:{click:e.handleActionClose}}),t("TopSumbitPopup",e._b({ref:"actionPop",attrs:{visible:e.visibleSong,request:e.request,appId:e.processStatus.appId,id:e.formData.businessKey,resubmit:!0,selfList:e.selfList,isCheckType:e.isCheckType,isOrgType:e.isOrgType,isCodeType:e.isCodeType},on:{"update:visible":function(s){e.visibleSong=s},successFn:e.endFunction,change:e.handleTestsss}},"TopSumbitPopup",e.restartDataS,!1)),t("TopPopup",{ref:"cctaskTopPopup",attrs:{titleText:e.cctaskTopPopupTitle,visible:e.cctaskTopPopup,isDrawer:!0},on:{"update:visible":function(s){return e.cctaskTopPopup=s}}},[t(e.operationCom,{ref:"cctaskOperationRef",tag:"component",attrs:{param:e.operationParam},on:{handleClosecctaskTopPopup:e.handleClosecctaskTopPopup}},[t("div",{attrs:{slot:"completeSlot"},slot:"completeSlot"},[e._t("completeSlot",null,{processData:e.ProcessInsObj,currentProcess:e.currentProcess})],2)])],1)],1)},GC=[];const Ew="",vp={};var qC=ye(QC,UC,GC,!1,JC,"a4fed71a",null,null);function JC(e){for(let i in vp)this[i]=vp[i]}const HC=function(){return qC.exports}(),Ap={name:"ddy-process-h5",version:"1.0.1-rc.3.35",description:"> app\u7AEF \u6D41\u7A0B\u63D2\u4EF6",main:"./ddy-process-h5.umd.cjs",style:"./style.css",type:"module",exports:{".":{import:"./ddy-process-h5.js",require:"./ddy-process-h5.umd.cjs"},"./style.css":{import:"./style.css",require:"./style.css"}},scripts:{test:'echo "Error: no test specified" && exit 1',postinstall:"node scripts/postinstall.mjs"},devDependencies:{"checked-pick-app":"1.6.7",dsbridge:"^3.1.4"},dependencies:{"checked-pick-app":"1.6.7",dsbridge:"^3.1.4"},author:"",license:"ISC"};console.info("%c\u26A1"+Ap.name+"%c v"+Ap.version,"background: linear-gradient(135deg, #ff3939ff, #ffbe5cff); color: white; padding: 9px 4px 9px 4px; border-radius: 3px 0 0 3px;font-size: 12px;","background: #5100ffff; color: white; padding: 9px 6px 9px 4px; border-radius: 0px 3px 3px 0px;font-size: 12px;"),ot.TopProcess=HC,ot.TopSumbitPopup=sp,ot.ViewAttchList=oc,ot.attchViews=xi,Object.defineProperties(ot,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}})});