[
MAINHACK
]
Mail Test
BC
Config Scan
HOME
Create...
New File
New Folder
Viewing / Editing File: 9432.js
"use strict";(self.webpackChunk=self.webpackChunk||[]).push([[9432],{725:(e,t,n)=>{n.d(t,{A:()=>a});var l=n(9726);const o={name:"ExcelComponent",props:{method:{type:Function}},methods:{excelDownload:function(){this.method()}}};const a=(0,n(6262).A)(o,[["render",function(e,t,n,o,a,r){return(0,l.openBlock)(),(0,l.createElementBlock)("a",{href:"#",onClick:t[0]||(t[0]=(0,l.withModifiers)(function(){return r.excelDownload&&r.excelDownload.apply(r,arguments)},["prevent"])),class:"db-card-filter-dropdown-menu"},[t[1]||(t[1]=(0,l.createElementVNode)("i",{class:"lab lab-line-file-excel lab-font-size-15"},null,-1)),(0,l.createTextVNode)(" "+(0,l.toDisplayString)(e.$t("button.excel")),1)])}]])},1017:(e,t,n)=>{n.d(t,{A:()=>a});var l=n(9726);const o={name:"PaginationBox",components:{TailwindPagination:n(1964).L5},props:{pagination:{type:Object},method:{type:Function}},data:function(){return{activeClass:["bg-blue-50","border-blue-500","text-primary"]}},methods:{page:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:1;this.method(e)}}};const a=(0,n(6262).A)(o,[["render",function(e,t,n,o,a,r){var i=(0,l.resolveComponent)("TailwindPagination");return(0,l.openBlock)(),(0,l.createElementBlock)("div",null,[(0,l.createVNode)(i,{data:n.pagination,onPaginationChangePage:r.page,"active-classes":a.activeClass,limit:1},null,8,["data","onPaginationChangePage","active-classes"])])}]])},1751:(e,t,n)=>{n.d(t,{A:()=>r});var l=n(9726),o={class:"flex flex-1 justify-between sm:hidden"};const a={name:"PaginationSMBox",components:{TailwindPagination:n(1964).L5},props:{pagination:{type:Object},method:{type:Function}},data:function(){return{activeClass:["bg-blue-50","border-blue-500","text-primary"]}},methods:{page:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:1;this.method(e)}}};const r=(0,n(6262).A)(a,[["render",function(e,t,n,a,r,i){var s=(0,l.resolveComponent)("TailwindPagination");return(0,l.openBlock)(),(0,l.createElementBlock)("div",o,[(0,l.createVNode)(s,{data:n.pagination,onPaginationChangePage:i.page,"active-classes":r.activeClass,limit:-1},null,8,["data","onPaginationChangePage","active-classes"])])}]])},1889:(e,t,n)=>{n.d(t,{A:()=>r});var l=n(9726),o={class:"text-sm text-gray-700"};const a={name:"PaginationTextComponent",props:["props"]};const r=(0,n(6262).A)(a,[["render",function(e,t,n,a,r,i){var s,c;return(0,l.openBlock)(),(0,l.createElementBlock)("div",null,[(0,l.createElementVNode)("p",o,(0,l.toDisplayString)(e.$t("message.pagination_label",{from:null!==(s=n.props.page.from)&&void 0!==s?s:0,to:null!==(c=n.props.page.to)&&void 0!==c?c:0,total:n.props.page.total})),1)])}]])},1964:(e,t,n)=>{n.d(t,{L5:()=>h});var l=n(9726);const o={emits:["pagination-change-page"],props:{data:{type:Object,default:()=>{}},limit:{type:Number,default:0},keepLength:{type:Boolean,default:!1}},computed:{isApiResource(){return!!this.data.meta},currentPage(){var e;return this.isApiResource?this.data.meta.current_page:null!=(e=this.data.current_page)?e:null},firstPageUrl(){var e,t,n,l,o;return null!=(o=null!=(l=null!=(t=this.data.first_page_url)?t:null==(e=this.data.meta)?void 0:e.first_page_url)?l:null==(n=this.data.links)?void 0:n.first)?o:null},from(){var e;return this.isApiResource?this.data.meta.from:null!=(e=this.data.from)?e:null},lastPage(){var e;return this.isApiResource?this.data.meta.last_page:null!=(e=this.data.last_page)?e:null},lastPageUrl(){var e,t,n,l,o;return null!=(o=null!=(l=null!=(t=this.data.last_page_url)?t:null==(e=this.data.meta)?void 0:e.last_page_url)?l:null==(n=this.data.links)?void 0:n.last)?o:null},nextPageUrl(){var e,t,n,l,o;return null!=(o=null!=(l=null!=(t=this.data.next_page_url)?t:null==(e=this.data.meta)?void 0:e.next_page_url)?l:null==(n=this.data.links)?void 0:n.next)?o:null},perPage(){var e;return this.isApiResource?this.data.meta.per_page:null!=(e=this.data.per_page)?e:null},prevPageUrl(){var e,t,n,l,o;return null!=(o=null!=(l=null!=(t=this.data.prev_page_url)?t:null==(e=this.data.meta)?void 0:e.prev_page_url)?l:null==(n=this.data.links)?void 0:n.prev)?o:null},to(){var e;return this.isApiResource?this.data.meta.to:null!=(e=this.data.to)?e:null},total(){var e;return this.isApiResource?this.data.meta.total:null!=(e=this.data.total)?e:null},pageRange(){if(-1===this.limit)return 0;if(0===this.limit)return this.lastPage;for(var e,t=this.currentPage,n=this.keepLength,l=this.lastPage,o=this.limit,a=t-o,r=t+o,i=2*(o+2),s=2*(o+2)-1,c=[],d=[],p=1;p<=l;p++)(1===p||p===l||p>=a&&p<=r||n&&p<i&&t<i-2||n&&p>l-s&&t>l-s+2)&&c.push(p);return c.forEach(function(t){e&&(t-e===2?d.push(e+1):t-e!==1&&d.push("...")),d.push(t),e=t}),d}},methods:{previousPage(){this.selectPage(this.currentPage-1)},nextPage(){this.selectPage(this.currentPage+1)},selectPage(e){"..."===e||e===this.currentPage||this.$emit("pagination-change-page",e)}},render(){return this.$slots.default({data:this.data,limit:this.limit,computed:{isApiResource:this.isApiResource,currentPage:this.currentPage,firstPageUrl:this.firstPageUrl,from:this.from,lastPage:this.lastPage,lastPageUrl:this.lastPageUrl,nextPageUrl:this.nextPageUrl,perPage:this.perPage,prevPageUrl:this.prevPageUrl,to:this.to,total:this.total,pageRange:this.pageRange},prevButtonEvents:{click:e=>{e.preventDefault(),this.previousPage()}},nextButtonEvents:{click:e=>{e.preventDefault(),this.nextPage()}},pageButtonEvents:e=>({click:t=>{t.preventDefault(),this.selectPage(e)}})})}},a=(e,t)=>{const n=e.__vccOpts||e;for(const[e,l]of t)n[e]=l;return n};Boolean,Boolean;Boolean,Boolean;const r={compatConfig:{MODE:3},inheritAttrs:!1,emits:["pagination-change-page"],components:{RenderlessPagination:o},props:{data:{type:Object,default:()=>{}},limit:{type:Number,default:0},keepLength:{type:Boolean,default:!1},itemClasses:{type:Array,default:()=>["bg-white","text-gray-500","border-gray-300","hover:bg-gray-50"]},activeClasses:{type:Array,default:()=>["bg-blue-50","border-blue-500","text-blue-600"]}},methods:{onPaginationChangePage(e){this.$emit("pagination-change-page",e)}}},i=["disabled"],s=(0,l.createElementVNode)("span",{class:"sr-only"},"Previous",-1),c=(0,l.createElementVNode)("svg",{class:"w-5 h-5","aria-hidden":"true",xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor"},[(0,l.createElementVNode)("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M15.75 19.5L8.25 12l7.5-7.5"})],-1),d=["aria-current","disabled"],p=["disabled"],u=(0,l.createElementVNode)("span",{class:"sr-only"},"Next",-1),m=(0,l.createElementVNode)("svg",{class:"w-5 h-5","aria-hidden":"true",xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor"},[(0,l.createElementVNode)("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M8.25 4.5l7.5 7.5-7.5 7.5"})],-1);const h=a(r,[["render",function(e,t,n,o,a,r){const h=(0,l.resolveComponent)("RenderlessPagination");return(0,l.openBlock)(),(0,l.createBlock)(h,{data:n.data,limit:n.limit,"keep-length":n.keepLength,onPaginationChangePage:r.onPaginationChangePage},{default:(0,l.withCtx)(t=>[t.computed.total>t.computed.perPage?((0,l.openBlock)(),(0,l.createElementBlock)("nav",(0,l.mergeProps)({key:0},e.$attrs,{class:"inline-flex -space-x-px rounded-md shadow-sm isolate ltr:flex-row rtl:flex-row-reverse","aria-label":"Pagination"}),[(0,l.createElementVNode)("button",(0,l.mergeProps)({class:["relative inline-flex items-center px-2 py-2 text-sm font-medium border rounded-l-md focus:z-20 disabled:opacity-50",n.itemClasses],disabled:!t.computed.prevPageUrl},(0,l.toHandlers)(t.prevButtonEvents,!0)),[(0,l.renderSlot)(e.$slots,"prev-nav",{},()=>[s,c])],16,i),((0,l.openBlock)(!0),(0,l.createElementBlock)(l.Fragment,null,(0,l.renderList)(t.computed.pageRange,(e,o)=>((0,l.openBlock)(),(0,l.createElementBlock)("button",(0,l.mergeProps)({class:["relative inline-flex items-center px-4 py-2 text-sm font-medium border focus:z-20",[e==t.computed.currentPage?n.activeClasses:n.itemClasses,e==t.computed.currentPage?"z-30":""]],"aria-current":t.computed.currentPage?"page":null,key:o},(0,l.toHandlers)(t.pageButtonEvents(e),!0),{disabled:e===t.computed.currentPage}),(0,l.toDisplayString)(e),17,d))),128)),(0,l.createElementVNode)("button",(0,l.mergeProps)({class:["relative inline-flex items-center px-2 py-2 text-sm font-medium border rounded-r-md focus:z-20 disabled:opacity-50",n.itemClasses],disabled:!t.computed.nextPageUrl},(0,l.toHandlers)(t.nextButtonEvents,!0)),[(0,l.renderSlot)(e.$slots,"next-nav",{},()=>[u,m])],16,p)],16)):(0,l.createCommentVNode)("",!0)]),_:3},8,["data","limit","keep-length","onPaginationChangePage"])}]])},3911:(e,t,n)=>{n.d(t,{A:()=>r});var l=n(9726),o={class:"db-card-filter-dropdown-menu"};const a={name:"PrintComponent",props:["props"],directives:{print:n(5316).A}};const r=(0,n(6262).A)(a,[["render",function(e,t,n,a,r,i){var s=(0,l.resolveDirective)("print");return(0,l.withDirectives)(((0,l.openBlock)(),(0,l.createElementBlock)("button",o,[t[0]||(t[0]=(0,l.createElementVNode)("i",{class:"lab-line-printer lab-font-size-17"},null,-1)),(0,l.createTextVNode)(" "+(0,l.toDisplayString)(e.$t("button.print")),1)])),[[s,n.props]])}]])},4579:(e,t,n)=>{n.d(t,{A:()=>r});var l=n(9726),o={class:"db-card-filter-btn table-filter-btn"};const a={name:"FilterComponent"};const r=(0,n(6262).A)(a,[["render",function(e,t,n,a,r,i){return(0,l.openBlock)(),(0,l.createElementBlock)("button",o,[t[0]||(t[0]=(0,l.createElementVNode)("i",{class:"lab lab-line-filter lab-font-size-14"},null,-1)),(0,l.createElementVNode)("span",null,(0,l.toDisplayString)(e.$t("button.filter")),1)])}]])},5178:(e,t,n)=>{n.d(t,{A:()=>a});var l=n(9726);const o={name:"PdfComponent",props:{method:{type:Function}},methods:{pdfDownload:function(){this.method()}}};const a=(0,n(6262).A)(o,[["render",function(e,t,n,o,a,r){return(0,l.openBlock)(),(0,l.createElementBlock)("a",{href:"#",onClick:t[0]||(t[0]=(0,l.withModifiers)(function(){return r.pdfDownload&&r.pdfDownload.apply(r,arguments)},["prevent"])),class:"db-card-filter-dropdown-menu"},[t[1]||(t[1]=(0,l.createElementVNode)("i",{class:"lab lab-line-pdf lab-font-size-15"},null,-1)),(0,l.createTextVNode)(" "+(0,l.toDisplayString)(e.$t("button.pdf")),1)])}]])},5300:(e,t,n)=>{n.d(t,{A:()=>a});var l=n(6314),o=n.n(l)()(function(e){return e[1]});o.push([e.id,"@media print{.hidden-print[data-v-510dd2f8]{display:none!important}}",""]);const a=o},5316:(e,t,n)=>{n.d(t,{A:()=>a});class l{constructor(e){this.standards={strict:"strict",loose:"loose",html5:"html5"},this.previewBody=null,this.close=null,this.previewBodyUtilPrintBtn=null,this.selectArray=[],this.counter=0,this.settings={standard:this.standards.html5},Object.assign(this.settings,e),this.init()}init(){this.counter++,this.settings.id=`printArea_${this.counter}`;let e="";this.settings.url&&!this.settings.asyncUrl&&(e=this.settings.url);let t=this;if(this.settings.asyncUrl)return void t.settings.asyncUrl(function(e){let n=t.getPrintWindow(e);t.settings.preview?t.previewIfrmaeLoad():t.print(n)},t.settings.vue);let n=this.getPrintWindow(e);this.settings.url||this.write(n.doc),this.settings.preview?this.previewIfrmaeLoad():this.print(n)}addEvent(e,t,n){e.addEventListener?e.addEventListener(t,n,!1):e.attachEvent?e.attachEvent("on"+t,n):e["on"+t]=n}previewIfrmaeLoad(){let e=document.getElementById("vue-pirnt-nb-previewBox");if(e){let t=this,n=e.querySelector("iframe");this.settings.previewBeforeOpenCallback(),this.addEvent(n,"load",function(){t.previewBoxShow(),t.removeCanvasImg(),t.settings.previewOpenCallback()}),this.addEvent(e.querySelector(".previewBodyUtilPrintBtn"),"click",function(){t.settings.beforeOpenCallback(),t.settings.openCallback(),n.contentWindow.print(),t.settings.closeCallback()})}}removeCanvasImg(){let e=this;try{if(e.elsdom){let t=e.elsdom.querySelectorAll(".canvasImg");for(let e=0;e<t.length;e++)t[e].remove()}}catch(e){console.log(e)}}print(e){var t=this;let n=document.getElementById(this.settings.id)||e.f,l=document.getElementById(this.settings.id).contentWindow||e.f.contentWindow;t.settings.beforeOpenCallback(),t.addEvent(n,"load",function(){l.focus(),t.settings.openCallback(),l.print(),n.remove(),t.settings.closeCallback(),t.removeCanvasImg()})}write(e){e.open(),e.write(`${this.docType()}<html>${this.getHead()}${this.getBody()}</html>`),e.close()}docType(){return this.settings.standard===this.standards.html5?"<!DOCTYPE html>":`<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01${this.settings.standard===this.standards.loose?" Transitional":""}//EN" "http://www.w3.org/TR/html4/${this.settings.standard===this.standards.loose?"loose":"strict"}.dtd">`}getHead(){let e="",t="",n="";this.settings.extraHead&&this.settings.extraHead.replace(/([^,]+)/g,t=>{e+=t}),[].forEach.call(document.querySelectorAll("link"),function(e){e.href.indexOf(".css")>=0&&(t+=`<link type="text/css" rel="stylesheet" href="${e.href}" >`)});let l=document.styleSheets;if(l&&l.length>0)for(let e=0;e<l.length;e++)try{if(l[e].cssRules||l[e].rules){let t=l[e].cssRules||l[e].rules;for(let e=0;e<t.length;e++)n+=t[e].cssText}}catch(t){console.log(l[e].href+t)}return this.settings.extraCss&&this.settings.extraCss.replace(/([^,\s]+)/g,e=>{t+=`<link type="text/css" rel="stylesheet" href="${e}">`}),`<head><title>${this.settings.popTitle}</title>${e}${t}<style type="text/css">${n}</style></head>`}getBody(){let e=this.settings.ids;return e=e.replace(new RegExp("#","g"),""),this.elsdom=this.beforeHanler(document.getElementById(e)),"<body>"+this.getFormData(this.elsdom).outerHTML+"</body>"}beforeHanler(e){let t=e.querySelectorAll("canvas");for(let e=0;e<t.length;e++)if(!t[e].style.display){let n=t[e].parentNode,l=t[e].toDataURL("image/png"),o=new Image;o.className="canvasImg",o.style.display="none",o.src=l,n.appendChild(o)}return e}getFormData(e){let t=e.cloneNode(!0),n=t.querySelectorAll("input,select,textarea"),l=t.querySelectorAll(".canvasImg,canvas"),o=-1;for(let e=0;e<l.length;e++){let t=l[e].parentNode,n=l[e];"canvas"===n.tagName.toLowerCase()?t.removeChild(n):n.style.display="block"}for(let t=0;t<n.length;t++){let l=n[t],a=l.getAttribute("type"),r=n[t];if(a||(a="SELECT"===l.tagName?"select":"TEXTAREA"===l.tagName?"textarea":""),"INPUT"===l.tagName)"radio"===a||"checkbox"===a?l.checked&&r.setAttribute("checked",l.checked):(r.value=l.value,r.setAttribute("value",l.value));else if("select"===a){o++;for(let t=0;t<e.querySelectorAll("select").length;t++){let n=e.querySelectorAll("select")[t];if(!n.getAttribute("newbs")&&n.setAttribute("newbs",t),n.getAttribute("newbs")==o){let t=e.querySelectorAll("select")[o].selectedIndex;l.options[t].setAttribute("selected",!0)}}}else r.innerHTML=l.value,r.setAttribute("html",l.value)}return t}getPrintWindow(e){var t=this.Iframe(e);return{f:t,win:t.contentWindow||t,doc:t.doc}}previewBoxShow(){let e=document.getElementById("vue-pirnt-nb-previewBox");e&&(document.querySelector("html").setAttribute("style","overflow: hidden"),e.style.display="block")}previewBoxHide(){let e=document.getElementById("vue-pirnt-nb-previewBox");e&&(document.querySelector("html").setAttribute("style","overflow: visible;"),e.querySelector("iframe")&&e.querySelector("iframe").remove(),e.style.display="none")}previewBox(){let e=document.getElementById("vue-pirnt-nb-previewBox");if(e)return e.querySelector("iframe")&&e.querySelector("iframe").remove(),{close:e.querySelector(".previewClose"),previewBody:e.querySelector(".previewBody")};let t=document.createElement("div");t.setAttribute("id","vue-pirnt-nb-previewBox"),t.setAttribute("style","position: fixed;top: 0px;left: 0px;width: 100%;height: 100%;background: white;display:none"),t.style.zIndex=this.settings.zIndex;let n=document.createElement("div");n.setAttribute("class","previewHeader"),n.setAttribute("style","padding: 5px 20px;"),n.innerHTML=this.settings.previewTitle,t.appendChild(n),this.close=document.createElement("div");let l=this.close;l.setAttribute("class","previewClose"),l.setAttribute("style","position: absolute;top: 5px;right: 20px;width: 25px;height: 20px;cursor: pointer;");let o=document.createElement("div"),a=document.createElement("div");o.setAttribute("class","closeBefore"),o.setAttribute("style","position: absolute;width: 3px;height: 100%;background: #040404;transform: rotate(45deg); top: 0px;left: 50%;"),a.setAttribute("class","closeAfter"),a.setAttribute("style","position: absolute;width: 3px;height: 100%;background: #040404;transform: rotate(-45deg); top: 0px;left: 50%;"),l.appendChild(o),l.appendChild(a),n.appendChild(l),this.previewBody=document.createElement("div");let r=this.previewBody;r.setAttribute("class","previewBody"),r.setAttribute("style","display: flex;flex-direction: column; height: 100%;"),t.appendChild(r);let i=document.createElement("div");i.setAttribute("class","previewBodyUtil"),i.setAttribute("style","height: 32px;background: #474747;position: relative;"),r.appendChild(i),this.previewBodyUtilPrintBtn=document.createElement("div");let s=this.previewBodyUtilPrintBtn;return s.setAttribute("class","previewBodyUtilPrintBtn"),s.innerHTML=this.settings.previewPrintBtnLabel,s.setAttribute("style","position: absolute;padding: 2px 10px;margin-top: 3px;left: 24px;font-size: 14px;color: white;cursor: pointer;background-color: rgba(0,0,0,.12);background-image: linear-gradient(hsla(0,0%,100%,.05),hsla(0,0%,100%,0));background-clip: padding-box;border: 1px solid rgba(0,0,0,.35);border-color: rgba(0,0,0,.32) rgba(0,0,0,.38) rgba(0,0,0,.42);box-shadow: inset 0 1px 0 hsla(0,0%,100%,.05), inset 0 0 1px hsla(0,0%,100%,.15), 0 1px 0 hsla(0,0%,100%,.05);"),i.appendChild(s),document.body.appendChild(t),{close:this.close,previewBody:this.previewBody}}iframeBox(e,t){let n=document.createElement("iframe");return n.style.border="0px",n.style.position="absolute",n.style.width="0px",n.style.height="0px",n.style.right="0px",n.style.top="0px",n.setAttribute("id",e),n.setAttribute("src",t),n}Iframe(e){let t=this.settings.id;e=e||(new Date).getTime();let n=this,l=this.iframeBox(t,e);try{if(this.settings.preview){l.setAttribute("style","border: 0px;flex: 1;");let e=this.previewBox(),t=e.previewBody,o=e.close;t.appendChild(l),this.addEvent(o,"click",function(){n.previewBoxHide()})}else document.body.appendChild(l);l.doc=null,l.doc=l.contentDocument?l.contentDocument:l.contentWindow?l.contentWindow.document:l.document}catch(e){throw new Error(e+". iframes may not be supported in this browser.")}if(null==l.doc)throw new Error("Cannot find document.");return l}}var o={directiveName:"print",mounted(e,t,n){let o=t.instance,a="";var r,i,s;i="click",s=()=>{if("string"==typeof t.value)a=t.value;else{if("object"!=typeof t.value||!t.value.id)return void window.print();{a=t.value.id;let e=a.replace(new RegExp("#","g"),"");document.getElementById(e)||(console.log("id in Error"),a="")}}c()},(r=e).addEventListener?r.addEventListener(i,s,!1):r.attachEvent?r.attachEvent("on"+i,s):r["on"+i]=s;const c=()=>{new l({ids:a,vue:o,url:t.value.url,standard:"",extraHead:t.value.extraHead,extraCss:t.value.extraCss,zIndex:t.value.zIndex||20002,previewTitle:t.value.previewTitle||"打印预览",previewPrintBtnLabel:t.value.previewPrintBtnLabel||"打印",popTitle:t.value.popTitle,preview:t.value.preview||!1,asyncUrl:t.value.asyncUrl,previewBeforeOpenCallback(){t.value.previewBeforeOpenCallback&&t.value.previewBeforeOpenCallback(o)},previewOpenCallback(){t.value.previewOpenCallback&&t.value.previewOpenCallback(o)},openCallback(){t.value.openCallback&&t.value.openCallback(o)},closeCallback(){t.value.closeCallback&&t.value.closeCallback(o)},beforeOpenCallback(){t.value.beforeOpenCallback&&t.value.beforeOpenCallback(o)}})}},install:function(e){e.directive("print",o)}};const a=o},6365:(e,t,n)=>{n.d(t,{A:()=>r});var l=n(9726),o={class:"db-card-filter-btn dropdown-btn"};const a={name:"ExportComponent"};const r=(0,n(6262).A)(a,[["render",function(e,t,n,a,r,i){return(0,l.openBlock)(),(0,l.createElementBlock)("button",o,[t[0]||(t[0]=(0,l.createElementVNode)("i",{class:"lab lab-line-file-export lab-font-size-17"},null,-1)),(0,l.createElementVNode)("span",null,(0,l.toDisplayString)(e.$t("button.export")),1)])}]])},9238:(e,t,n)=>{n.d(t,{A:()=>r});var l=n(9726),o={class:"db-tooltip"};const a={name:"SmIconViewComponent",props:{link:String,id:Number}};const r=(0,n(6262).A)(a,[["render",function(e,t,n,a,r,i){var s=(0,l.resolveComponent)("router-link");return(0,l.openBlock)(),(0,l.createBlock)(s,{class:"db-table-action view",to:{name:this.$props.link,params:{id:this.$props.id}}},{default:(0,l.withCtx)(function(){return[t[0]||(t[0]=(0,l.createElementVNode)("i",{class:"lab lab-line-eye"},null,-1)),(0,l.createElementVNode)("span",o,(0,l.toDisplayString)(e.$t("button.view")),1)]}),_:1,__:[0]},8,["to"])}]])},9319:(e,t,n)=>{n.d(t,{A:()=>u});var l=n(9726),o={key:0,class:"db-field-down-arrow"},a={value:"10"},r={value:"25"},i={value:"50"},s={value:"100"},c={value:"500"},d={value:"1000"};const p={name:"TableLimitComponent",props:{page:{type:Object},search:{type:Object},method:{type:Function}},methods:{limitChange:function(){this.method()}}};const u=(0,n(6262).A)(p,[["render",function(e,t,n,p,u,m){return n.page.total>10?((0,l.openBlock)(),(0,l.createElementBlock)("div",o,[(0,l.withDirectives)((0,l.createElementVNode)("select",{onChange:t[0]||(t[0]=function(){return m.limitChange&&m.limitChange.apply(m,arguments)}),"onUpdate:modelValue":t[1]||(t[1]=function(e){return n.search.per_page=e}),class:"db-card-filter-select"},[(0,l.createElementVNode)("option",a,(0,l.toDisplayString)(e.$t("number.10")),1),(0,l.createElementVNode)("option",r,(0,l.toDisplayString)(e.$t("number.25")),1),(0,l.createElementVNode)("option",i,(0,l.toDisplayString)(e.$t("number.50")),1),(0,l.createElementVNode)("option",s,(0,l.toDisplayString)(e.$t("number.100")),1),(0,l.createElementVNode)("option",c,(0,l.toDisplayString)(e.$t("number.500")),1),(0,l.createElementVNode)("option",d,(0,l.toDisplayString)(e.$t("number.1000")),1)],544),[[l.vModelSelect,n.search.per_page]])])):(0,l.createCommentVNode)("",!0)}]])},9432:(e,t,n)=>{n.r(t),n.d(t,{default:()=>ke});var l=n(9726),o={class:"col-12"},a={class:"db-card db-tab-div active"},r={class:"db-card-header border"},i={class:"db-card-title"},s={class:"db-card-filter"},c={class:"dropdown-group"},d={class:"dropdown-list db-card-filter-dropdown-list"},p={class:"table-filter-div",id:"productreport-filter"},u={class:"row"},m={class:"col-12 sm:col-6 md:col-4 xl:col-3"},h={for:"product_category_id",class:"db-field-title"},g={class:"col-12 sm:col-6 md:col-4 xl:col-3"},v={for:"name",class:"db-field-title"},b={class:"col-12 sm:col-6 md:col-4 xl:col-3"},f={for:"searchStartDate",class:"db-field-title after:hidden"},y={class:"col-12"},x={class:"flex flex-wrap gap-3 mt-4"},E={class:"db-btn py-2 text-white bg-primary"},w={class:"row px-5 mt-5 mb-5"},C={class:"col-12 sm:col-6 md:col-4 lg:col-6 xl:col-4"},k={class:"border flex items-center gap-4 p-4 rounded-lg"},N={class:"font-medium text-sm capitalize tracking-wide mb-1"},V={class:"font-bold text-lg text-[#6E7191]"},A={class:"col-12 sm:col-6 md:col-4 lg:col-6 xl:col-4"},B={class:"border flex items-center gap-4 p-4 rounded-lg"},P={class:"font-medium text-sm capitalize tracking-wide mb-1"},S={class:"font-bold text-lg text-[#6E7191]"},_={class:"col-12 sm:col-6 md:col-4 lg:col-6 xl:col-4"},D={class:"border flex items-center gap-4 p-4 rounded-lg"},$={class:"font-medium text-sm capitalize tracking-wide mb-1"},R={class:"font-bold text-lg text-[#6E7191]"},L={class:"db-table-responsive"},T={class:"db-table stripe",id:"print"},U={class:"db-table-head"},O={class:"db-table-head-tr"},I={class:"db-table-head-th"},F={class:"db-table-head-th"},j={class:"db-table-head-th"},q={key:0,class:"db-table-body"},z={class:"db-table-body-td"},H={class:"db-table-body-td"},M={class:"db-table-body-td"},W={key:1,class:"db-table-body"},Y={class:"db-table-body-tr"},X={class:"db-table-body-td text-center",colspan:"3"},G={class:"p-4"},J={class:"max-w-[300px] mx-auto mt-2"},K=["src"],Q={class:"d-block mt-3 text-lg"},Z={key:2,class:"db-table-foot border-t"},ee={class:"db-table-body-td"},te={class:"db-table-body-td"},ne={key:0,class:"flex items-center justify-between border-t border-gray-200 bg-white px-4 py-6"},le={class:"hidden sm:flex sm:flex-1 sm:items-center sm:justify-between"};var oe=n(5475),ae=n(9856),re=n(1889),ie=n(1017),se=n(1751),ce=n(8655),de=n(9319),pe=n(4579),ue=n(6365),me=(n(5316),n(3911)),he=n(725),ge=n(5178),ve=n(9238),be=n(6749),fe=(n(7169),n(8536));const ye={name:"ProductsReportListComponent",components:{TableLimitComponent:de.A,PaginationSMBox:se.A,PaginationBox:ie.A,PaginationTextComponent:re.A,LoadingComponent:oe.A,ExportComponent:ue.A,FilterComponent:pe.A,PrintComponent:me.A,ExcelComponent:he.A,Datepicker:be.A,SmIconViewComponent:ve.A,PdfComponent:ge.A},data:function(){return{loading:{isActive:!1},printLoading:!0,printObj:{id:"print",popTitle:this.$t("menu.products_report")},props:{search:{paginate:1,page:1,per_page:10,order_column:"id",name:null,product_category_id:null,from_date:"",to_date:""}},productSearch:{paginate:0,page:1,order_column:"id"},modelValue:null,productCategories:[],ENV:fe.A}},mounted:function(){var e=this;this.list(),this.loading.isActive=!0,this.props.search.page=1,this.$store.dispatch("product/getSimpleProduct",this.productSearch).then(function(t){e.loading.isActive=!1}).catch(function(t){e.loading.isActive=!1}),this.$store.dispatch("productCategory/depthTrees").then(function(t){e.productCategories=t.data.data,e.loading.isActive=!1}).catch(function(t){e.loading.isActive=!1})},computed:{productsReports:function(){return this.$store.getters["productsReport/lists"]},productsReportOverview:function(){return this.$store.getters["productsReport/productsReportOverview"]},products:function(){return this.$store.getters["product/simpleList"]},pagination:function(){return this.$store.getters["productsReport/pagination"]},paginationPage:function(){return this.$store.getters["productsReport/page"]}},methods:{floatNumber:function(e){return ce.A.floatNumber(e)},statusClass:function(e){return ce.A.statusClass(e)},textShortener:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:30;return ce.A.textShortener(e,t)},handleSlide:function(e){return ce.A.handleSlide(e)},search:function(){this.list()},handleDate:function(e){e?(this.props.search.from_date=e[0],this.props.search.to_date=e[1]):(this.props.search.from_date=null,this.props.search.to_date=null)},subTotal:function(e){return e.reduce(function(e,t){return e+parseInt(t.order)},0)},clear:function(){this.props.search.paginate=1,this.props.search.page=1,this.props.search.name=null,this.props.search.product_category_id=null,this.props.search.from_date="",this.props.search.to_date="",this.modelValue=null,this.list()},list:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:1;this.loading.isActive=!0,this.props.search.page=t,this.$store.dispatch("productsReport/lists",this.props.search).then(function(t){e.loading.isActive=!1}).catch(function(t){e.loading.isActive=!1}),this.$store.dispatch("productsReport/productsReportOverview",this.props.search).then(function(t){e.loading.isActive=!1}).catch(function(t){e.loading.isActive=!1})},xls:function(){var e=this;this.loading.isActive=!0,this.$store.dispatch("productsReport/export",this.props.search).then(function(t){e.loading.isActive=!1;var n=new Blob([t.data],{type:"application/vnd.openxmlformats-officedocument.spreadsheetml.sheet"}),l=document.createElement("a");l.href=URL.createObjectURL(n),l.download=e.$t("menu.products_report"),l.click(),URL.revokeObjectURL(l.href)}).catch(function(t){e.loading.isActive=!1,ae.A.error(t.response.data.message)})},downloadPdf:function(){var e=this;this.loading.isActive=!0,this.$store.dispatch("productsReport/exportPdf",this.props.search).then(function(t){e.loading.isActive=!1;var n=new Blob([t.data],{type:"application/pdf"}),l=document.createElement("a");l.href=URL.createObjectURL(n),l.download="Product-report.pdf",l.click(),URL.revokeObjectURL(l.href)}).catch(function(t){e.loading.isActive=!1,ae.A.error(t.response.data.message)})}}};var xe=n(5072),Ee=n.n(xe),we=n(5300),Ce={insert:"head",singleton:!1};Ee()(we.A,Ce);we.A.locals;const ke=(0,n(6262).A)(ye,[["render",function(e,t,n,oe,ae,re){var ie=(0,l.resolveComponent)("LoadingComponent"),se=(0,l.resolveComponent)("TableLimitComponent"),ce=(0,l.resolveComponent)("FilterComponent"),de=(0,l.resolveComponent)("ExportComponent"),pe=(0,l.resolveComponent)("PrintComponent"),ue=(0,l.resolveComponent)("ExcelComponent"),me=(0,l.resolveComponent)("PdfComponent"),he=(0,l.resolveComponent)("vue-select"),ge=(0,l.resolveComponent)("Datepicker"),ve=(0,l.resolveComponent)("PaginationSMBox"),be=(0,l.resolveComponent)("PaginationTextComponent"),fe=(0,l.resolveComponent)("PaginationBox");return(0,l.openBlock)(),(0,l.createElementBlock)(l.Fragment,null,[(0,l.createVNode)(ie,{props:ae.loading},null,8,["props"]),(0,l.createElementVNode)("div",o,[(0,l.createElementVNode)("div",a,[(0,l.createElementVNode)("div",r,[(0,l.createElementVNode)("h3",i,(0,l.toDisplayString)(e.$t("menu.products_report")),1),(0,l.createElementVNode)("div",s,[(0,l.createVNode)(se,{method:re.list,search:ae.props.search,page:re.paginationPage},null,8,["method","search","page"]),(0,l.createVNode)(ce,{onClick:t[0]||(t[0]=(0,l.withModifiers)(function(e){return re.handleSlide("productreport-filter")},["prevent"]))}),(0,l.createElementVNode)("div",c,[(0,l.createVNode)(de),(0,l.createElementVNode)("div",d,[(0,l.createVNode)(pe,{props:ae.printObj},null,8,["props"]),(0,l.createVNode)(ue,{method:re.xls},null,8,["method"]),(0,l.createVNode)(me,{method:re.downloadPdf},null,8,["method"])])])])]),(0,l.createElementVNode)("div",p,[(0,l.createElementVNode)("form",{class:"p-4 sm:p-5 mb-5 w-full d-block",onSubmit:t[5]||(t[5]=(0,l.withModifiers)(function(){return re.search&&re.search.apply(re,arguments)},["prevent"]))},[(0,l.createElementVNode)("div",u,[(0,l.createElementVNode)("div",m,[(0,l.createElementVNode)("label",h,(0,l.toDisplayString)(e.$t("label.category")),1),(0,l.createVNode)(he,{class:"db-field-control f-b-custom-select",id:"product_category_id",modelValue:ae.props.search.product_category_id,"onUpdate:modelValue":t[1]||(t[1]=function(e){return ae.props.search.product_category_id=e}),options:ae.productCategories,"label-by":"option","value-by":"id",closeOnSelect:!0,searchable:!0,clearOnClose:!0,placeholder:"--","search-placeholder":"--"},null,8,["modelValue","options"])]),(0,l.createElementVNode)("div",g,[(0,l.createElementVNode)("label",v,(0,l.toDisplayString)(e.$t("label.name")),1),(0,l.createVNode)(he,{class:"db-field-control f-b-custom-select",id:"name",modelValue:ae.props.search.name,"onUpdate:modelValue":t[2]||(t[2]=function(e){return ae.props.search.name=e}),options:re.products,"label-by":"name","value-by":"name",closeOnSelect:!0,searchable:!0,clearOnClose:!0,placeholder:"--","search-placeholder":"--"},null,8,["modelValue","options"])]),(0,l.createElementVNode)("div",b,[(0,l.createElementVNode)("label",f,(0,l.toDisplayString)(e.$t("label.date")),1),(0,l.createVNode)(ge,{hideInputIcon:"",autoApply:"",enableTimePicker:!1,utc:"false","onUpdate:modelValue":[re.handleDate,t[3]||(t[3]=function(e){return ae.modelValue=e})],modelValue:ae.modelValue,range:!0},null,8,["onUpdate:modelValue","modelValue"])]),(0,l.createElementVNode)("div",y,[(0,l.createElementVNode)("div",x,[(0,l.createElementVNode)("button",E,[t[6]||(t[6]=(0,l.createElementVNode)("i",{class:"lab lab-line-search lab-font-size-16"},null,-1)),(0,l.createElementVNode)("span",null,(0,l.toDisplayString)(e.$t("button.search")),1)]),(0,l.createElementVNode)("button",{class:"db-btn py-2 text-white bg-gray-600",onClick:t[4]||(t[4]=function(){return re.clear&&re.clear.apply(re,arguments)})},[t[7]||(t[7]=(0,l.createElementVNode)("i",{class:"lab lab-line-cross lab-font-size-22"},null,-1)),(0,l.createElementVNode)("span",null,(0,l.toDisplayString)(e.$t("button.clear")),1)])])])])],32)]),(0,l.createElementVNode)("div",w,[(0,l.createElementVNode)("div",C,[(0,l.createElementVNode)("div",k,[t[8]||(t[8]=(0,l.createElementVNode)("div",{class:"bg-[#F7F7F7] w-12 h-12 rounded-full flex items-center justify-center"},[(0,l.createElementVNode)("i",{class:"lab-fill-3d-square text-[#6E7191] text-2xl lab-font-size-24"})],-1)),(0,l.createElementVNode)("div",null,[(0,l.createElementVNode)("h3",N,(0,l.toDisplayString)(e.$t("label.total_products")),1),(0,l.createElementVNode)("h4",V,(0,l.toDisplayString)(re.productsReportOverview.total_products),1)])])]),(0,l.createElementVNode)("div",A,[(0,l.createElementVNode)("div",B,[t[9]||(t[9]=(0,l.createElementVNode)("div",{class:"bg-[#F7F7F7] w-12 h-12 rounded-full flex items-center justify-center"},[(0,l.createElementVNode)("i",{class:"lab-fill-variation text-[#6E7191] text-2xl lab-font-size-24"})],-1)),(0,l.createElementVNode)("div",null,[(0,l.createElementVNode)("h3",P,(0,l.toDisplayString)(e.$t("label.total_categories")),1),(0,l.createElementVNode)("h4",S,(0,l.toDisplayString)(re.productsReportOverview.total_categories),1)])])]),(0,l.createElementVNode)("div",_,[(0,l.createElementVNode)("div",D,[t[10]||(t[10]=(0,l.createElementVNode)("div",{class:"bg-[#F7F7F7] w-12 h-12 rounded-full flex items-center justify-center"},[(0,l.createElementVNode)("i",{class:"lab-fill-bag-tick text-[#6E7191] text-2xl lab-font-size-24"})],-1)),(0,l.createElementVNode)("div",null,[(0,l.createElementVNode)("h3",$,(0,l.toDisplayString)(e.$t("label.total_sold_quantity")),1),(0,l.createElementVNode)("h4",R,(0,l.toDisplayString)(re.productsReportOverview.total_sold_quantity),1)])])])]),(0,l.createElementVNode)("div",L,[(0,l.createElementVNode)("table",T,[(0,l.createElementVNode)("thead",U,[(0,l.createElementVNode)("tr",O,[(0,l.createElementVNode)("th",I,(0,l.toDisplayString)(e.$t("label.name")),1),(0,l.createElementVNode)("th",F,(0,l.toDisplayString)(e.$t("label.category")),1),(0,l.createElementVNode)("th",j,(0,l.toDisplayString)(e.$t("label.sold_quantity")),1)])]),re.productsReports.length>0?((0,l.openBlock)(),(0,l.createElementBlock)("tbody",q,[((0,l.openBlock)(!0),(0,l.createElementBlock)(l.Fragment,null,(0,l.renderList)(re.productsReports,function(e){return(0,l.openBlock)(),(0,l.createElementBlock)("tr",{class:"db-table-body-tr",key:e},[(0,l.createElementVNode)("td",z,(0,l.toDisplayString)(e.name),1),(0,l.createElementVNode)("td",H,(0,l.toDisplayString)(e.category_name),1),(0,l.createElementVNode)("td",M,(0,l.toDisplayString)(e.order),1)])}),128))])):((0,l.openBlock)(),(0,l.createElementBlock)("tbody",W,[(0,l.createElementVNode)("tr",Y,[(0,l.createElementVNode)("td",X,[(0,l.createElementVNode)("div",G,[(0,l.createElementVNode)("div",J,[(0,l.createElementVNode)("img",{class:"w-full h-full",src:ae.ENV.API_URL+"/images/default/not-found/not_found.png",alt:"Not Found"},null,8,K)]),(0,l.createElementVNode)("span",Q,(0,l.toDisplayString)(e.$t("message.no_data_found")),1)])])])])),re.productsReports.length>0?((0,l.openBlock)(),(0,l.createElementBlock)("tfoot",Z,[(0,l.createElementVNode)("tr",null,[(0,l.createElementVNode)("td",ee,(0,l.toDisplayString)(e.$t("label.total")),1),t[11]||(t[11]=(0,l.createElementVNode)("td",null,null,-1)),(0,l.createElementVNode)("td",te,(0,l.toDisplayString)(re.subTotal(re.productsReports)),1)])])):(0,l.createCommentVNode)("",!0)])]),re.productsReports.length>0?((0,l.openBlock)(),(0,l.createElementBlock)("div",ne,[(0,l.createVNode)(ve,{pagination:re.pagination,method:re.list},null,8,["pagination","method"]),(0,l.createElementVNode)("div",le,[(0,l.createVNode)(be,{props:{page:re.paginationPage}},null,8,["props"]),(0,l.createVNode)(fe,{pagination:re.pagination,method:re.list},null,8,["pagination","method"])])])):(0,l.createCommentVNode)("",!0)])])],64)}],["__scopeId","data-v-510dd2f8"]])}}]);
Save Changes
Cancel / Back
Close ×
Server Info
Hostname: premium320.web-hosting.com
Server IP: 66.29.153.54
PHP Version: 8.2.29
Server Software: LiteSpeed
System: Linux premium320.web-hosting.com 4.18.0-553.50.1.lve.el8.x86_64 #1 SMP Thu Apr 17 19:10:24 UTC 2025 x86_64
HDD Total: 97.87 GB
HDD Free: 76.87 GB
Domains on IP: N/A (Requires external lookup)
System Features
Safe Mode:
Off
disable_functions:
None
allow_url_fopen:
On
allow_url_include:
Off
magic_quotes_gpc:
Off
register_globals:
Off
open_basedir:
None
cURL:
Enabled
ZipArchive:
Enabled
MySQLi:
Enabled
PDO:
Enabled
wget:
Yes
curl (cmd):
Yes
perl:
Yes
python:
Yes (py3)
gcc:
Yes
pkexec:
No
git:
Yes
User Info
Username: aoneqssk
User ID (UID): 1285
Group ID (GID): 1290
Script Owner UID: 1285
Current Dir Owner: 1285