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