You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

2 lines
12KB

  1. import{_ as pe,d as fe,G as me,D as G,z as ve,A as _e,r as j,b as K,o as ge,c as g,a4 as ye,e as n,f as b,w as Ie,h as l,i as o,g as I,t as V,j as p,I as m,k,n as be,u as N,F as ke,ae as he,N as Ce,a1 as je,x as we,a3 as De,aC as Pe}from"./index.3d9e59d0.js";import xe from"./flowRecord.fe9f17d7.js";import Ve from"./auditDialog.35e33f8e.js";import Ne from"./projectInfo.349b76ab.js";import $e from"./finalInfo.124d5724.js";import Se from"./delayApplyInfo.ee07631d.js";import Te from"./wantReadInfo.6e7ac028.js";import qe from"./sjFlowRecord.54aef838.js";import Re from"./changeInfoDialog.b0635afc.js";import{d as Ae}from"./projectCollectionEnter.8038d1bb.js";import"./index.31176f14.js";import"./index.c6539357.js";import"./uploadAction.d75dad42.js";import"./basicInfo.16970786.js";import"./indicatorTemplate.a43efa13.js";import"./fundsInfo.c2e9f5c7.js";import"./investmentInfo.fb5b1343.js";import"./engineeringInfo.263256ff.js";import"./safeInfo.38f39e42.js";import"./businessInfo.daa63879.js";import"./yearPayPlanInfo.368bbdc2.js";import"./filesInfo.1679f201.js";import"./remarkInfo.3b5f9a3a.js";import"./applications.899e0e51.js";import"./customModule.c19ca885.js";import"./provincialInfo.c6214a70.js";import"./index.a3e53586.js";import"./index.f55de596.js";import"./delayApply.403f2776.js";import"./projectStore.67719bc7.js";const Be={class:"footerPage"},Ee={class:"card-header relative"},He={class:"flex justify-between"},Me={class:"flex-1"},Fe={class:"font-bold"},We={class:"mt-8 search"},Le={key:1},Oe={class:"footer"},Ye={key:0,class:"flex justify-between absolute bottom-0 botBtn"},ze={key:0,class:"text-12 font-bold"},Je={key:1,class:"flex items-center"},Ge={key:2,class:"flex items-center"},Ke={key:1,class:"flex justify-center absolute bottom-0 botBtn"},Ue=fe({name:"handleDuringExamine"}),Qe=Object.assign(Ue,{setup(Xe){const T=me(G.userStore).userInfo||{},{proxy:q}=we(),f=ve(),h=_e(),U=j(),$=j(),a=j({processProgressVo:{progressInfo:[]}}),Q=async s=>{const e=await De({...f.query,taskId:s||f.query.taskId});if(e.data.status==="\u88AB\u64A4\u56DE"){h.go(-1);return}a.value={...e.data,processProgressVo:{...e.data.processProgressVo,progressInfo:X(e.data.processProgressVo.progressInfo)}},U.value=Z(a.value.processProgressVo.progressInfo),$.value=ee(a.value.processProgressVo.progressInfo)},X=s=>(s.forEach(e=>{if(e.children){const d=[],i=[];e.children.forEach(t=>{d.includes(t.nodeId)?(i.find(u=>u.nodeId===t.nodeId).list.push(t),i.find(u=>u.nodeId===t.nodeId).userIds.push(t.userId)):(d.push(t.nodeId),i.push({nodeId:t.nodeId,approvalMode:t.approvalMode,name:t.name,nodeType:t.nodeType,list:[{...t}],userIds:[t.userId]}))}),e.children=i}else e.userIds=[e.userId]}),s),Z=s=>{var d,i;const e=s.map(t=>({...t,children:t.children?t.children.filter(u=>u.nodeType!=="CC"):void 0}));return((i=(d=e.slice(-1)[0])==null?void 0:d.children)==null?void 0:i.slice(-1)[0])||e.slice(-1)[0]},ee=s=>{var d,i;const e=s.map(t=>({...t,children:t.children?t.children.filter(u=>u.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]:(i=(d=e.slice(-2,-1)[0])==null?void 0:d.children)!=null&&i.length?e.slice(-2,-1)[0].children.slice(-1)[0]:e.slice(-2,-1)[0]},c=K({visible:!1,title:void 0,taskId:void 0,action:void 0,projectDetail:void 0}),R=async(s,e)=>{c.visible=!0,c.title=s,c.taskId=f.query.taskId,c.action=e,c.constructionSuggestions=a.value.constructionSuggestions,c.projectCode=r.value.projectCode,c.projectDetail=r.value},ae=()=>{c.visible=!1},se=()=>{q.$messageBox.confirm("\u662F\u5426\u64A4\u56DE\u8BE5\u610F\u89C1?","\u63D0\u793A\uFF01",{type:"warning"}).then(async()=>{const s=await he({instanceId:f.query.instanceId,projectId:f.query.projectId,projectCode:r.value.projectCode,action:"WITHDRAW",taskId:f.query.taskId});s.data==="TASKID_ERROR"?(q.$message.warning("\u5F53\u524D\u5BA1\u6279\u4EFB\u52A1\u6709\u53D8\u52A8\uFF0C\u8BF7\u8FD4\u56DE\u5F85\u6211\u5904\u7406\u5217\u8868\uFF01"),h.push({name:"waitMeToHandle"})):(q.$message.success("\u64A4\u56DE\u6210\u529F\uFF01"),s.data&&h.push({query:{...f.query,taskId:s.data}}),await Ce(),A(s.data))})},te=()=>{var e,d,i,t,u,C;let s=$.value&&((i=(d=(e=$.value)==null?void 0:e.list)==null?void 0:d.find(_=>_.userId===T.value.employeeCode))==null?void 0:i.taskId)||$.value.taskId;if(s==="root"){const _=(u=(t=a.value.processProgressVo.progressInfo)==null?void 0:t[1])==null?void 0:u.children;if(((C=_[0])==null?void 0:C.approvalMode)==="AND"){const w=_[0].list.filter(P=>P.result&&P.userId===T.value.employeeCode);s=(w==null?void 0:w.length)&&w[0].taskId||"root"}}return s},oe=()=>!(a.value.processProgressVo.processDefName==="\u90E8\u95E8\u8054\u5408\u5BA1\u6279\u6D41\u7A0B"&&te()==="root")&&a.value.canWithdraw,r=j({}),re=async()=>{var e,d;const s=await Pe(f.query.projectId);r.value=s.data,r.value.baseHistorProjs=((d=(e=s.data)==null?void 0:e.baseHistorProjId)==null?void 0:d.split("\uFF1B").map((i,t)=>{var u,C;return{baseProjId:i,baseProjName:(u=s.data)==null?void 0:u.baseHistorProjName.split("\uFF1B")[t],baseProjSetYear:(C=s.data)==null?void 0:C.baseHistorProjYear.split("\uFF1B")[t]}}))||[]},A=s=>{re(),Q(s),E.value=!1},le=()=>{var s,e;h.push({name:"stamp",query:{projectId:f.query.projectId,instanceId:f.query.instanceId,taskId:f.query.taskId,fileId:r.value.pretrialFileId,instName:(e=(s=a.value)==null?void 0:s.processProgressVo)==null?void 0:e.processDefName,projectCode:r.value.projectCode}})},E=j(!0),D=j("1"),ne=s=>{D.value=s},S=K({visible:!1,id:f.query.projectId}),ie=()=>{S.visible=!0},H=j([]);ge(async()=>{A(),H.value=(await Ae()).data,await G.countStore.setCountStore()});function de(){je.confirm("\u6B63\u5728\u5F00\u53D1\u4E2D......").then(()=>{}).catch(()=>{})}return(s,e)=>{var M,F,W,L;const d=g("el-form-item"),i=g("el-col"),t=g("el-row"),u=g("el-form"),C=g("svg-icon"),_=g("el-card"),w=g("el-alert"),P=g("el-tab-pane"),ue=g("el-tabs"),y=g("el-button"),ce=ye("loading");return n(),b(ke,null,[Ie((n(),b("div",Be,[l(_,{class:"mb-16",shadow:"never"},{default:o(()=>{var v,O,Y,z,J;return[I("div",Ee,[I("div",He,[I("div",Me,[I("p",Fe,V(r.value.projectName)+"\u7684"+V(a.value.processProgressVo.processDefName),1),I("div",We,[l(u,{"label-suffix":":"},{default:o(()=>[l(t,{gutter:24},{default:o(()=>[l(i,{span:8},{default:o(()=>[l(d,{label:"\u53D1\u8D77\u4EBA"},{default:o(()=>{var x;return[p(V((x=a.value.processProgressVo.progressInfo.find(B=>B.nodeId==="root"))==null?void 0:x.user.userName),1)]}),_:1})]),_:1}),l(i,{span:8},{default:o(()=>[l(d,{label:"\u4E3B\u7BA1\u5355\u4F4D"},{default:o(()=>{var x;return[p(V((x=a.value.processProgressVo.progressInfo.find(B=>B.nodeId==="root"))==null?void 0:x.user.orgName),1)]}),_:1})]),_:1}),l(i,{span:8},{default:o(()=>[l(d,{label:"\u53D1\u8D77\u65F6\u95F4"},{default:o(()=>[p(V(a.value.processProgressVo.startTime),1)]),_:1})]),_:1})]),_:1})]),_:1})])]),l(C,{name:`${((v=a.value)==null?void 0:v.status)==="\u5BA1\u6838\u4E2D"?"underReview":((O=a.value)==null?void 0:O.status)==="\u5BA1\u6838\u901A\u8FC7"?"beApproved":((Y=a.value)==null?void 0:Y.status)==="\u88AB\u9A73\u56DE"?"beRejected":((z=a.value)==null?void 0:z.status)==="\u88AB\u64A4\u56DE"?"beWithdraw":((J=a.value)==null?void 0:J.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}),a.value.isChange?(n(),m(w,{key:0,type:"info","show-icon":"",style:{"margin-bottom":"16px"},closable:!1},{title:o(()=>[I("p",null,[p("\u6E29\u99A8\u63D0\u793A\uFF1A\u8BE5\u6D41\u7A0B\u4E3A\u590D\u5BA1\u6D41\u7A0B\uFF0C"),I("a",{onClick:ie},"\u70B9\u51FB\u67E5\u770B"),p(" \u8BE5\u9879\u76EE\u8C03\u6574\u7684\u4FE1\u606F\u4EE5\u53CA\u5BA1\u6838\u610F\u89C1")])]),_:1})):k("",!0),((M=r.value)==null?void 0:M.id)&&a.value.processProgressVo.processDefName==="\u7533\u8BF7\u5EF6\u671F\u5BA1\u6279\u6D41\u7A0B"?(n(),m(_,{key:1,class:"mb-16"},{default:o(()=>[l(Se,{"detail-data":r.value},null,8,["detail-data"])]),_:1})):((F=r.value)==null?void 0:F.id)&&a.value.processProgressVo.processDefName==="\u7533\u8BF7\u501F\u9605\u5BA1\u6279\u6D41\u7A0B"?(n(),m(_,{key:2,class:"mb-16"},{default:o(()=>[l(Te,{"detail-data":r.value},null,8,["detail-data"])]),_:1})):((W=r.value)==null?void 0:W.id)&&a.value.processProgressVo.processDefName==="\u9A8C\u6536\u7533\u62A5\u5BA1\u6279\u6D41\u7A0B"?(n(),m(_,{key:3,shadow:"never",class:"mb-16"},{default:o(()=>[l($e,{"detail-data":r.value},null,8,["detail-data"])]),_:1})):(n(),m(Ne,{key:4,"detail-data":r.value,"dictionary-list":H.value,class:"mb-16"},null,8,["detail-data","dictionary-list"])),l(_,{class:be(`relative pb-32 flowCard ${r.value.area==="\u5E02\u672C\u7EA7"&&r.value.declareAmount>=1e3&&a.value.processProgressVo.processDefName==="\u91CD\u5927\u9879\u76EE\u8054\u5BA1\u786E\u8BA4\u6D41\u7A0B"?"tab-card":""}`),shadow:"never"},{header:o(()=>[r.value.area==="\u5E02\u672C\u7EA7"&&r.value.declareAmount>=1e3&&a.value.processProgressVo.processDefName==="\u91CD\u5927\u9879\u76EE\u8054\u5BA1\u786E\u8BA4\u6D41\u7A0B"?(n(),m(ue,{key:0,modelValue:D.value,"onUpdate:modelValue":e[0]||(e[0]=v=>D.value=v),onTabChange:ne},{default:o(()=>[l(P,{label:"\u6D41\u7A0B\u8BB0\u5F55",name:"1"}),l(P,{label:"\u7701\u7EA7\u90E8\u95E8\u8054\u5BA1\u6D41\u7A0B\u8BB0\u5F55",name:"2"})]),_:1},8,["modelValue"])):(n(),b("span",Le,"\u6D41\u7A0B\u8BB0\u5F55"))]),default:o(()=>[D.value==="1"?(n(),m(xe,{key:0,"flow-data":a.value.processProgressVo.progressInfo},null,8,["flow-data"])):D.value==="2"?(n(),m(u,{key:1,"label-suffix":":"},{default:o(()=>[l(qe,{"flow-data":r.value.sjlsResult?JSON.parse(r.value.sjlsResult):[]},null,8,["flow-data"])]),_:1})):k("",!0)]),_:1},8,["class"]),I("div",Oe,[((L=a.value)==null?void 0:L.status)==="\u5BA1\u6838\u4E2D"&&N(f).name==="handleDuringExamine"?(n(),b("div",Ye,[I("div",null,[r.value.area==="\u5E02\u672C\u7EA7"&&r.value.declareAmount>=1e3&&a.value.processProgressVo.processDefName==="\u91CD\u5927\u9879\u76EE\u8054\u5BA1\u786E\u8BA4\u6D41\u7A0B"?(n(),b("p",ze,"\u6839\u636E\u8054\u5BA1\u610F\u89C1\uFF0C\u8BE5\u9879\u76EE\u7684\u5EFA\u8BBE\u65B9\u6848\u901A\u8FC7\u60C5\u51B5\u4E3A\uFF1A")):k("",!0),a.value.isHighLine&&N(T).regionCode==="330500"&&r.value.areaCode!=="330500"&&a.value.processProgressVo.processDefName==="\u5EFA\u8BBE\u65B9\u6848\u5BA1\u6279\u6D41\u7A0B"&&a.value.canPass?(n(),b("div",Je,[a.value.canPass?(n(),m(y,{key:0,type:"primary",onClick:e[1]||(e[1]=v=>R("\u901A\u8FC7","PASS"))},{default:o(()=>[p("\u610F\u89C1\u6D41\u8F6C")]),_:1})):k("",!0),l(y,{onClick:e[2]||(e[2]=v=>N(h).go(-1))},{default:o(()=>[p("\u8FD4\u56DE")]),_:1})])):(n(),b("div",Ge,[a.value.canPass?(n(),m(y,{key:0,type:"primary",onClick:e[3]||(e[3]=v=>R("\u901A\u8FC7","PASS"))},{default:o(()=>[p("\u901A\u8FC7")]),_:1})):k("",!0),a.value.canSeal?(n(),m(y,{key:1,type:"primary",onClick:le},{default:o(()=>[p("\u76D6\u7AE0\u5E76\u901A\u8FC7")]),_:1})):k("",!0),a.value.canReject?(n(),m(y,{key:2,plain:"",type:"danger",onClick:e[4]||(e[4]=v=>R("\u9A73\u56DE","REJECT"))},{default:o(()=>[p("\u9A73\u56DE ")]),_:1})):k("",!0),l(y,{onClick:e[5]||(e[5]=v=>N(h).go(-1))},{default:o(()=>[p("\u8FD4\u56DE")]),_:1}),l(y,{plain:"",type:"danger",onClick:de},{default:o(()=>[p("\u9A73\u56DE\u81F3\u5E74\u5EA6\u8BA1\u5212")]),_:1})]))])])):(n(),b("div",Ke,[l(y,{onClick:e[6]||(e[6]=v=>N(h).go(-1))},{default:o(()=>[p("\u8FD4\u56DE")]),_:1}),oe()?(n(),m(y,{key:0,plain:"",type:"primary",onClick:se},{default:o(()=>[p("\u64A4\u56DE")]),_:1})):k("",!0)]))])])),[[ce,E.value]]),l(Ve,{visible:c.visible,title:c.title,action:c.action,"task-id":c.taskId,"construction-suggestions":c.constructionSuggestions,"project-detail":c.projectDetail,"project-code":c.projectCode,onClose:ae,onReload:A},null,8,["visible","title","action","task-id","construction-suggestions","project-detail","project-code"]),l(Re,{id:S.id,visible:S.visible,onClose:e[7]||(e[7]=v=>S.visible=!1)},null,8,["id","visible"])],64)}}}),Va=pe(Qe,[["__scopeId","data-v-5d1ce5fa"]]);export{Va as default};