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 line
4.2KB

  1. import{d as M,y as V,r as E,c as d,e as n,f as l,h as p,i as u,j,F as N,H as B,G,g as h,n as F,t as k,k as r}from"./index.a14d36d1.js";import I from"./sjFlowRecord.f8290f32.js";const J={class:"mt-6"},$={key:0},A={key:0},b=["onClick"];const q=M({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=V(),v=E([{title:"\u9879\u76EE\u7533\u62A5",stage:1e4,instName:"\u9879\u76EE\u7533\u62A5",status:[1e4]},{title:"\u5355\u4F4D\u5185\u90E8\u5BA1\u6838",stage:1e4,finishLinkText:"\u67E5\u770B\u5BA1\u6838\u8BB0\u5F55",instName:"\u5355\u4F4D\u5185\u90E8\u5BA1\u6279\u6D41\u7A0B",status:[10001,10002]},{title:"\u9879\u76EE\u9884\u5BA1",stage:1e4,finishLinkText:"\u67E5\u770B\u5BA1\u6838\u8BB0\u5F55",instName:"\u9879\u76EE\u9884\u5BA1\u5BA1\u6279\u6D41\u7A0B",status:[10003,10006,10007]},{title:"\u90E8\u95E8\u8054\u5BA1",stage:1e4,finishLinkText:"\u67E5\u770B\u5BA1\u6838\u8BB0\u5F55",instName:"\u90E8\u95E8\u8054\u5408\u5BA1\u6279\u6D41\u7A0B",status:[10004,10005,10008,10009]},{title:"\u5E74\u5EA6\u8BA1\u5212",stage:1e4,status:[10010,10011]},{title:"\u5EFA\u8BBE\u65B9\u6848\u8BC4\u5BA1",stage:1e4,finishLinkText:"\u67E5\u770B\u5BA1\u6838\u8BB0\u5F55",instName:"\u5EFA\u8BBE\u65B9\u6848\u8BC4\u5BA1\u6D41\u7A0B",status:[10012,10013,10016]},{title:"\u7ACB\u9879\u6279\u590D",stage:1e4,status:[10014]},{title:"\u62DB\u6807\u91C7\u8D2D",stage:2e4,status:[20001]},{title:"\u9879\u76EE\u521D\u9A8C",stage:2e4,status:[20002]},{title:"\u9879\u76EE\u7EC8\u9A8C",stage:2e4,status:[20003,20004,20005]},{title:"\u5F52\u6863",stage:3e4,status:[3e4,30001]}]),D={NOT_START:"wait",ON_GOING:"process",REJECTED:"error",COMPLETED:"success"},m=O,L=()=>{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]=[j("\u5F53\u524D\u8FDB\u5EA6")])),default:u(()=>[p(i,{active:L(),"finish-status":"success","process-status":P()},{default:u(()=>[(n(!0),l(N,null,B(o.stepData,(t,R)=>(n(),G(c,{key:R,title:t.processName},{description:u(()=>{var T;return[h("div",{class:F(`${t.stepStatus==="COMPLETED"?"text-success":t.stepStatus==="ON_GOING"?"text-warning":t.stepStatus==="REJECTED"?"text-danger":""}`)},[h("p",J,k(t.stepStatus==="COMPLETED"?"\u5DF2\u5B8C\u6210":t.stepStatus==="NOT_START"?"\u672A\u5F00\u59CB":t.stepStatus==="ON_GOING"?"\u8FDB\u884C\u4E2D":t.stepStatus==="REJECTED"&&o.detailData.status!==10011?"\u88AB\u9A73\u56DE":t.stepStatus==="REJECTED"&&o.detailData.status===10011?"\u88AB\u6682\u7F13":""),1),t.finishTime?(n(),l("p",$,k(t.finishTime),1)):r("",!0)],2),t.processProgressVo||t.content?(n(),l("p",A,[t.processProgressVo||t.content?(n(),l("a",{key:0,onClick:_=>{var C;return m("showFlowRecordDialog",(C=t==null?void 0:t.processProgressVo)==null?void 0:C.progressInfo,t==null?void 0:t.content)}},"\u67E5\u770B\u5BA1\u6838\u8BB0\u5F55",8,b)):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},"\u91CD\u65B0\u7533\u62A5")):r("",!0)])]}),_:2},1032,["title"]))),128))]),_:1},8,["active","process-status"])]),_:1}),p(x,{"model-value":f.value,title:"\u7701\u7EA7\u8054\u5BA1\u610F\u89C1",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};