import{V as W,Q as X,a0 as Y,r as s,O as Z,F as q,W as v,m as k,$ as o,p as n,ad as b,ao as C,N as m,o as N,X as H,Y as J,Z as l,aj as ee,ah as te,af as ae,at as ne}from"./common.modules-adc6b33e.js";import{P as se,bg as oe,A as le,d7 as re,d8 as ce,c as ie,d9 as de,_ as ue}from"./page-activity-ActivityDetail-b9249b49.js";import{L as pe}from"./page-activity-DailySignIn-37493f03.js";import"./native/index-0b5e3b14.js";import"./en-8e350547.js";import"./page-activity-Championship-4cc13bf8.js";window.getBuildInfo=function(){return{buildTime:"4/17/2025, 12:09:57 PM",branch:" commitId:8bf9f27a915f5dcd9b9436e446b585b05218b863"}};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"},Ne={class:"line"},we={class:"left"},ge={class:"right"},be={class:"line"},$e={class:"left"},Re={class:"right"},De={class:"line"},Te={class:"left"},xe={class:"transRecord__container-content__card-bot"},Le=["onUpdate:modelValue"],Se=W({__name:"index",setup($){const{t:r}=X(),R=Y();function D(){R.back()}const c=s([]),f=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:A}=oe(0),p=s(!1),P=({selectedOptions:t})=>{p.value=!1},U=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})=>{},I=(t,e)=>e;async function M(){const t=await le(re());t&&(c.value=t.data.typeList.map(e=>(e.typeName=r(`code${e.typeNameCode}`),e)),c.value.unshift({type:-1,typeName:r("all")}),h.value=c.value[0].typeName)}let Q=[8e3,8005,8018,8021,8023,8100],O=[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 j=t=>{f.value=t.map(e=>{["8125"].includes(e.typeNameCode)?e.typeName=r(`code${e.typeNameCode}`)+" "+e.remark:e.typeName=r(`code${e.typeNameCode}`);let _;return Q.includes(e.typeNameCode*1)?_="red":O.includes(e.typeNameCode*1)&&(_="green"),{...e,typeColor:_}})};function z(t){return[109].includes(t)?"red":[111,112,110,108,114].includes(t)?"green":""}return q(async()=>{await M()}),(t,e)=>{const _=v("NavBar"),w=v("ArSelect"),F=v("van-picker"),g=v("van-popup"),G=v("van-date-picker");return N(),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(w,{onClickSelect:L,selectName:h.value},null,8,["selectName"]),o(w,{onClickSelect:e[0]||(e[0]=a=>p.value=!0),selectName:i.date||t.$t("pickDate")},null,8,["selectName"])])])]),b(" 配合弹窗层使用 "),o(g,{show:d.value,"onUpdate:show":e[2]||(e[2]=a=>d.value=a),round:"",position:"bottom"},{default:C(()=>[o(F,{"columns-field-names":{text:"typeName",value:"type",children:"children"},columns:c.value,onCancel:e[1]||(e[1]=a=>d.value=!1),onConfirm:x},null,8,["columns"])]),_:1},8,["show"]),b(" 日期选择 "),o(g,{show:p.value,"onUpdate:show":e[4]||(e[4]=a=>p.value=a),round:"",position:"bottom"},{default:C(()=>[o(G,{modelValue:u.value,"onUpdate:modelValue":e[3]||(e[3]=a=>u.value=a),title:t.$t("pickDate"),onCancel:P,onConfirm:U,filter:I,onChange:B,"min-date":m(V),"max-date":m(A)},null,8,["modelValue","title","min-date","max-date"])]),_:1},8,["show"]),o(pe,{distance:100,api:m(de),list:f.value,"onUpdate:list":[e[5]||(e[5]=a=>f.value=a),j],ref_key:"listRef",ref:y,pageQuery:i,"onUpdate:pageQuery":e[6]||(e[6]=a=>i=a)},{content:C(()=>[n("div",ye,[(N(!0),k(H,null,J(f.value,(a,E)=>(N(),k("div",{class:"transRecord__container-content__item",key:E},[n("div",he,[n("div",ke,[n("h3",null,l(a.typeName),1)]),n("div",Ce,[n("div",Ne,[n("div",we,l(t.$t("detail")),1),n("div",ge,l(m(ce)(c.value,a.type)),1)]),n("div",be,[n("div",$e,l(t.$t("time")),1),n("div",Re,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:${z(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/ar079-india-tashanwin/src/views/wallet/TransAction/index.vue"]]);export{Qe as default};
//# sourceMappingURL=page-wallet-TransAction-5d0367b8.js.map
