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