Includes the Dashboard CSS comment fix needed for the admin production build. Co-authored-by: Cursor <cursoragent@cursor.com>
2 lines
1.4 KiB
JavaScript
2 lines
1.4 KiB
JavaScript
import{a as w,b as t,X as k}from"./model-m8OsHE_l.js";import{d as y,u as N,a as r,c as h,w as o,f as T,r as v,o as s,p as x,m as B,F as m,e as n,t as l,q as c,n as C,k as S}from"./index-QQcP5-AC.js";import{a as g,b as V}from"./filters-B9z4I-pb.js";import"./Icon-B9FXOmlS.js";import"./index-DT4Uze1z.js";function X(){const e=new w("admin/documents/wallet/list","لیست کیف پول های شارژ شده");return e.add(new t("id","شماره")),e.add(new t("customer.name","نام مشتری").filterKey("customer.fullName").filterText()),e.add(new t("order.id","شماره سفارش").filterText()),e.add(new t("value","میزان شارژ").renderSlot("value")),e.add(new t("expire_at","تاریخ انقضا").noSort().renderSlot("time")),e.noFilters(),e}const z=y({__name:"wallet",setup(e){const i=N(),u=d=>!!i.hasPermission(d),p=X(),f=S(null);return(d,F)=>{const _=v("a-card");return s(),r("div",null,[u("wallet.percent")?(s(),h(_,{key:0,title:"لیست کیف پول های شارژ شده",class:"page-card"},{default:o(()=>[x(k,{ref_key:"tbl",ref:f,model:c(p),"mobile-cards":""},{time:o(({text:a})=>[n(l(a?c(V)(a):""),1)]),value:o(({text:a,record:b})=>[B("span",{class:C({"text-danger":a<0,"text-success":a>0})},[b.transaction_type==1?(s(),r(m,{key:0},[n(l(Math.abs(Number(a)))+" گرم ",1)],64)):(s(),r(m,{key:1},[n(l(c(g)(Math.abs(Number(a)))),1)],64))],2)]),_:1},8,["model"])]),_:1})):T("",!0)])}}});export{z as default};
|