Files
tehran_tala/apps/admin-panel/dist/assets/list-CqsviY_X.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
4.9 KiB
JavaScript

import{a as X,b as t,X as M}from"./model-CvqTGmy8.js";import{_ as j}from"./ListPageHeader.vue_vue_type_script_setup_true_lang-CetMN4WH.js";import{_ as A}from"./addFinDoc.vue_vue_type_script_setup_true_lang-Cbwb5Q0D.js";import{d as I,u as L,b as P,c as l,w as o,l as k,r as f,o as d,h as p,a as s,N as U,n as C,i as g,L as z,E as H,D as q,f as b,x as F,z as T}from"./index-CVG99b4v.js";import{u as G}from"./useDeleteHandler-D7PJ3wUb.js";import"./filters-UavLT20t.js";import"./index-pLFqZCCf.js";import"./SettingOutlined-D7--Xtqg.js";import"./_plugin-vue_export-helper-DlAUqK2U.js";import"./BaseFormModal.vue_vue_type_script_setup_true_lang-CWur6xTz.js";function J(){const e=new X("admin/documents/list","لیست اسناد");return e.add(new t("id","شماره سفارش").filterNumber()),e.add(new t("type_str","نوع سند").filterText()),e.add(new t("price","پول").filterDate().noSort()),e.add(new t("value","وزن نهایی (گرم)").filterDate().noSort()),e.add(new t("to","به").filterText().hidden()),e.add(new t("customer.name","نام و نام خانوادگی مشتری").filterText()),e.add(new t("note","توضیحات").filterText()),e.add(new t("ayar","عیار").filterNumber().noSort()),e.add(new t("lab","آزمایشگاه").filterText().noSort()),e.add(new t("recive_date","تاریخ دریافت").filterDate().noSort()),e.add(new t("account_name","نام حساب").filterText().hidden()),e.add(new t("bank_name","بانک").filterText().hidden()),e.add(new t("caj","تاریخ ثبت").filterDate().noSort()),e.add(new t("uaj","بروزرسانی").hidden().filterDate().noSort()),e.add(new t("confirmed","وضعیت تایید سند").renderSlot("confirmed").noSort().filterSelect({0:"تایید نشده",1:"تایید شده"})),e.add(new t("price_per_gram","مظنه").hidden().filterText().noSort()),e.add(new t("original_value","وزن طلای داده شده").hidden().filterText().noSort()),e.add(new t("ang","انگ").hidden().filterText().noSort()),e.add(new t("opt","عملیات").noSort().renderSlot("opt")),e}const K={id:"page-user-list"},re=I({__name:"list",setup(e){const h=L(),_=a=>!!h.hasPermission(a),D=J(),x=k(null),S=k(!1),v=k(!1),w=k(void 0);function $(){w.value=void 0,v.value=!0}function N(a){w.value=a,v.value=!0}async function y(a){var n,m,u;try{S.value=!0,await F.post(`cash/confirem/${a.id}`),T.success("تغییرات با موفقیت ثبت شد"),(n=x.value)==null||n.fetch()}catch(i){console.log(i),T.error(((u=(m=i==null?void 0:i.response)==null?void 0:m.data)==null?void 0:u.message)??"خطا در ثبت تغییرات")}finally{S.value=!1}}const{remove:B}=G({onSuccess:()=>{var a;return(a=x.value)==null?void 0:a.fetch()},successMessage:"سند حذف شد",fallbackErrorMessage:"خطا در حذف سند"});function E(a){return B(`cash/${a.id}`)}return(a,n)=>{const m=f("a-tag"),u=f("a-popconfirm"),i=f("a-tooltip"),O=f("a-card"),V=f("a-spin");return d(),P("div",K,[l(V,{spinning:S.value},{default:o(()=>[l(O,{title:"لیست اسناد مالی"},{default:o(()=>[l(M,{ref_key:"tbl",ref:x,model:p(D)},{add:o(()=>[l(j,{rid:"document.create","add-label":"ثبت سند مالی",onAdd:$})]),confirmed:o(({text:r})=>[r===1?(d(),s(m,{key:0,color:"green"},{default:o(()=>[...n[2]||(n[2]=[b("تایید شده",-1)])]),_:1})):(d(),s(m,{key:1},{default:o(()=>[...n[3]||(n[3]=[b("تایید نشده",-1)])]),_:1}))]),opt:o(({record:r})=>[!r.confirmed&&_("document.list.confirm")?(d(),s(i,{key:0,title:"تایید سند"},{default:o(()=>[l(u,{placement:"top","ok-text":"بله","cancel-text":"خیر",onConfirm:c=>y(r)},{title:o(()=>[...n[4]||(n[4]=[C("p",null,"آیا سند تایید شود ؟",-1)])]),default:o(()=>[l(p(U),{class:"cursor-pointer mx-1 text-success"})]),_:1},8,["onConfirm"])]),_:2},1024)):g("",!0),r.confirmed&&_("document.list.deny")?(d(),s(i,{key:1,title:"رد کردن سند"},{default:o(()=>[l(u,{placement:"top","ok-text":"بله","cancel-text":"خیر",onConfirm:c=>y(r)},{title:o(()=>[...n[5]||(n[5]=[C("p",null,"آیا سند رد شود ؟",-1)])]),default:o(()=>[l(p(z),{class:"cursor-pointer mx-1 text-danger"})]),_:1},8,["onConfirm"])]),_:2},1024)):g("",!0),_("document.list.edit")?(d(),s(i,{key:2,title:"ویرایش"},{default:o(()=>[l(p(H),{class:"cursor-pointer mx-1 text-primary",onClick:c=>N(r.id)},null,8,["onClick"])]),_:2},1024)):g("",!0),_("document.list.remove")?(d(),s(i,{key:3,title:"حذف"},{default:o(()=>[l(u,{placement:"top","ok-text":"بله","cancel-text":"خیر",onConfirm:c=>E(r)},{title:o(()=>[...n[6]||(n[6]=[C("p",null,"آیا مطمئن به حذف سند مورد نظر هستید ؟",-1)])]),default:o(()=>[l(p(q),{class:"cursor-pointer mx-1 text-danger"})]),_:1},8,["onConfirm"])]),_:2},1024)):g("",!0)]),_:1},8,["model"]),(d(),s(A,{key:w.value??"new",open:v.value,id:w.value,"onUpdate:open":n[0]||(n[0]=r=>v.value=r),onSuccess:n[1]||(n[1]=r=>{var c;return(c=x.value)==null?void 0:c.fetch()})},null,8,["open","id"]))]),_:1})]),_:1},8,["spinning"])])}}});export{re as default};