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 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.de29349e.js";import Te from"./flowRecord.c017fc8a.js";import $e from"./auditDialog.de0769ec.js";import qe from"./projectInfo.b98113a8.js";import Be from"./finalInfo.ef24c026.js";import Se from"./delayApplyInfo.6120ea24.js";import Re from"./wantReadInfo.a56a460b.js";import Ee from"./sjFlowRecord.55602f97.js";import Ae from"./changeInfoDialog.f16e1acb.js";import{d as He}from"./projectCollectionEnter.5fcb3342.js";import"./index.934ed79d.js";import"./index.ff0518d3.js";import"./uploadAction.93d349b6.js";import"./basicInfo.8c333f83.js";import"./indicatorTemplate.4081e5a3.js";import"./fundsInfo.832d554d.js";import"./investmentInfo.19d0cc69.js";import"./engineeringInfo.f27564f7.js";import"./safeInfo.df7668b8.js";import"./businessInfo.ed7cf118.js";import"./yearPayPlanInfo.3ef4526b.js";import"./filesInfo.b2eb7e9e.js";import"./remarkInfo.5a22c25b.js";import"./applications.79367596.js";import"./customModule.60fc9d1c.js";import"./provincialInfo.7ed89a5b.js";import"./index.c98320b1.js";import"./index.f55de596.js";import"./delayApply.ff977dbe.js";import"./projectStore.aa914bc5.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"}),et=Object.assign(Ze,{setup(tt){const B=ve(G.userStore).userInfo||{},{proxy:S}=xe(),u=ge(),C=_e(),U=w(),T=w(),s=w({processProgressVo:{progressInfo:[]}}),Q=async t=>{const e=await Ve({...u.query,taskId:t||u.query.taskId});if(e.data.status==="\u88AB\u64A4\u56DE"){C.go(-1);return}s.value={...e.data,processProgressVo:{...e.data.processProgressVo,progressInfo:X(e.data.processProgressVo.progressInfo)}},U.value=Z(s.value.processProgressVo.progressInfo),T.value=ee(s.value.processProgressVo.progressInfo)},X=t=>(t.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]}),t),Z=t=>{var i,d;const e=t.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=t=>{var i,d;const e=t.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(t,e)=>{p.visible=!0,p.title=t,p.taskId=u.query.taskId,p.action=e,p.constructionSuggestions=s.value.constructionSuggestions,p.projectCode=o.value.projectCode,p.projectDetail=o.value},te=()=>{p.visible=!1},se=()=>{S.$messageBox.confirm("\u662F\u5426\u64A4\u56DE\u8BE5\u610F\u89C1?","\u63D0\u793A\uFF01",{type:"warning"}).then(async()=>{const t=await je({instanceId:u.query.instanceId,projectId:u.query.projectId,projectCode:o.value.projectCode,action:"WITHDRAW",taskId:u.query.taskId});t.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"),t.data&&C.push({query:{...u.query,taskId:t.data}}),await we(),$(t.data))})},ae=()=>{var e,i,d,a,c,j;let t=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(t==="root"){const g=(c=(a=s.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);t=(D==null?void 0:D.length)&&D[0].taskId||"root"}}return t},oe=()=>!(s.value.processProgressVo.processDefName==="\u90E8\u95E8\u8054\u5408\u5BA1\u6279\u6D41\u7A0B"&&ae()==="root")&&s.value.canWithdraw,o=w({}),re=async()=>{var e,i;const t=await Ne(u.query.projectId);o.value=t.data,o.value.baseHistorProjs=((i=(e=t.data)==null?void 0:e.baseHistorProjId)==null?void 0:i.split("\uFF1B").map((d,a)=>{var c,j;return{baseProjId:d,baseProjName:(c=t.data)==null?void 0:c.baseHistorProjName.split("\uFF1B")[a],baseProjSetYear:(j=t.data)==null?void 0:j.baseHistorProjYear.split("\uFF1B")[a]}}))||[]},$=t=>{re(),Q(t),A.value=!1},le=()=>{var t,e;C.push({name:"stamp",query:{projectId:u.query.projectId,instanceId:u.query.instanceId,taskId:u.query.taskId,fileId:o.value.pretrialFileId,instName:(e=(t=s.value)==null?void 0:t.processProgressVo)==null?void 0:e.processDefName,projectCode:o.value.projectCode}})},A=w(!0),P=w("1"),ne=t=>{P.value=t},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(t,e,i)=>{if(t==="confirm"){e.confirmButtonLoading=!0,e.confirmButtonText="\u6B63\u5728\u5904\u7406...";try{await ue()}catch{e.confirmButtonLoading=!1}e.confirmButtonLoading=!1,i()}else i()}}).then(t=>{t==="confirm"&&(Pe.success("\u9A73\u56DE\u6210\u529F\uFF01"),$())})}async function ue(){const t={instanceId:u.query.instanceId,projectId:u.query.projectId,projectCode:o.value.projectCode,taskId:u.query.taskId,action:"REJECT"};await he(t)}return(t,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(s.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=s.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=s.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(s.value.processProgressVo.startTime),1)]),_:1})]),_:1})]),_:1})]),_:1})])]),n(j,{name:`${((v=s.value)==null?void 0:v.status)==="\u5BA1\u6838\u4E2D"?"underReview":((J=s.value)==null?void 0:J.status)==="\u5BA1\u6838\u901A\u8FC7"?"beApproved":((O=s.value)==null?void 0:O.status)==="\u88AB\u9A73\u56DE"?"beRejected":((Y=s.value)==null?void 0:Y.status)==="\u88AB\u64A4\u56DE"?"beWithdraw":((z=s.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}),s.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)&&s.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)&&s.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)&&s.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&&s.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&&s.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":s.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=s.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&&s.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),s.value.isHighLine&&N(B).regionCode==="330500"&&o.value.areaCode!=="330500"&&s.value.processProgressVo.processDefName==="\u5EFA\u8BBE\u65B9\u6848\u5BA1\u6279\u6D41\u7A0B"&&s.value.canPass?(l(),k("div",Ue,[s.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,[s.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),s.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),s.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?(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:se},{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:te,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)}}}),$t=fe(et,[["__scopeId","data-v-53e5d13c"]]);export{$t as default};