"use strict";(self.webpackChunkWebBehandish=self.webpackChunkWebBehandish||[]).push([[550],{77550:(T,D,_)=>{_.r(D),_.d(D,{GoodModule:()=>u});var P=_(60177),C=_(96360),l=_(2608),d=_(89417),h=_(18498),g=_(88862),I=_(16470),t=_(60194),o=_(21626),s=_(24393),U=_(33072),n=_(54971),i=_(29127),c=_(16269),B=_(85144),M=_(46099),E=_(4020),K=_(97302),W=_(42957),y=_(60630),A=_(52248),L=_(39694),v=_(75912),R=_(66630),G=_(49898),p=_(88574);let u=(()=>{class O{constructor(e,a,m,r){e.ConditionPickers.set("Good",{ComponentType:n.c,Strategy:new M.r(r,a,m),Title:"\u06a9\u0627\u0644\u0627"}),e.ConditionPickers.set("SaleGood",{ComponentType:n.c,Strategy:new M.r(r,a,m,{GoodType:i.N.Sale}),Title:"\u06a9\u0627\u0644\u0627\u06cc \u0641\u0631\u0648\u0634"}),e.ConditionPickers.set("PurchaseGood",{ComponentType:n.c,Strategy:new M.r(r,a,m,{GoodType:i.N.Purchase}),Title:"\u06a9\u0627\u0644\u0627\u06cc \u062e\u0631\u06cc\u062f"}),e.ConditionPickers.set("InventoryGood",{ComponentType:n.c,Strategy:new M.r(r,a,m,{GoodType:i.N.Inventory}),Title:"\u06a9\u0627\u0644\u0627\u06cc \u0627\u0646\u0628\u0627\u0631"}),e.ConditionPickers.set("GoodPacking",{ComponentType:n.c,Strategy:new c.w(a),Title:"\u0628\u0633\u062a\u0647 \u0628\u0646\u062f\u06cc"}),e.ConditionPickers.set("GoodUnit",{ComponentType:n.c,Strategy:new B.r(a,r),Title:"\u0648\u0627\u062d\u062f \u06a9\u0627\u0644\u0627"}),e.ConditionPickersParams.set("InventoryGood",(new o.Nl).set("ShowIdle",!1).set("StockID",s.Q.CurrentStock?.ID??0))}static{this.\u0275fac=function(a){return new(a||O)(E.KVO(K._i),E.KVO(i.Ft),E.KVO(W.y),E.KVO(s.b))}}static{this.\u0275mod=E.$C({type:O})}static{this.\u0275inj=E.G2t({imports:[P.MD,U.KernelModule,d.YN,h.iI,l.D,g.q,I.k,d.X1,t._]})}}return O})();E.wjB(C.p,[P.YU,P.bT,y.f,A.Hq,L.q,v.n,R.ZT,G.S,p.y],[])},85144:(T,D,_)=>{_.d(D,{r:()=>g});var P=_(10467),C=_(15601),l=_(30311),d=_(90616),h=_(21626);class g extends C.M{constructor(t,o){super(),this.service=t,this.systemSetting=o,this.BizType=l.D,this.Columns=[{text:"\u0639\u0646\u0648\u0627\u0646",datafield:"Name",align:"center",cellsalign:"right",resizable:!0,minwidth:150,aggregates:["count"],aggregatesrenderer:(s,U,n,i)=>d._.CalcCountForColumn(s,U,n,i)}],this.ID="GoodUnitPickerStrategy",this.DataFields=[{name:"ID",type:"number"},{name:"Name",type:"string"},{name:"IsPacking",type:"boolean"}]}GetData(t){return this.service.GetGoodUnits(t)}GetDataByCode(t){return this.service.GetGoodUnits(t)}LoadDataByValueAsync(t){var o=this;return(0,P.A)(function*(){var s=o.HttpParams?o.HttpParams.append("Name",t).set("GetUnitListWithPackings",o.systemSetting.UsePacking):(new h.Nl).set("Name",t).set("GetUnitListWithPackings",o.systemSetting.UsePacking);try{return yield o.service?.GetGoodUnits(s)?.toPromise()}finally{s.delete("Name")}})()}}}}]);