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/hookUserInfo-4b0700d7.js
import{soapListWeb as P,deleteCompanyWeb as W}from"./po-34b1a012.js";import{d as u,u as N}from"./vue-router-a383d220.js";import{o as S}from"./index-81e4a901.js";import{b7 as r}from"./message-2472a54a.js";import{r as t,A as n,o as T}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 J(){u(),N(),u();const m=t(),s=t(!1),p=t(!1),g=t(!1),f=t(!1),y=t(""),l=t([]),h=n({}),b=n({tableIndex:0,note:""}),d=n({});n({});const v=n({}),c=n({total:0,pageSize:10,currentPage:1,background:!0,currentPage:1,pageSizes:[10,25,50,100]}),i=n({order_key:"",material_key:"",truck_key:"",truck_id:"",comment:"",show:"",searchKey:"today",Booking:"",Note:"",Invoices:""}),k=[{type:"selection",width:55,align:"left",hide:({checkList:e})=>!e.includes("勾选列")},{label:"序号列",type:"index",width:70,hide:({checkList:e})=>!e.includes("序号列")},{label:"User",prop:"user_name",minWidth:100,hide:({checkList:e})=>!e.includes("User")},{label:"Bookings",prop:"booking_nums",minWidth:100,hide:({checkList:e})=>!e.includes("Bookings")},{label:"Notes",prop:"note_nums",minWidth:100,hide:({checkList:e})=>!e.includes("Notes")},{label:"Invoices",prop:"invoice_nums",minWidth:100,hide:({checkList:e})=>!e.includes("Invoices")}],x=["User","Bookings","Notes","Invoices","Action"],_=t([{id:1,text:"Today",value:"today"},{id:2,text:"Yesterday",value:"yesterday"},{id:3,text:"7Day",value:"7day"},{id:4,text:"All",value:"all"}]);function w(){a()}function A(e){c.pageSize=e,a()}function B(e){c.currentPage=e,a()}async function a(){s.value=!0;const{data:e}=await P(Object.assign(h,{searchTime:i.searchKey}));l.value=e.data.detail,i.Booking=e.data.total.booking,i.Note=e.data.total.note,i.Invoices=e.data.total.invoice,s.value=!1}const C=(e,o)=>{};function D(e){Object.keys(e).map(o=>{d[o]=e[o]})}async function I(e){const{data:o}=await W(Object.assign(v,{company_id:e.id}));o.code==1?(a(),r({type:"success",message:o.msg})):r({type:"error",message:o.msg})}const L=e=>{S.confirm("Are you sure you want to delete this location",{confirmButtonText:"confirm",cancelButtonText:"cancel",type:"warning"}).then(()=>{I(e)}).catch(()=>{r({type:"info",message:"Canceled"})})};return T(()=>{a()}),{searchDetail:i,btnSearchPart:w,loading:s,small:f,selectList:x,columns:k,pagination:c,handleSizeChange:A,handleCurrentChange:B,PartList:l,order_date:y,deliverDialog:p,selectClick:C,itemArr:b,addLocationDialog:g,locationArr:d,EditLocation:D,btnDellocation:L,singleTableRef:m,loadPartList:a,expressCompanyData:_}}export{J as useEqu};