|
- import G from"./flowRecord.e2ecca50.js";import{d as Q,B as U,b as L,r as V,J as X,c as g,e as a,G as p,i as y,g as N,h as u,f as l,F as r,H as b,j as i,t as o,u as m,aC as Y}from"./index.2dada31c.js";import{_}from"./index.820387e5.js";import R from"./customModule.de4dad4a.js";import $ from"./finalInfo.0808557e.js";import"./index.2f8f59eb.js";import"./index.f55de596.js";const Z={style:{"max-height":"800px"},class:"overflow-y-auto"},ee={key:14},ae={key:14},le=Q({name:"flowRecordDialog"}),ue=Object.assign(le,{props:{visible:{type:Boolean,default:!1,required:!0},flowData:{type:Array,default:void 0},id:{type:String,default:void 0}},emits:["close"],setup(h,{emit:E}){const{statusOptions:S,constructionLevel:O,cloudTypeOptions:F,fourSystem:T,businessTerritory:A}=U.dictStore.globalDicts||{},J=h,z=E,H=[{label:"\u5B57\u6BB5",key:"fieldName",prop:"fieldName",width:180},{label:"\u8C03\u6574\u524D",key:"oldData",slot:"oldData"},{label:"\u8C03\u6574\u540E",key:"newData",slot:"newData"}],B=L([{label:"\u4F9D\u636E\u9879",key:"title",prop:"title"},{label:"\u4F9D\u636E\u6587\u4EF6\u540D",key:"fileName",prop:"fileName"},{label:"\u9644\u4EF6",slot:"file"}]),x=L([{label:"\u5E8F\u53F7",type:"index",width:"80"},{label:"\u4E1A\u52A1\u7F16\u53F7",key:"oid",prop:"oid"},{label:"\u4E1A\u52A1\u540D\u79F0",key:"matterName",prop:"matterName"},{label:"\u6240\u5C5E\u5355\u4F4D",key:"orgName",prop:"orgName"}]),I=V(),M=V(),W=async()=>{const f=await Y(J.id);I.value=[],f.data.changes&&Object.keys(f.data.changes).forEach(d=>{I.value.push({fieldName:d,newData:f.data.changes[d].new,oldData:f.data.changes[d].old,fieldKey:f.data.changes[d].fieldKey})}),M.value={processProgressVo:{...f.data.process.processProgressVo,progressInfo:q(f.data.process.processProgressVo.progressInfo)}}},q=f=>(f.forEach(d=>{if(d.children){const D=[],w=[];d.children.forEach(s=>{D.includes(s.nodeId)?(w.find(k=>k.nodeId===s.nodeId).list.push(s),w.find(k=>k.nodeId===s.nodeId).userIds.push(s.userId)):(D.push(s.nodeId),w.push({nodeId:s.nodeId,approvalMode:s.approvalMode,name:s.name,nodeType:s.nodeType,list:[{...s}],userIds:[s.userId]}))}),d.children=w}else d.userIds=[d.userId]}),f),P=["isSuperOrg","isHigherSuperOrg","isFirst","isDigitalReform","isCloud","isTemporaryAugment","includeApplication"],j=["preliminaryPlanFile","supportingMaterialsFile","calculationTotalInvestmentFile","mainResponsibilitiesApplicantFile","projectApplicationForm","constructionPlanFile"];return X(()=>J.visible,async f=>{f&&W()}),(f,d)=>{const D=g("table-list"),w=g("el-descriptions-item"),s=g("el-descriptions"),k=g("el-dialog");return a(),p(k,{"model-value":h.visible,title:"\u8C03\u6574\u4FE1\u606F\u53CA\u5BA1\u6838\u610F\u89C1",width:"90%","destroy-on-close":"",onClose:d[0]||(d[0]=K=>z("close"))},{default:y(()=>{var K,C;return[N("div",Z,[d[1]||(d[1]=N("h2",{class:"mb-8 bold text-16"},"\u8C03\u6574\u7684\u4FE1\u606F",-1)),u(D,{ref:"tableListRef",column:H,data:I.value,pagination:!1,class:"mb-16"},{oldData:y(({scope:e})=>{var c;return[e.row.fieldKey==="buildBasis"?(a(),p(D,{key:0,column:B,pagination:!1,"empty-temp":!1,data:JSON.parse(e.row.oldData)},{file:y(t=>[(a(!0),l(r,null,b(t.scope.row.fileList,(n,v)=>(a(),l("p",{key:v,class:"mb-4"},[u(_,{"file-name":n.originalFileName,"file-id":n.id,"is-down-load":!0},null,8,["file-name","file-id"])]))),128))]),_:2},1032,["column","data"])):e.row.fieldKey==="isInnovateWholeProvinceShare"?(a(),l(r,{key:1},[i(o(e.row.oldData==="true"?"\u662F":"\u5426"),1)],64)):e.row.fieldKey==="status"?(a(),l(r,{key:2},[i(o((c=m(S)[e.row.oldData])==null?void 0:c.name),1)],64)):P.includes(e.row.fieldKey)?(a(),l(r,{key:3},[i(o(e.row.oldData==="1"?"\u662F":"\u5426"),1)],64)):e.row.fieldKey==="projectType"?(a(),l(r,{key:4},[i(o(e.row.oldData==="01"?"\u9996\u6B21\u5EFA\u8BBE":e.row.oldData==="02"?"\u8FED\u4EE3\u5347\u7EA7":e.row.oldData==="03"?"\u7ED3\u8F6C\u5EFA\u8BBE":"-"),1)],64)):e.row.fieldKey==="buildLevel"?(a(),l(r,{key:5},[i(o(m(O)[e.row.oldData]),1)],64)):e.row.fieldKey==="bizDomain"?(a(),l(r,{key:6},[i(o(m(A)[e.row.oldData]),1)],64)):e.row.fieldKey==="cloudType"?(a(),l(r,{key:7},[i(o(e.row.oldData.split(",").map(t=>m(F)[t]).join("\u3001")||"-"),1)],64)):e.row.fieldKey==="fourSystems"?(a(),l(r,{key:8},[i(o(m(T)[e.row.oldData]),1)],64)):e.row.fieldKey==="safetyInputDescribe"?(a(!0),l(r,{key:9},b(JSON.parse(e.row.oldData),(t,n)=>(a(),p(s,{key:n,column:1,border:"",class:"mb-16"},{default:y(()=>[u(w,{label:"\u6295\u5165\u9879"},{default:y(()=>[i(o(t.safetyInputTitle||"-"),1)]),_:2},1024),u(w,{label:"\u5185\u5BB9\u63CF\u8FF0\uFF1A"},{default:y(()=>[i(o(t.safetyInputDescribe||"-"),1)]),_:2},1024),u(w,{label:"\u91D1\u989D\uFF08\u4E07\u5143\uFF09\uFF1A"},{default:y(()=>[i(o(t.safetyInputAmount),1)]),_:2},1024)]),_:2},1024))),128)):j.includes(e.row.fieldKey)?(a(!0),l(r,{key:10},b(e.row.oldData&&JSON.parse(e.row.oldData),(t,n)=>(a(),l("p",{key:n,class:"mb-4"},[u(_,{"file-name":t.originalFileName,"file-id":t.id},null,8,["file-name","file-id"])]))),128)):e.row.fieldKey==="coreBusiness"?(a(),p(D,{key:11,column:x,data:e.row.oldData?JSON.parse(e.row.oldData):[],pagination:!1,small:!0},null,8,["column","data"])):e.row.fieldKey==="safetyInputModular"?(a(!0),l(r,{key:12},b(e.row.oldData&&JSON.parse(e.row.oldData),(t,n)=>(a(),l("div",{key:n},[u(R,{data:t,"module-num":n},null,8,["data","module-num"])]))),128)):e.row.fieldKey==="finalAcceptanceMaterials"?(a(),p($,{key:13,"detail-data":{finalAcceptanceMaterials:e.row.oldData},"is-show-app":!1},null,8,["detail-data"])):(a(),l("p",ee,o(e.row.oldData),1))]}),newData:y(({scope:e})=>{var c;return[e.row.fieldKey==="buildBasis"?(a(),p(D,{key:0,column:B,pagination:!1,"empty-temp":!1,data:JSON.parse(e.row.newData)},{file:y(t=>[(a(!0),l(r,null,b(t.scope.row.fileList,(n,v)=>(a(),l("p",{key:v,class:"mb-4"},[u(_,{"file-name":n.originalFileName,"file-id":n.id,"is-down-load":!0},null,8,["file-name","file-id"])]))),128))]),_:2},1032,["column","data"])):e.row.fieldKey==="isInnovateWholeProvinceShare"?(a(),l(r,{key:1},[i(o(e.row.newData==="true"?"\u662F":"\u5426"),1)],64)):e.row.fieldKey==="status"?(a(),l(r,{key:2},[i(o((c=m(S)[e.row.newData])==null?void 0:c.name),1)],64)):P.includes(e.row.fieldKey)?(a(),l(r,{key:3},[i(o(e.row.newData==="1"?"\u662F":"\u5426"),1)],64)):e.row.fieldKey==="projectType"?(a(),l(r,{key:4},[i(o(e.row.newData==="01"?"\u9996\u6B21\u5EFA\u8BBE":e.row.newData==="02"?"\u8FED\u4EE3\u5347\u7EA7":e.row.newData==="03"?"\u7ED3\u8F6C\u5EFA\u8BBE":"-"),1)],64)):e.row.fieldKey==="buildLevel"?(a(),l(r,{key:5},[i(o(m(O)[e.row.newData]),1)],64)):e.row.fieldKey==="bizDomain"?(a(),l(r,{key:6},[i(o(m(A)[e.row.newData]),1)],64)):e.row.fieldKey==="cloudType"?(a(),l(r,{key:7},[i(o(e.row.newData.split(",").map(t=>m(F)[t]).join("\u3001")||"-"),1)],64)):e.row.fieldKey==="fourSystems"?(a(),l(r,{key:8},[i(o(m(T)[e.row.newData]),1)],64)):e.row.fieldKey==="safetyInputDescribe"?(a(!0),l(r,{key:9},b(JSON.parse(e.row.newData),(t,n)=>(a(),p(s,{key:n,column:1,border:"",class:"mb-16"},{default:y(()=>[u(w,{label:"\u6295\u5165\u9879"},{default:y(()=>[i(o(t.safetyInputTitle||"-"),1)]),_:2},1024),u(w,{label:"\u5185\u5BB9\u63CF\u8FF0\uFF1A"},{default:y(()=>[i(o(t.safetyInputDescribe||"-"),1)]),_:2},1024),u(w,{label:"\u91D1\u989D\uFF08\u4E07\u5143\uFF09\uFF1A"},{default:y(()=>[i(o(t.safetyInputAmount),1)]),_:2},1024)]),_:2},1024))),128)):e.row.fieldKey==="safetyInputModular"?(a(!0),l(r,{key:10},b(e.row.newData&&JSON.parse(e.row.newData),(t,n)=>(a(),l("div",{key:n},[u(R,{data:t,"module-num":n},null,8,["data","module-num"])]))),128)):j.includes(e.row.fieldKey)?(a(!0),l(r,{key:11},b(e.row.newData&&JSON.parse(e.row.newData),(t,n)=>(a(),l("p",{key:n,class:"mb-4"},[u(_,{"file-name":t.originalFileName,"file-id":t.id},null,8,["file-name","file-id"])]))),128)):e.row.fieldKey==="coreBusiness"?(a(),p(D,{key:12,column:x,data:e.row.newData?JSON.parse(e.row.newData):[],pagination:!1,small:!0},null,8,["column","data"])):e.row.fieldKey==="finalAcceptanceMaterials"?(a(),p($,{key:13,"detail-data":{finalAcceptanceMaterials:e.row.newData},"is-show-app":!1},null,8,["detail-data"])):(a(),l("p",ae,o(e.row.newData),1))]}),_:1},8,["data"]),d[2]||(d[2]=N("h2",{class:"mb-8 bold text-16"},"\u6D41\u7A0B\u8BB0\u5F55",-1)),u(G,{"flow-data":((C=(K=M.value)==null?void 0:K.processProgressVo)==null?void 0:C.progressInfo)||[]},null,8,["flow-data"])])]}),_:1},8,["model-value"])}}});export{ue as default};
|