import{u as e,a,G as l,o as r,e as d,f as t,g as n,w as s,H as u,c as i,r as o,L as c,h as m,t as p,p as b,i as g}from"./vendor.347ab8d9.js";import{g as _}from"./order.e1413c18.js";import{_ as f}from"./index.445d72dc.js";import"./request.1c9a9217.js";const w={name:"order-delivery",setup(){e();const r=a({path:"delivery",name:"",code:"",mobile:"",subid:"",page:1,pageSize:10}),d=l(!0),t=l([]),n=l(0),s=()=>{_(r).then((e=>{t.value=e.data.data,n.value=e.data.total||0,d.value=!1}))};s();return{query:r,loading:d,tableData:t,pageTotal:n,handleSearch:()=>{d.value=!0,r.page=1,s()},handlePageChange:e=>{d.value=!0,r.page=e,s()}}}},v={class:"crumbs"},h=(e=>(b("data-v-6b8f9fb6"),e=e(),g(),e))((()=>t("i",{class:"el-icon-lx-sort"},null,-1))),y=m(" 持仓列表 "),q={class:"container"},z={class:"handle-box"},V=m("搜索"),C={class:"number"},x={class:"grey"},j=m("￥"),S={class:"red"},U=m("￥"),k={class:"red number"},D=m("￥"),T={class:"green number"},I=m("￥"),P={class:"grey"},G={class:"grey"},H={class:"pagination"};var L=f(w,[["render",function(e,a,l,b,g,_){const f=o("el-breadcrumb-item"),w=o("el-breadcrumb"),L=o("el-input"),A=o("el-button"),B=o("el-table-column"),E=o("el-tag"),F=o("font"),J=o("el-table"),K=o("el-pagination"),M=c("loading");return r(),d("div",null,[t("div",v,[n(w,{separator:"/"},{default:s((()=>[n(f,null,{default:s((()=>[h,y])),_:1})])),_:1})]),t("div",q,[t("div",z,[n(L,{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(L,{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(L,{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(L,{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(A,{type:"primary",icon:"el-icon-search",onClick:b.handleSearch},{default:s((()=>[V])),_:1},8,["onClick"])]),u((r(),i(J,{data:b.tableData,border:"",class:"table",ref:"multipleTable","header-cell-class-name":"table-header"},{default:s((()=>[n(B,{label:"ID",align:"center",width:"80"},{default:s((e=>[m(p(e.row.id),1)])),_:1}),n(B,{label:"姓名/手机",align:"center",width:"150"},{default:s((e=>[t("div",null,p(e.row.name||"--"),1),t("div",C,p(e.row.mobile),1)])),_:1}),n(B,{label:"操盘账号",align:"center",width:"150"},{default:s((e=>[t("div",x,p(e.row.soruce),1),t("div",null,p(e.row.sub_account),1)])),_:1}),n(B,{label:"代码/名称",align:"center",width:"150"},{default:s((e=>[t("div",null,[n(E,{size:"small",type:"danger"},{default:s((()=>[m(p(e.row.gupiao_code),1)])),_:2},1024)]),t("div",null,p(e.row.gupiao_name),1)])),_:1}),n(B,{label:"成交价格/数量/金额",align:"center",width:"150"},{default:s((e=>[t("div",null,[n(F,{size:"1"},{default:s((()=>[j])),_:1}),m(p(e.row.deal_price),1)]),t("div",null,[n(E,{size:"mini",type:"danger"},{default:s((()=>[m(p(e.row.volume)+" 股",1)])),_:2},1024)]),t("div",S,[n(F,{size:"1"},{default:s((()=>[U])),_:1}),m(p(e.row.residual_quantity),1)])])),_:1}),n(B,{label:"印花税 | 过户费 | 净佣金",align:"center",width:"180"},{default:s((e=>[t("div",null,[n(E,{class:"mr-1",size:"small",type:"primary"},{default:s((()=>[m(p(e.row.stamp_duty),1)])),_:2},1024),n(E,{class:"mr-1",size:"small",type:"warning"},{default:s((()=>[m(p(e.row.transfer_fee),1)])),_:2},1024),n(E,{class:"mr-1",size:"small",type:"success"},{default:s((()=>[m(p(e.row.commission),1)])),_:2},1024)])])),_:1}),n(B,{label:"清算金额",align:"center"},{default:s((e=>[t("div",k,[n(F,{size:"1"},{default:s((()=>[D])),_:1}),m(p(e.row.liquidation_amount),1)])])),_:1}),n(B,{label:"剩余金额",align:"center"},{default:s((e=>[t("div",T,[n(F,{size:"1"},{default:s((()=>[I])),_:1}),m(p(e.row.residual_amount),1)])])),_:1}),n(B,{label:"买卖类型",align:"center",width:"150"},{default:s((e=>[t("div",null,[n(E,{size:"small",type:"证券买入"==e.row.business_name?"success":"证券卖出"==e.row.business_name?"primary":"info"},{default:s((()=>[m(p(e.row.business_name),1)])),_:2},1032,["type"]),t("div",null,p(e.row.deal_date),1)])])),_:1}),n(B,{label:"委托/成交单号",align:"center",width:"220"},{default:s((e=>[t("div",P,"委托："+p(e.row.trust_no),1),t("div",G,"成交："+p(e.row.deal_no),1)])),_:1})])),_:1},8,["data"])),[[M,b.loading]]),t("div",H,[n(K,{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-6b8f9fb6"]]);export{L as default};
