|
- import G from"./flowRecord-8475b670.js";import{E as Q,a as V,r as C,B as U,b as g,c as a,L as p,h as y,e as N,f as u,d as l,F as r,H as b,i,t as o,u as m,k as X,aD as Y}from"./index-dd5fae99.js";import{_}from"./index-33a0e6e3.js";import E from"./customModule-ed9bfcef.js";import R from"./finalInfo-37de53a6.js";import"./index-be0b3801.js";import"./index-b861e656.js";const Z={style:{"max-height":"800px"},class:"overflow-y-auto"},ee={key:14},ae={key:14},le=X({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:$}){const{statusOptions:S,constructionLevel:O,cloudTypeOptions:F,fourSystem:T,businessTerritory:A}=Q.dictStore.globalDicts||{},B=h,z=$,H=[{label:"字段",key:"fieldName",prop:"fieldName",width:180},{label:"调整前",key:"oldData",slot:"oldData"},{label:"调整后",key:"newData",slot:"newData"}],J=V([{label:"依据项",key:"title",prop:"title"},{label:"依据文件名",key:"fileName",prop:"fileName"},{label:"附件",slot:"file"}]),x=V([{label:"序号",type:"index",width:"80"},{label:"业务编号",key:"oid",prop:"oid"},{label:"业务名称",key:"matterName",prop:"matterName"},{label:"所属单位",key:"orgName",prop:"orgName"}]),I=C(),M=C(),W=async()=>{const f=await Y(B.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"],L=["preliminaryPlanFile","supportingMaterialsFile","calculationTotalInvestmentFile","mainResponsibilitiesApplicantFile","projectApplicationForm","constructionPlanFile"];return U(()=>B.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:"调整信息及审核意见",width:"90%","destroy-on-close":"",onClose:d[0]||(d[0]=K=>z("close"))},{default:y(()=>{var K,j;return[N("div",Z,[d[1]||(d[1]=N("h2",{class:"mb-8 bold text-16"},"调整的信息",-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:J,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"?"是":"否"),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"?"是":"否"),1)],64)):e.row.fieldKey==="projectType"?(a(),l(r,{key:4},[i(o(e.row.oldData==="01"?"首次建设":e.row.oldData==="02"?"迭代升级":e.row.oldData==="03"?"结转建设":"-"),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("、")||"-"),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:"投入项"},{default:y(()=>[i(o(t.safetyInputTitle||"-"),1)]),_:2},1024),u(w,{label:"内容描述:"},{default:y(()=>[i(o(t.safetyInputDescribe||"-"),1)]),_:2},1024),u(w,{label:"金额(万元):"},{default:y(()=>[i(o(t.safetyInputAmount),1)]),_:2},1024)]),_:2},1024))),128)):L.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(E,{data:t,"module-num":n},null,8,["data","module-num"])]))),128)):e.row.fieldKey==="finalAcceptanceMaterials"?(a(),p(R,{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:J,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"?"是":"否"),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"?"是":"否"),1)],64)):e.row.fieldKey==="projectType"?(a(),l(r,{key:4},[i(o(e.row.newData==="01"?"首次建设":e.row.newData==="02"?"迭代升级":e.row.newData==="03"?"结转建设":"-"),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("、")||"-"),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:"投入项"},{default:y(()=>[i(o(t.safetyInputTitle||"-"),1)]),_:2},1024),u(w,{label:"内容描述:"},{default:y(()=>[i(o(t.safetyInputDescribe||"-"),1)]),_:2},1024),u(w,{label:"金额(万元):"},{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(E,{data:t,"module-num":n},null,8,["data","module-num"])]))),128)):L.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(R,{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"},"流程记录",-1)),u(G,{"flow-data":((j=(K=M.value)==null?void 0:K.processProgressVo)==null?void 0:j.progressInfo)||[]},null,8,["flow-data"])])]}),_:1},8,["model-value"])}}});export{ue as default};
|