import{d as _,O as y,Y as N,r as z,a as D,o as M,c as r,Z as B,f as m,g as Y,h as c,l as o,m as u,j as g,i as k,w as R,M as S,e as x,_ as V}from"./index.2c7321ca.js";import{C as T}from"./api.7608f319.js";import"./index.2ecac4c1.js";import{_ as O}from"./_plugin-vue_export-helper.cdc0426e.js";const j={class:"section-main-container layout-padding"},I={class:"section-main-padding layout-padding-auto layout-padding-view"},U={class:"section-user-search mb15"},H=_({name:"targetData"}),J=_({...H,setup(P){const f=y(()=>V(()=>import("./dialog.575d3259.js"),["assets/dialog.575d3259.js","assets/api.7608f319.js","assets/index.2c7321ca.js","assets/index.319ce9dc.css","assets/_plugin-vue_export-helper.cdc0426e.js"]));N();const b=z(),t=D({tableData:{data:[],total:0,loading:!1,param:{startDateEndArr:[],startDateEndArrRest:[],startDate:"",endDate:"",pageNumber:1,pageSize:10}}}),n=()=>{t.tableData.loading=!0;let e=JSON.parse(JSON.stringify(t.tableData.param));e.startDateEndArr.length&&(e.startDate=e.startDateEndArr[0],e.endDate=e.startDateEndArr[1]),delete e.startDateEndArr,delete e.startDateEndArrRest,T().tradedetailtaskApi(e).then(a=>{console.log("response\u67E5\u8BE2",a),a.code==200&&(t.tableData.data=a.data.list,t.tableData.total=a.data.total)}).catch(a=>{}),setTimeout(()=>{t.tableData.loading=!1},500)},E=()=>{let e={pageNumber:1,pageSize:10,startDate:"",endDate:"",startDateEndArr:t.tableData.param.startDateEndArrRest,startDateEndArrRest:[]};t.tableData.param=D(e),n()},v=e=>{t.tableData.param.pageSize=e,n()},w=e=>{t.tableData.param.pageNumber=e,n()};return M(()=>{var e=new Date;let a=e.getFullYear()+"-"+(e.getMonth()+1<10?"0"+(e.getMonth()+1):e.getMonth()+1)+"-"+(e.getDate()<10?"0"+e.getDate():e.getDate());e.setDate(e.getDate()-6);var p=e.getFullYear()+"-"+(e.getMonth()+1<10?"0"+(e.getMonth()+1):e.getMonth()+1)+"-"+(e.getDate()<10?"0"+e.getDate():e.getDate());console.log("endDate",p),t.tableData.param.startDateEndArr=[""+p,""+a],t.tableData.param.startDateEndArrRest=[""+p,""+a],n()}),(e,a)=>{const p=r("el-date-picker"),i=r("el-form-item"),d=r("el-button"),h=r("el-form"),l=r("el-table-column"),A=r("el-table"),C=r("el-pagination"),F=B("loading");return m(),Y("div",j,[c("div",I,[c("div",U,[o(h,{inline:!0,model:t.tableData.param,class:"demo-form-inline","label-position":"left",size:"default",onSubmit:a[1]||(a[1]=k(()=>{},["prevent"]))},{default:u(()=>[o(i,{label:"\u4EA4\u6613\u65E5\u671F"},{default:u(()=>[o(p,{modelValue:t.tableData.param.startDateEndArr,"onUpdate:modelValue":a[0]||(a[0]=s=>t.tableData.param.startDateEndArr=s),type:"daterange","range-separator":"-","start-placeholder":"\u5F00\u59CB\u65E5\u671F","end-placeholder":"\u7ED3\u675F\u65E5\u671F",format:"YYYY-MM-DD","value-format":"YYYY-MM-DD"},null,8,["modelValue"])]),_:1}),o(i,null,{default:u(()=>[o(d,{type:"primary",onClick:n},{default:u(()=>[g("\u67E5\u8BE2")]),_:1}),o(d,{type:"default",onClick:E},{default:u(()=>[g("\u91CD\u7F6E")]),_:1})]),_:1})]),_:1},8,["model"])]),R((m(),S(A,{data:t.tableData.data,style:{width:"100%"}},{default:u(()=>[o(l,{prop:"tradeDate",label:"\u4EA4\u6613\u65F6\u95F4","show-overflow-tooltip":""}),o(l,{prop:"tradeFlowNo",label:"\u4EA4\u6613\u6D41\u6C34\u53F7","show-overflow-tooltip":""}),o(l,{prop:"flowNo",label:"\u8D22\u52A1\u6D41\u6C34\u53F7","show-overflow-tooltip":""}),o(l,{prop:"accountOutName",label:"\u51FA\u8D26\u65B9","show-overflow-tooltip":""}),o(l,{prop:"accountInName",label:"\u5165\u8D26\u65B9","show-overflow-tooltip":""}),o(l,{prop:"amount",label:"\u4EA4\u6613\u91D1\u989D","show-overflow-tooltip":""}),o(l,{prop:"direction",label:"\u8D44\u91D1\u6D41\u5411","show-overflow-tooltip":""}),o(l,{prop:"tradeType",label:"\u4EA4\u6613\u7C7B\u578B","show-overflow-tooltip":""}),o(l,{prop:"accountsDealDate",label:"\u8D26\u52A1\u5904\u7406\u65F6\u95F4","show-overflow-tooltip":""}),o(l,{prop:"memo",label:"\u5907\u6CE8","show-overflow-tooltip":""})]),_:1},8,["data"])),[[F,t.tableData.loading]]),o(C,{onSizeChange:v,onCurrentChange:w,class:"mt15","pager-count":5,"page-sizes":[10,20,30,100,200,300,1e3],"current-page":t.tableData.param.pageNumber,"onUpdate:current-page":a[2]||(a[2]=s=>t.tableData.param.pageNumber=s),background:"","page-size":t.tableData.param.pageSize,"onUpdate:page-size":a[3]||(a[3]=s=>t.tableData.param.pageSize=s),layout:"total, sizes, prev, pager, next, jumper",total:t.tableData.total},null,8,["current-page","page-size","total"])]),o(x(f),{ref_key:"configDialogRef",ref:b,onRefresh:a[4]||(a[4]=s=>n())},null,512)])}}});const G=O(J,[["__scopeId","data-v-a6c2e44e"]]);export{G as default};
