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/hookRoleHistory-a8a5662c.js
import{getRoleSwitchListWeb as L,deleteCompanyWeb as P}from"./po-dbdb2684.js";import{d as m,u as v}from"./vue-router-a383d220.js";import{o as z}from"./index-81e4a901.js";import{b7 as l}from"./message-2472a54a.js";import{r as i,A as t,o as E}from"./runtime-core.esm-bundler-6128546f.js";import"./index-f0216e7e.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(),v(),m();const p=i(),n=i(!1),u=i(!1),h=i(!1),f=i(!1),g=i(""),r=i([]),y=t({}),b=t({tableIndex:0,note:""}),s=t({Therapist:0,Clinic:0}),d=t({});t({});const D=t({}),c=t({total:0,pageSize:10,currentPage:1,background:!0,currentPage:1,pageSizes:[10,25,50,100]}),w=t({order_key:"",material_key:"",truck_key:"",truck_id:"",comment:"",show:"",searchKey:""}),C=[{type:"selection",width:55,align:"left",hide:({checkList:e})=>!e.includes("勾选列")},{label:"Index",type:"index",width:70,hide:({checkList:e})=>!e.includes("Index")},{label:"From Role",prop:"from_role",minWidth:100,hide:({checkList:e})=>!e.includes("From Role")},{label:"To Role",prop:"to_role",minWidth:100,hide:({checkList:e})=>!e.includes("To Role")},{label:"Switch Date",prop:"switch_times",minWidth:100,hide:({checkList:e})=>!e.includes("Switch Date")},{label:"Therapist Days",prop:"therapist_days",minWidth:100,hide:({checkList:e})=>!e.includes("Therapist Days")},{label:"Clinic Days",prop:"clinic_days",minWidth:150,slot:"slotAction",hide:({checkList:e})=>!e.includes("Clinic Days")}],T=["Index","From Role","To Role","Switch Date","Therapist Days","Clinic Days"];function _(){a()}function R(e){c.pageSize=e,a()}function x(e){c.currentPage=e,a()}async function a(){n.value=!0;const{data:e}=await L(Object.assign(y,{}));r.value=e.data.detail,s.Therapist=e.data.total.therapist,s.Clinic=e.data.total.clinic,n.value=!1}const S=(e,o)=>{};function A(e){Object.keys(e).map(o=>{d[o]=e[o]})}async function k(e){const{data:o}=await P(Object.assign(D,{company_id:e.id}));o.code==1?(a(),l({type:"success",message:o.msg})):l({type:"error",message:o.msg})}const W=e=>{z.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 E(()=>{a()}),{searchDetail:w,btnSearchPart:_,loading:n,small:f,selectList:T,columns:C,pagination:c,handleSizeChange:R,handleCurrentChange:x,PartList:r,order_date:g,deliverDialog:u,selectClick:S,itemArr:b,addLocationDialog:h,locationArr:d,EditLocation:A,btnDellocation:W,singleTableRef:p,totalArr:s}}export{U as useEqu};