|
1 |
- import{_ as fe,d as me,C as ve,B as G,x as ge,y as _e,r as w,b as K,o as ye,c as _,a2 as Ie,e as l,f as k,w as be,h as n,i as r,g as I,t as V,j as f,G as m,k as b,n as ke,u as N,F as Ce,ac as je,L as we,$ as De,E as Pe,aD as he,q as xe,a1 as Ve,aE as Ne}from"./index.e8b71da7.js";import Te from"./flowRecord.7808bb62.js";import $e from"./auditDialog.e1c1b864.js";import qe from"./projectInfo.8061fa87.js";import Be from"./finalInfo.aa3c630d.js";import Se from"./delayApplyInfo.0b683803.js";import Re from"./wantReadInfo.ed1e0078.js";import Ee from"./sjFlowRecord.407d823f.js";import Ae from"./changeInfoDialog.0a7e3d49.js";import{d as He}from"./projectCollectionEnter.f2131d92.js";import"./index.4cb63fa6.js";import"./index.555a865f.js";import"./uploadAction.65e21f3b.js";import"./basicInfo.3c948130.js";import"./indicatorTemplate.a390f46e.js";import"./fundsInfo.2d24ebdc.js";import"./investmentInfo.a16da808.js";import"./engineeringInfo.80a1f7e1.js";import"./safeInfo.83ecb1af.js";import"./businessInfo.47f9e9cc.js";import"./yearPayPlanInfo.e65eb89b.js";import"./filesInfo.d7dbf03b.js";import"./remarkInfo.8f225253.js";import"./applications.e031c4dc.js";import"./customModule.ff6ff269.js";import"./provincialInfo.5815d4da.js";import"./index.dd00bdfc.js";import"./index.f55de596.js";import"./delayApply.d6579f0b.js";import"./projectStore.e90636d8.js";const Le={class:"footerPage"},Me={class:"card-header relative"},Fe={class:"flex justify-between"},We={class:"flex-1"},Je={class:"font-bold"},Oe={class:"mt-8 search"},Ye={key:1},ze={class:"footer"},Ge={key:0,class:"flex justify-between absolute bottom-0 botBtn"},Ke={key:0,class:"text-12 font-bold"},Ue={key:1,class:"flex items-center"},Qe={key:2,class:"flex items-center"},Xe={key:1,class:"flex justify-center absolute bottom-0 botBtn"},Ze=me({name:"handleDuringExamine"}),es=Object.assign(Ze,{setup(ss){const B=ve(G.userStore).userInfo||{},{proxy:S}=xe(),u=ge(),C=_e(),U=w(),T=w(),t=w({processProgressVo:{progressInfo:[]}}),Q=async s=>{const e=await Ve({...u.query,taskId:s||u.query.taskId});if(e.data.status==="\u88AB\u64A4\u56DE"){C.go(-1);return}t.value={...e.data,processProgressVo:{...e.data.processProgressVo,progressInfo:X(e.data.processProgressVo.progressInfo)}},U.value=Z(t.value.processProgressVo.progressInfo),T.value=ee(t.value.processProgressVo.progressInfo)},X=s=>(s.forEach(e=>{if(e.children){const i=[],d=[];e.children.forEach(a=>{i.includes(a.nodeId)?(d.find(c=>c.nodeId===a.nodeId).list.push(a),d.find(c=>c.nodeId===a.nodeId).userIds.push(a.userId)):(i.push(a.nodeId),d.push({nodeId:a.nodeId,approvalMode:a.approvalMode,name:a.name,nodeType:a.nodeType,list:[{...a}],userIds:[a.userId]}))}),e.children=d}else e.userIds=[e.userId]}),s),Z=s=>{var i,d;const e=s.map(a=>({...a,children:a.children?a.children.filter(c=>c.nodeType!=="CC"):void 0}));return((d=(i=e.slice(-1)[0])==null?void 0:i.children)==null?void 0:d.slice(-1)[0])||e.slice(-1)[0]},ee=s=>{var i,d;const e=s.map(a=>({...a,children:a.children?a.children.filter(c=>c.nodeType!=="CC"):void 0}));return e.slice(-1)[0]&&e.slice(-1)[0].children&&e.slice(-1)[0].children.length>1?e.slice(-1)[0].children.slice(-2,-1)[0]:(d=(i=e.slice(-2,-1)[0])==null?void 0:i.children)!=null&&d.length?e.slice(-2,-1)[0].children.slice(-1)[0]:e.slice(-2,-1)[0]},p=K({visible:!1,title:void 0,taskId:void 0,action:void 0,projectDetail:void 0}),R=async(s,e)=>{p.visible=!0,p.title=s,p.taskId=u.query.taskId,p.action=e,p.constructionSuggestions=t.value.constructionSuggestions,p.projectCode=o.value.projectCode,p.projectDetail=o.value},se=()=>{p.visible=!1},te=()=>{S.$messageBox.confirm("\u662F\u5426\u64A4\u56DE\u8BE5\u610F\u89C1?","\u63D0\u793A\uFF01",{type:"warning"}).then(async()=>{const s=await je({instanceId:u.query.instanceId,projectId:u.query.projectId,projectCode:o.value.projectCode,action:"WITHDRAW",taskId:u.query.taskId});s.data==="TASKID_ERROR"?(S.$message.warning("\u5F53\u524D\u5BA1\u6279\u4EFB\u52A1\u6709\u53D8\u52A8\uFF0C\u8BF7\u8FD4\u56DE\u5F85\u6211\u5904\u7406\u5217\u8868\uFF01"),C.push({name:"waitMeToHandle"})):(S.$message.success("\u64A4\u56DE\u6210\u529F\uFF01"),s.data&&C.push({query:{...u.query,taskId:s.data}}),await we(),$(s.data))})},ae=()=>{var e,i,d,a,c,j;let s=T.value&&((d=(i=(e=T.value)==null?void 0:e.list)==null?void 0:i.find(g=>g.userId===B.value.employeeCode))==null?void 0:d.taskId)||T.value.taskId;if(s==="root"){const g=(c=(a=t.value.processProgressVo.progressInfo)==null?void 0:a[1])==null?void 0:c.children;if(((j=g[0])==null?void 0:j.approvalMode)==="AND"){const D=g[0].list.filter(h=>h.result&&h.userId===B.value.employeeCode);s=(D==null?void 0:D.length)&&D[0].taskId||"root"}}return s},oe=()=>!(t.value.processProgressVo.processDefName==="\u90E8\u95E8\u8054\u5408\u5BA1\u6279\u6D41\u7A0B"&&ae()==="root")&&t.value.canWithdraw,o=w({}),re=async()=>{var e,i;const s=await Ne(u.query.projectId);o.value=s.data,o.value.baseHistorProjs=((i=(e=s.data)==null?void 0:e.baseHistorProjId)==null?void 0:i.split("\uFF1B").map((d,a)=>{var c,j;return{baseProjId:d,baseProjName:(c=s.data)==null?void 0:c.baseHistorProjName.split("\uFF1B")[a],baseProjSetYear:(j=s.data)==null?void 0:j.baseHistorProjYear.split("\uFF1B")[a]}}))||[]},$=s=>{re(),Q(s),A.value=!1},le=()=>{var s,e;C.push({name:"stamp",query:{projectId:u.query.projectId,instanceId:u.query.instanceId,taskId:u.query.taskId,fileId:o.value.pretrialFileId,instName:(e=(s=t.value)==null?void 0:s.processProgressVo)==null?void 0:e.processDefName,projectCode:o.value.projectCode}})},A=w(!0),P=w("1"),ne=s=>{P.value=s},q=K({visible:!1,id:u.query.projectId}),ie=()=>{q.visible=!0},H=w([]);ye(async()=>{$(),H.value=(await He()).data,await G.countStore.setCountStore()});function de(){De({title:"\u6E29\u99A8\u63D0\u793A",message:"\u786E\u8BA4\u9A73\u56DE\u81F3\u5E74\u5EA6\u8BA1\u5212\u5417?",showCancelButton:!0,confirmButtonText:"\u786E\u8BA4",cancelButtonText:"\u53D6\u6D88",beforeClose:async(s,e,i)=>{if(s==="confirm"){e.confirmButtonLoading=!0,e.confirmButtonText="\u6B63\u5728\u5904\u7406...";try{await ue()}catch{e.confirmButtonLoading=!1}e.confirmButtonLoading=!1,i()}else i()}}).then(s=>{s==="confirm"&&(Pe.success("\u9A73\u56DE\u6210\u529F\uFF01"),$())})}async function ue(){const s={instanceId:u.query.instanceId,projectId:u.query.projectId,projectCode:o.value.projectCode,taskId:u.query.taskId,action:"REJECT"};await he(s)}return(s,e)=>{var L,M,F,W;const i=_("el-form-item"),d=_("el-col"),a=_("el-row"),c=_("el-form"),j=_("svg-icon"),g=_("el-card"),D=_("el-alert"),h=_("el-tab-pane"),ce=_("el-tabs"),y=_("el-button"),pe=Ie("loading");return l(),k(Ce,null,[be((l(),k("div",Le,[n(g,{class:"mb-16",shadow:"never"},{default:r(()=>{var v,J,O,Y,z;return[I("div",Me,[I("div",Fe,[I("div",We,[I("p",Je,V(o.value.projectName)+"\u7684"+V(t.value.processProgressVo.processDefName),1),I("div",Oe,[n(c,{"label-suffix":":"},{default:r(()=>[n(a,{gutter:24},{default:r(()=>[n(d,{span:8},{default:r(()=>[n(i,{label:"\u53D1\u8D77\u4EBA"},{default:r(()=>{var x;return[f(V((x=t.value.processProgressVo.progressInfo.find(E=>E.nodeId==="root"))==null?void 0:x.user.userName),1)]}),_:1})]),_:1}),n(d,{span:8},{default:r(()=>[n(i,{label:"\u4E3B\u7BA1\u5355\u4F4D"},{default:r(()=>{var x;return[f(V((x=t.value.processProgressVo.progressInfo.find(E=>E.nodeId==="root"))==null?void 0:x.user.orgName),1)]}),_:1})]),_:1}),n(d,{span:8},{default:r(()=>[n(i,{label:"\u53D1\u8D77\u65F6\u95F4"},{default:r(()=>[f(V(t.value.processProgressVo.startTime),1)]),_:1})]),_:1})]),_:1})]),_:1})])]),n(j,{name:`${((v=t.value)==null?void 0:v.status)==="\u5BA1\u6838\u4E2D"?"underReview":((J=t.value)==null?void 0:J.status)==="\u5BA1\u6838\u901A\u8FC7"?"beApproved":((O=t.value)==null?void 0:O.status)==="\u88AB\u9A73\u56DE"?"beRejected":((Y=t.value)==null?void 0:Y.status)==="\u88AB\u64A4\u56DE"?"beWithdraw":((z=t.value)==null?void 0:z.status)==="\u88AB\u9000\u56DE"?"beBack":""}`,style:{width:"160px",height:"132px",right:"-20px"},class:"absolute top-2/4 -translate-y-1/2"},null,8,["name"])])])]}),_:1}),t.value.isChange?(l(),m(D,{key:0,type:"info","show-icon":"",style:{"margin-bottom":"16px"},closable:!1},{title:r(()=>[I("p",null,[e[8]||(e[8]=f("\u6E29\u99A8\u63D0\u793A\uFF1A\u8BE5\u6D41\u7A0B\u4E3A\u590D\u5BA1\u6D41\u7A0B\uFF0C")),I("a",{onClick:ie},"\u70B9\u51FB\u67E5\u770B"),e[9]||(e[9]=f(" \u8BE5\u9879\u76EE\u8C03\u6574\u7684\u4FE1\u606F\u4EE5\u53CA\u5BA1\u6838\u610F\u89C1"))])]),_:1})):b("",!0),((L=o.value)==null?void 0:L.id)&&t.value.processProgressVo.processDefName==="\u7533\u8BF7\u5EF6\u671F\u5BA1\u6279\u6D41\u7A0B"?(l(),m(g,{key:1,class:"mb-16"},{default:r(()=>[n(Se,{"detail-data":o.value},null,8,["detail-data"])]),_:1})):((M=o.value)==null?void 0:M.id)&&t.value.processProgressVo.processDefName==="\u7533\u8BF7\u501F\u9605\u5BA1\u6279\u6D41\u7A0B"?(l(),m(g,{key:2,class:"mb-16"},{default:r(()=>[n(Re,{"detail-data":o.value},null,8,["detail-data"])]),_:1})):((F=o.value)==null?void 0:F.id)&&t.value.processProgressVo.processDefName==="\u9A8C\u6536\u7533\u62A5\u5BA1\u6279\u6D41\u7A0B"?(l(),m(g,{key:3,shadow:"never",class:"mb-16"},{default:r(()=>[n(Be,{"detail-data":o.value},null,8,["detail-data"])]),_:1})):(l(),m(qe,{key:4,"detail-data":o.value,"dictionary-list":H.value,class:"mb-16"},null,8,["detail-data","dictionary-list"])),n(g,{class:ke(`relative pb-32 flowCard ${o.value.area==="\u5E02\u672C\u7EA7"&&o.value.declareAmount>=1e3&&t.value.processProgressVo.processDefName==="\u91CD\u5927\u9879\u76EE\u8054\u5BA1\u786E\u8BA4\u6D41\u7A0B"?"tab-card":""}`),shadow:"never"},{header:r(()=>[o.value.area==="\u5E02\u672C\u7EA7"&&o.value.declareAmount>=1e3&&t.value.processProgressVo.processDefName==="\u91CD\u5927\u9879\u76EE\u8054\u5BA1\u786E\u8BA4\u6D41\u7A0B"?(l(),m(ce,{key:0,modelValue:P.value,"onUpdate:modelValue":e[0]||(e[0]=v=>P.value=v),onTabChange:ne},{default:r(()=>[n(h,{label:"\u6D41\u7A0B\u8BB0\u5F55",name:"1"}),n(h,{label:"\u7701\u7EA7\u90E8\u95E8\u8054\u5BA1\u6D41\u7A0B\u8BB0\u5F55",name:"2"})]),_:1},8,["modelValue"])):(l(),k("span",Ye,"\u6D41\u7A0B\u8BB0\u5F55"))]),default:r(()=>[P.value==="1"?(l(),m(Te,{key:0,"flow-data":t.value.processProgressVo.progressInfo,detail:o.value},null,8,["flow-data","detail"])):P.value==="2"?(l(),m(c,{key:1,"label-suffix":":"},{default:r(()=>[n(Ee,{"flow-data":o.value.sjlsResult?JSON.parse(o.value.sjlsResult):[]},null,8,["flow-data"])]),_:1})):b("",!0)]),_:1},8,["class"]),I("div",ze,[((W=t.value)==null?void 0:W.status)==="\u5BA1\u6838\u4E2D"&&N(u).name==="handleDuringExamine"?(l(),k("div",Ge,[I("div",null,[o.value.area==="\u5E02\u672C\u7EA7"&&o.value.declareAmount>=1e3&&t.value.processProgressVo.processDefName==="\u91CD\u5927\u9879\u76EE\u8054\u5BA1\u786E\u8BA4\u6D41\u7A0B"?(l(),k("p",Ke,"\u6839\u636E\u8054\u5BA1\u610F\u89C1\uFF0C\u8BE5\u9879\u76EE\u7684\u5EFA\u8BBE\u65B9\u6848\u901A\u8FC7\u60C5\u51B5\u4E3A\uFF1A")):b("",!0),t.value.isHighLine&&N(B).regionCode==="330500"&&o.value.areaCode!=="330500"&&t.value.processProgressVo.processDefName==="\u5EFA\u8BBE\u65B9\u6848\u5BA1\u6279\u6D41\u7A0B"&&t.value.canPass?(l(),k("div",Ue,[t.value.canPass?(l(),m(y,{key:0,type:"primary",onClick:e[1]||(e[1]=v=>R("\u901A\u8FC7","PASS"))},{default:r(()=>e[10]||(e[10]=[f("\u610F\u89C1\u6D41\u8F6C")])),_:1})):b("",!0),n(y,{onClick:e[2]||(e[2]=v=>N(C).go(-1))},{default:r(()=>e[11]||(e[11]=[f("\u8FD4\u56DE")])),_:1})])):(l(),k("div",Qe,[t.value.canPass?(l(),m(y,{key:0,type:"primary",onClick:e[3]||(e[3]=v=>R("\u901A\u8FC7","PASS"))},{default:r(()=>e[12]||(e[12]=[f("\u901A\u8FC7")])),_:1})):b("",!0),t.value.canSeal?(l(),m(y,{key:1,type:"primary",onClick:le},{default:r(()=>e[13]||(e[13]=[f("\u76D6\u7AE0\u5E76\u901A\u8FC7")])),_:1})):b("",!0),t.value.canReject?(l(),m(y,{key:2,plain:"",type:"danger",onClick:e[4]||(e[4]=v=>R("\u9A73\u56DE","REJECT"))},{default:r(()=>e[14]||(e[14]=[f("\u9A73\u56DE ")])),_:1})):b("",!0),n(y,{onClick:e[5]||(e[5]=v=>N(C).go(-1))},{default:r(()=>e[15]||(e[15]=[f("\u8FD4\u56DE")])),_:1}),o.value.status===10012&&t.value.canPass?(l(),m(y,{key:3,plain:"",type:"danger",onClick:de},{default:r(()=>e[16]||(e[16]=[f("\u9A73\u56DE\u81F3\u5E74\u5EA6\u8BA1\u5212")])),_:1})):b("",!0)]))])])):(l(),k("div",Xe,[n(y,{onClick:e[6]||(e[6]=v=>N(C).go(-1))},{default:r(()=>e[17]||(e[17]=[f("\u8FD4\u56DE")])),_:1}),oe()?(l(),m(y,{key:0,plain:"",type:"primary",onClick:te},{default:r(()=>e[18]||(e[18]=[f("\u64A4\u56DE")])),_:1})):b("",!0)]))])])),[[pe,A.value]]),n($e,{visible:p.visible,title:p.title,action:p.action,"task-id":p.taskId,"construction-suggestions":p.constructionSuggestions,"project-detail":p.projectDetail,"project-code":p.projectCode,onClose:se,onReload:$},null,8,["visible","title","action","task-id","construction-suggestions","project-detail","project-code"]),n(Ae,{id:q.id,visible:q.visible,onClose:e[7]||(e[7]=v=>q.visible=!1)},null,8,["id","visible"])],64)}}}),$s=fe(es,[["__scopeId","data-v-c14a0715"]]);export{$s as default};
|