Files
tehran_tala/apps/admin-panel/dist/assets/order_item-O2ONrSuc.js
T
s.esmaeiliandClaude Opus 5.5 1bc3739e78 Merge release/delivery (IAM single sign-on) into the triage work
Brings the four release/delivery commits (IAM SSO for the admin panel,
both apps and the API; IAM env in docker-compose) onto fix/issues-triage.

Conflicts:
- customer-auth.service.ts imports: both kept.
- both apps' api/client.ts: both kept (AccountingBalance/WageQuote, and
  iamAppUrl).
- all build output (admin-panel, user-app, user-app-v2 dist, and the api
  release bundle): rebuilt from the merged source instead of picking a
  side.

Fixed while verifying:
- The IAM change calls iam.browserBootstrapUrl after every login, but
  the identity-service stand-ins in three test files lacked it. 15 tests
  failed on release/delivery itself.
- SMS relay: SMS_RELAY_PLATFORM was read but never sent, so the gateway
  never got `platform` (documented body: phone, host, text, platform).
  relayConfig() now returns it ("default" → null) and the request carries
  it. sms.service.spec now passes.

All 249 API tests pass; the three front-ends type-check and build.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-10 09:03:53 +03:30

2 lines
2.9 KiB
JavaScript

import{D as x}from"./DateInput-P3xqxLM7.js";import{j as z}from"./filters-UavLT20t.js";import{d as B,v as D,b as f,c as e,w as a,l as i,x as b,r as l,y as E,o as v,n as h,f as s,t as u,i as w,F,h as O,z as S}from"./index-CVG99b4v.js";import{_ as T}from"./_plugin-vue_export-helper-DlAUqK2U.js";import"./index-pLFqZCCf.js";const $={id:"page-user-list"},q={class:"grid-4"},M={key:0,class:"summary"},A=B({__name:"order_item",setup(G){const _=i(!1),g=i([]),r=i(void 0),n=E({start_date:void 0,end_date:void 0}),I=[{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 y(){try{_.value=!0;const{data:o}=await b.get("report/order-item",{params:n});g.value=o.rows,r.value=o.summary}catch(o){console.log(o)}finally{_.value=!1}}const m=i(!1);async function V(){try{m.value=!0;const{data:o}=await b.get("admin/report/order-items",{params:n,responseType:"blob"}),t=URL.createObjectURL(o),d=document.createElement("a");d.href=t,d.download=`report-${n.start_date??"all"}-${n.end_date??"all"}.xlsx`,d.click(),URL.revokeObjectURL(t)}catch(o){console.log(o),S.error("خطا در دریافت فایل")}finally{m.value=!1}}return D(y),(o,t)=>{const d=l("a-button"),k=l("a-space"),j=l("a-form-item"),C=l("a-form"),p=l("a-tag"),U=l("a-table"),L=l("a-card"),N=l("a-spin");return v(),f("div",$,[e(N,{spinning:_.value},{default:a(()=>[e(L,{title:"گزارش تجمیعی سفارشات و اسناد مالی"},{default:a(()=>[e(C,{layout:"vertical"},{default:a(()=>[h("div",q,[e(x,{modelValue:n.start_date,"onUpdate:modelValue":t[0]||(t[0]=c=>n.start_date=c),label:"از تاریخ"},null,8,["modelValue"]),e(x,{modelValue:n.end_date,"onUpdate:modelValue":t[1]||(t[1]=c=>n.end_date=c),label:"تا تاریخ"},null,8,["modelValue"]),e(j,{label:" "},{default:a(()=>[e(k,null,{default:a(()=>[e(d,{type:"primary",onClick:y},{default:a(()=>[...t[2]||(t[2]=[s("اعمال",-1)])]),_:1}),e(d,{loading:m.value,onClick:V},{default:a(()=>[...t[3]||(t[3]=[s("دریافت فایل اکسل",-1)])]),_:1},8,["loading"])]),_:1})]),_:1})])]),_:1}),r.value?(v(),f("div",M,[e(p,{color:"blue"},{default:a(()=>[s("تعداد سفارش: "+u(r.value.order_count),1)]),_:1}),e(p,{color:"blue"},{default:a(()=>[s("تعداد آیتم: "+u(r.value.item_count),1)]),_:1}),e(p,{color:"green"},{default:a(()=>[s("مجموع وزن: "+u(r.value.total_weight)+" گرم",1)]),_:1})])):w("",!0),e(U,{class:"mt-4",size:"small","data-source":g.value,columns:I,pagination:{pageSize:20},"row-key":"order_id"},{bodyCell:a(({column:c,record:R})=>[c.dataIndex==="caj"?(v(),f(F,{key:0},[s(u(O(z)(R.caj)),1)],64)):w("",!0)]),_:1},8,["data-source"])]),_:1})]),_:1},8,["spinning"])])}}}),W=T(A,[["__scopeId","data-v-03df72e2"]]);export{W as default};