2 lines
18 KiB
JavaScript
2 lines
18 KiB
JavaScript
|
"use strict";(self["webpackChunkcmc_fe"]=self["webpackChunkcmc_fe"]||[]).push([[287],{8099:function(){},8765:function(e,l,t){t.r(l),t.d(l,{default:function(){return K}});var o=t(3396),n=t(7139),a=t(7312),i=t(8302),u=t(1959),s=t(8969),r=t(320),d=t(7514),c=t(9888),m=t(131);const p=(0,r.a)({name:"VCheckbox",inheritAttrs:!1,props:{...(0,i.co)(),...(0,u.w4)()},emits:{"update:focused":e=>!0},setup(e,l){let{attrs:t,slots:n}=l;const{isFocused:a,focus:r,blur:p}=(0,s.K)(e),v=(0,d.sq)(),f=(0,o.Fl)((()=>e.id||`checkbox-${v}`));return(0,c.L)((()=>{const[l,s]=(0,m.An)(t),[d,c]=(0,i.PE)(e),[v,h]=(0,u.CI)(e);return(0,o.Wm)(i.q8,(0,o.dG)({class:"v-checkbox"},l,d,{id:f.value,focused:a.value}),{...n,default:e=>{let{id:l,isDisabled:t,isReadonly:a}=e;return(0,o.Wm)(u.pM,(0,o.dG)(v,{id:l.value,disabled:t.value,readonly:a.value},s,{onFocus:r,onBlur:p}),n)}})})),{}}});var v=t(6422),f=t(3369),h=t(6824),g=t(4162),y=t(3104),b=t(9694),V=t(1138),C=t(7041);const w=(0,r.a)({name:"VTable",props:{fixedHeader:Boolean,fixedFooter:Boolean,height:[Number,String],hover:Boolean,...(0,b.f)(),...(0,V.Q)(),...(0,C.x$)()},setup(e,l){let{slots:t}=l;const{themeClasses:n}=(0,C.ER)(e),{densityClasses:a}=(0,b.t)(e);return(0,c.L)((()=>{var l,i;return(0,o.Wm)(e.tag,{class:["v-table",{"v-table--fixed-height":!!e.height,"v-table--fixed-header":e.fixedHeader,"v-table--fixed-footer":e.fixedFooter,"v-table--has-top":!!t.top,"v-table--has-bottom":!!t.bottom,"v-table--hover":e.hover},n.value,a.value]},{default:()=>[null==(l=t.top)?void 0:l.call(t),t.default&&(0,o.Wm)("div",{class:"v-table__wrapper",style:{height:(0,m.kb)(e.height)}},[(0,o.Wm)("table",null,[t.default()])]),null==(i=t.bottom)?void 0:i.call(t)]})})),{}}});var _=t(3144),k=t(9870),x=t(165),W=t(6161),F=t(4722);const S=(0,o._)("h3",null,"Complaints",-1),U=(0,o._)("thead",null,[(0,o._)("tr",null,[(0,o._)("th",null,"Comp No"),(0,o._)("th",null,"Date"),(0,o._)("th",null,"Order"),(0,o._)("th",null,"Acc No"),(0,o._)("th",null,"Name"),(0,o._)("th",null,"Reason"),(0,o._)("th",null,"Active"),(0,o._)("th")])],-1),I={key:0},A=(0,o._)("td",{colspan:"7"},[(0,o._)("img",{class:"loading",src:"/images/icons/loading.gif"})],-1),B=[A],$=["alt","title"],D={key:0},L={key:1},j={key:0},H={colspan:"4"},q=(0,o._)("br",null,null,-1),z={colspan:"2"},G={key:0,class:"loading",src:"/images/icons/loading.gif"},O={key:1,colspan:"6"},E=(0,o._)("img",{class:"loading",src:"/images/icons/loading.gif"},null,-1),R=[E];function Q(e,l,t,i,u,s){return(0,o.wg)(),(0,o.iD)(o.HY,null,[S,(0,o.Wm)(_.d,{modelValue:u.tab,"onUpdate:modelValue":l[3]||(l[3]=e=>u.tab=e),"fixed-tabs":""},{default:(0,o.w5)((()=>[(0,o.Wm)(k.L,{title:"List",modelValue:u.list,"onUpdate:modelValue":l[0]||(l[0]=e=>u.list=e)},null,8,["modelValue"]),u.edit?((0,o.wg)(),(0,o.j4)(k.L,{key:0,title:"Edit",modelValue:u.edit,"onUpdate:modelValue":l[1]||(l[1]=e=>u.edit=e)},null,8,["modelValue"])):(0,o.kq)("",!0),u.report?((0,o.wg)(),(0,o.j4)(k.L,{key:1,title:"Report",modelValue:u.report,"onUpdate:modelValue":l[2]||(l[2]=e=>u.report=e)},null,8,["modelValue"])):(0,o.kq)("",!0)])),_:1},8,["modelValue"]),(0,o.Wm)(W.Oo,{modelValue:u.tab,"onUpdate:modelValue":l[7]||(l[7]=e=>u.tab=e)},{default:(0,o.w5)((()=>[(0,o.Wm)(F.H,{modelValue:u.list,"onUpdate:modelValue":l[6]||(l[6]=e=>u.list=e)},{default:(0,o.w5)((()=>[(0,o.Wm)(g.t,{"max-width":"500"},{default:(0,o.w5)((()=>[(0,o.Wm)(x.hw,{clearable:"",label:"Search",variant:"outlined",modelValue:u.searchQuery,"onUpdate:modelValue":l[4]||(l[4]=e=>u.searchQuery=e),density:"compact","append-inner-icon":"mdi-magnify"},null,8,["modelValue"]),(0,o.Wm)(y.G,{color:"blue",label:"Show Only Active",modelValue:u.showActive,"onUpdate:modelValue":l[5]||(l[5]=e=>u.showActive=e)},null,8,["modelValue"]),t.site_info.features.addcomplaint?((0,o.wg)(),(0,o.j4)(a.T,{key:0,color:"warning"},{default:(0,o.w5)((()=>[(0,o.Uk)("+ Add")])),_:1})):(0,o.kq)("",!0)])),_:1}),(0,o.Wm)(w,null,{default:(0,o.w5)((()=>[U,(0,o._)("tbody",null,[u.loading?((0,o.wg)(),(0,o.iD)("tr",I,B)):(0,o.kq)("",!0),((0,o.wg)(!0),(0,o.iD)(o.HY,null,(0,o.Ko)(s.filteredComplaints,(e=>((0,o.wg)(),(0,o.iD)(o.HY,{key:e.id
|
||
|
//# sourceMappingURL=287.3d3496d6.js.map
|