PageSourceSearch

https://www.inventory.ae/public/build/assets/index-D74E3JVA.js

js inventory.ae collected 2026-10-07 23:09:48 UTC 4,428 bytes, 1 lines download raw bytes

1import{_ as w,G as D,d as A,J as F,a2 as C,o as c,h as v,w as a,c as t,i as L,f as i,t as _,L as g,e as x,F as h,A as M,aB as R,ap as H,l as V,p as B,aF as U,a1 as j,aM as z,r as p,j as q,k as G,B as J}from"./app-B2Y0-4Oe.js";import{d as I}from"./datatable-S-x8bdRa.js";import{A as W}from"./AdminPageHeader-D4ZmExHN.js";import{U as K}from"./UserInfo-CQfsfzfr.js";import{d as O,E as Q}from"./ExportTable-DxfS7wYi.js";import{P as X}from"./PaymentStatus-ptCUI0xc.js";import{P as Y}from"./ProductSearchInput-nVcgaLTH.js";import"./filter-D8gtdSsr.js";import"./index-D-LizC8X.js";import"./FilePdfOutlined-DpbbsFPC.js";import"./PrinterOutlined-CozDeDGc.js";import"./fields-SjscS4Wz.js";import"./FileExcelOutlined-wTFKrpQT.js";const Z=D({props:{product_id:null},components:{UserInfo:K,PaymentStatus:X},setup(e){const{columns:d,hashableColumns:f}=O(),{formatDateTime:u,formatAmountCurrency:b,selectedWarehouse:y}=A(),r=I();F(()=>{m(e)});const m=o=>{const s={};o.product_id&&o.product_id!=null&&(s.x_id=o.product_id),r.tableUrl.value={url:"products?fields=id,xid,name,,item_code,image,image_url,category_id,x_category_id,category{id,xid,name},brand_id,x_brand_id,brand{id,xid,name},unit_id,x_unit_id,unit{id,xid,name,short_name},details{mrp,sales_price,tax_id,x_tax_id,purchase_tax_type,sales_tax_type},details:tax{id,xid,name,rate}",extraFilters:s},r.hashable.value=[...f],r.table.sorter={field:"name",order:"asc"},r.exportDetails.value={allowExport:!0,exportType:"rate_list_reports"},r.fetch({page:1})};return C(e,(o,s)=>{m(o)}),C(y,(o,s)=>{m(e)}),{columns:d,...r,formatDateTime:u,formatAmountCurrency:b}}}),ee={class:"table-responsive"};function te(e,d,f,u,b,y){const r=M,m=R,o=H,s=V,$=B;return c(),v($,null,{default:a(()=>[t(s,{span:24},{default:a(()=>[L("div",ee,[t(o,{columns:e.columns,"row-key":l=>l.xid,"data-source":e.table.data,pagination:e.table.pagination,loading:e.table.loading,onChange:e.handleTableChange,id:"rate-list-reports-table",bordered:"",size:"middle"},{bodyCell:a(({column:l,record:n})=>[l.dataIndex==="name"?(c(),v(m,{key:0},{default:a(()=>[t(r,{shape:"square",src:n.image_url},null,8,["src"]),i(" "+_(n.name),1)]),_:2},1024)):g("",!0),l.dataIndex==="category_id"?(c(),x(h,{key:1},[i(_(n.category&&n.category.name?n.category.name:"-"),1)],64)):g("",!0),l.dataIndex==="brand_id"?(c(),x(h,{key:2},[i(_(n.brand&&n.brand.name?n.brand.name:"-"),1)],64)):g("",!0),l.dataIndex==="mrp"?(c(),x(h,{key:3},[i(_(n.details.mrp?e.formatAmountCurrency(n.details.mrp):"-"),1)],64)):g("",!0),l.dataIndex==="sales_price"?(c(),x(h,{key:4},[i(_(e.formatAmountCurrency(n.details.sales_price)),1)],64)):g("",!0)]),_:1},8,["columns","row-key","data-source","pagination","loading","onChange"])])]),_:1})]),_:1})}const ae=w(Z,[["render",te]]),ne={components:{AdminPageHeader:W,RateList:ae,ProductSearchInput:Y,ExprotTable:Q},setup(){const e=I(),{permsArray:d,willSubscriptionModuleVisible:f}=A(),u=U(),b=j({product_id:void 0});return z(()=>{(!(d.value.includes("products_view")||d.value.includes("admin"))||!f("reports"))&&u.push("admin.dashboard.index")}),{...e,permsArray:d,filters:b}}};function oe(e,d,f,u,b,y){const r=p("ExprotTable"),m=q,o=p("router-link"),s=G,$=J,l=p("AdminPageHeader"),n=V,P=p("ProductSearchInput"),k=B,T=p("admin-page-filters"),E=p("RateList"),S=p("admin-page-table-content");return c(),x(h,null,[t(l,null,{header:a(()=>[t(m,{title:e.$t("menu.rate_list"),class:"p-0"},{extra:a(()=>[t(r,{exportType:"rate_list_reports",tableName:"rate-list-reports-table",title:`${e.$t("menu.rate_list")} ${e.$t("menu.reports")}`},null,8,["title"])]),_:1},8,["title"])]),breadcrumb:a(()=>[t($,{separator:"-",style:{"font-size":"12px"}},{default:a(()=>[t(s,null,{default:a(()=>[t(o,{to:{name:"admin.dashboard.index"}},{default:a(()=>[i(_(e.$t("menu.dashboard")),1)]),_:1})]),_:1}),t(s,null,{default:a(()=>[i(_(e.$t("menu.reports")),1)]),_:1}),t(s,null,{default:a(()=>[i(_(e.$t("menu.rate_list")),1)]),_:1})]),_:1})]),_:1}),t(T,null,{default:a(()=>[t(k,{gutter:[16,16]},{default:a(()=>[t(n,{xs:24,sm:24,md:12,lg:10,xl:10}),t(n,{xs:24,sm:24,md:12,lg:14,xl:14},{default:a(()=>[t(k,{gutter:[16,16],justify:"end"},{default:a(()=>[t(n,{xs:24,sm:24,md:12,lg:8,xl:6},{default:a(()=>[t(P,{onValueChanged:d[0]||(d[0]=N=>{u.filters.product_id=N})})]),_:1})]),_:1})]),_:1})]),_:1})]),_:1}),t(S,null,{default:a(()=>[t(E,{product_id:u.filters.product_id},null,8,["product_id"])]),_:1})],64)}const xe=w(ne,[["render",oe]]);export{xe as default};

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.