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/hookExit-50db4a33.js
import{deleteCompanyWeb as D}from"./po-91e7c165.js";import{d as m,u as L}from"./vue-router-a383d220.js";import{D as T}from"./index-ddb9772b.js";import{o as O}from"./index-81e4a901.js";import{b7 as l}from"./message-2472a54a.js";import{r as o,A as n,o as z}from"./runtime-core.esm-bundler-6128546f.js";import"./utils-2ab4f76a.js";import"./preload-helper-78dc9057.js";import"./vue-i18n.runtime.esm-bundler-6949bcab.js";import"./index-b7f916e1.js";import"./_commonjsHelpers-87174ba5.js";import"./focus-trap-53f1c6ab.js";import"./error-78e43d3e.js";function Q(){m(),L(),m();const p=o(),s=o(!1),u=o(!1),h=o(!1),f=o(!1),g=o(""),r=o([]),y=n({}),b=n({tableIndex:0,note:""}),d=n({});n({});const P=n({}),c=n({total:0,pageSize:10,currentPage:1,background:!0,currentPage:1,pageSizes:[10,25,50,100]}),t=n({order_key:"",material_key:"",truck_key:"",truck_id:"",comment:"",show:"",searchKey:"",type:"",role:"",clinic_id:""}),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 _(){a()}function S(e){c.pageSize=e,a()}function W(e){c.currentPage=e,a()}async function a(){t.type=localStorage.getItem("type"),t.type==2&&(t.role="clinic"),t.type==1&&(t.role="therapists"),t.clinic_id=localStorage.getItem("clinicIdOverall"),s.value=!0;const{data:e}=await AccountListWeb(Object.assign(y,{clinic_id:t.clinic_id,role:t.role,searchKey:t.searchKey}));e.code==1&&(r.value=e.data),s.value=!1}const w=(e,i)=>{};function k(e){Object.keys(e).map(i=>{d[i]=e[i]})}async function v(e){const{data:i}=await D(Object.assign(P,{company_id:e.id}));i.code==1?(a(),l({type:"success",message:i.msg})):l({type:"error",message:i.msg})}const x=e=>{O.confirm("Are you sure you want to delete this location",{confirmButtonText:"confirm",cancelButtonText:"cancel",type:"warning"}).then(()=>{v(e)}).catch(()=>{l({type:"info",message:"Canceled"})})};function E(){T().logOut()}return z(()=>{a()}),{searchDetail:t,btnSearchPart:_,loading:s,small:f,selectList:C,columns:A,pagination:c,handleSizeChange:S,handleCurrentChange:W,PartList:r,order_date:g,deliverDialog:u,selectClick:w,itemArr:b,addLocationDialog:h,locationArr:d,EditLocation:k,btnDellocation:x,singleTableRef:p,handleExit:E}}export{Q as useEqu};