import{M as k,G as ie,$ as C,a0 as h,a3 as ue,a as de,r as N,d as pe,ag as P,e as c,o as f,c as T,g as o,a5 as ce,S as j,w as n,h as s,f as V,m as u,R as fe,z as B,D as $,K as me,A as U,L as z,i as E,t as ye}from"./index-9b4667b6.js";import{u as ve}from"./useAvueTable-780cbd26.js";import"./trading_partner-798a55a7.js";function _e(a){return k({url:"/dc/otherAssets/list",method:"get",params:a})}function ge(a){return k({url:"/dc/otherAssets/listFile",method:"get",params:a})}function be(a){return k({url:"/dc/otherAssets/"+a,method:"delete"})}function Ce(a){return k({url:"/dc/otherAssets/updateBatch",method:"put",data:a})}const he={class:"pl16px pr16px"},ke={class:"flex-items-center"},Ae={key:0,class:"ml12px"},Fe=ie({name:"otherAssetInformation"}),Pe=Object.assign(Fe,{props:{options:{type:Object,default:()=>({})}},setup(a){const q=a,H=C(()=>h(()=>import("./index-6643d5a2.js"),["static/js/index-6643d5a2.js","static/js/index-9b4667b6.js","static/css/index-03655e05.css","static/js/bank_statement-2db2088f.js","static/js/useAvueTable-780cbd26.js","static/js/trading_partner-798a55a7.js","static/css/index-36cb5856.css"])),K=C(()=>h(()=>import("./index-28c0ae8e.js"),["static/js/index-28c0ae8e.js","static/js/index-9b4667b6.js","static/css/index-03655e05.css","static/js/analysis_results-1bd8be45.js"])),W=C(()=>h(()=>import("./index-12fefdae.js"),["static/js/index-12fefdae.js","static/js/index-9b4667b6.js","static/css/index-03655e05.css"])),M=C(()=>h(()=>import("./index-d01c7006.js"),["static/js/index-d01c7006.js","static/js/index-9b4667b6.js","static/css/index-03655e05.css","static/css/index-97466c05.css"])),m=ue(),p=de(),{sideTheme:A,crud:F,loading:Q,option:y,dataList:w,selectionList:v,pages:_,dialogFileVisible:g,resetPage:L,getFilterParams:G,loadData:J,sortChange:X,getRowStyle:Y,getCellStyle:Z,handleDelete:ee,filterTags:R,delFilterTags:te,resetFilter:se,changePage:le}=ve(),{proxy:x}=ye(),r=async(l={})=>{let e=ge;if(p.path==="/searchCenter/data-query-center"){if(Object.keys(m.dataQueryCenterForm).length===0)return w.value=[];l=m.dataQueryCenterForm,e=_e}p.path==="/analysisCenter/analysis_result_details"&&(l=m.analysisResultParams);const i=G(l);J(i,e)},S=N(),b=N(!1),ne=(l,e)=>{S.value=e,b.value=!0},I=l=>{if(l==="\u6279\u91CF"){if(v.value.length===0)return x.$modal.msgWarning("\u8BF7\u52FE\u9009\u9700\u8981\u4E0B\u8F7D\u7684\u6587\u4EF6\uFF01");v.value.forEach(e=>{x.$download.oss(e.ossId)})}typeof l=="object"&&x.$download.oss(l.ossId)};return pe(()=>{["/searchCenter/data-query-center","/analysisCenter/analysis_result_details"].includes(p.path)&&(P.on("loadTableData",l=>{const{currentComponent:e,count:i}=l;if(e==="otherAssetInformation"){if(i===0)return w.value=[];r()}}),P.on("handleExport",l=>{l==="otherAssetInformation"&&I()}),P.on("clearSelection",l=>{l==="otherAssetInformation"&&F.value.clearSelection()}))}),y.value={...y.value,selection:!0,...q.options,column:[{label:"\u6587\u4EF6\u540D\u79F0",prop:"originalName",unWidth:!0},{label:"\u4E0A\u4F20\u65F6\u95F4",prop:"createTime",type:"date_range",unWidth:!0}]},(l,e)=>{var D;const i=c("el-button"),oe=c("el-tag"),ae=c("filterHeader"),O=c("el-link"),re=c("avue-crud");return f(),T("div",he,[o(re,{class:z({"crud-dark":s(A)}),ref_key:"crud",ref:F,"table-loading":s(Q),onOnLoad:e[6]||(e[6]=()=>r()),data:s(w),option:s(y),page:s(_),"onUpdate:page":e[7]||(e[7]=t=>E(_)?_.value=t:null),onSortChange:e[8]||(e[8]=t=>s(X)(t,r)),onSelectionChange:e[9]||(e[9]=t=>v.value=t),"row-style":({row:t})=>s(Y)(t),"cell-style":({row:t,column:d})=>s(Z)(t,d),rowKey:t=>t.id},ce({"menu-left":n(({})=>[V("div",ke,[o(i,{type:"primary",onClick:e[0]||(e[0]=t=>g.value=!0)},{default:n(()=>[u("\u5BFC\u5165")]),_:1}),o(i,{type:"primary",onClick:e[1]||(e[1]=t=>I("\u6279\u91CF"))},{default:n(()=>[u("\u6279\u91CF\u5BFC\u51FA")]),_:1}),o(i,{type:"primary",onClick:e[2]||(e[2]=t=>s(ee)({key:"ossId",fn:s(be),cb:r,delAllParams:{index:"dc_other_assets"}}))},{default:n(()=>[u("\u5220\u9664")]),_:1}),s(R).length!==0?(f(),T("div",Ae,[o(i,{class:"cus-btn mr6px",onClick:e[3]||(e[3]=t=>s(se)({cb:r}))},{default:n(()=>[u("\u91CD\u7F6E\u7B5B\u9009")]),_:1}),(f(!0),T(fe,null,j(s(R),t=>(f(),B(oe,{key:t.key,class:"mx-6px",closable:"",size:"large",effect:s(A)?"dark":"light",onClose:d=>s(te)({tag:t,cb:r})},{default:n(()=>[u($(t.label)+"\uFF1A",1),V("span",{style:me({color:s(A)?"#ffeb3b":"#ff5722"})},$(t.value),5)]),_:2},1032,["effect","onClose"]))),128))])):U("",!0)])]),originalName:n(({row:t})=>[o(O,{type:"primary",onClick:d=>ne(d,t)},{default:n(()=>[u($(t.originalName),1)]),_:2},1032,["onClick"])]),menu:n(({row:t})=>[o(O,{type:"primary",onClick:d=>I(t)},{default:n(()=>[u("\u4E0B\u8F7D")]),_:2},1032,["onClick"])]),footer:n(()=>[V("div",{class:z(["flex-items-center justify-between mt4px",{"justify-end!":s(p).path==="/analysisCenter/analysis_result_details"}])},[s(p).path!=="/analysisCenter/analysis_result_details"?(f(),B(s(K),{key:0,tableRef:s(F),list:s(v),options:{id:"ossId",fn:s(Ce)}},null,8,["tableRef","list","options"])):U("",!0),o(s(M),{total:s(_).total,onChangePage:e[5]||(e[5]=t=>s(le)(t,r))},null,8,["total"])],2)]),_:2},[j(s(y).column,t=>({name:t.slotName,fn:n(()=>[o(ae,{column:t,onCallback:e[4]||(e[4]=d=>s(L)({cb:r}))},null,8,["column"])])}))]),1032,["class","table-loading","data","option","page","row-style","cell-style","rowKey"]),o(s(H),{visible:s(g),"onUpdate:visible":e[10]||(e[10]=t=>E(g)?g.value=t:null),ref:"uploadRef",action:"/dc/otherAssets/import",accept:"*",data:{caseId:(D=s(m).currentCase)==null?void 0:D.id},downLoadTemplate:!1,limit:9,multiple:"",onHandleFileSuccess:e[11]||(e[11]=t=>s(L)({cb:r}))},null,8,["visible","data"]),o(s(W),{previewFileVisible:s(b),"onUpdate:previewFileVisible":e[12]||(e[12]=t=>E(b)?b.value=t:null),file:s(S)},null,8,["previewFileVisible","file"])])}}});export{Pe as default};