Ви не можете вибрати більше 25 тем Теми мають розпочинатися з літери або цифри, можуть містити дефіси (-) і не повинні перевищувати 35 символів.

2 рядки
12KB

  1. import{_ as ce,d as pe,G as fe,D as G,z as me,A as ve,r as D,b as K,o as _e,c as g,a4 as ge,e as n,f as k,w as ye,h as l,i as r,g as y,t as x,j as f,I as m,k as I,n as Ie,u as N,F as be,ae as ke,N as he,x as Ce,a3 as De,aD as we}from"./index.5bb861d3.js";import je from"./flowRecord.886593f4.js";import Pe from"./auditDialog.243f9fbd.js";import Ve from"./projectInfo.a7d81edc.js";import xe from"./finalInfo.4569e948.js";import Ne from"./delayApplyInfo.19b7e95c.js";import $e from"./wantReadInfo.9d9020d4.js";import Se from"./sjFlowRecord.381212e1.js";import Te from"./changeInfoDialog.da03c0b8.js";import{d as qe}from"./projectCollectionEnter.fafd4e13.js";import"./index.3f9c5e64.js";import"./index.dea5e324.js";import"./uploadAction.60610a95.js";import"./basicInfo.4d229b43.js";import"./indicatorTemplate.dbd53ead.js";import"./fundsInfo.ca58f8ea.js";import"./investmentInfo.d0fea839.js";import"./engineeringInfo.032aee3f.js";import"./safeInfo.f9ac8cf7.js";import"./businessInfo.c0210e94.js";import"./yearPayPlanInfo.8d732ec3.js";import"./filesInfo.b2b72233.js";import"./remarkInfo.264db5b8.js";import"./applications.7ba83997.js";import"./customModule.fa075496.js";import"./provincialInfo.a881a0f5.js";import"./index.5b85d91e.js";import"./index.f55de596.js";import"./delayApply.e48dbbca.js";import"./projectStore.b7c79eaf.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=D(),$=D(),a=D({processProgressVo:{progressInfo:[]}}),Q=async s=>{const e=await De({...p.query,taskId:s||p.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=p.query.taskId,c.action=e,c.constructionSuggestions=a.value.constructionSuggestions,c.projectCode=o.value.projectCode,c.projectDetail=o.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 ke({instanceId:p.query.instanceId,projectId:p.query.projectId,projectCode:o.value.projectCode,action:"WITHDRAW",taskId:p.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:{...p.query,taskId:s.data}}),await he(),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,o=D({}),re=async()=>{var e,d;const s=await we(p.query.projectId);o.value=s.data,o.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:p.query.projectId,instanceId:p.query.instanceId,taskId:p.query.taskId,fileId:o.value.pretrialFileId,instName:(e=(s=a.value)==null?void 0:s.processProgressVo)==null?void 0:e.processDefName,projectCode:o.value.projectCode}})},E=D(!0),j=D("1"),ne=s=>{j.value=s},S=K({visible:!1,id:p.query.projectId}),ie=()=>{S.visible=!0},H=D([]);return _e(async()=>{A(),H.value=(await qe()).data,await G.countStore.setCountStore()}),(s,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"),w=g("el-alert"),P=g("el-tab-pane"),de=g("el-tabs"),b=g("el-button"),ue=ge("loading");return n(),k(be,null,[ye((n(),k("div",Re,[l(_,{class:"mb-16",shadow:"never"},{default:r(()=>{var v,O,z,J,Y;return[y("div",Ae,[y("div",Be,[y("div",Ee,[y("p",He,x(o.value.projectName)+"\u7684"+x(a.value.processProgressVo.processDefName),1),y("div",Fe,[l(u,{"label-suffix":":"},{default:r(()=>[l(t,{gutter:24},{default:r(()=>[l(i,{span:8},{default:r(()=>[l(d,{label:"\u53D1\u8D77\u4EBA"},{default:r(()=>{var V;return[f(x((V=a.value.processProgressVo.progressInfo.find(B=>B.nodeId==="root"))==null?void 0:V.user.userName),1)]}),_:1})]),_:1}),l(i,{span:8},{default:r(()=>[l(d,{label:"\u4E3B\u7BA1\u5355\u4F4D"},{default:r(()=>{var V;return[f(x((V=a.value.processProgressVo.progressInfo.find(B=>B.nodeId==="root"))==null?void 0:V.user.orgName),1)]}),_:1})]),_:1}),l(i,{span:8},{default:r(()=>[l(d,{label:"\u53D1\u8D77\u65F6\u95F4"},{default:r(()=>[f(x(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":((z=a.value)==null?void 0:z.status)==="\u88AB\u9A73\u56DE"?"beRejected":((J=a.value)==null?void 0:J.status)==="\u88AB\u64A4\u56DE"?"beWithdraw":((Y=a.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}),a.value.isChange?(n(),m(w,{key:0,type:"info","show-icon":"",style:{"margin-bottom":"16px"},closable:!1},{title:r(()=>[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})):I("",!0),((F=o.value)==null?void 0:F.id)&&a.value.processProgressVo.processDefName==="\u7533\u8BF7\u5EF6\u671F\u5BA1\u6279\u6D41\u7A0B"?(n(),m(_,{key:1,class:"mb-16"},{default:r(()=>[l(Ne,{"detail-data":o.value},null,8,["detail-data"])]),_:1})):((M=o.value)==null?void 0:M.id)&&a.value.processProgressVo.processDefName==="\u7533\u8BF7\u501F\u9605\u5BA1\u6279\u6D41\u7A0B"?(n(),m(_,{key:2,class:"mb-16"},{default:r(()=>[l($e,{"detail-data":o.value},null,8,["detail-data"])]),_:1})):((W=o.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:r(()=>[l(xe,{"detail-data":o.value},null,8,["detail-data"])]),_:1})):(n(),m(Ve,{key:4,"detail-data":o.value,"dictionary-list":H.value,class:"mb-16"},null,8,["detail-data","dictionary-list"])),l(_,{class:Ie(`relative pb-32 flowCard ${o.value.area==="\u5E02\u672C\u7EA7"&&o.value.declareAmount>=1e3&&a.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&&a.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:r(()=>[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(),k("span",Me,"\u6D41\u7A0B\u8BB0\u5F55"))]),default:r(()=>[j.value==="1"?(n(),m(je,{key:0,"flow-data":a.value.processProgressVo.progressInfo,detail:o.value},null,8,["flow-data","detail"])):j.value==="2"?(n(),m(u,{key:1,"label-suffix":":"},{default:r(()=>[l(Se,{"flow-data":o.value.sjlsResult?JSON.parse(o.value.sjlsResult):[]},null,8,["flow-data"])]),_:1})):I("",!0)]),_:1},8,["class"]),y("div",We,[((L=a.value)==null?void 0:L.status)==="\u5BA1\u6838\u4E2D"&&N(p).name==="handleDuringExamine"?(n(),k("div",Le,[y("div",null,[o.value.area==="\u5E02\u672C\u7EA7"&&o.value.declareAmount>=1e3&&a.value.processProgressVo.processDefName==="\u91CD\u5927\u9879\u76EE\u8054\u5BA1\u786E\u8BA4\u6D41\u7A0B"?(n(),k("p",Oe,"\u6839\u636E\u8054\u5BA1\u610F\u89C1\uFF0C\u8BE5\u9879\u76EE\u7684\u5EFA\u8BBE\u65B9\u6848\u901A\u8FC7\u60C5\u51B5\u4E3A\uFF1A")):I("",!0),a.value.isHighLine&&N(T).regionCode==="330500"&&o.value.areaCode!=="330500"&&a.value.processProgressVo.processDefName==="\u5EFA\u8BBE\u65B9\u6848\u5BA1\u6279\u6D41\u7A0B"&&a.value.canPass?(n(),k("div",ze,[a.value.canPass?(n(),m(b,{key:0,type:"primary",onClick:e[1]||(e[1]=v=>R("\u901A\u8FC7","PASS"))},{default:r(()=>[f("\u610F\u89C1\u6D41\u8F6C")]),_:1})):I("",!0),l(b,{onClick:e[2]||(e[2]=v=>N(h).go(-1))},{default:r(()=>[f("\u8FD4\u56DE")]),_:1})])):(n(),k("div",Je,[a.value.canPass?(n(),m(b,{key:0,type:"primary",onClick:e[3]||(e[3]=v=>R("\u901A\u8FC7","PASS"))},{default:r(()=>[f("\u901A\u8FC7")]),_:1})):I("",!0),a.value.canSeal?(n(),m(b,{key:1,type:"primary",onClick:le},{default:r(()=>[f("\u76D6\u7AE0\u5E76\u901A\u8FC7")]),_:1})):I("",!0),a.value.canReject?(n(),m(b,{key:2,plain:"",type:"danger",onClick:e[4]||(e[4]=v=>R("\u9A73\u56DE","REJECT"))},{default:r(()=>[f("\u9A73\u56DE ")]),_:1})):I("",!0),l(b,{onClick:e[5]||(e[5]=v=>N(h).go(-1))},{default:r(()=>[f("\u8FD4\u56DE")]),_:1}),I("",!0)]))])])):(n(),k("div",Ye,[l(b,{onClick:e[6]||(e[6]=v=>N(h).go(-1))},{default:r(()=>[f("\u8FD4\u56DE")]),_:1}),oe()?(n(),m(b,{key:0,plain:"",type:"primary",onClick:se},{default:r(()=>[f("\u64A4\u56DE")]),_:1})):I("",!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:ae,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)}}}),Pa=ce(Ke,[["__scopeId","data-v-ca1c0e0a"]]);export{Pa as default};