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/hookReferList-49d05c8b.js
import{getReferUsersWeb as N,wxacode as S,yuyueFDF as F,deleteCompanyWeb as L}from"./po-6ea0d708.js";import{d as u,u as T}from"./vue-router-a383d220.js";import{o as j}from"./index-81e4a901.js";import{b7 as s}from"./message-2472a54a.js";import{r as o,A as n,o as z}from"./runtime-core.esm-bundler-6128546f.js";import"./index-efb67349.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 te(){u(),T(),u();const p=o(),r=o(!1),h=o(!1),l=o(!1),g=o(!1),f=o(!1),b=o(""),d=o([]),y=n({}),w=n({tableIndex:0,note:""}),a=n({member:0,return:0,shareImg:"",shareUrl:""}),m=n({}),_=n({}),x=n({}),c=n({total:0,pageSize:10,currentPage:1,background:!0,currentPage:1,pageSizes:[10,25,50,100]}),W=n({order_key:"",material_key:"",truck_key:"",truck_id:"",comment:"",show:"",searchKey:""}),v=[{type:"selection",width:55,align:"left",hide:({checkList:e})=>!e.includes("勾选列")},{label:"Index",type:"index",width:70,hide:({checkList:e})=>!e.includes("Index")},{label:"UserName",prop:"user_name",minWidth:100,hide:({checkList:e})=>!e.includes("UserName")},{label:"Phone",prop:"phone",minWidth:100,hide:({checkList:e})=>!e.includes("Phone")},{label:"Email",prop:"email",minWidth:100,hide:({checkList:e})=>!e.includes("Email")},{label:"Register Date",prop:"register_time",minWidth:100,hide:({checkList:e})=>!e.includes("Register Date")},{label:"Bookings",prop:"booking_nums",minWidth:150,slot:"slotAction",hide:({checkList:e})=>!e.includes("Bookings")},{label:"Notes",prop:"note_nums",minWidth:120,hide:({checkList:e})=>!e.includes("Notes")},{label:"Invoices",prop:"invoice_nums",minWidth:120,hide:({checkList:e})=>!e.includes("Invoices")},{label:"Customers",prop:"customer_nums",minWidth:120,hide:({checkList:e})=>!e.includes("Customers")},{label:"Member Fee ($)",prop:"member_fee",minWidth:120,hide:({checkList:e})=>!e.includes("Member Fee ($)")},{label:"Rewards (Point)",prop:"return_fee",minWidth:120,hide:({checkList:e})=>!e.includes("Rewards (Point)")}],P=["勾选列","Index","UserName","Phone","Email","Register Date","Bookings","Notes","Invoices","Customers","Member Fee ($)","Rewards (Point)"];function k(){i()}function C(e){c.pageSize=e,i()}function R(e){c.currentPage=e,i()}async function i(){r.value=!0;const{data:e}=await N(Object.assign(y,{}));d.value=e.data,U(e.user_id),a.member=e.total.member,a.return=e.total.return,a.shareUrl=e.web_url,r.value=!1}const D=(e,t)=>{};function A(e){Object.keys(e).map(t=>{m[t]=e[t]})}async function I(e){const{data:t}=await L(Object.assign(x,{company_id:e.id}));t.code==1?(i(),s({type:"success",message:t.msg})):s({type:"error",message:t.msg})}const E=e=>{j.confirm("Are you sure you want to delete this location",{confirmButtonText:"confirm",cancelButtonText:"cancel",type:"warning"}).then(()=>{I(e)}).catch(()=>{s({type:"info",message:"Canceled"})})};async function U(e){const{data:t}=await S(Object.assign(_,{path:"pages/home/home?shared_id="+e,int:430,user_id:e}));t.code==1?a.shareImg=F+t.file_path.replace("var/www/html/public",""):s({type:"error",message:t.msg})}function B(){l.value=!0}async function M(e){try{await navigator.clipboard.writeText(a.shareUrl),s({type:"success",message:"The text has been copied to the clipboard!"})}catch(t){console.error("复制失败:",t),s({type:"error",message:"Copy failed, please manually copy"})}}return z(()=>{i()}),{searchDetail:W,btnSearchPart:k,loading:r,small:f,selectList:P,columns:v,pagination:c,handleSizeChange:C,handleCurrentChange:R,PartList:d,order_date:b,deliverDialog:h,selectClick:D,itemArr:w,addLocationDialog:g,locationArr:m,EditLocation:A,btnDellocation:E,singleTableRef:p,totalArr:a,CopyDialog:l,btnReferal:B,onShare1:M}}export{te as useEqu};