import{u as e,a,G as l,o as t,e as r,f as d,g as n,w as u,H as o,c as i,r as s,L as c,h as p,t as m,M as g,p as b,i as h}from"./vendor.347ab8d9.js";import{g as w}from"./order.e1413c18.js";import{_ as f}from"./index.445d72dc.js";import"./request.1c9a9217.js";const _={name:"order-truet",setup(){e();const t=a({path:"trust",name:"",code:"",mobile:"",subid:"",page:1,pageSize:10}),r=l(!0),d=l([]),n=l(0),u=()=>{w(t).then((e=>{d.value=e.data.data,n.value=e.data.total||0,r.value=!1}))};u();return{query:t,loading:r,tableData:d,pageTotal:n,handleSearch:()=>{r.value=!0,t.page=1,u()},handlePageChange:e=>{r.value=!0,t.page=e,u()}}}},v={class:"crumbs"},y=(e=>(b("data-v-c233de7e"),e=e(),h(),e))((()=>d("i",{class:"el-icon-lx-sort"},null,-1))),q=p(" 持仓列表 "),V={class:"container"},z={class:"handle-box"},C=p("搜索"),x={class:"number"},j={class:"grey"},k=p("￥"),D={class:"red"},S={class:"grey"},U={class:"pagination"};var I=f(_,[["render",function(e,a,l,b,h,w){const f=s("el-breadcrumb-item"),_=s("el-breadcrumb"),I=s("el-input"),T=s("el-button"),P=s("el-table-column"),G=s("el-tag"),H=s("font"),L=s("el-table"),M=s("el-pagination"),A=c("loading");return t(),r("div",null,[d("div",v,[n(_,{separator:"/"},{default:u((()=>[n(f,null,{default:u((()=>[y,q])),_:1})])),_:1})]),d("div",V,[d("div",z,[n(I,{modelValue:b.query.name,"onUpdate:modelValue":a[0]||(a[0]=e=>b.query.name=e),placeholder:"输入股票名称",class:"w-180 handle-input mr10",clearable:""},null,8,["modelValue"]),n(I,{modelValue:b.query.code,"onUpdate:modelValue":a[1]||(a[1]=e=>b.query.code=e),placeholder:"输入股票代码",class:"w-180 handle-input mr10",clearable:""},null,8,["modelValue"]),n(I,{modelValue:b.query.mobile,"onUpdate:modelValue":a[2]||(a[2]=e=>b.query.mobile=e),placeholder:"输入手机号",class:"w-180 handle-input mr10",clearable:""},null,8,["modelValue"]),n(I,{modelValue:b.query.subid,"onUpdate:modelValue":a[3]||(a[3]=e=>b.query.subid=e),placeholder:"输入子账号",class:"w-180 handle-input mr10",clearable:""},null,8,["modelValue"]),n(T,{type:"primary",icon:"el-icon-search",onClick:b.handleSearch},{default:u((()=>[C])),_:1},8,["onClick"])]),o((t(),i(L,{data:b.tableData,border:"",class:"table",ref:"multipleTable","header-cell-class-name":"table-header"},{default:u((()=>[n(P,{label:"ID",align:"center",width:"60",prop:"ID",sortable:""},{default:u((e=>[p(m(e.row.id),1)])),_:1}),n(P,{label:"姓名/手机",align:"center",width:"150"},{default:u((e=>[d("div",null,m(e.row.name||"--"),1),d("div",x,m(e.row.mobile),1)])),_:1}),n(P,{label:"操盘账号",align:"center",width:"150"},{default:u((e=>[d("div",j,m(e.row.soruce),1),d("div",null,m(e.row.sub_account),1)])),_:1}),n(P,{label:"代码/名称",align:"center",width:"150"},{default:u((e=>[d("div",null,[n(G,{size:"small",type:"danger"},{default:u((()=>[p(m(e.row.gupiao_code),1)])),_:2},1024)]),d("div",null,m(e.row.gupiao_name),1)])),_:1}),n(P,{label:"委托价格",align:"center",width:"150"},{default:u((e=>[d("div",null,[n(H,{size:"1"},{default:u((()=>[k])),_:1}),p(m(e.row.trust_price),1)])])),_:1}),n(P,{label:"委托数量",align:"center",width:"150",prop:"canbuy_count",sortable:""},{default:u((e=>[d("div",null,[n(G,{size:"small",type:"primary"},{default:u((()=>[p(m(e.row.trust_count)+" 股",1)])),_:2},1024)])])),_:1}),n(P,{label:"成交数量",align:"center",width:"150",prop:"stock_count",sortable:""},{default:u((e=>[d("div",null,[n(G,{size:"small",type:"danger"},{default:u((()=>[p(m(e.row.volume)+" 股",1)])),_:2},1024)])])),_:1}),n(P,{label:"成交金额",align:"center"},{default:u((e=>[d("div",D,m(e.row.amount)+" 元",1)])),_:1}),n(P,{label:"委托时间/单号",align:"center",prop:"add_time",width:"200",sortable:""},{default:u((e=>[d("div",null,m(e.row.add_time),1),d("div",S,"单号："+m(e.row.trust_no),1)])),_:1}),n(P,{label:"买卖类型",align:"center",width:"120"},{default:u((e=>[d("div",null,[n(G,{type:0==e.row.flag1?"success":1==e.row.flag1?"primary":"info"},{default:u((()=>[p(m(e.row.flag2),1)])),_:2},1032,["type"])])])),_:1}),n(P,{label:"委托信息",align:"center",width:"100"},{default:u((e=>[o(d("div",null,[n(G,{type:"danger"},{default:u((()=>[p(m(e.row.beizhu),1)])),_:2},1024)],512),[[g,e.row.beizhu]])])),_:1}),n(P,{label:"委托状态",align:"center",width:"80"},{default:u((e=>[d("div",null,[n(G,{type:"已成"==e.row.status?"success":"已撤"==e.row.status?"info":"primary"},{default:u((()=>[p(m(e.row.status),1)])),_:2},1032,["type"])])])),_:1})])),_:1},8,["data"])),[[A,b.loading]]),d("div",U,[n(M,{background:"",layout:"total, prev, pager, next","current-page":b.query.page,"page-size":b.query.pageSize,total:b.pageTotal,onCurrentChange:b.handlePageChange},null,8,["current-page","page-size","total","onCurrentChange"])])])])}],["__scopeId","data-v-c233de7e"]]);export{I as default};
