|
- import{r as N}from"./inquirySheetManage.2910dd98.js";import{d as C,D as F,r as O,L as h,c as b,e as k,I as L,i as c,h as x,g as B,f as R,k as D,a0 as f,C as I}from"./index.ce13ff81.js";const T=["onClick"],U=["onClick"],$=C({name:"recordListDialg"}),E=Object.assign($,{props:{visible:{type:Boolean,default:!1,required:!0},data:Object},emits:["close"],setup(i,{emit:_}){const{projectTypeOptions:g}=F.dictStore.globalDicts||{},l=i,j=_,v=[{label:"\u5E8F\u53F7",type:"index",width:"80"},{label:"\u9879\u76EE\u540D\u79F0",key:"projectName",prop:"projectName"},{label:"\u7533\u62A5\u5355\u4F4D",key:"buildOrgName",prop:"buildOrgName"},{label:"\u9879\u76EE\u7C7B\u578B",key:"projectType",prop:"projectType",render:e=>f("span",g[e.projectType]||"-")},{label:"\u9884\u7B97\u5E74\u5EA6",key:"projectYear",prop:"projectYear"},{label:"\u54A8\u8BE2\u5355\u72B6\u6001",key:"status",prop:"status",render:e=>f("span",{class:[1,2,3].includes(e.status)?"text-warning":e.status===4?"text-success":"text-danger"},e.statusName)},{label:"\u5BA1\u6838\u65F6\u95F4",key:"createOn",prop:"createOn"},{label:"\u54A8\u8BE2\u5355",key:"consultationForm",slot:"consultationForm"},{label:"\u56DE\u590D\u5355",key:"replyForm",slot:"replyForm"}],d=O(),w=async()=>{const e=await N(l.data.id);d.value=e.data},p=async e=>{var s,m,u,y;const o=e&&((m=(s=JSON.parse(e))==null?void 0:s[0])==null?void 0:m.id),r=e&&((y=(u=JSON.parse(e))==null?void 0:u[0])==null?void 0:y.originalFileName),n=await I({fileId:o}),a=URL.createObjectURL(n),t=document.createElement("a");t.style.display="none",t.href=a,t.download=r,document.body.appendChild(t),t.click(),document.body.removeChild(t),window.URL.revokeObjectURL(a)};return h(()=>l.visible,async e=>{e&&w()}),(e,o)=>{var a;const r=b("table-list"),n=b("el-dialog");return k(),L(n,{"model-value":i.visible,title:`${(a=l.data)==null?void 0:a.projectName}-\u54A8\u8BE2\u5355\u3001\u56DE\u590D\u5355\u5217\u8868`,width:"70%","destroy-on-close":"",onClose:o[0]||(o[0]=t=>j("close"))},{default:c(()=>[x(r,{ref:"tableListRef",column:v,data:d.value,pagination:!1},{consultationForm:c(({scope:t})=>[B("a",{onClick:s=>p(t.row.consultationForm)},"\u4E0B\u8F7D",8,T)]),replyForm:c(({scope:t})=>[t.row.replyForm?(k(),R("a",{key:0,onClick:s=>p(t.row.replyForm)},"\u4E0B\u8F7D",8,U)):D("",!0)]),_:1},8,["data"])]),_:1},8,["model-value","title"])}}});export{E as default};
|