您最多选择25个主题 主题必须以字母或数字开头,可以包含连字符 (-),并且长度不得超过35个字符

index.a15558f0.js 12KB

1
  1. import{_ as fe,d as me,G as ve,D as G,z as _e,A as ge,r as j,b as K,o as ye,c as g,a4 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,I as m,k as b,n as ke,u as N,F as he,ae as Ce,N as je,a1 as we,E as De,aD as Pe,x as xe,a3 as Ve,aE as Ne}from"./index.ce13ff81.js";import Te from"./flowRecord.5d5e3aa0.js";import $e from"./auditDialog.d875ec21.js";import qe from"./projectInfo.5a24d139.js";import Be from"./finalInfo.8caaec78.js";import Se from"./delayApplyInfo.28463a34.js";import Re from"./wantReadInfo.8a8b3c57.js";import Ee from"./sjFlowRecord.a26768ab.js";import Ae from"./changeInfoDialog.7e67e9a7.js";import{d as He}from"./projectCollectionEnter.5d236751.js";import"./index.ffa50a44.js";import"./index.f6955892.js";import"./uploadAction.f62a56f0.js";import"./basicInfo.acfa132d.js";import"./indicatorTemplate.b9bfb258.js";import"./fundsInfo.49c94b80.js";import"./investmentInfo.84ae7883.js";import"./engineeringInfo.b633ba65.js";import"./safeInfo.1f7d9de2.js";import"./businessInfo.4254518b.js";import"./yearPayPlanInfo.bb882e17.js";import"./filesInfo.a8c32a2d.js";import"./remarkInfo.65ec9425.js";import"./applications.2309a34f.js";import"./customModule.61ea2ca9.js";import"./provincialInfo.61fd01e1.js";import"./index.95212f4a.js";import"./index.f55de596.js";import"./delayApply.75cd68b4.js";import"./projectStore.1d256069.js";const Me={class:"footerPage"},Le={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"}),ea=Object.assign(Ze,{setup(aa){const B=ve(G.userStore).userInfo||{},{proxy:S}=xe(),u=_e(),h=ge(),U=j(),T=j(),t=j({processProgressVo:{progressInfo:[]}}),Q=async a=>{const e=await Ve({...u.query,taskId:a||u.query.taskId});if(e.data.status==="\u88AB\u64A4\u56DE"){h.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=a=>(a.forEach(e=>{if(e.children){const i=[],d=[];e.children.forEach(s=>{i.includes(s.nodeId)?(d.find(c=>c.nodeId===s.nodeId).list.push(s),d.find(c=>c.nodeId===s.nodeId).userIds.push(s.userId)):(i.push(s.nodeId),d.push({nodeId:s.nodeId,approvalMode:s.approvalMode,name:s.name,nodeType:s.nodeType,list:[{...s}],userIds:[s.userId]}))}),e.children=d}else e.userIds=[e.userId]}),a),Z=a=>{var i,d;const e=a.map(s=>({...s,children:s.children?s.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=a=>{var i,d;const e=a.map(s=>({...s,children:s.children?s.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(a,e)=>{p.visible=!0,p.title=a,p.taskId=u.query.taskId,p.action=e,p.constructionSuggestions=t.value.constructionSuggestions,p.projectCode=o.value.projectCode,p.projectDetail=o.value},ae=()=>{p.visible=!1},te=()=>{S.$messageBox.confirm("\u662F\u5426\u64A4\u56DE\u8BE5\u610F\u89C1?","\u63D0\u793A\uFF01",{type:"warning"}).then(async()=>{const a=await Ce({instanceId:u.query.instanceId,projectId:u.query.projectId,projectCode:o.value.projectCode,action:"WITHDRAW",taskId:u.query.taskId});a.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"),h.push({name:"waitMeToHandle"})):(S.$message.success("\u64A4\u56DE\u6210\u529F\uFF01"),a.data&&h.push({query:{...u.query,taskId:a.data}}),await je(),$(a.data))})},se=()=>{var e,i,d,s,c,C;let a=T.value&&((d=(i=(e=T.value)==null?void 0:e.list)==null?void 0:i.find(_=>_.userId===B.value.employeeCode))==null?void 0:d.taskId)||T.value.taskId;if(a==="root"){const _=(c=(s=t.value.processProgressVo.progressInfo)==null?void 0:s[1])==null?void 0:c.children;if(((C=_[0])==null?void 0:C.approvalMode)==="AND"){const w=_[0].list.filter(P=>P.result&&P.userId===B.value.employeeCode);a=(w==null?void 0:w.length)&&w[0].taskId||"root"}}return a},oe=()=>!(t.value.processProgressVo.processDefName==="\u90E8\u95E8\u8054\u5408\u5BA1\u6279\u6D41\u7A0B"&&se()==="root")&&t.value.canWithdraw,o=j({}),re=async()=>{var e,i;const a=await Ne(u.query.projectId);o.value=a.data,o.value.baseHistorProjs=((i=(e=a.data)==null?void 0:e.baseHistorProjId)==null?void 0:i.split("\uFF1B").map((d,s)=>{var c,C;return{baseProjId:d,baseProjName:(c=a.data)==null?void 0:c.baseHistorProjName.split("\uFF1B")[s],baseProjSetYear:(C=a.data)==null?void 0:C.baseHistorProjYear.split("\uFF1B")[s]}}))||[]},$=a=>{re(),Q(a),A.value=!1},le=()=>{var a,e;h.push({name:"stamp",query:{projectId:u.query.projectId,instanceId:u.query.instanceId,taskId:u.query.taskId,fileId:o.value.pretrialFileId,instName:(e=(a=t.value)==null?void 0:a.processProgressVo)==null?void 0:e.processDefName,projectCode:o.value.projectCode}})},A=j(!0),D=j("1"),ne=a=>{D.value=a},q=K({visible:!1,id:u.query.projectId}),ie=()=>{q.visible=!0},H=j([]);ye(async()=>{$(),H.value=(await He()).data,await G.countStore.setCountStore()});function de(){we({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(a,e,i)=>{if(a==="confirm"){e.confirmButtonLoading=!0,e.confirmButtonText="\u6B63\u5728\u5904\u7406...";try{await ue()}catch{e.confirmButtonLoading=!1}e.confirmButtonLoading=!1,i()}else i()}}).then(a=>{a==="confirm"&&(De.success("\u9A73\u56DE\u6210\u529F\uFF01"),$())})}async function ue(){const a={instanceId:u.query.instanceId,projectId:u.query.projectId,projectCode:o.value.projectCode,taskId:u.query.taskId,action:"REJECT"};await Pe(a)}return(a,e)=>{var M,L,F,W;const i=g("el-form-item"),d=g("el-col"),s=g("el-row"),c=g("el-form"),C=g("svg-icon"),_=g("el-card"),w=g("el-alert"),P=g("el-tab-pane"),ce=g("el-tabs"),y=g("el-button"),pe=Ie("loading");return l(),k(he,null,[be((l(),k("div",Me,[n(_,{class:"mb-16",shadow:"never"},{default:r(()=>{var v,J,O,Y,z;return[I("div",Le,[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(s,{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(C,{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(w,{key:0,type:"info","show-icon":"",style:{"margin-bottom":"16px"},closable:!1},{title:r(()=>[I("p",null,[f("\u6E29\u99A8\u63D0\u793A\uFF1A\u8BE5\u6D41\u7A0B\u4E3A\u590D\u5BA1\u6D41\u7A0B\uFF0C"),I("a",{onClick:ie},"\u70B9\u51FB\u67E5\u770B"),f(" \u8BE5\u9879\u76EE\u8C03\u6574\u7684\u4FE1\u606F\u4EE5\u53CA\u5BA1\u6838\u610F\u89C1")])]),_:1})):b("",!0),((M=o.value)==null?void 0:M.id)&&t.value.processProgressVo.processDefName==="\u7533\u8BF7\u5EF6\u671F\u5BA1\u6279\u6D41\u7A0B"?(l(),m(_,{key:1,class:"mb-16"},{default:r(()=>[n(Se,{"detail-data":o.value},null,8,["detail-data"])]),_:1})):((L=o.value)==null?void 0:L.id)&&t.value.processProgressVo.processDefName==="\u7533\u8BF7\u501F\u9605\u5BA1\u6279\u6D41\u7A0B"?(l(),m(_,{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(_,{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(_,{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:D.value,"onUpdate:modelValue":e[0]||(e[0]=v=>D.value=v),onTabChange:ne},{default:r(()=>[n(P,{label:"\u6D41\u7A0B\u8BB0\u5F55",name:"1"}),n(P,{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(()=>[D.value==="1"?(l(),m(Te,{key:0,"flow-data":t.value.processProgressVo.progressInfo,detail:o.value},null,8,["flow-data","detail"])):D.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(()=>[f("\u610F\u89C1\u6D41\u8F6C")]),_:1})):b("",!0),n(y,{onClick:e[2]||(e[2]=v=>N(h).go(-1))},{default:r(()=>[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(()=>[f("\u901A\u8FC7")]),_:1})):b("",!0),t.value.canSeal?(l(),m(y,{key:1,type:"primary",onClick:le},{default:r(()=>[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(()=>[f("\u9A73\u56DE ")]),_:1})):b("",!0),n(y,{onClick:e[5]||(e[5]=v=>N(h).go(-1))},{default:r(()=>[f("\u8FD4\u56DE")]),_:1}),o.value.status===10012?(l(),m(y,{key:3,plain:"",type:"danger",onClick:de},{default:r(()=>[f("\u9A73\u56DE\u81F3\u5E74\u5EA6\u8BA1\u5212")]),_:1})):b("",!0)]))])])):(l(),k("div",Xe,[n(y,{onClick:e[6]||(e[6]=v=>N(h).go(-1))},{default:r(()=>[f("\u8FD4\u56DE")]),_:1}),oe()?(l(),m(y,{key:0,plain:"",type:"primary",onClick:te},{default:r(()=>[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:ae,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)}}}),$a=fe(ea,[["__scopeId","data-v-53e5d13c"]]);export{$a as default};