2 lines
No EOL
4.7 KiB
JavaScript
2 lines
No EOL
4.7 KiB
JavaScript
"use strict";(self["webpackChunkcmc_fe"]=self["webpackChunkcmc_fe"]||[]).push([[17],{8099:function(){},9017:function(e,t,l){l.r(t),l.d(t,{default:function(){return y}});var n=l(3396),s=l(7139),r=l(6824),o=l(8521),a=l(4162),i=l(165);const u=e=>((0,n.dD)("data-v-3c9948e5"),e=e(),(0,n.Cn)(),e),c=u((()=>(0,n._)("h3",null,"Customer List",-1))),d=u((()=>(0,n._)("hr",null,null,-1)));function f(e,t,l,u,f,g){const m=(0,n.up)("RecycleScroller");return(0,n.wg)(),(0,n.iD)(n.HY,null,[c,(0,n.Wm)(a.t,{"max-width":"500"},{default:(0,n.w5)((()=>[(0,n.Wm)(i.hw,{clearable:"",label:"Search",variant:"outlined",modelValue:f.searchQuery,"onUpdate:modelValue":t[0]||(t[0]=e=>f.searchQuery=e),density:"compact","append-inner-icon":"mdi-magnify"},null,8,["modelValue"])])),_:1}),(0,n.Wm)(m,{class:"scroller",items:g.filteredCustomers,"item-size":50,"key-field":"acc_no"},{default:(0,n.w5)((({item:e})=>[(0,n.Wm)(r.o,{class:"customer"},{default:(0,n.w5)((()=>[(0,n.Wm)(o.D,{cols:"6"},{default:(0,n.w5)((()=>[(0,n.Uk)((0,s.zw)(e.acc_no)+" - "+(0,s.zw)(e.name),1)])),_:2},1024)])),_:2},1024),d])),_:1},8,["items"])],64)}var g=l(6943),m={props:{site_info:{},user_info:{}},data(){return{searchQuery:"",showSearch:!0,open:!1,list:[],limit:5e3,loading:!0,listreceived:!1}},components:{},computed:{filteredCustomers(){let e=this.searchQuery.toLowerCase();this.listreceived||this.getCustomerList();let t=this.list.filter((t=>t.name.toLowerCase().includes(e)||t.acc_no.includes(e)));return t}},methods:{async getCustomerList(){this.loading=!0;let e=this.$api_url+"/customers/list";g.Z.get(e,{params:{limit:this.limit,query:this.searchQuery}}).then((e=>{this.list=e.data,this.listreceived=!0,this.loading=!1})).catch((e=>console.log(e)))}}},p=l(89);const h=(0,p.Z)(m,[["render",f],["__scopeId","data-v-3c9948e5"]]);var y=h},8521:function(e,t,l){l.d(t,{D:function(){return m}});l(7658),l(8099);var n=l(1138),s=l(7139),r=l(3396),o=l(320);const a=["sm","md","lg","xl","xxl"],i=(()=>a.reduce(((e,t)=>(e[t]={type:[Boolean,String,Number],default:!1},e)),{}))(),u=(()=>a.reduce(((e,t)=>(e["offset"+(0,s.kC)(t)]={type:[String,Number],default:null},e)),{}))(),c=(()=>a.reduce(((e,t)=>(e["order"+(0,s.kC)(t)]={type:[String,Number],default:null},e)),{}))(),d={col:Object.keys(i),offset:Object.keys(u),order:Object.keys(c)};function f(e,t,l){let n=e;if(null!=l&&!1!==l){if(t){const l=t.replace(e,"");n+=`-${l}`}return"col"===e&&(n="v-"+n),"col"!==e||""!==l&&!0!==l?(n+=`-${l}`,n.toLowerCase()):n.toLowerCase()}}const g=["auto","start","end","center","baseline","stretch"],m=(0,o.a)({name:"VCol",props:{cols:{type:[Boolean,String,Number],default:!1},...i,offset:{type:[String,Number],default:null},...u,order:{type:[String,Number],default:null},...c,alignSelf:{type:String,default:null,validator:e=>g.includes(e)},...(0,n.Q)()},setup(e,t){let{slots:l}=t;const n=(0,r.Fl)((()=>{const t=[];let l;for(l in d)d[l].forEach((n=>{const s=e[n],r=f(l,n,s);r&&t.push(r)}));const n=t.some((e=>e.startsWith("v-col-")));return t.push({"v-col":!n||!e.cols,[`v-col-${e.cols}`]:e.cols,[`offset-${e.offset}`]:e.offset,[`order-${e.order}`]:e.order,[`align-self-${e.alignSelf}`]:e.alignSelf}),t}));return()=>{var t;return(0,r.h)(e.tag,{class:n.value},null==(t=l.default)?void 0:t.call(l))}}})},6824:function(e,t,l){l.d(t,{o:function(){return _}});l(7658),l(8099);var n=l(1138),s=l(7139),r=l(3396),o=l(320);const a=["sm","md","lg","xl","xxl"],i=["start","end","center"],u=["space-between","space-around","space-evenly"];function c(e,t){return a.reduce(((l,n)=>(l[e+(0,s.kC)(n)]=t(),l)),{})}const d=[...i,"baseline","stretch"],f=e=>d.includes(e),g=c("align",(()=>({type:String,default:null,validator:f}))),m=[...i,...u],p=e=>m.includes(e),h=c("justify",(()=>({type:String,default:null,validator:p}))),y=[...i,...u,"stretch"],v=e=>y.includes(e),C=c("alignContent",(()=>({type:String,default:null,validator:v}))),w={align:Object.keys(g),justify:Object.keys(h),alignContent:Object.keys(C)},b={align:"align",justify:"justify",alignContent:"align-content"};function S(e,t,l){let n=b[e];if(null!=l){if(t){const l=t.replace(e,"");n+=`-${l}`}return n+=`-${l}`,n.toLowerCase()}}const _=(0,o.a)({name:"VRow",props:{dense:Boolean,noGutters:Boolean,align:{type:String,default:null,validator:f},...g,justify:{type:String,default:null,validator:p},...h,alignContent:{type:String,default:null,validator:v},...C,...(0,n.Q)()},setup(e,t){let{slots:l}=t;const n=(0,r.Fl)((()=>{const t=[];let l;for(l in w)w[l].forEach((n=>{const s=e[n],r=S(l,n,s);r&&t.push(r)}));return t.push({"v-row--no-gutters":e.noGutters,"v-row--dense":e.dense,[`align-${e.align}`]:e.align,[`justify-${e.justify}`]:e.justify,[`align-content-${e.alignContent}`]:e.alignContent}),t}));return()=>{var t;return(0,r.h)(e.tag,{class:["v-row",n.value]},null==(t=l.default)?void 0:t.call(l))}}})}}]);
|
|
//# sourceMappingURL=17.e124ae12.js.map
|