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,p as g,i as b}from"./vendor.08ecc2ea.js";import{g as f}from"./order.24c996ac.js";import{_ as w}from"./index.4567af67.js";import"./request.33748d8c.js";const h={name:"order-deal",setup(){e();const t=a({path:"deal",name:"",code:"",mobile:"",subid:"",page:1,pageSize:10}),r=l(!0),d=l([]),n=l(0),u=()=>{f(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()}}}},_={class:"crumbs"},v=(e=>(g("data-v-60cd2fb7"),e=e(),b(),e))((()=>d("i",{class:"el-icon-lx-sort"},null,-1))),y=p(" 持仓列表 "),q={class:"container"},V={class:"handle-box"},z=p("搜索"),C={class:"number"},x={class:"grey"},j=p("￥"),D=p("￥"),S={class:"red"},U={class:"grey"},k={class:"pagination"};var I=w(h,[["render",function(e,a,l,g,b,f){const w=s("el-breadcrumb-item"),h=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"),A=s("el-pagination"),B=c("loading");return t(),r("div",null,[d("div",_,[n(h,{separator:"/"},{default:u((()=>[n(w,null,{default:u((()=>[v,y])),_:1})])),_:1})]),d("div",q,[d("div",V,[n(I,{modelValue:g.query.name,"onUpdate:modelValue":a[0]||(a[0]=e=>g.query.name=e),placeholder:"输入股票名称",class:"w-180 handle-input mr10",clearable:""},null,8,["modelValue"]),n(I,{modelValue:g.query.code,"onUpdate:modelValue":a[1]||(a[1]=e=>g.query.code=e),placeholder:"输入股票代码",class:"w-180 handle-input mr10",clearable:""},null,8,["modelValue"]),n(I,{modelValue:g.query.mobile,"onUpdate:modelValue":a[2]||(a[2]=e=>g.query.mobile=e),placeholder:"输入手机号",class:"w-180 handle-input mr10",clearable:""},null,8,["modelValue"]),n(I,{modelValue:g.query.subid,"onUpdate:modelValue":a[3]||(a[3]=e=>g.query.subid=e),placeholder:"输入子账号",class:"w-180 handle-input mr10",clearable:""},null,8,["modelValue"]),n(T,{type:"primary",icon:"el-icon-search",onClick:g.handleSearch},{default:u((()=>[z])),_:1},8,["onClick"])]),o((t(),i(L,{data:g.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",C,m(e.row.mobile),1)])),_:1}),n(P,{label:"操盘账号",align:"center",width:"150"},{default:u((e=>[d("div",x,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((()=>[j])),_:1}),p(m(e.row.trust_price),1)]),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"},{default:u((e=>[d("div",null,[n(H,{size:"1"},{default:u((()=>[D])),_:1}),p(m(e.row.deal_price),1)]),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",width:"150"},{default:u((e=>[d("div",S,m(e.row.amount)+" 元",1)])),_:1}),n(P,{label:"成交时间/单号",align:"center"},{default:u((e=>[d("div",null,m(e.row.deal_date)+" "+m(e.row.deal_time),1),d("div",U,"单号："+m(e.row.deal_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:"120"},{default:u((e=>[d("div",null,[n(G,{type:"买入成交"==e.row.status?"success":"卖出成交"==e.row.status?"primary":"info"},{default:u((()=>[p(m(e.row.status),1)])),_:2},1032,["type"])])])),_:1})])),_:1},8,["data"])),[[B,g.loading]]),d("div",k,[n(A,{background:"",layout:"total, prev, pager, next","current-page":g.query.page,"page-size":g.query.pageSize,total:g.pageTotal,onCurrentChange:g.handlePageChange},null,8,["current-page","page-size","total","onCurrentChange"])])])])}],["__scopeId","data-v-60cd2fb7"]]);export{I as default};
