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
11KB

  1. 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 De}from"./index.2e17f00f.js";import je from"./flowRecord.d35f3390.js";import Pe from"./auditDialog.7c16e0cd.js";import Ve from"./projectInfo.81f752a8.js";import xe from"./finalInfo.16ee5999.js";import Ne from"./delayApplyInfo.c2e811a8.js";import $e from"./wantReadInfo.31d96527.js";import Se from"./sjFlowRecord.1384ecd5.js";import Te from"./changeInfoDialog.31747012.js";import{d as qe}from"./projectCollectionEnter.2fc28dd5.js";import"./index.d2f9af39.js";import"./index.cc0c5aa0.js";import"./uploadAction.858841be.js";import"./basicInfo.b709781b.js";import"./indicatorTemplate.0d3b9c94.js";import"./fundsInfo.bd80d7ee.js";import"./investmentInfo.81de611c.js";import"./engineeringInfo.41938c34.js";import"./safeInfo.93d72f35.js";import"./businessInfo.b0787db9.js";import"./yearPayPlanInfo.78575840.js";import"./filesInfo.8c4283be.js";import"./remarkInfo.621b028e.js";import"./applications.f66df1ee.js";import"./customModule.313620ec.js";import"./provincialInfo.4fba8332.js";import"./index.ffe64b0a.js";import"./index.f55de596.js";import"./delayApply.0e75d120.js";import"./projectStore.f15d85bd.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(),p=me(),h=ve(),U=w(),$=w(),s=w({processProgressVo:{progressInfo:[]}}),Q=async a=>{const e=await we({...p.query,taskId:a||p.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]},c=K({visible:!1,title:void 0,taskId:void 0,action:void 0,projectDetail:void 0}),R=async(a,e)=>{c.visible=!0,c.title=a,c.taskId=p.query.taskId,c.action=e,c.constructionSuggestions=s.value.constructionSuggestions,c.projectCode=r.value.projectCode,c.projectDetail=r.value},se=()=>{c.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:p.query.instanceId,projectId:p.query.projectId,projectCode:r.value.projectCode,action:"WITHDRAW",taskId:p.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:{...p.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 D=_[0].list.filter(P=>P.result&&P.userId===T.value.employeeCode);a=(D==null?void 0:D.length)&&D[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 De(p.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:p.query.projectId,instanceId:p.query.instanceId,taskId:p.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),j=w("1"),ne=a=>{j.value=a},S=K({visible:!1,id:p.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"),D=g("el-alert"),P=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(D,{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:j.value,"onUpdate:modelValue":e[0]||(e[0]=v=>j.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",Me,"\u6D41\u7A0B\u8BB0\u5F55"))]),default:o(()=>[j.value==="1"?(n(),m(je,{key:0,"flow-data":s.value.processProgressVo.progressInfo},null,8,["flow-data"])):j.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(p).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(Pe,{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:se,onReload:A},null,8,["visible","title","action","task-id","construction-suggestions","project-detail","project-code"]),l(Te,{id:S.id,visible:S.visible,onClose:e[7]||(e[7]=v=>S.visible=!1)},null,8,["id","visible"])],64)}}}),Ps=ce(Ke,[["__scopeId","data-v-f13f8b32"]]);export{Ps as default};