/
home
/
pay
/
app
/
assets
/
File Upload :
llllll
Current File: //home/pay/app/assets/index-27a0d289.js
import{d as M,r as x,P as F,a as d,c as p,e,n as v,q as a,_ as N,y as l,u as n,C as o,f as w,s as m,z as I,o as q,i as C,F as V,h as z,A as j,X as T,R as O,Z as A,$ as D,a0 as J}from"./index-f587628f.js";import{_ as L}from"./index-6a7dda0a.js";import{a as P,t as E,b as G}from"./useDateTime-9c560210.js";/* empty css */import{a as g}from"./usePrice-0aa1f82a.js";import{_ as U}from"./BasicActionSheet.vue_vue_type_script_setup_true_lang-31e1f464.js";import{_ as K}from"./index-8eeebc93.js";import{_ as R,d as W,c as X}from"./vue-content-loader.es-e7296427.js";import{g as Z}from"./transaction-3abe7081.js";import{_ as H}from"./BaseDatePicker.vue_vue_type_script_setup_true_lang-48f6b714.js";import"./BaseDatePicker.vue_vue_type_style_index_0_lang-43800089.js";import{_ as Q,a as B}from"./ListAnim.vue_vue_type_style_index_0_lang-9535476c.js";import"./FormItemContext-eefd35ac.js";/* empty css */import"./KeyCode-e8665d10.js";const Y={class:"flex"},ee={class:"w-full mr-3"},te={class:"flex justify-between w-full"},se={class:"flex justify-between mt-2"},le=e("div",null,"گرم",-1),ae={class:"text-gray-500 flex gap-1 text-xs items-center number-ltr"},ie={key:0,class:"flex w-full justify-between mt-2"},oe=e("div",{class:"text-gray-500"},"قیمت معامله:",-1),ne={class:"text-gray-500 flex gap-1 text-xs items-center"},ce={class:"text-base"},de={class:"flex w-full justify-between mt-2"},re=e("div",{class:"text-gray-500"},"وضعیت :",-1),ue={class:"text-gray-500 flex gap-1 text-xs items-center"},_e={class:"font-bold text-lg"},me={class:"pb-20 mt-5"},fe={class:"flex justify-between mb-3"},ve=e("div",{class:"text-black"},"مبلغ:",-1),pe={class:"text-base ml-1"},xe={key:0,class:"flex justify-between mb-3"},he=e("div",{class:"text-black"},"قیمت هر گرم طلا حین معامله:",-1),be={class:"flex text-xs items-center number-ltr"},ye={class:"text-base ml-1"},ge={class:"flex justify-between mb-3"},we=e("div",{class:"text-black"},"مقدار طلا مبادله شده:",-1),ke={class:"text-base ml-1"},je={class:"flex justify-between mb-3"},$e=e("div",{class:"text-black"},"موجودی کیف پول:",-1),Ce={class:"text-base"},Te={class:"flex justify-between mb-3"},Ie=e("div",{class:"text-black"},"موجودی کیف طلا:",-1),Se={class:"flex text-xs text-yellow-700 items-center"},Fe={class:"text-base ml-1"},Ve={class:"flex justify-between mb-3"},ze=e("div",{class:"text-black"},"وضعیت:",-1),Be={class:"flex text-xs items-center"},Me={class:"flex justify-between mb-3"},Ne=e("div",{class:"text-black"},"تاریخ:",-1),Ue={class:"flex justify-between mb-3"},qe=e("div",{class:"text-black"},"زمان:",-1),Oe={key:1,class:"flex justify-between mb-3"},Ae=e("div",{class:"text-black"},"مهلت ارسال فیش:",-1),De=M({__name:"Item",props:{item:{}},setup(h){const s=h,u=x(!1),f=F(()=>s.item.type===3||s.item.type===1||s.item.type===8),b=F(()=>s.item.type===1||s.item.type===2);return(t,r)=>{const y=K,$=R;return d(),p("div",{onClick:r[2]||(r[2]=c=>u.value=!0)},[e("div",Y,[e("div",{class:v([f.value?"bg-green-50":"bg-red-50","rounded-lg p-3 h-fit w-fit flex justify-center items-center"])},[a(N,{class:v(f.value?"text-green-600":"text-red-600"),icon:`vuesax-linear:${f.value?"arrow-up-2":"arrow-down-2"}`},null,8,["class","icon"])],2),e("div",ee,[e("div",te,[e("div",null,l(t.item.type_str),1),e("div",null,l(n(P)(t.item.expire_at)),1)]),e("div",se,[e("div",{class:v([t.item.gold>=0?"text-green-600":"text-red-600","text-gray-500 text-xs number-ltr"])},[o(l(t.item.gold)+" ",1),le],2),e("div",ae,[e("div",{class:v([t.item.cash>0?"text-green-600":"text-red-600","text-base"])},l(n(g)(t.item.cash??0)),3),o(" ریال ")])])])]),b.value?(d(),p("div",ie,[oe,e("div",ne,[e("div",ce,l(n(g)(parseInt((Math.abs(t.item.cash)/Math.abs(t.item.gold)).toFixed(0)))),1),o(" ریال ")])])):w("",!0),e("div",de,[re,e("div",ue,[a(y,{class:"!py-1 !px-6 !ml-0",color:"blue"},{default:m(()=>{var c,i;return[o(l(((c=t.item.order)==null?void 0:c.sts_str)??((i=t.item.withdraw)==null?void 0:i.sts_str)),1)]}),_:1})])]),a($,{class:"!my-3"}),a(U,{show:u.value,"onUpdate:show":r[1]||(r[1]=c=>u.value=c)},{default:m(()=>{var c;return[e("div",_e,l(s.item.type_str),1),e("div",me,[e("div",fe,[ve,e("div",{class:v([t.item.cash>0?"text-green-600":"text-red-600","flex text-xs items-center number-ltr"])},[e("div",pe,l(n(g)(t.item.cash??0)),1),o(" ریال ")],2)]),t.item.order?(d(),p("div",xe,[he,e("div",be,[e("div",ye,l(n(g)(((c=t.item.order)==null?void 0:c.price)??0)),1),o(" ریال ")])])):w("",!0),e("div",ge,[we,e("div",{class:v([t.item.gold>=0?"text-green-600":"text-red-600","flex text-xs items-center number-ltr"])},[e("div",ke,l(t.item.gold),1),o(" گرم ")],2)]),e("div",je,[$e,e("div",{class:v([t.item.cash>0?"text-green-600":"text-red-600","flex text-xs items-center number-ltr"])},[e("div",Ce,l(n(g)(t.item.balance_cash??0)),1),o(" ریال ")],2)]),e("div",Te,[Ie,e("div",Se,[e("div",Fe,l(t.item.balance_gold),1),o(" گرم ")])]),e("div",Ve,[ze,e("div",Be,[a(y,{color:(t.item.active,"blue"),class:"!py-1 !px-6 !ml-0"},{default:m(()=>{var i,k;return[o(l(((i=t.item.order)==null?void 0:i.sts_str)??((k=t.item.withdraw)==null?void 0:k.sts_str)),1)]}),_:1},8,["color"])])]),e("div",Me,[Ne,e("div",null,l(n(E)(t.item.expire_at)),1)]),e("div",Ue,[qe,e("div",null,l(n(G)(t.item.expire_at)),1)]),t.item.eaj?(d(),p("div",Oe,[Ae,e("div",null,l(t.item.eaj),1)])):w("",!0),a(I,{class:"w-full mt-5",onClick:r[0]||(r[0]=i=>u.value=!1)},{default:m(()=>[o("بازگشت")]),_:1})])]}),_:1},8,["show"])])}}}),S=h=>(A("data-v-849b460e"),h=h(),D(),h),Je={class:"z-10 bg-primary text-white flex justify-center items-center h-6vh rounded-bl-full"},Le={class:"flex items-center justify-center gap-2"},Pe=S(()=>e("div",{class:"font-bold text-lg"},"گزارش",-1)),Ee={key:2,class:"flex flex-col items-center justify-center h-80vh"},Ge=S(()=>e("div",{class:"font-bold"},"تراکنشی موجود نیست",-1)),Ke=S(()=>e("div",{class:"font-bold text-lg"},"فیلتر",-1)),Re={class:"pb-20 mt-5"},We=M({__name:"index",setup(h){const s=x({filters:[],limit:6,page:0}),u=x([]),f=x(null),b=x(!1),t=x(),r=x();W(r);async function y(){try{t.value?(s.value.filters=[],s.value.filters.push({field:"created_at",cr:"and",type:"date",op:"eq",value:t.value})):s.value.filters=[],s.value.page===0?j.value=!0:T.value=!0,f.value=await Z(s.value),u.value.push(...f.value.rows)}catch(c){console.log(c)}finally{j.value=!1,T.value=!1}}async function $(){s.value.page=0,u.value=[],await y(),b.value=!1}return q(()=>{y()}),X(r,async()=>{f.value&&(s.value.page+1)*s.value.limit<f.value.query.total&&(s.value.page++,await y())},{distance:12}),(c,i)=>{const k=L;return d(),p("div",null,[e("div",Je,[e("div",null,[e("div",Le,[a(N,{icon:"vuesax-linear:receipt-item"}),Pe])])]),e("div",{ref_key:"el",ref:r,class:v([n(j)?"h-screen":"","px-3 pt-5 pb-2 overflow-y-scroll"]),style:{"max-height":"calc(100vh - 50px)"}},[n(j)?(d(),p(V,{key:1},z(13,_=>a(B,{key:_,class:"mt-1"})),64)):(d(),C(Q,{key:0},{default:m(()=>[(d(!0),p(V,null,z(u.value,_=>(d(),C(De,{key:_.id,item:_},null,8,["item"]))),128)),n(T)?(d(),C(B,{key:0,class:"mt-1 mb-8"})):w("",!0)]),_:1})),u.value.length<=0?(d(),p("div",Ee,[a(n(O),{class:"w-11rem h-11rem",autoplay:"",src:"https://lottie.host/51d3315a-cf88-4c18-bb4d-a31511fd4325/KjSBzcMbi6.json"}),Ge])):w("",!0)],2),a(U,{show:b.value,"onUpdate:show":i[2]||(i[2]=_=>b.value=_)},{default:m(()=>[Ke,e("div",Re,[a(k,{class:"w-full gap-2 !flex-col",label:"تاریخ",name:"password"},{default:m(()=>[a(H,{value:t.value,"onUpdate:value":i[0]||(i[0]=_=>t.value=_),class:"w-full",size:"large"},null,8,["value"])]),_:1}),a(I,{class:"w-full mt-5",type:"primary",onClick:$},{default:m(()=>[o("اعمال فیلتر ")]),_:1}),a(I,{class:"w-full mt-2",onClick:i[1]||(i[1]=_=>b.value=!1)},{default:m(()=>[o("بازگشت")]),_:1})])]),_:1},8,["show"])])}}});const rt=J(We,[["__scopeId","data-v-849b460e"]]);export{rt as default};
Copyright ©2k19 -
Hexid
|
Tex7ure