HEX
Server: Apache/2.4.6 (CentOS) OpenSSL/1.0.2k-fips PHP/8.2.20
System: Linux 825a8fd6cf8c 3.10.0-1160.95.1.el7.x86_64 #1 SMP Mon Jul 24 13:59:37 UTC 2023 x86_64
User: apache (48)
PHP: 8.2.20
Disabled: NONE
Upload Files
File: /var/www/html/public/static/js/hookHome-e6039224.js
import{getCompanyListWeb as E,deleteCompanyWeb as L}from"./po-506ef85f.js";import{d as m,u as T}from"./vue-router-a383d220.js";import{o as D}from"./index-81e4a901.js";import{b7 as c}from"./message-2472a54a.js";import{r as i,A as o,o as z}from"./runtime-core.esm-bundler-6128546f.js";import"./index-c9ceac6c.js";import"./preload-helper-78dc9057.js";import"./vue-i18n.runtime.esm-bundler-6949bcab.js";import"./index-b7f916e1.js";import"./_commonjsHelpers-87174ba5.js";import"./utils-2ab4f76a.js";import"./focus-trap-53f1c6ab.js";import"./error-78e43d3e.js";function Q(){m(),T(),m();const p=i(),a=i(!1),u=i(!1),h=i(!1),f=i(!1),g=i(""),l=i([]),y=o({}),b=o({tableIndex:0,note:""}),r=o({});o({});const P=o({}),s=o({total:0,pageSize:10,currentPage:1,background:!0,currentPage:1,pageSizes:[10,25,50,100]}),d=o({order_key:"",material_key:"",truck_key:"",truck_id:"",comment:"",show:"",searchKey:""}),A=[{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")}],C=["勾选列","Company","HST#","Name","Postal","Phone","Email","Address","Provice","City","Action"];function W(){n()}function w(e){s.pageSize=e,n()}function S(e){s.currentPage=e,n()}async function n(){a.value=!0;const{data:e}=await E(Object.assign(y,{searchKey:d.searchKey}));l.value=e.data,a.value=!1}const _=(e,t)=>{};function k(e){Object.keys(e).map(t=>{r[t]=e[t]})}async function v(e){const{data:t}=await L(Object.assign(P,{company_id:e.id}));t.code==1?(n(),c({type:"success",message:t.msg})):c({type:"error",message:t.msg})}const x=e=>{D.confirm("Are you sure you want to delete this location",{confirmButtonText:"confirm",cancelButtonText:"cancel",type:"warning"}).then(()=>{v(e)}).catch(()=>{c({type:"info",message:"Canceled"})})};return z(()=>{n()}),{searchDetail:d,btnSearchPart:W,loading:a,small:f,selectList:C,columns:A,pagination:s,handleSizeChange:w,handleCurrentChange:S,PartList:l,order_date:g,deliverDialog:u,selectClick:_,itemArr:b,addLocationDialog:h,locationArr:r,EditLocation:k,btnDellocation:x,singleTableRef:p}}export{Q as useEqu};