|
- import{_ as ce,d as pe,G as fe,D as G,z as me,A as ve,r as w,b as K,o as _e,c as g,a4 as ge,e as n,f as b,w as ye,h as l,i as o,g as y,t as x,j as f,I as m,k,n as Ie,u as N,F as be,ae as ke,N as he,x as Ce,a3 as we,aC as Pe}from"./index.0660698f.js";import De from"./flowRecord.6a57f9bf.js";import je from"./auditDialog.a99655cf.js";import Ve from"./projectInfo.5f25c804.js";import xe from"./finalInfo.74cc8abe.js";import Ne from"./delayApplyInfo.090ba325.js";import $e from"./wantReadInfo.5d7c428b.js";import Se from"./sjFlowRecord.61603d69.js";import Te from"./changeInfoDialog.1d801325.js";import{d as qe}from"./projectCollectionEnter.d0a48cd1.js";import"./index.3ec0b116.js";import"./index.cc60bba1.js";import"./uploadAction.73f0a357.js";import"./basicInfo.ffa191b9.js";import"./indicatorTemplate.b4920278.js";import"./fundsInfo.287eeff7.js";import"./investmentInfo.f619a89c.js";import"./engineeringInfo.a81b7f34.js";import"./safeInfo.e4272ee4.js";import"./businessInfo.2d425664.js";import"./yearPayPlanInfo.aecdd270.js";import"./filesInfo.7e592523.js";import"./remarkInfo.ea34fcae.js";import"./applications.2fa6120c.js";import"./customModule.b32f1bfc.js";import"./provincialInfo.b0bee28d.js";import"./index.1784fdea.js";import"./index.f55de596.js";import"./delayApply.a5ea197b.js";import"./projectStore.df1fbf49.js";const Re={class:"footerPage"},Ae={class:"card-header relative"},Be={class:"flex justify-between"},Ee={class:"flex-1"},He={class:"font-bold"},Fe={class:"mt-8 search"},Me={key:1},We={class:"footer"},Le={key:0,class:"flex justify-between absolute bottom-0 botBtn"},Oe={key:0,class:"text-12 font-bold"},ze={key:1,class:"flex items-center"},Je={key:2,class:"flex items-center"},Ye={key:1,class:"flex justify-center absolute bottom-0 botBtn"},Ge=pe({name:"handleDuringExamine"}),Ke=Object.assign(Ge,{setup(Ue){const T=fe(G.userStore).userInfo||{},{proxy:q}=Ce(),c=me(),h=ve(),U=w(),$=w(),s=w({processProgressVo:{progressInfo:[]}}),Q=async a=>{const e=await we({...c.query,taskId:a||c.query.taskId});if(e.data.status==="\u88AB\u64A4\u56DE"){h.go(-1);return}s.value={...e.data,processProgressVo:{...e.data.processProgressVo,progressInfo:X(e.data.processProgressVo.progressInfo)}},U.value=Z(s.value.processProgressVo.progressInfo),$.value=ee(s.value.processProgressVo.progressInfo)},X=a=>(a.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]}),a),Z=a=>{var d,i;const e=a.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=a=>{var d,i;const e=a.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]},p=K({visible:!1,title:void 0,taskId:void 0,action:void 0}),R=async(a,e)=>{p.visible=!0,p.title=a,p.taskId=c.query.taskId,p.action=e,p.constructionSuggestions=s.value.constructionSuggestions,p.projectCode=r.value.projectCode},se=()=>{p.visible=!1},ae=()=>{q.$messageBox.confirm("\u662F\u5426\u64A4\u56DE\u8BE5\u610F\u89C1?","\u63D0\u793A\uFF01",{type:"warning"}).then(async()=>{const a=await ke({instanceId:c.query.instanceId,projectId:c.query.projectId,projectCode:r.value.projectCode,action:"WITHDRAW",taskId:c.query.taskId});a.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"),a.data&&h.push({query:{...c.query,taskId:a.data}}),await he(),A(a.data))})},te=()=>{var e,d,i,t,u,C;let a=$.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(a==="root"){const _=(u=(t=s.value.processProgressVo.progressInfo)==null?void 0:t[1])==null?void 0:u.children;if(((C=_[0])==null?void 0:C.approvalMode)==="AND"){const P=_[0].list.filter(j=>j.result&&j.userId===T.value.employeeCode);a=(P==null?void 0:P.length)&&P[0].taskId||"root"}}return a},oe=()=>!(s.value.processProgressVo.processDefName==="\u90E8\u95E8\u8054\u5408\u5BA1\u6279\u6D41\u7A0B"&&te()==="root")&&s.value.canWithdraw,r=w({}),re=async()=>{var e,d;const a=await Pe(c.query.projectId);r.value=a.data,r.value.baseHistorProjs=((d=(e=a.data)==null?void 0:e.baseHistorProjId)==null?void 0:d.split("\uFF1B").map((i,t)=>{var u,C;return{baseProjId:i,baseProjName:(u=a.data)==null?void 0:u.baseHistorProjName.split("\uFF1B")[t],baseProjSetYear:(C=a.data)==null?void 0:C.baseHistorProjYear.split("\uFF1B")[t]}}))||[]},A=a=>{re(),Q(a),E.value=!1},le=()=>{var a,e;h.push({name:"stamp",query:{projectId:c.query.projectId,instanceId:c.query.instanceId,taskId:c.query.taskId,fileId:r.value.pretrialFileId,instName:(e=(a=s.value)==null?void 0:a.processProgressVo)==null?void 0:e.processDefName,projectCode:r.value.projectCode}})},E=w(!0),D=w("1"),ne=a=>{D.value=a},S=K({visible:!1,id:c.query.projectId}),ie=()=>{S.visible=!0},H=w([]);return _e(async()=>{A(),H.value=(await qe()).data,await G.countStore.setCountStore()}),(a,e)=>{var F,M,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"),P=g("el-alert"),j=g("el-tab-pane"),de=g("el-tabs"),I=g("el-button"),ue=ge("loading");return n(),b(be,null,[ye((n(),b("div",Re,[l(_,{class:"mb-16",shadow:"never"},{default:o(()=>{var v,O,z,J,Y;return[y("div",Ae,[y("div",Be,[y("div",Ee,[y("p",He,x(r.value.projectName)+"\u7684"+x(s.value.processProgressVo.processDefName),1),y("div",Fe,[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 V;return[f(x((V=s.value.processProgressVo.progressInfo.find(B=>B.nodeId==="root"))==null?void 0:V.user.userName),1)]}),_:1})]),_:1}),l(i,{span:8},{default:o(()=>[l(d,{label:"\u4E3B\u7BA1\u5355\u4F4D"},{default:o(()=>{var V;return[f(x((V=s.value.processProgressVo.progressInfo.find(B=>B.nodeId==="root"))==null?void 0:V.user.orgName),1)]}),_:1})]),_:1}),l(i,{span:8},{default:o(()=>[l(d,{label:"\u53D1\u8D77\u65F6\u95F4"},{default:o(()=>[f(x(s.value.processProgressVo.startTime),1)]),_:1})]),_:1})]),_:1})]),_:1})])]),l(C,{name:`${((v=s.value)==null?void 0:v.status)==="\u5BA1\u6838\u4E2D"?"underReview":((O=s.value)==null?void 0:O.status)==="\u5BA1\u6838\u901A\u8FC7"?"beApproved":((z=s.value)==null?void 0:z.status)==="\u88AB\u9A73\u56DE"?"beRejected":((J=s.value)==null?void 0:J.status)==="\u88AB\u64A4\u56DE"?"beWithdraw":((Y=s.value)==null?void 0:Y.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}),s.value.isChange?(n(),m(P,{key:0,type:"info","show-icon":"",style:{"margin-bottom":"16px"},closable:!1},{title:o(()=>[y("p",null,[f("\u6E29\u99A8\u63D0\u793A\uFF1A\u8BE5\u6D41\u7A0B\u4E3A\u590D\u5BA1\u6D41\u7A0B\uFF0C"),y("a",{onClick:ie},"\u70B9\u51FB\u67E5\u770B"),f(" \u8BE5\u9879\u76EE\u8C03\u6574\u7684\u4FE1\u606F\u4EE5\u53CA\u5BA1\u6838\u610F\u89C1")])]),_:1})):k("",!0),((F=r.value)==null?void 0:F.id)&&s.value.processProgressVo.processDefName==="\u7533\u8BF7\u5EF6\u671F\u5BA1\u6279\u6D41\u7A0B"?(n(),m(_,{key:1,class:"mb-16"},{default:o(()=>[l(Ne,{"detail-data":r.value},null,8,["detail-data"])]),_:1})):((M=r.value)==null?void 0:M.id)&&s.value.processProgressVo.processDefName==="\u7533\u8BF7\u501F\u9605\u5BA1\u6279\u6D41\u7A0B"?(n(),m(_,{key:2,class:"mb-16"},{default:o(()=>[l($e,{"detail-data":r.value},null,8,["detail-data"])]),_:1})):((W=r.value)==null?void 0:W.id)&&s.value.processProgressVo.processDefName==="\u9A8C\u6536\u7533\u62A5\u5BA1\u6279\u6D41\u7A0B"?(n(),m(_,{key:3,shadow:"never",class:"mb-16"},{default:o(()=>[l(xe,{"detail-data":r.value},null,8,["detail-data"])]),_:1})):(n(),m(Ve,{key:4,"detail-data":r.value,"dictionary-list":H.value,class:"mb-16"},null,8,["detail-data","dictionary-list"])),l(_,{class:Ie(`relative pb-32 flowCard ${r.value.area==="\u5E02\u672C\u7EA7"&&r.value.declareAmount>=1e3&&s.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&&s.value.processProgressVo.processDefName==="\u91CD\u5927\u9879\u76EE\u8054\u5BA1\u786E\u8BA4\u6D41\u7A0B"?(n(),m(de,{key:0,modelValue:D.value,"onUpdate:modelValue":e[0]||(e[0]=v=>D.value=v),onTabChange:ne},{default:o(()=>[l(j,{label:"\u6D41\u7A0B\u8BB0\u5F55",name:"1"}),l(j,{label:"\u7701\u7EA7\u90E8\u95E8\u8054\u5BA1\u6D41\u7A0B\u8BB0\u5F55",name:"2"})]),_:1},8,["modelValue"])):(n(),b("span",Me,"\u6D41\u7A0B\u8BB0\u5F55"))]),default:o(()=>[D.value==="1"?(n(),m(De,{key:0,"flow-data":s.value.processProgressVo.progressInfo},null,8,["flow-data"])):D.value==="2"?(n(),m(u,{key:1,"label-suffix":":"},{default:o(()=>[l(Se,{"flow-data":r.value.sjlsResult?JSON.parse(r.value.sjlsResult):[]},null,8,["flow-data"])]),_:1})):k("",!0)]),_:1},8,["class"]),y("div",We,[((L=s.value)==null?void 0:L.status)==="\u5BA1\u6838\u4E2D"&&N(c).name==="handleDuringExamine"?(n(),b("div",Le,[y("div",null,[r.value.area==="\u5E02\u672C\u7EA7"&&r.value.declareAmount>=1e3&&s.value.processProgressVo.processDefName==="\u91CD\u5927\u9879\u76EE\u8054\u5BA1\u786E\u8BA4\u6D41\u7A0B"?(n(),b("p",Oe,"\u6839\u636E\u8054\u5BA1\u610F\u89C1\uFF0C\u8BE5\u9879\u76EE\u7684\u5EFA\u8BBE\u65B9\u6848\u901A\u8FC7\u60C5\u51B5\u4E3A\uFF1A")):k("",!0),s.value.isHighLine&&N(T).regionCode==="330500"&&r.value.areaCode!=="330500"&&s.value.processProgressVo.processDefName==="\u5EFA\u8BBE\u65B9\u6848\u5BA1\u6279\u6D41\u7A0B"&&s.value.canPass?(n(),b("div",ze,[s.value.canPass?(n(),m(I,{key:0,type:"primary",onClick:e[1]||(e[1]=v=>R("\u901A\u8FC7","PASS"))},{default:o(()=>[f("\u610F\u89C1\u6D41\u8F6C")]),_:1})):k("",!0),l(I,{onClick:e[2]||(e[2]=v=>N(h).go(-1))},{default:o(()=>[f("\u8FD4\u56DE")]),_:1})])):(n(),b("div",Je,[s.value.canPass?(n(),m(I,{key:0,type:"primary",onClick:e[3]||(e[3]=v=>R("\u901A\u8FC7","PASS"))},{default:o(()=>[f("\u901A\u8FC7")]),_:1})):k("",!0),s.value.canSeal?(n(),m(I,{key:1,type:"primary",onClick:le},{default:o(()=>[f("\u76D6\u7AE0\u5E76\u901A\u8FC7")]),_:1})):k("",!0),s.value.canReject?(n(),m(I,{key:2,plain:"",type:"danger",onClick:e[4]||(e[4]=v=>R("\u9A73\u56DE","REJECT"))},{default:o(()=>[f("\u9A73\u56DE ")]),_:1})):k("",!0),l(I,{onClick:e[5]||(e[5]=v=>N(h).go(-1))},{default:o(()=>[f("\u8FD4\u56DE")]),_:1})]))])])):(n(),b("div",Ye,[l(I,{onClick:e[6]||(e[6]=v=>N(h).go(-1))},{default:o(()=>[f("\u8FD4\u56DE")]),_:1}),oe()?(n(),m(I,{key:0,plain:"",type:"primary",onClick:ae},{default:o(()=>[f("\u64A4\u56DE")]),_:1})):k("",!0)]))])])),[[ue,E.value]]),l(je,{visible:p.visible,title:p.title,action:p.action,"task-id":p.taskId,"construction-suggestions":p.constructionSuggestions,"project-code":p.projectCode,onClose:se,onReload:A},null,8,["visible","title","action","task-id","construction-suggestions","project-code"]),l(Te,{id:S.id,visible:S.visible,onClose:e[7]||(e[7]=v=>S.visible=!1)},null,8,["id","visible"])],64)}}}),js=ce(Ke,[["__scopeId","data-v-a7db8744"]]);export{js as default};
|