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>
2 lines
1.8 KiB
JavaScript
2 lines
1.8 KiB
JavaScript
import{D as _}from"./DateInput-P3xqxLM7.js";import{d as k,v as C,b as m,c as t,w as o,l as c,x as N,r as a,y as B,o as p,n as D,f,t as z,i as S}from"./index-CVG99b4v.js";import{_ as U}from"./_plugin-vue_export-helper-DlAUqK2U.js";import"./index-pLFqZCCf.js";const E={id:"page-user-list"},M={class:"grid-4"},T={key:0,class:"summary"},h=k({__name:"product",setup(j){const l=c(!1),i=c([]),d=c(void 0),n=B({start_date:void 0,end_date:void 0}),v=[{title:"نام محصول",dataIndex:"title"},{title:"تعداد فروش رفته",dataIndex:"total"},{title:"وزن فروش رفته",dataIndex:"w"},{title:"تعداد سفارش",dataIndex:"order_count"}];async function u(){try{l.value=!0;const{data:s}=await N.get("report/product",{params:n});i.value=s.rows,d.value=s.summary}catch(s){console.log(s)}finally{l.value=!1}}return C(u),(s,e)=>{const y=a("a-button"),g=a("a-form-item"),b=a("a-form"),x=a("a-tag"),V=a("a-table"),w=a("a-card"),I=a("a-spin");return p(),m("div",E,[t(I,{spinning:l.value},{default:o(()=>[t(w,{title:"گزارش محصولات"},{default:o(()=>[t(b,{layout:"vertical"},{default:o(()=>[D("div",M,[t(_,{modelValue:n.start_date,"onUpdate:modelValue":e[0]||(e[0]=r=>n.start_date=r),label:"از تاریخ"},null,8,["modelValue"]),t(_,{modelValue:n.end_date,"onUpdate:modelValue":e[1]||(e[1]=r=>n.end_date=r),label:"تا تاریخ"},null,8,["modelValue"]),t(g,{label:" "},{default:o(()=>[t(y,{type:"primary",onClick:u},{default:o(()=>[...e[2]||(e[2]=[f("اعمال",-1)])]),_:1})]),_:1})])]),_:1}),d.value?(p(),m("div",T,[t(x,{color:"blue"},{default:o(()=>[f("تعداد محصول: "+z(d.value.product_count),1)]),_:1})])):S("",!0),t(V,{class:"mt-4",size:"small","data-source":i.value,columns:v,pagination:{pageSize:20},"row-key":"id"},null,8,["data-source"])]),_:1})]),_:1},8,["spinning"])])}}}),H=U(h,[["__scopeId","data-v-bf6ec76b"]]);export{H as default};
|