import{d as h,r as w,w as x,o as y,A as v,B as n,f as e,a as l,E as I,X as N,K as k,Y as T,__tla as B}from"./index-92ad187a.js";import{d as i,__tla as C}from"./formatTime-c7f253d6.js";import{e as L,__tla as A}from"./index-fed01cbc.js";let p,E=Promise.all([(()=>{try{return B}catch{}})(),(()=>{try{return C}catch{}})(),(()=>{try{return A}catch{}})()]).then(async()=>{p=h({name:"BusinessList",__name:"BusinessList",props:{businessIds:{default:()=>[]}},emits:["update:businessIds"],setup(c,{emit:d}){const m=c,t=w([]);x(()=>m.businessIds,r=>{r&&r.length!==0&&(t.value=L(r))});const u=d;return(r,K)=>{const a=N,_=k,f=T;return y(),v(f,{data:l(t),"show-overflow-tooltip":!0,stripe:!0,height:"200"},{default:n(()=>[e(a,{align:"center",label:"\u5546\u673A\u540D\u79F0",prop:"name"}),e(a,{align:"center",label:"\u5BA2\u6237\u540D\u79F0",prop:"customerName"}),e(a,{align:"center",label:"\u5546\u673A\u91D1\u989D",prop:"price"}),e(a,{formatter:l(i),align:"center",label:"\u9884\u8BA1\u6210\u4EA4\u65E5\u671F",prop:"dealTime",width:"120px"},null,8,["formatter"]),e(a,{align:"center",label:"\u5546\u673A\u72B6\u6001\u7C7B\u578B",prop:"statusTypeName",width:"120"}),e(a,{align:"center",label:"\u5546\u673A\u72B6\u6001",prop:"statusName"}),e(a,{formatter:l(i),align:"center",label:"\u66F4\u65B0\u65F6\u95F4",prop:"updateTime",width:"180px"},null,8,["formatter"]),e(a,{formatter:l(i),align:"center",label:"\u521B\u5EFA\u65F6\u95F4",prop:"createTime",width:"180px"},null,8,["formatter"]),e(a,{align:"center",label:"\u8D1F\u8D23\u4EBA",prop:"ownerUserName",width:"120"}),e(a,{align:"center",label:"\u521B\u5EFA\u4EBA",prop:"creatorName",width:"120"}),e(a,{align:"center",label:"\u5907\u6CE8",prop:"remark"}),e(a,{align:"center",fixed:"right",label:"\u64CD\u4F5C",width:"130"},{default:n(b=>[e(_,{link:"",type:"danger",onClick:P=>(g=>{const o=t.value.findIndex(s=>s.id===g);o!==-1&&t.value.splice(o,1),u("update:businessIds",t.value.map(s=>s.id))})(b.row.id)},{default:n(()=>[I(" \u79FB\u9664")]),_:2},1032,["onClick"])]),_:1})]),_:1},8,["data"])}}})});export{p as _,E as __tla};
