import{U as W,P as X,$ as Y,r as s,N as Z,E as q,V as v,m as k,Z as o,p as n,ac as $,am as C,M as m,o as w,W as H,X as J,Y as l,ag as ee,ae as te,ai as ae,as as ne}from"./common.modules-219f1756.js";import{Q as se,bd as oe,A as le,d0 as ce,d1 as re,c as ie,d2 as de,_ as ue}from"./page-activity-ActivityDetail-346b11b6.js";import{L as pe}from"./page-activity-DailySignIn-96ec389f.js";import"./native/index-a8a2a0fc.js";import"./en-43c55ab8.js";import"./page-activity-Championship-f7467ceb.js";window.getBuildInfo=function(){return{buildTime:"3/15/2025, 9:01:28 PM",branch:" commitId:c8ca98fce6fc864cab311715d288030620d0dc9f"}};const _e={class:"transRecord__container"},ve={style:{height:"65px"}},me={class:"ar"},fe={class:"ar-searchbar"},ye={class:"transRecord__container-content"},he={class:"transRecord__container-content__card"},ke={class:"transRecord__container-content__card-top"},Ce={class:"transRecord__container-content__card-mid"},we={class:"line"},Ne={class:"left"},ge={class:"right"},$e={class:"line"},Re={class:"left"},be={class:"right"},De={class:"line"},Te={class:"left"},xe={class:"transRecord__container-content__card-bot"},Le=["onUpdate:modelValue"],Se=W({__name:"index",setup(R){const{t:f}=X(),b=Y();function D(){b.back()}const r=s([]),c=s([]),y=s(),i=Z({date:"",type:-1}),d=s(!1),h=s(""),T=s(!1),x=async({selectedOptions:t})=>{d.value=!1,h.value=t[0].typeName,i.type=t[0].type,y.value.resetRefresh()};function L(){d.value=!0,T.value=!0}const{key:Ve,value:S}=se(),u=s(S),{minDate:V,maxDate:U}=oe(0),p=s(!1),A=({selectedOptions:t})=>{p.value=!1},P=async({selectedOptions:t})=>{p.value=!1,i.date=`${u.value[0]}-${u.value[1]}-${u.value[2]} 00:00:00`,y.value.resetRefresh()},B=({selectedOptions:t})=>{},M=(t,e)=>e;async function I(){const t=await le(ce());t&&(r.value=t.data.typeList.map(e=>(e.typeName=f(`code${e.typeNameCode}`),e)),r.value.unshift({type:-1,typeName:f("all")}),h.value=r.value[0].typeName)}let Q=[8e3,8005,8018,8021,8023,8100],j=[8001,8002,8003,8004,8006,8007,8008,8009,8010,8011,8012,8013,8014,8015,8016,8017,8019,8020,8022,8024,8029,8030,8031,8101,8102,8103,8104,8105,8107];const z=t=>{c.value=t,c.value=c.value.map(e=>{e.typeName=f(`code${e.typeNameCode}`);let _;return Q.includes(e.typeNameCode*1)?_="red":j.includes(e.typeNameCode*1)&&(_="green"),{...e,typeColor:_}})};function E(t){return[109].includes(t)?"red":[111,112,110,108,114].includes(t)?"green":""}return q(async()=>{await I()}),(t,e)=>{const _=v("NavBar"),N=v("ArSelect"),G=v("van-picker"),g=v("van-popup"),O=v("van-date-picker");return w(),k("div",_e,[o(_,{title:t.$t("transactionrecord"),"left-arrow":"",onClickLeft:D},null,8,["title"]),n("div",ve,[n("div",me,[n("div",fe,[o(N,{onClickSelect:L,selectName:h.value},null,8,["selectName"]),o(N,{onClickSelect:e[0]||(e[0]=a=>p.value=!0),selectName:i.date||t.$t("pickDate")},null,8,["selectName"])])])]),$(" 配合弹窗层使用 "),o(g,{show:d.value,"onUpdate:show":e[2]||(e[2]=a=>d.value=a),round:"",position:"bottom"},{default:C(()=>[o(G,{"columns-field-names":{text:"typeName",value:"type",children:"children"},columns:r.value,onCancel:e[1]||(e[1]=a=>d.value=!1),onConfirm:x},null,8,["columns"])]),_:1},8,["show"]),$(" 日期选择 "),o(g,{show:p.value,"onUpdate:show":e[4]||(e[4]=a=>p.value=a),round:"",position:"bottom"},{default:C(()=>[o(O,{modelValue:u.value,"onUpdate:modelValue":e[3]||(e[3]=a=>u.value=a),title:t.$t("pickDate"),onCancel:A,onConfirm:P,filter:M,onChange:B,"min-date":m(V),"max-date":m(U)},null,8,["modelValue","title","min-date","max-date"])]),_:1},8,["show"]),o(pe,{distance:100,api:m(de),list:c.value,"onUpdate:list":[e[5]||(e[5]=a=>c.value=a),z],ref_key:"listRef",ref:y,pageQuery:i,"onUpdate:pageQuery":e[6]||(e[6]=a=>i=a)},{content:C(()=>[n("div",ye,[(w(!0),k(H,null,J(c.value,(a,F)=>(w(),k("div",{class:"transRecord__container-content__item",key:F},[n("div",he,[n("div",ke,[n("h3",null,l(a.typeName),1)]),n("div",Ce,[n("div",we,[n("div",Ne,l(t.$t("detail")),1),n("div",ge,l(m(re)(r.value,a.type)),1)]),n("div",$e,[n("div",Re,l(t.$t("time")),1),n("div",be,l(a.addTime),1)]),n("div",De,[n("div",Te,l(t.$t("amount")),1),n("div",{class:ee(["right",a.typeColor]),style:te(`color:${E(a.type)}`)},l(m(ie)(a.amount)),7)])]),n("div",xe,[ae(n("textarea",{class:"textarea",name:"remark",cols:"30",rows:"10",readonly:!0,"onUpdate:modelValue":K=>a.remark=K},null,8,Le),[[ne,a.remark]])])])]))),128))])]),_:1},8,["api","list","pageQuery"])])}}});const Qe=ue(Se,[["__scopeId","data-v-2565e76d"],["__file","/usr/local/jenkins-prod/workspace/ar077-india-jalwa/src/views/wallet/TransAction/index.vue"]]);export{Qe as default};
//# sourceMappingURL=page-wallet-TransAction-8ba8998b.js.map
