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/hookClient-ad21025d.js
import{getCustomerListWeb as z,addCompanyWeb as B,deleteCompanyWeb as H}from"./po-d8d0fdf7.js";import{d as h,u as I}from"./vue-router-a383d220.js";import{b7 as s}from"./message-2472a54a.js";import{o as K}from"./index-81e4a901.js";import{r as o,A as n,o as M}from"./runtime-core.esm-bundler-6128546f.js";import"./index-53dae824.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 ae(){const{query:r,params:J}=h(),f=I();h();const l=o(!1),y=o(!1),c=o(!1),g=o(!1),b=o(""),p=o([]),_=n({}),d=n({tableIndex:0,note:""});defineProps({str:{type:String,default:""}});const i=n({company_name:"",first_name:"",last_name:"",phone:"",email:"",address:"",state:"Ontraio",city:"",hst:"",r_ac:"",rmt_register:"",country:"Canada",postal:"L3S 0E2",company_id:"",number_companyname:""});n({destination_comp:"",state:"",city:"",address:"",phone:"",contact:"",customer_id:""});const C=n({}),A=n({}),P=n({qo_item_str:"",name:"",address:"",way:"",shipping:[],itemsDetail:[],trackingNo:"",courier:"",comment:""}),m=n({total:0,pageSize:10,currentPage:1,background:!0,currentPage:1,pageSizes:[10,25,50,100]}),S=o([{name:"Practice Location",id:1},{name:"Setup",id:2},{name:"Email Config",id:3}]),v=[{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"],u=n({order_key:"",material_key:"",truck_key:"",truck_id:"",comment:"",show:"",searchKey:""});function W(){a()}function k(e){m.pageSize=e,a()}function D(e){m.currentPage=e,a()}async function a(){l.value=!0;const{data:e}=await z(Object.assign(_,{searchKey:u.searchKey}));p.value=e.data,l.value=!1}const E=(e,t)=>{if(e.length>1){const q=e.shift();singleTableRef.value.toggleRowSelection(q,!1)}r.note&&f.push({path:"/crm/yuyue/note",query:{location_id:t.id,location:encodeURIComponent(JSON.stringify(t))}})};function x(e){d.tableIndex=e}function L(){Object.keys(i).map(e=>{i[e]=""}),c.value=!0}async function O(){const{data:e}=await B(Object.assign(C,{data_row:i}));e.code==1?(a(),c.value=!1,s({type:"success",message:e.msg})):s({type:"error",message:e.msg})}function T(e){Object.keys(e).map(t=>{i[t]=e[t]}),c.value=!0}async function j(e){const{data:t}=await H(Object.assign(A,{company_id:e.id}));t.code==1?(a(),s({type:"success",message:t.msg})):s({type:"error",message:t.msg})}const N=e=>{K.confirm("Are you sure you want to delete this location",{confirmButtonText:"confirm",cancelButtonText:"cancel",type:"warning"}).then(()=>{j(e)}).catch(()=>{s({type:"info",message:"Canceled"})})};function R(){r.note&&(d.note=r.note)}return M(()=>{a(),R()}),{searchDetail:u,btnSearchPart:W,loading:l,small:g,selectList:w,columns:v,pagination:m,handleSizeChange:k,handleCurrentChange:D,PartList:p,order_date:b,deliverDialog:y,selectClick:E,deliverDataArr:P,btnDeliverConfirm:O,locationData:S,itemArr:d,onSituationArr:x,addLocationDialog:c,btnAdd:L,locationArr:i,EditLocation:T,btnDellocation:N}}export{ae as useEqu};