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/hookLicence-legacy-161a1bb8.js
System.register(["./po-legacy-2b1fa9b9.js","./vue-router-legacy-a12307c3.js","./message-legacy-10af7c73.js","./index-legacy-42c17c53.js","./runtime-core.esm-bundler-legacy-c5df00b7.js","./index-legacy-3c1533a0.js","./preload-helper-legacy-f8638e03.js","./vue-i18n.runtime.esm-bundler-legacy-720876b1.js","./index-legacy-c9e20962.js","./_commonjsHelpers-legacy-5498c249.js","./utils-legacy-c0023c33.js","./focus-trap-legacy-631b7396.js","./error-legacy-e98f9e58.js"],(function(e,i){"use strict";var t,n,a,c,s,o,r,d,l,u,m,p,g,_,f,v,y,h,b,w,S,x,I,C,j,L,N,A,E,D,k,O,T;return{setters:[e=>{t=e.getTherapistsDetailWeb,n=e.addCompanyWeb,a=e.sendEmailCode,c=e.modifyPassword,s=e.getUserInfoWeb,o=e.bandUserInfoWeb,r=e.getInvitationCodeWeb,d=e.userToTherapistsWeb,l=e.getServiceListWeb,u=e.AddEditServiceWeb,m=e.EnabledServiceWeb,p=e.getLicenceWeb,g=e.copyServicePrice,_=e.addEditLicence,f=e.customerToClinicsWeb,v=e.updateRoleWeb,y=e.registerWeb,h=e.yuyueFDF,b=e.autoServicePriceWeb,w=e.AddEditCombinaServiceWeb,S=e.deleteCompanyWeb,x=e.userCancelTherapistsWeb,I=e.userCancelClinicWeb,C=e.DeleteServiceWeb,j=e.deleteLicenceWeb},e=>{L=e.d,N=e.u},e=>{A=e.b7},e=>{E=e.o},e=>{D=e.r,k=e.A,O=e.o,T=e.O},null,null,null,null,null,null,null,null],execute:function(){e("useEqu",(function(){const{query:e,params:i}=L(),W=N();L();const B=D(!1),P=D(!1),R=D(!1),J=D(!1),G=D(!1),F=D(!1),Y=D(!1),q=D(!1),M=D(!1),U=D(!1),z=D(!1),H=D(""),K=D(""),Q=D(""),V=D([]),X=D([]),Z=D([]),$=D([]),ee=D([]),ie=D([]),te=k({}),ne=k({}),ae=k({}),ce=k({}),se=k({}),oe=k({}),re=k({}),de=k({}),le=k({}),ue=k({}),me=k({}),pe=k({}),ge=k({}),_e=k({}),fe=k({}),ve=k({}),ye=k({}),he=k({}),be=k({}),we=k({}),Se=D([{value:"Y",text:"Y"},{value:"N",text:"N"}]),xe=D([{id:1,service_name:"",amount:"",duration:""}]),Ie=k({tableIndex:0,note:""}),Ce=k({service_id:""}),je=k({step:"",invoceGuide:5}),Le=k({name:"",phone:"",licence_number:"",licence_name:"",id:"",Description:"",licence_title:"",is_licence:""}),Ne=k({name:"",phone:"",licence_number:"",licence_name:"",id:"",description:"",licence_title:""}),Ae=k({r_ac_name:"",r_ac_phone:"",r_ac_register:"",name:"",phone_number:"",rmt_register:"",is_mune:1,gender:1,gender1:-1,phone_value:"001",phoneInfo:"",password:"",flag1:!0,flag2:!0,flag3:!0,flag4:!0,flag5:!0,flag6:!0,emailInfo:"",email:"",re_email:"",Reset:1,New_password:"",Old_password:"",Confirm_password:"",Edit_New_password:"",Edit_Confirm_password:"",is_Edit:1,Email_code:"",userId:"",FirstName:"",LastName:"",openId:"",Invitation_code:"",therapist_id:"",booking_notice_type:"message",from_service_id:"",to_service_id:[],img:"",address:"",is_join:"",join_key:"",join_clinic_name:"",clinic_enabled:""}),Ee=k({company_name:"",first_name:"",last_name:"",phone:"",email:"",address:"",state:"Ontraio",city:"",hst:"",r_ac:"",rmt_register:"",country:"Canada",postal:"L3S 0E2",company_id:"",number_companyname:""});k({destination_comp:"",state:"",city:"",address:"",phone:"",contact:"",customer_id:""});const De=k({}),ke=k({}),Oe=k({}),Te=k({}),We=k({qo_item_str:"",name:"",address:"",way:"",shipping:[],itemsDetail:[],trackingNo:"",courier:"",comment:""}),Be=k({total:0,pageSize:10,currentPage:1,background:!0,currentPage:1,pageSizes:[10,25,50,100]}),Pe=D([]),Re=D([{id:1,service_name:"",split_rate:"",service_id:""}]),Je=D([{id:1,text:"Male",value:1,is_selected:0},{id:2,text:"Female",value:2,is_selected:0}]),Ge=D([{id:1,text:"Male",value:1,is_selected:0},{id:2,text:"Female",value:2,is_selected:0}]),Fe=D([{id:1,text:"Mobile SMS",value:"message",is_selected:1},{id:2,text:"Email",value:"email",is_selected:1}]),Ye=D([{id:1,text:"CA/USA(+1)",value:"001"},{id:3,text:"CN(+86)",value:"0086"}]),qe=D([{name:"Practice Location",id:1},{name:"Setup",id:2},{name:"Email Config",id:3}]),Me=D([{id:1,duration:"30",price:"",default:!1,vip_price:""},{id:2,duration:"60",price:"",default:!1,vip_price:""},{id:3,duration:"90",price:"",default:!1,vip_price:""}]),Ue=D([{id:1,duration:"30",price:"",default:!1,vip_price:""},{id:2,duration:"60",price:"",default:!1,vip_price:""},{id:3,duration:"90",price:"",default:!1,vip_price:""}]),ze=k({order_key:"",material_key:"",truck_key:"",truck_id:"",comment:"",show:"",searchKey:"",code:"",clinic_code:""}),He=k({Service_Name:"",Description:"",service_id:"",Licence:"",invoice_title:"",include_tax:"N",is_tax:!1});async function Ke(){B.value=!0;const{data:e}=await t(Object.assign(te,{}));0==e.code&&(Ae.r_ac_name=e.data.therapistInfo.r_ac_name,Ae.r_ac_phone=e.data.therapistInfo.r_ac_phone,Ae.r_ac_register=e.data.therapistInfo.r_ac_register,Ae.name=e.data.therapistInfo.name,Ae.phone_number=e.data.therapistInfo.phone_number,Ae.rmt_register=e.data.therapistInfo.rmt_register,Ae.gender1=e.data.sex,Ae.openId=e.data.openId,Ve()),B.value=!1}async function Qe(e){const{data:i}=await S(Object.assign(ke,{company_id:e.id}));1==i.code?(Ke(),A({type:"success",message:i.msg})):A({type:"error",message:i.msg})}async function Ve(){const{data:e}=await s(Object.assign(se,{}));0==e.code?(Q.value=localStorage.getItem("type"),Ae.userId=e.data.id,Ae.FirstName=e.data.firstName,Ae.LastName=e.data.lastName,Ae.phoneInfo=e.data.phone,Ae.emailInfo=e.data.email,Ae.gender=e.data.sex,Ae.phone_value=e.data.phone_country_code,Ae.therapist_id=e.data.therapist_id,ie.value=e.data.assoicInfo,X.value=e.data.clinic_info,Ae.openId=e.data.openId,Ae.Invitation_code=e.data.therapistInfo.Invitation_code,Le.is_licence=e.data.is_licence,Ae.img=e.data.avatarUrl,Ae.address=e.data.address,Ae.is_join=e.data.is_join,Ae.join_key=e.data.join_key,Ae.join_clinic_name=e.data.join_clinic_name):A({type:"error",message:e.msg})}async function Xe(e){const{data:i}=await x(Object.assign(Te,{therapists_id:e.id}));1==i.code?(Ve(),A({type:"success",message:i.msg})):A({type:"error",message:i.msg})}async function Ze(e){const{data:i}=await I(Object.assign(ye,{clinic_id:e.id}));1==i.code?(Ve(),A({type:"success",message:i.msg})):A({type:"error",message:i.msg})}async function $e(e){const{data:i}=await l(Object.assign(de,{}));1==i.code?(ee.value=i.data,ee.value.forEach(((e,i)=>{"Y"==e.is_enabled?e.is_enabled=!0:e.is_enabled=!1}))):A({type:"error",message:i.msg})}async function ei(e){const{data:i}=await C(Object.assign(ue,{service_id:e.id}));1==i.code?($e(),A({type:"success",message:i.msg})):A({type:"error",message:i.msg})}async function ii(){const{data:e}=await p(Object.assign(pe,{}));1==e.code?$.value=e.data:A({type:"error",message:e.msg})}function ti(e){const i=Me.value.findIndex((i=>i.id===e.id));-1!==i&&Me.value.splice(i,1),Me.value.forEach(((e,i)=>{e.id=i+1}))}async function ni(e){const{data:i}=await j(Object.assign(fe,{licence_id:e.id}));1==i.code?ii():A({type:"error",message:i.msg})}function ai(e){const i=Re.value.findIndex((i=>i.id===e.id));-1!==i&&Re.value.splice(i,1),Re.value.forEach(((e,i)=>{e.id=i+1}))}function ci(e){const i=Pe.value.findIndex((i=>i.id===e.id));-1!==i&&Pe.value.splice(i,1),Pe.value.forEach(((e,i)=>{e.id=i+1}))}function si(e){const i=xe.value.findIndex((i=>i.id===e.id));-1!==i&&xe.value.splice(i,1),xe.value.forEach(((e,i)=>{e.id=i+1}))}return O((()=>{Ae.clinic_enabled=localStorage.getItem("clinic_enabled"),Ke(),e.note&&(Ie.note=e.note),e.invoceService&&(K.value=e.invoceService,Ae.is_mune=3),e.help&&(Ae.is_mune=e.help),Ve(),$e(),ii(),1==localStorage.getItem("invoceGuide")&&(je.step=1,Ae.is_mune=2),1==e.invoceGuide&&(je.step=1,Ae.is_mune=2),1==e.booking&&(Ae.is_mune=3),"therapists"==localStorage.getItem("from_official")?(je.step=1,Ae.is_mune=2,localStorage.setItem("from_official","")):"user"==localStorage.getItem("from_official")&&(Ae.is_mune,localStorage.setItem("from_official",""))})),T((()=>{localStorage.setItem("invoceGuide","")})),{searchDetail:ze,btnSearchPart:function(){Ke()},loading:B,small:z,selectList:["index","Service Name","Description","Invoice Start Character","tax default value ","Licence","Additional Services","Price","Enabled","Action"],columns:[{type:"selection",width:55,align:"left",hide:({checkList:e})=>!e.includes("勾选列")},{label:"index",type:"index",width:70,hide:({checkList:e})=>!e.includes("index")},{label:"Service Name",prop:"service_name",minWidth:100,hide:({checkList:e})=>!e.includes("Service Name")},{label:"Description",prop:"description",minWidth:100,hide:({checkList:e})=>!e.includes("Description")},{label:"Invoice Start Character",prop:"invoice_title",minWidth:100,hide:({checkList:e})=>!e.includes("Invoice Start Character")},{label:"tax default value ",prop:"invoice_title",minWidth:100,slot:"tax",hide:({checkList:e})=>!e.includes("tax default value ")},{label:"Licence",prop:"licence_service_name",minWidth:100,hide:({checkList:e})=>!e.includes("Licence")},{label:"Additional Services",prop:"licence_service_name",minWidth:100,slot:"AdditionalServices",hide:({checkList:e})=>!e.includes("Additional Services")},{label:"Price",prop:"licence_service_name",minWidth:100,slot:"getPrice",hide:({checkList:e})=>!e.includes("Price")},{label:"Enabled",prop:"is_enabled",minWidth:100,slot:"Enabled",hide:({checkList:e})=>!e.includes("Enabled")},{label:"Action",fixed:"right",width:120,slot:"operation",hide:({checkList:e})=>!e.includes("Action")}],pagination:Be,handleSizeChange:function(e){Be.pageSize=e,Ke()},handleCurrentChange:function(e){Be.currentPage=e,Ke()},PartList:V,order_date:H,deliverDialog:P,selectClick:(i,t)=>{if(i.length>1){const e=i.shift();singleTableRef.value.toggleRowSelection(e,!1)}e.note&&W.push({path:"/crm/yuyue/note",query:{location_id:t.id,location:encodeURIComponent(JSON.stringify(t))}})},deliverDataArr:We,btnDeliverConfirm:async function(){const{data:e}=await n(Object.assign(De,{data_row:Ee}));1==e.code?(Ke(),M.value=!1,A({type:"success",message:e.msg})):A({type:"error",message:e.msg})},locationData:qe,itemArr:Ie,onSituationArr:function(e){Ie.tableIndex=e},addLocationDialog:M,btnAdd:function(){Object.keys(Ee).map((e=>{Ee[e]=""})),M.value=!0},locationArr:Ee,EditLocation:function(e){Object.keys(e).map((i=>{Ee[i]=e[i]})),M.value=!0},btnDellocation:e=>{E.confirm("Are you sure you want to delete this location",{confirmButtonText:"confirm",cancelButtonText:"cancel",type:"warning"}).then((()=>{Qe(e)})).catch((()=>{A({type:"info",message:"Canceled"})}))},formArr:Ae,btnSubmit:async function(e){const{data:i}=await y(Object.assign(ne,{name:Le.name,phone:Le.phone,licence_number:Le.licence_number,licence_name:Le.licence_name,description:Le.Description,licence_title:Le.licence_title}));0==i.code?(Ve(),localStorage.setItem("type",1),localStorage.setItem("invoceGuide",1),window.location.reload(),A({type:"success",message:i.msg})):A({type:"error",message:i.msg})},btnMune:function(e){Ae.is_mune=e,Ae.Reset=1,3==Ae.is_mune&&1==je.step?je.step=2:2==Ae.is_mune&&2==je.step&&(je.step=1)},isData:Je,selectedTr:function(e){Ae.gender==e.value?Ae.gender=-1:Ae.gender=e.value},selectedTr1:function(e){Ae.gender1==e.value?Ae.gender1=-1:Ae.gender1=e.value},phoneType:Ye,showEye:function(e){if(1==e){var i=document.getElementById("ps1");Ae.flag1?(i.type="text",Ae.flag1=!1):(i.type="password",Ae.flag1=!0)}2==e&&(i=document.getElementById("ps2"),Ae.flag2?(i.type="text",Ae.flag2=!1):(i.type="password",Ae.flag2=!0)),3==e&&(i=document.getElementById("ps3"),Ae.flag3?(i.type="text",Ae.flag3=!1):(i.type="password",Ae.flag3=!0)),4==e&&(i=document.getElementById("ps4"),Ae.flag4?(i.type="text",Ae.flag4=!1):(i.type="password",Ae.flag4=!0)),5==e&&(i=document.getElementById("ps5"),Ae.flag5?(i.type="text",Ae.flag5=!1):(i.type="password",Ae.flag5=!0)),6==e&&(i=document.getElementById("ps6"),Ae.flag6?(i.type="text",Ae.flag6=!1):(i.type="password",Ae.flag6=!0))},btnReset:function(){Ae.re_email=Ae.emailInfo,Ae.Reset=2,Ae.is_Edit=1,Ae.flag1=!0,Ae.flag2=!0,Ae.flag3=!0,Ae.flag4=!0,Ae.flag5=!0,Ae.flag6=!0},btnback:function(){Ae.Reset=1},btnSendEmailCode:async function(e){const{data:i}=await a(Object.assign(ae,{user_email:Ae.re_email}));1==i.code?A({type:"success",message:i.msg}):A({type:"error",message:i.msg})},btnEdit:function(){Ae.is_Edit=2,Ae.Reset=2,Ae.flag1=!0,Ae.flag2=!0,Ae.flag3=!0,Ae.flag4=!0,Ae.flag5=!0,Ae.flag6=!0},btnEditPass:async function(){let e="",i="",t="",n="",a="";if(1==Ae.is_Edit){if(e=Ae.New_password,i=Ae.re_email,t=Ae.Email_code,n="",a="",Ae.New_password!=Ae.Confirm_password)return void A({type:"error",message:"Two passwords do not match"})}else if(2==Ae.is_Edit&&(i="",t="",a=Ae.userId,e=Ae.Edit_New_password,n=Ae.Old_password,Ae.Edit_New_password!=Ae.Edit_Confirm_password))return void A({type:"error",message:"Two passwords do not match"});const{data:s}=await c(Object.assign(ce,{userId:a,old_password:n,new_password:e,email:i,key:t}));1==s.code?(A({type:"success",message:s.msg}),Ae.is_mune=1,Ae.Reset=1):A({type:"error",message:s.msg})},changePassword:function(e){const i=document.getElementById("ps"+e);Ae.flag1?i.type="password":i.type="text"},btnSubmitInfo:async function(){if(""==Ae.booking_notice_type)return void A({type:"error",message:"Please select Booking notice type"});const{data:e}=await o(Object.assign(oe,{avatarUrl:Ae.img,nickName:"",firstName:Ae.FirstName,lastName:Ae.LastName,phone:Ae.phoneInfo,vCode:"",email:Ae.emailInfo,password:"",openId:"",id:Ae.userId,sex:Ae.gender,phone_country_code:Ae.phone_value,booking_notice_type:Ae.booking_notice_type,address:Ae.address}));1==e.code?(A({type:"success",message:e.msg}),Ve()):A({type:"error",message:e.msg})},isData1:Ge,getInvitationCode:async function(){const{data:e}=await r(Object.assign(re,{therapists_id:Ae.therapist_id}));1==e.code?(Ae.Invitation_code=e.data,A({type:"success",message:e.msg})):A({type:"error",message:e.msg})},JoinDialog:U,JoinTherapistsConfirm:async function(){if(""==ze.code)return void A({type:"error",message:"Please enter the invitation code"});const{data:e}=await d(Object.assign(Oe,{invitation_code:ze.code}));1==e.code?(U.value=!1,A({type:"success",message:e.msg}),Ve()):A({type:"error",message:e.msg})},AddTherapists:function(){U.value=!0},assoicInfo:ie,onRemove:e=>{E.confirm("Are you sure you want to remove the therapist?",{confirmButtonText:"confirm",cancelButtonText:"cancel",type:"warning"}).then((()=>{Xe(e)})).catch((()=>{A({type:"info",message:"Canceled"})}))},ServiceList:ee,severArr:He,btnAddService:function(e){He.Service_Name="",He.Description="",He.service_id="",He.Licence="",He.invoice_title="",He.is_tax=!1,He.include_tax="N",Me.value=Ue.value,xe.value=[];const i={id:1,service_name:"",amount:"",duration:""};xe.value.push(i),ii(),q.value=!0},AddServiceDialog:q,addServeSubmit:async function(){const{data:e}=await u(Object.assign(le,{service_name:He.Service_Name,description:He.Description,service_id:He.service_id,licence_service_name:He.Licence,during_price_json:Me,invoice_title:He.invoice_title,is_tax:He.is_tax,include_tax:He.include_tax,additional_Service:xe.value}));1==e.code?($e(),q.value=!1):A({type:"error",message:e.msg})},onEditService:function(e){"Y"==e.is_combina?(Ce.service_id=e.id,Pe.value=JSON.parse(JSON.stringify(e.during_price_json)),Re.value=JSON.parse(JSON.stringify(e.combina_rows)),R.value=!0):(He.Service_Name=e.service_name,He.Description=e.description,He.service_id=e.id,He.Licence=e.licence_service_name,Me.value=JSON.parse(JSON.stringify(e.during_price_json)),He.invoice_title=e.invoice_title,He.is_tax=e.is_tax,He.include_tax=e.include_tax,e.additional_Service?xe.value=JSON.parse(JSON.stringify(e.additional_Service)):xe.value=[],q.value=!0)},onDeleteService:e=>{E.confirm("Are you sure you want to delete this service?",{confirmButtonText:"confirm",cancelButtonText:"cancel",type:"warning"}).then((()=>{ei(e)})).catch((()=>{A({type:"info",message:"Canceled"})}))},onSwitch:async function(e){let i="";i=e.is_enabled?"Y":"N";const{data:t}=await m(Object.assign(me,{service_id:e.id,is_enabled:i}));1==t.code?($e(),A({type:"success",message:t.msg})):A({type:"error",message:t.msg})},LicenceArr:$,addServiceData:Fe,onServiceAdd:function(e){1==e.is_selected?e.is_selected=0:0==e.is_selected&&(e.is_selected=1);const i=[];Fe.value.forEach(((e,t)=>{1==e.is_selected&&i.push(e.value)})),Ae.booking_notice_type=i.toString()},servePriceData:Me,addDuring:function(){const e={id:Me.value.length+1,duration:"",price:"",default:!1};Me.value.push(e)},onDelDuring:e=>{E.confirm("Are you sure you want to delete this item ?",{confirmButtonText:"confirm",cancelButtonText:"cancel",type:"warning"}).then((()=>{ti(e)})).catch((()=>{A({type:"info",message:"Canceled"})}))},copyDialog:F,onCopy:function(e){F.value=!0,Ae.from_service_id=e.id},handleSelectionChange:function(e){Ae.to_service_id=e},copySubmit:async function(){if(0==Ae.to_service_id.length)return void A({type:"error",message:"You haven't selected an option yet"});const{data:e}=await g(Object.assign(ge,{from_service_id:Ae.from_service_id,to_service_id:Ae.to_service_id}));1==e.code?(F.value=!1,$e()):A({type:"error",message:e.msg})},licenceList:Z,columns1:[{type:"selection",width:55,align:"left",hide:({checkList:e})=>!e.includes("勾选列")},{label:"index",type:"index",width:70,hide:({checkList:e})=>!e.includes("index")},{label:"Category(Type of Licence)",prop:"licence_name",minWidth:100,hide:({checkList:e})=>!e.includes("Category(Type of Licence)")},{label:"Name",prop:"name",minWidth:100,hide:({checkList:e})=>!e.includes("Name")},{label:"Licence Number",prop:"licence_number",minWidth:100,hide:({checkList:e})=>!e.includes("Licence Number")},{label:"Phone",prop:"phone",minWidth:100,hide:({checkList:e})=>!e.includes("Phone")},{label:"Action",fixed:"right",width:120,slot:"LicenceAction",hide:({checkList:e})=>!e.includes("Action")}],selectList1:["index","Category(Type of Licence)","Name","Licence Number","Phone","Action"],AddlicenceDialog:Y,AddLicense:function(){Object.keys(Ne).map((e=>{Ne[e]=""})),Ne.licence_title="",Y.value=!0},licenceData:Ne,addLicenceSubmit:async function(){const{data:e}=await _(Object.assign(_e,{name:Ne.name,phone:Ne.phone,licence_number:Ne.licence_number,licence_name:Ne.licence_name,licence_id:Ne.id,description:Ne.description,licence_title:Ne.licence_title}));1==e.code?(Y.value=!1,ii()):A({type:"error",message:e.msg})},onEditLicence:function(e){Object.keys(e).map((i=>{Ne[i]=e[i]})),Y.value=!0},onDeleteLicence:e=>{E.confirm("Are you sure you want to delete this item ?",{confirmButtonText:"confirm",cancelButtonText:"cancel",type:"warning"}).then((()=>{ni(e)})).catch((()=>{A({type:"info",message:"Canceled"})}))},JoinClinicConfirm:async function(){const{data:e}=await f(Object.assign(ve,{invitation_code:ze.clinic_code}));1==e.code?(G.value=!1,Ve(),window.location.reload()):A({type:"error",message:e.msg})},JoinClinicDialog:G,AddClinic:function(){G.value=!0},assoicInfoClinic:X,onRemoveClinic:e=>{E.confirm("Are you sure you want to remove the clinic?",{confirmButtonText:"confirm",cancelButtonText:"cancel",type:"warning"}).then((()=>{Ze(e)})).catch((()=>{A({type:"info",message:"Canceled"})}))},btnRegRole:async function(e){if(e==Q.value)return void A({type:"info",message:"Already the current identity"});if("N"==Ae.clinic_enabled&&2==e)return void A({type:"error",message:"Your clinic deadline has expired"});const{data:i}=await v(Object.assign(he,{role:e,openId:""}));603==i.code||604==i.code?1==e?(je.step=1,Ae.is_mune=2):0==e||2==e&&W.push({path:"/crm/yuyue/clinic"}):200==i.code?(localStorage.setItem("type",e),1==e?localStorage.setItem("invoceGuide",1):localStorage.setItem("invoceGuide",""),window.location.reload()):A({type:"error",message:i.msg})},type:Q,licenceFirst:Le,btnPhone:function(e,i){if("0086"==Ae.phone_value)return;if(e=(e=(e=e.replace("(","")).replace(")","")).replace("-",""),/[^\d]/g.test(e))return void A({type:"error",message:"Please enter the Number"});let t="";e.length>0&&(t=e.slice(0,0)+"("+e.slice(0),e.length>3&&(t=t.slice(0,4)+")"+t.slice(4),e.length>6&&(t=t.slice(0,8)+"-"+t.slice(8),e.length>10&&(t=t.substring(0,13))))),1==i&&(Ae.phoneInfo=t),2==i&&(Ne.phone=t),3==i&&(Le.phone=t)},uploadSlotFile1:function(e,i,t){1==e.code&&(Ae.img=h+e.data.file_path.replace("var/www/html/public",""))},viewIMG:function(){window.open(Ae.img)},btnDefault:function(e,i){Me.value.forEach(((e,t)=>{e.id!=i.id&&(e.default=!1)}))},licenceIconDialog:J,btnLicence:function(){J.value=!0},processArr:je,onCancel:function(){je.step=""},onNext:function(){1==je.step?(je.step=2,Ae.is_mune=3):2==je.step&&(localStorage.setItem("invoceGuide",""),W.push({path:"/crm/yuyue/locationConfig",query:{invoceGuide:3}}))},invoceService:K,ReturnInvoice:function(){W.push({path:"/crm/yuyue/invoice",query:{}})},typeGuide:function(){je.step=1},btnAddCombineService:function(){Re.value=[],Pe.value=[];const e={id:1,service_name:"",split_rate:"",service_id:""};Ce.service_id="",Re.value.push(e),R.value=!0},AddCombineDialog:R,combineService:Ce,serveCombineData:Re,serveCombineData1:Pe,onDelCombine:e=>{E.confirm("Are you sure you want to delete this item ?",{confirmButtonText:"confirm",cancelButtonText:"cancel",type:"warning"}).then((()=>{ai(e)})).catch((()=>{A({type:"info",message:"Canceled"})}))},addCombine:function(){const e={id:Re.value.length+1,service_name:"",split_rate:"",service_id:""};Re.value.push(e)},addAutoPrice:async function(){const{data:e}=await b(Object.assign(be,{combina_rows:Re.value}));1==e.code?Pe.value=e.data:A({type:"error",message:e.msg})},onDelautoDuring:e=>{E.confirm("Are you sure you want to delete this item ?",{confirmButtonText:"confirm",cancelButtonText:"cancel",type:"warning"}).then((()=>{ci(e)})).catch((()=>{A({type:"info",message:"Canceled"})}))},addCombineServeSubmit:async function(){B.value=!0;const{data:e}=await w(Object.assign(we,{combina_rows:Re.value,id:Ce.service_id,during_price_json:Pe.value,severs_arr:ee.value}));1==e.code?(B.value=!1,R.value=!1,$e()):(B.value=!1,A({type:"error",message:e.msg}))},CombineServiceName:function(e,i){ee.value.forEach(((t,n)=>{e==t.value&&(i.service_id=t.id,i.service_name=t.value)}))},addCombine1:function(){const e={default:!1,duration:"",id:Pe.value.length+1,price:"",vip_price:""};Pe.value.push(e)},btnDefault1:function(e,i){Pe.value.forEach(((e,t)=>{e.id!=i.id&&(e.default=!1)}))},AdditionalData:xe,onDelAdditional:(e,i)=>{E.confirm("Are you sure you want to delete this item ?",{confirmButtonText:"confirm",cancelButtonText:"cancel",type:"warning"}).then((()=>{si(e)})).catch((()=>{A({type:"info",message:"Canceled"})}))},addAdditional:function(){const e={id:xe.value.length+1,service_name:"",amount:"",duration:""};xe.value.push(e)},taxData:Se}}))}}}));