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
9.0KB

  1. var Z=Object.defineProperty,ee=Object.defineProperties;var ae=Object.getOwnPropertyDescriptors;var H=Object.getOwnPropertySymbols;var le=Object.prototype.hasOwnProperty,te=Object.prototype.propertyIsEnumerable;var W=(f,s,d)=>s in f?Z(f,s,{enumerable:!0,configurable:!0,writable:!0,value:d}):f[s]=d,P=(f,s)=>{for(var d in s||(s={}))le.call(s,d)&&W(f,d,s[d]);if(H)for(var d of H(s))te.call(s,d)&&W(f,d,s[d]);return f},q=(f,s)=>ee(f,ae(s));var j=(f,s,d)=>new Promise((S,h)=>{var O=k=>{try{I(d.next(k))}catch(K){h(K)}},F=k=>{try{I(d.throw(k))}catch(K){h(K)}},I=k=>k.done?S(k.value):Promise.resolve(k.value).then(O,F);I((d=d.apply(f,s)).next())});import{_ as oe,d as re,H as ne,b as G,r as U,P as ie,f as A,g as a,L as b,m as p,i as B,l as y,h as l,G as o,M as _,p as n,t as r,k as c,aK as de}from"./index.63c4b070.js";import se from"./flowRecord.4878ce15.js";import{A as T}from"./index.1a2354ca.js";import $ from"./customModule.090f3955.js";import Q from"./finalInfo.16421e7f.js";import"./index.c5700677.js";import"./index.682be1ab.js";const ue={style:{"max-height":"800px"},class:"overflow-y-auto"},fe=B("h2",{class:"mb-8 bold text-16"},"\u8C03\u6574\u7684\u4FE1\u606F",-1),ye={key:14},we={key:14},me=B("h2",{class:"mb-8 bold text-16"},"\u6D41\u7A0B\u8BB0\u5F55",-1),pe=re({name:"flowRecordDialog"}),De=Object.assign(pe,{props:{visible:{type:Boolean,default:!1,required:!0},flowData:{type:Array,default:void 0},id:{type:String,default:void 0}},emits:["close"],setup(f,{emit:s}){const{statusOptions:d,constructionLevel:S,cloudTypeOptions:h,fourSystem:O,businessTerritory:F}=ne.dictStore.globalDicts||{},I=f,k=s,K=[{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"}],C=G([{label:"\u4F9D\u636E\u9879",key:"title",prop:"title"},{label:"\u4F9D\u636E\u6587\u4EF6\u540D",key:"fileName",prop:"fileName"},{label:"\u9644\u4EF6",slot:"file"}]),L=G([{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"}]),x=U(),V=U(),X=()=>j(this,null,function*(){const w=yield de(I.id);x.value=[],w.data.changes&&Object.keys(w.data.changes).forEach(m=>{x.value.push({fieldName:m,newData:w.data.changes[m].new,oldData:w.data.changes[m].old,fieldKey:w.data.changes[m].fieldKey})}),V.value={processProgressVo:q(P({},w.data.process.processProgressVo),{progressInfo:Y(w.data.process.processProgressVo.progressInfo)})}}),Y=w=>(w.forEach(m=>{if(m.children){const g=[],D=[];m.children.forEach(u=>{g.includes(u.nodeId)?(D.find(v=>v.nodeId===u.nodeId).list.push(u),D.find(v=>v.nodeId===u.nodeId).userIds.push(u.userId)):(g.push(u.nodeId),D.push({nodeId:u.nodeId,approvalMode:u.approvalMode,name:u.name,nodeType:u.nodeType,list:[P({},u)],userIds:[u.userId]}))}),m.children=D}else m.userIds=[m.userId]}),w),R=["isSuperOrg","isHigherSuperOrg","isFirst","isDigitalReform","isCloud","isTemporaryAugment","includeApplication"],E=["preliminaryPlanFile","supportingMaterialsFile","calculationTotalInvestmentFile","mainResponsibilitiesApplicantFile","projectApplicationForm","constructionPlanFile"];return ie(()=>I.visible,w=>j(this,null,function*(){w&&X()})),(w,m)=>{const g=A("table-list"),D=A("el-descriptions-item"),u=A("el-descriptions"),v=A("el-dialog");return a(),b(v,{"model-value":f.visible,title:"\u8C03\u6574\u4FE1\u606F\u53CA\u5BA1\u6838\u610F\u89C1",width:"90%","destroy-on-close":"",onClose:m[0]||(m[0]=M=>k("close"))},{default:p(()=>{var M,z;return[B("div",ue,[fe,y(g,{ref:"tableListRef",column:K,data:x.value,pagination:!1,class:"mb-16"},{oldData:p(({scope:e})=>{var N;return[e.row.fieldKey==="buildBasis"?(a(),b(g,{key:0,column:C,pagination:!1,"empty-temp":!1,data:JSON.parse(e.row.oldData)},{file:p(t=>[(a(!0),l(o,null,_(t.scope.row.fileList,(i,J)=>(a(),l("p",{key:J,class:"mb-4"},[y(T,{"file-name":i.originalFileName,"file-id":i.id,"is-down-load":!0},null,8,["file-name","file-id"])]))),128))]),_:2},1032,["column","data"])):e.row.fieldKey==="isInnovateWholeProvinceShare"?(a(),l(o,{key:1},[n(r(e.row.oldData==="true"?"\u662F":"\u5426"),1)],64)):e.row.fieldKey==="status"?(a(),l(o,{key:2},[n(r((N=c(d)[e.row.oldData])==null?void 0:N.name),1)],64)):R.includes(e.row.fieldKey)?(a(),l(o,{key:3},[n(r(e.row.oldData==="1"?"\u662F":"\u5426"),1)],64)):e.row.fieldKey==="projectType"?(a(),l(o,{key:4},[n(r(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(o,{key:5},[n(r(c(S)[e.row.oldData]),1)],64)):e.row.fieldKey==="bizDomain"?(a(),l(o,{key:6},[n(r(c(F)[e.row.oldData]),1)],64)):e.row.fieldKey==="cloudType"?(a(),l(o,{key:7},[n(r(e.row.oldData.split(",").map(t=>c(h)[t]).join("\u3001")||"-"),1)],64)):e.row.fieldKey==="fourSystems"?(a(),l(o,{key:8},[n(r(c(O)[e.row.oldData]),1)],64)):e.row.fieldKey==="safetyInputDescribe"?(a(!0),l(o,{key:9},_(JSON.parse(e.row.oldData),(t,i)=>(a(),b(u,{key:i,column:1,border:"",class:"mb-16"},{default:p(()=>[y(D,{label:"\u6295\u5165\u9879"},{default:p(()=>[n(r(t.safetyInputTitle||"-"),1)]),_:2},1024),y(D,{label:"\u5185\u5BB9\u63CF\u8FF0\uFF1A"},{default:p(()=>[n(r(t.safetyInputDescribe||"-"),1)]),_:2},1024),y(D,{label:"\u91D1\u989D\uFF08\u4E07\u5143\uFF09\uFF1A"},{default:p(()=>[n(r(t.safetyInputAmount),1)]),_:2},1024)]),_:2},1024))),128)):E.includes(e.row.fieldKey)?(a(!0),l(o,{key:10},_(e.row.oldData&&JSON.parse(e.row.oldData),(t,i)=>(a(),l("p",{key:i,class:"mb-4"},[y(T,{"file-name":t.originalFileName,"file-id":t.id},null,8,["file-name","file-id"])]))),128)):e.row.fieldKey==="coreBusiness"?(a(),b(g,{key:11,column:L,data:e.row.oldData?JSON.parse(e.row.oldData):[],pagination:!1,small:!0},null,8,["column","data"])):e.row.fieldKey==="safetyInputModular"?(a(!0),l(o,{key:12},_(e.row.oldData&&JSON.parse(e.row.oldData),(t,i)=>(a(),l("div",{key:i},[y($,{data:t,"module-num":i},null,8,["data","module-num"])]))),128)):e.row.fieldKey==="finalAcceptanceMaterials"?(a(),b(Q,{key:13,"detail-data":{finalAcceptanceMaterials:e.row.oldData},"is-show-app":!1},null,8,["detail-data"])):(a(),l("p",ye,r(e.row.oldData),1))]}),newData:p(({scope:e})=>{var N;return[e.row.fieldKey==="buildBasis"?(a(),b(g,{key:0,column:C,pagination:!1,"empty-temp":!1,data:JSON.parse(e.row.newData)},{file:p(t=>[(a(!0),l(o,null,_(t.scope.row.fileList,(i,J)=>(a(),l("p",{key:J,class:"mb-4"},[y(T,{"file-name":i.originalFileName,"file-id":i.id,"is-down-load":!0},null,8,["file-name","file-id"])]))),128))]),_:2},1032,["column","data"])):e.row.fieldKey==="isInnovateWholeProvinceShare"?(a(),l(o,{key:1},[n(r(e.row.newData==="true"?"\u662F":"\u5426"),1)],64)):e.row.fieldKey==="status"?(a(),l(o,{key:2},[n(r((N=c(d)[e.row.newData])==null?void 0:N.name),1)],64)):R.includes(e.row.fieldKey)?(a(),l(o,{key:3},[n(r(e.row.newData==="1"?"\u662F":"\u5426"),1)],64)):e.row.fieldKey==="projectType"?(a(),l(o,{key:4},[n(r(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(o,{key:5},[n(r(c(S)[e.row.newData]),1)],64)):e.row.fieldKey==="bizDomain"?(a(),l(o,{key:6},[n(r(c(F)[e.row.newData]),1)],64)):e.row.fieldKey==="cloudType"?(a(),l(o,{key:7},[n(r(e.row.newData.split(",").map(t=>c(h)[t]).join("\u3001")||"-"),1)],64)):e.row.fieldKey==="fourSystems"?(a(),l(o,{key:8},[n(r(c(O)[e.row.newData]),1)],64)):e.row.fieldKey==="safetyInputDescribe"?(a(!0),l(o,{key:9},_(JSON.parse(e.row.newData),(t,i)=>(a(),b(u,{key:i,column:1,border:"",class:"mb-16"},{default:p(()=>[y(D,{label:"\u6295\u5165\u9879"},{default:p(()=>[n(r(t.safetyInputTitle||"-"),1)]),_:2},1024),y(D,{label:"\u5185\u5BB9\u63CF\u8FF0\uFF1A"},{default:p(()=>[n(r(t.safetyInputDescribe||"-"),1)]),_:2},1024),y(D,{label:"\u91D1\u989D\uFF08\u4E07\u5143\uFF09\uFF1A"},{default:p(()=>[n(r(t.safetyInputAmount),1)]),_:2},1024)]),_:2},1024))),128)):e.row.fieldKey==="safetyInputModular"?(a(!0),l(o,{key:10},_(e.row.newData&&JSON.parse(e.row.newData),(t,i)=>(a(),l("div",{key:i},[y($,{data:t,"module-num":i},null,8,["data","module-num"])]))),128)):E.includes(e.row.fieldKey)?(a(!0),l(o,{key:11},_(e.row.newData&&JSON.parse(e.row.newData),(t,i)=>(a(),l("p",{key:i,class:"mb-4"},[y(T,{"file-name":t.originalFileName,"file-id":t.id},null,8,["file-name","file-id"])]))),128)):e.row.fieldKey==="coreBusiness"?(a(),b(g,{key:12,column:L,data:e.row.newData?JSON.parse(e.row.newData):[],pagination:!1,small:!0},null,8,["column","data"])):e.row.fieldKey==="finalAcceptanceMaterials"?(a(),b(Q,{key:13,"detail-data":{finalAcceptanceMaterials:e.row.newData},"is-show-app":!1},null,8,["detail-data"])):(a(),l("p",we,r(e.row.newData),1))]}),_:1},8,["data"]),me,y(se,{"flow-data":((z=(M=V.value)==null?void 0:M.processProgressVo)==null?void 0:z.progressInfo)||[]},null,8,["flow-data"])])]}),_:1},8,["model-value"])}}}),ve=oe(De,[["__file","/Users/chenlixin/Documents/work/NDKJ/MyProject/ls-project-v2.0/src/pages/toDoCenter/handleDuringExamine/components/changeInfoDialog.vue"]]);export{ve as default};