Nevar pievienot vairāk kā 25 tēmas Tēmai ir jāsākas ar burtu vai ciparu, tā var saturēt domu zīmes ('-') un var būt līdz 35 simboliem gara.

2 rindas
3.8KB

  1. import{y as M,r as E,b as d,c as n,d as l,f as p,h as u,i as V,F as N,H as j,L as B,e as h,n as G,t as k,j as r,k as F}from"./index-dd5fae99.js";import I from"./sjFlowRecord-6ff99011.js";const J={class:"mt-6"},$={key:0},b={key:0},A=["onClick"];const q=F({name:"projectProgress"}),Q=Object.assign(q,{props:{detailData:Object,stepData:{type:Array,default:void 0}},emits:["showFlowRecordDialog"],setup(o,{emit:O}){const e=o,S=M(),v=E([{title:"项目申报",stage:1e4,instName:"项目申报",status:[1e4]},{title:"单位内部审核",stage:1e4,finishLinkText:"查看审核记录",instName:"单位内部审批流程",status:[10001,10002]},{title:"项目预审",stage:1e4,finishLinkText:"查看审核记录",instName:"项目预审审批流程",status:[10003,10006,10007]},{title:"部门联审",stage:1e4,finishLinkText:"查看审核记录",instName:"部门联合审批流程",status:[10004,10005,10008,10009]},{title:"年度计划",stage:1e4,status:[10010,10011]},{title:"建设方案评审",stage:1e4,finishLinkText:"查看审核记录",instName:"建设方案评审流程",status:[10012,10013,10016]},{title:"立项批复",stage:1e4,status:[10014]},{title:"招标采购",stage:2e4,status:[20001]},{title:"项目初验",stage:2e4,status:[20002]},{title:"项目终验",stage:2e4,status:[20003,20004,20005]},{title:"归档",stage:3e4,status:[3e4,30001]}]),D={NOT_START:"wait",ON_GOING:"process",REJECTED:"error",COMPLETED:"success"},L=O,m=()=>{var a;if(e.stepData&&e.stepData.find(s=>s.stepStatus!=="COMPLETED"))return e.stepData.findIndex(s=>s.stepStatus!=="COMPLETED");if((a=e.stepData)!=null&&a.length)return e.stepData.length-1},P=()=>{var a,s,c;if(e.stepData&&e.stepData.find(i=>i.stepStatus!=="COMPLETED"))return D[e.stepData.find(i=>i.stepStatus!=="COMPLETED").stepStatus];if((a=e.stepData)!=null&&a.length)return D[(c=e.stepData[((s=e==null?void 0:e.stepData)==null?void 0:s.length)-1])==null?void 0:c.stepStatus]},w=()=>{e.detailData.status===20005?S.push({name:"declarationFinal",query:{id:e.detailData.id}}):S.push({name:"declarePage",query:{id:e.detailData.id}})},f=E(!1),g=E(),z=a=>{f.value=!0,g.value=JSON.parse(a),console.log(g.value)};return(a,s)=>{const c=d("el-step"),i=d("el-steps"),y=d("el-card"),x=d("el-dialog");return n(),l(N,null,[p(y,{shadow:"never"},{header:u(()=>s[1]||(s[1]=[V("当前进度")])),default:u(()=>[p(i,{active:m(),"finish-status":"success","process-status":P()},{default:u(()=>[(n(!0),l(N,null,j(o.stepData,(t,R)=>(n(),B(c,{key:R,title:t.processName},{description:u(()=>{var T;return[h("div",{class:G(`${t.stepStatus==="COMPLETED"?"text-success":t.stepStatus==="ON_GOING"?"text-warning":t.stepStatus==="REJECTED"?"text-danger":""}`)},[h("p",J,k(t.stepStatus==="COMPLETED"?"已完成":t.stepStatus==="NOT_START"?"未开始":t.stepStatus==="ON_GOING"?"进行中":t.stepStatus==="REJECTED"&&o.detailData.status!==10011?"被驳回":t.stepStatus==="REJECTED"&&o.detailData.status===10011?"被暂缓":""),1),t.finishTime?(n(),l("p",$,k(t.finishTime),1)):r("",!0)],2),t.processProgressVo||t.content?(n(),l("p",b,[t.processProgressVo||t.content?(n(),l("a",{key:0,onClick:_=>{var C;return L("showFlowRecordDialog",(C=t==null?void 0:t.processProgressVo)==null?void 0:C.progressInfo,t==null?void 0:t.content)}},"查看审核记录",8,A)):r("",!0)])):r("",!0),r("",!0),h("p",null,[((T=v.value.find(_=>_.status.includes(o.detailData.status)))==null?void 0:T.title)===t.processName&&D[t.stepStatus]==="error"&&o.detailData.status!==10009&&o.detailData.status!=10011?(n(),l("a",{key:0,class:"ml-0",onClick:w},"重新申报")):r("",!0)])]}),_:2},1032,["title"]))),128))]),_:1},8,["active","process-status"])]),_:1}),p(x,{"model-value":f.value,title:"省级联审意见",width:"70%","destroy-on-close":"",onCloss:s[0]||(s[0]=t=>f.value=!1)},{default:u(()=>[p(I,{"flow-data":g.value},null,8,["flow-data"])]),_:1},8,["model-value"])],64)}}});export{Q as default};