|
- import{_ as R,d as M,A as V,r as h,e as p,f as n,g as l,k as d,l as i,m as B,F as C,J,I as F,h as E,n as G,t as N,i as c}from"./index.11dc4694.js";import I from"./sjFlowRecord.62ea595f.js";const A={class:"mt-6"},$={key:0},b={key:0},q=["onClick"];const z=M({name:"projectProgress"}),K=Object.assign(z,{props:{detailData:Object,stepData:{type:Array,default:void 0}},emits:["showFlowRecordDialog"],setup(o,{emit:k}){const e=o,S=V(),O=h([{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]}]),f={NOT_START:"wait",ON_GOING:"process",REJECTED:"error",COMPLETED:"success"},P=k,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},w=()=>{var a,s,u;if(e.stepData&&e.stepData.find(r=>r.stepStatus!=="COMPLETED"))return f[e.stepData.find(r=>r.stepStatus!=="COMPLETED").stepStatus];if((a=e.stepData)!=null&&a.length)return f[(u=e.stepData[((s=e==null?void 0:e.stepData)==null?void 0:s.length)-1])==null?void 0:u.stepStatus]},L=()=>{e.detailData.status===20005?S.push({name:"declarationFinal",query:{id:e.detailData.id}}):S.push({name:"declarePage",query:{id:e.detailData.id}})},D=h(!1),g=h(),U=a=>{D.value=!0,g.value=JSON.parse(a),console.log(g.value)};return(a,s)=>{const u=p("el-step"),r=p("el-steps"),j=p("el-card"),x=p("el-dialog");return n(),l(C,null,[d(j,{shadow:"never"},{header:i(()=>[B("\u5F53\u524D\u8FDB\u5EA6")]),default:i(()=>[d(r,{active:m(),"finish-status":"success","process-status":w()},{default:i(()=>[(n(!0),l(C,null,J(o.stepData,(t,y)=>(n(),F(u,{key:y,title:t.processName},{description:i(()=>{var v;return[E("div",{class:G(`${t.stepStatus==="COMPLETED"?"text-success":t.stepStatus==="ON_GOING"?"text-warning":t.stepStatus==="REJECTED"?"text-danger":""}`)},[E("p",A,N(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",$,N(t.finishTime),1)):c("v-if",!0)],2),t.processProgressVo||t.content?(n(),l("p",b,[t.processProgressVo||t.content?(n(),l("a",{key:0,onClick:_=>{var T;return P("showFlowRecordDialog",(T=t==null?void 0:t.processProgressVo)==null?void 0:T.progressInfo,t==null?void 0:t.content)}},"\u67E5\u770B\u5BA1\u6838\u8BB0\u5F55",8,q)):c("v-if",!0)])):c("v-if",!0),c("v-if",!0),E("p",null,[((v=O.value.find(_=>_.status.includes(o.detailData.status)))==null?void 0:v.title)===t.processName&&f[t.stepStatus]==="error"&&o.detailData.status!==10009&&o.detailData.status!=10011?(n(),l("a",{key:0,class:"ml-0",onClick:L},"\u91CD\u65B0\u7533\u62A5")):c("v-if",!0)])]}),_:2},1032,["title"]))),128))]),_:1},8,["active","process-status"])]),_:1}),d(x,{"model-value":D.value,title:"\u7701\u7EA7\u8054\u5BA1\u610F\u89C1",width:"70%","destroy-on-close":"",onCloss:s[0]||(s[0]=t=>D.value=!1)},{default:i(()=>[d(I,{"flow-data":g.value},null,8,["flow-data"])]),_:1},8,["model-value"])],64)}}}),W=R(K,[["__file","/Users/chenlixin/Documents/work/NDKJ/MyProject/ls-project-v2.0/src/pages/projectStoreManage/projectStore/projectDetail/components/projectProgress.vue"]]);export{W as default};
|