| 1 |
- var V=(x,p,s)=>new Promise((S,C)=>{var v=m=>{try{y(s.next(m))}catch(b){C(b)}},N=m=>{try{y(s.throw(m))}catch(b){C(b)}},y=m=>m.done?S(m.value):Promise.resolve(m.value).then(v,N);y((s=s.apply(x,p)).next())});import{bA as q,b9 as G,bT as L,a$ as e}from"./bootstrap-CQ5rTwfJ.js";import{a as T}from"./game_config-CyCssdt5.js";import{T as A,P as B,b1 as w,aa as u,ab as n,ac as r,x as i,a7 as t,ai as d,aj as o,ad as E,aD as P,aq as g,av as R}from"../jse/index-index-Q2B3Lnp0.js";import{u as F}from"./vxe-table-BzO-yjRE.js";import{C as I}from"./index-ChmxLqyD.js";import H,{SelectOption as D}from"./index-N_YpnBu0.js";import M,{InputGroup as $}from"./index-BEV4jEiZ.js";import{T as f}from"./index-CiKR4PsF.js";import{A as z}from"./index-BGS8aQvQ.js";import{_ as j}from"./page.vue_vue_type_script_setup_true_lang-BMCMZddy.js";import"./BaseInput-DOWj-ov2.js";import"./useMergedState-SL720b54.js";import"./EyeOutlined-DjiRn3rd.js";import"./index-ixmOklKB.js";import"./shallowequal-D0ZF_fcn.js";import"./Trigger-CZJfSi0F.js";import"./vnode-BhnYcpm_.js";import"./ResizeObserver.es-CDE7jhPe.js";import"./collapse-BuqCI_Sc.js";import"./Overflow-CRtcBvrj.js";import"./index-CrLh6Ewq.js";import"./index-NPfDTUUr.js";import"./colors-hKX2Xo73.js";import"./collapseMotion-BqjJHzMo.js";import"./slide-BiS-24Ww.js";import"./useRefs-B9Kl6FQn.js";import"./hasIn-Lut7Mf-l.js";import"./isMobile-8sZ0LT6r.js";import"./isPlainObject-DjrJxqdl.js";import"./index-D-o-JaxJ.js";import"./DownOutlined-DPvQNs9k.js";import"./CheckOutlined-DgnjNfmG.js";import"./SearchOutlined-CpxoRKq5.js";import"./move-BbN49oe4.js";import"./FormItemContext-Bn9lx9Ko.js";import"./statusUtils-DJCwWrjv.js";import"./index-BYoIvu_B.js";import"./responsiveObserve-CvjpQVb0.js";import"./eagerComputed-BAjkkmt1.js";function U(x){return V(this,null,function*(){const s=new URLSearchParams(x).toString();return q.get("/game_order/list?"+s)})}const Q={class:"vp-raw w-full"},J={style:{color:"red"}},K={key:0,style:{color:"green"}},W={key:1,style:{color:"red"}},X={key:0,style:{color:"green"}},Z={key:1,style:{color:"red"}},ee={style:{"margin-left":".5rem",display:"inline-block"}},te={__name:"index",setup(x){const p=A({search_type:"uname"}),s=B([]);T().then(_=>{_.forEach(h=>{s.value.push({label:`【${h.game_id}】${h.title}`,value:h.game_id})})});const S=_=>_&&_>w().endOf("day"),[C,v]=L({collapsed:!1,commonConfig:{componentProps:{class:"w-full"}},handleSubmit:N,handleReset:y,layout:"horizontal",schema:[{label:e("common.range_time"),component:"RangePicker",defaultValue:[w(),w()],fieldName:"range_time",componentProps:{disabledDate:S,showTime:{hideDisabledOptions:!0,defaultValue:[w("00:00:00","HH:mm:ss"),w("11:59:59","HH:mm:ss")]}}},{component:"Select",componentProps:{allowClear:!0,filterOption:!0,name:"game_id",options:s,placeholder:e("common.placeholder_select"),showSearch:!0},fieldName:"game_id",label:e("game_control.game")},{component:"Input",fieldName:"search_text"},{component:"Select",defaultValue:"",componentProps:{filterOption:!0,name:"order_status",options:[{label:e("common.all"),value:""},{label:e("common.success"),value:"2"},{label:e("common.abnormal"),value:"0"},{label:e("common.warn"),value:"1"}],placeholder:e("common.placeholder_select")},fieldName:"order_status",label:e("player_data.search.order_status")},{component:"Input",fieldName:"third_order_id",label:e("player_data.search.order_id"),componentProps:{allowClear:!0}},{component:"Input",fieldName:"third_gid",label:e("player_data.search.third_gid"),componentProps:{allowClear:!0}},{component:"Input",fieldName:"third_round_id",label:e("player_data.search.third_round_id"),componentProps:{allowClear:!0}}],submitButtonOptions:{content:"查询"},wrapperClass:"grid-cols-1 md:grid-cols-3"});function N(_){O.reload()}function y(){v.resetForm(),p.search_type="uname",O.reload()}const m={border:!0,stripe:!0,scrollbarConfig:{x:{visible:"visible"},y:{visible:"auto"}},columns:[{fixed:"left",title:"序号",type:"seq",width:50},{fixed:"left",field:"third_gid",title:e("player_data.search.third_gid"),width:230,titlePrefix:{content:e("player_data.gameRecords.tips.third_gid")},treeNode:!0},{field:"third_order_id",title:e("player_data.fundsChange.uuid"),width:230},{field:"third_round_id",title:e("player_data.gameRecords.third_round_id"),width:230,titlePrefix:{content:e("player_data.gameRecords.tips.third_round_id")}},{field:"nickname",title:e("player_data.gameRecords.nickname"),width:150,titlePrefix:{content:e("player_data.gameRecords.tips.nickname")}},{field:"user_id",title:e("player_data.gameRecords.user_id"),width:120,titlePrefix:{content:e("player_data.gameRecords.tips.user_id")}},{field:"uname",title:e("player_data.gameRecords.uname"),width:150,titlePrefix:{content:e("player_data.gameRecords.tips.uname")}},{align:"left",field:"game_title",title:e("player_data.gameRecords.game_title"),width:200,slots:{default:"game_title"}},{field:"amount",title:e("player_data.fundsChange.change_amount"),width:140,slots:{default:"amount"}},{field:"prev_amount",title:e("player_data.gameRecords.prev_amount"),width:140,titlePrefix:{content:e("player_data.gameRecords.tips.prev_amount")}},{field:"next_amount",title:e("player_data.gameRecords.next_amount"),width:140,titlePrefix:{content:e("player_data.gameRecords.tips.next_amount")}},{field:"bet",title:e("player_data.fundsChange.bet_amount"),width:140,titlePrefix:{content:e("player_data.gameRecords.tips.bet_amount")},slots:{default:"bet_amount"}},{field:"total_win_amount",title:e("player_data.fundsChange.change_total_amount"),width:140,slots:{default:"total_win_amount"}},{field:"total_amount",title:e("player_data.fundsChange.total_amount"),width:140},{field:"action_type",title:e("player_data.fundsChange.order_type"),width:140,slots:{default:"action_type"}},{field:"status",title:e("player_data.fundsChange.order_status"),width:140,slots:{default:"status"}},{field:"reason",title:e("player_data.fundsChange.reason"),width:200},{field:"create_time",title:e("player_data.gameRecords.create_time"),width:200,titlePrefix:{content:e("player_data.gameRecords.tips.create_time")}}],exportConfig:{},keepSource:!0,treeConfig:{transform:!0,parentField:"parent_id",rowField:"id"},proxyConfig:{ajax:{query:h=>V(null,[h],function*({page:_}){let a={page:_.currentPage,limit:_.pageSize,compress:0};const c=yield v.getValues();["game_id","search_text","order_status","third_order_id","third_gid","third_round_id"].forEach(l=>{c[l]&&(a[l]=c[l])}),c.range_time&&(a.start_time=c.range_time[0].format("YYYY-MM-DD"),a.end_time=c.range_time[1].format("YYYY-MM-DD"));const k=yield U(a),Y={};return k.list.forEach(l=>{l.action_type==1&&(Y[l.third_gid]=l.id)}),k.list.forEach(l=>{l.action_type!=1&&(l.parent_id=Y[l.third_gid])}),{total:k.total,items:k.list}})}},rowConfig:{isHover:!0},toolbarConfig:{custom:!0,export:!0,refresh:!0,zoom:!0}},[b,O]=F({gridOptions:m});return(_,h)=>(n(),u(t(j),null,{default:r(()=>[i(t(I),{class:"mb-5"},{default:r(()=>[i(t(C),null,{search_text:r(a=>[i(t($),{compact:""},{default:r(()=>[i(t(H),{name:"search_type",style:{width:"30%"},value:p.search_type,"onUpdate:value":h[0]||(h[0]=c=>p.search_type=c)},{default:r(()=>[i(t(D),{value:"uname"},{default:r(()=>[d(o(t(e)("player_data.search.uname")),1)]),_:1}),i(t(D),{value:"nickname"},{default:r(()=>[d(o(t(e)("player_data.search.nickname")),1)]),_:1}),i(t(D),{value:"user_id"},{default:r(()=>[d(o(t(e)("player_data.search.user_id")),1)]),_:1})]),_:1},8,["value"]),i(t(M),E({name:"search_text",allowClear:"",placeholder:t(e)("player_data.placeholder")+""+t(e)("player_data.search['"+p.search_type+"']")},a,{style:{width:"70%"}}),null,16,["placeholder"])]),_:2},1024)]),_:1})]),_:1}),i(t(I),null,{default:r(()=>[P("div",Q,[i(t(b),null,{bet_amount:r(({row:a})=>[P("span",J,o(a.bet),1)]),amount:r(({row:a})=>[a.amount>=0?(n(),R("span",K,o(a.amount),1)):(n(),R("span",W,o(a.amount),1))]),total_win_amount:r(({row:a})=>[a.total_win_amount>=0?(n(),R("span",X,o(a.total_win_amount),1)):(n(),R("span",Z,o(a.total_win_amount),1))]),action_type:r(({row:a})=>[a.action_type==1?(n(),u(t(f),{key:0,color:"blue"},{default:r(()=>[d(o(t(e)("player_data.fundsChange.bet")),1)]),_:1})):g("",!0),a.action_type==3?(n(),u(t(f),{key:1,color:"green"},{default:r(()=>[d(o(t(e)("player_data.fundsChange.result_amount")),1)]),_:1})):g("",!0),a.action_type==4?(n(),u(t(f),{key:2,color:"red"},{default:r(()=>[d(o(t(e)("player_data.fundsChange.check")),1)]),_:1})):g("",!0)]),game_title:r(({row:a})=>[P("div",null,[i(t(f),{color:"blue",size:"large"},{default:r(()=>[d(o(a.game_type_text),1)]),_:2},1024),i(t(z),{shape:"square",src:a.game_image_url},null,8,["src"]),P("span",ee,o(a.game_title),1)])]),status:r(({row:a})=>[a.status==2?(n(),u(t(f),{key:0,color:"green"},{default:r(()=>[d(o(t(e)("common.success")),1)]),_:1})):g("",!0),a.status==0?(n(),u(t(f),{key:1,color:"red"},{default:r(()=>[d(o(t(e)("common.abnormal")),1)]),_:1})):g("",!0),a.status==1?(n(),u(t(f),{key:2,color:"blue"},{default:r(()=>[d(o(t(e)("common.warn")),1)]),_:1})):g("",!0)]),_:1})])]),_:1})]),_:1}))}},Me=G(te,[["__scopeId","data-v-82a2febf"]]);export{Me as default};
|