Each of these now has an add button at the top of its own list page, so the nav entry duplicated it: - 'اضافه کردن شخص' (/customer/add) - 'افزودن شعب' (/branch/add) - 'افزودن کارگاه' (/workshop/add) - 'افزودن مدیر' (/user/create) Only the adminMenu tree is touched; branchMenu keeps its own /customer/add entry, since the branch build has no converted add-modal. All four routes still exist and still work as a direct-link fallback, and the parent submenus keep their remaining children (including 'دسترسی ها' under مدیران). Verified in a real browser: menu items 30 -> 26, none of the four labels render, all four parent submenus still present with their list children, icons unchanged at 16, no console errors. Committed dist/ artifact rebuilt to match (force-added, as it is gitignored but deliberately tracked for Dokploy). Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
2 lines
2.4 KiB
JavaScript
2 lines
2.4 KiB
JavaScript
import{D as g}from"./DateInput-BsPQy54J.js";import{j as N}from"./filters-C20Sv6qX.js";import{d as B,v as D,i as c,c as t,g as e,r as m,x as h,e as a,y as z,o as p,h as F,l as r,t as i,j as x,F as S,n as U}from"./index-Cv1Zmfn4.js";import{_ as q}from"./_plugin-vue_export-helper-DlAUqK2U.js";import"./index-BqcdSAlR.js";const E={id:"page-user-list"},M={class:"grid-4"},T={key:0,class:"summary"},A=B({__name:"order_item",setup(G){const _=m(!1),f=m([]),n=m(void 0),l=z({start_date:void 0,end_date:void 0}),y=[{title:"شماره سفارش",dataIndex:"order_number"},{title:"مشتری",dataIndex:"customer"},{title:"محصول",dataIndex:"product"},{title:"تنوع",dataIndex:"variant"},{title:"تعداد",dataIndex:"qty"},{title:"وزن واحد",dataIndex:"w"},{title:"وزن کل",dataIndex:"total_w"},{title:"تاریخ",dataIndex:"caj"}];async function v(){try{_.value=!0;const{data:d}=await h.get("report/order-item",{params:l});f.value=d.rows,n.value=d.summary}catch(d){console.log(d)}finally{_.value=!1}}return D(v),(d,o)=>{const b=a("a-button"),I=a("a-form-item"),V=a("a-form"),u=a("a-tag"),w=a("a-table"),j=a("a-card"),k=a("a-spin");return p(),c("div",E,[t(k,{spinning:_.value},{default:e(()=>[t(j,{title:"گزارش تجمیعی سفارشات و اسناد مالی"},{default:e(()=>[t(V,{layout:"vertical"},{default:e(()=>[F("div",M,[t(g,{modelValue:l.start_date,"onUpdate:modelValue":o[0]||(o[0]=s=>l.start_date=s),label:"از تاریخ"},null,8,["modelValue"]),t(g,{modelValue:l.end_date,"onUpdate:modelValue":o[1]||(o[1]=s=>l.end_date=s),label:"تا تاریخ"},null,8,["modelValue"]),t(I,{label:" "},{default:e(()=>[t(b,{type:"primary",onClick:v},{default:e(()=>[...o[2]||(o[2]=[r("اعمال",-1)])]),_:1})]),_:1})])]),_:1}),n.value?(p(),c("div",T,[t(u,{color:"blue"},{default:e(()=>[r("تعداد سفارش: "+i(n.value.order_count),1)]),_:1}),t(u,{color:"blue"},{default:e(()=>[r("تعداد آیتم: "+i(n.value.item_count),1)]),_:1}),t(u,{color:"green"},{default:e(()=>[r("مجموع وزن: "+i(n.value.total_weight)+" گرم",1)]),_:1})])):x("",!0),t(w,{class:"mt-4",size:"small","data-source":f.value,columns:y,pagination:{pageSize:20},"row-key":"order_id"},{bodyCell:e(({column:s,record:C})=>[s.dataIndex==="caj"?(p(),c(S,{key:0},[r(i(U(N)(C.caj)),1)],64)):x("",!0)]),_:1},8,["data-source"])]),_:1})]),_:1},8,["spinning"])])}}}),P=q(A,[["__scopeId","data-v-8bd22477"]]);export{P as default};
|