2 lines
33 KiB
JavaScript
2 lines
33 KiB
JavaScript
|
import{y as et}from"./request-6d47a533.js";import{G as Vt,w as ht,B as Tt,b as tt,x as kt,H as It,E as xe,a as Rt,u as xt,d as qt,L as _t,M as Ct,s as Et,l as Lt,r as Nt,q as Ot,c as Bt,v as Ut,K as Pt,o as Ft,p as Jt}from"./element-plus-53a783a7.js";import"./vue-20eed888.js";import{u as At,b as me}from"./index-03a63030.js";import{u as at}from"./vue-i18n-d6e8419a.js";import{d as lt,G as rt,r as u,o as I,b as R,P as o,e as n,T as y,Q as Kt,a as Ce,U as Y,K as zt,S as x,k as r,n as Xe,ah as G,ai as qe,c as $t,u as re,L as Ye,i as Gt,F as Wt}from"./@vue-e95c845e.js";import{_ as it}from"./y9plugin-components-412bad23.js";import{b as Mt,c as Ht,m as Qe,d as _e,h as Xt}from"./interface-6c1bedf7.js";import{g as je,a as Yt}from"./systemidentifier-26774e0a.js";import{i as Qt}from"./interfaceAuth-23f23afd.js";import{p as Ze}from"./parameterTable-f92cb2bf.js";const Ee=et(),va=async T=>await Ee({url:"/api/rest/apply/getApplyInfoById",method:"GET",cType:!1,params:T}),ma=async T=>await Ee({url:"/api/rest/apply/getApplyListById",method:"GET",cType:!1,params:T}),ga=async T=>await Ee({url:"/api/rest/apply/downLoadSecret",method:"GET",cType:!1,params:T,responseType:"blob"}),ba=async T=>await Ee({url:"/api/rest/apply/findIsPass",method:"GET",cType:!1,params:T}),Le=et(),ya=async T=>await Le({url:"/api/rest/approve/getApproveList",method:"GET",cType:!1,params:T}),jt=async T=>await Le({url:"/api/rest/approve/getApproveById",method:"GET",cType:!1,params:T}),Zt=async T=>await Le({url:"/api/rest/approve/getApproveByInterfaceId",method:"GET",cType:!1,params:T}),ca=async T=>await Le({url:"/api/rest/approve/submit",method:"POST",cType:!1,JSON:!0,data:T}),ea=lt({__name:"flowShow",props:{openDialog:{type:Boolean,default:()=>!1},isView:{type:Boolean,default:()=>!1},type:{type:Boolean,default:()=>!1},interfaceId:{type:String},selectData:{type:String},applyType:{type:Boolean,default:()=>!1}},emits:["update:openDialog","update:selectData","update:type"],setup(T,{emit:Ne}){rt("sizeObjInfo"),At(),at(),u();const _=u([]),P=u(!0),a=T,Q=Ne,ge=u("审批详情"),be=u(1),Oe=u(0),j=u({}),ye=u("buttonDiv"),W=u("buttonDiv"),M=u(5),C=u(19);u("");const ce=u("N");function Be(V){be.value=1,_.value=[],j.value={},ye.value="buttonDiv",W.value="buttonDiv",Q("update:openDialog",!1),Q("update:type",!1)}function Z(V){Q("update:openDialog",!1),Q("update:type",!1)}function E(){P.value=!0,Oe.value=0;let V={id:a.interfaceId};a.type?(V.applyType=a.applyType,Zt(V).then(v=>{v.applyInfo!=null&&(j.value=v.applyInfo),v.data!=null&&(_.value=v.data,ce.value=v.data.isOver,console.log(_.value)),S()})):jt(V).then(v=>{v.applyInfo!=null&&(j.value=v.applyInfo),_.value=v.data,ce.value=v.data.isOver,S()})}function S(){let V=_.value;V.approveStatus=="不通过"?V.buttonDiv="buttonDiv refuseBtn":V.approveStatus=="通过"?V.buttonDiv="buttonDiv successBtn":V.buttonDiv="buttonDiv borderNone",P.value=!1}return(V,v)=>{const d=Vt,F=ht,ee=Tt,we=tt,J=kt,Se=It;return a.openDialog?(I(),R(J,{key:0,modelValue:a.openDialog,"onUpdate:modelValue":v[1]||(v[1]=ie=>a.openDialog=ie),title:ge.value,onClosed:Be,onOpened:E},{footer:o(()=>[n(we,{class:"el-button el-button--default global-btn-third",onClick:v[0]||(v[0]=ie=>Z("1"))},{default:o(()=>v[7]||(v[7]=[y("关闭")])),_:1})]),default:o(()=>[Kt((I(),R(ee,{class:"cardFont",shadow:"always"},{default:o(()=>[n(F,null,{default:o(()=>[n(d,{span:M.value},{default:o(()=>v[2]||(v[2]=[y("审批人员:")])),_:1},8,["span"]),n(d,{span:C.value},{default:o(()=>[Ce("div",null,Y(_.value.personName),1)]),_:1},8,["span"])]),_:1}),n(F,null,{default:o(()=>[n(d,{span:M.value},{default:o(()=>v[3]||(v[3]=[y("审批时间:")])),_:1},8,["span"]),n(d,{span:C.value},{default:o(()=>[Ce("div",null,Y(_.value.updateTime),1)]),_:1},8,["span"])]),_:1}),n(F,null,{default:o(()=>[n(d,{span:M.value},{default:o(()=>v[4]||(v[4]=[y("审批意见:")])),_:1},8,["span"]),n(d,{span:C.value},{default:o(()=>[Ce("div",{class:zt(_.value.buttonDiv)},Y(_.value.approveStatus),3)]),_:1},8,["span"])]),_:1}),n(F,null,{default:o(()=>[n(d,{span:M.value},{default:o(()=>v[5]||(v[5]=[y("审批说明:")])),_:1},8,["
|