Você não pode selecionar mais de 25 tópicos Os tópicos devem começar com uma letra ou um número, podem incluir traços ('-') e podem ter até 35 caracteres.

2 linhas
8.1KB

  1. import G from"./flowRecord.2f03e886.js";import{d as Q,D as U,b as C,r as V,L as X,c as _,e as a,I as p,i as y,g as v,h as s,f as l,F as r,J as c,j as i,t as o,u as m,aC as Y}from"./index.d340e473.js";import{_ as g}from"./index.79d05d9e.js";import R from"./customModule.8c53f766.js";import $ from"./finalInfo.043baeab.js";import"./index.b5cf0c78.js";import"./index.f55de596.js";const Z={style:{"max-height":"800px"},class:"overflow-y-auto"},ee=v("h2",{class:"mb-8 bold text-16"},"\u8C03\u6574\u7684\u4FE1\u606F",-1),ae={key:14},le={key:14},te=v("h2",{class:"mb-8 bold text-16"},"\u6D41\u7A0B\u8BB0\u5F55",-1),re=Q({name:"flowRecordDialog"}),ye=Object.assign(re,{props:{visible:{type:Boolean,default:!1,required:!0},flowData:{type:Array,default:void 0},id:{type:String,default:void 0}},emits:["close"],setup(N,{emit:E}){const{statusOptions:S,constructionLevel:O,cloudTypeOptions:F,fourSystem:T,businessTerritory:A}=U.dictStore.globalDicts||{},J=N,z=E,W=[{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"}],x=C([{label:"\u4F9D\u636E\u9879",key:"title",prop:"title"},{label:"\u4F9D\u636E\u6587\u4EF6\u540D",key:"fileName",prop:"fileName"},{label:"\u9644\u4EF6",slot:"file"}]),B=C([{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(),q=async()=>{const u=await Y(J.id);I.value=[],u.data.changes&&Object.keys(u.data.changes).forEach(f=>{I.value.push({fieldName:f,newData:u.data.changes[f].new,oldData:u.data.changes[f].old,fieldKey:u.data.changes[f].fieldKey})}),M.value={processProgressVo:{...u.data.process.processProgressVo,progressInfo:H(u.data.process.processProgressVo.progressInfo)}}},H=u=>(u.forEach(f=>{if(f.children){const D=[],w=[];f.children.forEach(d=>{D.includes(d.nodeId)?(w.find(b=>b.nodeId===d.nodeId).list.push(d),w.find(b=>b.nodeId===d.nodeId).userIds.push(d.userId)):(D.push(d.nodeId),w.push({nodeId:d.nodeId,approvalMode:d.approvalMode,name:d.name,nodeType:d.nodeType,list:[{...d}],userIds:[d.userId]}))}),f.children=w}else f.userIds=[f.userId]}),u),P=["isSuperOrg","isHigherSuperOrg","isFirst","isDigitalReform","isCloud","isTemporaryAugment","includeApplication"],j=["preliminaryPlanFile","supportingMaterialsFile","calculationTotalInvestmentFile","mainResponsibilitiesApplicantFile","projectApplicationForm","constructionPlanFile"];return X(()=>J.visible,async u=>{u&&q()}),(u,f)=>{const D=_("table-list"),w=_("el-descriptions-item"),d=_("el-descriptions"),b=_("el-dialog");return a(),p(b,{"model-value":N.visible,title:"\u8C03\u6574\u4FE1\u606F\u53CA\u5BA1\u6838\u610F\u89C1",width:"90%","destroy-on-close":"",onClose:f[0]||(f[0]=K=>z("close"))},{default:y(()=>{var K,L;return[v("div",Z,[ee,s(D,{ref:"tableListRef",column:W,data:I.value,pagination:!1,class:"mb-16"},{oldData:y(({scope:e})=>{var k;return[e.row.fieldKey==="buildBasis"?(a(),p(D,{key:0,column:x,pagination:!1,"empty-temp":!1,data:JSON.parse(e.row.oldData)},{file:y(t=>[(a(!0),l(r,null,c(t.scope.row.fileList,(n,h)=>(a(),l("p",{key:h,class:"mb-4"},[s(g,{"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((k=m(S)[e.row.oldData])==null?void 0:k.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},c(JSON.parse(e.row.oldData),(t,n)=>(a(),p(d,{key:n,column:1,border:"",class:"mb-16"},{default:y(()=>[s(w,{label:"\u6295\u5165\u9879"},{default:y(()=>[i(o(t.safetyInputTitle||"-"),1)]),_:2},1024),s(w,{label:"\u5185\u5BB9\u63CF\u8FF0\uFF1A"},{default:y(()=>[i(o(t.safetyInputDescribe||"-"),1)]),_:2},1024),s(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},c(e.row.oldData&&JSON.parse(e.row.oldData),(t,n)=>(a(),l("p",{key:n,class:"mb-4"},[s(g,{"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:B,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},c(e.row.oldData&&JSON.parse(e.row.oldData),(t,n)=>(a(),l("div",{key:n},[s(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",ae,o(e.row.oldData),1))]}),newData:y(({scope:e})=>{var k;return[e.row.fieldKey==="buildBasis"?(a(),p(D,{key:0,column:x,pagination:!1,"empty-temp":!1,data:JSON.parse(e.row.newData)},{file:y(t=>[(a(!0),l(r,null,c(t.scope.row.fileList,(n,h)=>(a(),l("p",{key:h,class:"mb-4"},[s(g,{"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((k=m(S)[e.row.newData])==null?void 0:k.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},c(JSON.parse(e.row.newData),(t,n)=>(a(),p(d,{key:n,column:1,border:"",class:"mb-16"},{default:y(()=>[s(w,{label:"\u6295\u5165\u9879"},{default:y(()=>[i(o(t.safetyInputTitle||"-"),1)]),_:2},1024),s(w,{label:"\u5185\u5BB9\u63CF\u8FF0\uFF1A"},{default:y(()=>[i(o(t.safetyInputDescribe||"-"),1)]),_:2},1024),s(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},c(e.row.newData&&JSON.parse(e.row.newData),(t,n)=>(a(),l("div",{key:n},[s(R,{data:t,"module-num":n},null,8,["data","module-num"])]))),128)):j.includes(e.row.fieldKey)?(a(!0),l(r,{key:11},c(e.row.newData&&JSON.parse(e.row.newData),(t,n)=>(a(),l("p",{key:n,class:"mb-4"},[s(g,{"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:B,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",le,o(e.row.newData),1))]}),_:1},8,["data"]),te,s(G,{"flow-data":((L=(K=M.value)==null?void 0:K.processProgressVo)==null?void 0:L.progressInfo)||[]},null,8,["flow-data"])])]}),_:1},8,["model-value"])}}});export{ye as default};