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/hookillness-f413adc4.js
import{AccountListWeb as P,deleteCompanyWeb as z}from"./po-dbdb2684.js";import{d as u,u as E}from"./vue-router-a383d220.js";import{o as O}from"./index-81e4a901.js";import{b7 as r}from"./message-2472a54a.js";import{r as i,A as n,o as j}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 V(){u(),E(),u();const f=i(),s=i(!1),g=i(!1),h=i(!1),y=i(!1),d=i(!1),b=i(""),m=i([]),_=n({}),a=n({tableIndex:0,note:"",description:"",name:"",id:""}),p=n({});n({});const w=n({}),l=n({total:0,pageSize:10,currentPage:1,background:!0,pageSizes:[10,25,50,100]}),t=n({order_key:"",material_key:"",truck_key:"",truck_id:"",comment:"",show:"",searchKey:"",type:"",role:"",clinic_id:""}),C=[{type:"selection",width:55,align:"left",hide:({checkList:e})=>!e.includes("勾选列")},{label:"序号",type:"index",width:70,hide:({checkList:e})=>!e.includes("序号")},{label:"病症名",prop:"company_name",minWidth:100,hide:({checkList:e})=>!e.includes("病症名")},{label:"ICD11名称",prop:"hst",minWidth:100,hide:({checkList:e})=>!e.includes("ICD11名称")},{label:"描述",prop:"first_name",minWidth:100,hide:({checkList:e})=>!e.includes("描述")},{label:"症状",prop:"postal",minWidth:100,hide:({checkList:e})=>!e.includes("症状")},{label:"操作",fixed:"right",width:120,slot:"operation",hide:({checkList:e})=>!e.includes("操作")}],D=["序号","病症名","ICD11名称","描述","症状","操作"];function A(){c()}function k(e){l.pageSize=e,c()}function x(e){l.currentPage=e,c()}async function c(){t.type=localStorage.getItem("type"),t.type==2&&(t.role="clinic"),t.type==1&&(t.role="therapists"),t.clinic_id=localStorage.getItem("clinicIdOverall"),s.value=!0;const{data:e}=await P(Object.assign(_,{clinic_id:t.clinic_id,role:t.role,searchKey:t.searchKey}));e.code==1&&(m.value=e.data),s.value=!1}const I=(e,o)=>{};function S(e){Object.keys(e).map(o=>{p[o]=e[o]})}async function v(e){const{data:o}=await z(Object.assign(w,{company_id:e.id}));o.code==1?(c(),r({type:"success",message:o.msg})):r({type:"error",message:o.msg})}const L=e=>{O.confirm("Are you sure you want to delete this location",{confirmButtonText:"confirm",cancelButtonText:"cancel",type:"warning"}).then(()=>{v(e)}).catch(()=>{r({type:"info",message:"Canceled"})})};function W(){a.id="",a.name="",a.description="",d.value=!0}return j(()=>{c()}),{searchDetail:t,btnSearchPart:A,loading:s,small:y,selectList:D,columns:C,pagination:l,handleSizeChange:k,handleCurrentChange:x,PartList:m,order_date:b,deliverDialog:g,selectClick:I,itemArr:a,addLocationDialog:h,locationArr:p,EditLocation:S,btnDellocation:L,singleTableRef:f,btnAdd:W,addDialog:d,itemArr:a}}export{V as useEqu};