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/hookStore-5d1336df.js
import{AccountListWeb as E,deleteCompanyWeb as L}from"./po-399a971b.js";import{d as m,u as T}from"./vue-router-a383d220.js";import{o as D}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"./index-23ee140c.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=o(),c=o(!1),u=o(!1),h=o(!1),f=o(!1),y=o(""),r=o([]),g=n({}),b=n({tableIndex:0,note:""}),d=n({});n({});const P=n({}),s=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 W(e){s.pageSize=e,a()}function S(e){s.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"),c.value=!0;const{data:e}=await E(Object.assign(g,{clinic_id:t.clinic_id,role:t.role,searchKey:t.searchKey}));e.code==1&&(r.value=e.data),c.value=!1}const w=(e,i)=>{};function v(e){Object.keys(e).map(i=>{d[i]=e[i]})}async function k(e){const{data:i}=await L(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=>{D.confirm("Are you sure you want to delete this location",{confirmButtonText:"confirm",cancelButtonText:"cancel",type:"warning"}).then(()=>{k(e)}).catch(()=>{l({type:"info",message:"Canceled"})})};return z(()=>{a()}),{searchDetail:t,btnSearchPart:_,loading:c,small:f,selectList:C,columns:A,pagination:s,handleSizeChange:W,handleCurrentChange:S,PartList:r,order_date:y,deliverDialog:u,selectClick:w,itemArr:b,addLocationDialog:h,locationArr:d,EditLocation:v,btnDellocation:x,singleTableRef:p}}export{Q as useEqu};