- Rial wage and gram-debt arithmetic matched to the reference; order corrections keep debt in sync - Document confirm/un-confirm is a compare-and-swap (no double-applied cache under concurrency) - Settlement document and expert inputs validated (400 instead of 500) - Expert: edit / activate-deactivate own customers, adjust raw weights only - Made-to-order flow in the app, PreOrder.quantity migration - Order grids: customer column, sort keys; panel select search; pre-order quantity save - Rebuilt release artifacts Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2 lines
1.8 KiB
JavaScript
2 lines
1.8 KiB
JavaScript
import{d as B,aT as P,k as z,l as F,b as s,c as t,e as a,m as e,w as N,p as h,I as m,aS as S,f as V,g as _,t as r,R as D,h as I,G as E,_ as O}from"./index-6E0fX61D.js";const T={class:"pc__art"},q=["alt"],G={key:1,class:"pc__artEmpty","aria-hidden":"true"},L=["aria-label"],M={key:2,class:"pc__flag"},R={key:3,class:"pc__flag pc__flag--soft"},U={class:"pc__title"},$={class:"pc__weight"},j={key:0,class:"pc__meta"},A={key:0,class:"pc__wageOld"},H={class:"pc__wage"},J=B({__name:"ProductCard",props:{value:{},wageBefore:{}},setup(l){const d=l,o=P(),{image:p,id:i,title:u,min_gram:y,wage:f,is_exist:k,qty:w,isPreOrder:x}=z(d.value),g=I(null);function C(){E(d.value,g.value)}function v(n){return n%1===0?String(n):n.toFixed(2)}return(n,c)=>{const b=F("lazy");return s(),t("article",{ref_key:"root",ref:g,class:"pc","data-product-origin":"",onClick:C},[a("div",T,[e(p)?N((s(),t("img",{key:0,alt:e(u)},null,8,q)),[[b,e(p)]]):(s(),t("div",G,[h(m,{icon:"vuesax-linear:diamonds",size:"26"})])),a("button",{type:"button",class:V(["pc__fav",{"is-on":e(o).isFavorite(e(i))}]),"aria-label":e(o).isFavorite(e(i))?"حذف از علاقهمندی":"افزودن به علاقهمندی",onClick:c[0]||(c[0]=S(K=>e(o).toggle(e(i)),["stop"]))},[h(m,{icon:e(o).isFavorite(e(i))?"vuesax-linear:heart-fill":"vuesax-linear:heart",size:"16"},null,8,["icon"])],10,L),e(k)?e(x)&&e(w)===0?(s(),t("span",R,"پیشسفارش")):_("",!0):(s(),t("span",M,"ناموجود"))]),a("h3",U,r(e(u)),1),a("p",$,[D(r(e(y))+" ",1),c[1]||(c[1]=a("span",{class:"pc__weightUnit"},"گرم",-1))]),e(f)!=null?(s(),t("div",j,[l.wageBefore!=null?(s(),t("span",A,"اجرت "+r(v(l.wageBefore))+"٪",1)):_("",!0),a("span",H,r(v(e(f)))+"٪ اجرت",1)])):_("",!0)],512)}}}),W=O(J,[["__scopeId","data-v-2d367664"]]);export{W as P};
|