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/hookPayConfig-60fc779e.js
import{payMethodWeb as K,payMethodAddEditWeb as N,deleteCompanyWeb as q,payMethodDeleteWeb as F}from"./po-ccaa4b95.js";import{d as y,u as G}from"./vue-router-a383d220.js";import{o as h}from"./index-81e4a901.js";import{b7 as n}from"./message-2472a54a.js";import{r as c,A as s,o as H}from"./runtime-core.esm-bundler-6128546f.js";import"./index-3693fecb.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 ce(_,f){y(),G(),y();const g=c(),d=c(!1),l=c(!1),b=c(!1),A=c(!1),w=c(!1),P=c(""),m=c([]),D=s({}),t=s({tableIndex:0,note:"",pay_method_name:"",pay_method_desc:"",pay_method_account:"",id:""}),p=s({}),M=s({}),u=s({}),r=s({total:0,pageSize:10,currentPage:1,background:!0,currentPage:1,pageSizes:[10,25,50,100]}),o=s({order_key:"",material_key:"",truck_key:"",truck_id:"",comment:"",show:"",searchKey:"",type:"",role:"",clinic_id:""}),v=[{type:"selection",width:55,align:"left",hide:({checkList:e})=>!e.includes("勾选列")},{label:"序号列",type:"index",width:70,hide:({checkList:e})=>!e.includes("序号列")},{label:"Pay Method Name",prop:"pay_method_name",minWidth:100,hide:({checkList:e})=>!e.includes("Pay Method Name")},{label:"Pay Method Descprition",prop:"pay_method_desc",minWidth:100,hide:({checkList:e})=>!e.includes("Pay Method Descprition")},{label:"Associate Account",prop:"account_name",minWidth:100,hide:({checkList:e})=>!e.includes("Associate Account")},{label:"Action",fixed:"right",width:120,slot:"operation",hide:({checkList:e})=>!e.includes("Action")}],x=["Pay Method Name","Pay Method Descprition","Associate Account","Action"];function C(){i()}function k(e){r.pageSize=e,i()}function S(e){r.currentPage=e,i()}async function i(){o.type=localStorage.getItem("type"),o.type==2&&(o.role="clinic"),o.type==1&&(o.role="therapists"),o.clinic_id=localStorage.getItem("clinicIdOverall"),d.value=!0;const{data:e}=await K(Object.assign(D,{clinic_id:o.clinic_id,role:o.role,searchKey:o.searchKey}));e.code==1&&(m.value=e.data,_.str==1&&f("eventPay")),d.value=!1}const W=(e,a)=>{};function E(e){Object.keys(e).map(a=>{p[a]=e[a]})}async function O(e){const{data:a}=await q(Object.assign(u,{company_id:e.id}));a.code==1?(i(),n({type:"success",message:a.msg})):n({type:"error",message:a.msg})}const j=e=>{h.confirm("Are you sure you want to delete this location",{confirmButtonText:"confirm",cancelButtonText:"cancel",type:"warning"}).then(()=>{O(e)}).catch(()=>{n({type:"info",message:"Canceled"})})};function B(){t.pay_method_name="",t.pay_method_desc="",t.pay_method_account="",t.id="",l.value=!0}function I(e){t.pay_method_name=e.pay_method_name,t.pay_method_desc=e.pay_method_desc,t.pay_method_account=e.account_name,t.id=e.id,l.value=!0}async function L(){d.value=!0;const{data:e}=await N(Object.assign(M,{pay_method_name:t.pay_method_name,pay_method_desc:t.pay_method_desc,pay_method_account:t.pay_method_account,id:t.id,clinic_id:o.clinic_id,role:o.role}));e.code==1?(d.value=!1,i(),l.value=!1,n({type:"success",message:e.msg})):(d.value=!1,n({type:"error",message:e.msg}))}async function T(e){const{data:a}=await F(Object.assign(u,{config_id:e.id}));a.code==1?(i(),n({type:"success",message:a.msg})):n({type:"error",message:a.msg})}const z=e=>{h.confirm("Are you sure you want to delete this Item",{confirmButtonText:"confirm",cancelButtonText:"cancel",type:"warning"}).then(()=>{T(e)}).catch(()=>{n({type:"info",message:"Canceled"})})},R=(e,a)=>{};return H(()=>{i()}),{searchDetail:o,btnSearchPart:C,loading:d,small:w,selectList:x,columns:v,pagination:r,handleSizeChange:k,handleCurrentChange:S,PartList:m,order_date:P,deliverDialog:b,selectClick:W,itemArr:t,addLocationDialog:A,locationArr:p,EditLocation:E,btnDellocation:j,singleTableRef:g,btnAdd:B,AddDialog:l,btnAddConfirm:L,itemArr:t,btnEdit:I,btnDelete:z,handleRowClick:R}}export{ce as useEqu};