File: /var/www/html/public/static/js/hookUserInfo-legacy-633dc944.js
System.register(["./po-legacy-e8c678cb.js","./vue-router-legacy-a12307c3.js","./index-legacy-42c17c53.js","./message-legacy-10af7c73.js","./runtime-core.esm-bundler-legacy-c5df00b7.js","./index-legacy-f36f0e15.js","./preload-helper-legacy-f8638e03.js","./vue-i18n.runtime.esm-bundler-legacy-720876b1.js","./index-legacy-c9e20962.js","./_commonjsHelpers-legacy-5498c249.js","./utils-legacy-c0023c33.js","./focus-trap-legacy-631b7396.js","./error-legacy-e98f9e58.js"],(function(e,t){"use strict";var a,n,i,s,o,c,l,r,u;return{setters:[e=>{a=e.soapListWeb,n=e.deleteCompanyWeb},e=>{i=e.d,s=e.u},e=>{o=e.o},e=>{c=e.b7},e=>{l=e.r,r=e.A,u=e.o},null,null,null,null,null,null,null,null],execute:function(){e("useEqu",(function(){i(),s(),i();const e=l(),t=l(!1),d=l(!1),g=l(!1),y=l(!1),m=l(""),h=l([]),p=r({}),k=r({tableIndex:0,note:""}),b=r({});r({});const j=r({}),v=r({total:0,pageSize:10,currentPage:1,background:!0,currentPage:1,pageSizes:[10,25,50,100]}),f=r({order_key:"",material_key:"",truck_key:"",truck_id:"",comment:"",show:"",searchKey:"today",Booking:"",Note:"",Invoices:""}),x=l([{id:1,text:"Today",value:"today"},{id:2,text:"Yesterday",value:"yesterday"},{id:3,text:"7Day",value:"7day"},{id:4,text:"All",value:"all"}]);async function L(){t.value=!0;const{data:e}=await a(Object.assign(p,{searchTime:f.searchKey}));h.value=e.data.detail,f.Booking=e.data.total.booking,f.Note=e.data.total.note,f.Invoices=e.data.total.invoice,t.value=!1}async function _(e){const{data:t}=await n(Object.assign(j,{company_id:e.id}));1==t.code?(L(),c({type:"success",message:t.msg})):c({type:"error",message:t.msg})}return u((()=>{L()})),{searchDetail:f,btnSearchPart:function(){L()},loading:t,small:y,selectList:["User","Bookings","Notes","Invoices","Action"],columns:[{type:"selection",width:55,align:"left",hide:({checkList:e})=>!e.includes("勾选列")},{label:"序号列",type:"index",width:70,hide:({checkList:e})=>!e.includes("序号列")},{label:"User",prop:"user_name",minWidth:100,hide:({checkList:e})=>!e.includes("User")},{label:"Bookings",prop:"booking_nums",minWidth:100,hide:({checkList:e})=>!e.includes("Bookings")},{label:"Notes",prop:"note_nums",minWidth:100,hide:({checkList:e})=>!e.includes("Notes")},{label:"Invoices",prop:"invoice_nums",minWidth:100,hide:({checkList:e})=>!e.includes("Invoices")}],pagination:v,handleSizeChange:function(e){v.pageSize=e,L()},handleCurrentChange:function(e){v.currentPage=e,L()},PartList:h,order_date:m,deliverDialog:d,selectClick:(e,t)=>{},itemArr:k,addLocationDialog:g,locationArr:b,EditLocation:function(e){Object.keys(e).map((t=>{b[t]=e[t]}))},btnDellocation:e=>{o.confirm("Are you sure you want to delete this location",{confirmButtonText:"confirm",cancelButtonText:"cancel",type:"warning"}).then((()=>{_(e)})).catch((()=>{c({type:"info",message:"Canceled"})}))},singleTableRef:e,loadPartList:L,expressCompanyData:x}}))}}}));