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,ad as b,an as C,M as m,o as w,W as H,X as J,Y as l,ah as ee,af as te,aj as ae,at as ne}from"./common.modules-7ef9f935.js";import{Q as se,bh as oe,A as le,d5 as re,d6 as ie,c as ce,d7 as de,_ as ue}from"./page-activity-ActivityDetail-6651511c.js";import{L as pe}from"./page-activity-DailySignIn-ca25ffbf.js";import"./native/index-1870b44d.js";import"./en-fc63d25a.js";import"./page-activity-Championship-f257e4a3.js";window.getBuildInfo=function(){return{buildTime:"3/28/2025, 7:06:51 PM",branch:"origin/masterBranch/main commitId:afb5d46f657248d3137decf21a49f44fbff20383"}};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"},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:f}=X(),R=Y();function D(){R.back()}const i=s([]),r=s([]),y=s(),c=Z({date:"",type:-1}),d=s(!1),h=s(""),T=s(!1),x=async({selectedOptions:t})=>{d.value=!1,h.value=t[0].typeName,c.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),U=({selectedOptions:t})=>{p.value=!1},B=async({selectedOptions:t})=>{p.value=!1,c.date=`${u.value[0]}-${u.value[1]}-${u.value[2]} 00:00:00`,y.value.resetRefresh()},P=({selectedOptions:t})=>{},M=(t,e)=>e;async function I(){const t=await le(re());t&&(i.value=t.data.typeList.map(e=>(e.typeName=f(`code${e.typeNameCode}`),e)),i.value.unshift({type:-1,typeName:f("all")}),h.value=i.value[0].typeName)}let Q=[8e3,8005,8018,8021,8023,8100],E=[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=>{r.value=t,r.value=r.value.map(e=>{e.typeName=f(`code${e.typeNameCode}`);let _;return Q.includes(e.typeNameCode*1)?_="red":E.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 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:c.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(G,{"columns-field-names":{text:"typeName",value:"type",children:"children"},columns:i.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(O,{modelValue:u.value,"onUpdate:modelValue":e[3]||(e[3]=a=>u.value=a),title:t.$t("pickDate"),onCancel:U,onConfirm:B,filter:M,onChange:P,"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:r.value,"onUpdate:list":[e[5]||(e[5]=a=>r.value=a),j],ref_key:"listRef",ref:y,pageQuery:c,"onUpdate:pageQuery":e[6]||(e[6]=a=>c=a)},{content:C(()=>[n("div",ye,[(w(!0),k(H,null,J(r.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(ie)(i.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(ce)(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","/var/lib/jenkins/workspace/web-印度-ar050-daman-01/src/views/wallet/TransAction/index.vue"]]);export{Qe as default};
//# sourceMappingURL=page-wallet-TransAction-df9d958d.js.map
