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/hookAiQA-035f6909.js
import{noteAiSearch as T,deleteCompanyWeb as v}from"./po-34b1a012.js";import{d as m,u as D}from"./vue-router-a383d220.js";import{o as z}from"./index-81e4a901.js";import{b7 as l}from"./message-2472a54a.js";import{r as o,A as n,o as j}from"./runtime-core.esm-bundler-6128546f.js";import"./index-48edda51.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 U(){m(),D(),m();const p=o(),s=o(!1),u=o(!1),h=o(!1),f=o(!1),g=o(""),y=o([]),b=n({}),P=n({tableIndex:0,note:""}),r=n({});n({});const A=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:"",isLoading:!1,content:""}),C=[{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")}],W=["勾选列","Company","HST#","Name","Postal","Phone","Email","Address","Provice","City","Action"];function w(){a()}function L(e){c.pageSize=e,a()}function S(e){c.currentPage=e,a()}async function a(){t.isLoading=!0,s.value=!0;const{data:e}=await T(Object.assign(b,{query:t.searchKey}));e.code==1?(t.content=e.data,d()):t.content="",t.isLoading=!1,s.value=!1}const _=(e,i)=>{};function k(e){Object.keys(e).map(i=>{r[i]=e[i]})}async function x(e){const{data:i}=await v(Object.assign(A,{company_id:e.id}));i.code==1?(a(),l({type:"success",message:i.msg})):l({type:"error",message:i.msg})}const E=e=>{z.confirm("Are you sure you want to delete this location",{confirmButtonText:"confirm",cancelButtonText:"cancel",type:"warning"}).then(()=>{x(e)}).catch(()=>{l({type:"info",message:"Canceled"})})};function d(){setTimeout(()=>{t.isLoading=!1},2e3)}return j(()=>{}),{searchDetail:t,btnSearchPart:w,loading:s,small:f,selectList:W,columns:C,pagination:c,handleSizeChange:L,handleCurrentChange:S,PartList:y,order_date:g,deliverDialog:u,selectClick:_,itemArr:P,addLocationDialog:h,locationArr:r,EditLocation:k,btnDellocation:E,singleTableRef:p,fetchData:d}}export{U as useEqu};