File: /var/www/html/public/static/js/hookAiQA-legacy-23883bca.js
System.register(["./po-legacy-2b1fa9b9.js","./vue-router-legacy-a12307c3.js","./index-legacy-42c17c53.js","./message-legacy-10af7c73.js","./runtime-core.esm-bundler-legacy-c5df00b7.js","./index-legacy-3c1533a0.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,i){"use strict";var t,n,c,a,l,s,o,r,d;return{setters:[e=>{t=e.noteAiSearch,n=e.deleteCompanyWeb},e=>{c=e.d,a=e.u},e=>{l=e.o},e=>{s=e.b7},e=>{o=e.r,r=e.A,d=e.o},null,null,null,null,null,null,null,null],execute:function(){e("useEqu",(function(){c(),a(),c();const e=o(),i=o(!1),u=o(!1),h=o(!1),m=o(!1),p=o(""),g=o([]),y=r({}),b=r({tableIndex:0,note:""}),k=r({});r({});const f=r({}),L=r({total:0,pageSize:10,currentPage:1,background:!0,currentPage:1,pageSizes:[10,25,50,100]}),j=r({order_key:"",material_key:"",truck_key:"",truck_id:"",comment:"",show:"",searchKey:"",type:"",role:"",clinic_id:"",isLoading:!1,content:""});async function P(){j.isLoading=!0,i.value=!0;const{data:e}=await t(Object.assign(y,{query:j.searchKey}));1==e.code?(j.content=e.data,C()):j.content="",j.isLoading=!1,i.value=!1}async function A(e){const{data:i}=await n(Object.assign(f,{company_id:e.id}));1==i.code?(P(),s({type:"success",message:i.msg})):s({type:"error",message:i.msg})}function C(){setTimeout((()=>{j.isLoading=!1}),2e3)}return d((()=>{})),{searchDetail:j,btnSearchPart:function(){P()},loading:i,small:m,selectList:["勾选列","Company","HST#","Name","Postal","Phone","Email","Address","Provice","City","Action"],columns:[{type:"selection",width:55,align:"left",hide:({checkList:e})=>!e.includes("勾选列")},{label:"序号列",type:"index",width:70,hide:({checkList:e})=>!e.includes("序号列")},{label:"Company",prop:"company_name",minWidth:100,hide:({checkList:e})=>!e.includes("Company")},{label:"HST#",prop:"hst",minWidth:100,hide:({checkList:e})=>!e.includes("HST#")},{label:"Name",prop:"first_name",minWidth:100,hide:({checkList:e})=>!e.includes("Name")},{label:"Postal",prop:"postal",minWidth:100,hide:({checkList:e})=>!e.includes("Postal")},{label:"Phone",prop:"phone",minWidth:150,slot:"slotAction",hide:({checkList:e})=>!e.includes("Phone")},{label:"Email",prop:"email",minWidth:120,hide:({checkList:e})=>!e.includes("Email")},{label:"Address",prop:"address",minWidth:120,hide:({checkList:e})=>!e.includes("Address")},{label:"Provice",prop:"state",minWidth:120,hide:({checkList:e})=>!e.includes("Provice")},{label:"City",prop:"city",minWidth:120,hide:({checkList:e})=>!e.includes("City")},{label:"Action",fixed:"right",width:120,slot:"operation",hide:({checkList:e})=>!e.includes("Action")}],pagination:L,handleSizeChange:function(e){L.pageSize=e,P()},handleCurrentChange:function(e){L.currentPage=e,P()},PartList:g,order_date:p,deliverDialog:u,selectClick:(e,i)=>{},itemArr:b,addLocationDialog:h,locationArr:k,EditLocation:function(e){Object.keys(e).map((i=>{k[i]=e[i]}))},btnDellocation:e=>{l.confirm("Are you sure you want to delete this location",{confirmButtonText:"confirm",cancelButtonText:"cancel",type:"warning"}).then((()=>{A(e)})).catch((()=>{s({type:"info",message:"Canceled"})}))},singleTableRef:e,fetchData:C}}))}}}));