File: /var/www/html/public/static/js/locationConfig-3bb91acb.js
import{ab as p}from"./message-2472a54a.js";import{_ as ve,a as fe}from"./eye_show-c9f79c85.js";import{useEqu as ge}from"./hookLocationConfig-ea781c8b.js";import{b as be,P as xe}from"./index.es-b13c7b7d.js";import{d as M,r as Ce,o as ke,Q as h,e as c,f as g,t as f,u as l,l as S,m as s,v as o,y as m,x as y,g as e,n as z,p as u,F as he,I as Se,i as L,b5 as Ve,b4 as De}from"./runtime-core.esm-bundler-6128546f.js";import{_ as Ue}from"./_plugin-vue_export-helper-c27b6911.js";import"./po-4f5ed739.js";import"./index-74d93170.js";import"./preload-helper-78dc9057.js";import"./vue-i18n.runtime.esm-bundler-6949bcab.js";import"./index-b7f916e1.js";import"./_commonjsHelpers-87174ba5.js";import"./vue-router-a383d220.js";import"./utils-2ab4f76a.js";import"./index-81e4a901.js";import"./focus-trap-53f1c6ab.js";import"./error-78e43d3e.js";import"./epTheme-077fa9dc.js";import"./index-a7c31d60.js";import"./merge-f215fb43.js";const a=C=>(Ve("data-v-38b0ec70"),C=C(),De(),C),Ie={class:"main"},Ne={key:1,class:"Join_Key"},$e={class:"Join_Key_left"},Pe={key:3,class:"setup_box"},we={class:"InvoiceStartNumber"},Re=a(()=>e("div",null,"Invoice Start Number:",-1)),Te=a(()=>e("div",{style:{"margin-left":"22px"}},"(Character Identifier)",-1)),Be=a(()=>e("div",{style:{"margin-left":"22px"}},"(Start Number)",-1)),Ee={class:"part_out_button"},Ae={key:4,class:"setup_box"},ze=a(()=>e("div",null,"SMTP Server:",-1)),Le=["disabled"],Me=a(()=>e("div",{style:{"margin-left":"20px"}},"SMTP Port:",-1)),je=["disabled"],qe=a(()=>e("div",{style:{"margin-left":"20px"}},"SMTP Email:",-1)),Fe=["disabled"],Je=a(()=>e("div",{style:{"margin-left":"20px"}},"Password:",-1)),Ke={class:"Password_box"},Oe=["disabled","password"],Ye=a(()=>e("div",{class:"EmailConfig_comment"},[e("div",{style:{width:"50%"}},"Booking email:"),e("div",{class:"Comment_desc"},"Show instances:")],-1)),Ge={class:"Comment_box"},He={class:"Comment_desc"},Qe={class:"InvoiceStartNumber"},We=a(()=>e("div",{class:"EmailConfig_comment"},[e("div",{style:{width:"50%"}},"Invoice email:"),e("div",{class:"Comment_desc"},"Show instances:")],-1)),Xe={class:"Comment_box"},Ze={class:"Comment_desc"},et={class:"InvoiceStartNumber"},tt=a(()=>e("div",{class:"explain_desc"}," Please add the current variable at the specified position of the cursor in the remarks above ",-1)),lt={class:"msgCorrect"},nt={class:"msgError"},ot={class:"Submit_box"},st=a(()=>e("div",{class:"dialog_tilte"},"Practice Location",-1)),it={class:"createOrderobj_box",style:{width:"100%"}},at=a(()=>e("td",{width:"13%"},[o("Company Name "),e("span",{class:"red"},"*")],-1)),dt=a(()=>e("td",{width:"11%"},[o("First Name "),e("span",{class:"red"},"*")],-1)),rt=a(()=>e("td",{width:"11%"},[o("Last Name "),e("span",{class:"red"},"*")],-1)),pt=a(()=>e("td",null,"Company Number",-1)),ut=a(()=>e("td",null,"Address",-1)),mt=a(()=>e("td",null,"City",-1)),_t=a(()=>e("td",null,"Province",-1)),ct=a(()=>e("td",null,"Country",-1)),yt=a(()=>e("td",null,"Postal",-1)),vt=a(()=>e("td",null,[o("Phone"),e("span",{class:"red"}," * ")],-1)),ft=a(()=>e("td",null,[o("Email"),e("span",{class:"red"}," * ")],-1)),gt=a(()=>e("td",null,"HST#",-1)),bt=a(()=>e("td",null,"Available times",-1)),xt={colspan:"5"},Ct=a(()=>e("div",{class:"information"}," Both the company name and (first name 、 last name) information must be entered。 ",-1)),kt={class:"part_out_button"},ht={class:"addDuringDialog_box"},St={class:"InvoiceStartNumber",style:{"justify-content":"center","margin-top":"20px"}},Vt=a(()=>e("div",null,"Duration:",-1)),Dt={class:"part_out_button"},Ut={key:5,class:"guide_desc_box"},It={class:"Step_of_box"},Nt=a(()=>e("div",{style:{"margin-top":"13px"}},"Config Guide",-1)),$t={class:"Next_box1"},Pt={class:"Next_box"},wt={class:"StepIdx"},Rt={class:"Next_box"},Tt=a(()=>e("div",{style:{margin:"20px 0 300px 0"}},null,-1)),Bt=M({name:"/crm/yuyue/locationConfig"}),Et=M({...Bt,props:{note:{type:String,default:""},locationData:{type:Object,default:""},locationDialog:{type:Boolean,default:""}},emits:["update:locationDialog","update:eventIsNumlocation"],setup(C,{emit:V}){const v=C,I=Ce(),j=(x,t)=>{if(v.note==1){if(x.length>1){const r=x.shift(),{toggleRowSelection:k}=I.value.getTableRef();k(r,!1)}v.locationData.name=t.company_name?t.company_name:t.show_name,v.locationData.id=t.id,V("update:locationDialog",!1),V("eventIsNumlocation")}if(v.note==2){if(x.length>1){const r=x.shift(),{toggleRowSelection:k}=I.value.getTableRef();k(r,!1)}v.locationData.name=t.company_name?t.company_name:t.show_name,v.locationData.id=t.id,v.locationData.r_ac_name=t.r_ac_name,v.locationData.r_ac_register=t.r_ac_register,v.locationData.name1=t.name,v.locationData.rmt_register=t.rmt_register,V("update:locationDialog",!1),V("eventIsNumlocation")}},{searchDetail:At,btnSearchPart:zt,loading:q,small:Lt,selectList:F,columns:J,checkList:Mt,pagination:jt,handleSizeChange:K,handleCurrentChange:O,PartList:Y,order_date:qt,deliverDialog:Ft,deliverDataArr:Jt,btnDeliverConfirm:G,locationData:Kt,itemArr:b,onSituationArr:Ot,addLocationDialog:N,btnAdd:H,locationArr:i,EditLocation:Q,btnDellocation:W,during_price:Yt,onUpdate:X,configData:D,addDuring:Gt,addDuringDialog:$,addDuringConfirm:Z,EmailConfig:d,onCheckbox:ee,onEmailConfig:te,showEye:w,flag:R,onEmailTest:le,onRestore1:ne,giveName:T,onBlur:Ht,inputRef:B,company_phone:Qt,company_name:Wt,displayBraces:Xt,getComment1:oe,onRestoreBooking:se,giveNameB:P,getBooking:Zt,getCommentB:ie,defaultAdress:ae,processArr:E,onCancel:de,onNext:re,LimitTimes:pe,btnCreateUser:ue,btnCopy:me,btnPassword:el}=ge();return ke(()=>{}),(x,t)=>{const r=h("el-button"),k=h("el-checkbox"),_e=h("el-option"),ce=h("el-select"),A=h("el-dialog");return c(),g("div",Ie,[f("",!0),l(b).tableIndex==0?(c(),S(r,{key:1,style:{"margin-top":"10px"},type:"primary",onClick:t[0]||(t[0]=n=>l(H)())},{default:s(()=>[o("Add")]),_:1})):f("",!0),l(b).tableIndex==0?(c(),S(l(xe),{key:2,title:"设备列表",selectArr:l(F),onRefresh:x.onSearch},{default:s(({size:n,checkList:ye})=>[m(l(be),{border:"",ref_key:"singleTableRef",ref:I,onSelect:j,"max-height":"500","align-whole":"center",showOverflowTooltip:"","table-layout":"auto",loading:l(q),size:"small",data:l(Y),columns:l(J),checkList:ye,paginationSmall:n==="small","header-cell-style":{background:"var(--el-table-row-hover-bg-color)",color:"var(--el-text-color-primary)"},onSizeChange:l(K),onCurrentChange:l(O)},{order_sn:s(({row:_})=>[o(" P"+y(_.order_id)+"-"+y(_.order_item_id),1)]),Availablenumber:s(({row:_})=>[o(y(_.limit_times)+" Times/"+y(_.time_frequen),1)]),UserInfo:s(({row:_})=>[_.sub_user_id==0?(c(),S(r,{key:0,link:"",type:"primary",size:n,onClick:U=>l(ue)(_)},{default:s(()=>[o(" Create User ")]),_:2},1032,["size","onClick"])):(c(),g("div",Ne,[e("div",$e,[e("div",null,"Join Key : "+y(_.join_key),1),e("div",null,"UserId : "+y(_.sub_user_id),1),e("div",null,[o(" Password : "),e("span",null,y(_.sub_user_password),1)])]),m(r,{link:"",type:"primary",style:{"margin-left":"10px"},size:n,onClick:U=>l(me)(_)},{default:s(()=>[o(" Copy ")]),_:2},1032,["size","onClick"])]))]),Default:s(({row:_})=>[e("div",{class:z(["status_desc",[_.default_val=="Y"?"default_active":"show_card",_.default_val=="N"?"default_desc":"show_card"]])},y(_.default_val),3)]),operation:s(({row:_})=>[_.default_val=="N"?(c(),S(r,{key:0,link:"",type:"primary",size:n,onClick:U=>l(ae)(_)},{default:s(()=>[o(" Set Default ")]),_:2},1032,["size","onClick"])):f("",!0),m(r,{link:"",type:"primary",size:n,onClick:U=>l(Q)(_)},{default:s(()=>[o(" Edit ")]),_:2},1032,["size","onClick"]),m(r,{link:"",type:"primary",size:n,onClick:U=>l(W)(_)},{default:s(()=>[o(" Delete ")]),_:2},1032,["size","onClick"])]),_:2},1032,["loading","data","columns","checkList","paginationSmall","header-cell-style","onSizeChange","onCurrentChange"])]),_:1},8,["selectArr","onRefresh"])):f("",!0),l(b).tableIndex==1?(c(),g("div",Pe,[e("div",we,[Re,Te,u(e("input",{"onUpdate:modelValue":t[1]||(t[1]=n=>l(D).invoice_number_char=n),style:{"margin-left":"16px"},class:"input",type:"text"},null,512),[[p,l(D).invoice_number_char]]),Be,u(e("input",{"onUpdate:modelValue":t[2]||(t[2]=n=>l(D).start_invoice_number=n),style:{"margin-left":"16px"},class:"input",type:"text"},null,512),[[p,l(D).start_invoice_number]])]),f("",!0),f("",!0),e("div",Ee,[m(r,{type:"primary",onClick:t[4]||(t[4]=n=>l(X)())},{default:s(()=>[o("Submit")]),_:1})])])):f("",!0),l(b).tableIndex==2?(c(),g("div",Ae,[e("div",{class:z(["InvoiceStartNumber",{is_publicS:l(d).is_public=="Y"}])},[ze,u(e("input",{disabled:l(d).checked,"onUpdate:modelValue":t[5]||(t[5]=n=>l(d).smtp_serverv=n),class:"input1",type:"text"},null,8,Le),[[p,l(d).smtp_serverv]]),Me,u(e("input",{disabled:l(d).checked,style:{width:"100px"},"onUpdate:modelValue":t[6]||(t[6]=n=>l(d).smtp_port=n),class:"input1",type:"text"},null,8,je),[[p,l(d).smtp_port]]),qe,u(e("input",{disabled:l(d).checked,style:{width:"230px"},"onUpdate:modelValue":t[7]||(t[7]=n=>l(d).from_email=n),class:"input1",type:"text"},null,8,Fe),[[p,l(d).from_email]]),Je,e("div",Ke,[u(e("input",{disabled:l(d).checked,"onUpdate:modelValue":t[8]||(t[8]=n=>l(d).email_password=n),password:l(R),class:"input_pass",type:"password",id:"ps"},null,8,Oe),[[p,l(d).email_password]]),l(R)?(c(),g("img",{key:0,onClick:t[9]||(t[9]=n=>l(w)(!1)),class:"show_eye",src:ve,mode:""})):(c(),g("img",{key:1,onClick:t[10]||(t[10]=n=>l(w)(!0)),class:"show_eye",src:fe,mode:""}))])],2),m(k,{onChange:l(ee),style:{"margin-top":"15px"},modelValue:l(d).checked,"onUpdate:modelValue":t[11]||(t[11]=n=>l(d).checked=n)},{default:s(()=>[o("public config from")]),_:1},8,["onChange","modelValue"]),Ye,e("div",Ge,[u(e("textarea",{ref_key:"inputRef",ref:B,id:"bookingId",class:"textarea_input",placeholder:"Please enter","onUpdate:modelValue":t[12]||(t[12]=n=>l(d).booking_desc=n),onInput:t[13]||(t[13]=n=>l(ie)(l(d).booking_desc))},null,544),[[p,l(d).booking_desc]]),e("div",He,[u(e("textarea",{class:"textareaShow",placeholder:"Please enter","onUpdate:modelValue":t[14]||(t[14]=n=>l(d).booking_desc1=n),disabled:""},null,512),[[p,l(d).booking_desc1]])])]),e("div",Qe,[m(r,{size:"small",plain:"",type:"primary",onClick:t[15]||(t[15]=n=>l(P)("{{service_date}}"))},{default:s(()=>[o("service_date")]),_:1}),m(r,{size:"small",plain:"",type:"primary",onClick:t[16]||(t[16]=n=>l(P)("{{begin_time}}"))},{default:s(()=>[o("begin_time")]),_:1}),m(r,{size:"small",plain:"",type:"primary",onClick:t[17]||(t[17]=n=>l(P)("{{therapist_name}}"))},{default:s(()=>[o("therapist_name")]),_:1}),m(r,{size:"small",plain:"",type:"primary",onClick:t[18]||(t[18]=n=>l(se)())},{default:s(()=>[o("Restore")]),_:1})]),We,e("div",Xe,[u(e("textarea",{ref_key:"inputRef",ref:B,id:"inputRefId",class:"textarea_input",placeholder:"Please enter","onUpdate:modelValue":t[19]||(t[19]=n=>l(d).comment=n),onInput:t[20]||(t[20]=n=>l(oe)(l(d).comment))},null,544),[[p,l(d).comment]]),e("div",Ze,[u(e("textarea",{class:"textareaShow",placeholder:"Please enter","onUpdate:modelValue":t[21]||(t[21]=n=>l(d).comment1=n),disabled:""},null,512),[[p,l(d).comment1]])])]),e("div",et,[m(r,{size:"small",plain:"",type:"primary",onClick:t[22]||(t[22]=n=>l(T)("{{company_name}}"))},{default:s(()=>[o("company_name")]),_:1}),m(r,{size:"small",plain:"",type:"primary",onClick:t[23]||(t[23]=n=>l(T)("{{company_phone}}"))},{default:s(()=>[o("company_phone")]),_:1}),m(r,{size:"small",plain:"",type:"primary",onClick:t[24]||(t[24]=n=>l(ne)())},{default:s(()=>[o("Restore")]),_:1})]),tt,e("div",lt,y(l(d).msgCorrect),1),e("div",nt,y(l(d).msgError),1),e("div",ot,[m(r,{plain:"",type:"primary",onClick:t[25]||(t[25]=n=>l(le)())},{default:s(()=>[o("Test")]),_:1}),m(r,{type:"primary",onClick:t[26]||(t[26]=n=>l(te)(2))},{default:s(()=>[o("Submit")]),_:1})])])):f("",!0),m(A,{modelValue:l(N),"onUpdate:modelValue":t[42]||(t[42]=n=>L(N)?N.value=n:null),title:""},{default:s(()=>[st,e("table",it,[e("tr",null,[at,e("td",null,[u(e("input",{class:"input","onUpdate:modelValue":t[27]||(t[27]=n=>l(i).company_name=n),type:"text"},null,512),[[p,l(i).company_name]])]),dt,e("td",null,[u(e("input",{"onUpdate:modelValue":t[28]||(t[28]=n=>l(i).first_name=n),class:"input",type:"text"},null,512),[[p,l(i).first_name]])]),rt,e("td",null,[u(e("input",{"onUpdate:modelValue":t[29]||(t[29]=n=>l(i).last_name=n),class:"input",type:"text"},null,512),[[p,l(i).last_name]])])]),e("tr",null,[pt,e("td",null,[u(e("input",{"onUpdate:modelValue":t[30]||(t[30]=n=>l(i).number_companyname=n),class:"input",type:"text"},null,512),[[p,l(i).number_companyname]])]),ut,e("td",null,[u(e("input",{"onUpdate:modelValue":t[31]||(t[31]=n=>l(i).address=n),class:"input",type:"text"},null,512),[[p,l(i).address]])]),mt,e("td",null,[u(e("input",{"onUpdate:modelValue":t[32]||(t[32]=n=>l(i).city=n),class:"input",type:"text"},null,512),[[p,l(i).city]])])]),e("tr",null,[_t,e("td",null,[u(e("input",{"onUpdate:modelValue":t[33]||(t[33]=n=>l(i).state=n),class:"input",type:"text"},null,512),[[p,l(i).state]])]),ct,e("td",null,[u(e("input",{"onUpdate:modelValue":t[34]||(t[34]=n=>l(i).country=n),class:"input",type:"text"},null,512),[[p,l(i).country]])]),yt,e("td",null,[u(e("input",{"onUpdate:modelValue":t[35]||(t[35]=n=>l(i).postal=n),class:"input",type:"text"},null,512),[[p,l(i).postal]])])]),e("tr",null,[vt,e("td",null,[u(e("input",{"onUpdate:modelValue":t[36]||(t[36]=n=>l(i).phone=n),class:"input",type:"text"},null,512),[[p,l(i).phone]])]),ft,e("td",null,[u(e("input",{"onUpdate:modelValue":t[37]||(t[37]=n=>l(i).email=n),class:"input",type:"text"},null,512),[[p,l(i).email]])]),gt,e("td",null,[u(e("input",{"onUpdate:modelValue":t[38]||(t[38]=n=>l(i).hst=n),class:"input",type:"text"},null,512),[[p,l(i).hst]])])]),e("tr",null,[bt,e("td",xt,[u(e("input",{"onUpdate:modelValue":t[39]||(t[39]=n=>l(i).limit_times=n),class:"input",type:"text"},null,512),[[p,l(i).limit_times]]),m(ce,{style:{width:"180px","margin-left":"30px"},clearable:"true",modelValue:l(i).time_frequen,"onUpdate:modelValue":t[40]||(t[40]=n=>l(i).time_frequen=n),filterable:"","allow-create":"","default-first-option":"","reserve-keyword":!1,placeholder:"Please select"},{default:s(()=>[(c(!0),g(he,null,Se(l(pe),n=>(c(),S(_e,{key:n.licence,label:n.text,value:n.value},null,8,["label","value"]))),128))]),_:1},8,["modelValue"])])])]),Ct,e("div",kt,[m(r,{type:"primary",onClick:t[41]||(t[41]=n=>l(G)())},{default:s(()=>[o("Submit")]),_:1})])]),_:1},8,["modelValue"]),e("div",ht,[m(A,{style:{width:"30%"},modelValue:l($),"onUpdate:modelValue":t[45]||(t[45]=n=>L($)?$.value=n:null),title:""},{default:s(()=>[e("div",St,[Vt,u(e("input",{"onUpdate:modelValue":t[43]||(t[43]=n=>l(b).during=n),style:{"margin-left":"5px"},class:"input",type:"text"},null,512),[[p,l(b).during]])]),e("div",Dt,[m(r,{type:"primary",onClick:t[44]||(t[44]=n=>l(Z)())},{default:s(()=>[o("Submit")]),_:1})])]),_:1},8,["modelValue"])]),l(E).step?(c(),g("div",Ut,[e("div",It,[Nt,e("div",$t,[e("div",Pt,[o(" Step "),e("div",wt,y(l(E).step),1),o(" of 5 ")]),e("div",Rt,[m(r,{type:"info",plain:"",onClick:t[46]||(t[46]=n=>l(de)())},{default:s(()=>[o("Cancel")]),_:1}),m(r,{type:"primary",plain:"",onClick:t[47]||(t[47]=n=>l(re)())},{default:s(()=>[o("Next")]),_:1})])])])])):f("",!0),Tt])}}});const Cl=Ue(Et,[["__scopeId","data-v-38b0ec70"]]);export{Cl as default};