Files
nademitex_user/dist/assets/CatalogRequestsView-BHPBd5vT.js
T
2026-09-10 21:52:48 +03:30

1 line
1.4 KiB
JavaScript
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
import{E as e,G as t,I as n,L as r,M as i,Y as a,_ as o,bt as s,j as c,k as l,n as u,q as d,wt as f}from"./BasicIcon-CjTTsi6o.js";import{o as p}from"./format-BHJptHdF.js";import{t as m}from"./PageHeader-B47bvmJV.js";import{t as h}from"./catalogRequests-CmW4jeEs.js";var g={class:`page`},_={class:`page__scroll page__scroll--with-nav body`},v={key:0,class:`empty`},y={class:`card__top`},b={class:`badge`},x={key:0,class:`note`},S=u(r({__name:`CatalogRequestsView`,setup(r){let u=o(),S=h();return t(()=>S.hydrate()),(t,r)=>(d(),i(`div`,g,[n(m,{title:`وضعیت کالیته‌ها`,"show-back":``,centered:``,onBack:r[0]||=e=>s(u).push(`/catalogs`)}),l(`div`,_,[l(`button`,{type:`button`,class:`new-btn`,onClick:r[1]||=e=>s(u).push(`/catalog-request`)},` درخواست کالیته جدید `),s(S).sorted.length?c(``,!0):(d(),i(`p`,v,`هنوز درخواستی ثبت نکرده‌اید.`)),(d(!0),i(e,null,a(s(S).sorted,t=>(d(),i(`article`,{key:t.id,class:`card`},[l(`div`,y,[l(`strong`,null,`درخواست `+f(t.id.slice(-6)),1),l(`span`,b,f(s(S).statusLabel(t.status)),1)]),l(`p`,null,f(t.createdAt.slice(0,10)),1),l(`p`,null,f(s(p)(t.items.length))+` قلم`,1),l(`ul`,null,[(d(!0),i(e,null,a(t.items,e=>(d(),i(`li`,{key:e.productId},f(e.productName)+` × `+f(s(p)(e.quantity)),1))),128))]),t.note?(d(),i(`p`,x,f(t.note),1)):c(``,!0)]))),128))])]))}}),[[`__scopeId`,`data-v-fc04181d`]]);export{S as default};