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/PayHistories-d7e56f51.js
import{ab as k,b7 as at,L as fl,v as To}from"./message-2472a54a.js";import{useEqu as Eo}from"./hookPay-e62a51a2.js";import ln from"./search-94a75412.js";import{b as kl,P as xl}from"./index.es-b13c7b7d.js";import{noteImg as Ol,NeedPaymentInvoiceWeb as Mo,getCheckMembersWeb as Bo,AccountListWeb as Yo,payMethodWeb as Oo,invoicePaymentWeb as Fo,yuyueFDF as yn,bookingFormImageSubmit as nl,getCustomerListWeb as zo,addRecordWeb as Ro,prePaidWeb as jo,importCustomerSubmitWeb as Lo,familyUserSubmitWeb as Qo,deleteCustomerWeb as Ho}from"./po-4f5ed739.js";import{_ as nn}from"./usersDetail_icon-a94f04d1.js";import{useEqu as Wo}from"./hookInvoice2-ae1378ef.js";import on from"./autograph-9fd81dc5.js";import Tl from"./locationConfig-3bb91acb.js";import{d as gn,u as qo}from"./vue-router-a383d220.js";import bn from"./payConfig-51667147.js";import{useEqu as Go}from"./hookPrePay-6f229a87.js";import{d as st,o as al,Q as H,e as n,f as o,g as t,u as e,v as r,t as i,p as b,l as P,m as u,y as d,F as V,I as D,x as a,i as T,b5 as sl,b4 as il,A as Pe,w as fn,r as ue,n as E,_ as Zo}from"./runtime-core.esm-bundler-6128546f.js";import{_ as dl}from"./_plugin-vue_export-helper-c27b6911.js";import{useEqu as Ko}from"./hookInvoice-7177e8c0.js";import{useEqu as Xo}from"./hookBooking-4b69f993.js";import{_ as Jo}from"./booking_date_icon-35236f08.js";import{_ as ea}from"./time_icon-b16e277f.js";import{useEqu as ta}from"./hookBkDetail-ce84d892.js";import la from"./chineseMedical-734499da.js";import na from"./statement-bc4c8624.js";import{o as hn}from"./index-81e4a901.js";const kn="/public/static/png/online_user-5e9c2af6.png",xn="/public/static/png/vip-1e398010.png",Cn="/public/static/png/money-1620f2c0.png",ol="/public/static/png/booking_form_icon-a9b223be.png",$n="/public/static/png/email-41c6ba1c.png",Vn="/public/static/png/pdf-9af81dce.png",Dn="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAMgAAADICAYAAACtWK6eAAAAAXNSR0IArs4c6QAADo5JREFUeF7tnX2MXGUVxp9z596du1BAq7Ta7u5MIYKgEf5ADFL50AYFrBgR/yBBQCAqJNKAfEekJnyooCgRA5pQP4jGCMXyEaASiopBJUENCoSPzuyWhiJWaQI7s/fOPbItRdJ258683Hnv3Pc+++8959z3/M559pmPnR0Bf0iABOYkIGRDAiQwNwEKhNtBAl0IUCBcDxKgQLgDJGBGgA5ixo1ZJSFAgZRk0GzTjAAFYsaNWSUhQIGUZNBs04wABWLGjVklIUCBlGTQbNOMAAVixo1ZJSFAgZRk0GzTjAAFYsaNWSUhQIGUZNBs04wABWLGjVklIUCBlGTQbNOMAAVixo1ZJSFAgZRk0GzTjAAFYsaNWSUhQIGUZNBs04wABWLGjVklIUCBlGTQbNOMAAVixo1ZJSFAgZRk0GzTjAAFYsaNWSUhQIGUZNBs04wABWLGjVklIUCBlGTQbNOMAAVixo1ZJSFAgZRk0GzTjAAF0gc3XYJaW4PjAN1fVRYIdG8VBH2UsB4qikgh/xLRTYA8WZ2J7pGNmLJ+kILekALpYXDticrnVLwrIDigh/DhD1E8Dk0uDSc7dw7/YfM9IQXShb8uxljb92+CyHH5jmlQd9c7qhJ/SdZj06DuUPS6FMgcE2xNVD4JT24FZM+iD7nb+VX1JVGcHE7Ga13u07Q3CmQX5No1/1IVudIUaiHzFOeEzejGQp59gIemQHaAG9X9IzuKByFSLjaqsZfIYSNT0aMD3LfClS7XEqSMRxdiQSv0nxCR+YWbZAYHVmAynIkOkI14NYNyTpSgQN40xlYt+BEEZzoxWcMmVPWq0WZ8mWG6c2kUyOsjbY/hA+oHf3NuwgYNVeNoTDbgeYNU51IokNdH2qr510Lk/F4nrKobIHi21/hc4xT7ishYz2dQvSBsxtf2HO9wIAXyhkCCZyHYJ33W+rJCV4w2OqvSY4cnYrpWOUMg10NkXuqpVB8Mm/FHU+NKEECBANBFmGiPBM20eavqvyte/LGR9SjkQ7GZseDQxNffArJHWq9VRKPSQCstzvXrFAiAaMJf2vHk96nDVr0wbMbfTo0b4oBW3b8GkIvSjigaHVht4om0ONevUyAA2vXKCQrvjrRhV6ejhbIJL6bFDfP19gQOVC/4R/oZ9diwEd+bHud2BAUCYKZeOTWBl/qcImxETvBq1QNNW2sPyWkjjc5P0uJcv+7EwN/qkKbrldME3i1pdcokEEVyetFeiEibn8l1CgQABbLz6lAg25hQIBTILn+xUiAUyBuLQQehg8z18IsOQgehg3R5ckKBUCAUCAXS/fULPsTiQyw+xOqiEQqEAqFAKJA3CPTyRiFfxeKrWHwVq8svDQpkiASi+2Cvdsc/UwXLTd7tfKs5AnkXgP3T6ij0obSYIlwXyJE9nPMphb7QQ1zmIQJZXd0S3SKbsSXz4n0WzP1VrJk6Dk7grwNkrz7PznCHCajqZk/iw6sNPJlnm7kKRJdgYTvxn+npQzx5UuK9cyEw+z+7wiiu5flPJHIVSHvCv1w9WZkLfd60KATODhvRD/M6bK4CadX8tRBZllfzvG8BCKjeHjbjE/M6ad4CuQsix+fVPO9bBAJ6Z9iIP5XXSXMVSHvCv1A9+WZezfO+BSCQ4NxwMvp+XifNVSC6CLu1R7Z+/LOeFwDed6gJPBk2oly/ciJXgcyOprUE+yMJVjvz3RtDvW/FOZyqPhp68WdlPVL/28wgu8pdINubm5monNIR71iILhpkw6w93AQ8yHpocle12bltGE46NAIZBhg8AwnsSIAC4U6QQBcCFAjXgwQoEO4ACZgRoIOYcWNWSQhQICUZNNs0I0CBmHFjVkkIUCAlGTTbNCNAgZhxY1ZJCBReIDqG0bYXnKmiF4nIYqj+RxTXjPjxTfIcXh7kHFuLsR/8ylcg3jmz91HVhwV6ddjs3D3I+85Vu12vfDpRuUBEPrwtRr+HTnxDODXYr4prj+P96gUrIDhj2231AST4VjgV358HhyzvWWiBbPtjR381IMfsCEWhj4Re/IlBiWRmPDgkqWz9tqadPyqcwxftTNf8K0Xk0p04zH50NYmPrE7h8SwXZ3utaNw/ouPhXoiM7lQ/Bw5Z91hogbRq/nUQOW9OKIofh83orKyhKVBp1f2NAlkwV+1KokuDyfjhrO+9q3qticpyeN6aLhyeC5vRvlmfResI2/Bf7PqVbokeE07Ga7O+t616xRZI3d/SdTiq09VO/A7ZgOksgbYnKiep5/2qW00BVlUb0elZ3neuWq2afzdEjut2rwr0qKARZ/pfWaYnKmeJ593cvUddGzbinRzeBpcs7lFYgegijLdHgsk0CF4Hh45MRX9Ji+vnervmf01FvtE1R/HPsBm9r5+6prGtWg/f0DuAhzupDv56Q9XpaJ5swium/eWZV1iBTNdRFwTr0+C99r+sjh5txOvS4vq5Pl33rxDI17vlKNAcbURWPgg2XQ8aAtS6n0dXjjbiK/rpMy22VfevB+TctLiqRPW8P9eRdsa5rlMgBuQokG3QKBCD5bGVQgf5P2k6yOC2jg5iwJYOQgcxWBu7KXQQOoiNjaODGFCmg9BBDNbGbgodhA5iY+PoIAaU6SB0EIO1sZtCB6GD2Ng4OogBZToIHcRgbeym0EHoIDY2jg5iQJkOQgcxWBu7KXQQOoiNjaODGFCmg9BBDNbGbgodhA5iY+PoIAaU6SB0EIO1sZtCB6GD2Ng4OogBZToIHcRgbeym0EHoIDY2jg5iQJkOQgcxWBu7KXQQOoiNjaODGFCmg9BBDNbGbgodhA5iY+PoIAaU6SB0EIO1sZtCB6GD2Ng4OogBZToIHcRgbeym0EHoIDY2jg5iQJkOQgcxWBu7KXQQOoiNjaODGFCmg9BBDNbGbgodhA5iY+PoIAaU6SB0EIO1sZtCB6GD2Ng4OogBZToIHcRgbeym0EHoIDY2jg5iQJkOQgcxWBu7KXQQOoiNjaODGFCmg9BBDNbGbgodhA5iY+PoIAaU6SB0EIO1sZtCB6GD2Ng4OogBZToIHcRgbeym0EHoIDY2jg5iQJkOQgcxWBu7KXQQOoiNjaODGFCmg9BBDNbGbgodhA5iY+PoIAaU6SB0EIO1sZtCB6GD2Ng4OogBZToIHcRgbeym0EHoIDY2jg5iQJkOQgcxWBu7KXQQOoiNjaODGFCmg9BBDNbGbgodhA5iY+PoIAaU6SB0EIO1sZtCB6GD2Ng4OogBZToIHcRgbeym0EHoIDY2jg5iQJkOQgcxWBu7KXQQOoiNjaODGFCmg9BBDNbGbgodhA5iY+PoIAaU6SB0EIO1sZtCB6GD2Ng4OogB5Xbdv0QhV6WkPhU2ovcalO87pVUPngKwX7dEgV5SbcTX9F28S0Kr7l8PyLlpNasS1WU9mmlxw3idAjGYSmuishyet6Zbqip+MdqMTjYo33dKq+bfBpHPdE3s6MfDqfj+votTIFkis1crz4dYs1226sFjAA6eq2OJo4OqG/B3G0RmxoMPJhX8ea57KfSR0UZ8WNZnoYNkTTTDerkLZDH2U99/QETGdmzLS5LPj0x2fpZhu6mlWrXgbAh+sFOg4pmqFy0bxEMcCiR1LPkF5C2Q2c71ndijtbt/sYgsV+hCT+Vu7URXhxvwdB5kZsaDQzoVXADVjwmkIdDV1WZ85aDOQoEMimwGdXUJam0NGmmlFHr0aCNelxbH6/0T6FkgUTQuz2ND/3fIP6OwT9Jnf3u35wVb0hCKJidWm53b0+J4vX8C07XgpyI4JS2zGke7yQZMp8UN4/XCCmTrE+Wa/ypERlPAnhc2ou8OI/yin2m67v9OIB/p3oduCRvxXkXtteACCZ6BYN+UAd0bNuJjizqgYT231vG2tvovQaSSckZr7wcNglXBBeKvhciyNDDVTrRYprAxLY7XeyfQnvAvV09WpmdooX9BFVsg9WAFgNSHT6K4pdqMvpA+TEb0QkDHsajt+U9DZLfUeMU5YTO6MTVuSAMKLZBeX8maZa9ITh9tdFYN6RwKdazpuv+QQI5IPbSqVr343bIem1JjhzSg0AKZZTpd9/8kkEN74Suql1WbcdrfUPVSqpQxOh97tvf0fw7I8l4AvPYS+0OvvcR+VC+xwxpTeIG0a5UTVbxf9wxY8ZhIsrLa6Pym55ySB+oY5rf94FSFXiyQBT3j0OT4sNm5p+f4IQwsvEBmmbbqwV8BHNQXX9VXIPgDgCcUeLmv3HIEi6cynogeKJAP9duyqv5xtBkf3m/esMW7IZAe/rp22MC7fp5KokuDyfjhovfphEC2PRcJVglwatEH4sT5Vb8TNuPzXejFGYEo4LVr/n29vC/iwuCGtwddEzbiE4b3fP2dzBmBzLatC7F7K/TvE5HCP/btb4zDEl3sNwV3RdEpgWwVCRC068GtAE4alrUpxTk0uaHa7KwQIHGpX+cEsn04PX5u3KVZ5tdLgi+Gk9HN+R1gcHd2ViBbX/4dw3vg+9f1+sbW4DA7WFlVFfLLMIm+6vLfuTktkO1r2Zrwl0HwZQDHQGSeg+tqsSX9r0LWVDq4YWQqetTijXO5VSkE8mays2JRD0tFdW8Vb75A365AmAv9Ib+pAC1V2SxINgvkBU+xLpiMZ99cLc1P6QRSmsmy0UwIUCCZYGQRVwlQIK5Oln1lQoACyQQji7hKgAJxdbLsKxMCFEgmGFnEVQIUiKuTZV+ZEKBAMsHIIq4SoEBcnSz7yoQABZIJRhZxlQAF4upk2VcmBCiQTDCyiKsEKBBXJ8u+MiFAgWSCkUVcJUCBuDpZ9pUJAQokE4ws4ioBCsTVybKvTAhQIJlgZBFXCVAgrk6WfWVCgALJBCOLuEqAAnF1suwrEwIUSCYYWcRVAhSIq5NlX5kQoEAywcgirhKgQFydLPvKhAAFkglGFnGVAAXi6mTZVyYEKJBMMLKIqwQoEFcny74yIUCBZIKRRVwlQIG4Oln2lQmB/wGbluRQnIsjMAAAAABJRU5ErkJggg==",an="/public/static/png/_attachment-bec6b5ef.png",Mt=K=>(sl("data-v-9d4d21e3"),K=K(),il(),K),oa={class:"main"},aa=Mt(()=>t("div",{class:"dialog_tilte"},"payment",-1)),sa={class:"createOrderobj_box"},ia={key:0,width:"30%"},da=Mt(()=>t("span",{class:"red"}," * ",-1)),ua={key:1,width:"30%"},ra=Mt(()=>t("span",{class:"red"}," * ",-1)),_a={key:2},ca={key:3},pa=Mt(()=>t("td",null,[r("Pay Amount"),t("span",{class:"red"}," * ")],-1)),ma=Mt(()=>t("td",null,"Collection Time",-1)),va=Mt(()=>t("td",null,[r("Pay Method"),t("span",{class:"red"}," * ")],-1)),ga={key:0},ha=Mt(()=>t("td",null,[r("Check Number"),t("span",{class:"red"}," * ")],-1)),ya=Mt(()=>t("td",null,"file",-1)),ba={colspan:"5",class:"payment_box"},fa=Mt(()=>t("td",null,"Comment",-1)),ka={colspan:"5"},xa={class:"part_out_button"},Ca=Mt(()=>t("div",{class:"dialog_tilte"},"创建采购单",-1)),$a=Mt(()=>t("fieldset",{class:"fieldset"},[t("legend",{class:"legend"},"发货操作"),t("table",{class:"createOrderobj_box"},[t("tr",null,[t("td",{width:"15%"},"客户名称"),t("td",null,"123132")])])],-1)),Va={class:"part_out_button"},Da=st({name:"/crm/yuyue/prePay"}),wa=st({...Da,props:{str:{type:String,default:""},paymentArr:{type:Object,default:""},addCollectionDialog:{type:Boolean,default:""}},emits:["update:addCollectionDialog","update:eventPrePay"],setup(K,{emit:he}){const S=K,{searchDetail:fe,btnSearchPart:z,loading:Nt,small:ye,selectList:yt,columns:bt,checkList:wt,pagination:pe,handleSizeChange:it,handleCurrentChange:je,PartList:Le,order_date:De,deliverDialog:Ue,selectClick:F,btnDeliverConfirm:Se,singleTableRef:We,collectionArr:de,onSelClient:I,ClientDialog:Qe,ClientData:_t,eventIsNum:qe,payMethodData:p,AccountData:Bt,btncollectionConfirm:Ye,btnGoView:Ne,uploadSlotFile1:q,payMethodData2:ne,eventPay:N,payConfigDialog:Te,btnEdit:oe,itemArr:ve,locationData:te,upload:lt}=Go(S,he);return al(()=>{}),(Oe,Y)=>{const ee=H("el-button"),x=H("el-option"),ke=H("el-select"),Ee=H("el-date-picker"),It=H("el-upload"),Xe=H("el-dialog");return n(),o("div",oa,[aa,t("table",sa,[t("tr",null,[e(ve).actiontype==""?(n(),o("td",ia,[r(" Client"),da])):i("",!0),e(ve).actiontype?(n(),o("td",ua,[r(" Location Worked:"),ra])):i("",!0),S.str!=3?(n(),o("td",_a,[b(t("input",{disabled:"",class:"input2","onUpdate:modelValue":Y[0]||(Y[0]=Q=>e(de).name=Q),type:"text"},null,512),[[k,e(de).name]]),S.paymentArr.id==""||S.str==""||e(de).pay_id?(n(),P(ee,{key:0,type:"primary",style:{"margin-left":"7px"},plain:"",size:"small",onClick:Y[1]||(Y[1]=Q=>e(I)())},{default:u(()=>[r(" Select ")]),_:1})):i("",!0)])):i("",!0),S.str==3?(n(),o("td",ca,[d(ke,{style:{width:"272px",margin:"0 10px 0 0"},modelValue:e(de).company_id,"onUpdate:modelValue":Y[2]||(Y[2]=Q=>e(de).company_id=Q),"allow-create":"","default-first-option":"","reserve-keyword":!1,placeholder:"Please select",onChange:Oe.onLocationData},{default:u(()=>[(n(!0),o(V,null,D(e(te),Q=>(n(),P(x,{key:Q.id,label:Q.company_name,value:Q.id},null,8,["label","value"]))),128))]),_:1},8,["modelValue","onChange"])])):i("",!0)]),t("tr",null,[pa,t("td",null,[b(t("input",{"onUpdate:modelValue":Y[3]||(Y[3]=Q=>e(de).pay_amount=Q),class:"input2",type:"text"},null,512),[[k,e(de).pay_amount]])])]),t("tr",null,[ma,t("td",null,[d(Ee,{style:{width:"272px"},modelValue:e(de).time,"onUpdate:modelValue":Y[4]||(Y[4]=Q=>e(de).time=Q),type:"date","value-format":"YYYY-MM-DD",placeholder:"Please select"},null,8,["modelValue"])])]),t("tr",null,[va,t("td",null,[d(ke,{clearable:"true",style:{width:"272px",margin:"0 10px 0 0"},modelValue:e(de).pay_method,"onUpdate:modelValue":Y[5]||(Y[5]=Q=>e(de).pay_method=Q),"allow-create":"","default-first-option":"","reserve-keyword":!1,placeholder:"Please select",onChange:Oe.onPayMethod},{default:u(()=>[(n(!0),o(V,null,D(e(ne),Q=>(n(),P(x,{key:Q.id,label:Q.text,value:Q.value},null,8,["label","value"]))),128))]),_:1},8,["modelValue","onChange"]),e(de).pay_method=="Other"?b((n(),o("input",{key:0,"onUpdate:modelValue":Y[6]||(Y[6]=Q=>e(de).other=Q),class:"input2",style:{height:"32px"},type:"text"},null,512)),[[k,e(de).other]]):i("",!0),d(ee,{type:"primary",link:"",size:"small",onClick:Y[7]||(Y[7]=Q=>e(oe)())},{default:u(()=>[r("Edit")]),_:1})])]),e(de).pay_method=="Cheque"?(n(),o("tr",ga,[ha,t("td",null,[b(t("input",{"onUpdate:modelValue":Y[8]||(Y[8]=Q=>e(de).cheque_number=Q),class:"input2",type:"text"},null,512),[[k,e(de).cheque_number]])])])):i("",!0),t("tr",null,[ya,t("td",ba,[d(It,{ref_key:"upload",ref:lt,class:"avatar_uploader",action:e(Ol),"on-exceed":Oe.handleExceed,"on-success":e(q),"on-error":Oe.handleUploadError,"on-change":Oe.handleChangePic},{default:u(()=>[d(ee,{style:{margin:"0 10px 0 0"},size:"small",plain:"",type:"primary"},{default:u(()=>[r("Upload")]),_:1})]),_:1},8,["action","on-exceed","on-success","on-error","on-change"]),(n(!0),o(V,null,D(e(de).files1,(Q,dt)=>(n(),o("div",{class:"files1_desc",key:dt},a(Q),1))),128))])]),t("tr",null,[fa,t("td",ka,[b(t("textarea",{class:"textarea_input",placeholder:"Please enter","onUpdate:modelValue":Y[9]||(Y[9]=Q=>e(de).content=Q),maxlength:"600"},null,512),[[k,e(de).content]])])])]),t("div",xa,[d(ee,{loading:e(Nt),type:"primary",onClick:Y[10]||(Y[10]=Q=>e(Ye)())},{default:u(()=>[r("Submit")]),_:1},8,["loading"]),e(ve).str==""?(n(),P(ee,{key:0,link:"",type:"primary",onClick:Y[11]||(Y[11]=Q=>e(Ne)())},{default:u(()=>[r("Go view")]),_:1})):i("",!0)]),d(Xe,{modelValue:e(Ue),"onUpdate:modelValue":Y[13]||(Y[13]=Q=>T(Ue)?Ue.value=Q:null),title:""},{default:u(()=>[Ca,$a,t("div",Va,[d(ee,{type:"primary",onClick:Y[12]||(Y[12]=Q=>e(Se)())},{default:u(()=>[r("确定")]),_:1})])]),_:1},8,["modelValue"]),d(Xe,{style:{width:"78%"},modelValue:e(Qe),"onUpdate:modelValue":Y[15]||(Y[15]=Q=>T(Qe)?Qe.value=Q:null),title:""},{default:u(()=>[d(pl,{onEventIsNum:e(qe),str:1,ClientData:e(_t),ClientDialog:e(Qe),"onUpdate:ClientDialog":Y[14]||(Y[14]=Q=>T(Qe)?Qe.value=Q:null)},null,8,["onEventIsNum","ClientData","ClientDialog"])]),_:1},8,["modelValue"]),d(Xe,{style:{width:"76%"},modelValue:e(Te),"onUpdate:modelValue":Y[17]||(Y[17]=Q=>T(Te)?Te.value=Q:null),title:""},{default:u(()=>[d(bn,{onEventPay:e(N),str:1,payConfigDialog:e(Te),"onUpdate:payConfigDialog":Y[16]||(Y[16]=Q=>T(Te)?Te.value=Q:null)},null,8,["onEventPay","payConfigDialog"])]),_:1},8,["modelValue"])])}}});const sn=dl(wa,[["__scopeId","data-v-9d4d21e3"]]),e$=Object.freeze(Object.defineProperty({__proto__:null,default:sn},Symbol.toStringTag,{value:"Module"})),wn=K=>(sl("data-v-a2278323"),K=K(),il(),K),Ia={class:"main"},Ua={key:0},Sa={style:{"margin-top":"8px"}},Aa={style:{"margin-top":"8px"}},Pa={key:1},Na={style:{"margin-top":"8px"}},Ta={key:0},Ea={key:1},Ma={style:{"margin-top":"8px"}},Ba={style:{"margin-top":"8px"}},Ya={style:{"margin-top":"8px"}},Oa=wn(()=>t("div",{style:{margin:"18px 0 6px 0"}},"Prepaid History",-1)),Fa={class:"createOrderobj_box"},za=wn(()=>t("tr",null,[t("td",null,"Check Number"),t("td",null,"Check Amount"),t("td",null,"Has Paid Amount"),t("td",null,"Balance Amount"),t("td",null,"Paid amount")],-1)),Ra=["onUpdate:modelValue"],ja={class:"part_out_button"},La={class:"insufficient"},Qa=st({name:"/crm/yuyue/components/Charge"}),Ha=st({...Qa,props:{str:{type:String,default:""},ChargeArr:{type:Object,default:""}},emits:["update:ChargeDialog","update:eventCharge"],setup(K,{emit:he}){const S=K;gn(),qo(),gn();const fe=Pe({name:"",id:"",sum:"",actiontype:""});fn(S.ChargeArr,(q,ne)=>{S.str==6?Ne():We()});const z=Pe({Invoice_Charge_Number:"",Customer_Name:"",Invoice_Total_Charge:"",Has_Paid_Amount:"",Need_Charge_Amount:"",Total_Paid_Amount:"",customer_id:"",customer_name:"",invoice_id:"",actiontype:""});ue([{id:1,text:"Paypal",value:"Paypal"},{id:2,text:"VISA",value:"VISA"},{id:3,text:"MasterCard",value:"MasterCard"},{id:4,text:"AMERICAN_EXPRESS",value:"AMERICAN_EXPRESS"},{id:5,text:"Cheque",value:"Cheque"},{id:6,text:"BankTransfer",value:"BankTransfer"},{id:7,text:"Cash",value:"Cash"},{id:8,text:"Other",value:"Other"}]),ue();const Nt=Pe({}),ye=Pe({});Pe({});const yt=ue([]),bt=ue([]),wt=ue([]),pe=Pe({}),it=Pe({}),je=Pe({});Pe({});const Le=ue(!1),De=ue(!1),Ue=ue(!1),F=Pe({name:"",customer_id:"",pay_amount:0,pay_method:"",cheque_number:"",content:"",invoice_id:"",account_id:"",time:"",other:"",files:[]}),Se=Pe({type:"",clinic_id:"",role:"",searchKey:""});async function We(){Se.type=parseInt(localStorage.getItem("type")),Se.type==2?(Se.role="clinic",Se.clinic_id=localStorage.getItem("clinicIdOverall")):Se.type==1&&(Se.role="therapists"),Le.value=!0;const{data:q}=await Mo(Object.assign(Nt,{customer_id:S.ChargeArr.value.customer_id}));q.code==1&&(Le.value=!1,S.str==2?(z.Invoice_Charge_Number=q.data.invoice_id_arr,z.Total_Paid_Amount=q.data.need_amount_sum,z.customer_id=S.ChargeArr.value.customer_id,z.customer_name=S.ChargeArr.value.customer_name):(S.ChargeArr.value.actiontype=="employee_company"&&(z.actiontype="employee_company"),z.Invoice_Charge_Number=S.ChargeArr.value.Invoice_Charge_Number,z.Customer_Name=S.ChargeArr.value.Customer_Name,z.Invoice_Total_Charge=S.ChargeArr.value.Invoice_Total_Charge,z.Has_Paid_Amount=S.ChargeArr.value.Has_Paid_Amount,z.Need_Charge_Amount=S.ChargeArr.value.Need_Charge_Amount,z.Total_Paid_Amount=S.ChargeArr.value.Total_Paid_Amount,z.customer_id=S.ChargeArr.value.customer_id,z.customer_name=S.ChargeArr.value.customer_name,z.invoice_id=S.ChargeArr.value.invoice_id),p())}function de(){I(),Qe(),_t();let q=0;S.str==2?q=z.Total_Paid_Amount:q=z.Need_Charge_Amount,bt.value.forEach((ne,N)=>{q=q-ne.paid_amount}),q>0?F.pay_amount=q.toFixed(2):F.pay_amount=0,fe.name=S.ChargeArr.value.customer_name,fe.id=S.ChargeArr.value.customer_id,fe.sum=F.pay_amount,fe.actiontype=z.actiontype,De.value=!0}function I(){var q=new Date,ne=q.getFullYear(),N=("0"+(q.getMonth()+1)).slice(-2),Te=("0"+q.getDate()).slice(-2);F.time=ne+"-"+N+"-"+Te}async function Qe(){const{data:q}=await Yo(Object.assign(pe,{clinic_id:Se.clinic_id,role:Se.role,searchKey:""}));q.code==1&&(yt.value=q.data)}async function _t(){const{data:q}=await Oo(Object.assign(ye,{clinic_id:Se.clinic_id,role:Se.role,searchKey:""}));q.code==1&&(wt.value=q.data)}function qe(){_t()}async function p(){const{data:q}=await Bo(Object.assign(it,{customer_id:S.ChargeArr.value.customer_id,actiontype:z.actiontype}));if(q.code==1){bt.value=q.data;let ne="";S.str==1?ne=z.Need_Charge_Amount:ne=z.Total_Paid_Amount,bt.value.forEach((N,Te)=>{let oe=Math.min(N.remain_amount,ne);oe>0&&(N.paid_amount=oe,ne=parseFloat((ne-oe).toFixed(2)))})}else at({type:"error",message:q.msg})}async function Bt(){Le.value=!0;let q=[];S.str==2||S.str==6?q=z.Invoice_Charge_Number:q.push(z.invoice_id);const{data:ne}=await Fo(Object.assign(je,{invoice_id_list:q,pay_amount_details:bt.value,actiontype:z.actiontype}));ne.code==1?(Le.value=!1,he("update:ChargeDialog",!1),he("eventCharge")):(Le.value=!1,at({type:"error",message:ne.msg}))}function Ye(){p()}function Ne(){z.Invoice_Charge_Number=S.ChargeArr.value.Invoice_Charge_Number,z.Total_Paid_Amount=S.ChargeArr.value.Total_Paid_Amount,z.customer_id=S.ChargeArr.value.customer_id,z.customer_name=S.ChargeArr.value.customer_name,p()}return al(()=>{S.str==6?Ne():We()}),(q,ne)=>{const N=H("el-button"),Te=H("el-dialog");return n(),o("div",Ia,[S.str==2||S.str==6?(n(),o("div",Ua,[t("div",null,"Customer Name : "+a(z.customer_name)+" ["+a(z.customer_id)+"]",1),t("div",Sa," Number of invoices : "+a(z.Invoice_Charge_Number.length),1),t("div",Aa," Total need paid amount : "+a(z.Total_Paid_Amount)+" $ ",1)])):i("",!0),S.str==1?(n(),o("div",Pa,[t("div",null,"Invoice Number : "+a(z.Invoice_Charge_Number),1),t("div",Na,[z.actiontype==""?(n(),o("span",Ta,"Customer Name : ")):i("",!0),z.actiontype?(n(),o("span",Ea,"Company Name : ")):i("",!0),r(" "+a(z.Customer_Name),1)]),t("div",Ma," Invoice Total Charge : "+a(z.Invoice_Total_Charge)+" $ ",1),t("div",Ba," Has Paid Amount : "+a(z.Has_Paid_Amount)+" $ ",1),t("div",Ya," Need Charge Amount : "+a(z.Need_Charge_Amount)+" $ ",1)])):i("",!0),Oa,t("table",Fa,[za,(n(!0),o(V,null,D(bt.value,(oe,ve)=>(n(),o("tr",{key:oe.id},[t("td",null,a(oe.cheque_number),1),t("td",null,a(oe.pay_amount)+" $",1),t("td",null,a(oe.has_pay_amount)+" $",1),t("td",null,a(oe.remain_amount)+" $",1),t("td",null,[b(t("input",{"onUpdate:modelValue":te=>oe.paid_amount=te,class:"input",type:"text"},null,8,Ra),[[k,oe.paid_amount]]),r(" $ ")])]))),128))]),t("div",ja,[d(N,{type:"primary",loading:Le.value,onClick:ne[0]||(ne[0]=oe=>Bt())},{default:u(()=>[r("Submit")]),_:1},8,["loading"])]),t("div",La,[r(" The balance is insufficient,please Pay "),d(N,{link:"",type:"primary",style:{"margin-left":"8px"},onClick:ne[1]||(ne[1]=oe=>de())},{default:u(()=>[r("Payment")]),_:1})]),d(Te,{style:{width:"76%"},modelValue:Ue.value,"onUpdate:modelValue":ne[3]||(ne[3]=oe=>Ue.value=oe),title:""},{default:u(()=>[d(bn,{onEventPay:qe,str:1,payConfigDialog:Ue.value,"onUpdate:payConfigDialog":ne[2]||(ne[2]=oe=>Ue.value=oe)},null,8,["payConfigDialog"])]),_:1},8,["modelValue"]),d(Te,{style:{width:"50%"},modelValue:De.value,"onUpdate:modelValue":ne[5]||(ne[5]=oe=>De.value=oe),title:""},{default:u(()=>[d(sn,{onEventPrePay:Ye,str:S.str,paymentArr:fe,addCollectionDialog:De.value,"onUpdate:addCollectionDialog":ne[4]||(ne[4]=oe=>De.value=oe)},null,8,["str","paymentArr","addCollectionDialog"])]),_:1},8,["modelValue"])])}}});const Fl=dl(Ha,[["__scopeId","data-v-a2278323"]]),t$=Object.freeze(Object.defineProperty({__proto__:null,default:Fl},Symbol.toStringTag,{value:"Module"})),X=K=>(sl("data-v-0fd8198f"),K=K(),il(),K),Wa={class:"main"},qa=X(()=>t("div",null,null,-1)),Ga={class:"dialog_procure_box",style:{"margin-top":"0px"}},Za={class:"search_box"},Ka=["onClick"],Xa={class:"operation_box"},Ja=["onClick"],es=["onClick"],ts=["onClick"],ls=["onClick"],ns=["onClick"],os={class:"batch_payment"},as={class:"sub_amount_box"},ss={class:"red10"},is={style:{"margin-left":"25px"}},ds={class:"red10"},us=X(()=>t("div",{class:"dialog_tilte"},"Add Invoice",-1)),rs={class:"createOrderobj_box"},_s=X(()=>t("td",{width:"15%"},"Invoice Type",-1)),cs=X(()=>t("td",{width:"16%"},[r("Therapist"),t("span",{class:"red"}," * ")],-1)),ps=X(()=>t("td",null,[r("Client"),t("span",{class:"red"}," * ")],-1)),ms=X(()=>t("td",null,[r("Invoice Date"),t("span",{class:"red"}," * ")],-1)),vs={key:0},gs={class:"dialog_procure_box"},hs=X(()=>t("span",{class:"red"}," * ",-1)),ys={key:1},bs=X(()=>t("td",null,"Detail",-1)),fs={class:"Service_Invoice_box1"},ks={class:"createOrderobj_box_child"},xs=X(()=>t("td",{width:"15%"},"Invoice Number",-1)),Cs=X(()=>t("td",null,"Service",-1)),$s=["onUpdate:modelValue"],Vs={key:0},Ds=X(()=>t("td",null,"Receive",-1)),ws=["onUpdate:modelValue"],Is=X(()=>t("td",null,"Tax",-1)),Us={key:0},Ss=X(()=>t("td",null,[r("Item"),t("span",{class:"red"}," * ")],-1)),As=X(()=>t("div",null,"Date:",-1)),Ps=X(()=>t("div",{style:{"margin-left":"10px"}},"Duration:",-1)),Ns={key:0,style:{"margin-left":"10px"}},Ts=["onUpdate:modelValue","onInput"],Es={key:2,style:{"margin-left":"5px"}},Ms={class:"Add_Item"},Bs={key:0},Ys={key:0},Os={style:{"margin-left":"20px"}},Fs=X(()=>t("div",{class:"Match_no"}," (If you have not match a Booking, System will automatically generate a virtual Booking.) ",-1)),zs={class:"Signature_box",style:{width:"80%"}},Rs={class:"Paid_desc"},js={class:"Paid_desc"},Ls={class:"Paid_desc"},Qs=X(()=>t("td",null,"File",-1)),Hs={class:"payment_box"},Ws={class:"Signature_box1"},qs={class:"signal_image_box"},Gs={class:"signal_url_box1"},Zs=["src"],Ks={class:"part_out_button"},Xs=X(()=>t("div",{class:"dialog_tilte"},"Booking Match",-1)),Js={class:"createOrderobj_box"},ei=X(()=>t("tr",null,[t("td",{width:"5%"}),t("td",{width:"5%"},"Index"),t("td",null,"Booking#"),t("td",null,"Date"),t("td",null,"Time"),t("td",null,"Duration"),t("td",null,"Amount")],-1)),ti={width:"5%"},li=["onClick"],ni={width:"5%"},oi={class:"add_part_dialog_box"},ai={class:"Email_box"},si={class:"Email_box",style:{"margin-top":"120px"}},ii=X(()=>t("img",{class:"_attachment",src:an,alt:""},null,-1)),di={class:"part_out_button"},ui=X(()=>t("div",{class:"dialog_tilte"},"Invoice Detail",-1)),ri={class:"Invoice_Detail_box"},_i={class:"INVOICE_box"},ci=X(()=>t("div",{class:"INVOICE_box_left"},"INVOICE",-1)),pi={class:"INVOICE_box_right"},mi={class:"Relaxation"},vi={style:{"font-size":"29rpx"}},gi=X(()=>t("div",{class:"Name_box_box"},[t("div",{class:"Name_box"},"Bill To:"),t("div",{class:"Name_box"})],-1)),hi={class:"Name_box_box"},yi={class:"Name_box"},bi={key:0,class:"Name_box"},fi={key:1,class:"Name_box"},ki={class:"Name_box_box"},xi={class:"Name_box"},Ci={key:0,class:"Name_box"},$i={class:"uni_table_box"},Vi={class:"createOrderobj_box"},Di=X(()=>t("tr",{class:"Duration_title_box"},[t("td",null,"Date of Treatment"),t("td",null,"Description"),t("td",null,"Duration"),t("td",null,"Price ($)"),t("td",null,"Amount ($)")],-1)),wi={key:0},Ii=X(()=>t("td",null,null,-1)),Ui=X(()=>t("td",null,null,-1)),Si=X(()=>t("td",null,null,-1)),Ai=X(()=>t("td",null,"Subtotal:",-1)),Pi={key:1},Ni=X(()=>t("td",null,null,-1)),Ti=X(()=>t("td",null,null,-1)),Ei=X(()=>t("td",null,null,-1)),Mi=X(()=>t("td",null,"HST:",-1)),Bi={key:2},Yi=X(()=>t("td",null,null,-1)),Oi=X(()=>t("td",null,null,-1)),Fi=X(()=>t("td",null,null,-1)),zi=X(()=>t("td",null,"Total:",-1)),Ri={key:0,class:"receive_message"},ji={key:1,class:"file_box"},Li=["onClick"],Qi={class:"Signature_box"},Hi={class:"Paid_desc"},Wi={class:"Paid_desc"},qi={class:"Paid_desc"},Gi={class:"paid_desc_box"},Zi={class:"paid_desc"},Ki={key:0},Xi={key:1,class:"opacity"},Ji=["src"],ed=["src"],td={class:"Signature"},ld={key:0,class:"line"},nd=["src"],od={style:{"margin-top":"8px"}},ad={style:{"margin-top":"8px"}},sd={style:{"margin-top":"8px"}},id={style:{"margin-top":"8px"}},dd=X(()=>t("div",{style:{margin:"18px 0 6px 0"}},"Prepaid History",-1)),ud={class:"createOrderobj_box"},rd=X(()=>t("tr",null,[t("td",null,"Check Number"),t("td",null,"Check Amount"),t("td",null,"Has Paid Amount"),t("td",null,"Balance Amount"),t("td",null,"Paid amount")],-1)),_d=["onUpdate:modelValue"],cd={class:"part_out_button"},pd={class:"insufficient"},md=X(()=>t("div",{class:"dialog_tilte"},"payment",-1)),vd={class:"createOrderobj_box"},gd=X(()=>t("td",{width:"30%"},[r("UserName"),t("span",{class:"red"}," * ")],-1)),hd=X(()=>t("td",null,[r("Pay Amount"),t("span",{class:"red"}," * ")],-1)),yd=X(()=>t("td",null,"Collection Time",-1)),bd=X(()=>t("td",null,[r("Pay Method"),t("span",{class:"red"}," * ")],-1)),fd={key:0},kd=X(()=>t("td",null,[r("Check Number"),t("span",{class:"red"}," * ")],-1)),xd=X(()=>t("td",null,"Account ID",-1)),Cd=X(()=>t("td",null,"Comment",-1)),$d={colspan:"5"},Vd={class:"part_out_button"},Dd=X(()=>t("div",{class:"dialog_tilte"},"file list",-1)),wd={style:{"margin-top":"25px"}},Id=["onClick"],Ud=st({name:"/crm/yuyue/invoice2"}),Sd=st({...Ud,props:{str:{type:String,default:""},customer_id:{type:String,default:""},customer_name:{type:String,default:""}},setup(K){const he=K,{searchDetail:S,btnSearchPart:fe,loading:z,small:Nt,selectList:ye,columns:yt,checkList:bt,pagination:wt,handleSizeChange:pe,handleCurrentChange:it,PartList:je,order_date:Le,deliverDialog:De,selectClick:Ue,deliverDataArr:F,btnDeliverConfirm:Se,getBooking:We,getNote:de,addForm:I,InvoiceType:Qe,btnAdd:_t,descriptionData:qe,items:p,during_price_array:Bt,AddItem:Ye,onDelete:Ne,taxData:q,onIs_tax:ne,IncludeTax:N,duringPrice:Te,onSelectLocation:oe,locationDialog:ve,ClientDialog:te,eventIsNumlocation:lt,eventIsNum:Oe,onSelClient:Y,ClientData:ee,locationData:x,btnDelInvoice:ke,sandEmailDialog:Ee,btnSendEmail:It,onSend:Xe,btnPrintPDF:Q,onPrice:dt,openAutograph:ft,signatureCanvas:Rt,signatureDataUrl:jt,saveSignature:kt,clearSignature:Lt,autographDialog:we,signalData:xt,eventSignal:Ct,handleValueFromChild:me,signalUrl:nt,InvoiceDetailDialog:ct,btnDetail:Yt,detailInfo:He,company_info:be,info:L,type:xe,customer_info:$t,addServiceData:Je,changeServic:Gt,licenceDetail:et,CollectionDialog:ut,btnCollection:Ge,CollectionData:ze,bookingPaymentConfirm:Z,addCollectionDialog:le,AddCollect:_,collectionArr:g,btncollectionConfirm:R,btnShowNumber:$,ClinicsList:Ce,btnClinic:Vt,TherapistDate:M,onTherapist:ge,disabledBeforeToday:$e,Therapists:v,onTherapistSelect:C,btnIsPaid:O,btnService:W,payMethodData:Re,AccountData:Ae,isShowFilter:w,btnFilterQuery:pt,optionsFilter:se,eventFilter:Ut,getNoInvoiceBookings:Tt,MatchData:rl,MatchDialog:ml,selectedTr:zl,onSelectItemDate:El,btnExport:Ml,loading1:Cl,btnAddCharge:Qt,ChargeDialog:Ot,ChargeArr:$l,eventCharge:Vl,str1:Dl,loading2:wl,btnBatchPayment:Il,selectableStatus:Ul,uploadSlotFile1:_l,btnFile:Sl,fileArr:vl,onFile:Al,fileDialog:gl,ServiceInvoice:Rl,changeServiceCombina:Ft,onDeleteService:Et,changeServiceItem:Dt,onDeleteI:Pl,loadPartList:Zt,invoiceDate:U}=Wo(he);return al(()=>{}),(Ie,A)=>{const Be=H("el-button"),St=H("el-switch"),mt=H("el-tooltip"),vt=H("el-option"),At=H("el-select"),tt=H("el-date-picker"),h=H("el-upload"),re=H("el-dialog");return n(),o("div",Wa,[qa,t("div",Ga,[t("div",Za,[d(ln,{str:"invoice",customer_id:he.customer_id,onEventFilter:e(Ut),optionsFilter:e(se),isShowFilter:e(w),"onUpdate:isShowFilter":A[0]||(A[0]=c=>T(w)?w.value=c:null)},null,8,["customer_id","onEventFilter","optionsFilter","isShowFilter"])]),he.customer_id?(n(),P(Be,{key:0,plain:"",loading:e(Cl),type:"primary",onClick:A[1]||(A[1]=c=>e(Ml)()),style:{"margin-left":"20px"},size:"small"},{default:u(()=>[r("Export Pdf Zip")]),_:1},8,["loading"])):i("",!0),e(xe)==1||e(xe)==2?(n(),P(Be,{key:1,plain:"",type:"primary",onClick:A[2]||(A[2]=c=>e(_t)()),style:{"margin-left":"20px"},size:"small"},{default:u(()=>[r("Add")]),_:1})):i("",!0),d(St,{style:{"margin-left":"20px"},modelValue:e(S).show_number,"onUpdate:modelValue":A[3]||(A[3]=c=>e(S).show_number=c),"active-text":"invoice number shows ON","inactive-text":"OFF",onChange:e($)},null,8,["modelValue","onChange"]),d(Be,{loading:e(z),plain:"",type:"primary",onClick:A[4]||(A[4]=c=>e(Zt)("Y")),style:{"margin-left":"20px"},size:"small"},{default:u(()=>[r("Export")]),_:1},8,["loading"]),he.customer_id&&e(je).length>0&&e(S).is_batch_invoice==1?(n(),P(Be,{key:2,plain:"",type:"primary",onClick:A[5]||(A[5]=c=>e(Qt)()),size:"small",style:{"margin-left":"20px"}},{default:u(()=>[r("Payment")]),_:1})):i("",!0)]),d(e(xl),{title:"设备列表",selectArr:e(ye),onRefresh:Ie.onSearch},{default:u(({size:c,checkList:_e})=>[d(e(kl),{border:"",onSelect:e(Ue),selectable:e(Ul),"max-height":"500","align-whole":"center",showOverflowTooltip:"","table-layout":"auto",loading:e(z),size:"small",data:e(je),columns:e(yt),checkList:_e,pagination:e(wt),paginationSmall:c==="small","header-cell-style":{background:"var(--el-table-row-hover-bg-color)",color:"var(--el-text-color-primary)"},onSizeChange:e(pe),onCurrentChange:e(it)},{files:u(({row:B})=>[B.file.length>0?(n(),o("div",{key:0,style:{cursor:"pointer"},onClick:gt=>e(Sl)(B.file)}," file["+a(B.file.length)+"] ",9,Ka)):i("",!0)]),IsPaid:u(({row:B})=>[d(St,{modelValue:B.is_paid,"onUpdate:modelValue":gt=>B.is_paid=gt,onChange:gt=>e(O)(gt,B),style:{transform:"scale(0.7)"}},null,8,["modelValue","onUpdate:modelValue","onChange"])]),operation:u(({row:B})=>[t("div",Xa,[d(mt,{content:"Payment",class:"box-item",effect:"light",placement:"top"},{default:u(()=>[B.paid_status!=1&&(e(xe)==1||e(xe)==2)?(n(),o("img",{key:0,onClick:gt=>e(Ge)(B),class:"coupon_icon1",src:Cn,alt:""},null,8,Ja)):i("",!0)]),_:2},1024),d(mt,{content:"Detail",class:"box-item",effect:"light",placement:"top"},{default:u(()=>[t("img",{onClick:gt=>e(Yt)(B),class:"coupon_icon1",src:ol,alt:""},null,8,es)]),_:2},1024),d(mt,{content:"Send Email",class:"box-item",effect:"light",placement:"top"},{default:u(()=>[e(xe)==1||e(xe)==2?(n(),o("img",{key:0,onClick:gt=>e(It)(B),class:"coupon_icon1",src:$n,alt:""},null,8,ts)):i("",!0)]),_:2},1024),d(mt,{content:"Print PDF",class:"box-item",effect:"light",placement:"top"},{default:u(()=>[t("img",{onClick:gt=>e(Q)(B),class:"coupon_icon2",src:Vn,alt:""},null,8,ls)]),_:2},1024),d(mt,{content:" Delete",class:"box-item",effect:"light",placement:"top"},{default:u(()=>[e(xe)==1||e(xe)==2?(n(),o("img",{key:0,onClick:gt=>e(ke)(B),class:"coupon_icon2",src:Dn,alt:""},null,8,ns)):i("",!0)]),_:2},1024)])]),Customer:u(({row:B})=>[r(a(B.customer_first_name)+" "+a(B.customer_last_name),1)]),Booking:u(({row:B})=>[r(a(e(We)(B)),1)]),Note:u(({row:B})=>[r(a(e(de)(B))+" ",1)]),_:2},1032,["onSelect","selectable","loading","data","columns","checkList","pagination","paginationSmall","header-cell-style","onSizeChange","onCurrentChange"])]),_:1},8,["selectArr","onRefresh"]),t("div",os,[e(je).length>0?(n(),P(Be,{key:0,loading:e(wl),plain:"",type:"primary",onClick:A[6]||(A[6]=c=>e(Il)()),style:{"margin-top":"20px"},size:"small"},{default:u(()=>[r("Batch payment")]),_:1},8,["loading"])):i("",!0),t("div",as,[t("div",null,[r(" SUM Total :"),t("span",ss,a(e(S).sub_amount)+"$",1)]),t("div",is,[r(" SUM Paid Amount :"),t("span",ds,a(e(S).sub_pay_amount)+"$",1)])])]),d(re,{style:{width:"80%"},modelValue:e(De),"onUpdate:modelValue":A[18]||(A[18]=c=>T(De)?De.value=c:null),title:""},{default:u(()=>[us,t("table",rs,[t("tr",null,[_s,t("td",null,[d(At,{style:{width:"180px"},clearable:"true",modelValue:e(I).invoice_type,"onUpdate:modelValue":A[7]||(A[7]=c=>e(I).invoice_type=c),filterable:"","allow-create":"","default-first-option":"","reserve-keyword":!1,placeholder:"Please select"},{default:u(()=>[(n(!0),o(V,null,D(e(Qe),c=>(n(),P(vt,{key:c.value,label:c.text,value:c.value},null,8,["label","value"]))),128))]),_:1},8,["modelValue"])])]),t("tr",null,[cs,t("td",null,[d(At,{style:{width:"260px"},modelValue:e(I).Therapist,"onUpdate:modelValue":A[8]||(A[8]=c=>e(I).Therapist=c),"allow-create":"","default-first-option":"","reserve-keyword":!1,placeholder:"Please select",onChange:e(ge)},{default:u(()=>[(n(!0),o(V,null,D(e(M),c=>(n(),P(vt,{key:c.id,label:c.first_name+c.last_name,value:c.id},null,8,["label","value"]))),128))]),_:1},8,["modelValue","onChange"])])]),t("tr",null,[ps,t("td",null,[b(t("input",{"onUpdate:modelValue":A[9]||(A[9]=c=>e(I).Client_name=c),disabled:"",class:"input",type:"text"},null,512),[[k,e(I).Client_name]]),he.customer_id==""?(n(),P(Be,{key:0,type:"primary",style:{"margin-left":"7px"},plain:"",size:"small",onClick:A[10]||(A[10]=c=>e(Y)())},{default:u(()=>[r(" Select ")]),_:1})):i("",!0)])]),t("tr",null,[ms,t("td",null,[d(tt,{style:{width:"180px"},modelValue:e(I).date,"onUpdate:modelValue":A[11]||(A[11]=c=>e(I).date=c),type:"date","value-format":"YYYY-MM-DD",placeholder:"Please select",disabledDate:e($e),onChange:e(U)},null,8,["modelValue","disabledDate","onChange"])])]),e(I).Client_name?(n(),o("tr",vs,[t("td",null,[t("div",gs,[r(" Select Service"),hs,t("img",{onClick:A[12]||(A[12]=c=>e(W)()),class:"usersDetail_icon",src:nn,alt:""})])]),t("td",null,[e(I).invoice_type!="outside"?(n(),P(At,{key:0,style:{width:"180px"},clearable:"true",modelValue:e(I).description_type,"onUpdate:modelValue":A[13]||(A[13]=c=>e(I).description_type=c),filterable:"","allow-create":"","default-first-option":"","reserve-keyword":!1,placeholder:"Please select",onChange:e(Ft)},{default:u(()=>[(n(!0),o(V,null,D(e(Je),c=>(n(),P(vt,{key:c.value,label:c.value,value:c.value},null,8,["label","value"]))),128))]),_:1},8,["modelValue","onChange"])):i("",!0),e(I).invoice_type=="outside"?b((n(),o("input",{key:1,placeholder:"Please enter","onUpdate:modelValue":A[14]||(A[14]=c=>e(I).description_type1=c),class:"input",type:"text"},null,512)),[[k,e(I).description_type1]]):i("",!0)])])):i("",!0),e(I).Client_name?(n(),o("tr",ys,[bs,t("td",null,[(n(!0),o(V,null,D(e(Rl),(c,_e)=>(n(),o("div",{class:"Service_Invoice_box",key:_e},[t("div",fs,[t("table",ks,[t("tr",null,[xs,t("td",null,a(c.invoice_number),1)]),t("tr",null,[Cs,t("td",null,[e(I).invoice_type!="outside"?(n(),P(At,{key:0,disabled:"",style:{width:"180px"},clearable:"true",modelValue:c.service_name,"onUpdate:modelValue":B=>c.service_name=B,filterable:"","allow-create":"","default-first-option":"","reserve-keyword":!1,onChange:B=>e(Dt)(B,c),placeholder:"Please select"},{default:u(()=>[(n(!0),o(V,null,D(e(Je),B=>(n(),P(vt,{key:B.value,label:B.value,value:B.value},null,8,["label","value"]))),128))]),_:2},1032,["modelValue","onUpdate:modelValue","onChange"])):i("",!0),e(I).invoice_type=="outside"?b((n(),o("input",{key:1,placeholder:"Please enter","onUpdate:modelValue":B=>c.description_outside=B,class:"input",type:"text"},null,8,$s)),[[k,c.description_outside]]):i("",!0)])]),e(I).invoice_type=="third_Pay"||e(I).invoice_type=="gift"?(n(),o("tr",Vs,[Ds,t("td",null,[b(t("textarea",{class:"textarea_input",placeholder:"Please enter","onUpdate:modelValue":B=>c.receive_message=B,maxlength:"600"},null,8,ws),[[k,c.receive_message]])])])):i("",!0),t("tr",null,[Is,t("td",null,[r(" + Tax:"),d(St,{onChange:B=>e(ne)(B,c),style:{margin:"0 50px 0 0"},modelValue:c.is_tax,"onUpdate:modelValue":B=>c.is_tax=B},null,8,["onChange","modelValue","onUpdate:modelValue"]),c.is_tax?(n(),o("span",Us,"Include Tax ")):i("",!0),c.is_tax?(n(),P(At,{key:1,style:{width:"130px","margin-left":"4px"},clearable:"true",modelValue:c.include_tax,"onUpdate:modelValue":B=>c.include_tax=B,onChange:B=>e(N)(B,c),filterable:"","allow-create":"","default-first-option":"","reserve-keyword":!1,placeholder:"Please select"},{default:u(()=>[(n(!0),o(V,null,D(e(q),B=>(n(),P(vt,{key:B.value,label:B.text,value:B.value},null,8,["label","value"]))),128))]),_:2},1032,["modelValue","onUpdate:modelValue","onChange"])):i("",!0)])]),t("tr",null,[Ss,t("td",null,[(n(!0),o(V,null,D(c.service_detail,(B,gt)=>(n(),o("div",{key:B.id,class:"items_box"},[t("div",null," Booking#:"+a(B.booking_order_no?B.booking_order_no:"no"),1),d(Be,{link:"",type:"primary",onClick:ce=>e(Tt)(c,B),style:{margin:"0 10px"}},{default:u(()=>[r("Match")]),_:2},1032,["onClick"]),As,d(tt,{style:{width:"180px"},modelValue:B.treatment_date,"onUpdate:modelValue":ce=>B.treatment_date=ce,type:"date","value-format":"YYYY-MM-DD",placeholder:"Please select",disabledDate:e($e)},null,8,["modelValue","onUpdate:modelValue","disabledDate"]),Ps,d(At,{style:{width:"180px"},clearable:"true",modelValue:B.spend_time,"onUpdate:modelValue":ce=>B.spend_time=ce,filterable:"","allow-create":"","default-first-option":"","reserve-keyword":!1,placeholder:"Please select",onChange:ce=>e(Te)(ce,c,B)},{default:u(()=>[(n(!0),o(V,null,D(B.during_price_json,(ce,dn)=>(n(),P(vt,{key:ce.value,label:ce.text,value:ce.value},null,8,["label","value"]))),128))]),_:2},1032,["modelValue","onUpdate:modelValue","onChange"]),e(I).invoice_type!="gift"?(n(),o("div",Ns," Price: ")):i("",!0),e(I).invoice_type!="gift"?b((n(),o("input",{key:1,style:{width:"100px"},"onUpdate:modelValue":ce=>B.price=ce,type:"text",class:"input",onInput:ce=>e(dt)(c)},null,40,Ts)),[[k,B.price]]):i("",!0),e(I).invoice_type!="gift"?(n(),o("span",Es,"($)")):i("",!0),gt>0?(n(),P(Be,{key:3,link:"",type:"danger",onClick:ce=>e(Pl)(c,B),style:{"margin-left":"20px"}},{default:u(()=>[r("Delete")]),_:2},1032,["onClick"])):i("",!0)]))),128)),t("div",Ms,[d(Be,{size:"small",plain:"",type:"primary",onClick:B=>e(Ye)(c)},{default:u(()=>[r("Add Item")]),_:2},1032,["onClick"]),e(I).invoice_type!="gift"?(n(),o("div",Bs,[c.is_tax?(n(),o("span",Ys,"HST:"+a(c.hstValue),1)):i("",!0),t("span",Os,"Total:"+a(c.total),1)])):i("",!0)]),Fs])])]),t("div",zs,[t("div",Rs," Name:"+a(c.licence_name?c.licence_name:""),1),t("div",js,a(c.licence_description?c.licence_description:""),1),t("div",Ls,a(c.licence_title?c.licence_title:"")+": "+a(c.licence_number?c.licence_number:""),1)])])]))),128))])])):i("",!0),t("tr",null,[Qs,t("td",Hs,[d(h,{ref:"upload",class:"avatar_uploader",action:e(Ol),"on-exceed":Ie.handleExceed,"on-success":e(_l),"on-error":Ie.handleUploadError,"on-change":Ie.handleChangePic},{default:u(()=>[d(Be,{style:{margin:"0 10px 0 0"},size:"small",plain:"",type:"primary"},{default:u(()=>[r("Upload")]),_:1})]),_:1},8,["action","on-exceed","on-success","on-error","on-change"]),(n(!0),o(V,null,D(e(I).files1,(c,_e)=>(n(),o("div",{class:"files1_desc",key:_e},a(c),1))),128))])])]),t("div",Ws,[t("div",qs,[r(" Signature: "),b(t("input",{placeholder:"Please enter","onUpdate:modelValue":A[15]||(A[15]=c=>e(I).signal_desc=c),class:"Signature_input",type:"text"},null,512),[[k,e(I).signal_desc]]),t("div",Gs,[e(I).signal_image?(n(),o("img",{key:0,class:"signal_url_box",src:e(I).signal_image,alt:""},null,8,Zs)):i("",!0)]),t("div",{class:"Manualsignature",onClick:A[16]||(A[16]=c=>e(ft)())},"signature")])]),t("div",Ks,[d(Be,{loading:e(z),type:"primary",onClick:A[17]||(A[17]=c=>e(Se)())},{default:u(()=>[r("Submit")]),_:1},8,["loading"])])]),_:1},8,["modelValue"]),d(re,{style:{width:"45%"},modelValue:e(ml),"onUpdate:modelValue":A[19]||(A[19]=c=>T(ml)?ml.value=c:null),title:""},{default:u(()=>[Xs,t("table",Js,[ei,(n(!0),o(V,null,D(e(rl),(c,_e)=>(n(),o("tr",{key:c.id},[t("td",ti,[t("div",{class:E(["selected",{selected_active:e(I).is_Match==_e}]),onClick:B=>e(zl)(c,_e)},[t("div",{class:E(["selected_min",{selected_min_active:e(I).is_Match==_e}])},null,2)],10,li)]),t("td",ni,a(_e+1),1),t("td",null,a(c.booking_order_no),1),t("td",null,a(c.service_date.slice(0,10)),1),t("td",null,a(c.begin_time)+"~"+a(c.end_time),1),t("td",null,a(c.duration)+" (Min)",1),t("td",null,a(c.amount)+" ($)",1)]))),128))])]),_:1},8,["modelValue"]),d(re,{style:{width:"78%"},modelValue:e(te),"onUpdate:modelValue":A[21]||(A[21]=c=>T(te)?te.value=c:null),title:""},{default:u(()=>[d(pl,{onEventIsNum:e(Oe),str:1,ClientData:e(ee),ClientDialog:e(te),"onUpdate:ClientDialog":A[20]||(A[20]=c=>T(te)?te.value=c:null)},null,8,["onEventIsNum","ClientData","ClientDialog"])]),_:1},8,["modelValue"]),d(re,{style:{width:"78%"},modelValue:e(ve),"onUpdate:modelValue":A[23]||(A[23]=c=>T(ve)?ve.value=c:null),title:""},{default:u(()=>[d(Tl,{onEventIsNumlocation:e(lt),note:2,locationData:e(x),locationDialog:e(ve),"onUpdate:locationDialog":A[22]||(A[22]=c=>T(ve)?ve.value=c:null)},null,8,["onEventIsNumlocation","locationData","locationDialog"])]),_:1},8,["modelValue"]),t("div",oi,[d(re,{style:{width:"78%"},modelValue:e(Ee),"onUpdate:modelValue":A[26]||(A[26]=c=>T(Ee)?Ee.value=c:null),title:""},{default:u(()=>[t("div",null,"Email to : "+a(e(I).customArr.email),1),t("div",ai," Dear "+a(e(I).customArr.customer_first_name)+" "+a(e(I).customArr.customer_last_name)+" : ",1),b(t("textarea",{class:"textarea_input1",placeholder:"Please enter","onUpdate:modelValue":A[24]||(A[24]=c=>e(I).email_content=c)},null,512),[[k,e(I).email_content]]),t("div",si,[ii,t("div",null,a(e(I).fileName),1)]),t("div",di,[d(Be,{type:"primary",onClick:A[25]||(A[25]=c=>e(Xe)())},{default:u(()=>[r("send")]),_:1})])]),_:1},8,["modelValue"])]),d(re,{style:{width:"1000px","max-height":"100%"},modelValue:e(we),"onUpdate:modelValue":A[29]||(A[29]=c=>T(we)?we.value=c:null),title:""},{default:u(()=>[d(on,{onChildToParent:e(me),onEventSignal:e(Ct),signalData:e(xt),signalUrl:e(nt),"onUpdate:signalUrl":A[27]||(A[27]=c=>T(nt)?nt.value=c:null),autographDialog:e(we),"onUpdate:autographDialog":A[28]||(A[28]=c=>T(we)?we.value=c:null)},null,8,["onChildToParent","onEventSignal","signalData","signalUrl","autographDialog"])]),_:1},8,["modelValue"]),d(re,{style:{width:"1000px","max-height":"100%"},modelValue:e(ct),"onUpdate:modelValue":A[31]||(A[31]=c=>T(ct)?ct.value=c:null),title:""},{default:u(()=>[ui,t("div",ri,[t("div",_i,[ci,t("div",pi,[t("div",mi,a(e(be).title),1),t("div",vi,a(e(be).number_companyname),1),t("div",null,a(e(be).address),1),t("div",null,a(e(be).city)+" "+a(e(be).state),1),t("div",null,a(e(be).country)+" "+a(e(be).postal),1),t("div",null,"Tel:"+a(e(be).phone),1),t("div",null,"HST#:"+a(e(be).hst),1)])]),gi,t("div",hi,[t("div",yi,"Name:"+a(e($t).show1),1),e(S).show_number?(n(),o("div",bi," Invoice Number:"+a(e(L).invoice_number),1)):i("",!0),e(S).show_number?i("",!0):(n(),o("div",fi," Invoice Date:"+a(e(L).invoice_date),1))]),t("div",ki,[t("div",xi,"Address:"+a(e($t).show2),1),e(S).show_number?(n(),o("div",Ci," Invoice Date:"+a(e(L).invoice_date),1)):i("",!0)]),t("div",$i,[t("table",Vi,[Di,(n(!0),o(V,null,D(e(He),(c,_e)=>(n(),o("tr",{key:_e},[t("td",null,a(c.treatment_date),1),t("td",null,a(c.description_type),1),t("td",null,a(c.spend_time)+"Min",1),t("td",null,a(c.price),1),t("td",null,a(c.price),1)]))),128)),e(L).total_amount>0?(n(),o("tr",wi,[Ii,Ui,Si,Ai,t("td",null,a(e(L).total_price),1)])):i("",!0),e(L).total_amount>0?(n(),o("tr",Pi,[Ni,Ti,Ei,Mi,t("td",null,a(e(L).tax_amount),1)])):i("",!0),e(L).total_amount>0?(n(),o("tr",Bi,[Yi,Oi,Fi,zi,t("td",null,a(e(L).total_amount),1)])):i("",!0)])]),e(L).receive_message?(n(),o("div",Ri," Receive:"+a(e(L).receive_message),1)):i("",!0),e(I).fileView.length>0?(n(),o("div",ji,[r(" file : "),(n(!0),o(V,null,D(e(I).fileView,(c,_e)=>(n(),o("div",{class:"file_desc1",onClick:B=>e(Al)(c),key:_e},a(c),9,Li))),128))])):i("",!0),t("div",Qi,[t("div",Hi,a(e(et).name),1),t("div",Wi,a(e(et).Descrption),1),t("div",qi,a(e(et).register_no),1)]),t("div",Gi,[t("div",Zi,[e(L).has_desc==1?(n(),o("span",Ki,a(e(L).has_desc_show),1)):(n(),o("span",Xi,a(e(L).has_desc_show),1))]),e(I).is_use_chapter?(n(),o("img",{key:0,class:"chapterimage",src:e(I).chapter_image,alt:""},null,8,Ji)):i("",!0),e(L).has_sign==1?(n(),o("img",{key:1,class:"paid_icon",src:e(yn)+"/paid.png",alt:""},null,8,ed)):i("",!0)]),t("div",td,[r(" Signature: "),(e(L).signal_image==""||e(L).signal_image==null)&&(e(L).signal_desc==""||e(L).signal_desc==null)?(n(),o("div",ld)):i("",!0),e(L).signal_image?(n(),o("img",{key:1,src:e(L).signal_image,class:"Signature_img",mode:"",alt:""},null,8,nd)):i("",!0),e(L).signal_desc&&(e(L).signal_image==""||e(L).signal_image==null)?b((n(),o("input",{key:2,disabled:"",placeholder:"Please enter","onUpdate:modelValue":A[30]||(A[30]=c=>e(L).signal_desc=c),class:"signal_desc",type:"text"},null,512)),[[k,e(L).signal_desc]]):i("",!0)])])]),_:1},8,["modelValue"]),d(re,{style:{width:"60%"},modelValue:e(ut),"onUpdate:modelValue":A[34]||(A[34]=c=>T(ut)?ut.value=c:null),title:""},{default:u(()=>[t("div",null,"Invoice Number : "+a(e(I).Invoice_Charge_Number),1),t("div",od," Customer Name : "+a(e(I).Customer_Name),1),t("div",ad," Invoice Total Charge : "+a(e(I).Invoice_Total_Charge)+" $ ",1),t("div",sd," Has Paid Amount : "+a(e(I).Has_Paid_Amount)+" $ ",1),t("div",id," Need Charge Amount : "+a(e(I).Need_Charge_Amount)+" $ ",1),dd,t("table",ud,[rd,(n(!0),o(V,null,D(e(ze),(c,_e)=>(n(),o("tr",{key:c.id},[t("td",null,a(c.cheque_number),1),t("td",null,a(c.pay_amount)+" $",1),t("td",null,a(c.has_pay_amount)+" $",1),t("td",null,a(c.remain_amount)+" $",1),t("td",null,[b(t("input",{"onUpdate:modelValue":B=>c.paid_amount=B,class:"input",type:"text"},null,8,_d),[[k,c.paid_amount]]),r(" $ ")])]))),128))]),t("div",cd,[d(Be,{type:"primary",onClick:A[32]||(A[32]=c=>e(Z)())},{default:u(()=>[r("Submit")]),_:1})]),t("div",pd,[r(" The balance is insufficient,please pay "),d(Be,{link:"",type:"primary",style:{"margin-left":"8px"},onClick:A[33]||(A[33]=c=>e(_)())},{default:u(()=>[r("Payment")]),_:1})])]),_:1},8,["modelValue"]),d(re,{style:{width:"50%"},modelValue:e(le),"onUpdate:modelValue":A[44]||(A[44]=c=>T(le)?le.value=c:null),title:""},{default:u(()=>[md,t("table",vd,[t("tr",null,[gd,t("td",null,[b(t("input",{disabled:"",class:"input2","onUpdate:modelValue":A[35]||(A[35]=c=>e(I).Customer_Name=c),type:"text"},null,512),[[k,e(I).Customer_Name]])])]),t("tr",null,[hd,t("td",null,[b(t("input",{"onUpdate:modelValue":A[36]||(A[36]=c=>e(g).pay_amount=c),class:"input2",type:"text"},null,512),[[k,e(g).pay_amount]])])]),t("tr",null,[yd,t("td",null,[d(tt,{style:{width:"272px"},modelValue:e(g).time,"onUpdate:modelValue":A[37]||(A[37]=c=>e(g).time=c),type:"date","value-format":"YYYY-MM-DD",placeholder:"Please select"},null,8,["modelValue"])])]),t("tr",null,[bd,t("td",null,[d(At,{clearable:"true",style:{width:"272px",margin:"0 10px 0 0"},modelValue:e(g).pay_method,"onUpdate:modelValue":A[38]||(A[38]=c=>e(g).pay_method=c),filterable:"","allow-create":"","default-first-option":"","reserve-keyword":!1,placeholder:"Please select",onChange:Ie.onPayMethod},{default:u(()=>[(n(!0),o(V,null,D(e(Re),c=>(n(),P(vt,{key:c.id,label:c.text,value:c.value},null,8,["label","value"]))),128))]),_:1},8,["modelValue","onChange"]),e(g).pay_method=="Other"?b((n(),o("input",{key:0,"onUpdate:modelValue":A[39]||(A[39]=c=>e(g).other=c),class:"input2",style:{height:"32px"},type:"text"},null,512)),[[k,e(g).other]]):i("",!0)])]),e(g).pay_method=="Cheque"?(n(),o("tr",fd,[kd,t("td",null,[b(t("input",{"onUpdate:modelValue":A[40]||(A[40]=c=>e(g).cheque_number=c),class:"input2",type:"text"},null,512),[[k,e(g).cheque_number]])])])):i("",!0),t("tr",null,[xd,t("td",null,[d(At,{clearable:"true",style:{width:"272px",margin:"0 10px 0 0"},modelValue:e(g).account_id,"onUpdate:modelValue":A[41]||(A[41]=c=>e(g).account_id=c),filterable:"","allow-create":"","default-first-option":"","reserve-keyword":!1,placeholder:"Please select"},{default:u(()=>[(n(!0),o(V,null,D(e(Ae),c=>(n(),P(vt,{key:c.id,label:c.text,value:c.value},null,8,["label","value"]))),128))]),_:1},8,["modelValue"])])]),t("tr",null,[Cd,t("td",$d,[b(t("textarea",{class:"textarea_input",placeholder:"Please enter","onUpdate:modelValue":A[42]||(A[42]=c=>e(g).content=c),maxlength:"600"},null,512),[[k,e(g).content]])])])]),t("div",Vd,[d(Be,{loading:e(z),type:"primary",onClick:A[43]||(A[43]=c=>e(R)())},{default:u(()=>[r("Submit")]),_:1},8,["loading"])])]),_:1},8,["modelValue"]),d(re,{style:{width:"76%"},modelValue:e(Ot),"onUpdate:modelValue":A[46]||(A[46]=c=>T(Ot)?Ot.value=c:null),title:""},{default:u(()=>[d(Fl,{onEventCharge:e(Vl),str:e(Dl),ChargeArr:e($l),ChargeDialog:e(Ot),"onUpdate:ChargeDialog":A[45]||(A[45]=c=>T(Ot)?Ot.value=c:null)},null,8,["onEventCharge","str","ChargeArr","ChargeDialog"])]),_:1},8,["modelValue"]),d(re,{style:{width:"50%"},modelValue:e(gl),"onUpdate:modelValue":A[47]||(A[47]=c=>T(gl)?gl.value=c:null),title:""},{default:u(()=>[Dd,t("div",wd,[(n(!0),o(V,null,D(e(vl),(c,_e)=>(n(),o("div",{class:"file_desc",onClick:B=>e(Al)(c),key:_e},a(c),9,Id))),128))])]),_:1},8,["modelValue"])])}}});const Ad=dl(Sd,[["__scopeId","data-v-0fd8198f"]]),J=K=>(sl("data-v-dc0f4736"),K=K(),il(),K),Pd={class:"main"},Nd=J(()=>t("div",null,null,-1)),Td={class:"dialog_procure_box",style:{"margin-top":"0px"}},Ed=["onClick"],Md={class:"operation_box"},Bd=["onClick"],Yd=["onClick"],Od=["onClick"],Fd=["onClick"],zd=["onClick"],Rd={class:"batch_payment"},jd={class:"sub_amount_box"},Ld={class:"red10"},Qd={style:{"margin-left":"25px"}},Hd={class:"red10"},Wd=J(()=>t("div",{class:"dialog_tilte"},"Add Invoice",-1)),qd={class:"createOrderobj_box"},Gd=J(()=>t("td",{width:"15%"},"Invoice Type",-1)),Zd=J(()=>t("td",null,[r("Location"),t("span",{class:"red"}," * ")],-1)),Kd=J(()=>t("td",null,[r("Client"),t("span",{class:"red"}," * ")],-1)),Xd=J(()=>t("td",null,[r("Invoice Date"),t("span",{class:"red"}," * ")],-1)),Jd={key:0},eu={style:{display:"flex"}},tu=J(()=>t("span",{class:"red"}," * ",-1)),lu={key:1},nu=J(()=>t("td",null,"Detail",-1)),ou={class:"Service_Invoice_box1"},au={class:"createOrderobj_box_child"},su=J(()=>t("td",{width:"15%"},"Invoice Number",-1)),iu=J(()=>t("td",null,"Service",-1)),du=["onUpdate:modelValue"],uu={key:0},ru=J(()=>t("td",null,"Receive",-1)),_u=["onUpdate:modelValue"],cu=J(()=>t("td",null,"Tax",-1)),pu={key:0},mu=J(()=>t("td",null,[r("Item"),t("span",{class:"red"}," * ")],-1)),vu=J(()=>t("div",null,"Date:",-1)),gu=J(()=>t("div",{style:{"margin-left":"10px"}},"Duration:",-1)),hu={key:0,style:{"margin-left":"10px"}},yu=["onUpdate:modelValue","onInput"],bu={key:2,style:{"margin-left":"5px"}},fu={class:"Add_Item"},ku={key:0},xu={key:0},Cu={style:{"margin-left":"20px"}},$u=J(()=>t("div",{class:"Match_no"}," (If you have not match a Booking, System will automatically generate a virtual Booking.) ",-1)),Vu={class:"Signature_box",style:{width:"80%"}},Du={class:"Paid_desc"},wu={class:"Paid_desc"},Iu={class:"Paid_desc"},Uu=J(()=>t("td",null,"File",-1)),Su={class:"payment_box"},Au={key:0,class:"Signature_box1"},Pu={class:"signal_image_box"},Nu={class:"signal_url_box1"},Tu=["src"],Eu={key:1,class:"part_out_button"},Mu=J(()=>t("div",{class:"dialog_tilte"},"Booking Match",-1)),Bu={class:"createOrderobj_box"},Yu=J(()=>t("tr",null,[t("td",{width:"5%"}),t("td",{width:"5%"},"Index"),t("td",null,"Booking#"),t("td",null,"Date"),t("td",null,"Time"),t("td",null,"Duration"),t("td",null,"Amount")],-1)),Ou={width:"5%"},Fu=["onClick"],zu={width:"5%"},Ru={class:"add_part_dialog_box"},ju={class:"Email_box"},Lu={class:"Email_box",style:{"margin-top":"120px"}},Qu=J(()=>t("img",{class:"_attachment",src:an,alt:""},null,-1)),Hu={class:"part_out_button"},Wu=J(()=>t("div",{class:"dialog_tilte"},"Invoice Detail",-1)),qu={class:"Invoice_Detail_box"},Gu={class:"INVOICE_box"},Zu=J(()=>t("div",{class:"INVOICE_box_left"},"INVOICE",-1)),Ku={class:"INVOICE_box_right"},Xu={class:"Relaxation"},Ju={style:{"font-size":"29rpx"}},er=J(()=>t("div",{class:"Name_box_box"},[t("div",{class:"Name_box"},"Bill To:"),t("div",{class:"Name_box"})],-1)),tr={class:"Name_box_box"},lr={class:"Name_box"},nr={key:0,class:"Name_box"},or={key:1,class:"Name_box"},ar={class:"Name_box_box"},sr={class:"Name_box"},ir={key:0,class:"Name_box"},dr={class:"uni_table_box"},ur={class:"createOrderobj_box"},rr=J(()=>t("tr",{class:"Duration_title_box"},[t("td",null,"Date of Treatment"),t("td",null,"Description"),t("td",null,"Duration"),t("td",null,"Price ($)"),t("td",null,"Amount ($)")],-1)),_r={key:0},cr=J(()=>t("td",null,null,-1)),pr=J(()=>t("td",null,null,-1)),mr=J(()=>t("td",null,null,-1)),vr=J(()=>t("td",null,"Subtotal:",-1)),gr={key:1},hr=J(()=>t("td",null,null,-1)),yr=J(()=>t("td",null,null,-1)),br=J(()=>t("td",null,null,-1)),fr=J(()=>t("td",null,"HST:",-1)),kr={key:2},xr=J(()=>t("td",null,null,-1)),Cr=J(()=>t("td",null,null,-1)),$r=J(()=>t("td",null,null,-1)),Vr=J(()=>t("td",null,"Total:",-1)),Dr={key:0,class:"receive_message"},wr={key:1,class:"file_box"},Ir=["onClick"],Ur={class:"Signature_box"},Sr={class:"Paid_desc"},Ar={class:"Paid_desc"},Pr={class:"Paid_desc"},Nr={class:"paid_desc_box"},Tr={class:"paid_desc"},Er={key:0},Mr={key:1,class:"opacity"},Br=["src"],Yr=["src"],Or={class:"Signature"},Fr={key:0,class:"line"},zr=["src"],Rr={style:{"margin-top":"8px"}},jr={style:{"margin-top":"8px"}},Lr={style:{"margin-top":"8px"}},Qr={style:{"margin-top":"8px"}},Hr=J(()=>t("div",{style:{margin:"18px 0 6px 0"}},"Prepaid History",-1)),Wr={class:"createOrderobj_box"},qr=J(()=>t("tr",null,[t("td",null,"Check Number"),t("td",null,"Check Amount"),t("td",null,"Has Paid Amount"),t("td",null,"Balance Amount"),t("td",null,"Paid amount")],-1)),Gr=["onUpdate:modelValue"],Zr={class:"part_out_button"},Kr={class:"insufficient"},Xr=J(()=>t("div",{class:"dialog_tilte"},"payment",-1)),Jr={class:"createOrderobj_box"},e_=J(()=>t("td",{width:"30%"},[r("UserName"),t("span",{class:"red"}," * ")],-1)),t_=J(()=>t("td",null,[r("Pay Amount"),t("span",{class:"red"}," * ")],-1)),l_=J(()=>t("td",null,"Collection Time",-1)),n_=J(()=>t("td",null,[r("Pay Method"),t("span",{class:"red"}," * ")],-1)),o_={key:0},a_=J(()=>t("td",null,[r("Check Number"),t("span",{class:"red"}," * ")],-1)),s_=J(()=>t("td",null,"Account ID",-1)),i_=J(()=>t("td",null,"Comment",-1)),d_={colspan:"5"},u_={class:"part_out_button"},r_=J(()=>t("div",{class:"dialog_tilte"},"file list",-1)),__={style:{"margin-top":"25px"}},c_=["onClick"],p_=st({name:"/crm/yuyue/invoice"}),m_=st({...p_,props:{str:{type:String,default:""},customer_id:{type:String,default:""},customer_name:{type:String,default:""}},setup(K){const he=K,{searchDetail:S,btnSearchPart:fe,loading:z,small:Nt,selectList:ye,columns:yt,checkList:bt,pagination:wt,handleSizeChange:pe,handleCurrentChange:it,PartList:je,order_date:Le,deliverDialog:De,selectClick:Ue,deliverDataArr:F,btnDeliverConfirm:Se,getBooking:We,getNote:de,addForm:I,InvoiceType:Qe,btnAdd:_t,descriptionData:qe,items:p,during_price_array:Bt,AddItem:Ye,onDelete:Ne,taxData:q,onIs_tax:ne,IncludeTax:N,duringPrice:Te,onSelectLocation:oe,locationDialog:ve,ClientDialog:te,eventIsNumlocation:lt,eventIsNum:Oe,onSelClient:Y,ClientData:ee,locationData:x,btnDelInvoice:ke,sandEmailDialog:Ee,btnSendEmail:It,onSend:Xe,btnPrintPDF:Q,onPrice:dt,openAutograph:ft,signatureCanvas:Rt,signatureDataUrl:jt,saveSignature:kt,clearSignature:Lt,autographDialog:we,signalData:xt,eventSignal:Ct,handleValueFromChild:me,signalUrl:nt,InvoiceDetailDialog:ct,btnDetail:Yt,detailInfo:He,company_info:be,info:L,type:xe,customer_info:$t,addServiceData:Je,changeServic:Gt,licenceDetail:et,CollectionDialog:ut,btnCollection:Ge,CollectionData:ze,bookingPaymentConfirm:Z,addCollectionDialog:le,AddCollect:_,collectionArr:g,btncollectionConfirm:R,btnShowNumber:$,disabledBeforeToday:Ce,onSearch:Vt,clinicData:M,onClinicData:ge,btnIsPaid:$e,btnGuide:v,btnService:C,payMethodData:O,AccountData:W,isShowFilter:Re,btnFilterQuery:Ae,optionsFilter:w,eventFilter:pt,getNoInvoiceBookings:se,MatchData:Ut,MatchDialog:Tt,selectedTr:rl,btnMatchConfirm:ml,onSelectItemDate:zl,btnExport:El,loading1:Ml,btnAddCharge:Cl,ChargeDialog:Qt,ChargeArr:Ot,eventCharge:$l,str1:Vl,btnBatchPayment:Dl,loading2:wl,uploadSlotFile1:Il,btnFile:Ul,fileArr:_l,onFile:Sl,fileDialog:vl,ServiceInvoice:Al,changeServiceCombina:gl,onDeleteService:Rl,changeServiceItem:Ft,onDeleteI:Et,loadPartList:Dt,invoiceDate:Pl}=Ko(he);return al(()=>{}),(Zt,U)=>{const Ie=H("el-button"),A=H("el-switch"),Be=H("el-tooltip"),St=H("el-option"),mt=H("el-select"),vt=H("el-date-picker"),At=H("el-upload"),tt=H("el-dialog");return n(),o("div",Pd,[Nd,t("div",Td,[d(ln,{str:"invoice",onEventFilter:e(pt),optionsFilter:e(w),isShowFilter:e(Re),"onUpdate:isShowFilter":U[0]||(U[0]=h=>T(Re)?Re.value=h:null)},null,8,["onEventFilter","optionsFilter","isShowFilter"]),he.customer_id?(n(),P(Ie,{key:0,plain:"",loading:e(Ml),type:"primary",onClick:U[1]||(U[1]=h=>e(El)()),size:"small",style:{"margin-left":"20px"}},{default:u(()=>[r("Export Pdf Zip")]),_:1},8,["loading"])):i("",!0),e(xe)==1||e(xe)==2||e(xe)==6?(n(),P(Ie,{key:1,size:"small",plain:"",type:"primary",onClick:U[2]||(U[2]=h=>e(_t)()),style:{"margin-left":"20px"}},{default:u(()=>[r("Add")]),_:1})):i("",!0),d(A,{style:{"margin-left":"20px"},modelValue:e(S).show_number,"onUpdate:modelValue":U[3]||(U[3]=h=>e(S).show_number=h),"active-text":"invoice number shows ON","inactive-text":"OFF",onChange:e($)},null,8,["modelValue","onChange"]),d(Ie,{plain:"",type:"primary",onClick:U[4]||(U[4]=h=>e(v)()),style:{"margin-left":"20px"},size:"small"},{default:u(()=>[r("Guide")]),_:1}),d(Ie,{loading:e(z),plain:"",type:"primary",onClick:U[5]||(U[5]=h=>e(Dt)("Y")),style:{"margin-left":"20px"},size:"small"},{default:u(()=>[r("Export")]),_:1},8,["loading"]),he.customer_id&&e(je).length>0&&e(S).is_batch_invoice==1?(n(),P(Ie,{key:2,plain:"",type:"primary",onClick:U[6]||(U[6]=h=>e(Cl)()),style:{"margin-left":"20px"},size:"small"},{default:u(()=>[r("Payment")]),_:1})):i("",!0)]),d(e(xl),{title:"设备列表",selectArr:e(ye),onRefresh:e(Vt)},{default:u(({size:h,checkList:re})=>[d(e(kl),{border:"",onSelect:e(Ue),"max-height":"500","align-whole":"center",showOverflowTooltip:"","table-layout":"auto",loading:e(z),size:"small",data:e(je),columns:e(yt),checkList:re,pagination:e(wt),paginationSmall:h==="small","header-cell-style":{background:"var(--el-table-row-hover-bg-color)",color:"var(--el-text-color-primary)"},onSizeChange:e(pe),onCurrentChange:e(it)},{IsPaid:u(({row:c})=>[d(A,{modelValue:c.is_paid,"onUpdate:modelValue":_e=>c.is_paid=_e,onChange:_e=>e($e)(_e,c),style:{transform:"scale(0.7)"}},null,8,["modelValue","onUpdate:modelValue","onChange"])]),files:u(({row:c})=>[c.file.length>0?(n(),o("div",{key:0,style:{cursor:"pointer"},onClick:_e=>e(Ul)(c.file)}," file["+a(c.file.length)+"] ",9,Ed)):i("",!0)]),operation:u(({row:c})=>[t("div",Md,[d(Be,{content:"Payment",class:"box-item",effect:"light",placement:"top"},{default:u(()=>[c.paid_status!=1&&(e(xe)==1||e(xe)==2)?(n(),o("img",{key:0,onClick:_e=>e(Ge)(c),class:"coupon_icon1",src:Cn,alt:""},null,8,Bd)):i("",!0)]),_:2},1024),d(Be,{content:"Detail",class:"box-item",effect:"light",placement:"top"},{default:u(()=>[t("img",{onClick:_e=>e(Yt)(c),class:"coupon_icon1",src:ol,alt:""},null,8,Yd)]),_:2},1024),d(Be,{content:"Send Email",class:"box-item",effect:"light",placement:"top"},{default:u(()=>[e(xe)==1||e(xe)==2?(n(),o("img",{key:0,onClick:_e=>e(It)(c),class:"coupon_icon1",src:$n,alt:""},null,8,Od)):i("",!0)]),_:2},1024),d(Be,{content:"Print PDF",class:"box-item",effect:"light",placement:"top"},{default:u(()=>[t("img",{onClick:_e=>e(Q)(c),class:"coupon_icon2",src:Vn,alt:""},null,8,Fd)]),_:2},1024),d(Be,{content:" Delete",class:"box-item",effect:"light",placement:"top"},{default:u(()=>[e(xe)==1||e(xe)==2?(n(),o("img",{key:0,onClick:_e=>e(ke)(c),class:"coupon_icon2",src:Dn,alt:""},null,8,zd)):i("",!0)]),_:2},1024)])]),Origin:u(({row:c})=>[r(a(c.clinic_name?c.clinic_name:"self"),1)]),Customer:u(({row:c})=>[r(a(c.customer_first_name)+" "+a(c.customer_last_name),1)]),Booking:u(({row:c})=>[r(a(e(We)(c)),1)]),Note:u(({row:c})=>[r(a(e(de)(c))+" ",1)]),_:2},1032,["onSelect","loading","data","columns","checkList","pagination","paginationSmall","header-cell-style","onSizeChange","onCurrentChange"])]),_:1},8,["selectArr","onRefresh"]),t("div",Rd,[e(je).length>0?(n(),P(Ie,{key:0,loading:e(wl),plain:"",type:"primary",onClick:U[7]||(U[7]=h=>e(Dl)()),style:{"margin-top":"20px"},size:"small"},{default:u(()=>[r("Batch payment")]),_:1},8,["loading"])):i("",!0),t("div",jd,[t("div",null,[r(" SUM Total :"),t("span",Ld,a(e(S).sub_amount)+"$",1)]),t("div",Qd,[r(" SUM Paid Amount :"),t("span",Hd,a(e(S).sub_pay_amount)+"$",1)])])]),d(tt,{style:{width:"80%"},draggable:"",modelValue:e(De),"onUpdate:modelValue":U[20]||(U[20]=h=>T(De)?De.value=h:null),title:""},{default:u(()=>[Wd,t("table",qd,[t("tr",null,[Gd,t("td",null,[d(mt,{style:{width:"180px"},clearable:"true",modelValue:e(I).invoice_type,"onUpdate:modelValue":U[8]||(U[8]=h=>e(I).invoice_type=h),filterable:"","allow-create":"","default-first-option":"","reserve-keyword":!1,placeholder:"Please select"},{default:u(()=>[(n(!0),o(V,null,D(e(Qe),h=>(n(),P(St,{key:h.value,label:h.text,value:h.value},null,8,["label","value"]))),128))]),_:1},8,["modelValue"])])]),t("tr",null,[Zd,t("td",null,[b(t("input",{disabled:"","onUpdate:modelValue":U[9]||(U[9]=h=>e(I).loacation_name=h),class:"input",type:"text"},null,512),[[k,e(I).loacation_name]]),d(Ie,{type:"primary",style:{"margin-left":"7px"},plain:"",size:"small",onClick:U[10]||(U[10]=h=>e(oe)())},{default:u(()=>[r(" Select ")]),_:1})])]),t("tr",null,[Kd,t("td",null,[b(t("input",{"onUpdate:modelValue":U[11]||(U[11]=h=>e(I).Client_name=h),disabled:"",class:"input",type:"text"},null,512),[[k,e(I).Client_name]]),he.customer_id==""?(n(),P(Ie,{key:0,type:"primary",style:{"margin-left":"7px"},plain:"",size:"small",onClick:U[12]||(U[12]=h=>e(Y)())},{default:u(()=>[r(" Select ")]),_:1})):i("",!0)])]),t("tr",null,[Xd,t("td",null,[d(vt,{style:{width:"180px"},modelValue:e(I).date,"onUpdate:modelValue":U[13]||(U[13]=h=>e(I).date=h),type:"date","value-format":"YYYY-MM-DD",placeholder:"Please select",disabledDate:e(Ce),onChange:e(Pl)},null,8,["modelValue","disabledDate","onChange"])])]),e(I).Client_name?(n(),o("tr",Jd,[t("td",eu,[r(" Select Service"),tu,t("img",{onClick:U[14]||(U[14]=h=>e(C)()),class:"usersDetail_icon",src:nn,alt:""})]),t("td",null,[e(I).invoice_type!="outside"?(n(),P(mt,{key:0,style:{width:"180px"},clearable:"true",modelValue:e(I).description_type,"onUpdate:modelValue":U[15]||(U[15]=h=>e(I).description_type=h),filterable:"","allow-create":"","default-first-option":"","reserve-keyword":!1,placeholder:"Please select",onChange:e(gl)},{default:u(()=>[(n(!0),o(V,null,D(e(Je),h=>(n(),P(St,{key:h.value,label:h.value,value:h.value},null,8,["label","value"]))),128))]),_:1},8,["modelValue","onChange"])):i("",!0),e(I).invoice_type=="outside"?b((n(),o("input",{key:1,placeholder:"Please enter","onUpdate:modelValue":U[16]||(U[16]=h=>e(I).description_type1=h),class:"input",type:"text"},null,512)),[[k,e(I).description_type1]]):i("",!0)])])):i("",!0),e(I).Client_name?(n(),o("tr",lu,[nu,t("td",null,[(n(!0),o(V,null,D(e(Al),(h,re)=>(n(),o("div",{class:"Service_Invoice_box",key:re},[t("div",ou,[t("table",au,[t("tr",null,[su,t("td",null,a(h.invoice_number),1)]),t("tr",null,[iu,t("td",null,[e(I).invoice_type!="outside"?(n(),P(mt,{key:0,disabled:"",style:{width:"180px"},clearable:"true",modelValue:h.service_name,"onUpdate:modelValue":c=>h.service_name=c,filterable:"","allow-create":"","default-first-option":"","reserve-keyword":!1,onChange:c=>e(Ft)(c,h),placeholder:"Please select"},{default:u(()=>[(n(!0),o(V,null,D(e(Je),c=>(n(),P(St,{key:c.value,label:c.value,value:c.value},null,8,["label","value"]))),128))]),_:2},1032,["modelValue","onUpdate:modelValue","onChange"])):i("",!0),e(I).invoice_type=="outside"?b((n(),o("input",{key:1,placeholder:"Please enter","onUpdate:modelValue":c=>h.description_outside=c,class:"input",type:"text"},null,8,du)),[[k,h.description_outside]]):i("",!0)])]),e(I).invoice_type=="third_Pay"||e(I).invoice_type=="gift"?(n(),o("tr",uu,[ru,t("td",null,[b(t("textarea",{class:"textarea_input",placeholder:"Please enter","onUpdate:modelValue":c=>h.receive_message=c,maxlength:"600"},null,8,_u),[[k,h.receive_message]])])])):i("",!0),t("tr",null,[cu,t("td",null,[r(" + Tax:"),d(A,{onChange:c=>e(ne)(c,h),style:{margin:"0 50px 0 0"},modelValue:h.is_tax,"onUpdate:modelValue":c=>h.is_tax=c},null,8,["onChange","modelValue","onUpdate:modelValue"]),h.is_tax?(n(),o("span",pu,"Include Tax ")):i("",!0),h.is_tax?(n(),P(mt,{key:1,style:{width:"130px","margin-left":"4px"},clearable:"true",modelValue:h.include_tax,"onUpdate:modelValue":c=>h.include_tax=c,onChange:c=>e(N)(c,h),filterable:"","allow-create":"","default-first-option":"","reserve-keyword":!1,placeholder:"Please select"},{default:u(()=>[(n(!0),o(V,null,D(e(q),c=>(n(),P(St,{key:c.value,label:c.text,value:c.value},null,8,["label","value"]))),128))]),_:2},1032,["modelValue","onUpdate:modelValue","onChange"])):i("",!0)])]),t("tr",null,[mu,t("td",null,[(n(!0),o(V,null,D(h.service_detail,(c,_e)=>(n(),o("div",{key:c.id,class:"items_box"},[t("div",null," Booking#:"+a(c.booking_order_no?c.booking_order_no:"no"),1),d(Ie,{link:"",type:"primary",onClick:B=>e(se)(h,c),style:{margin:"0 10px"}},{default:u(()=>[r("Match")]),_:2},1032,["onClick"]),vu,d(vt,{style:{width:"180px"},modelValue:c.treatment_date,"onUpdate:modelValue":B=>c.treatment_date=B,type:"date","value-format":"YYYY-MM-DD",placeholder:"Please select",disabledDate:e(Ce)},null,8,["modelValue","onUpdate:modelValue","disabledDate"]),gu,d(mt,{style:{width:"180px"},clearable:"true",modelValue:c.spend_time,"onUpdate:modelValue":B=>c.spend_time=B,filterable:"","allow-create":"","default-first-option":"","reserve-keyword":!1,placeholder:"Please select",onChange:B=>e(Te)(B,h,c)},{default:u(()=>[(n(!0),o(V,null,D(c.during_price_json,(B,gt)=>(n(),P(St,{key:B.value,label:B.text,value:B.value},null,8,["label","value"]))),128))]),_:2},1032,["modelValue","onUpdate:modelValue","onChange"]),e(I).invoice_type!="gift"?(n(),o("div",hu," Price: ")):i("",!0),e(I).invoice_type!="gift"?b((n(),o("input",{key:1,style:{width:"100px"},"onUpdate:modelValue":B=>c.price=B,type:"text",class:"input",onInput:B=>e(dt)(h)},null,40,yu)),[[k,c.price]]):i("",!0),e(I).invoice_type!="gift"?(n(),o("span",bu,"($)")):i("",!0),_e>0?(n(),P(Ie,{key:3,link:"",type:"danger",onClick:B=>e(Et)(h,c),style:{"margin-left":"20px"}},{default:u(()=>[r("Delete")]),_:2},1032,["onClick"])):i("",!0)]))),128)),t("div",fu,[d(Ie,{size:"small",plain:"",type:"primary",onClick:c=>e(Ye)(h)},{default:u(()=>[r("Add Item")]),_:2},1032,["onClick"]),e(I).invoice_type!="gift"?(n(),o("div",ku,[h.is_tax?(n(),o("span",xu,"HST:"+a(h.hstValue),1)):i("",!0),t("span",Cu,"Total:"+a(h.total),1)])):i("",!0)]),$u])])]),t("div",Vu,[t("div",Du," Name:"+a(h.licence_name?h.licence_name:""),1),t("div",wu,a(h.licence_description?h.licence_description:""),1),t("div",Iu,a(h.licence_title?h.licence_title:"")+": "+a(h.licence_number?h.licence_number:""),1)])])]))),128))])])):i("",!0),t("tr",null,[Uu,t("td",Su,[d(At,{ref:"upload",class:"avatar_uploader",action:e(Ol),"on-exceed":Zt.handleExceed,"on-success":e(Il),"on-error":Zt.handleUploadError,"on-change":Zt.handleChangePic},{default:u(()=>[d(Ie,{style:{margin:"0 10px 0 0"},size:"small",plain:"",type:"primary"},{default:u(()=>[r("Upload")]),_:1})]),_:1},8,["action","on-exceed","on-success","on-error","on-change"]),(n(!0),o(V,null,D(e(I).files1,(h,re)=>(n(),o("div",{class:"files1_desc",key:re},a(h),1))),128))])])]),e(I).loacation_name?(n(),o("div",Au,[t("div",Pu,[r(" Signature: "),b(t("input",{placeholder:"Please enter","onUpdate:modelValue":U[17]||(U[17]=h=>e(I).signal_desc=h),class:"Signature_input",type:"text"},null,512),[[k,e(I).signal_desc]]),t("div",Nu,[e(I).signal_image?(n(),o("img",{key:0,class:"signal_url_box",src:e(I).signal_image,alt:""},null,8,Tu)):i("",!0)]),t("div",{class:"Manualsignature",onClick:U[18]||(U[18]=h=>e(ft)())},"signature")])])):i("",!0),e(I).loacation_name?(n(),o("div",Eu,[d(Ie,{loading:e(z),type:"primary",onClick:U[19]||(U[19]=h=>e(Se)())},{default:u(()=>[r("Submit")]),_:1},8,["loading"])])):i("",!0)]),_:1},8,["modelValue"]),d(tt,{style:{width:"45%"},modelValue:e(Tt),"onUpdate:modelValue":U[21]||(U[21]=h=>T(Tt)?Tt.value=h:null),title:""},{default:u(()=>[Mu,t("table",Bu,[Yu,(n(!0),o(V,null,D(e(Ut),(h,re)=>(n(),o("tr",{key:h.id},[t("td",Ou,[t("div",{class:E(["selected",{selected_active:e(I).is_Match==re}]),onClick:c=>e(rl)(h,re)},[t("div",{class:E(["selected_min",{selected_min_active:e(I).is_Match==re}])},null,2)],10,Fu)]),t("td",zu,a(re+1),1),t("td",null,a(h.booking_order_no),1),t("td",null,a(h.service_date.slice(0,10)),1),t("td",null,a(h.begin_time)+"~"+a(h.end_time),1),t("td",null,a(h.duration)+" (Min)",1),t("td",null,a(h.amount)+" ($)",1)]))),128))])]),_:1},8,["modelValue"]),d(tt,{style:{width:"78%"},modelValue:e(te),"onUpdate:modelValue":U[23]||(U[23]=h=>T(te)?te.value=h:null),title:""},{default:u(()=>[d(pl,{onEventIsNum:e(Oe),str:1,ClientData:e(ee),ClientDialog:e(te),"onUpdate:ClientDialog":U[22]||(U[22]=h=>T(te)?te.value=h:null)},null,8,["onEventIsNum","ClientData","ClientDialog"])]),_:1},8,["modelValue"]),d(tt,{style:{width:"78%"},modelValue:e(ve),"onUpdate:modelValue":U[25]||(U[25]=h=>T(ve)?ve.value=h:null),title:""},{default:u(()=>[d(Tl,{onEventIsNumlocation:e(lt),note:2,locationData:e(x),locationDialog:e(ve),"onUpdate:locationDialog":U[24]||(U[24]=h=>T(ve)?ve.value=h:null)},null,8,["onEventIsNumlocation","locationData","locationDialog"])]),_:1},8,["modelValue"]),t("div",Ru,[d(tt,{style:{width:"78%"},modelValue:e(Ee),"onUpdate:modelValue":U[28]||(U[28]=h=>T(Ee)?Ee.value=h:null),title:""},{default:u(()=>[t("div",null,"Email to : "+a(e(I).customArr.email),1),t("div",ju," Dear "+a(e(I).customArr.customer_first_name)+" "+a(e(I).customArr.customer_last_name)+" : ",1),b(t("textarea",{class:"textarea_input1",placeholder:"Please enter","onUpdate:modelValue":U[26]||(U[26]=h=>e(I).email_content=h)},null,512),[[k,e(I).email_content]]),t("div",Lu,[Qu,t("div",null,a(e(I).fileName),1)]),t("div",Hu,[d(Ie,{type:"primary",onClick:U[27]||(U[27]=h=>e(Xe)())},{default:u(()=>[r("send")]),_:1})])]),_:1},8,["modelValue"])]),d(tt,{style:{width:"1000px","max-height":"100%"},modelValue:e(we),"onUpdate:modelValue":U[31]||(U[31]=h=>T(we)?we.value=h:null),title:""},{default:u(()=>[d(on,{onChildToParent:e(me),onEventSignal:e(Ct),signalData:e(xt),signalUrl:e(nt),"onUpdate:signalUrl":U[29]||(U[29]=h=>T(nt)?nt.value=h:null),autographDialog:e(we),"onUpdate:autographDialog":U[30]||(U[30]=h=>T(we)?we.value=h:null)},null,8,["onChildToParent","onEventSignal","signalData","signalUrl","autographDialog"])]),_:1},8,["modelValue"]),d(tt,{style:{width:"1000px","max-height":"100%"},modelValue:e(ct),"onUpdate:modelValue":U[33]||(U[33]=h=>T(ct)?ct.value=h:null),title:""},{default:u(()=>[Wu,t("div",qu,[t("div",Gu,[Zu,t("div",Ku,[t("div",Xu,a(e(be).title),1),t("div",Ju,a(e(be).number_companyname),1),t("div",null,a(e(be).address),1),t("div",null,a(e(be).city)+" "+a(e(be).state),1),t("div",null,a(e(be).country)+" "+a(e(be).postal),1),t("div",null,"Tel:"+a(e(be).phone),1),t("div",null,"HST#:"+a(e(be).hst),1)])]),er,t("div",tr,[t("div",lr,"Name:"+a(e($t).show1),1),e(S).show_number?(n(),o("div",nr," Invoice Number:"+a(e(L).invoice_number),1)):i("",!0),e(S).show_number?i("",!0):(n(),o("div",or," Invoice Date:"+a(e(L).invoice_date),1))]),t("div",ar,[t("div",sr,"Address:"+a(e($t).show2),1),e(S).show_number?(n(),o("div",ir," Invoice Date:"+a(e(L).invoice_date),1)):i("",!0)]),t("div",dr,[t("table",ur,[rr,(n(!0),o(V,null,D(e(He),(h,re)=>(n(),o("tr",{key:re},[t("td",null,a(h.treatment_date),1),t("td",null,a(h.description_type),1),t("td",null,a(h.spend_time)+"Min",1),t("td",null,a(h.price),1),t("td",null,a(h.price),1)]))),128)),e(L).total_amount>0?(n(),o("tr",_r,[cr,pr,mr,vr,t("td",null,a(e(L).total_price),1)])):i("",!0),e(L).total_amount>0?(n(),o("tr",gr,[hr,yr,br,fr,t("td",null,a(e(L).tax_amount),1)])):i("",!0),e(L).total_amount>0?(n(),o("tr",kr,[xr,Cr,$r,Vr,t("td",null,a(e(L).total_amount),1)])):i("",!0)])]),e(L).receive_message?(n(),o("div",Dr," Receive:"+a(e(L).receive_message),1)):i("",!0),e(I).fileView.length>0?(n(),o("div",wr,[r(" file : "),(n(!0),o(V,null,D(e(I).fileView,(h,re)=>(n(),o("div",{class:"file_desc1",onClick:c=>e(Sl)(h),key:re},a(h),9,Ir))),128))])):i("",!0),t("div",Ur,[t("div",Sr,a(e(et).name),1),t("div",Ar,a(e(et).Descrption),1),t("div",Pr,a(e(et).register_no),1)]),t("div",Nr,[t("div",Tr,[e(L).has_desc==1?(n(),o("span",Er,a(e(L).has_desc_show),1)):(n(),o("span",Mr,a(e(L).has_desc_show),1))]),e(I).is_use_chapter?(n(),o("img",{key:0,class:"chapterimage",src:e(I).chapter_image,alt:""},null,8,Br)):i("",!0),e(L).has_sign==1?(n(),o("img",{key:1,class:"paid_icon",src:e(yn)+"/paid.png",alt:""},null,8,Yr)):i("",!0)]),t("div",Or,[r(" Signature: "),(e(L).signal_image==""||e(L).signal_image==null)&&(e(L).signal_desc==""||e(L).signal_desc==null)?(n(),o("div",Fr)):i("",!0),e(L).signal_image?(n(),o("img",{key:1,src:e(L).signal_image,class:"Signature_img",mode:"",alt:""},null,8,zr)):i("",!0),e(L).signal_desc&&(e(L).signal_image==""||e(L).signal_image==null)?b((n(),o("input",{key:2,disabled:"",placeholder:"Please enter","onUpdate:modelValue":U[32]||(U[32]=h=>e(L).signal_desc=h),class:"signal_desc",type:"text"},null,512)),[[k,e(L).signal_desc]]):i("",!0)])])]),_:1},8,["modelValue"]),d(tt,{style:{width:"60%"},modelValue:e(ut),"onUpdate:modelValue":U[36]||(U[36]=h=>T(ut)?ut.value=h:null),title:""},{default:u(()=>[t("div",null,"Invoice Number : "+a(e(I).Invoice_Charge_Number),1),t("div",Rr," Customer Name : "+a(e(I).Customer_Name),1),t("div",jr," Invoice Total Charge : "+a(e(I).Invoice_Total_Charge)+" $ ",1),t("div",Lr," Has Paid Amount : "+a(e(I).Has_Paid_Amount)+" $ ",1),t("div",Qr," Need Charge Amount : "+a(e(I).Need_Charge_Amount)+" $ ",1),Hr,t("table",Wr,[qr,(n(!0),o(V,null,D(e(ze),(h,re)=>(n(),o("tr",{key:h.id},[t("td",null,a(h.cheque_number),1),t("td",null,a(h.pay_amount)+" $",1),t("td",null,a(h.has_pay_amount)+" $",1),t("td",null,a(h.remain_amount)+" $",1),t("td",null,[b(t("input",{"onUpdate:modelValue":c=>h.paid_amount=c,class:"input",type:"text"},null,8,Gr),[[k,h.paid_amount]]),r(" $ ")])]))),128))]),t("div",Zr,[d(Ie,{type:"primary",onClick:U[34]||(U[34]=h=>e(Z)())},{default:u(()=>[r("Submit")]),_:1})]),t("div",Kr,[r(" The balance is insufficient,please pay "),d(Ie,{link:"",type:"primary",style:{"margin-left":"8px"},onClick:U[35]||(U[35]=h=>e(_)())},{default:u(()=>[r("Payment")]),_:1})])]),_:1},8,["modelValue"]),d(tt,{style:{width:"50%"},modelValue:e(le),"onUpdate:modelValue":U[46]||(U[46]=h=>T(le)?le.value=h:null),title:""},{default:u(()=>[Xr,t("table",Jr,[t("tr",null,[e_,t("td",null,[b(t("input",{disabled:"",class:"input2","onUpdate:modelValue":U[37]||(U[37]=h=>e(I).Customer_Name=h),type:"text"},null,512),[[k,e(I).Customer_Name]])])]),t("tr",null,[t_,t("td",null,[b(t("input",{"onUpdate:modelValue":U[38]||(U[38]=h=>e(g).pay_amount=h),class:"input2",type:"text"},null,512),[[k,e(g).pay_amount]])])]),t("tr",null,[l_,t("td",null,[d(vt,{style:{width:"272px"},modelValue:e(g).time,"onUpdate:modelValue":U[39]||(U[39]=h=>e(g).time=h),type:"date","value-format":"YYYY-MM-DD",placeholder:"Please select"},null,8,["modelValue"])])]),t("tr",null,[n_,t("td",null,[d(mt,{clearable:"true",style:{width:"272px",margin:"0 10px 0 0"},modelValue:e(g).pay_method,"onUpdate:modelValue":U[40]||(U[40]=h=>e(g).pay_method=h),filterable:"","allow-create":"","default-first-option":"","reserve-keyword":!1,placeholder:"Please select",onChange:Zt.onPayMethod},{default:u(()=>[(n(!0),o(V,null,D(e(O),h=>(n(),P(St,{key:h.id,label:h.text,value:h.value},null,8,["label","value"]))),128))]),_:1},8,["modelValue","onChange"]),e(g).pay_method=="Other"?b((n(),o("input",{key:0,"onUpdate:modelValue":U[41]||(U[41]=h=>e(g).other=h),class:"input2",style:{height:"32px"},type:"text"},null,512)),[[k,e(g).other]]):i("",!0)])]),e(g).pay_method=="Cheque"?(n(),o("tr",o_,[a_,t("td",null,[b(t("input",{"onUpdate:modelValue":U[42]||(U[42]=h=>e(g).cheque_number=h),class:"input2",type:"text"},null,512),[[k,e(g).cheque_number]])])])):i("",!0),t("tr",null,[s_,t("td",null,[d(mt,{clearable:"true",style:{width:"272px",margin:"0 10px 0 0"},modelValue:e(g).account_id,"onUpdate:modelValue":U[43]||(U[43]=h=>e(g).account_id=h),filterable:"","allow-create":"","default-first-option":"","reserve-keyword":!1,placeholder:"Please select"},{default:u(()=>[(n(!0),o(V,null,D(e(W),h=>(n(),P(St,{key:h.id,label:h.text,value:h.value},null,8,["label","value"]))),128))]),_:1},8,["modelValue"])])]),t("tr",null,[i_,t("td",d_,[b(t("textarea",{class:"textarea_input",placeholder:"Please enter","onUpdate:modelValue":U[44]||(U[44]=h=>e(g).content=h),maxlength:"600"},null,512),[[k,e(g).content]])])])]),t("div",u_,[d(Ie,{loading:e(z),type:"primary",onClick:U[45]||(U[45]=h=>e(R)())},{default:u(()=>[r("Submit")]),_:1},8,["loading"])])]),_:1},8,["modelValue"]),d(tt,{style:{width:"76%"},modelValue:e(Qt),"onUpdate:modelValue":U[48]||(U[48]=h=>T(Qt)?Qt.value=h:null),title:""},{default:u(()=>[d(Fl,{onEventCharge:e($l),str:e(Vl),ChargeArr:e(Ot),ChargeDialog:e(Qt),"onUpdate:ChargeDialog":U[47]||(U[47]=h=>T(Qt)?Qt.value=h:null)},null,8,["onEventCharge","str","ChargeArr","ChargeDialog"])]),_:1},8,["modelValue"]),d(tt,{style:{width:"50%"},modelValue:e(vl),"onUpdate:modelValue":U[49]||(U[49]=h=>T(vl)?vl.value=h:null),title:""},{default:u(()=>[r_,t("div",__,[(n(!0),o(V,null,D(e(_l),(h,re)=>(n(),o("div",{class:"file_desc",onClick:c=>e(Sl)(h),key:re},a(h),9,c_))),128))])]),_:1},8,["modelValue"])])}}});const v_=dl(m_,[["__scopeId","data-v-dc0f4736"]]),g_="/public/static/png/warn_icon-d5331d22.png",h_="/public/static/png/plan_img-7a624edf.png",zt="/public/static/png/booking_form_icon1-f2c3f12d.png",rt="/public/static/png/booking_form_img1-9d179f80.png",ul="/public/static/png/booking_form_icon4-f2b5d94d.png",Nl="/public/static/png/booking_form_icon3-0a2ffe67.png",m=K=>(sl("data-v-e76df5fd"),K=K(),il(),K),y_={class:"main"},b_={key:0,class:"dialog_tilte"},f_={key:1,class:"dialog_tilte"},k_={key:2,class:"Add_Booking_box"},x_={key:3,class:"Add_Booking_box"},C_=m(()=>t("span",{class:"red"}," * ",-1)),$_={key:4,class:"Add_Booking_box"},V_={key:5,class:"Add_Booking_box"},D_=m(()=>t("span",{class:"red"}," * ",-1)),w_={key:6,class:"Add_Booking_box"},I_={class:"Add_Booking_box"},U_=m(()=>t("span",{class:"red"}," * ",-1)),S_={class:"Add_Booking_box"},A_=m(()=>t("div",{class:"Add_Booking_box"},[r("Service"),t("span",{class:"red"}," * ")],-1)),P_={class:"Service_box11",style:{width:"100%"}},N_=["onClick"],T_={key:7},E_={class:"additional_table"},M_=m(()=>t("tr",{class:"additional_table_tr"},[t("td"),t("td",null,"Service Name"),t("td",null,"Duration"),t("td",null,"Amount")],-1)),B_=m(()=>t("div",{class:"Add_Booking_box",style:{position:"relative"}},[r(" Date "),t("span",{class:"red"}," * ")],-1)),Y_={class:"Add_Booking_box"},O_={class:"time_box"},F_=m(()=>t("div",null,[r("time"),t("span",{class:"red"}," * ")],-1)),z_=m(()=>t("div",null,[r("Duration"),t("span",{class:"red"}," * ")],-1)),R_=m(()=>t("div",{style:{margin:"0 6px 0 40px"}},"Amount",-1)),j_={key:8,class:"createOrderobj_box66",style:{width:"30%",margin:"0 00px 10px"}},L_=m(()=>t("tr",{class:"createOrderobj_box66_tr"},[t("td",null,"Idx"),t("td",null,"time")],-1)),Q_=m(()=>t("div",{class:"Add_Booking_box",style:{"margin-top":"25px"}}," Look for treatmemt: ",-1)),H_={class:"Add_Booking_box"},W_={key:9,class:"Add_Booking_box",style:{"margin-top":"25px"}},q_={key:0,style:{"margin-left":"20px"}},G_={key:10,class:"Add_Booking_box",style:{"margin-top":"25px","align-items":"flex-end"}},Z_={class:"createOrderobj_box66",style:{width:"60%"}},K_=m(()=>t("tr",{class:"createOrderobj_box66_tr"},[t("td",null,"Date"),t("td",{style:{width:"230px"}},[r("Time "),t("span",{class:"red"},"*")]),t("td",null,[r("Duration"),t("span",{class:"red"},"*")]),t("td",null,"Amount"),t("td",null,"Action")],-1)),X_={class:"dialog_procure_box"},J_=["onClick"],ec={key:1},tc=["onUpdate:modelValue","onInput"],lc=["onUpdate:modelValue"],nc={class:"part_out_button"},oc=m(()=>t("div",{style:{height:"400px"}},[t("div",{class:"dialog_tilte"}," Please ensure you read the following information in its entirety. "),t("div",{class:"desc"}," I have read the above information and have stated all my previous and current medical conditions. I will update the Registered Massage Therapist regarding any updates in my condition as soon as possible. "),t("div",{class:"desc"}," In order to provide treatment, this clinic must collect personal health information. I understand that all information that I provide will be kept confidential unless allowed or required by law. I understand that I will be asked for written authorization before this information can be released. "),t("div",{class:"desc"}," I understand the 24 hour cancellation policy and agree to pay the missed appointment fee if I cancel within the 24 hour period preceding my appointment time. I understand that I am responsible to pay for the time reserved with the Registered Massage Therapist; regardless of the time I arrive and am ready for my appointment. I understand that this time will include intake, assessment, treatment, self-care recommendations, charting and administration. I understand that payment in full is due on the day of treatment. ")],-1)),ac=m(()=>t("div",{class:"dialog_tilte"},"Health History Form",-1)),sc=m(()=>t("div",{style:{margin:"-18px 0 6px 0","font-weight":"bold"}}," This information is to help the therapist to create a safe and effective treatment plan. ",-1)),ic={class:"createOrderobj_box88"},dc=m(()=>t("td",{width:"15%"},"Name",-1)),uc={width:"42%"},rc=["disabled"],_c=m(()=>t("td",{width:"15%"},"Today's Date:",-1)),cc={width:"28%"},pc=m(()=>t("td",null,"Address",-1)),mc=["disabled"],vc=m(()=>t("td",null,"Date of Birth:",-1)),gc=m(()=>t("td",null,"City",-1)),hc={style:{display:"flex","align-items":"center"}},yc=["disabled"],bc=m(()=>t("div",{style:{"margin-left":"20px"}},"Postal Code/ZIP:",-1)),fc=["disabled"],kc=m(()=>t("td",null,"Occupation:",-1)),xc=["disabled"],Cc=m(()=>t("td",null,"Phone:",-1)),$c=["disabled"],Vc=m(()=>t("td",null,"Work Phone:",-1)),Dc=["disabled"],wc=m(()=>t("td",null,"How did you hear about us?",-1)),Ic=["disabled"],Uc=m(()=>t("td",null,"Family doctor:",-1)),Sc=["disabled"],Ac=m(()=>t("td",null,"What is your chief complaint?",-1)),Pc=["disabled"],Nc=m(()=>t("td",null,"Phone:",-1)),Tc=["disabled"],Ec={class:"show_card"},Mc=m(()=>t("div",{style:{margin:"12px 0px 6px 0","font-weight":"bold"}}," Please check conditions you are experiencing and circle conditions you have experienced in the past. ",-1)),Bc={class:"health_info_bottom"},Yc={class:"health_info_bottom1"},Oc={class:"title_desc"},Fc={key:1,class:""},zc={class:""},Rc=["disabled","onUpdate:modelValue"],jc={key:2,class:""},Lc={class:""},Qc=["disabled","onUpdate:modelValue"],Hc={key:3,class:""},Wc={class:""},qc={key:4,class:""},Gc={class:""},Zc={class:"health_info_bottom1"},Kc={class:"title_desc"},Xc={key:1,class:""},Jc={class:""},ep=["disabled","onUpdate:modelValue"],tp={key:2,class:""},lp={class:""},np=["disabled","onUpdate:modelValue"],op={key:3,class:""},ap={class:""},sp={key:4,class:""},ip={class:""},dp={class:"health_info_bottom1"},up={class:"title_desc"},rp={key:1,class:""},_p={class:""},cp=["disabled","onUpdate:modelValue"],pp={key:2,class:""},mp={class:""},vp=["disabled","onUpdate:modelValue"],gp={key:3,class:""},hp={class:""},yp={key:4,class:""},bp={class:""},fp={key:0,class:"part_out_button"},kp={class:"addDuringDialog_box"},xp={class:"dialog_procure_box"},Cp={style:{"font-weight":"bold"}},$p={class:"CheckInbox"},Vp=m(()=>t("div",null,"Health Form:",-1)),Dp={key:0,class:"CheckInbox"},wp={key:1,class:"CheckInbox"},Ip={class:"part_out_button"},Up={class:"add_part_dialog_box"},Sp={key:0,class:"dialog_tilte",style:{color:"#fb660f"}},Ap={key:1,class:"dialog_tilte"},Pp={class:"Service_box11",style:{margin:"0px"}},Np=["onClick"],Tp={key:2},Ep={key:3},Mp={class:"Email_box"},Bp={class:"createOrderobj_box_email"},Yp=m(()=>t("tr",null,[t("td",null,"Date"),t("td",null,"Time"),t("td",null,"Duration"),t("td",null,"Service")],-1)),Op={class:"EmailSensitive_box",style:{"margin-top":"20px"}},Fp={key:4,style:{"margin-top":"12px"},class:"EmailSensitive_box"},zp=m(()=>t("div",{class:"Email_box",style:{"margin-top":"120px"}},null,-1)),Rp={class:"part_out_button"},jp=m(()=>t("div",{class:"dialog_tilte"},"User details",-1)),Lp={class:"fieldset"},Qp=m(()=>t("legend",{class:"legend"},"Booking List",-1)),Hp={class:"fieldset"},Wp=m(()=>t("legend",{class:"legend"},"Note List",-1)),qp={key:0,class:"formDialog_box"},Gp=m(()=>t("div",{class:"dialog_tilte"},"Informed Consent- MASSAGE THERAPY",-1)),Zp={class:"Informed_box"},Kp=m(()=>t("div",{class:"desc"}," I hereby request and consent to the service of massage therapy treatment and other massage procedures, including various modes of remedial exercise and hydrotherapy, on me by the registered massage therapist. ",-1)),Xp=m(()=>t("div",{class:"desc"}," I understand that I will have an opportunity to discuss with the massage therapists and/or with other office or clinic personnel, the nature of massage therapy treatment and other procedures. I understand the results may not be guaranteed. ",-1)),Jp=m(()=>t("div",{class:"desc"}," I am informed that, as in all health care, in the practice of massage therapy there are some very slight risks to treatment, including, but not limited to, muscle strains and sprains, bruising, light headed or dizziness, and tenderness. I do not expect the massage therapist to be able to anticipate and explain all risks and complications and I wish to rely on the massage therapist to exercise judgment during the course of the treatment which the massage therapist feels at the time, based upon the facts then known, and is in my best interests. ",-1)),em=m(()=>t("div",{class:"desc"}," I understand that I will be draped at all times and the areas undraped will be secure to insure there is no indecent exposure. If undraping my gluteals is significant in the treatment I do understand that it is part of the therapy. ",-1)),tm=m(()=>t("div",{class:"desc1"}," I am informed that have the right to terminate the treatment at any time, and the right to alter the therapist's pressure during the massage treatment. ",-1)),lm=m(()=>t("div",{class:"desc"}," I am aware there are further alternatives offered such as osteopathic manipulation treatment, acupuncture, kinesiology taping, and physical therapy etc. ",-1)),nm=m(()=>t("div",{class:"desc"}," I have read the above consent. I have also had an opportunity to ask questions about its consent, and by signing below, I agree to the above named procedures. I intend this consent form to cover the entire course of the treatment for my present condition and for any future condition(s) for which I seek treatment. ",-1)),om=m(()=>t("div",{class:"desc1"},"Cancellation and No Show Policy",-1)),am=m(()=>t("div",{class:"desc"}," The clinic has a 24 hours cancellation and no show policy. Patients must notify the reception more than 24 hours prior to an appointment. Failure to do so will result in a full treatment cost as booked cancellation and no show fee. ",-1)),sm={class:"Description_box"},im=m(()=>t("div",{class:"Date_title"},"Date:",-1)),dm={class:"Description_box",style:{"align-items":"flex-end"}},um=m(()=>t("div",null,"Patient Signature (Legal Guardian)",-1)),rm=["disabled"],_m=["src"],cm={class:"Description_box",style:{"align-items":"flex-end"}},pm=m(()=>t("div",null,"Witness of Signature",-1)),mm=["disabled"],vm=["src"],gm={key:1,class:"formDialog_box"},hm=m(()=>t("div",{class:"desc"},"Treatment Plan for:",-1)),ym=["disabled"],bm={class:"Description_box"},fm=m(()=>t("div",{class:"Date_title"},"Date:",-1)),km=m(()=>t("div",{class:"desc"},"Limitations of activities of daily living:",-1)),xm=["disabled"],Cm=m(()=>t("div",{class:"desc"},"Treatment plan discussed with Client:",-1)),$m={class:"allQuestions_box1"},Vm=["onClick"],Dm=m(()=>t("div",{class:"desc"},"Clients Goal / Treatment Goal:",-1)),wm=["disabled"],Im=m(()=>t("div",{class:"desc"},"Received informed consent for treatment :",-1)),Um={class:"allQuestions_box1"},Sm=["onClick"],Am=m(()=>t("div",{class:"desc"},"Type / Focus of treatment:",-1)),Pm=["disabled"],Nm=m(()=>t("div",{class:"desc"},"Frequency:",-1)),Tm=["disabled"],Em=m(()=>t("div",{class:"desc"},"Duration:",-1)),Mm=["disabled"],Bm=m(()=>t("div",{class:"desc"},"Areas to be treated:",-1)),Ym=["onClick"],Om=["disabled","onUpdate:modelValue"],Fm=m(()=>t("div",{class:"desc"},"Assessments Performed:",-1)),zm=["disabled"],Rm=m(()=>t("div",{class:"desc"},"Results of Assessments:",-1)),jm=["disabled"],Lm=m(()=>t("div",{class:"desc"},"Reassessment schedule:",-1)),Qm=["disabled"],Hm=m(()=>t("div",{class:"desc"},"Anticipated Progression of Responses:",-1)),Wm=["disabled"],qm=m(()=>t("div",{class:"desc"},"Remedial exercises/ Hydrotherapy recommended:",-1)),Gm=["disabled"],Zm=m(()=>t("div",{class:"desc"},"Contraindications / Risks:",-1)),Km=["disabled"],Xm=m(()=>t("div",{class:"desc"},"Referrals:",-1)),Jm=["disabled"],e1=m(()=>t("img",{class:"plan_img",src:h_,alt:""},null,-1)),t1={key:2,class:"formDialog_box"},l1=m(()=>t("div",{class:"desc"},"Treatment notes for:",-1)),n1=["disabled"],o1={class:"Description_box"},a1=m(()=>t("div",{class:"Date_title"},"Date:",-1)),s1={class:"Description_box"},i1=m(()=>t("div",{class:"Date_title"},"Time:",-1)),d1=["onClick"],u1={class:"Description_box"},r1=m(()=>t("div",{class:"Date_title"},"Duration:",-1)),_1=["disabled"],c1={class:"Description_box"},p1=m(()=>t("div",{class:"Date_title"},"Fee:",-1)),m1=["disabled"],v1=m(()=>t("div",{class:"allQuestions_box2"},[t("span",{style:{"margin-left":"4px"}},"$ ")],-1)),g1=m(()=>t("div",{class:"desc"},"Informed consent received:",-1)),h1={class:"allQuestions_box1",style:{"margin-top":"20rpx",width:"96%"}},y1=["onClick"],b1={class:"Description_box"},f1=m(()=>t("div",{class:"Date_title"},"treatment assessment:",-1)),k1=["disabled"],x1={class:"Description_box"},C1=m(()=>t("div",{class:"Date_title"},"Therapist:",-1)),$1=m(()=>t("div",{class:"desc"},"Client Goal:",-1)),V1=["disabled"],D1=m(()=>t("div",{class:"desc"},"Techniques Used:",-1)),w1=["onClick"],I1=["disabled","onUpdate:modelValue"],U1=m(()=>t("div",{class:"desc"},"Areas Treated :",-1)),S1=["onClick"],A1=["disabled","onUpdate:modelValue"],P1=m(()=>t("div",{class:"desc"},"Clinical findings:",-1)),N1=["disabled"],T1=m(()=>t("div",{class:"desc"},"Clients reaction / feedback:",-1)),E1=["disabled"],M1=m(()=>t("div",{class:"desc"},"Recommended Self-Care:",-1)),B1=["disabled"],Y1={key:3,class:"formDialog_box"},O1=m(()=>t("div",{class:"title5"}," Consent for Assessment and Treatment of Sensitive Areas ",-1)),F1={class:"input_box",style:{"margin-top":"30rpx"}},z1=["disabled"],R1=["disabled"],j1={key:0,class:"Description_box",style:{"align-items":"flex-end"}},L1=m(()=>t("div",null,"Client Signature:",-1)),Q1=["onUpdate:modelValue"],H1=["src"],W1=m(()=>t("div",{class:"desc1"},"List Clinical Indication:",-1)),q1=["disabled"],G1=m(()=>t("div",{class:"desc1"}," The RMT has explained the following to me and I fully understand the proposed assessment and/or treatment: ",-1)),Z1=m(()=>t("div",{class:"yuan_box"},[t("div",{class:"yuan_k"},[t("div",{class:"yuan"})]),t("div",{class:"yuan_desc"}," The nature of the assessment, including the clinical reason(s) for assessment of the above area(s )and the draping methods to be used ")],-1)),K1=m(()=>t("div",{class:"yuan_box"},[t("div",{class:"yuan_k"},[t("div",{class:"yuan"})]),t("div",{class:"yuan_desc"},"The expected benefits of the assessment")],-1)),X1=m(()=>t("div",{class:"yuan_box"},[t("div",{class:"yuan_k"},[t("div",{class:"yuan"})]),t("div",{class:"yuan_desc"},"The potential risks of the assessment")],-1)),J1=m(()=>t("div",{class:"yuan_box"},[t("div",{class:"yuan_k"},[t("div",{class:"yuan"})]),t("div",{class:"yuan_desc"}," The potential side effects of the assessment ")],-1)),ev=m(()=>t("div",{class:"yuan_box"},[t("div",{class:"yuan_k"},[t("div",{class:"yuan"})]),t("div",{class:"yuan_desc"},"That consent is voluntary")],-1)),tv=m(()=>t("div",{class:"yuan_box"},[t("div",{class:"yuan_k"},[t("div",{class:"yuan"})]),t("div",{class:"yuan_desc"}," That I can withdraw or alter my consent at any time ")],-1)),lv=m(()=>t("div",{class:"desc1"}," I voluntarily give my informed consent for the assessment and/or treatment as discussed and outlined above. ",-1)),nv=m(()=>t("div",{class:"desc1"},"Client Name (print):",-1)),ov=["disabled"],av={class:"Description_box"},sv=m(()=>t("div",null,"Date:",-1)),iv={class:"Description_box",style:{"align-items":"flex-end"}},dv=m(()=>t("div",null,"Client Signature:",-1)),uv=["disabled"],rv=["src"],_v={key:4,class:"formDialog_box"},cv=m(()=>t("div",{class:"desc1",style:{"margin-top":"30px"}},"Ongoing Treatment:",-1)),pv=m(()=>t("div",{class:"desc"}," I am aware that the treatment of the above indicated area(s) is part of a treatment plan which has been discussed with me by my RMT.I confirm that, on the following date(s), the RMT has reviewed the treatment plan and I provide my informed consent. ",-1)),mv={class:"show_card"},vv={class:"Description_box"},gv=m(()=>t("div",null,"Date:",-1)),hv={class:"Description_box",style:{"align-items":"flex-end"}},yv=m(()=>t("div",null,"Client Signature:",-1)),bv=["disabled"],fv=["src"],kv={class:"show_card"},xv={class:"Description_box"},Cv=m(()=>t("div",null,"Date:",-1)),$v={class:"Description_box",style:{"align-items":"flex-end"}},Vv=m(()=>t("div",null,"Client Signature:",-1)),Dv=["disabled"],wv=["src"],Iv={class:"show_card"},Uv={class:"Description_box"},Sv=m(()=>t("div",null,"Date:",-1)),Av={class:"Description_box",style:{"align-items":"flex-end"}},Pv=m(()=>t("div",null,"Client Signature:",-1)),Nv=["disabled"],Tv=["src"],Ev={class:"show_card"},Mv={class:"Description_box"},Bv=m(()=>t("div",null,"Date:",-1)),Yv={class:"Description_box",style:{"align-items":"flex-end"}},Ov=m(()=>t("div",null,"Client Signature:",-1)),Fv=["disabled"],zv=["src"],Rv={class:"show_card"},jv={class:"Description_box"},Lv=m(()=>t("div",null,"Date:",-1)),Qv={class:"Description_box",style:{"align-items":"flex-end"}},Hv=m(()=>t("div",null,"Client Signature:",-1)),Wv=["disabled"],qv=["src"],Gv={key:5,class:"formDialog_box"},Zv=m(()=>t("div",{class:"description_title"},"description:",-1)),Kv=["disabled"],Xv={key:6,class:"part_out_button"},Jv=m(()=>t("div",{class:"dialog_tilte"},"Add Invoice",-1)),eg={class:"createOrderobj_box66 Invoice_td",style:{width:"100%"}},tg=m(()=>t("td",{width:"10%"},"Invoice Type",-1)),lg={key:0},ng=m(()=>t("td",null,[r("Location"),t("span",{class:"red"}," * ")],-1)),og=m(()=>t("td",null,[r("Client"),t("span",{class:"red"}," * ")],-1)),ag={key:1},sg=m(()=>t("td",null,"Therapist",-1)),ig={style:{display:"flex","align-items":"center"}},dg={key:0,style:{"margin-left":"16px"}},ug={style:{display:"flex","align-items":"center"}},rg=m(()=>t("span",{class:"red"}," * ",-1)),_g={class:"Service_Invoice_box1"},cg={class:"createOrderobj_box_child"},pg=m(()=>t("td",{width:"15%"},"Invoice Number",-1)),mg=m(()=>t("td",null,"Service",-1)),vg=["onUpdate:modelValue"],gg={key:0},hg=m(()=>t("td",null,"Receive",-1)),yg=["onUpdate:modelValue"],bg=m(()=>t("td",null,"Tax",-1)),fg={key:0},kg=m(()=>t("td",null,[r("Item"),t("span",{class:"red"}," * ")],-1)),xg={style:{margin:"0 18px 0 0"}},Cg=m(()=>t("div",null,"Date:",-1)),$g=m(()=>t("div",{style:{"margin-left":"10px"}},"Duration:",-1)),Vg={key:0,style:{"margin-left":"10px"}},Dg=["onUpdate:modelValue","onInput"],wg={key:2,style:{"margin-left":"5px"}},Ig={class:"Add_Item"},Ug=m(()=>t("div",null,null,-1)),Sg={key:0},Ag={key:0},Pg={style:{"margin-left":"20px"}},Ng={class:"Signature_box",style:{width:"80%"}},Tg={class:"Paid_desc"},Eg={class:"Paid_desc"},Mg={class:"Paid_desc"},Bg=m(()=>t("td",null,"File",-1)),Yg={class:"payment_box"},Og={key:0,class:"Signature_box1"},Fg={class:"signal_image_box"},zg={class:"signal_url_box"},Rg=["src"],jg={key:1,class:"part_out_button"},Lg={style:{"margin-top":"8px"}},Qg={style:{"margin-top":"8px"}},Hg={style:{"margin-top":"8px"}},Wg={style:{"margin-top":"8px"}},qg=m(()=>t("div",{style:{margin:"18px 0 6px 0"}},"Prepaid History",-1)),Gg={key:0,class:"createOrderobj_box66"},Zg=m(()=>t("tr",null,[t("td",null,"Check Number"),t("td",null,"Check Amount"),t("td",null,"Has Paid Amount"),t("td",null,"Balance Amount"),t("td",null,"Paid amount")],-1)),Kg=["onUpdate:modelValue"],Xg={key:1,class:"part_out_button"},Jg={key:2,class:"no_data1"},eh={class:"insufficient"},th=m(()=>t("div",{class:"dialog_tilte"},"payment",-1)),lh={class:"createOrderobj_box66"},nh=m(()=>t("td",{width:"30%"},[r("UserName"),t("span",{class:"red"}," * ")],-1)),oh=m(()=>t("td",null,[r("Pay Amount"),t("span",{class:"red"}," * ")],-1)),ah=m(()=>t("td",null,"Collection Time",-1)),sh=m(()=>t("td",null,[r("Pay Method"),t("span",{class:"red"}," * ")],-1)),ih={key:0},dh=m(()=>t("td",null,[r("Check Number"),t("span",{class:"red"}," * ")],-1)),uh=m(()=>t("td",null,"Account ID",-1)),rh=m(()=>t("td",null,"Comment",-1)),_h={colspan:"5"},ch={class:"part_out_button"},ph=m(()=>t("div",{class:"dialog_tilte",style:{margin:"-14px 0 10px 0"}}," Invoice Detail ",-1)),mh={key:0,class:"loading_desc"},vh={class:"dialog_procure_box",style:{"margin-top":"0px","flex-wrap":"wrap"}},gh=["onClick"],hh={class:"INVOICE_box"},yh=m(()=>t("div",{class:"INVOICE_box_left"},"INVOICE",-1)),bh={class:"INVOICE_box_right"},fh={class:"Relaxation"},kh={style:{"font-size":"29rpx"}},xh={class:"Invoice_Detail_box2",style:{"margin-top":"12px"}},Ch=m(()=>t("div",{class:"Name_box_box"},[t("div",{class:"Name_box"},"Bill To:"),t("div",{class:"Name_box"})],-1)),$h={class:"Name_box_box"},Vh={class:"Name_box"},Dh={key:0},wh={key:1,class:"Name_box"},Ih={key:2,class:"Name_box"},Uh={class:"Name_box_box"},Sh={class:"Name_box"},Ah={key:0},Ph={key:1,class:"Name_box"},Nh={class:"uni_table_box"},Th={class:"createOrderobj_box"},Eh=m(()=>t("tr",{class:"Duration_title_box"},[t("td",null,"Date of Treatment"),t("td",null,"Description"),t("td",null,"Duration"),t("td",null,"Price ($)"),t("td",null,"Amount ($)")],-1)),Mh={key:0},Bh=m(()=>t("td",null,null,-1)),Yh=m(()=>t("td",null,null,-1)),Oh=m(()=>t("td",null,null,-1)),Fh=m(()=>t("td",null,"Subtotal:",-1)),zh={key:1},Rh=m(()=>t("td",null,null,-1)),jh=m(()=>t("td",null,null,-1)),Lh=m(()=>t("td",null,null,-1)),Qh=m(()=>t("td",null,"HST:",-1)),Hh={key:2},Wh=m(()=>t("td",null,null,-1)),qh=m(()=>t("td",null,null,-1)),Gh=m(()=>t("td",null,null,-1)),Zh=m(()=>t("td",null,"Total:",-1)),Kh={key:0,class:"receive_message"},Xh={key:0,class:"file_box"},Jh=["onClick"],ey={class:"Signature_box"},ty={class:"Paid_desc"},ly={class:"Paid_desc"},ny={class:"Paid_desc"},oy={class:"Signature"},ay={key:0,class:"line"},sy=["src"],iy=["onUpdate:modelValue"],dy={class:"part_out_button"},uy={class:"Email_box"},ry=m(()=>t("img",{class:"_attachment",src:an,alt:""},null,-1)),_y={class:"part_out_button"},cy={style:{margin:"40px 0 10px 0"}},py={style:{"font-weight":"bold"}},my={style:{"font-weight":"bold"}},vy={style:{margin:"10px 0 0px 0"}},gy={style:{"font-weight":"bold"}},hy={class:"part_out_button",style:{"margin-top":"60px"}},yy={style:{margin:"10px 0 35px 0"}},by={style:{"font-weight":"bold"}},fy=m(()=>t("div",{class:"Notes_title"},"Notes :",-1)),ky=m(()=>t("div",{class:"Notes_title"},"Enclosure :",-1)),xy=["onClick"],Cy={key:0,style:{width:"100%"}},$y={class:"dialog_procure_box",style:{"margin-top":"0px"}},Vy=["onClick"],Dy={key:0,class:"fieldset"},wy=m(()=>t("legend",{class:"legend"},"Basic Info",-1)),Iy={class:"createOrderobj_box66"},Uy=m(()=>t("td",{width:"15%"},"Booking#:",-1)),Sy=m(()=>t("td",{width:"15%"},[t("div",{class:"EmailSensitive_box"},[r(" Date "),t("img",{class:"booking_date_icon",src:Jo,alt:""})])],-1)),Ay=m(()=>t("td",{width:"15%"},"Therapist:",-1)),Py=m(()=>t("td",{width:"15%"},[t("div",{class:"EmailSensitive_box"},[r(" Time "),t("img",{class:"booking_date_icon",src:ea,alt:""})])],-1)),Ny=m(()=>t("td",{width:"15%"},"Client Name:",-1)),Ty=m(()=>t("td",{width:"15%"},"Service:",-1)),Ey={style:{display:"flex","flex-wrap":"wrap","align-items":"center"}},My={key:0,style:{display:"flex","flex-wrap":"wrap","align-items":"center"}},By={key:0},Yy={key:0},Oy=m(()=>t("td",{width:"15%"},"Amount:",-1)),Fy=m(()=>t("td",null,"Look for treatmemt:",-1)),zy=m(()=>t("td",{width:"15%"},"Invoice therpist:",-1)),Ry=m(()=>t("td",null,"Client Note:",-1)),jy={colspan:"4"},Ly={class:"booking_button"},Qy={key:1,class:"fieldset"},Hy=m(()=>t("legend",{class:"legend"},"Operational Info",-1)),Wy={class:"createOrderobj_box66"},qy=m(()=>t("td",{width:"30%"},"CheckIn Time",-1)),Gy={key:0},Zy={key:0},Ky=m(()=>t("td",null,"Complete Time",-1)),Xy={key:0,class:""},Jy={key:1},eb=m(()=>t("td",null,"Confirmed Time",-1)),tb={key:0,class:""},lb={key:2},nb=m(()=>t("td",null,"Customer Evalution",-1)),ob={key:3},ab=m(()=>t("td",null,"Deducation",-1)),sb={key:2,class:"fieldset"},ib=m(()=>t("legend",{class:"legend"},"Notes",-1)),db={class:"createOrderobj_box66"},ub=m(()=>t("tr",{class:"createOrderobj_box66_tr"},[t("td"),t("td",null,"Form"),t("td",null,"Img")],-1)),rb=m(()=>t("td",{width:"30%"},"Health Form",-1)),_b={width:"30%"},cb={class:"EmailSensitive_box"},pb={class:"EmailSensitive_box"},mb=m(()=>t("img",{class:"delclose_icon",src:ul,alt:""},null,-1)),vb={key:0},gb=m(()=>t("td",{width:"30%"},"Informed Consent",-1)),hb={class:"EmailSensitive_box"},yb={class:"EmailSensitive_box"},bb=m(()=>t("img",{class:"delclose_icon",src:ul,alt:""},null,-1)),fb={key:1},kb=m(()=>t("td",{width:"30%"},"Sensitive Consent",-1)),xb={class:"EmailSensitive_box"},Cb={class:"EmailSensitive_box"},$b=m(()=>t("img",{class:"delclose_icon",src:ul,alt:""},null,-1)),Vb={key:2},Db=m(()=>t("td",{width:"30%"},"Ongoing",-1)),wb={class:"EmailSensitive_box"},Ib={class:"EmailSensitive_box"},Ub=m(()=>t("img",{class:"delclose_icon",src:ul,alt:""},null,-1)),Sb={key:3},Ab=m(()=>t("td",{width:"30%"},"Treatment Plan",-1)),Pb={class:"EmailSensitive_box"},Nb={class:"EmailSensitive_box"},Tb=m(()=>t("img",{class:"delclose_icon",src:ul,alt:""},null,-1)),Eb={key:4},Mb=m(()=>t("td",{width:"30%"},"Treatment Notes",-1)),Bb={class:"EmailSensitive_box"},Yb={class:"EmailSensitive_box"},Ob=m(()=>t("img",{class:"delclose_icon",src:ul,alt:""},null,-1)),Fb={key:5},zb=m(()=>t("td",null,"TCM",-1)),Rb={class:"EmailSensitive_box"},jb={class:"EmailSensitive_box"},Lb=m(()=>t("img",{class:"delclose_icon",src:ul,alt:""},null,-1)),Qb=m(()=>t("td",{width:"30%"},"Treatment",-1)),Hb={class:"EmailSensitive_box"},Wb={class:"EmailSensitive_box"},qb=m(()=>t("img",{class:"delclose_icon",src:ul,alt:""},null,-1)),Gb={key:0,class:"booking_button",style:{"margin-top":"10px"}},Zb={key:1,class:"createOrderobj_box77_box"},Kb={class:"createOrderobj_box77"},Xb=m(()=>t("tr",null,[t("th",null,"Date"),t("th",null,"Time"),t("th",null,"Services"),t("th",null,"Therapist"),t("th",null,"Note Content")],-1)),Jb={style:{"line-height":"24px"}},ef={key:0,class:"EmailSensitive_box"},tf=["onClick"],lf=["onClick"],nf={key:1,class:"EmailSensitive_box"},of=["onClick"],af=["onClick"],sf={key:2,class:"EmailSensitive_box"},df=["onClick"],uf=["onClick"],rf={key:3,class:"EmailSensitive_box"},_f=["onClick"],cf=["onClick"],pf={key:4,class:"EmailSensitive_box"},mf=["onClick"],vf=["onClick"],gf={key:5,class:"EmailSensitive_box"},hf=["onClick"],yf=["onClick"],bf={class:"EmailSensitive_box"},ff=["onClick"],kf=["onClick"],xf={key:3,class:"fieldset"},Cf=m(()=>t("legend",{class:"legend"},"Invoices",-1)),$f={class:"booking_button"},Vf={key:0,class:"booking_button",style:{margin:"-15px 0 6px 0"}},Df={key:1,class:"createOrderobj_box66"},wf=m(()=>t("tr",null,[t("td",null,"Invoice#"),t("td",null,"Files"),t("td",null,"Service"),t("td",null,"Total($)"),t("td",null,"Date"),t("td",null,"Paid Amount($)"),t("td",null,"Licence therpist"),t("td",null,"Action")],-1)),If=["onClick"],Uf={style:{display:"flex"}},Sf={key:4,class:"fieldset"},Af=m(()=>t("legend",{class:"legend"},"Relation Booking",-1)),Pf={class:"createOrderobj_box66"},Nf=m(()=>t("tr",{class:"createOrderobj_box66_tr"},[t("td",null,"Booking #"),t("td",null,"Date"),t("td",null,"Time"),t("td",null,"Duration"),t("td",null,"Amount"),t("td",null,"Invoice#")],-1)),Tf=m(()=>t("div",{class:"dialog_tilte"},"Is this confirmed the Appointment ?",-1)),Ef={key:0},Mf={key:1,class:"Invitation10"},Bf={key:2,class:"Invitation10"},Yf={class:"part_out_button",style:{"margin-top":"80px"}},Of=m(()=>t("div",{class:"dialog_tilte"},"Virtual Booking",-1)),Ff={class:"createOrderobj_box"},zf=m(()=>t("tr",{class:"createOrderobj_box66_tr"},[t("td",null,"Index"),t("td",null,"Invoice#"),t("td",null,"Service"),t("td",null,"Duration"),t("td",null,"Amount")],-1)),Rf={width:"5%"},jf=m(()=>t("div",{class:"dialog_tilte"},"Sensitive Form Email",-1)),Lf={class:"treated_desc_box",style:{"flex-direction":"column","align-items":"flex-start","margin-top":"25px"}},Qf=m(()=>t("div",{class:"desc1",style:{margin:"30px 0 7px 0"}}," List Clinical Indication: ",-1)),Hf={class:"part_out_button"},Wf=m(()=>t("div",{class:"dialog_tilte"},"file list",-1)),qf={style:{"margin-top":"25px"}},Gf=["onClick"],Zf=st({name:"/crm/yuyue/components/bookingDetail"}),Kf=st({...Zf,props:{str:{type:String,default:""},bookingorder_id:{type:String,default:""}},emits:["update:bookingDetailDialog1","update:onbKDetail"],setup(K,{emit:he}){const S=K,fe=ue("small"),{searchDetail:z,btnSearchPart:Nt,loading:ye,small:yt,selectList:bt,columns:wt,checkList:pe,pagination:it,handleSizeChange:je,handleCurrentChange:Le,PartList:De,deliverDialog:Ue,selectClick:F,deliverDataArr:Se,btnDeliverConfirm:We,BookingInfoData:de,Terapist:I,get_table_box:Qe,bookingDate:_t,serverDate:qe,formArr:p,calendarData:Bt,loadDaysClander:Ye,onDay:Ne,addBookingDialog:q,onAddBooking:ne,addForm:N,goPrivacy:Te,PrivacyDialog:oe,ClientDialog:ve,eventIsNum:te,ClientData:lt,locationDialog:Oe,eventIsNumlocation:Y,locationData:ee,onSelectLocation:x,onSelClient:ke,btnAddConfirm:Ee,serviceData:It,onHealthForm:Xe,health_info:Q,infoData:dt,healthDialog:ft,btnHealthConfirm:Rt,onCheckIn:jt,addDuringDialog:kt,addDuringConfirm:Lt,onPaymant:we,onHealth:xt,sandEmailDialog:Ct,EmailArr:me,onSend:nt,onService:ct,onCancel:Yt,ClientDetail:He,BookingList:be,NoteList:L,onMore:xe,onRetract:$t,onEmail:Je,items:Gt,onDelete:et,onAddItem:ut,formDialog:Ge,Form1Edit:ze,planArr:Z,noteArr:le,sensitivedArr:_,ougoingArr:g,isData:R,isData1:$,TimeData:Ce,DurationData:Vt,initialData:M,areasData1:ge,usedData1:$e,receivedData1:v,treatedData:C,submitNoteForm:O,selectedTr:W,selectedTr1:Re,btnInitia:Ae,coatingRequire:w,coatingRequire1:pt,coatingRequire2:se,onTime:Ut,onDuration:Tt,onReceived:rl,btnAddInvoice:ml,items1:zl,InvoiceType:El,during_price_array:Ml,onIs_tax:Cl,AddItem:Qt,onDeleteI:Ot,IncludeTax:$l,onPrice:Vl,taxData:Dl,invoiceConfirm:wl,duringPrice:Il,changeService:Ul,invoiceDialog:_l,descriptionData:Sl,signatureCanvas:vl,signatureDataUrl:Al,saveSignature:gl,clearSignature:Rl,autographDialog:Ft,openAutograph:Et,disabledBeforeToday:Dt,signalData:Pl,eventSignal:Zt,addServiceData:U,onServiceAdd:Ie,onArrowLeft:A,onArrowRight:Be,btnClinic:St,btnSearchService:mt,LicenceServeData:vt,btnAmount:At,btnAmount1:tt,CollectionDialog:h,btnCollection:re,CollectionData:c,bookingPaymentConfirm:_e,addCollectionDialog:B,AddCollect:gt,collectionArr:ce,btncollectionConfirm:dn,btnDelBooking:An,btnEdit:Pn,TherapistList1:Nn,emailData:Tn,InvoiceDetailDialog:jl,company_info:d8,customer_info:u8,info:r8,licenceDetail:_8,detailInfo:c8,invoiceData:Bl,onCancelEmail:En,sendEmail:Mn,sandEmailInvoiceDialog:Ll,noSend:Bn,btnShowNumber:un,InvoiceEmailSend:Yn,DeducationData:p8,selectedDeducation:m8,customerSubmit:On,customerConfirmDialog:Ql,onShare1:Fn,sigArr:Hl,btnEvaluation:zn,EvaluationDialog:Wl,evaluationinfo:Yl,evaluationImg:Rn,SendEvaluationEmail:jn,openInvoAutograph:Ln,signalUrl:ql,btnFinish:Qn,onEmailSensitive:v8,addMessageData:Hn,onMessageData:Wn,btnIsSensitived:g8,btnIsInformed:h8,btnIsHealthForm:qn,onAppointComplete:Gn,btnBookingDetail:y8,bookingDetailDialog:b8,bookedArr:f,handleExceed:Ht,handleChangePic:Wt,bookingImg:Kt,uploadSlotFile1:Xt,btnFormImgView:Jt,onNotesForm:hl,btnFormImgView8:cl,getbookingDetalInvoiceDetail:Zn,bookingInvoiceEmailSend:Kn,payMethodData:Xn,AccountData:Jn,btnPrintPDF:eo,btnHistory:to,btnService:lo,btnFinish1:no,FinishDialog:Gl,btnAddmultiple:oo,changeNumber:ao,intervalDays:so,BookingsByDate:io,bookingByDate:rn,changeTime:uo,btnViewtime:ro,onSituationArr:_o,onBackInvoice:f8,handleDblClick:k8,visual_data:x8,virtualDialog:Zl,virtualArr:co,healthDialog1:C8,HealthArr:Ve,rashesBruise:$8,SensitiveDialog:Kl,SensitiveEmail:po,SendEmailSensitive:mo,GoaddTherapist:V8,GoaddService:D8,HealthEmail:w8,btnFillout:_n,detaiilMenu:vo,onDetaiilMenu:go,ServiceInvoice:cn,stulesShow:I8,btnStulesShow:U8,onDeleteService:ho,isleftShow:S8,canLicenceTherapist:yo,canLicenceTherapistConfirm:bo,fullscreenLoading:fo,openFullScreen1:ko,ChargeDialog:yl,eventCharge:xo,str1:Co,ChargeArr:$o,uploadSlotFile11:Vo,btnFile:Do,fileArr:wo,onFile:pn,fileDialog:Xl,onChineseMedical:Jl,chineseArr:Io,chineseMedicalDialog:bl,eventChinese:Uo,additionalService:mn,changeAdditional:So}=ta(S,he);return al(()=>{}),(ht,s)=>{const el=H("el-option"),tl=H("el-select"),G=H("el-button"),ll=H("el-checkbox"),Ze=H("el-date-picker"),en=H("el-time-picker"),Ao=H("el-input-number"),Me=H("el-dialog"),ot=H("el-table-column"),vn=H("el-table"),tn=H("el-switch"),qt=H("el-upload"),Po=H("el-rate"),No=Zo("loading");return n(),o("div",y_,[d(Me,{style:{width:"80%"},modelValue:e(q),"onUpdate:modelValue":s[18]||(s[18]=l=>T(q)?q.value=l:null),title:"",draggable:""},{default:u(()=>[e(N).booking_id==""?(n(),o("div",b_," Add Booking ")):i("",!0),e(N).booking_id?(n(),o("div",f_,"Edit Booking")):i("",!0),e(N).booking_id==""?(n(),o("div",k_," Therapist:"+a(e(N).Therapist_name),1)):i("",!0),e(p).type==2&&e(N).booking_id?(n(),o("div",x_,[r(" Therapist "),C_])):i("",!0),e(p).type==2&&e(N).booking_id?(n(),o("div",$_,[d(tl,{style:{width:"100%"},clearable:"true",modelValue:e(N).Therapist_id,"onUpdate:modelValue":s[0]||(s[0]=l=>e(N).Therapist_id=l),filterable:"","allow-create":"","default-first-option":"","reserve-keyword":!1,placeholder:"Please select"},{default:u(()=>[(n(!0),o(V,null,D(e(Nn),l=>(n(),P(el,{key:l.id,label:l.text,value:l.value},null,8,["label","value"]))),128))]),_:1},8,["modelValue"])])):i("",!0),e(p).type==1?(n(),o("div",V_,[r(" Location "),D_])):i("",!0),e(p).type==1?(n(),o("div",w_,[b(t("input",{disabled:"","onUpdate:modelValue":s[1]||(s[1]=l=>e(N).loacation_name_add=l),class:"input2",type:"text"},null,512),[[k,e(N).loacation_name_add]]),e(N).booking_id?(n(),P(G,{key:0,type:"primary",style:{"margin-left":"10px"},plain:"",size:"small",onClick:s[2]||(s[2]=l=>e(x)(2))},{default:u(()=>[r(" Select ")]),_:1})):i("",!0)])):i("",!0),t("div",I_,[r(" Client"),U_,e(N).Client_name?(n(),P(G,{key:0,type:"primary",style:{"margin-left":"30px"},plain:"",size:"small",onClick:s[3]||(s[3]=l=>e(He)())},{default:u(()=>[r(" Detail ")]),_:1})):i("",!0)]),t("div",S_,[t("div",{onClick:s[4]||(s[4]=l=>e(ke)()),class:"input2",style:{"line-height":"28px",cursor:"pointer"}},a(e(N).Client_name),1)]),A_,t("div",P_,[(n(!0),o(V,null,D(e(U),(l,j)=>(n(),o("div",{class:E(["service_desc",{service_desc_active:l.is_Selected1==1}]),key:l.id,onClick:fl(y=>e(Ie)(l),["stop"])},a(l.name),11,N_))),128))]),e(mn).length>0?(n(),o("div",T_,[t("table",E_,[M_,(n(!0),o(V,null,D(e(mn),(l,j)=>(n(),o("tr",{key:l.id},[t("td",null,[d(ll,{onChange:e(So),modelValue:l.is_Selected,"onUpdate:modelValue":y=>l.is_Selected=y,label:"",size:"small"},null,8,["onChange","modelValue","onUpdate:modelValue"])]),t("td",null,a(l.service_name),1),t("td",null,a(l.duration)+"min",1),t("td",null,a(l.amount?l.amount:0)+"$",1)]))),128))])])):i("",!0),B_,t("div",Y_,[d(Ze,{disabled:e(N).booking_id=="",style:{width:"100%"},modelValue:e(N).date,"onUpdate:modelValue":s[5]||(s[5]=l=>e(N).date=l),type:"date",disabledDate:ht.disabledWeekends,"value-format":"YYYY-MM-DD",placeholder:"Please select",onChange:e(qe)},null,8,["disabled","modelValue","disabledDate","onChange"])]),t("div",O_,[F_,d(en,{style:{width:"180px"},modelValue:e(N).service_times,"onUpdate:modelValue":s[6]||(s[6]=l=>e(N).service_times=l),"disabled-hours":ht.disabledHours,"disabled-minutes":ht.disabledMinutes,"disabled-seconds":ht.disabledSeconds,placeholder:"Please select","end-placeholder":"End time","value-format":"HH:mm",format:"HH:mm"},null,8,["modelValue","disabled-hours","disabled-minutes","disabled-seconds"]),d(G,{style:{margin:"0 40px 0 10px"},type:"primary",plain:"",size:"small",onClick:s[7]||(s[7]=l=>e(io)())},{default:u(()=>[r("View time")]),_:1}),z_,b(t("input",{style:{margin:"0 6px"},placeholder:"Please Add Duration","onUpdate:modelValue":s[8]||(s[8]=l=>e(N).During=l),class:"input",type:"text",onInput:s[9]||(s[9]=l=>e(At)(1))},null,544),[[k,e(N).During]]),r(" ( Min. ) "),R_,b(t("input",{placeholder:"Please enter","onUpdate:modelValue":s[10]||(s[10]=l=>e(N).amount=l),class:"input",type:"text"},null,512),[[k,e(N).amount]])]),e(rn).length>0?(n(),o("table",j_,[L_,(n(!0),o(V,null,D(e(rn),(l,j)=>(n(),o("tr",{key:l.id},[t("td",null,a(j+1),1),t("td",null,a(l.begin_time)+" ~ "+a(l.end_time),1)]))),128))])):i("",!0),Q_,t("div",H_,[b(t("textarea",{style:{height:"60px"},class:"textarea_input1",placeholder:"Please enter","onUpdate:modelValue":s[11]||(s[11]=l=>e(N).description=l),maxlength:"600"},null,512),[[k,e(N).description]])]),e(N).booking_id==""?(n(),o("div",W_,[d(ll,{onChange:e(oo),modelValue:e(N).is_items,"onUpdate:modelValue":s[12]||(s[12]=l=>e(N).is_items=l),label:"Add multiple items",size:"large"},null,8,["onChange","modelValue"]),e(N).is_items?(n(),o("div",q_," Interval Days : ")):i("",!0),e(N).is_items?(n(),P(Ao,{key:1,controls:!0,onChange:e(so),modelValue:e(N).interval_days,"onUpdate:modelValue":s[13]||(s[13]=l=>e(N).interval_days=l),step:1},null,8,["onChange","modelValue"])):i("",!0),e(N).is_items?(n(),P(G,{key:2,style:{"margin-left":"10px"},type:"primary",plain:"",onClick:s[14]||(s[14]=l=>e(ao)())},{default:u(()=>[r("Refresh Date")]),_:1})):i("",!0)])):i("",!0),e(N).is_items?(n(),o("div",G_,[t("table",Z_,[K_,(n(!0),o(V,null,D(e(Gt),(l,j)=>(n(),o("tr",{key:l.id},[t("td",null,[d(Ze,{style:{width:"150px"},modelValue:l.date,"onUpdate:modelValue":y=>l.date=y,type:"date","value-format":"YYYY-MM-DD",placeholder:"Please select"},null,8,["modelValue","onUpdate:modelValue"])]),t("td",null,[t("div",X_,[d(en,{onChange:e(uo),style:{width:"150px"},modelValue:l.time,"onUpdate:modelValue":y=>l.time=y,"disabled-hours":ht.disabledHours,"disabled-minutes":ht.disabledMinutes,"disabled-seconds":ht.disabledSeconds,placeholder:"Please select","end-placeholder":"End time","value-format":"HH:mm",format:"HH:mm"},null,8,["onChange","modelValue","onUpdate:modelValue","disabled-hours","disabled-minutes","disabled-seconds"]),l.is_conflict==1?(n(),o("img",{key:0,onClick:y=>e(ro)(l),class:"warn_icon",src:g_,alt:""},null,8,J_)):i("",!0),l.is_show==1?(n(),o("div",ec,[(n(!0),o(V,null,D(l.booking_log,(y,Pt)=>(n(),o("div",{style:{"font-size":"12px",width:"100px"},key:y.id},a(Pt+1)+" . "+a(y.begin_time)+" ~ "+a(y.end_time),1))),128))])):i("",!0)])]),t("td",null,[b(t("input",{placeholder:"Please Add Duration","onUpdate:modelValue":y=>l.duration=y,class:"input2",onInput:y=>e(tt)(l),type:"text"},null,40,tc),[[k,l.duration]])]),t("td",null,[b(t("input",{placeholder:"Please Add Amount","onUpdate:modelValue":y=>l.amount=y,class:"input2",type:"text"},null,8,lc),[[k,l.amount]])]),t("td",null,[d(G,{link:"",type:"danger",onClick:y=>e(et)(l)},{default:u(()=>[r("Delete")]),_:2},1032,["onClick"])])]))),128))]),d(G,{type:"primary",plain:"",size:"small",style:{"margin-left":"20px"},onClick:s[15]||(s[15]=l=>e(ut)())},{default:u(()=>[r(" Add ")]),_:1})])):i("",!0),e(N).booking_id==""&&e(N).is_Auto==1?(n(),P(ll,{key:11,style:{"margin-left":"10px"},modelValue:e(p).is_invoice,"onUpdate:modelValue":s[16]||(s[16]=l=>e(p).is_invoice=l),label:"Auto generate invoices.",size:"large"},null,8,["modelValue"])):i("",!0),t("div",nc,[d(G,{loading:e(ye),type:"primary",onClick:s[17]||(s[17]=l=>e(Ee)())},{default:u(()=>[r("Submit")]),_:1},8,["loading"])])]),_:1},8,["modelValue"]),d(Me,{style:{width:"50%"},modelValue:e(oe),"onUpdate:modelValue":s[19]||(s[19]=l=>T(oe)?oe.value=l:null),title:"",draggable:""},{default:u(()=>[oc]),_:1},8,["modelValue"]),d(Me,{style:{width:"78%"},modelValue:e(ve),"onUpdate:modelValue":s[21]||(s[21]=l=>T(ve)?ve.value=l:null),title:"",draggable:""},{default:u(()=>[d(pl,{onEventIsNum:e(te),str:1,ClientData:e(lt),ClientDialog:e(ve),"onUpdate:ClientDialog":s[20]||(s[20]=l=>T(ve)?ve.value=l:null)},null,8,["onEventIsNum","ClientData","ClientDialog"])]),_:1},8,["modelValue"]),d(Me,{style:{width:"78%"},modelValue:e(Oe),"onUpdate:modelValue":s[23]||(s[23]=l=>T(Oe)?Oe.value=l:null),title:"",draggable:""},{default:u(()=>[d(Tl,{onEventIsNumlocation:e(Y),note:1,locationData:e(ee),locationDialog:e(Oe),"onUpdate:locationDialog":s[22]||(s[22]=l=>T(Oe)?Oe.value=l:null)},null,8,["onEventIsNumlocation","locationData","locationDialog"])]),_:1},8,["modelValue"]),d(Me,{style:{width:"95%",padding:"0 40px"},modelValue:e(ft),"onUpdate:modelValue":s[38]||(s[38]=l=>T(ft)?ft.value=l:null),title:"",draggable:""},{default:u(()=>[ac,sc,t("table",ic,[t("tr",null,[dc,t("td",uc,[b(t("input",{disabled:e(p).is_health==2,type:"text","onUpdate:modelValue":s[24]||(s[24]=l=>e(Ve).name=l),class:"input8"},null,8,rc),[[k,e(Ve).name]])]),_c,t("td",cc,[d(Ze,{disabled:e(p).is_health==2,modelValue:e(Ve).today_date,"onUpdate:modelValue":s[25]||(s[25]=l=>e(Ve).today_date=l),type:"date",format:"YYYY-MM-DD","value-format":"YYYY-MM-DD",placeholder:"Please enter",size:fe.value},null,8,["disabled","modelValue","size"])])]),t("tr",null,[pc,t("td",null,[b(t("input",{disabled:e(p).is_health==2,type:"text","onUpdate:modelValue":s[26]||(s[26]=l=>e(Ve).address=l),class:"input8"},null,8,mc),[[k,e(Ve).address]])]),vc,t("td",null,[d(Ze,{disabled:e(p).is_health==2,modelValue:e(Ve).Birth,"onUpdate:modelValue":s[27]||(s[27]=l=>e(Ve).Birth=l),type:"date",format:"YYYY-MM-DD","value-format":"YYYY-MM-DD",placeholder:"Please enter",size:fe.value},null,8,["disabled","modelValue","size"])])]),t("tr",null,[gc,t("td",null,[t("div",hc,[b(t("input",{disabled:e(p).is_health==2,type:"text","onUpdate:modelValue":s[28]||(s[28]=l=>e(Ve).City=l),class:"input8"},null,8,yc),[[k,e(Ve).City]]),bc,b(t("input",{disabled:e(p).is_health==2,type:"text","onUpdate:modelValue":s[29]||(s[29]=l=>e(Ve).Code_ZIP=l),class:"input8"},null,8,fc),[[k,e(Ve).Code_ZIP]])])]),kc,t("td",null,[b(t("input",{disabled:e(p).is_health==2,type:"text","onUpdate:modelValue":s[30]||(s[30]=l=>e(Ve).Occupation=l),class:"input8"},null,8,xc),[[k,e(Ve).Occupation]])])]),t("tr",null,[Cc,t("td",null,[b(t("input",{disabled:e(p).is_health==2,type:"text","onUpdate:modelValue":s[31]||(s[31]=l=>e(Ve).Phone=l),class:"input8"},null,8,$c),[[k,e(Ve).Phone]])]),Vc,t("td",null,[b(t("input",{disabled:e(p).is_health==2,type:"text","onUpdate:modelValue":s[32]||(s[32]=l=>e(Ve).Work_Phone=l),class:"input8"},null,8,Dc),[[k,e(Ve).Work_Phone]])])]),t("tr",null,[wc,t("td",null,[b(t("textarea",{disabled:e(p).is_health==2,class:"textarea_inputjian",placeholder:"Please enter","onUpdate:modelValue":s[33]||(s[33]=l=>e(Ve).hear_about=l),maxlength:"600"},null,8,Ic),[[k,e(Ve).hear_about]])]),Uc,t("td",null,[b(t("input",{disabled:e(p).is_health==2,type:"text","onUpdate:modelValue":s[34]||(s[34]=l=>e(Ve).Physician=l),class:"input8"},null,8,Sc),[[k,e(Ve).Physician]])])]),t("tr",null,[Ac,t("td",null,[b(t("textarea",{disabled:e(p).is_health==2,class:"textarea_inputjian",placeholder:"Please enter","onUpdate:modelValue":s[35]||(s[35]=l=>e(Ve).chief_complaint=l),maxlength:"600"},null,8,Pc),[[k,e(Ve).chief_complaint]])]),Nc,t("td",null,[b(t("input",{disabled:e(p).is_health==2,type:"text","onUpdate:modelValue":s[36]||(s[36]=l=>e(Ve).Phone1=l),class:"input8"},null,8,Tc),[[k,e(Ve).Phone1]])])])]),t("div",Ec,[Mc,t("div",Bc,[t("div",Yc,[(n(!0),o(V,null,D(e(Q),(l,j)=>(n(),o("div",{class:E(["health_info_box",{none:j>1}]),key:j},[t("div",Oc,a(l.title),1),(n(!0),o(V,null,D(l.detail,(y,Pt)=>(n(),o("div",{class:"",key:Pt},[y.type=="checkbox"?(n(),P(ll,{key:0,disabled:e(p).is_health==2,checked:y.is_selected==1,label:y.title,size:"large",onChange:ie=>e(xt)(l.detail,y)},null,8,["disabled","checked","label","onChange"])):i("",!0),y.type=="input"?(n(),o("div",Fc,[t("div",zc,a(y.title),1),b(t("input",{disabled:e(p).is_health==2,type:"text","onUpdate:modelValue":ie=>y.field_value=ie,class:"input1"},null,8,Rc),[[k,y.field_value]])])):i("",!0),y.type=="textarea"?(n(),o("div",jc,[t("div",Lc,a(y.title),1),b(t("textarea",{disabled:e(p).is_health==2,class:"textarea_input",style:{width:"272px"},placeholder:"Please enter","onUpdate:modelValue":ie=>y.field_value=ie,maxlength:"600"},null,8,Qc),[[k,y.field_value]])])):i("",!0),y.type=="date"?(n(),o("div",Hc,[t("div",Wc,a(y.title),1),d(Ze,{disabled:e(p).is_health==2,style:{width:"272px"},modelValue:y.field_value,"onUpdate:modelValue":ie=>y.field_value=ie,type:"date",format:"YYYY-MM-DD","value-format":"YYYY-MM-DD",placeholder:"Please enter"},null,8,["disabled","modelValue","onUpdate:modelValue"])])):i("",!0),y.type=="label"?(n(),o("div",qc,[t("div",Gc,a(y.title),1)])):i("",!0)]))),128))],2))),128))]),t("div",Zc,[(n(!0),o(V,null,D(e(Q),(l,j)=>(n(),o("div",{class:E(["health_info_box",{none:j<2||j>4}]),key:j},[t("div",Kc,a(l.title),1),(n(!0),o(V,null,D(l.detail,(y,Pt)=>(n(),o("div",{class:"",key:Pt},[y.type=="checkbox"?(n(),P(ll,{key:0,disabled:e(p).is_health==2,checked:y.is_selected==1,label:y.title,size:"large",onChange:ie=>e(xt)(l.detail,y)},null,8,["disabled","checked","label","onChange"])):i("",!0),y.type=="input"?(n(),o("div",Xc,[t("div",Jc,a(y.title),1),b(t("input",{disabled:e(p).is_health==2,type:"text","onUpdate:modelValue":ie=>y.field_value=ie,class:"input1"},null,8,ep),[[k,y.field_value]])])):i("",!0),y.type=="textarea"?(n(),o("div",tp,[t("div",lp,a(y.title),1),b(t("textarea",{disabled:e(p).is_health==2,class:"textarea_input",style:{width:"97%"},placeholder:"Please enter","onUpdate:modelValue":ie=>y.field_value=ie,maxlength:"600"},null,8,np),[[k,y.field_value]])])):i("",!0),y.type=="date"?(n(),o("div",op,[t("div",ap,a(y.title),1),d(Ze,{disabled:e(p).is_health==2,style:{width:"272px"},modelValue:y.field_value,"onUpdate:modelValue":ie=>y.field_value=ie,type:"date",format:"YYYY-MM-DD","value-format":"YYYY-MM-DD",placeholder:"Please enter"},null,8,["disabled","modelValue","onUpdate:modelValue"])])):i("",!0),y.type=="label"?(n(),o("div",sp,[t("div",ip,a(y.title),1)])):i("",!0)]))),128))],2))),128))]),t("div",dp,[(n(!0),o(V,null,D(e(Q),(l,j)=>(n(),o("div",{class:E(["health_info_box",{none:j<5}]),key:j},[t("div",up,a(l.title),1),(n(!0),o(V,null,D(l.detail,(y,Pt)=>(n(),o("div",{class:"",key:Pt},[y.type=="checkbox"?(n(),P(ll,{key:0,disabled:e(p).is_health==2,checked:y.is_selected==1,label:y.title,size:"large",onChange:ie=>e(xt)(l.detail,y)},null,8,["disabled","checked","label","onChange"])):i("",!0),y.type=="input"?(n(),o("div",rp,[t("div",_p,a(y.title),1),b(t("input",{disabled:e(p).is_health==2,type:"text","onUpdate:modelValue":ie=>y.field_value=ie,class:"input1"},null,8,cp),[[k,y.field_value]])])):i("",!0),y.type=="textarea"?(n(),o("div",pp,[t("div",mp,a(y.title),1),b(t("textarea",{disabled:e(p).is_health==2,class:"textarea_input",style:{width:"97%"},placeholder:"Please enter","onUpdate:modelValue":ie=>y.field_value=ie,maxlength:"600"},null,8,vp),[[k,y.field_value]])])):i("",!0),y.type=="date"?(n(),o("div",gp,[t("div",hp,a(y.title),1),d(Ze,{disabled:e(p).is_health==2,style:{width:"272px"},modelValue:y.field_value,"onUpdate:modelValue":ie=>y.field_value=ie,type:"date",format:"YYYY-MM-DD","value-format":"YYYY-MM-DD",placeholder:"Please enter"},null,8,["disabled","modelValue","onUpdate:modelValue"])])):i("",!0),y.type=="label"?(n(),o("div",yp,[t("div",bp,a(y.title),1)])):i("",!0)]))),128))],2))),128))])])]),e(p).is_health==1?(n(),o("div",fp,[d(G,{loading:e(ye),type:"primary",onClick:s[37]||(s[37]=l=>e(Rt)())},{default:u(()=>[r("Submit")]),_:1},8,["loading"])])):i("",!0)]),_:1},8,["modelValue"]),t("div",kp,[d(Me,{style:{width:"30%"},modelValue:e(kt),"onUpdate:modelValue":s[41]||(s[41]=l=>T(kt)?kt.value=l:null),title:"",draggable:""},{default:u(()=>[t("div",xp,[r(" Service : "),t("span",Cp,a(e(me).bookingServers),1)]),t("div",$p,[Vp,e(me).is_health_form==1?(n(),P(G,{key:0,size:"small",plain:"",type:"success",style:{width:"54px"}},{default:u(()=>[r("Ok")]),_:1})):i("",!0),e(me).is_health_form==0?(n(),P(G,{key:1,size:"small",plain:"",type:"warning",onClick:s[39]||(s[39]=l=>e(qn)())},{default:u(()=>[r("Fill In")]),_:1})):i("",!0)]),e(me).bookingServers&&e(me).bookingServers.includes("Massage")?(n(),o("div",Dp)):i("",!0),e(me).bookingServers&&e(me).bookingServers.includes("Massage")?(n(),o("div",wp)):i("",!0),t("div",Ip,[d(G,{type:"primary",onClick:s[40]||(s[40]=l=>e(Lt)())},{default:u(()=>[r("Submit")]),_:1})])]),_:1},8,["modelValue"])]),t("div",Up,[d(Me,{style:{width:"78%"},modelValue:e(Ct),"onUpdate:modelValue":s[44]||(s[44]=l=>T(Ct)?Ct.value=l:null),title:"",draggable:""},{default:u(()=>[e(me).is_booking==1?(n(),o("div",Sp," Booking success ")):i("",!0),e(me).is_booking==2?(n(),o("div",Ap," Send "+a(e(me).booking_notice_type),1)):i("",!0),t("div",Pp,[(n(!0),o(V,null,D(e(Hn),l=>(n(),o("div",{class:E(["service_desc",{service_desc_active:l.is_selected==1}]),key:l.id,onClick:j=>e(Wn)(l)},a(l.text),11,Np))),128))]),e(me).booking_notice_type&&e(me).booking_notice_type.includes("email")?(n(),o("div",Tp," Email to : "+a(e(me).email_to),1)):i("",!0),e(me).booking_notice_type&&e(me).booking_notice_type.includes("message")?(n(),o("div",Ep," SMS to : "+a(e(me).phone_to),1)):i("",!0),t("div",Mp,a(e(me).name)+" :",1),t("table",Bp,[Yp,(n(!0),o(V,null,D(e(Tn),(l,j)=>(n(),o("tr",{key:l.id},[t("td",null,a(l.service_date.substr(0,10)),1),t("td",null,a(l.begin_time)+"--"+a(l.end_time),1),t("td",null,a(l.session),1),t("td",null,a(l.description_type),1)]))),128))]),t("div",Op," Health History : "+a(e(me).health_form_url),1),e(me).bookingServers&&e(me).bookingServers.includes("Massage")?(n(),o("div",Fp," Informed consent : "+a(e(me).informed_content_url),1)):i("",!0),zp,t("div",Rp,[d(G,{type:"info",plain:"",onClick:s[42]||(s[42]=l=>e(Yt)())},{default:u(()=>[r("nosend")]),_:1}),d(G,{loading:e(ye),type:"primary",onClick:s[43]||(s[43]=l=>e(nt)())},{default:u(()=>[r("Send Booking Email")]),_:1},8,["loading"])])]),_:1},8,["modelValue"])]),d(Me,{modelValue:e(Ue),"onUpdate:modelValue":s[45]||(s[45]=l=>T(Ue)?Ue.value=l:null),title:"",draggable:""},{default:u(()=>[jp,t("fieldset",Lp,[Qp,d(vn,{border:"",data:e(be),height:"250",style:{width:"100%"}},{default:u(()=>[d(ot,{type:"index",width:"60"}),d(ot,{prop:"booking_order_no",label:"Order#"}),d(ot,{prop:"Status",label:"Status"},{default:u(l=>[t("div",{class:E(["status_desc",[l.row.status=="new"?"new":"show_card",l.row.status=="check_in"?"check_in":"show_card",l.row.status=="payment"?"payment":"show_card",l.row.status=="canceled"?"canceled":"show_card"]])},a(l.row.status),3)]),_:1}),d(ot,{prop:"Therapists_name",label:"Therapist"}),d(ot,{prop:"room",label:"Room"}),d(ot,{prop:"1111111111111",label:"Date"},{default:u(l=>[r(a(l.row.create_time.substring(0,10)),1)]),_:1}),d(ot,{prop:"begin_time",label:"Begin time"}),d(ot,{prop:"session",label:"Session"})]),_:1},8,["data"])]),t("fieldset",Hp,[Wp,d(vn,{border:"",data:e(L),height:"250",style:{width:"100%"}},{default:u(()=>[d(ot,{type:"index",width:"60"}),d(ot,{prop:"ServiceContent",label:"Service Content"}),d(ot,{prop:"Therapists_name",label:"Therapist"}),d(ot,{prop:"company_name",label:"Clinic Name"}),d(ot,{prop:"Comment",label:"Treatment Date"},{default:u(l=>[r(a(l.row.create_time.substring(0,10)),1)]),_:1}),d(ot,{prop:"Comment",label:"Start Time"},{default:u(l=>[r(a(l.row.begin_time.substring(0,8)),1)]),_:1}),d(ot,{prop:"spend_tims",label:"Duration"}),d(ot,{prop:"comment",label:"Comment"})]),_:1},8,["data"])])]),_:1},8,["modelValue"]),d(Me,{style:{width:"70%"},modelValue:e(Ge),"onUpdate:modelValue":s[100]||(s[100]=l=>T(Ge)?Ge.value=l:null),title:"",draggable:""},{default:u(()=>[e(p).form_type=="informed"?(n(),o("div",qp,[Gp,t("div",Zp,[Kp,Xp,Jp,em,tm,lm,nm,om,am,t("div",sm,[im,d(Ze,{disabled:e(p).is_form_edit==2,modelValue:e(p).time,"onUpdate:modelValue":s[46]||(s[46]=l=>e(p).time=l),type:"date",format:"YYYY-MM-DD","value-format":"YYYY-MM-DD",placeholder:"Please select",disabledDate:e(Dt),size:fe.value},null,8,["disabled","modelValue","disabledDate","size"])]),t("div",dm,[um,b(t("input",{class:E([{opacity:e(p).is_form_edit==2},"Signature_input"]),disabled:e(p).is_form_edit==2,type:"text",placeholder:"Please print","onUpdate:modelValue":s[47]||(s[47]=l=>e(p).signal_desc1=l)},null,10,rm),[[k,e(p).signal_desc1]]),e(p).signal_url1?(n(),o("img",{key:0,class:"signal_url_box",src:e(p).signal_url1,alt:""},null,8,_m)):i("",!0),t("div",{class:E([{opacity:e(p).is_form_edit==2},"Manualsignature"]),onClick:s[48]||(s[48]=l=>e(Et)("informed","signal_url1"))}," signature ",2)]),t("div",cm,[pm,b(t("input",{class:E([{opacity:e(p).is_form_edit==2},"Signature_input"]),disabled:e(p).is_form_edit==2,type:"text",placeholder:"Please print","onUpdate:modelValue":s[49]||(s[49]=l=>e(p).signal_desc2=l)},null,10,mm),[[k,e(p).signal_desc2]]),e(p).signal_url2?(n(),o("img",{key:0,class:"signal_url_box",src:e(p).signal_url2,alt:""},null,8,vm)):i("",!0),t("div",{class:E([{opacity:e(p).is_form_edit==2},"Manualsignature"]),onClick:s[50]||(s[50]=l=>e(Et)("informed","signal_url2"))}," signature ",2)])])])):i("",!0),e(p).form_type=="treatment_plan"?(n(),o("div",gm,[hm,b(t("textarea",{class:E([{opacity:e(p).is_form_edit==2},"textarea_input font"]),disabled:e(p).is_form_edit==2,placeholder:"Please enter","onUpdate:modelValue":s[51]||(s[51]=l=>e(Z).plan=l),maxlength:"600"},null,10,ym),[[k,e(Z).plan]]),t("div",bm,[fm,d(Ze,{disabled:e(p).is_form_edit==2,modelValue:e(Z).date,"onUpdate:modelValue":s[52]||(s[52]=l=>e(Z).date=l),type:"date",format:"YYYY-MM-DD","value-format":"YYYY-MM-DD",placeholder:"Please select",disabledDate:e(Dt),size:fe.value},null,8,["disabled","modelValue","disabledDate","size"])]),km,b(t("textarea",{class:E([{opacity:e(p).is_form_edit==2},"textarea_input"]),disabled:e(p).is_form_edit==2,placeholder:"Please enter","onUpdate:modelValue":s[53]||(s[53]=l=>e(Z).daily_living=l),maxlength:"600"},null,10,xm),[[k,e(Z).daily_living]]),Cm,t("div",$m,[(n(!0),o(V,null,D(e(R),(l,j)=>(n(),o("div",{class:"allQuestions_box",key:l.id},[t("div",{class:E(["selected1",{selected_active:l.is_selected==1||e(Z).discussed_with==l.value}]),onClick:y=>e(W)(l,j)},[t("div",{class:E(["selected_min",{selected_min_active:l.is_selected==1||e(Z).discussed_with==l.value}])},null,2)],10,Vm),r(" "+a(l.text),1)]))),128))]),Dm,b(t("textarea",{class:E([{opacity:e(p).is_form_edit==2},"textarea_input"]),disabled:e(p).is_form_edit==2,placeholder:"Please enter","onUpdate:modelValue":s[54]||(s[54]=l=>e(Z).treatment_goal=l),maxlength:"600"},null,10,wm),[[k,e(Z).treatment_goal]]),Im,t("div",Um,[(n(!0),o(V,null,D(e($),(l,j)=>(n(),o("div",{class:"allQuestions_box",key:l.id},[t("div",{class:E(["selected1",{selected_active:l.is_selected==1||e(Z).treatment_plan==l.value}]),onClick:y=>e(Re)(l,j)},[t("div",{class:E(["selected_min",{selected_min_active:l.is_selected==1||e(Z).treatment_plan==l.value}])},null,2)],10,Sm),r(" "+a(l.text),1)]))),128))]),Am,b(t("textarea",{class:E([{opacity:e(p).is_form_edit==2},"textarea_input"]),disabled:e(p).is_form_edit==2,placeholder:"Please enter","onUpdate:modelValue":s[55]||(s[55]=l=>e(Z).focus_treatment=l),maxlength:"600"},null,10,Pm),[[k,e(Z).focus_treatment]]),Nm,b(t("textarea",{class:E([{opacity:e(p).is_form_edit==2},"textarea_input"]),disabled:e(p).is_form_edit==2,placeholder:"Please enter","onUpdate:modelValue":s[56]||(s[56]=l=>e(Z).frequency=l),maxlength:"600"},null,10,Tm),[[k,e(Z).frequency]]),Em,b(t("textarea",{class:E([{opacity:e(p).is_form_edit==2},"textarea_input"]),disabled:e(p).is_form_edit==2,placeholder:"Please enter","onUpdate:modelValue":s[57]||(s[57]=l=>e(Z).duration=l),maxlength:"600"},null,10,Mm),[[k,e(Z).duration]]),Bm,t("div",{class:E(["treated_desc_box",{opacity:e(p).is_form_edit==2}])},[(n(!0),o(V,null,D(e(C),(l,j)=>(n(),o("div",{class:"usedData1_box",key:l.id},[t("div",{onClick:y=>e(w)(l),class:E([{treated_active:l.is_selected==1},"treated_desc"])},a(l.name),11,Ym),l.id==13&&l.is_selected==1?b((n(),o("input",{key:0,class:E([{opacity:e(p).is_form_edit==2},"input3"]),disabled:e(p).is_form_edit==2,"onUpdate:modelValue":y=>l.input=y,type:"text"},null,10,Om)),[[k,l.input]]):i("",!0)]))),128))],2),Fm,b(t("textarea",{class:E([{opacity:e(p).is_form_edit==2},"textarea_input"]),disabled:e(p).is_form_edit==2,placeholder:"Please enter","onUpdate:modelValue":s[58]||(s[58]=l=>e(Z).performed=l),maxlength:"600"},null,10,zm),[[k,e(Z).performed]]),Rm,b(t("textarea",{class:E([{opacity:e(p).is_form_edit==2},"textarea_input"]),disabled:e(p).is_form_edit==2,placeholder:"Please enter","onUpdate:modelValue":s[59]||(s[59]=l=>e(Z).assessments=l),maxlength:"600"},null,10,jm),[[k,e(Z).assessments]]),Lm,b(t("textarea",{class:E([{opacity:e(p).is_form_edit==2},"textarea_input"]),disabled:e(p).is_form_edit==2,placeholder:"Please enter","onUpdate:modelValue":s[60]||(s[60]=l=>e(Z).schedule=l),maxlength:"600"},null,10,Qm),[[k,e(Z).schedule]]),Hm,b(t("textarea",{class:E([{opacity:e(p).is_form_edit==2},"textarea_input"]),disabled:e(p).is_form_edit==2,placeholder:"Please enter","onUpdate:modelValue":s[61]||(s[61]=l=>e(Z).responses=l),maxlength:"600"},null,10,Wm),[[k,e(Z).responses]]),qm,b(t("textarea",{class:E([{opacity:e(p).is_form_edit==2},"textarea_input"]),disabled:e(p).is_form_edit==2,placeholder:"Please enter","onUpdate:modelValue":s[62]||(s[62]=l=>e(Z).hydrotherapy=l),maxlength:"600"},null,10,Gm),[[k,e(Z).hydrotherapy]]),Zm,b(t("textarea",{class:E([{opacity:e(p).is_form_edit==2},"textarea_input"]),disabled:e(p).is_form_edit==2,placeholder:"Please enter","onUpdate:modelValue":s[63]||(s[63]=l=>e(Z).contraindications=l),maxlength:"600"},null,10,Km),[[k,e(Z).contraindications]]),Xm,b(t("textarea",{class:E([{opacity:e(p).is_form_edit==2},"textarea_input"]),disabled:e(p).is_form_edit==2,placeholder:"Please enter","onUpdate:modelValue":s[64]||(s[64]=l=>e(Z).referrals=l),maxlength:"600"},null,10,Jm),[[k,e(Z).referrals]]),e1])):i("",!0),e(p).form_type=="treatment_note"?(n(),o("div",t1,[l1,b(t("textarea",{class:E([{opacity:e(p).is_form_edit==2},"textarea_input"]),disabled:e(p).is_form_edit==2,placeholder:"Please enter","onUpdate:modelValue":s[65]||(s[65]=l=>e(le).notes=l),maxlength:"600"},null,10,n1),[[k,e(le).notes]]),t("div",o1,[a1,d(Ze,{disabled:e(p).is_form_edit==2,modelValue:e(le).date,"onUpdate:modelValue":s[66]||(s[66]=l=>e(le).date=l),type:"date",format:"YYYY-MM-DD","value-format":"YYYY-MM-DD",placeholder:"Please select",disabledDate:e(Dt),style:{width:"180px"}},null,8,["disabled","modelValue","disabledDate"])]),t("div",s1,[i1,d(en,{class:E({opacity:e(p).is_form_edit==2}),disabled:e(p).is_form_edit==2,style:{width:"180px"},modelValue:e(le).time,"onUpdate:modelValue":s[67]||(s[67]=l=>e(le).time=l),"disabled-hours":ht.disabledHours,"disabled-minutes":ht.disabledMinutes,"disabled-seconds":ht.disabledSeconds,placeholder:"Please select","end-placeholder":"End time","value-format":"HH:mm",format:"HH:mm"},null,8,["class","disabled","modelValue","disabled-hours","disabled-minutes","disabled-seconds"]),t("div",{class:E(["allQuestions_box2",{opacity:e(p).is_form_edit==2}])},[(n(!0),o(V,null,D(e(Ce),(l,j)=>(n(),o("div",{class:"allQuestions_box",key:l.id},[t("div",{class:E(["selected1",{selected_active:l.is_selected==1||e(le).timeType==l.value}]),onClick:y=>e(Ut)(l,j)},[t("div",{class:E(["selected_min",{selected_min_active:l.is_selected==1||e(le).timeType==l.value}])},null,2)],10,d1),r(" "+a(l.text),1)]))),128))],2)]),t("div",u1,[r1,b(t("input",{class:E([{opacity:e(p).is_form_edit==2},"input"]),disabled:e(p).is_form_edit==2,type:"text","onUpdate:modelValue":s[68]||(s[68]=l=>e(le).duration=l),style:{margin:"0 20px 0 0"}},null,10,_1),[[k,e(le).duration]]),r(" (Min) ")]),t("div",c1,[p1,b(t("input",{class:E([{opacity:e(p).is_form_edit==2},"input"]),disabled:e(p).is_form_edit==2,type:"text","onUpdate:modelValue":s[69]||(s[69]=l=>e(le).fee=l)},null,10,m1),[[k,e(le).fee]]),v1]),g1,t("div",h1,[(n(!0),o(V,null,D(e(v),(l,j)=>(n(),o("div",{class:"allQuestions_box",key:l.id},[t("div",{class:E(["selected1",{selected_active:l.is_selected==1||e(le).receivedType==l.value}]),onClick:y=>e(rl)(l,j)},[t("div",{class:E(["selected_min",{selected_min_active:l.is_selected==1||e(le).receivedType==l.value}])},null,2)],10,y1),r(" "+a(l.text),1)]))),128))]),t("div",b1,[f1,b(t("input",{class:E([{opacity:e(p).is_form_edit==2},"input1"]),disabled:e(p).is_form_edit==2,type:"text","onUpdate:modelValue":s[70]||(s[70]=l=>e(le).assessment=l)},null,10,k1),[[k,e(le).assessment]])]),t("div",x1,[C1,b(t("input",{type:"text",disabled:"",class:"input1","onUpdate:modelValue":s[71]||(s[71]=l=>e(le).therapist=l)},null,512),[[k,e(le).therapist]])]),$1,b(t("textarea",{class:E([{opacity:e(p).is_form_edit==2},"textarea_input"]),disabled:e(p).is_form_edit==2,placeholder:"Please enter","onUpdate:modelValue":s[72]||(s[72]=l=>e(le).client_goal=l),maxlength:"600"},null,10,V1),[[k,e(le).client_goal]]),D1,t("div",{class:E(["treated_desc_box",{opacity:e(p).is_form_edit==2}])},[(n(!0),o(V,null,D(e($e),(l,j)=>(n(),o("div",{class:"usedData1_box",key:l.id},[t("div",{onClick:y=>e(se)(l),class:E([{treated_active:l.is_selected==1},"treated_desc"])},a(l.name),11,w1),(l.id==9||l.id==10)&&l.is_selected==1?b((n(),o("input",{key:0,class:E([{opacity:e(p).is_form_edit==2},"input3"]),disabled:e(p).is_form_edit==2,"onUpdate:modelValue":y=>l.input=y,type:"text"},null,10,I1)),[[k,l.input]]):i("",!0)]))),128))],2),U1,t("div",{class:E(["treated_desc_box",{opacity:e(p).is_form_edit==2}])},[(n(!0),o(V,null,D(e(ge),(l,j)=>(n(),o("div",{class:"usedData1_box",key:l.id},[t("div",{onClick:y=>e(pt)(l),class:E([{treated_active:l.is_selected==1},"treated_desc"])},a(l.name),11,S1),l.id==13&&l.is_selected==1?b((n(),o("input",{key:0,class:E([{opacity:e(p).is_form_edit==2},"input3"]),disabled:e(p).is_form_edit==2,"onUpdate:modelValue":y=>l.input=y,type:"text"},null,10,A1)),[[k,l.input]]):i("",!0)]))),128))],2),P1,b(t("textarea",{class:E([{opacity:e(p).is_form_edit==2},"textarea_input"]),disabled:e(p).is_form_edit==2,placeholder:"Please enter","onUpdate:modelValue":s[73]||(s[73]=l=>e(le).findings=l),maxlength:"600"},null,10,N1),[[k,e(le).findings]]),T1,b(t("textarea",{class:E([{opacity:e(p).is_form_edit==2},"textarea_input"]),disabled:e(p).is_form_edit==2,placeholder:"Please enter","onUpdate:modelValue":s[74]||(s[74]=l=>e(le).feedback=l),maxlength:"600"},null,10,E1),[[k,e(le).feedback]]),M1,b(t("textarea",{class:E([{opacity:e(p).is_form_edit==2},"textarea_input"]),disabled:e(p).is_form_edit==2,placeholder:"Please enter","onUpdate:modelValue":s[75]||(s[75]=l=>e(le).self_care=l),maxlength:"600"},null,10,B1),[[k,e(le).self_care]])])):i("",!0),e(p).form_type=="sensitived"?(n(),o("div",Y1,[O1,t("div",F1,[b(t("input",{class:E([{opacity:e(p).is_form_edit==2},"input"]),disabled:e(p).is_form_edit==2,type:"text","onUpdate:modelValue":s[76]||(s[76]=l=>e(_).name=l)},null,10,z1),[[k,e(_).name]]),r(" (name), have requested assessment and/or treatment by this Registered Massage Therapist(RMT) "),b(t("input",{class:E([{opacity:e(p).is_form_edit==2},"input"]),disabled:e(p).is_form_edit==2,type:"text","onUpdate:modelValue":s[77]||(s[77]=l=>e(_).name1=l)},null,10,R1),[[k,e(_).name1]]),r(" (name) for treatment of the clinically relevant areas indicated below (please initial): ")]),t("div",{class:E(["treated_desc_box",{opacity:e(p).is_form_edit==2}]),style:{"flex-direction":"column","align-items":"flex-start"}},[(n(!0),o(V,null,D(e(M),(l,j)=>(n(),o("div",{key:l.id,style:{width:"100%"}},[d(ll,{disabled:"",checked:l.is_selected==1,label:l.name,size:"large",onChange:y=>e(Ae)(y,l)},null,8,["checked","label","onChange"]),l.is_selected?(n(),o("div",j1,[L1,b(t("input",{disabled:"",class:"Signature_input",type:"text",placeholder:"Please enter","onUpdate:modelValue":y=>l.signal_desc=y},null,8,Q1),[[k,l.signal_desc]]),l.signal_url1?(n(),o("img",{key:0,class:"signal_url_box",src:l.signal_url1,alt:""},null,8,H1)):i("",!0)])):i("",!0)]))),128))],2),W1,b(t("textarea",{class:E([{opacity:e(p).is_form_edit==2},"textarea_input"]),disabled:e(p).is_form_edit==2,placeholder:"Please enter","onUpdate:modelValue":s[78]||(s[78]=l=>e(_).indication=l),maxlength:"600"},null,10,q1),[[k,e(_).indication]]),G1,Z1,K1,X1,J1,ev,tv,lv,nv,b(t("textarea",{class:E([{opacity:e(p).is_form_edit==2},"textarea_input"]),disabled:e(p).is_form_edit==2,placeholder:"Please enter","onUpdate:modelValue":s[79]||(s[79]=l=>e(_).client_name=l),maxlength:"600"},null,10,ov),[[k,e(_).client_name]]),t("div",av,[sv,d(Ze,{disabled:e(p).is_form_edit==2,modelValue:e(_).date,"onUpdate:modelValue":s[80]||(s[80]=l=>e(_).date=l),type:"date",format:"YYYY-MM-DD","value-format":"YYYY-MM-DD",placeholder:"Please select",disabledDate:e(Dt),size:fe.value},null,8,["disabled","modelValue","disabledDate","size"])]),t("div",iv,[dv,b(t("input",{class:E([{opacity:e(p).is_form_edit==2},"Signature_input"]),disabled:e(p).is_form_edit==2,type:"text",placeholder:"Please enter","onUpdate:modelValue":s[81]||(s[81]=l=>e(p).sensitived_desc=l)},null,10,uv),[[k,e(p).sensitived_desc]]),e(p).sensitived_url?(n(),o("img",{key:0,class:"signal_url_box",src:e(p).sensitived_url,alt:""},null,8,rv)):i("",!0),t("div",{class:E([{opacity:e(p).is_form_edit==2},"Manualsignature"]),onClick:s[82]||(s[82]=l=>e(Et)("sensitived","signal_url1"))}," signature ",2)])])):i("",!0),e(p).form_type=="ougoing"?(n(),o("div",_v,[cv,pv,t("div",mv,[t("div",vv,[gv,d(Ze,{disabled:e(p).is_form_edit==2,modelValue:e(g).date1,"onUpdate:modelValue":s[83]||(s[83]=l=>e(g).date1=l),type:"date",format:"YYYY-MM-DD","value-format":"YYYY-MM-DD",disabledDate:e(Dt),placeholder:"Please select",size:fe.value},null,8,["disabled","modelValue","disabledDate","size"])]),t("div",hv,[yv,b(t("input",{class:E([{opacity:e(p).is_form_edit==2},"Signature_input"]),disabled:e(p).is_form_edit==2,type:"text",placeholder:"Please enter","onUpdate:modelValue":s[84]||(s[84]=l=>e(p).ougoing_desc1=l)},null,10,bv),[[k,e(p).ougoing_desc1]]),e(p).ougoing_url1?(n(),o("img",{key:0,class:"signal_url_box",src:e(p).ougoing_url1,alt:""},null,8,fv)):i("",!0),t("div",{class:E([{opacity:e(p).is_form_edit==2},"Manualsignature"]),onClick:s[85]||(s[85]=l=>e(Et)("ougoing","signal_url2"))}," signature ",2)])]),t("div",kv,[t("div",xv,[Cv,d(Ze,{disabled:e(p).is_form_edit==2,modelValue:e(g).date2,"onUpdate:modelValue":s[86]||(s[86]=l=>e(g).date2=l),type:"date",format:"YYYY-MM-DD","value-format":"YYYY-MM-DD",placeholder:"Please select",disabledDate:e(Dt),size:fe.value},null,8,["disabled","modelValue","disabledDate","size"])]),t("div",$v,[Vv,b(t("input",{class:E([{opacity:e(p).is_form_edit==2},"Signature_input"]),disabled:e(p).is_form_edit==2,type:"text",placeholder:"Please enter","onUpdate:modelValue":s[87]||(s[87]=l=>e(p).ougoing_desc2=l)},null,10,Dv),[[k,e(p).ougoing_desc2]]),e(p).ougoing_url2?(n(),o("img",{key:0,class:"signal_url_box",src:e(p).ougoing_url2,alt:""},null,8,wv)):i("",!0),t("div",{class:E([{opacity:e(p).is_form_edit==2},"Manualsignature"]),onClick:s[88]||(s[88]=l=>e(Et)("ougoing","signal_url3"))}," signature ",2)])]),t("div",Iv,[t("div",Uv,[Sv,d(Ze,{disabled:e(p).is_form_edit==2,modelValue:e(g).date3,"onUpdate:modelValue":s[89]||(s[89]=l=>e(g).date3=l),type:"date",format:"YYYY-MM-DD","value-format":"YYYY-MM-DD",placeholder:"Please select",disabledDate:e(Dt),size:fe.value},null,8,["disabled","modelValue","disabledDate","size"])]),t("div",Av,[Pv,b(t("input",{class:E([{opacity:e(p).is_form_edit==2},"Signature_input"]),disabled:e(p).is_form_edit==2,type:"text",placeholder:"Please enter","onUpdate:modelValue":s[90]||(s[90]=l=>e(p).ougoing_desc3=l)},null,10,Nv),[[k,e(p).ougoing_desc3]]),e(p).ougoing_url3?(n(),o("img",{key:0,class:"signal_url_box",src:e(p).ougoing_url3,alt:""},null,8,Tv)):i("",!0),t("div",{class:E([{opacity:e(p).is_form_edit==2},"Manualsignature"]),onClick:s[91]||(s[91]=l=>e(Et)("ougoing","signal_url4"))}," signature ",2)])]),t("div",Ev,[t("div",Mv,[Bv,d(Ze,{disabled:e(p).is_form_edit==2,modelValue:e(g).date4,"onUpdate:modelValue":s[92]||(s[92]=l=>e(g).date4=l),type:"date",format:"YYYY-MM-DD","value-format":"YYYY-MM-DD",placeholder:"Please select",disabledDate:e(Dt),size:fe.value},null,8,["disabled","modelValue","disabledDate","size"])]),t("div",Yv,[Ov,b(t("input",{class:E([{opacity:e(p).is_form_edit==2},"Signature_input"]),disabled:e(p).is_form_edit==2,type:"text",placeholder:"Please enter","onUpdate:modelValue":s[93]||(s[93]=l=>e(p).ougoing_desc4=l)},null,10,Fv),[[k,e(p).ougoing_desc4]]),e(p).ougoing_url4?(n(),o("img",{key:0,class:"signal_url_box",src:e(p).ougoing_url4,alt:""},null,8,zv)):i("",!0),t("div",{class:E([{opacity:e(p).is_form_edit==2},"Manualsignature"]),onClick:s[94]||(s[94]=l=>e(Et)("ougoing","signal_url5"))}," signature ",2)])]),t("div",Rv,[t("div",jv,[Lv,d(Ze,{disabled:e(p).is_form_edit==2,modelValue:e(g).date5,"onUpdate:modelValue":s[95]||(s[95]=l=>e(g).date5=l),type:"date",format:"YYYY-MM-DD","value-format":"YYYY-MM-DD",placeholder:"Please select",disabledDate:e(Dt),size:fe.value},null,8,["disabled","modelValue","disabledDate","size"])]),t("div",Qv,[Hv,b(t("input",{class:E([{opacity:e(p).is_form_edit==2},"Signature_input"]),disabled:e(p).is_form_edit==2,type:"text",placeholder:"Please enter","onUpdate:modelValue":s[96]||(s[96]=l=>e(p).ougoing_desc5=l)},null,10,Wv),[[k,e(p).ougoing_desc5]]),e(p).ougoing_url5?(n(),o("img",{key:0,class:"signal_url_box",src:e(p).ougoing_url5,alt:""},null,8,qv)):i("",!0),t("div",{class:E([{opacity:e(p).is_form_edit==2},"Manualsignature"]),onClick:s[97]||(s[97]=l=>e(Et)("ougoing","signal_url6"))}," signature ",2)])])])):i("",!0),e(p).form_type=="treatment"?(n(),o("div",Gv,[Zv,b(t("textarea",{class:E([{opacity:e(p).is_form_edit==2},"textarea_input"]),disabled:e(p).is_form_edit==2,placeholder:"Please enter","onUpdate:modelValue":s[98]||(s[98]=l=>e(p).treatment_description=l),maxlength:"600"},null,10,Kv),[[k,e(p).treatment_description]])])):i("",!0),e(p).is_form_edit==1?(n(),o("div",Xv,[d(G,{loading:e(ye),type:"primary",onClick:s[99]||(s[99]=l=>e(O)(1))},{default:u(()=>[r("Submit")]),_:1},8,["loading"])])):i("",!0)]),_:1},8,["modelValue"]),d(Me,{style:{width:"90%"},modelValue:e(_l),"onUpdate:modelValue":s[112]||(s[112]=l=>T(_l)?_l.value=l:null),title:"",draggable:""},{default:u(()=>[Jv,t("table",eg,[t("tr",null,[tg,t("td",null,[d(tl,{style:{width:"180px"},clearable:"true",modelValue:e(N).invoice_type,"onUpdate:modelValue":s[101]||(s[101]=l=>e(N).invoice_type=l),filterable:"","allow-create":"","default-first-option":"","reserve-keyword":!1,placeholder:"Please select"},{default:u(()=>[(n(!0),o(V,null,D(e(El),l=>(n(),P(el,{key:l.value,label:l.text,value:l.value},null,8,["label","value"]))),128))]),_:1},8,["modelValue"])])]),e(p).type==1?(n(),o("tr",lg,[ng,t("td",null,[b(t("input",{disabled:"","onUpdate:modelValue":s[102]||(s[102]=l=>e(N).loacation_name1=l),class:"input",type:"text"},null,512),[[k,e(N).loacation_name1]])])])):i("",!0),t("tr",null,[og,t("td",null,[b(t("input",{"onUpdate:modelValue":s[103]||(s[103]=l=>e(N).Client_name1=l),disabled:"",class:"input",type:"text"},null,512),[[k,e(N).Client_name1]])])]),e(p).type==2?(n(),o("tr",ag,[sg,t("td",null,[t("div",ig,[b(t("input",{disabled:"","onUpdate:modelValue":s[104]||(s[104]=l=>e(N).invoiceTherapist_name=l),class:"input",type:"text"},null,512),[[k,e(N).invoiceTherapist_name]]),e(f).clients.has_licence==0?(n(),o("div",dg," Switch Licence Therapist : ")):i("",!0),e(f).clients.has_licence==0?(n(),P(tl,{key:1,style:{width:"180px"},clearable:"true",modelValue:e(N).has_therapistlicence,"onUpdate:modelValue":s[105]||(s[105]=l=>e(N).has_therapistlicence=l),onChange:s[106]||(s[106]=l=>e(yo)(l,ht.item)),placeholder:"Please select"},{default:u(()=>[(n(!0),o(V,null,D(e(f).clients.can_licence_therapist,l=>(n(),P(el,{key:l.id,label:l.user_name,value:l.id},null,8,["label","value"]))),128))]),_:1},8,["modelValue"])):i("",!0),e(f).clients.has_licence==0?(n(),P(G,{key:2,type:"primary",style:{"margin-left":"16px"},plain:"",size:"small",onClick:s[107]||(s[107]=l=>e(bo)())},{default:u(()=>[r(" Confirm ")]),_:1})):i("",!0)])])])):i("",!0),t("tr",null,[t("td",null,[t("div",ug,[r(" Service"),rg,t("img",{onClick:s[108]||(s[108]=l=>e(lo)()),class:"usersDetail_icon",src:nn,alt:""})])]),t("td",null,[(n(!0),o(V,null,D(e(cn),(l,j)=>(n(),o("div",{class:"Service_Invoice_box",key:j},[t("div",_g,[t("table",cg,[t("tr",null,[pg,t("td",null,a(l.invoice_number),1)]),t("tr",null,[mg,t("td",null,[e(N).invoice_type!="outside"?(n(),P(tl,{key:0,style:{width:"180px"},clearable:"true",modelValue:l.service_name,"onUpdate:modelValue":y=>l.service_name=y,filterable:"","allow-create":"","default-first-option":"","reserve-keyword":!1,onChange:y=>e(Ul)(y,l),placeholder:"Please select"},{default:u(()=>[(n(!0),o(V,null,D(e(vt),y=>(n(),P(el,{key:y.value,label:y.value,value:y.value},null,8,["label","value"]))),128))]),_:2},1032,["modelValue","onUpdate:modelValue","onChange"])):i("",!0),e(N).invoice_type=="outside"?b((n(),o("input",{key:1,placeholder:"Please enter","onUpdate:modelValue":y=>l.description_outside=y,class:"input",type:"text"},null,8,vg)),[[k,l.description_outside]]):i("",!0)])]),e(N).invoice_type=="third_Pay"||e(N).invoice_type=="gift"?(n(),o("tr",gg,[hg,t("td",null,[b(t("textarea",{class:"textarea_input",placeholder:"Please enter","onUpdate:modelValue":y=>l.receive_message=y,maxlength:"600"},null,8,yg),[[k,l.receive_message]])])])):i("",!0),t("tr",null,[bg,t("td",null,[r(" + Tax:"),d(tn,{onChange:y=>e(Cl)(y,l),style:{margin:"0 50px 0 0"},modelValue:l.is_tax,"onUpdate:modelValue":y=>l.is_tax=y},null,8,["onChange","modelValue","onUpdate:modelValue"]),l.is_tax?(n(),o("span",fg,"Include Tax ")):i("",!0),l.is_tax?(n(),P(tl,{key:1,style:{width:"130px","margin-left":"4px"},clearable:"true",modelValue:l.include_tax,"onUpdate:modelValue":y=>l.include_tax=y,onChange:y=>e($l)(y,l),filterable:"","allow-create":"","default-first-option":"","reserve-keyword":!1,placeholder:"Please select"},{default:u(()=>[(n(!0),o(V,null,D(e(Dl),y=>(n(),P(el,{key:y.value,label:y.text,value:y.value},null,8,["label","value"]))),128))]),_:2},1032,["modelValue","onUpdate:modelValue","onChange"])):i("",!0)])]),t("tr",null,[kg,t("td",null,[(n(!0),o(V,null,D(l.service_detail,(y,Pt)=>(n(),o("div",{key:y.id,class:"items_box"},[t("div",xg," Booking#:"+a(y.booking_no),1),Cg,d(Ze,{disabled:"",style:{width:"180px"},modelValue:y.treatment_date,"onUpdate:modelValue":ie=>y.treatment_date=ie,type:"date","value-format":"YYYY-MM-DD",placeholder:"Please select"},null,8,["modelValue","onUpdate:modelValue"]),$g,d(tl,{style:{width:"180px"},clearable:"true",modelValue:y.spend_time,"onUpdate:modelValue":ie=>y.spend_time=ie,filterable:"","allow-create":"","default-first-option":"","reserve-keyword":!1,placeholder:"Please select",onChange:ie=>e(Il)(ie,l,y)},{default:u(()=>[(n(!0),o(V,null,D(y.during_price_json,(ie,A8)=>(n(),P(el,{key:ie.value,label:ie.text,value:ie.value},null,8,["label","value"]))),128))]),_:2},1032,["modelValue","onUpdate:modelValue","onChange"]),e(N).invoice_type!="gift"?(n(),o("div",Vg," Price: ")):i("",!0),e(N).invoice_type!="gift"?b((n(),o("input",{key:1,style:{width:"100px"},"onUpdate:modelValue":ie=>y.price=ie,type:"text",class:"input",onInput:ie=>e(Vl)(l)},null,40,Dg)),[[k,y.price]]):i("",!0),e(N).invoice_type!="gift"?(n(),o("span",wg,"($)")):i("",!0),Pt>0?(n(),P(G,{key:3,link:"",type:"danger",onClick:ie=>e(Ot)(l,y),style:{"margin-left":"20px"}},{default:u(()=>[r("Delete")]),_:2},1032,["onClick"])):i("",!0)]))),128)),t("div",Ig,[Ug,e(N).invoice_type!="gift"?(n(),o("div",Sg,[l.is_tax?(n(),o("span",Ag,"HST:"+a(l.hstValue),1)):i("",!0),t("span",Pg,"Total:"+a(l.total),1)])):i("",!0)])])])]),t("div",Ng,[t("div",Tg," Name:"+a(l.licence_name?l.licence_name:""),1),t("div",Eg,a(l.licence_description?l.licence_description:""),1),t("div",Mg,a(l.licence_title?l.licence_title:"")+": "+a(l.licence_number?l.licence_number:""),1)])]),e(cn).length>1?(n(),P(G,{key:0,link:"",type:"danger",style:{margin:"10px"},onClick:y=>e(ho)(l)},{default:u(()=>[r("Delete")]),_:2},1032,["onClick"])):i("",!0)]))),128))])]),t("tr",null,[Bg,t("td",Yg,[d(qt,{ref:"upload",class:"avatar_uploader",action:e(Ol),"on-exceed":e(Ht),"on-success":e(Vo),"on-error":ht.handleUploadError,"on-change":e(Wt)},{default:u(()=>[d(G,{style:{margin:"0 10px 0 0"},size:"small",plain:"",type:"primary"},{default:u(()=>[r("Upload")]),_:1})]),_:1},8,["action","on-exceed","on-success","on-error","on-change"]),(n(!0),o(V,null,D(e(N).files1,(l,j)=>(n(),o("div",{class:"files1_desc",key:j},a(l),1))),128))])])]),e(N).loacation_name1?(n(),o("div",Og,[t("div",Fg,[r(" Signature: "),b(t("input",{placeholder:"Please enter","onUpdate:modelValue":s[109]||(s[109]=l=>e(N).signal_desc=l),class:"Signature_input",type:"text"},null,512),[[k,e(N).signal_desc]]),t("div",zg,[e(N).signal_image5?(n(),o("img",{key:0,class:"signal_url_box8",src:e(N).signal_image5,alt:""},null,8,Rg)):i("",!0)]),t("div",{class:"Manualsignature",onClick:s[110]||(s[110]=l=>e(Ln)())}," signature ")])])):i("",!0),e(N).loacation_name1?(n(),o("div",jg,[d(G,{type:"primary",onClick:s[111]||(s[111]=l=>e(wl)())},{default:u(()=>[r("Submit")]),_:1})])):i("",!0)]),_:1},8,["modelValue"]),d(Me,{style:{width:"1000px","max-height":"100%"},modelValue:e(Ft),"onUpdate:modelValue":s[115]||(s[115]=l=>T(Ft)?Ft.value=l:null),title:"",draggable:""},{default:u(()=>[d(on,{onEventSignal:e(Zt),signalData:e(Pl),signalUrl:e(ql),"onUpdate:signalUrl":s[113]||(s[113]=l=>T(ql)?ql.value=l:null),autographDialog:e(Ft),"onUpdate:autographDialog":s[114]||(s[114]=l=>T(Ft)?Ft.value=l:null)},null,8,["onEventSignal","signalData","signalUrl","autographDialog"])]),_:1},8,["modelValue"]),d(Me,{style:{width:"60%"},modelValue:e(h),"onUpdate:modelValue":s[118]||(s[118]=l=>T(h)?h.value=l:null),title:"",draggable:""},{default:u(()=>[t("div",null,"Invoice Number : "+a(e(N).Invoice_Charge_Number),1),t("div",Lg," Customer Name : "+a(e(N).Customer_Name),1),t("div",Qg," Invoice Total Charge : "+a(e(N).Invoice_Total_Charge)+" $ ",1),t("div",Hg," Has Paid Amount : "+a(e(N).Has_Paid_Amount)+" $ ",1),t("div",Wg," Need Charge Amount : "+a(e(N).Need_Charge_Amount)+" $ ",1),qg,e(c).length>0?(n(),o("table",Gg,[Zg,(n(!0),o(V,null,D(e(c),(l,j)=>(n(),o("tr",{key:l.id},[t("td",null,a(l.cheque_number),1),t("td",null,a(l.pay_amount)+" $",1),t("td",null,a(l.has_pay_amount)+" $",1),t("td",null,a(l.remain_amount)+" $",1),t("td",null,[b(t("input",{"onUpdate:modelValue":y=>l.paid_amount=y,class:"input",type:"text"},null,8,Kg),[[k,l.paid_amount]]),r(" $ ")])]))),128))])):i("",!0),e(c).length>0?(n(),o("div",Xg,[d(G,{type:"primary",onClick:s[116]||(s[116]=l=>e(_e)())},{default:u(()=>[r("Submit")]),_:1})])):i("",!0),e(c).length==0?(n(),o("div",Jg,"No Data")):i("",!0),t("div",eh,[r(" The balance is insufficient,please pay "),d(G,{link:"",type:"primary",style:{"margin-left":"8px"},onClick:s[117]||(s[117]=l=>e(gt)())},{default:u(()=>[r("Payment")]),_:1})])]),_:1},8,["modelValue"]),d(Me,{style:{width:"50%"},modelValue:e(B),"onUpdate:modelValue":s[128]||(s[128]=l=>T(B)?B.value=l:null),title:""},{default:u(()=>[th,t("table",lh,[t("tr",null,[nh,t("td",null,[b(t("input",{disabled:"",class:"input2","onUpdate:modelValue":s[119]||(s[119]=l=>e(N).Customer_Name=l),type:"text"},null,512),[[k,e(N).Customer_Name]])])]),t("tr",null,[oh,t("td",null,[b(t("input",{"onUpdate:modelValue":s[120]||(s[120]=l=>e(ce).pay_amount=l),class:"input2",type:"text"},null,512),[[k,e(ce).pay_amount]])])]),t("tr",null,[ah,t("td",null,[d(Ze,{style:{width:"272px"},modelValue:e(ce).time,"onUpdate:modelValue":s[121]||(s[121]=l=>e(ce).time=l),type:"date","value-format":"YYYY-MM-DD",placeholder:"Please select"},null,8,["modelValue"])])]),t("tr",null,[sh,t("td",null,[d(tl,{clearable:"true",style:{width:"272px",margin:"0 10px 0 0"},modelValue:e(ce).pay_method,"onUpdate:modelValue":s[122]||(s[122]=l=>e(ce).pay_method=l),filterable:"","allow-create":"","default-first-option":"","reserve-keyword":!1,placeholder:"Please select"},{default:u(()=>[(n(!0),o(V,null,D(e(Xn),l=>(n(),P(el,{key:l.id,label:l.text,value:l.value},null,8,["label","value"]))),128))]),_:1},8,["modelValue"]),e(ce).pay_method=="Other"?b((n(),o("input",{key:0,"onUpdate:modelValue":s[123]||(s[123]=l=>e(ce).other=l),class:"input2",style:{height:"32px"},type:"text"},null,512)),[[k,e(ce).other]]):i("",!0)])]),e(ce).pay_method=="Cheque"?(n(),o("tr",ih,[dh,t("td",null,[b(t("input",{"onUpdate:modelValue":s[124]||(s[124]=l=>e(ce).cheque_number=l),class:"input2",type:"text"},null,512),[[k,e(ce).cheque_number]])])])):i("",!0),t("tr",null,[uh,t("td",null,[d(tl,{clearable:"true",style:{width:"272px",margin:"0 10px 0 0"},modelValue:e(ce).account_id,"onUpdate:modelValue":s[125]||(s[125]=l=>e(ce).account_id=l),filterable:"","allow-create":"","default-first-option":"","reserve-keyword":!1,placeholder:"Please select"},{default:u(()=>[(n(!0),o(V,null,D(e(Jn),l=>(n(),P(el,{key:l.id,label:l.text,value:l.value},null,8,["label","value"]))),128))]),_:1},8,["modelValue"])])]),t("tr",null,[rh,t("td",_h,[b(t("textarea",{class:"textarea_input",placeholder:"Please enter","onUpdate:modelValue":s[126]||(s[126]=l=>e(ce).content=l),maxlength:"600"},null,512),[[k,e(ce).content]])])])]),t("div",ch,[d(G,{loading:e(ye),type:"primary",onClick:s[127]||(s[127]=l=>e(dn)())},{default:u(()=>[r("Submit")]),_:1},8,["loading"])])]),_:1},8,["modelValue"]),d(Me,{style:{width:"1000px","max-height":"85%"},modelValue:e(jl),"onUpdate:modelValue":s[132]||(s[132]=l=>T(jl)?jl.value=l:null),title:"",draggable:""},{default:u(()=>[ph,e(Bl).length==0?(n(),o("div",mh,"Loading...")):i("",!0),t("div",vh,[(n(!0),o(V,null,D(e(Bl),(l,j)=>(n(),o("div",{class:E(["situationArr_desc",[e(p).tableIndex==j?"situationArr_active":"situationArr_desc"]]),key:l.id,onClick:y=>e(_o)(j)}," Invoice "+a(j+1),11,gh))),128))]),(n(!0),o(V,null,D(e(Bl),(l,j)=>(n(),o("div",{class:E(["Invoice_Detail_box",[e(p).tableIndex==j?"Invoice_Detail_box1":"Invoice_Detail_box"]]),key:l.id},[t("div",hh,[yh,t("div",bh,[t("div",fh,a(l.company_info.title),1),t("div",kh,a(l.company_info.number_companyname),1),t("div",null,a(l.company_info.address),1),t("div",null,a(l.company_info.city)+" "+a(l.state),1),t("div",null,a(l.company_info.country)+" "+a(l.company_info.postal),1),t("div",null,"Tel:"+a(l.company_info.phone),1),t("div",null,"HST#:"+a(l.company_info.hst),1)])]),t("div",xh,[Ch,t("div",$h,[t("div",Vh,"Name:"+a(l.customer_info.show1),1),j>0?(n(),o("div",Dh)):i("",!0),e(z).show_number?(n(),o("div",wh," Invoice Number:"+a(l.info.invoice_number),1)):i("",!0),e(z).show_number?i("",!0):(n(),o("div",Ih," Invoice Date:"+a(l.info.invoice_date),1))]),t("div",Uh,[t("div",Sh,"Address:"+a(l.customer_info.show2),1),j>0?(n(),o("div",Ah)):i("",!0),e(z).show_number?(n(),o("div",Ph," Invoice Date:"+a(l.info.invoice_date),1)):i("",!0)]),t("div",Nh,[t("table",Th,[Eh,(n(!0),o(V,null,D(l.detail,(y,Pt)=>(n(),o("tr",{key:j},[t("td",null,a(y.treatment_date),1),t("td",null,a(l.info.description_type),1),t("td",null,a(y.spend_time)+"Min",1),t("td",null,a(y.price),1),t("td",null,a(y.price),1)]))),128)),l.info.total_amount>0?(n(),o("tr",Mh,[Bh,Yh,Oh,Fh,t("td",null,a(l.info.total_price),1)])):i("",!0),l.info.total_amount>0?(n(),o("tr",zh,[Rh,jh,Lh,Qh,t("td",null,a(l.info.tax_amount),1)])):i("",!0),l.info.total_amount>0?(n(),o("tr",Hh,[Wh,qh,Gh,Zh,t("td",null,a(l.info.total_amount),1)])):i("",!0)])]),l.info.receive_message?(n(),o("div",Kh," Receive:"+a(l.info.receive_message),1)):i("",!0)]),e(N).fileView.length>0?(n(),o("div",Xh,[r(" file : "),(n(!0),o(V,null,D(e(N).fileView,(y,Pt)=>(n(),o("div",{class:"file_desc1",onClick:ie=>e(pn)(y),key:Pt},a(y),9,Jh))),128))])):i("",!0),t("div",ey,[t("div",ty,a(l.licence.name),1),t("div",ly,a(l.licence.Descrption),1),t("div",ny,a(l.licence.register_no),1)]),t("div",oy,[r(" Signature: "),(l.info.signal_image==""||l.info.signal_image==null)&&(l.info.signal_desc==""||l.info.signal_desc==null)?(n(),o("div",ay)):i("",!0),l.info.signal_image?(n(),o("img",{key:1,src:l.info.signal_image,class:"Signature_img",mode:"",alt:""},null,8,sy)):i("",!0),l.info.signal_desc&&(l.info.signal_image==""||l.info.signal_image==null)?b((n(),o("input",{key:2,disabled:"",placeholder:"Please enter","onUpdate:modelValue":y=>l.info.signal_desc=y,class:"signal_desc",type:"text"},null,8,iy)),[[k,l.info.signal_desc]]):i("",!0)]),t("div",dy,[d(G,{type:"info",size:"small",plain:"",onClick:s[129]||(s[129]=y=>e(En)())},{default:u(()=>[r("nosend")]),_:1}),d(G,{type:"primary",size:"small",onClick:s[130]||(s[130]=y=>e(Mn)())},{default:u(()=>[r("send email")]),_:1}),d(tn,{style:{"margin-left":"20px"},modelValue:e(z).show_number,"onUpdate:modelValue":s[131]||(s[131]=y=>e(z).show_number=y),"active-text":"invoice number shows ON","inactive-text":"OFF",onChange:e(un)},null,8,["modelValue","onChange"])])],2))),128))]),_:1},8,["modelValue"]),d(Me,{style:{width:"42%"},modelValue:e(Ll),"onUpdate:modelValue":s[136]||(s[136]=l=>T(Ll)?Ll.value=l:null),title:"",draggable:""},{default:u(()=>[t("div",null,"Email to : "+a(e(N).customArr.email),1),t("div",uy," Dear "+a(e(N).customArr.first_name)+" "+a(e(N).customArr.last_name)+" : ",1),b(t("textarea",{class:"textarea_input3",placeholder:"Please enter","onUpdate:modelValue":s[133]||(s[133]=l=>e(N).email_content=l)},null,512),[[k,e(N).email_content]]),(n(!0),o(V,null,D(e(Bl),(l,j)=>(n(),o("div",{class:"Email_box5",key:j},[ry,t("div",null,a(l.invoice_pdf.file_path.replace("/var/www/html/public/pdf/","")),1)]))),128)),t("div",_y,[d(G,{type:"info",plain:"",onClick:s[134]||(s[134]=l=>e(Bn)())},{default:u(()=>[r("nosend")]),_:1}),d(G,{loading:e(ye),type:"primary",onClick:s[135]||(s[135]=l=>e(Yn)())},{default:u(()=>[r("send")]),_:1},8,["loading"])])]),_:1},8,["modelValue"]),d(Me,{style:{width:"42%"},modelValue:e(Ql),"onUpdate:modelValue":s[139]||(s[139]=l=>T(Ql)?Ql.value=l:null),title:"",draggable:""},{default:u(()=>[t("div",cy,[r(" Customer Name :"),t("span",py,a(e(Hl).clients.customer_name),1)]),t("div",null,[r(" Customer Email :"),t("span",my,a(e(Hl).clients.email_values.email_to),1)]),t("div",vy,[r(" Customer Submit Href :"),t("span",gy,a(e(Hl).clients.customer_submit_href),1)]),d(G,{style:{margin:"40px 0 0px 0"},type:"primary",link:"",onClick:s[137]||(s[137]=l=>e(Fn)())},{default:u(()=>[r("Copy clipboard")]),_:1}),t("div",hy,[d(G,{type:"primary",onClick:s[138]||(s[138]=l=>e(jn)())},{default:u(()=>[r("Submit")]),_:1})])]),_:1},8,["modelValue"]),d(Me,{style:{width:"42%"},modelValue:e(Wl),"onUpdate:modelValue":s[140]||(s[140]=l=>T(Wl)?Wl.value=l:null),title:"",draggable:""},{default:u(()=>[t("div",yy,[r(" Order completion time :"),t("span",by,a(e(Yl).evalution_date),1)]),(n(!0),o(V,null,D(e(Yl).evaluation_detail,(l,j)=>(n(),o("div",{key:j,class:"dialog_procure_box"},[r(a(l.evaluation_description)+" :      ",1),d(Po,{disabled:"","show-text":!1,onChange:ht.changeRate,modelValue:l.level_value,"onUpdate:modelValue":y=>l.level_value=y,colors:ht.colors},null,8,["onChange","modelValue","onUpdate:modelValue","colors"])]))),128)),fy,t("div",null,a(e(Yl).notes),1),ky,(n(!0),o(V,null,D(e(Yl).image,(l,j)=>(n(),o("div",{class:"file_name_desc",key:j,onClick:y=>e(Rn)(l.file_path)},a(l.file_name),9,xy))),128))]),_:1},8,["modelValue"]),e(f).clients?(n(),o("div",Cy,[t("div",$y,[(n(!0),o(V,null,D(e(vo),(l,j)=>(n(),o("div",{class:E(["situationArr_desc",[e(z).tableIndex==j?"situationArr_active":"situationArr_desc"]]),key:l.id,onClick:y=>e(go)(j)},a(l.name),11,Vy))),128))]),e(z).tableIndex==0?(n(),o("fieldset",Dy,[wy,t("table",Iy,[t("tr",null,[Uy,t("td",null,a(e(f).clients.booking_order_no),1),Sy,t("td",null,a(e(f).date),1)]),t("tr",null,[Ay,t("td",null,a(e(f).therapists_name),1),Py,t("td",null,a(e(f).clients.begin_time)+"-"+a(e(f).clients.end_time),1)]),t("tr",null,[Ny,t("td",null,a(e(f).clients.customer_name),1),Ty,t("td",Ey,[r(a(e(f).clients.description_type)+" "+a(e(f).clients.session)+" Min ",1),e(f).clients.additional_Service&&e(p).is_additional==1?(n(),o("div",My,[r(" ( "),(n(!0),o(V,null,D(e(f).clients.additional_Service,(l,j)=>(n(),o("div",{key:l.id},[l.is_Selected?(n(),o("div",By,[r(a(l.service_name)+" "+a(l.duration)+" min ",1),j<e(f).clients.additional_Service.length-1?(n(),o("span",Yy," , ")):i("",!0)])):i("",!0)]))),128)),r(" ) ")])):i("",!0)])]),t("tr",null,[Oy,t("td",null,a(e(f).clients.amount)+"$",1),Fy,t("td",null,a(e(f).clients.description),1)]),t("tr",null,[zy,t("td",null,a(e(f).clients.invoice_therpist_name),1),Ry,t("td",null,a(e(f).clients.customer_note),1)]),t("tr",null,[t("td",jy,[t("div",Ly,[e(f).clients.is_delete==1?(n(),P(G,{key:0,plain:"",size:"small",type:"danger",style:{"margin-left":"15px"},onClick:s[141]||(s[141]=l=>e(An)(e(f)))},{default:u(()=>[r(" Delete ")]),_:1})):i("",!0),e(f).clients.is_edit==1?(n(),P(G,{key:1,plain:"",size:"small",type:"primary",onClick:s[142]||(s[142]=l=>e(Pn)(e(f)))},{default:u(()=>[r(" Edit ")]),_:1})):i("",!0),e(f).clients.is_email==1?(n(),P(G,{key:2,plain:"",size:"small",type:"primary",style:{"margin-left":"15px"},onClick:s[143]||(s[143]=l=>e(Je)(e(f),1))},{default:u(()=>[r(" Booking Email ")]),_:1})):i("",!0)])])])])])):i("",!0),e(z).tableIndex==0?(n(),o("fieldset",Qy,[Hy,t("table",Wy,[t("tr",null,[qy,t("td",null,[e(f).clients.is_checkin==0?(n(),o("div",Gy,a(e(f).clients.check_in_time),1)):i("",!0),e(f).clients.is_checkin==1?(n(),P(G,{key:1,plain:"",size:"small",type:"primary",onClick:s[144]||(s[144]=l=>e(jt)(e(f)))},{default:u(()=>[r(" Check In ")]),_:1})):i("",!0)])]),e(f).clients.finish_show==1?(n(),o("tr",Zy,[Ky,t("td",null,[e(f).clients.is_finish==0?(n(),o("div",Xy,a(e(f).clients.finish_time),1)):i("",!0),e(f).clients.is_finish==1?(n(),P(G,{key:1,plain:"",size:"small",type:"primary",onClick:s[145]||(s[145]=l=>e(Gn)(e(f)))},{default:u(()=>[r(" Appoint Complete ")]),_:1})):i("",!0)])])):i("",!0),e(f).clients.confirm_show==1?(n(),o("tr",Jy,[eb,t("td",null,[e(f).clients.is_confirm==0?(n(),o("div",tb,a(e(f).clients.confirm_time),1)):i("",!0),e(f).clients.is_confirm==1?(n(),P(G,{key:1,plain:"",size:"small",type:"primary",onClick:s[146]||(s[146]=l=>e(Qn)(e(f)))},{default:u(()=>[r(" Appoint Confirm ")]),_:1})):i("",!0)])])):i("",!0),e(f).clients.evaluation_show==1?(n(),o("tr",lb,[nb,t("td",null,[e(f).clients.is_customer_submit==1?(n(),P(G,{key:0,plain:"",size:"small",type:"primary",onClick:s[147]||(s[147]=l=>e(On)(e(f)))},{default:u(()=>[r(" Customer Submit ")]),_:1})):i("",!0),e(f).is_evaluation==1?(n(),P(G,{key:1,plain:"",size:"small",type:"primary",onClick:s[148]||(s[148]=l=>e(zn)(e(f)))},{default:u(()=>[r(" view ")]),_:1})):i("",!0)])])):i("",!0),e(f).clients.deducation_show!=""?(n(),o("tr",ob,[ab,t("td",null,a(e(f).clients.deducation_show1),1)])):i("",!0)])])):i("",!0),e(z).tableIndex==0?(n(),o("fieldset",sb,[ib,t("table",db,[ub,t("tr",null,[rb,t("td",_b,[t("div",cb,[e(f)&&e(f).clients.current_note_detail.note_detail&&e(f).clients.current_note_detail.note_detail.health_document&&e(f).clients.current_note_detail.note_detail.health_document.length==0?(n(),o("img",{key:0,class:"delclose_icon",src:ol,alt:"",onClick:s[149]||(s[149]=l=>e(Xe)(e(f),1))})):i("",!0),e(f)&&e(f).clients.current_note_detail.note_detail.health_document&&e(f).clients.current_note_detail.note_detail.health_document.length>0?(n(),o("img",{key:1,class:"delclose_icon",src:zt,alt:"",onClick:s[150]||(s[150]=l=>e(Xe)(e(f),2))})):i("",!0),d(G,{link:"",type:"primary",onClick:s[151]||(s[151]=l=>e(Je)(e(f),1)),style:{"margin-left":"7px"}},{default:u(()=>[r(" Send Email ")]),_:1})])]),t("td",null,[t("div",pb,[e(f)&&e(f).clients.current_note_detail.note_detail.health_image?(n(),o("img",{key:0,class:"delclose_icon",onClick:s[152]||(s[152]=l=>e(Jt)(e(f).clients.current_note_detail.note_detail.health_image)),src:rt,alt:""})):i("",!0),d(qt,{ref_key:"bookingImg",ref:Kt,data:{booking_id:e(f).clients.id,form_type:"health"},style:{display:"flex"},action:e(nl),limit:1,"on-exceed":e(Ht),"on-success":e(Xt),"on-change":e(Wt),loading:e(ye)},{default:u(()=>[mb]),_:1},8,["data","action","on-exceed","on-success","on-change","loading"])])])]),e(f).clients.current_note_detail.note_detail.is_massage==1?(n(),o("tr",vb,[gb,t("td",null,[t("div",hb,[e(f)&&e(f).clients.current_note_detail.note_detail.informed_content_document&&e(f)&&e(f).clients.current_note_detail.note_detail.informed_content_document.length>0?(n(),o("img",{key:0,class:"delclose_icon",src:zt,alt:"",onClick:s[153]||(s[153]=l=>e(ze)(e(f),"informed"))})):i("",!0),d(G,{link:"",type:"primary",onClick:s[154]||(s[154]=l=>e(Je)(e(f),1)),style:{"margin-left":"7px"}},{default:u(()=>[r(" Send Email ")]),_:1})])]),t("td",null,[t("div",yb,[e(f)&&e(f).clients.current_note_detail.note_detail.informed_content_image?(n(),o("img",{key:0,class:"delclose_icon",onClick:s[155]||(s[155]=l=>e(Jt)(e(f).clients.current_note_detail.note_detail.informed_content_image)),src:rt,alt:""})):i("",!0),d(qt,{ref_key:"bookingImg",ref:Kt,data:{booking_id:e(f).clients.id,form_type:"informed"},style:{display:"flex"},action:e(nl),limit:1,"on-exceed":e(Ht),"on-success":e(Xt),"on-change":e(Wt),loading:e(ye)},{default:u(()=>[bb]),_:1},8,["data","action","on-exceed","on-success","on-change","loading"])])])])):i("",!0),e(f).clients.current_note_detail.note_detail.is_massage==1?(n(),o("tr",fb,[kb,t("td",null,[t("div",xb,[e(f)&&e(f).clients.is_sensitived==1?(n(),o("img",{key:0,class:"delclose_icon",src:zt,alt:"",onClick:s[156]||(s[156]=l=>e(ze)(e(f),"sensitived"))})):i("",!0),d(G,{link:"",type:"primary",onClick:s[157]||(s[157]=l=>e(po)()),style:{"margin-left":"7px"}},{default:u(()=>[r(" Send Email ")]),_:1})])]),t("td",null,[t("div",Cb,[e(f)&&e(f).clients.current_note_detail.note_detail.sensitive_content_image?(n(),o("img",{key:0,class:"delclose_icon",onClick:s[158]||(s[158]=l=>e(Jt)(e(f).clients.current_note_detail.note_detail.sensitive_content_image)),src:rt,alt:""})):i("",!0),d(qt,{ref_key:"bookingImg",ref:Kt,data:{booking_id:e(f).clients.id,form_type:"sensitived"},style:{display:"flex"},action:e(nl),limit:1,"on-exceed":e(Ht),"on-success":e(Xt),"on-change":e(Wt),loading:e(ye)},{default:u(()=>[$b]),_:1},8,["data","action","on-exceed","on-success","on-change","loading"])])])])):i("",!0),e(f).clients.current_note_detail.note_detail.is_massage==1?(n(),o("tr",Vb,[Db,t("td",null,[t("div",wb,[e(f)&&e(f).clients.current_note_detail.note_detail.ongoning_content_document&&e(f).clients.current_note_detail.note_detail.ongoning_content_document.length==0?(n(),o("img",{key:0,class:"delclose_icon",src:ol,alt:"",onClick:s[159]||(s[159]=l=>e(ze)(e(f),"ougoing"))})):i("",!0),e(f)&&e(f).clients.current_note_detail.note_detail.ongoning_content_document&&e(f).clients.current_note_detail.note_detail.ongoning_content_document.length>0?(n(),o("img",{key:1,class:"delclose_icon",src:Nl,alt:"",onClick:s[160]||(s[160]=l=>e(ze)(e(f),"ougoing"))})):i("",!0)])]),t("td",null,[t("div",Ib,[e(f)&&e(f).clients.current_note_detail.note_detail.ongoning_content_image?(n(),o("img",{key:0,class:"delclose_icon",onClick:s[161]||(s[161]=l=>e(Jt)(e(f).clients.current_note_detail.note_detail.ongoning_content_image)),src:rt,alt:""})):i("",!0),d(qt,{ref_key:"bookingImg",ref:Kt,data:{booking_id:e(f).clients.id,form_type:"ougoing"},style:{display:"flex"},action:e(nl),limit:1,"on-exceed":e(Ht),"on-success":e(Xt),"on-change":e(Wt),loading:e(ye)},{default:u(()=>[Ub]),_:1},8,["data","action","on-exceed","on-success","on-change","loading"])])])])):i("",!0),e(f).clients.current_note_detail.note_detail.is_massage==1?(n(),o("tr",Sb,[Ab,t("td",null,[t("div",Pb,[e(f)&&e(f).clients.current_note_detail.note_detail.treatment_plan_document&&e(f).clients.current_note_detail.note_detail.treatment_plan_document.length==0?(n(),o("img",{key:0,class:"delclose_icon",src:ol,alt:"",onClick:s[162]||(s[162]=l=>e(ze)(e(f),"treatment_plan"))})):i("",!0),e(f)&&e(f).clients.current_note_detail.note_detail.treatment_plan_document&&e(f).clients.current_note_detail.note_detail.treatment_plan_document.length>0?(n(),o("img",{key:1,class:"delclose_icon",src:Nl,alt:"",onClick:s[163]||(s[163]=l=>e(ze)(e(f),"treatment_plan"))})):i("",!0)])]),t("td",null,[t("div",Nb,[e(f)&&e(f).clients.current_note_detail.note_detail.treatment_plan_image?(n(),o("img",{key:0,class:"delclose_icon",onClick:s[164]||(s[164]=l=>e(Jt)(e(f).clients.current_note_detail.note_detail.treatment_plan_image)),src:rt,alt:""})):i("",!0),d(qt,{ref_key:"bookingImg",ref:Kt,data:{booking_id:e(f).clients.id,form_type:"treatment_plan"},style:{display:"flex"},action:e(nl),limit:1,"on-exceed":e(Ht),"on-success":e(Xt),"on-change":e(Wt),loading:e(ye)},{default:u(()=>[Tb]),_:1},8,["data","action","on-exceed","on-success","on-change","loading"])])])])):i("",!0),e(f).clients.current_note_detail.note_detail.is_massage==1?(n(),o("tr",Eb,[Mb,t("td",null,[t("div",Bb,[e(f)&&e(f).clients.current_note_detail.note_detail.treatment_note_document&&e(f).clients.current_note_detail.note_detail.treatment_note_document.length==0?(n(),o("img",{key:0,class:"delclose_icon",src:ol,alt:"",onClick:s[165]||(s[165]=l=>e(ze)(e(f),"treatment_note"))})):i("",!0),e(f)&&e(f).clients.current_note_detail.note_detail.treatment_note_document&&e(f).clients.current_note_detail.note_detail.treatment_note_document.length>0?(n(),o("img",{key:1,class:"delclose_icon",src:Nl,alt:"",onClick:s[166]||(s[166]=l=>e(ze)(e(f),"treatment_note"))})):i("",!0)])]),t("td",null,[t("div",Yb,[e(f)&&e(f).clients.current_note_detail.note_detail.treatment_note_image?(n(),o("img",{key:0,class:"delclose_icon",onClick:s[167]||(s[167]=l=>e(Jt)(e(f).clients.current_note_detail.note_detail.treatment_note_image)),src:rt,alt:""})):i("",!0),d(qt,{ref_key:"bookingImg",ref:Kt,data:{booking_id:e(f).clients.id,form_type:"treatment_note"},style:{display:"flex"},action:e(nl),limit:1,"on-exceed":e(Ht),"on-success":e(Xt),"on-change":e(Wt),loading:e(ye)},{default:u(()=>[Ob]),_:1},8,["data","action","on-exceed","on-success","on-change","loading"])])])])):i("",!0),e(f).clients.current_note_detail.note_detail.isTCM==1?(n(),o("tr",Fb,[zb,t("td",null,[t("div",Rb,[e(f)&&e(f).clients.current_note_detail.note_detail.TCM_document&&e(f).clients.current_note_detail.note_detail.TCM_document.length==0?(n(),o("img",{key:0,class:"delclose_icon",src:ol,alt:"",onClick:s[168]||(s[168]=l=>e(Jl)("1"))})):i("",!0),e(f)&&e(f).clients.current_note_detail.note_detail.TCM_document&&e(f).clients.current_note_detail.note_detail.TCM_document.length>0?(n(),o("img",{key:1,class:"delclose_icon",src:Nl,alt:"",onClick:s[169]||(s[169]=l=>e(Jl)("1"))})):i("",!0)])]),t("td",null,[t("div",jb,[e(f)&&e(f).clients.current_note_detail.note_detail.TCM_image?(n(),o("img",{key:0,class:"delclose_icon",onClick:s[170]||(s[170]=l=>e(Jt)(e(f).clients.current_note_detail.note_detail.TCM_image)),src:rt,alt:""})):i("",!0),d(qt,{ref_key:"bookingImg",ref:Kt,data:{booking_id:e(f).clients.id,form_type:"TCM"},style:{display:"flex"},action:e(nl),limit:1,"on-exceed":e(Ht),"on-success":e(Xt),"on-change":e(Wt),loading:e(ye)},{default:u(()=>[Lb]),_:1},8,["data","action","on-exceed","on-success","on-change","loading"])])])])):i("",!0),t("tr",null,[Qb,t("td",null,[t("div",Hb,[e(f)&&e(f).clients.current_note_detail.note_detail.treatment_document&&e(f).clients.current_note_detail.note_detail.treatment_document.length==0?(n(),o("img",{key:0,class:"delclose_icon",src:ol,alt:"",onClick:s[171]||(s[171]=l=>e(ze)(e(f),"treatment"))})):i("",!0),e(f)&&e(f).clients.current_note_detail.note_detail.treatment_document&&e(f).clients.current_note_detail.note_detail.treatment_document.length>0?(n(),o("img",{key:1,class:"delclose_icon",src:Nl,alt:"",onClick:s[172]||(s[172]=l=>e(ze)(e(f),"treatment"))})):i("",!0)])]),t("td",null,[t("div",Wb,[e(f)&&e(f).clients.current_note_detail.note_detail.treatment_image?(n(),o("img",{key:0,class:"delclose_icon",onClick:s[173]||(s[173]=l=>e(Jt)(e(f).clients.current_note_detail.note_detail.treatment_image)),src:rt,alt:""})):i("",!0),d(qt,{ref_key:"bookingImg",ref:Kt,data:{booking_id:e(f).clients.id,form_type:"treatment"},style:{display:"flex"},action:e(nl),limit:1,"on-exceed":e(Ht),"on-success":e(Xt),"on-change":e(Wt),loading:e(ye)},{default:u(()=>[qb]),_:1},8,["data","action","on-exceed","on-success","on-change","loading"])])])])]),e(f).clients.other_note_detail.length>0?(n(),o("div",Gb,[e(p).is_form_history==2&&e(p).is_historyAll==2?(n(),P(G,{key:0,plain:"",size:"small",type:"primary",onClick:s[174]||(s[174]=l=>e(_n)(1))},{default:u(()=>[r(" All ")]),_:1})):i("",!0),e(p).is_form_history==2&&e(p).is_historyAll==1?(n(),P(G,{key:1,style:{"margin-left":"10px"},plain:"",size:"small",type:"primary",onClick:s[175]||(s[175]=l=>e(_n)(2))},{default:u(()=>[r(" Fill out ")]),_:1})):i("",!0),d(G,{style:{"margin-left":"10px"},plain:"",size:"small",type:"primary",onClick:s[176]||(s[176]=l=>e(to)(e(f)))},{default:u(()=>[r(" History Notes ")]),_:1})])):i("",!0),e(p).is_form_history==2?(n(),o("div",Zb,[t("table",Kb,[Xb,(n(!0),o(V,null,D(e(f).clients.other_note_detail,(l,j)=>(n(),o("tr",{key:l.id,class:E({none:l.is_record==!1})},[t("td",null,a(l.service_date),1),t("td",null,a(l.begin_time)+"~"+a(l.end_time),1),t("td",null,a(l.description_type)+" "+a(l.session)+" Min",1),t("td",null,a(l.therapist_name),1),t("td",Jb,[l.note_detail.is_massage==1&&l.is_informed?(n(),o("div",ef,[r(" Informed Consent "),l.note_detail.informed_content_document.length>0?(n(),o("img",{key:0,class:"delclose_icon5",onClick:y=>e(hl)(l,"informed"),src:zt,alt:""},null,8,tf)):i("",!0),l.note_detail.informed_content_image?(n(),o("img",{key:1,class:"delclose_icon5",onClick:y=>e(cl)(l.note_detail.informed_content_image),src:rt,alt:""},null,8,lf)):i("",!0)])):i("",!0),l.note_detail.is_massage==1&&l.is_sensitive?(n(),o("div",nf,[r(" Sensitive Consent "),l.note_detail.sensitive_content_document.length>0?(n(),o("img",{key:0,class:"delclose_icon5",onClick:y=>e(hl)(l,"sensitived"),src:zt,alt:""},null,8,of)):i("",!0),l.note_detail.sensitive_content_image?(n(),o("img",{key:1,class:"delclose_icon5",onClick:y=>e(cl)(l.note_detail.sensitive_content_image),src:rt,alt:""},null,8,af)):i("",!0)])):i("",!0),l.note_detail.is_massage==1&&l.is_ongoning?(n(),o("div",sf,[r(" Ongoing "),l.note_detail.ongoning_content_document.length>0?(n(),o("img",{key:0,class:"delclose_icon5",onClick:y=>e(hl)(l,"ougoing"),src:zt,alt:""},null,8,df)):i("",!0),l.note_detail.ongoning_content_image?(n(),o("img",{key:1,class:"delclose_icon5",onClick:y=>e(cl)(l.note_detail.ongoning_content_image),src:rt,alt:""},null,8,uf)):i("",!0)])):i("",!0),l.note_detail.is_massage==1&&l.is_treatment_plan?(n(),o("div",rf,[r(" Treatment Plan "),l.note_detail.treatment_plan_document.length>0?(n(),o("img",{key:0,class:"delclose_icon5",onClick:y=>e(hl)(l,"treatment_plan"),src:zt,alt:""},null,8,_f)):i("",!0),l.note_detail.treatment_plan_image?(n(),o("img",{key:1,class:"delclose_icon5",onClick:y=>e(cl)(l.note_detail.sensitive_content_image),src:rt,alt:""},null,8,cf)):i("",!0)])):i("",!0),l.note_detail.is_massage==1&&l.is_treatment_note?(n(),o("div",pf,[r(" Treatment Notes "),l.note_detail.treatment_note_document.length>0?(n(),o("img",{key:0,class:"delclose_icon5",onClick:y=>e(hl)(l,"treatment_note"),src:zt,alt:""},null,8,mf)):i("",!0),l.note_detail.treatment_plan_image?(n(),o("img",{key:1,class:"delclose_icon5",onClick:y=>e(cl)(l.note_detail.treatment_note_image),src:rt,alt:""},null,8,vf)):i("",!0)])):i("",!0),l.is_TCM&&l.note_detail.isTCM==1?(n(),o("div",gf,[r(" TCM "),l.note_detail.TCM_document.length>0?(n(),o("img",{key:0,class:"delclose_icon5",onClick:y=>e(Jl)("2",l),src:zt,alt:""},null,8,hf)):i("",!0),l.note_detail.TCM_image?(n(),o("img",{key:1,class:"delclose_icon5",onClick:y=>e(cl)(l.note_detail.TCM_image),src:rt,alt:""},null,8,yf)):i("",!0)])):i("",!0),t("div",bf,[r(" Treatment "),l.note_detail.treatment_document.length>0?(n(),o("img",{key:0,class:"delclose_icon5",onClick:y=>e(hl)(l,"treatment"),src:zt,alt:""},null,8,ff)):i("",!0),l.note_detail.treatment_image?(n(),o("img",{key:1,class:"delclose_icon5",onClick:y=>e(cl)(l.note_detail.treatment_image),src:rt,alt:""},null,8,kf)):i("",!0)])])],2))),128))])])):i("",!0)])):i("",!0),e(z).tableIndex==1?(n(),o("fieldset",xf,[Cf,t("div",$f,[e(f).clients.is_invoice==1?(n(),P(G,{key:0,plain:"",size:"small",type:"primary",onClick:s[177]||(s[177]=l=>e(ml)(e(f)))},{default:u(()=>[r(" Add Invoice ")]),_:1})):i("",!0)]),e(f).clients.is_invoice==0?(n(),o("div",Vf,[d(tn,{style:{margin:"-4px 50px 0 0"},modelValue:e(z).show_number,"onUpdate:modelValue":s[178]||(s[178]=l=>e(z).show_number=l),"active-text":"invoice number shows ON","inactive-text":"OFF",onChange:e(un)},null,8,["modelValue","onChange"])])):i("",!0),e(f).clients.is_invoice==0?(n(),o("table",Df,[wf,(n(!0),o(V,null,D(e(f).clients.invoiced,(l,j)=>(n(),o("tr",{key:j},[t("td",null,a(l.invoice_number),1),t("td",null,[l.file.length>0?(n(),o("div",{key:0,style:{cursor:"pointer"},onClick:y=>e(Do)(l.file)}," file["+a(l.file.length)+"] ",9,If)):i("",!0)]),t("td",null,a(l.description_type),1),t("td",null,a(l.total_amount),1),t("td",null,a(l.invoice_date),1),t("td",null,a(l.pay_amount),1),t("td",null,a(l.therapist_name),1),t("td",null,[t("div",Uf,[d(G,{plain:"",size:"small",type:"primary",onClick:y=>e(re)(l)},{default:u(()=>[r(" Charge ")]),_:2},1032,["onClick"]),d(G,{style:{"margin-left":"12px"},plain:"",size:"small",type:"primary",onClick:y=>e(Zn)(l)},{default:u(()=>[r(" Detail ")]),_:2},1032,["onClick"]),d(G,{style:{"margin-left":"12px"},plain:"",size:"small",type:"primary",onClick:y=>e(Kn)(l)},{default:u(()=>[r(" Email ")]),_:2},1032,["onClick"]),d(G,{style:{"margin-left":"12px"},plain:"",size:"small",loading:l.loading,type:"primary",onClick:y=>e(eo)(l)},{default:u(()=>[r(" Print PDFs ")]),_:2},1032,["loading","onClick"])])])]))),128))])):i("",!0)])):i("",!0),e(f).group_detail.length>0?(n(),o("fieldset",Sf,[Af,t("table",Pf,[Nf,(n(!0),o(V,null,D(e(f).group_detail,(l,j)=>(n(),o("tr",{key:l.id},[t("td",null,a(l.booking_number),1),t("td",null,a(l.date.substr(0,10)),1),t("td",null,a(l.time)+" ~ "+a(l.end_time),1),t("td",null,a(l.duration)+" (Min)",1),t("td",null,a(l.amount)+" ($)",1),t("td",null,a(l.invoice.invoice_number?l.invoice.invoice_number:""),1)]))),128))])])):i("",!0)])):i("",!0),d(Me,{style:{width:"40%","margin-top":"55px","min-height":"40%"},modelValue:e(Gl),"onUpdate:modelValue":s[180]||(s[180]=l=>T(Gl)?Gl.value=l:null),title:"",draggable:""},{default:u(()=>[Tf,e(f).clients.is_invoice==0?(n(),o("div",Ef,a(e(f).clients.confirm_comment),1)):i("",!0),e(f).clients.canuse_deducation_list.length>0&&e(f).clients.is_invoice==1?(n(),o("div",Mf," Use Deducation: "+a(e(f).clients.canuse_deducation_list[0].deducation_show),1)):i("",!0),e(f).clients.canuse_deducation_list.length==0&&e(f).clients.is_invoice==1?(n(),o("div",Bf," Use Deducation: No ")):i("",!0),t("div",Yf,[d(G,{type:"primary",onClick:s[179]||(s[179]=l=>e(no)())},{default:u(()=>[r("Submit")]),_:1})])]),_:1},8,["modelValue"]),d(Me,{style:{width:"50%","margin-top":"55px","min-height":"40%"},modelValue:e(Zl),"onUpdate:modelValue":s[181]||(s[181]=l=>T(Zl)?Zl.value=l:null),title:"",draggable:""},{default:u(()=>[Of,t("table",Ff,[zf,(n(!0),o(V,null,D(e(co),(l,j)=>(n(),o("tr",{key:l.id},[t("td",Rf,a(j+1),1),t("td",null,a(l.invoicenumber),1),t("td",null,a(l.service_name),1),t("td",null,a(l.duration)+"(Min)",1),t("td",null,a(l.amount)+"($)",1)]))),128))])]),_:1},8,["modelValue"]),d(Me,{style:{width:"60%","margin-top":"55px","min-height":"40%"},modelValue:e(Kl),"onUpdate:modelValue":s[184]||(s[184]=l=>T(Kl)?Kl.value=l:null),title:"",draggable:""},{default:u(()=>[jf,t("div",null,"Email to : "+a(e(f).clients.customerInfo.email),1),t("div",null,"Dear : "+a(e(f).clients.customer_name),1),t("div",null," Sensitive Form Link : "+a(e(f).clients.sentitive_content_url),1),t("div",Lf,[(n(!0),o(V,null,D(e(M),(l,j)=>(n(),o("div",{key:l.id},[d(ll,{modelValue:l.is_selected,"onUpdate:modelValue":y=>l.is_selected=y,label:l.name,size:"large"},null,8,["modelValue","onUpdate:modelValue","label"])]))),128))]),Qf,b(t("textarea",{class:"textarea_input",placeholder:"Please enter","onUpdate:modelValue":s[182]||(s[182]=l=>e(_).indication=l),maxlength:"600"},null,512),[[k,e(_).indication]]),t("div",Hf,[d(G,{loading:e(ye),type:"primary",onClick:s[183]||(s[183]=l=>e(mo)())},{default:u(()=>[r("Send Email")]),_:1},8,["loading"])])]),_:1},8,["modelValue"]),b((n(),P(G,{type:"primary",onClick:e(ko)},{default:u(()=>[r(" 指令方式 ")]),_:1},8,["onClick"])),[[To,!1],[No,e(fo),void 0,{fullscreen:!0,lock:!0}]]),d(Me,{style:{width:"76%"},modelValue:e(yl),"onUpdate:modelValue":s[186]||(s[186]=l=>T(yl)?yl.value=l:null),title:""},{default:u(()=>[d(Fl,{onEventCharge:e(xo),str:e(Co),ChargeArr:e($o),ChargeDialog:e(yl),"onUpdate:ChargeDialog":s[185]||(s[185]=l=>T(yl)?yl.value=l:null)},null,8,["onEventCharge","str","ChargeArr","ChargeDialog"])]),_:1},8,["modelValue"]),d(Me,{style:{width:"50%"},modelValue:e(Xl),"onUpdate:modelValue":s[187]||(s[187]=l=>T(Xl)?Xl.value=l:null),title:""},{default:u(()=>[Wf,t("div",qf,[(n(!0),o(V,null,D(e(wo),(l,j)=>(n(),o("div",{class:"file_desc",onClick:y=>e(pn)(l),key:j},a(l),9,Gf))),128))])]),_:1},8,["modelValue"]),d(Me,{style:{width:"90%"},modelValue:e(bl),"onUpdate:modelValue":s[189]||(s[189]=l=>T(bl)?bl.value=l:null),title:""},{default:u(()=>[d(la,{onEventChinese:e(Uo),chineseArr:e(Io),chineseMedicalDialog:e(bl),"onUpdate:chineseMedicalDialog":s[188]||(s[188]=l=>T(bl)?bl.value=l:null)},null,8,["onEventChinese","chineseArr","chineseMedicalDialog"])]),_:1},8,["modelValue"])])}}});const In=dl(Kf,[["__scopeId","data-v-e76df5fd"]]),l$=Object.freeze(Object.defineProperty({__proto__:null,default:In},Symbol.toStringTag,{value:"Module"})),Fe=K=>(sl("data-v-6fe96ad9"),K=K(),il(),K),Xf={class:"main"},Jf={class:"dialog_procure_box",style:{"margin-top":"0px"}},e2=Fe(()=>t("div",null,"Time:",-1)),t2={key:0},l2={class:"dialog_procure_box sign_box_desc",style:{"justify-content":"flex-end",margin:"-10px 0 12px 0"}},n2=Fe(()=>t("div",{class:"dialog_tilte"},"创建采购单",-1)),o2={class:"fieldset"},a2=Fe(()=>t("legend",{class:"legend"},"发货操作",-1)),s2={class:"createOrderobj_box"},i2=Fe(()=>t("td",{width:"15%"},"客户名称",-1)),d2={class:"part_out_button"},u2={class:"addDuringDialog_box"},r2={class:"InvoiceStartNumber",style:{"justify-content":"center","margin-top":"20px"}},_2=Fe(()=>t("div",null,"To Room:",-1)),c2={class:"part_out_button"},p2=Fe(()=>t("div",{class:"dialog_tilte"},"Health History Form",-1)),m2=Fe(()=>t("div",{class:"Description_box title_name"}," This information is to help the therapist to create a safe and effective treatment plan. ",-1)),v2={key:0,class:"Description_box"},g2={class:"title"},h2=["onUpdate:modelValue"],y2={key:1,class:"Description_box"},b2={class:"title"},f2={key:2,class:"infoData_box"},k2={class:"Description_box"},x2={class:"Description_desc",style:{margin:"0 0 16rpx 0"}},C2=Fe(()=>t("div",{class:""},null,-1)),$2=["onUpdate:modelValue"],V2={class:"show_card"},D2=Fe(()=>t("div",{class:"Description_box title_name",style:{"margin-top":"16rpx"}}," Please check conditions you are experiencing and circle conditions you have experienced in the past. ",-1)),w2={class:"title_desc"},I2={key:1,class:""},U2={class:""},S2=["onUpdate:modelValue"],A2={key:2,class:""},P2={class:""},N2=["onUpdate:modelValue"],T2={key:3,class:""},E2={class:""},M2={class:"part_out_button"},B2=Fe(()=>t("div",{class:"dialog_tilte"},"Add Booking",-1)),Y2=Fe(()=>t("div",{class:"Add_Booking_box"},[r(" Location "),t("span",{class:"red"}," * ")],-1)),O2={class:"Add_Booking_box"},F2=Fe(()=>t("div",{class:"Add_Booking_box"},[r("Client"),t("span",{class:"red"}," * ")],-1)),z2={class:"Add_Booking_box"},R2=Fe(()=>t("div",{class:"Add_Booking_box"},[r("Service"),t("span",{class:"red"}," * ")],-1)),j2={class:"Service_box11"},L2=["onClick"],Q2=Fe(()=>t("div",{class:"Add_Booking_box"},[r(" Date "),t("span",{class:"red"}," * ")],-1)),H2={class:"Add_Booking_box"},W2=Fe(()=>t("div",{class:"Add_Booking_box Therapist_desc"},"Therapist",-1)),q2={class:"menu_box"},G2={class:"gender_box"},Z2={key:0},K2=["onClick"],X2=Fe(()=>t("div",{class:"Add_Booking_box"},[r("time"),t("span",{class:"red"}," * ")],-1)),J2={class:"Add_Booking_box"},e0=Fe(()=>t("div",{class:"Add_Booking_box"},[r("Duration"),t("span",{class:"red"}," * ")],-1)),t0={class:"Add_Booking_box"},l0=Fe(()=>t("div",{class:"Add_Booking_box"},"Look for treatmemt:",-1)),n0={class:"Add_Booking_box"},o0={class:"Add_Booking_box",style:{"margin-top":"25px"}},a0={style:{"margin-left":"10px"}},s0={class:"part_out_button"},i0=Fe(()=>t("div",{style:{height:"400px"}},[t("div",{class:"dialog_tilte"}," Please ensure you read the following information in its entirety. "),t("div",{class:"desc"}," I have read the above information and have stated all my previous and current medical conditions. I will update the Registered Massage Therapist regarding any updates in my condition as soon as possible. "),t("div",{class:"desc"}," In order to provide treatment, this clinic must collect personal health information. I understand that all information that I provide will be kept confidential unless allowed or required by law. I understand that I will be asked for written authorization before this information can be released. "),t("div",{class:"desc"}," I understand the 24 hour cancellation policy and agree to pay the missed appointment fee if I cancel within the 24 hour period preceding my appointment time. I understand that I am responsible to pay for the time reserved with the Registered Massage Therapist; regardless of the time I arrive and am ready for my appointment. I understand that this time will include intake, assessment, treatment, self-care recommendations, charting and administration. I understand that payment in full is due on the day of treatment. ")],-1)),d0={class:"dialog_procure_box"},u0=Fe(()=>t("div",null,"date:",-1)),r0=Fe(()=>t("div",{style:{margin:"0 20px 0 35px"}},"Therapist:",-1)),_0={align:"left",class:"BookingInfoData_date"},c0={class:""},p0={class:""},m0=st({name:"/crm/yuyue/booking"}),v0=st({...m0,props:{str:{type:String,default:""},customer_id:{type:String,default:""}},setup(K){const he=K,{searchDetail:S,btnSearchPart:fe,loading:z,small:Nt,selectList:ye,columns:yt,checkList:bt,pagination:wt,handleSizeChange:pe,handleCurrentChange:it,PartList:je,order_date:Le,deliverDialog:De,selectClick:Ue,deliverDataArr:F,btnDeliverConfirm:Se,expressCompanyData:We,onSearchDate:de,getNote:I,getInvoice:Qe,onCheckIn:_t,addDuringDialog:qe,addDuringConfirm:p,onPaymant:Bt,onCancel:Ye,onHealthForm:Ne,healthDialog:q,infoData:ne,health_info:N,onHealth:Te,btnHealthConfirm:oe,AddBooking:ve,addForm:te,addBookingDialog:lt,serviceData:Oe,TherapistData:Y,isData:ee,selectedTr:x,onSelectLocation:ke,locationDialog:Ee,eventIsNumlocation:It,locationData:Xe,ClientDialog:Q,eventIsNum:dt,ClientData:ft,onSelClient:Rt,goPrivacy:jt,PrivacyDialog:kt,disabledWeekends:Lt,timeData:we,onServiceTimes:xt,serverDate:Ct,btnServerDate:me,btnAddConfirm:nt,goHealth:ct,BookingInfo:Yt,BookingInfoDialog:He,BookingInfoData:be,dropdownVisible:L,addServiceData:xe,onServiceAdd:$t,Therapists:Je,clinicData:Gt,onClinicData:et,onTherapists:ut,onExpressCompanyData:Ge,onDetail:ze,bookingDetailDialog1:Z,formArr:le,onbKDetail:_,stulesShow:g}=Xo(he);return al(()=>{}),(R,$)=>{const Ce=H("el-option"),Vt=H("el-select"),M=H("el-button"),ge=H("el-dialog"),$e=H("el-date-picker"),v=H("el-checkbox");return n(),o("div",Xf,[t("div",Jf,[e2,d(Vt,{clearable:"true",modelValue:e(S).searchDate,"onUpdate:modelValue":$[0]||($[0]=C=>e(S).searchDate=C),filterable:"","allow-create":"","default-first-option":"","reserve-keyword":!1,placeholder:"Please select",onChange:e(Ge)},{default:u(()=>[(n(!0),o(V,null,D(e(We),C=>(n(),P(Ce,{key:C.id,label:C.text,value:C.value},null,8,["label","value"]))),128))]),_:1},8,["modelValue","onChange"]),e(S).type==2?(n(),o("div",t2,"Therapist:")):i("",!0),e(S).type==2?(n(),P(Vt,{key:1,clearable:"true",modelValue:e(S).therapists_id,"onUpdate:modelValue":$[1]||($[1]=C=>e(S).therapists_id=C),filterable:"","allow-create":"","default-first-option":"","reserve-keyword":!1,placeholder:"Please select",onChange:e(ut)},{default:u(()=>[(n(!0),o(V,null,D(e(Je),C=>(n(),P(Ce,{key:C.id,label:C.first_name+C.last_name,value:C.id},null,8,["label","value"]))),128))]),_:1},8,["modelValue","onChange"])):i("",!0),b(t("input",{class:"input",placeholder:"Please enter","onUpdate:modelValue":$[2]||($[2]=C=>e(S).searchKey=C),type:"text"},null,512),[[k,e(S).searchKey]]),d(M,{type:"primary",onClick:$[3]||($[3]=C=>e(fe)()),style:{"margin-left":"20px"},size:"small"},{default:u(()=>[r("Search")]),_:1})]),t("div",l2,[(n(!0),o(V,null,D(e(g),(C,O)=>(n(),o("div",{class:E(["sign_box free",[C.value=="free"?"free":"sign_box",C.value=="new"?"new":"sign_box",C.value=="check_in"?"check_in":"sign_box",C.value=="email"?"Email":"sign_box",C.value=="invoice"?"Invoice":"sign_box"]]),key:C.id},[t("div",{class:E({free_desc:C.value=="free"})},a(C.text),3)],2))),128))]),d(e(xl),{title:"设备列表",selectArr:e(ye),onRefresh:R.onSearch},{default:u(({size:C,checkList:O})=>[d(e(kl),{border:"",onSelect:e(Ue),"max-height":"500","align-whole":"center",showOverflowTooltip:"","table-layout":"auto",loading:e(z),size:"small",data:e(je),columns:e(yt),checkList:O,paginationSmall:C==="small","header-cell-style":{background:"var(--el-table-row-hover-bg-color)",color:"var(--el-text-color-primary)"},onSizeChange:e(pe),onCurrentChange:e(it)},{Name:u(({row:W})=>[r(a(W.first_name)+" "+a(W.last_name),1)]),status:u(({row:W})=>[t("div",{class:E(["status_desc",[W.status=="New"?"new":"show_card",W.status=="Check In"?"check_in":"show_card",W.status=="payment"?"payment":"show_card",W.status=="canceled"?"canceled":"show_card",W.status=="Email"?"Email":"time_value_box",W.status=="Invoice"?"Invoice":"time_value_box"]])},a(W.status),3)]),SeviceDate:u(({row:W})=>[r(a(W.service_date.substring(0,10)),1)]),ServiceTime:u(({row:W})=>[r(a(W.begin_time)+" ~ "+a(W.end_time),1)]),Note:u(({row:W})=>[r(a(e(I)(W)),1)]),Invoice:u(({row:W})=>[r(a(e(Qe)(W)),1)]),operation:u(({row:W})=>[d(M,{link:"",type:"primary",size:e(Nt),onClick:Re=>e(ze)(W)},{default:u(()=>[r(" Detail ")]),_:2},1032,["size","onClick"])]),_:2},1032,["onSelect","loading","data","columns","checkList","paginationSmall","header-cell-style","onSizeChange","onCurrentChange"])]),_:1},8,["selectArr","onRefresh"]),d(ge,{modelValue:e(De),"onUpdate:modelValue":$[5]||($[5]=C=>T(De)?De.value=C:null),title:""},{default:u(()=>[n2,t("fieldset",o2,[a2,t("table",s2,[t("tr",null,[i2,t("td",null,a(e(F).name),1)])])]),t("div",d2,[d(M,{type:"primary",onClick:$[4]||($[4]=C=>e(Se)())},{default:u(()=>[r("确定")]),_:1})])]),_:1},8,["modelValue"]),t("div",u2,[d(ge,{style:{width:"30%"},modelValue:e(qe),"onUpdate:modelValue":$[8]||($[8]=C=>T(qe)?qe.value=C:null),title:""},{default:u(()=>[t("div",r2,[_2,b(t("input",{"onUpdate:modelValue":$[6]||($[6]=C=>e(S).room=C),style:{"margin-left":"5px"},class:"input",type:"text"},null,512),[[k,e(S).room]])]),t("div",c2,[d(M,{type:"primary",onClick:$[7]||($[7]=C=>e(p)())},{default:u(()=>[r("Submit")]),_:1})])]),_:1},8,["modelValue"])]),d(ge,{style:{width:"50%",padding:"0 40px"},modelValue:e(q),"onUpdate:modelValue":$[10]||($[10]=C=>T(q)?q.value=C:null),title:""},{default:u(()=>[p2,m2,(n(!0),o(V,null,D(e(ne),(C,O)=>(n(),o("div",{class:"infoData_box",key:O},[C.type=="input"?(n(),o("div",v2,[t("div",g2,a(C.field_show),1),b(t("input",{type:"text",class:"input8","onUpdate:modelValue":W=>C.field_value=W},null,8,h2),[[k,C.field_value]])])):i("",!0),C.type=="date"?(n(),o("div",y2,[t("div",b2,a(C.field_show),1),d($e,{modelValue:C.field_value,"onUpdate:modelValue":W=>C.field_value=W,type:"date",format:"YYYY-MM-DD","value-format":"YYYY-MM-DD",placeholder:"Please enter",size:R.size},null,8,["modelValue","onUpdate:modelValue","size"])])):i("",!0),C.type=="textarea"?(n(),o("div",f2,[t("div",k2,[t("div",x2,a(C.field_show),1),C2]),b(t("textarea",{class:"textarea_input",placeholder:"Please enter","onUpdate:modelValue":W=>C.field_value=W,maxlength:"600"},null,8,$2),[[k,C.field_value]])])):i("",!0)]))),128)),t("div",V2,[D2,(n(!0),o(V,null,D(e(N),(C,O)=>(n(),o("div",{class:"health_info_box",key:O},[t("div",w2,a(C.title),1),(n(!0),o(V,null,D(C.detail,(W,Re)=>(n(),o("div",{class:"",key:Re},[W.type=="checkbox"?(n(),P(v,{key:0,checked:W.is_selected==1,label:W.title,size:"large",onChange:Ae=>e(Te)(C.detail,W)},null,8,["checked","label","onChange"])):i("",!0),W.type=="input"?(n(),o("div",I2,[t("div",U2,a(W.title),1),b(t("input",{type:"text","onUpdate:modelValue":Ae=>W.field_value=Ae,class:"input1"},null,8,S2),[[k,W.field_value]])])):i("",!0),W.type=="textarea"?(n(),o("div",A2,[t("div",P2,a(W.title),1),b(t("textarea",{class:"textarea_input",style:{width:"97%"},placeholder:"Please enter","onUpdate:modelValue":Ae=>W.field_value=Ae,maxlength:"600"},null,8,N2),[[k,W.field_value]])])):i("",!0),W.type=="label"?(n(),o("div",T2,[t("div",E2,a(W.title),1)])):i("",!0)]))),128))]))),128))]),t("div",M2,[d(M,{type:"primary",onClick:$[9]||($[9]=C=>e(oe)())},{default:u(()=>[r("Submit")]),_:1})])]),_:1},8,["modelValue"]),d(ge,{style:{width:"70%"},modelValue:e(lt),"onUpdate:modelValue":$[22]||($[22]=C=>T(lt)?lt.value=C:null),title:""},{default:u(()=>[B2,Y2,t("div",O2,[b(t("input",{disabled:"","onUpdate:modelValue":$[11]||($[11]=C=>e(te).loacation_name=C),class:"input2",type:"text"},null,512),[[k,e(te).loacation_name]]),d(M,{type:"primary",style:{"margin-left":"10px"},plain:"",size:"small",onClick:$[12]||($[12]=C=>e(ke)())},{default:u(()=>[r(" Select ")]),_:1})]),F2,t("div",z2,[b(t("input",{disabled:"","onUpdate:modelValue":$[13]||($[13]=C=>e(te).Client_name=C),class:"input2",type:"text"},null,512),[[k,e(te).Client_name]]),d(M,{type:"primary",style:{"margin-left":"10px"},plain:"",size:"small",onClick:$[14]||($[14]=C=>e(Rt)())},{default:u(()=>[r(" Select ")]),_:1})]),R2,t("div",j2,[(n(!0),o(V,null,D(e(xe),C=>(n(),o("div",{class:E(["service_desc",{service_desc_active:C.is_Selected==1}]),key:C.id,onClick:O=>e($t)(C)},a(C.name),11,L2))),128))]),Q2,t("div",H2,[d($e,{style:{width:"100%"},modelValue:e(te).date,"onUpdate:modelValue":$[15]||($[15]=C=>e(te).date=C),type:"date",disabledDate:e(Lt),"value-format":"YYYY-MM-DD",placeholder:"Please select",onChange:e(Ct)},null,8,["modelValue","disabledDate","onChange"])]),W2,t("div",q2,[(n(!0),o(V,null,D(e(Y),(C,O)=>(n(),o("div",{class:"menu_desc",key:O},[t("div",G2,[r(a(C.text)+" ",1),O>2?(n(),o("span",Z2," ( "+a(C.sex==2?"Female":"Male")+" ) ",1)):i("",!0)]),t("div",{class:E(["selected1",{selected_active:C.isselect==1}]),onClick:W=>e(x)(C,O)},[t("div",{class:E(["selected_min",{selected_min_active:C.isselect==1}])},null,2)],10,K2)]))),128))]),X2,t("div",J2,[d(Vt,{style:{width:"100%"},clearable:"true",modelValue:e(te).service_times,"onUpdate:modelValue":$[16]||($[16]=C=>e(te).service_times=C),filterable:"","allow-create":"","default-first-option":"","reserve-keyword":!1,placeholder:"Please select",onClick:$[17]||($[17]=C=>e(xt)())},{default:u(()=>[(n(!0),o(V,null,D(e(we),C=>(n(),P(Ce,{key:C.id,label:C.text,value:C.value},null,8,["label","value"]))),128))]),_:1},8,["modelValue"])]),e0,t("div",t0,[b(t("input",{placeholder:"Please Add Duration","onUpdate:modelValue":$[18]||($[18]=C=>e(te).During=C),class:"input2",type:"text"},null,512),[[k,e(te).During]]),r(" ( Min. ) ")]),l0,t("div",n0,[b(t("textarea",{style:{height:"60px"},class:"textarea_input1",placeholder:"Please enter","onUpdate:modelValue":$[19]||($[19]=C=>e(te).description=C),maxlength:"600"},null,512),[[k,e(te).description]])]),t("div",o0,[d(v),t("div",a0,[r(" I have read and agreed to the booking police "),t("span",{class:"agreement",onClick:$[20]||($[20]=C=>e(jt)())},"《Privacy Policy》")])]),t("div",s0,[d(M,{type:"primary",onClick:$[21]||($[21]=C=>e(nt)())},{default:u(()=>[r("Submit")]),_:1})])]),_:1},8,["modelValue"]),d(ge,{style:{width:"78%"},modelValue:e(Q),"onUpdate:modelValue":$[24]||($[24]=C=>T(Q)?Q.value=C:null),title:""},{default:u(()=>[d(pl,{onEventIsNum:e(dt),str:1,ClientData:e(ft),ClientDialog:e(Q),"onUpdate:ClientDialog":$[23]||($[23]=C=>T(Q)?Q.value=C:null)},null,8,["onEventIsNum","ClientData","ClientDialog"])]),_:1},8,["modelValue"]),d(ge,{style:{width:"78%"},modelValue:e(Ee),"onUpdate:modelValue":$[26]||($[26]=C=>T(Ee)?Ee.value=C:null),title:""},{default:u(()=>[d(Tl,{onEventIsNumlocation:e(It),note:1,locationData:e(Xe),locationDialog:e(Ee),"onUpdate:locationDialog":$[25]||($[25]=C=>T(Ee)?Ee.value=C:null)},null,8,["onEventIsNumlocation","locationData","locationDialog"])]),_:1},8,["modelValue"]),d(ge,{style:{width:"50%"},modelValue:e(kt),"onUpdate:modelValue":$[27]||($[27]=C=>T(kt)?kt.value=C:null),title:""},{default:u(()=>[i0]),_:1},8,["modelValue"]),d(ge,{style:{width:"70%"},modelValue:e(He),"onUpdate:modelValue":$[29]||($[29]=C=>T(He)?He.value=C:null),title:""},{default:u(()=>[t("div",d0,[u0,d($e,{style:{"margin-left":"20px"},modelValue:e(te).dateInfo,"onUpdate:modelValue":$[28]||($[28]=C=>e(te).dateInfo=C),type:"date","value-format":"YYYY-MM-DD",placeholder:"Please select",onChange:e(Ct)},null,8,["modelValue","onChange"]),r0,t("div",null,a(e(te).Terapist),1)]),(n(!0),o(V,null,D(e(be),(C,O)=>(n(),o("table",{class:"createOrderobj_box",key:O},[t("tr",null,[t("td",_0,a(C.date),1)]),(n(!0),o(V,null,D(C.detail,(W,Re)=>(n(),o("tr",{key:Re},[(n(!0),o(V,null,D(W,(Ae,w)=>(n(),o("td",{key:w},[t("div",{class:E(["time_value_box",[Ae.status=="stop"?"stop":"time_value_box",Ae.status=="free"?"free":"time_value_box",Ae.status=="new"?"new":"time_value_box",Ae.status=="Check In"?"check_in":"time_value_box",Ae.status=="payment"?"payment":"time_value_box",Ae.status=="canceled"?"canceled":"time_value_box",Ae.status=="email"?"Email":"time_value_box",Ae.status=="invoice"?"Invoice":"time_value_box"]])},[t("div",c0,a(Ae.time_value),1),t("div",p0,a(Ae.client_name.first_name)+" "+a(Ae.client_name.last_name)+" ( "+a(Ae.status)+" ) ",1)],2)]))),128))]))),128))]))),128))]),_:1},8,["modelValue"]),d(ge,{style:{width:"93%"},modelValue:e(Z),"onUpdate:modelValue":$[31]||($[31]=C=>T(Z)?Z.value=C:null),title:"",draggable:""},{default:u(()=>[d(In,{bookingDetailDialog1:e(Z),"onUpdate:bookingDetailDialog1":$[30]||($[30]=C=>T(Z)?Z.value=C:null),str:1,bookingorder_id:e(le).bookingorder_id,onOnbKDetail:e(_)},null,8,["bookingDetailDialog1","bookingorder_id","onOnbKDetail"])]),_:1},8,["modelValue"])])}}});const Un=dl(v0,[["__scopeId","data-v-6fe96ad9"]]),n$=Object.freeze(Object.defineProperty({__proto__:null,default:Un},Symbol.toStringTag,{value:"Module"})),ae=K=>(sl("data-v-fa11dc58"),K=K(),il(),K),g0={class:"main"},h0={class:"dialog_procure_box dialog_procure_box1",style:{"margin-top":"0px"}},y0={class:"dialog_procure_box"},b0={class:"dialog_procure_box"},f0=ae(()=>t("div",{style:{margin:"0 4px 0 0"}},"Sort By :",-1)),k0={class:"online_img_box"},x0={key:0,class:"online_img",src:kn,alt:""},C0={key:1},$0={class:"online_img_box"},V0={key:0,class:"vip_icon",src:xn,alt:""},D0={key:1},w0={class:"online_img_box"},I0={key:0,class:"dialog_tilte"},U0={key:1,class:"dialog_procure_box",style:{margin:"0px 0 10px 0"}},S0=["onClick"],A0={key:2,class:"basic_box"},P0=ae(()=>t("span",{style:{margin:"0 0 0 0px"}},"Name : ",-1)),N0=ae(()=>t("span",null,"Phone : ",-1)),T0=ae(()=>t("span",null,"Email : ",-1)),E0=ae(()=>t("span",null,"Upcoming Booking : ",-1)),M0=ae(()=>t("span",null,"Last treatment : ",-1)),B0={key:3,class:"createOrderobj_box"},Y0=ae(()=>t("td",{width:"10%",class:"td_title"},"First Name",-1)),O0={width:"20%"},F0={key:0},z0=ae(()=>t("td",{width:"10%",class:"td_title"},"Last Name",-1)),R0={key:0},j0=ae(()=>t("td",{width:"10%",class:"td_title"},"Address",-1)),L0={width:"20%"},Q0={key:0},H0=ae(()=>t("td",{class:"td_title"},"City",-1)),W0={key:0},q0=ae(()=>t("td",{class:"td_title"},"Province",-1)),G0={key:0},Z0=ae(()=>t("td",{class:"td_title"},"Country",-1)),K0={key:0},X0=ae(()=>t("td",{class:"td_title"},"Postal",-1)),J0={key:0},ek=ae(()=>t("td",{class:"td_title"},"Patient File #",-1)),tk={key:0},lk=ae(()=>t("td",{class:"td_title"},[r("Email"),t("span",{class:"red"}," * ")],-1)),nk={key:0},ok={class:"td_title"},ak={key:0,class:"red"},sk={colspan:"3"},ik={key:0},dk={key:3,style:{color:"red","margin-left":"10px"}},uk=ae(()=>t("td",{class:"td_title"},"Gender",-1)),rk={key:0},_k={key:1,class:"allQuestions_box1"},ck=["onClick"],pk=ae(()=>t("td",{class:"td_title"},"Insurance Company",-1)),mk={key:0},vk=ae(()=>t("td",{class:"td_title"},"Coverage Type",-1)),gk={key:0,class:"createOrderobj_box11"},hk={class:"createOrderobj_box66_tr",style:{"font-size":"12px"}},yk={key:0,class:"red"},bk={key:0,class:"red"},fk={key:0,class:"red"},kk={key:0,class:"red"},xk={key:0},Ck={key:0},$k=ae(()=>t("td",{style:{"text-align":"center",padding:"5px 0"},colspan:"6"}," no data ",-1)),Vk=[$k],Dk={key:0},wk=["onUpdate:modelValue"],Ik={key:0},Uk=["onUpdate:modelValue"],Sk={key:0},Ak={key:0},Pk=["onUpdate:modelValue"],Nk={key:0},Tk=ae(()=>t("td",{class:"td_title"},"Insurance Num",-1)),Ek={key:0},Mk=ae(()=>t("td",{class:"td_title",width:"11%"},"D.O.B",-1)),Bk={key:0},Yk=ae(()=>t("td",{class:"td_title"},"Booking notice type",-1)),Ok={key:0},Fk={key:1,class:"Service_box11"},zk=["onClick"],Rk=ae(()=>t("td",{class:"td_title"},"Is VIP",-1)),jk={key:0,style:{color:"#fd6b2d"}},Lk=ae(()=>t("td",{class:"td_title"},"Note",-1)),Qk={colspan:"5"},Hk={key:0},Wk={colspan:"6"},qk={style:{display:"flex","justify-content":"flex-end"}},Gk={key:4,class:"part_out_button"},Zk={key:5},Kk={key:6},Xk={key:7},Jk={key:8},ex={key:9},tx={key:10},lx={style:{margin:"0px 0 10px 0"}},nx={class:"createOrderobj_box11"},ox=ae(()=>t("tr",{class:"createOrderobj_box66_tr"},[t("td",null,"Idx"),t("td",null,"User Name"),t("td",null,[r("Relationship "),t("span",{class:"red"},"*")]),t("td",null,"Action")],-1)),ax=["onUpdate:modelValue"],sx={style:{"margin-top":"13px"}},ix={class:"part_out_button"},dx=ae(()=>t("div",{class:"dialog_tilte"},"payment",-1)),ux={class:"createOrderobj_box"},rx=ae(()=>t("td",{width:"30%"},[r("Client"),t("span",{class:"red"}," * ")],-1)),_x=ae(()=>t("td",null,[r("Pay Amount"),t("span",{class:"red"}," * ")],-1)),cx=ae(()=>t("td",null,"Collection Time",-1)),px=ae(()=>t("td",null,[r("Pay Method"),t("span",{class:"red"},"*")],-1)),mx={key:0},vx=ae(()=>t("td",null,[r("Check Number"),t("span",{class:"red"}," * ")],-1)),gx=ae(()=>t("td",null,"Account ID",-1)),hx=ae(()=>t("td",null,"Comment",-1)),yx={colspan:"5"},bx={class:"part_out_button"},fx=ae(()=>t("div",{class:"dialog_tilte"},null,-1)),kx={class:"createOrderobj_box"},xx=["onUpdate:modelValue"],Cx=["onUpdate:modelValue"],$x=["onUpdate:modelValue"],Vx=["onUpdate:modelValue"],Dx=["onUpdate:modelValue"],wx=["onUpdate:modelValue"],Ix=["onUpdate:modelValue"],Ux={class:"part_out_button"},Sx=ae(()=>t("div",{class:"dialog_tilte"},"Family Relation",-1)),Ax={style:{margin:"-10px 0 10px 0"}},Px={class:"createOrderobj_box"},Nx=ae(()=>t("tr",{class:"createOrderobj_box66_tr"},[t("td",null,"Idx"),t("td",null,"User Name"),t("td",null,[r("Relationship "),t("span",{class:"red"},"*")]),t("td",null,"Action")],-1)),Tx=["onUpdate:modelValue"],Ex={style:{"margin-top":"13px"}},Mx={class:"part_out_button"},Bx={class:"dialog_procure_box dialog_procure_box1",style:{margin:"0px 0 -20px 0"}},Yx={class:"dialog_procure_box"},Ox={class:"dialog_procure_box"},Fx=ae(()=>t("div",{style:{margin:"0 4px 0 0"}},"Sort By :",-1)),zx={class:"online_img_box"},Rx={key:0,class:"online_img",src:kn,alt:""},jx={key:1},Lx={class:"online_img_box"},Qx={key:0,class:"vip_icon",src:xn,alt:""},Hx={key:1},Wx={class:"online_img_box"},qx=st({name:"/crm/yuyue/components/Client"}),Gx=st({...qx,props:{str:{type:String,default:""},ClientData:{type:Object,default:""},ClientDialog:{type:Boolean,default:""}},emits:["update:ClientDialog","update:eventIsNum"],setup(K,{emit:he}){const S=K,fe=ue(),z=Pe({}),Nt=Pe({}),ye=Pe({}),yt=Pe({});Pe({});const bt=Pe({}),wt=Pe({}),pe=ue(!1),it=ue(!1),je=ue(!1),Le=ue(!1),De=ue(!1),Ue=ue(""),F=ue(1),Se=ue("Action");ue("");const We=ue(!1),de=ue([]),I=ue([]),Qe=ue([]),_t=ue([]),qe=ue([]),p=ue([]),Bt=ue([{name:"Basic Info",id:1},{name:"Family Relation",id:2},{name:"Booking",id:3},{name:"Invoice List",id:4},{name:"Paid history",id:5},{name:"Statement",id:6}]),Ye=Pe({client_name:"",Client_id:"",Client_name:"",client_id:""});Pe({name:"",id:"",clinic_id:""});const Ne=Pe({total:0,pageSize:15,currentPage:1,background:!0,pageSizes:[10,30,50,100]}),q=ue([{id:1,text:"Mobile SMS",value:"message",is_selected:0},{id:2,text:"Email",value:"email",is_selected:1}]),ne=ue([{id:1,text:"Paypal",value:"Paypal"},{id:2,text:"VISA",value:"VISA"},{id:3,text:"MasterCard",value:"MasterCard"},{id:4,text:"AMERICAN_EXPRESS",value:"AMERICAN_EXPRESS"},{id:5,text:"Cheque",value:"Cheque"},{id:6,text:"BankTransfer",value:"BankTransfer"},{id:7,text:"Cash",value:"Cash"},{id:8,text:"Other",value:"Other"}]),N=[{type:"selection",width:55,align:"left",hide:({checkList:_})=>!_.includes("勾选列")},{label:"序号列",type:"index",width:40,hide:({checkList:_})=>!_.includes("序号列")},{label:"Online",prop:"is_online",minWidth:55,slot:"Online",hide:({checkList:_})=>!_.includes("online")},{label:"Is VIP",prop:"is_online",minWidth:55,slot:"IsVIP",hide:({checkList:_})=>!_.includes("Is VIP")},{label:"First Name",prop:"firstName",slot:"Name",minWidth:100,hide:({checkList:_})=>!_.includes("First Name")},{label:"Last Name",prop:"lastName",minWidth:100,hide:({checkList:_})=>!_.includes("Last Name")},{label:"Phone",prop:"phone",minWidth:120,hide:({checkList:_})=>!_.includes("Phone")},{label:"Email",prop:"email",minWidth:120,hide:({checkList:_})=>!_.includes("Email")},{label:"Relation",prop:"relation_show",minWidth:120,slot:"Relation",hide:({checkList:_})=>!_.includes("Relation")},{label:"Upcoming Booking",prop:"upcoming_booking",minWidth:120,hide:({checkList:_})=>!_.includes("Upcoming Booking")},{label:"Last treatment",prop:"last_treatment",minWidth:120,hide:({checkList:_})=>!_.includes("Last treatment")},{label:"Booking notice type",prop:"booking_notice_type",minWidth:120,hide:({checkList:_})=>!_.includes("Booking notice type")},{label:"Coupon times",prop:"split_times",minWidth:120,hide:({checkList:_})=>!_.includes("Coupon times")},{label:"Remain Amount",prop:"remain_amount",minWidth:120,hide:({checkList:_})=>!_.includes("Remain Amount")},{label:"Number",prop:"customerNo",minWidth:100,hide:({checkList:_})=>!_.includes("Number")},{label:"Address",prop:"address",minWidth:100,hide:({checkList:_})=>!_.includes("Address")},{label:"Province",prop:"state",minWidth:150,slot:"slotAction",hide:({checkList:_})=>!_.includes("Province")},{label:"City",prop:"city",minWidth:120,hide:({checkList:_})=>!_.includes("City")},{label:"Patient File #",prop:"patientFile",minWidth:120,hide:({checkList:_})=>!_.includes("Patient File #")},{label:"D.O.B",prop:"directOfBilling",minWidth:120,hide:({checkList:_})=>!_.includes("D.O.B")},{label:"Gender",prop:"city",minWidth:120,slot:"Gender",hide:({checkList:_})=>!_.includes("Gender")},{label:"Insurance Company",prop:"insurance_company",minWidth:140,hide:({checkList:_})=>!_.includes("Insurance Company")},{label:"Insurance Num",prop:"insuranceNum",minWidth:120,hide:({checkList:_})=>!_.includes("Insurance Num")},{label:"Action",fixed:"right",width:200,slot:"operation",hide:({checkList:_})=>!_.includes("Action")}],Te=["online","Is VIP","First Name","Last Name","Phone","Email","Relation","Upcoming Booking","Last treatment","Booking notice type","Coupon times","Remain Amount","Number","Address","Province","City","Patient File #","D.O.B","Gender","Insurance Company","Insurance Num","Action"],oe=[{type:"selection",width:55,align:"left",hide:({checkList:_})=>!_.includes("勾选列")},{label:"序号列",type:"index",width:40,hide:({checkList:_})=>!_.includes("序号列")},{label:"Online",prop:"is_online",minWidth:55,slot:"Online",hide:({checkList:_})=>!_.includes("online")},{label:"Is VIP",prop:"is_online",minWidth:55,slot:"IsVIP",hide:({checkList:_})=>!_.includes("Is VIP")},{label:"First Name",prop:"firstName",slot:"Name",minWidth:100,hide:({checkList:_})=>!_.includes("First Name")},{label:"Last Name",prop:"lastName",minWidth:100,hide:({checkList:_})=>!_.includes("Last Name")},{label:"Phone",prop:"phone",minWidth:120,hide:({checkList:_})=>!_.includes("Phone")},{label:"Email",prop:"email",minWidth:120,hide:({checkList:_})=>!_.includes("Email")},{label:"Relation",prop:"relation_show",minWidth:120,slot:"Relation",hide:({checkList:_})=>!_.includes("Relation")},{label:"Upcoming Booking",prop:"upcoming_booking",minWidth:120,hide:({checkList:_})=>!_.includes("Upcoming Booking")},{label:"Last treatment",prop:"last_treatment",minWidth:120,hide:({checkList:_})=>!_.includes("Last treatment")},{label:"Booking notice type",prop:"booking_notice_type",minWidth:120,hide:({checkList:_})=>!_.includes("Booking notice type")},{label:"Coupon times",prop:"split_times",minWidth:120,hide:({checkList:_})=>!_.includes("Coupon times")},{label:"Remain Amount",prop:"remain_amount",minWidth:120,hide:({checkList:_})=>!_.includes("Remain Amount")},{label:"Number",prop:"customerNo",minWidth:100,hide:({checkList:_})=>!_.includes("Number")},{label:"Address",prop:"address",minWidth:100,hide:({checkList:_})=>!_.includes("Address")},{label:"Province",prop:"state",minWidth:150,slot:"slotAction",hide:({checkList:_})=>!_.includes("Province")},{label:"City",prop:"city",minWidth:120,hide:({checkList:_})=>!_.includes("City")},{label:"Patient File #",prop:"patientFile",minWidth:120,hide:({checkList:_})=>!_.includes("Patient File #")},{label:"D.O.B",prop:"directOfBilling",minWidth:120,hide:({checkList:_})=>!_.includes("D.O.B")},{label:"Gender",prop:"city",minWidth:120,slot:"Gender",hide:({checkList:_})=>!_.includes("Gender")},{label:"Insurance Company",prop:"insurance_company",minWidth:140,hide:({checkList:_})=>!_.includes("Insurance Company")},{label:"Insurance Num",prop:"insuranceNum",minWidth:120,hide:({checkList:_})=>!_.includes("Insurance Num")}],ve=["online","Is VIP","First Name","Last Name","Phone","Email","Relation","Upcoming Booking","Last treatment","Booking notice type","Coupon times","Remain Amount","Number","Address","Province","City","Patient File #","D.O.B","Gender","Insurance Company","Insurance Num"],te=ue([{id:1,text:"Male",value:1,is_selected:0},{id:2,text:"Female",value:2,is_selected:0}]),lt=ue([{id:1,text:"Last Name",value:"last_name",is_selected:0},{id:2,text:"Last Name Desc",value:"last_name_desc ",is_selected:0},{id:2,text:"First Name ",value:"first_name ",is_selected:0},{id:2,text:"First Name Desc",value:"first_name_desc ",is_selected:0}]),Oe=ue([{id:1,text:"CA/USA(+1)",value:"001"},{id:3,text:"CN(+86)",value:"0086"}]);fn(S.ClientData,(_,g)=>{ke()});const Y=Pe({name:"",customer_id:"",pay_amount:"",pay_method:"",cheque_number:"",content:"",service_name:"",duration:"",invoice_price:"",time:"",other:"",account_id:""}),ee=Pe({order_key:"",material_key:"",truck_key:"",truck_id:"",comment:"",show:"",searchKey:"",tableIndex:"",order_by:"last_name",type:""}),x=Pe({firstName:"",lastName:"",phone:"",email:"",coverageType:"",sex:"",insuranceCompany:"",insuranceNum:"",customer_id:"",type:"",address:"",state:"",city:"",direct_of_billing:"",patient_file:"",customer_no:"",phone_code:"001",booking_notice_type:"email",country:"",postal:"",is_vip:!1,comment:"",customer_name:"",relation_show:"",firstNameT:"",lastNameT:"",phoneT:"",emailT:"",upcoming_bookingT:"",last_treatmentT:"",insurance_coverage_type:[]});async function ke(_){let g=parseInt(localStorage.getItem("type"));ee.type=g;let R="";S.ClientData.clinic_id&&(R=S.ClientData.clinic_id,Ue.value=S.ClientData.clinic_id),g==2&&(R=localStorage.getItem("clinicIdOverall"),Ue.value=localStorage.getItem("clinicIdOverall")),pe.value=!0;const{data:$}=await zo(Object.assign(z,{searchKey:ee.searchKey,clinic_id:R,page:Ne.currentPage,pageSize:Ne.pageSize,order_by:ee.order_by}));Se.value="Action",Ne.total=$.total_record,de.value=$.data,_=="edit"&&he("eventIsNum"),pe.value=!1}function Ee(){F.value=2,ee.tableIndex=0,Object.keys(x).map(g=>{x[g]=""}),x.booking_notice_type="email",x.phone_code="001",x.insurance_coverage_type=[];let _={id:x.insurance_coverage_type.length+1,type:"",limit_amount:"",begin_time:"01/01",time:["01","01"],rate:""};x.insurance_coverage_type.push(_),x.is_vip=!1,Le.value=!0}function It(_){F.value=1,ee.tableIndex=0,x.customer_id=_.id,x.customer_name=_.firstName?_.firstName+" "+_.lastName:_.showText,x.firstName=_.firstName,x.relation_show=_.relation_show,x.lastName=_.lastName,x.phone=_.phone,x.email=_.email,x.coverageType=_.coverageType,x.sex=_.sex,x.insuranceCompany=_.insuranceCompany,x.insurance_coverage_type=_.insurance_coverage_type,x.insuranceNum=_.insuranceNum,x.address=_.address,x.state=_.state,x.city=_.city,x.country=_.country,x.postal=_.postal,x.comment=_.comment,x.direct_of_billing=_.direct_of_billing,x.patient_file=_.patient_file,x.firstNameT=_.firstName,x.lastNameT=_.lastName,x.phoneT=_.phone,x.emailT=_.email,x.upcoming_bookingT=_.upcoming_booking,x.last_treatmentT=_.last_treatment,x.phone_code=_.phone_country_code,x.is_vip=_.is_vip,x.booking_notice_type=_.booking_notice_type,q.value.forEach((g,R)=>{g.is_selected=0,_.booking_notice_type&&_.booking_notice_type.includes(g.value)&&(g.is_selected=1)}),Yt(_),Le.value=!0}async function Xe(){pe.value=!0;const{data:_}=await Ro(Object.assign(Nt,{firstName:x.firstName,lastName:x.lastName,phone:x.phone,email:x.email,coverageType:x.coverageType,sex:x.sex,insuranceCompany:x.insuranceCompany,insuranceNum:x.insuranceNum,customer_id:x.customer_id,type:4,address:x.address,state:x.state,city:x.city,country:x.country,postal:x.postal,comment:x.comment,direct_of_billing:x.direct_of_billing,patient_file:x.patient_file,phone_country_code:x.phone_code,is_vip:x.is_vip,clinic_id:Ue,booking_notice_type:x.booking_notice_type,insurance_coverage_type:x.insurance_coverage_type}));_.code==0?(pe.value=!1,ke("edit"),Le.value=!1):(pe.value=!1,at({type:"error",message:_.msg}))}const Q=(_,g)=>{S.str==1?(S.ClientData.name=_.firstName?_.firstName+" "+_.lastName:_.showText,S.ClientData.id=_.id,he("update:ClientDialog",!1),he("eventIsNum")):It(_)},dt=(_,g)=>{if(S.str==1){if(_.length>1){const R=_.shift(),{toggleRowSelection:$}=fe.value.getTableRef();$(R,!1)}S.ClientData.name=g.firstName+" "+g.lastName,S.ClientData.id=g.id,he("update:ClientDialog",!1),he("eventIsNum")}};async function ft(){const{data:_}=await Ho(Object.assign(ye,{customer_id:x.customer_id}));_.code==1?(Le.value=!1,ke(),at({type:"success",message:_.msg})):at({type:"error",message:_.msg})}const Rt=()=>{hn.confirm("Are you sure you want to delete this location",{confirmButtonText:"confirm",cancelButtonText:"cancel",type:"warning"}).then(()=>{ft()}).catch(()=>{at({type:"info",message:"Canceled"})})};function jt(_){x.sex=_.value}function kt(_){if(x.phone_code==""||x.phone_code=="0086")return;if(_=_.replace("(",""),_=_.replace(")",""),_=_.replace("-",""),/[^\d]/g.test(_)){at({type:"error",message:"Please enter the Number"});return}let R="";_.length>0&&(R=_.slice(0,0)+"("+_.slice(0),_.length>3&&(R=R.slice(0,4)+")"+R.slice(4),_.length>6&&(R=R.slice(0,8)+"-"+R.slice(8),_.length>10&&(R=R.substring(0,13))))),x.phone=R}async function Lt(){if(pe.value=!0,Y.pay_method!="Cheque"&&(Y.cheque_number=""),Y.pay_method=="Cheque"&&Y.cheque_number==""){at({type:"error",message:"Please enter cheque number"});return}if(Y.pay_method=="Other"){if(Y.other==""){at({type:"error",message:"Please enter pay method"});return}Y.other}else Y.pay_method;const{data:_}=await jo(Object.assign(yt,{customer_id:Y.customer_id,pay_amount:Y.pay_amount,pay_method:Y.pay_method,cheque_number:Y.cheque_number,content:Y.content,account_id:Y.account_id}));_.code==1?(ke(),at({type:"success",message:_.msg}),We.value=!1):at({type:"error",message:_.msg}),pe.value=!1}function we(_){_==null&&(x.phone_code="")}function xt(_){_==null&&(Y.pay_method="")}function Ct(_){_.is_selected==1?_.is_selected=0:_.is_selected==0&&(_.is_selected=1);let g=[];q.value.forEach((R,$)=>{R.is_selected==1&&g.push(R.value)}),x.booking_notice_type=g.toString()}async function me(){pe.value=!0;const{data:_}=await Lo(Object.assign(bt,{customer_list:qe.value,title_list:I.value,role:"therapists",clinic_id:""}));_.code==1?(pe.value=!1,ke(),it.value=!1,at({type:"success",message:_.msg})):(pe.value=!1,at({type:"error",message:_.msg}))}function nt(_){Ne.pageSize=_,ke()}function ct(_){Ne.currentPage=_,ke()}function Yt(_){Ye.client_name=_.Principal_Client_name+"(#"+_.Principal_Client_id+")",Ye.client_id=_.Principal_Client_id,ee.searchKey&&(ee.searchKey="",ke()),p.value=JSON.parse(JSON.stringify(_.relation_arr))}function He(){Se.value="Action1",De.value=!0}const be=(_,g)=>{Ye.Client_name=_.firstName?_.firstName+" "+_.lastName:_.showText,Ye.Client_id=_.id;let R={customer_id:"",customer_id_relation:Ye.Client_id,customer_name_relation:Ye.Client_name,id:p.value.length+1,relationship:""};p.value.push(R),De.value=!1};function L(_){let g=p.value.findIndex(R=>R.id===_.id);g!==-1&&p.value.splice(g,1),p.value.forEach((R,$)=>{R.id=$+1})}const xe=_=>{hn.confirm("Are you sure you want to delete this item ?",{confirmButtonText:"confirm",cancelButtonText:"cancel",type:"warning"}).then(()=>{L(_)}).catch(()=>{at({type:"info",message:"Canceled"})})};async function $t(){const{data:_}=await Qo(Object.assign(wt,{Principal_Client_id:Ye.client_id,relation:p.value}));_.code==1?(je.value=!1,ee.searchKey="",ke(),at({type:"success",message:_.msg})):at({type:"error",message:_.msg})}function Je(_){ee.tableIndex=_}function Gt(){ke()}function et(){F.value==1?F.value=2:F.value=1}function ut(_){let g=x.insurance_coverage_type.findIndex(R=>R.id===_.id);g!==-1&&x.insurance_coverage_type.splice(g,1),x.insurance_coverage_type.forEach((R,$)=>{R.id=$+1})}function Ge(){let _={id:x.insurance_coverage_type.length+1,type:"",limit_amount:"",begin_time:"01/01",time:["01","01"],rate:""};x.insurance_coverage_type.push(_)}function ze(_,g){g.begin_time=_[0]+"/"+_[1]}const Z=ue([]);function le(){Z.value=[];let _=[],g=[],R=[];for(let $=1;$<=31;$++){let Ce={value:$<10?"0"+$:$,label:$<10?"0"+$:$};R.push(Ce)}for(let $=1;$<=30;$++){let Ce={value:$<10?"0"+$:$,label:$<10?"0"+$:$};g.push(Ce)}for(let $=1;$<=29;$++){let Ce={value:$<10?"0"+$:$,label:$<10?"0"+$:$};_.push(Ce)}for(let $=1;$<=12;$++){let Ce={value:$<10?"0"+$:$,label:$<10?"0"+$:$,children:$==2?_:$==4||$==6||$==9||$==11?g:R};Z.value.push(Ce)}}return al(()=>{ke(),le()}),(_,g)=>{const R=H("el-button"),$=H("el-option"),Ce=H("el-select"),Vt=H("el-cascader"),M=H("el-date-picker"),ge=H("el-switch"),$e=H("el-dialog");return n(),o("div",g0,[t("div",h0,[t("div",y0,[b(t("input",{class:"input","onUpdate:modelValue":g[0]||(g[0]=v=>ee.searchKey=v),type:"text"},null,512),[[k,ee.searchKey]]),d(R,{style:{"margin-left":"20px"},type:"primary",onClick:g[1]||(g[1]=v=>ke())},{default:u(()=>[r("Search")]),_:1})]),t("div",b0,[f0,d(Ce,{style:{width:"150px"},clearable:"true",modelValue:ee.order_by,"onUpdate:modelValue":g[2]||(g[2]=v=>ee.order_by=v),placeholder:"Please select",onChange:Gt},{default:u(()=>[(n(!0),o(V,null,D(lt.value,v=>(n(),P($,{key:v.id,label:v.text,value:v.value},null,8,["label","value"]))),128))]),_:1},8,["modelValue"]),d(R,{type:"primary",onClick:g[3]||(g[3]=v=>Ee()),plain:""},{default:u(()=>[r("Add Client")]),_:1})])]),d(e(xl),{title:"设备列表",selectArr:Te,onRefresh:_.onSearch},{default:u(({size:v,checkList:C})=>[d(e(kl),{border:"","highlight-current-row":"",ref_key:"singleTableRef",ref:fe,onSelect:dt,onRowClick:Q,"max-height":"500","align-whole":"center",showOverflowTooltip:"","table-layout":"auto",loading:pe.value,size:"small",data:de.value,columns:N,checkList:C,pagination:Ne,paginationSmall:v==="small","header-cell-style":{background:"var(--el-table-row-hover-bg-color)",color:"var(--el-text-color-primary)"},onSizeChange:nt,onCurrentChange:ct},{Gender:u(({row:O})=>[r(a(O.sex==1?"Male":"Female"),1)]),Online:u(({row:O})=>[t("div",k0,[O.is_online==1?(n(),o("img",x0)):(n(),o("div",C0))])]),IsVIP:u(({row:O})=>[t("div",$0,[O.is_vip?(n(),o("img",V0)):(n(),o("div",D0))])]),Relation:u(({row:O})=>[t("div",w0,a(O.relation_show)+" ",1)]),operation:u(({row:O})=>[d(R,{link:"",type:"primary",size:v,onClick:fl(W=>It(O),["stop"])},{default:u(()=>[r(" Detail ")]),_:2},1032,["size","onClick"])]),_:2},1032,["loading","data","checkList","pagination","paginationSmall","header-cell-style"])]),_:1},8,["onRefresh"]),d($e,{style:{width:"90%"},modelValue:Le.value,"onUpdate:modelValue":g[29]||(g[29]=v=>Le.value=v),title:"",draggable:""},{default:u(()=>[x.customer_id==""?(n(),o("div",I0," Add Client ")):i("",!0),x.customer_id?(n(),o("div",U0,[(n(!0),o(V,null,D(Bt.value,(v,C)=>(n(),o("div",{class:E(["situationArr_desc",[ee.tableIndex==C?"situationArr_active":"situationArr_desc"]]),key:v.id,onClick:O=>Je(C)},a(v.name),11,S0))),128))])):i("",!0),x.customer_id?(n(),o("div",A0,[t("div",null,[P0,r(a(x.firstNameT)+a(x.lastNameT),1)]),t("div",null,[N0,r(a(x.phoneT),1)]),t("div",null,[T0,r(a(x.emailT),1)]),t("div",null,[E0,r(a(x.upcoming_bookingT),1)]),t("div",null,[M0,r(a(x.last_treatmentT),1)])])):i("",!0),ee.tableIndex==0?(n(),o("table",B0,[t("tr",null,[Y0,t("td",O0,[F.value==1?(n(),o("div",F0,a(x.firstName),1)):i("",!0),F.value==2?b((n(),o("input",{key:1,class:"input","onUpdate:modelValue":g[4]||(g[4]=v=>x.firstName=v),type:"text"},null,512)),[[k,x.firstName]]):i("",!0)]),z0,t("td",null,[F.value==1?(n(),o("div",R0,a(x.lastName),1)):i("",!0),F.value==2?b((n(),o("input",{key:1,"onUpdate:modelValue":g[5]||(g[5]=v=>x.lastName=v),class:"input",type:"text"},null,512)),[[k,x.lastName]]):i("",!0)]),j0,t("td",L0,[F.value==1?(n(),o("div",Q0,a(x.address),1)):i("",!0),F.value==2?b((n(),o("input",{key:1,"onUpdate:modelValue":g[6]||(g[6]=v=>x.address=v),class:"input",type:"text"},null,512)),[[k,x.address]]):i("",!0)])]),t("tr",null,[H0,t("td",null,[F.value==1?(n(),o("div",W0,a(x.city),1)):i("",!0),F.value==2?b((n(),o("input",{key:1,"onUpdate:modelValue":g[7]||(g[7]=v=>x.city=v),class:"input",type:"text"},null,512)),[[k,x.city]]):i("",!0)]),q0,t("td",null,[F.value==1?(n(),o("div",G0,a(x.state),1)):i("",!0),F.value==2?b((n(),o("input",{key:1,"onUpdate:modelValue":g[8]||(g[8]=v=>x.state=v),class:"input",type:"text"},null,512)),[[k,x.state]]):i("",!0)]),Z0,t("td",null,[F.value==1?(n(),o("div",K0,a(x.country),1)):i("",!0),F.value==2?b((n(),o("input",{key:1,"onUpdate:modelValue":g[9]||(g[9]=v=>x.country=v),class:"input",type:"text"},null,512)),[[k,x.country]]):i("",!0)])]),t("tr",null,[X0,t("td",null,[F.value==1?(n(),o("div",J0,a(x.postal),1)):i("",!0),F.value==2?b((n(),o("input",{key:1,"onUpdate:modelValue":g[10]||(g[10]=v=>x.postal=v),class:"input",type:"text"},null,512)),[[k,x.postal]]):i("",!0)]),ek,t("td",null,[F.value==1?(n(),o("div",tk,a(x.patient_file),1)):i("",!0),F.value==2?b((n(),o("input",{key:1,"onUpdate:modelValue":g[11]||(g[11]=v=>x.patient_file=v),class:"input",type:"text"},null,512)),[[k,x.patient_file]]):i("",!0)]),lk,t("td",null,[F.value==1?(n(),o("div",nk,a(x.email),1)):i("",!0),F.value==2?b((n(),o("input",{key:1,"onUpdate:modelValue":g[12]||(g[12]=v=>x.email=v),class:"input",type:"text"},null,512)),[[k,x.email]]):i("",!0)])]),t("tr",null,[t("td",ok,[r(" Phone"),F.value==2?(n(),o("span",ak,"*")):i("",!0)]),t("td",sk,[F.value==1?(n(),o("div",ik," ("+a(x.phone_code)+")"+a(x.phone),1)):i("",!0),F.value==2?(n(),P(Ce,{key:1,style:{width:"150px",margin:"0 20px 0 0"},clearable:"true",modelValue:x.phone_code,"onUpdate:modelValue":g[13]||(g[13]=v=>x.phone_code=v),placeholder:"Please select",onChange:we},{default:u(()=>[(n(!0),o(V,null,D(Oe.value,v=>(n(),P($,{key:v.id,label:v.text,value:v.value},null,8,["label","value"]))),128))]),_:1},8,["modelValue"])):i("",!0),F.value==2?b((n(),o("input",{key:2,"onUpdate:modelValue":g[14]||(g[14]=v=>x.phone=v),onInput:g[15]||(g[15]=v=>kt(x.phone)),class:"input",type:"text"},null,544)),[[k,x.phone]]):i("",!0),F.value==2?(n(),o("span",dk,"Either email or phone information is required")):i("",!0)]),uk,t("td",null,[F.value==1?(n(),o("div",rk,a(x.sex==1?"Male":"Female"),1)):i("",!0),F.value==2?(n(),o("div",_k,[(n(!0),o(V,null,D(te.value,(v,C)=>(n(),o("div",{class:"allQuestions_box",key:v.id},[t("div",{class:E(["selected1",{selected_active:v.value==x.sex}]),onClick:O=>jt(v,C)},[t("div",{class:E(["selected_min",{selected_min_active:v.value==x.sex}])},null,2)],10,ck),r(" "+a(v.text),1)]))),128))])):i("",!0)])]),t("tr",null,[pk,t("td",null,[F.value==1?(n(),o("div",mk,a(x.insuranceCompany),1)):i("",!0),F.value==2?b((n(),o("input",{key:1,"onUpdate:modelValue":g[16]||(g[16]=v=>x.insuranceCompany=v),class:"input",type:"text"},null,512)),[[k,x.insuranceCompany]]):i("",!0)]),vk,t("td",null,[x.insurance_coverage_type?(n(),o("table",gk,[t("tr",hk,[t("td",null,[r("Type"),F.value==2?(n(),o("span",yk,"*")):i("",!0)]),t("td",null,[r(" Limit Amount"),F.value==2?(n(),o("span",bk,"*")):i("",!0)]),t("td",null,[r(" Begin Time"),F.value==2?(n(),o("span",fk,"*")):i("",!0)]),t("td",null,[r(" Rate(%)"),F.value==2?(n(),o("span",kk,"*")):i("",!0)]),F.value==2?(n(),o("td",xk,"Action")):i("",!0)]),x.insurance_coverage_type.length==0?(n(),o("tr",Ck,Vk)):i("",!0),(n(!0),o(V,null,D(x.insurance_coverage_type,(v,C)=>(n(),o("tr",{key:v.id},[t("td",null,[F.value==1?(n(),o("div",Dk,a(v.type),1)):i("",!0),F.value==2?b((n(),o("input",{key:1,"onUpdate:modelValue":O=>v.type=O,class:"input33",type:"text"},null,8,wk)),[[k,v.type]]):i("",!0)]),t("td",null,[F.value==1?(n(),o("div",Ik,a(v.limit_amount),1)):i("",!0),F.value==2?b((n(),o("input",{key:1,"onUpdate:modelValue":O=>v.limit_amount=O,class:"input33",type:"text"},null,8,Uk)),[[k,v.limit_amount]]):i("",!0)]),t("td",null,[F.value==1?(n(),o("div",Sk,a(v.begin_time),1)):i("",!0),F.value==2?(n(),P(Vt,{key:1,style:{width:"100px"},modelValue:v.time,"onUpdate:modelValue":O=>v.time=O,options:Z.value,onChange:O=>ze(O,v)},null,8,["modelValue","onUpdate:modelValue","options","onChange"])):i("",!0)]),t("td",null,[F.value==1?(n(),o("div",Ak,a(v.rate),1)):i("",!0),F.value==2?b((n(),o("input",{key:1,"onUpdate:modelValue":O=>v.rate=O,class:"input33",type:"text"},null,8,Pk)),[[k,v.rate]]):i("",!0)]),F.value==2?(n(),o("td",Nk,[d(R,{size:"small",type:"danger",plain:"",onClick:O=>ut(v)},{default:u(()=>[r("Del")]),_:2},1032,["onClick"])])):i("",!0)]))),128))])):i("",!0),F.value==2?(n(),P(R,{key:1,style:{"margin-top":"8px"},size:"small",type:"primary",plain:"",onClick:g[17]||(g[17]=v=>Ge())},{default:u(()=>[r("Add")]),_:1})):i("",!0)]),Tk,t("td",null,[F.value==1?(n(),o("div",Ek,a(x.insuranceNum),1)):i("",!0),F.value==2?b((n(),o("input",{key:1,"onUpdate:modelValue":g[18]||(g[18]=v=>x.insuranceNum=v),class:"input",type:"text"},null,512)),[[k,x.insuranceNum]]):i("",!0)])]),t("tr",null,[Mk,t("td",null,[F.value==1?(n(),o("div",Bk,a(x.direct_of_billing),1)):i("",!0),F.value==2?(n(),P(M,{key:1,style:{width:"160px"},modelValue:x.direct_of_billing,"onUpdate:modelValue":g[19]||(g[19]=v=>x.direct_of_billing=v),type:"date","value-format":"YYYY-MM-DD",placeholder:"Please select"},null,8,["modelValue"])):i("",!0)]),Yk,t("td",null,[F.value==1?(n(),o("div",Ok,a(x.booking_notice_type),1)):i("",!0),F.value==2?(n(),o("div",Fk,[(n(!0),o(V,null,D(q.value,v=>(n(),o("div",{class:E(["service_desc",{service_desc_active:v.is_selected==1}]),key:v.id,onClick:fl(C=>Ct(v),["stop"])},a(v.text),11,zk))),128))])):i("",!0)]),Rk,t("td",null,[F.value==1?(n(),o("div",jk,a(x.is_vip?"Vip":""),1)):i("",!0),F.value==2?(n(),P(ge,{key:1,modelValue:x.is_vip,"onUpdate:modelValue":g[20]||(g[20]=v=>x.is_vip=v),"active-text":"Yes","inactive-text":"No",onChange:_.btnIsVip},null,8,["modelValue","onChange"])):i("",!0)])]),t("tr",null,[Lk,t("td",Qk,[F.value==1?(n(),o("div",Hk,a(x.comment),1)):i("",!0),F.value==2?b((n(),o("textarea",{key:1,style:{width:"100%"},class:"textarea_input",placeholder:"Please enter","onUpdate:modelValue":g[21]||(g[21]=v=>x.comment=v),maxlength:"600"},null,512)),[[k,x.comment]]):i("",!0)])]),t("tr",null,[t("td",Wk,[t("div",qk,[d(R,{plain:"",type:"danger",size:"small",onClick:g[22]||(g[22]=fl(v=>Rt(_.row),["stop"]))},{default:u(()=>[r(" Delete ")]),_:1})])])])])):i("",!0),ee.tableIndex==0?(n(),o("div",Gk,[F.value==1?(n(),P(R,{key:0,type:"primary",plain:"",onClick:g[23]||(g[23]=v=>et(2))},{default:u(()=>[r("Edit")]),_:1})):i("",!0),F.value==2&&x.customer_id?(n(),P(R,{key:1,type:"primary",plain:"",onClick:g[24]||(g[24]=v=>et(1))},{default:u(()=>[r("cancel")]),_:1})):i("",!0),F.value==2&&x.customer_id?(n(),P(R,{key:2,style:{"margin-left":"20px"},loading:pe.value,type:"primary",onClick:g[25]||(g[25]=v=>Xe())},{default:u(()=>[r("Save")]),_:1},8,["loading"])):i("",!0),x.customer_id==""?(n(),P(R,{key:3,style:{"margin-left":"20px"},loading:pe.value,type:"primary",onClick:g[26]||(g[26]=v=>Xe())},{default:u(()=>[r("Submit")]),_:1},8,["loading"])):i("",!0)])):i("",!0),ee.tableIndex==2?(n(),o("div",Zk,[d(Un,{str:1,customer_id:x.customer_id},null,8,["customer_id"])])):i("",!0),ee.tableIndex==3&&ee.type==1?(n(),o("div",Kk,[d(v_,{str:1,customer_id:x.customer_id,customer_name:x.customer_name},null,8,["customer_id","customer_name"])])):i("",!0),ee.tableIndex==3&&ee.type==2?(n(),o("div",Xk,[d(Ad,{str:1,customer_id:x.customer_id,customer_name:x.customer_name},null,8,["customer_id","customer_name"])])):i("",!0),ee.tableIndex==4?(n(),o("div",Jk,[d(Sn,{customer_name:x.customer_name,str:1,customer_id:x.customer_id},null,8,["customer_name","customer_id"])])):i("",!0),ee.tableIndex==5?(n(),o("div",ex,[d(na,{str:1,customer_id:x.customer_id},null,8,["customer_id"])])):i("",!0),ee.tableIndex==1?(n(),o("div",tx,[t("div",lx," Master : "+a(Ye.client_name),1),t("table",nx,[ox,(n(!0),o(V,null,D(p.value,(v,C)=>(n(),o("tr",{key:v.id},[t("td",null,a(C+1),1),t("td",null,a(v.customer_name_relation)+"(#"+a(v.customer_id_relation)+") ",1),t("td",null,[b(t("input",{style:{height:"28px"},class:"input","onUpdate:modelValue":O=>v.relationship=O,type:"text"},null,8,ax),[[k,v.relationship]])]),t("td",null,[d(R,{link:"",type:"danger",size:"small",onClick:fl(O=>xe(v),["stop"])},{default:u(()=>[r(" Delete ")]),_:2},1032,["onClick"])])]))),128))]),t("div",sx,[d(R,{type:"primary",plain:"",size:"small",onClick:g[27]||(g[27]=v=>He())},{default:u(()=>[r("Add User")]),_:1})]),t("div",ix,[d(R,{type:"primary",loading:pe.value,onClick:g[28]||(g[28]=v=>$t())},{default:u(()=>[r("Submit")]),_:1},8,["loading"])])])):i("",!0)]),_:1},8,["modelValue"]),d($e,{style:{width:"50%"},modelValue:We.value,"onUpdate:modelValue":g[39]||(g[39]=v=>We.value=v),title:""},{default:u(()=>[dx,t("table",ux,[t("tr",null,[rx,t("td",null,[b(t("input",{disabled:"",class:"input1","onUpdate:modelValue":g[30]||(g[30]=v=>Y.name=v),type:"text"},null,512),[[k,Y.name]])])]),t("tr",null,[_x,t("td",null,[b(t("input",{"onUpdate:modelValue":g[31]||(g[31]=v=>Y.pay_amount=v),class:"input1",type:"text"},null,512),[[k,Y.pay_amount]])])]),t("tr",null,[cx,t("td",null,[d(M,{style:{width:"272px"},modelValue:Y.time,"onUpdate:modelValue":g[32]||(g[32]=v=>Y.time=v),type:"date","value-format":"YYYY-MM-DD",placeholder:"Please select"},null,8,["modelValue"])])]),t("tr",null,[px,t("td",null,[d(Ce,{clearable:"true",style:{width:"272px",margin:"0 10px 0 0"},modelValue:Y.pay_method,"onUpdate:modelValue":g[33]||(g[33]=v=>Y.pay_method=v),filterable:"","allow-create":"","default-first-option":"","reserve-keyword":!1,placeholder:"Please select",onChange:xt},{default:u(()=>[(n(!0),o(V,null,D(ne.value,v=>(n(),P($,{key:v.id,label:v.text,value:v.value},null,8,["label","value"]))),128))]),_:1},8,["modelValue"]),Y.pay_method=="Other"?b((n(),o("input",{key:0,"onUpdate:modelValue":g[34]||(g[34]=v=>Y.other=v),class:"input1",style:{height:"32px",width:"130px"},type:"text"},null,512)),[[k,Y.other]]):i("",!0)])]),Y.pay_method=="Cheque"?(n(),o("tr",mx,[vx,t("td",null,[b(t("input",{"onUpdate:modelValue":g[35]||(g[35]=v=>Y.cheque_number=v),class:"input1",type:"text"},null,512),[[k,Y.cheque_number]])])])):i("",!0),t("tr",null,[gx,t("td",null,[d(Ce,{clearable:"true",style:{width:"272px",margin:"0 10px 0 0"},modelValue:Y.account_id,"onUpdate:modelValue":g[36]||(g[36]=v=>Y.account_id=v),filterable:"","allow-create":"","default-first-option":"","reserve-keyword":!1,placeholder:"Please select"},{default:u(()=>[(n(!0),o(V,null,D(Qe.value,v=>(n(),P($,{key:v.id,label:v.text,value:v.value},null,8,["label","value"]))),128))]),_:1},8,["modelValue"])])]),t("tr",null,[hx,t("td",yx,[b(t("textarea",{class:"textarea_input",placeholder:"Please enter","onUpdate:modelValue":g[37]||(g[37]=v=>Y.content=v),maxlength:"600"},null,512),[[k,Y.content]])])])]),t("div",bx,[d(R,{type:"primary",loading:pe.value,onClick:g[38]||(g[38]=v=>Lt())},{default:u(()=>[r("Submit")]),_:1},8,["loading"])])]),_:1},8,["modelValue"]),d($e,{style:{width:"92%"},modelValue:it.value,"onUpdate:modelValue":g[41]||(g[41]=v=>it.value=v),title:""},{default:u(()=>[fx,t("table",kx,[t("tr",null,[(n(!0),o(V,null,D(I.value,(v,C)=>(n(),o("td",{key:v.id},[d(Ce,{style:{width:"180px",margin:"0 20px 0 0"},clearable:"true",modelValue:v.value,"onUpdate:modelValue":O=>v.value=O,placeholder:"Please select",onChange:we},{default:u(()=>[(n(!0),o(V,null,D(_t.value,(O,W)=>(n(),P($,{key:O.id,label:O.text,value:O.value},null,8,["label","value"]))),128))]),_:2},1032,["modelValue","onUpdate:modelValue"])]))),128))]),(n(!0),o(V,null,D(qe.value,(v,C)=>(n(),o("tr",{key:v.id},[t("td",null,[b(t("input",{class:"input","onUpdate:modelValue":O=>v.value1=O,type:"text"},null,8,xx),[[k,v.value1]])]),t("td",null,[b(t("input",{class:"input","onUpdate:modelValue":O=>v.value2=O,type:"text"},null,8,Cx),[[k,v.value2]])]),t("td",null,[b(t("input",{class:"input","onUpdate:modelValue":O=>v.value3=O,type:"text"},null,8,$x),[[k,v.value3]])]),t("td",null,[b(t("input",{class:"input","onUpdate:modelValue":O=>v.value4=O,type:"text"},null,8,Vx),[[k,v.value4]])]),t("td",null,[b(t("input",{class:"input","onUpdate:modelValue":O=>v.value5=O,type:"text"},null,8,Dx),[[k,v.value5]])]),t("td",null,[b(t("input",{class:"input","onUpdate:modelValue":O=>v.value6=O,type:"text"},null,8,wx),[[k,v.value6]])]),t("td",null,[b(t("input",{class:"input","onUpdate:modelValue":O=>v.value7=O,type:"text"},null,8,Ix),[[k,v.value7]])])]))),128))]),t("div",Ux,[d(R,{type:"primary",loading:pe.value,onClick:g[40]||(g[40]=v=>me())},{default:u(()=>[r("Submit")]),_:1},8,["loading"])])]),_:1},8,["modelValue"]),d($e,{style:{width:"70%"},modelValue:je.value,"onUpdate:modelValue":g[44]||(g[44]=v=>je.value=v),title:""},{default:u(()=>[Sx,t("div",Ax," Master : "+a(Ye.client_name),1),t("table",Px,[Nx,(n(!0),o(V,null,D(p.value,(v,C)=>(n(),o("tr",{key:v.id},[t("td",null,a(C+1),1),t("td",null,a(v.customer_name_relation)+"(#"+a(v.customer_id_relation)+") ",1),t("td",null,[b(t("input",{class:"input","onUpdate:modelValue":O=>v.relationship=O,type:"text"},null,8,Tx),[[k,v.relationship]])]),t("td",null,[d(R,{link:"",type:"danger",size:"small",onClick:fl(O=>xe(v),["stop"])},{default:u(()=>[r(" Delete ")]),_:2},1032,["onClick"])])]))),128))]),t("div",Ex,[d(R,{type:"primary",plain:"",size:"small",onClick:g[42]||(g[42]=v=>He())},{default:u(()=>[r("Add User")]),_:1})]),t("div",Mx,[d(R,{type:"primary",loading:pe.value,onClick:g[43]||(g[43]=v=>$t())},{default:u(()=>[r("Submit")]),_:1},8,["loading"])])]),_:1},8,["modelValue"]),d($e,{style:{width:"78%"},modelValue:De.value,"onUpdate:modelValue":g[49]||(g[49]=v=>De.value=v),title:"",draggable:""},{default:u(()=>[t("div",Bx,[t("div",Yx,[b(t("input",{class:"input","onUpdate:modelValue":g[45]||(g[45]=v=>ee.searchKey=v),type:"text"},null,512),[[k,ee.searchKey]]),d(R,{style:{"margin-left":"20px"},type:"primary",onClick:g[46]||(g[46]=v=>ke())},{default:u(()=>[r("Search")]),_:1})]),t("div",Ox,[Fx,d(Ce,{style:{width:"150px"},clearable:"true",modelValue:ee.order_by,"onUpdate:modelValue":g[47]||(g[47]=v=>ee.order_by=v),placeholder:"Please select",onChange:Gt},{default:u(()=>[(n(!0),o(V,null,D(lt.value,v=>(n(),P($,{key:v.id,label:v.text,value:v.value},null,8,["label","value"]))),128))]),_:1},8,["modelValue"]),d(R,{type:"primary",onClick:g[48]||(g[48]=v=>Ee()),plain:""},{default:u(()=>[r("Add Client")]),_:1})])]),d(e(xl),{title:"设备列表",selectArr:ve,onRefresh:_.onSearch},{default:u(({size:v,checkList:C})=>[d(e(kl),{border:"","highlight-current-row":"",ref_key:"singleTableRef",ref:fe,onSelect:dt,onRowClick:be,"max-height":"500","align-whole":"center",showOverflowTooltip:"","table-layout":"auto",loading:pe.value,size:"small",data:de.value,columns:oe,checkList:C,pagination:Ne,paginationSmall:v==="small","header-cell-style":{background:"var(--el-table-row-hover-bg-color)",color:"var(--el-text-color-primary)"},onSizeChange:nt,onCurrentChange:ct},{Gender:u(({row:O})=>[r(a(O.sex==1?"Male":"Female"),1)]),Online:u(({row:O})=>[t("div",zx,[O.is_online==1?(n(),o("img",Rx)):(n(),o("div",jx))])]),IsVIP:u(({row:O})=>[t("div",Lx,[O.is_vip?(n(),o("img",Qx)):(n(),o("div",Hx))])]),Relation:u(({row:O})=>[t("div",Wx,a(O.relation_show)+" ",1)]),_:2},1032,["loading","data","checkList","pagination","paginationSmall","header-cell-style"])]),_:1},8,["onRefresh"])]),_:1},8,["modelValue"])])}}});const pl=dl(Gx,[["__scopeId","data-v-fa11dc58"]]),o$=Object.freeze(Object.defineProperty({__proto__:null,default:pl},Symbol.toStringTag,{value:"Module"})),Ke=K=>(sl("data-v-d7ab692c"),K=K(),il(),K),Zx={class:"main"},Kx={class:"dialog_procure_box dialog_procure_box1",style:{"margin-top":"0px"}},Xx={class:"dialog_procure_box"},Jx=["onClick"],eC={class:"pay_id"},tC={class:"pay_id"},lC={class:"pay_id"},nC={key:0,class:"createOrderobj_box"},oC=Ke(()=>t("tr",null,[t("td",{width:"15%"},"Inx"),t("td",null,"Bussiness"),t("td",null,"Pay Amount"),t("td",null,"Pay Date"),t("td",null,"Action")],-1)),aC={key:1,class:"no_data"},sC=Ke(()=>t("div",{class:"dialog_tilte"},"payment",-1)),iC={class:"createOrderobj_box"},dC=Ke(()=>t("td",{width:"30%"},[r("Client"),t("span",{class:"red"}," * ")],-1)),uC=Ke(()=>t("td",null,[r("Pay Amount"),t("span",{class:"red"}," * ")],-1)),rC=Ke(()=>t("td",null,"Collection Time",-1)),_C=Ke(()=>t("td",null,[r("Pay Method"),t("span",{class:"red"},"*")],-1)),cC={key:0},pC=Ke(()=>t("td",null,[r("Check Number"),t("span",{class:"red"}," * ")],-1)),mC=Ke(()=>t("td",null,"Account ID",-1)),vC=Ke(()=>t("td",null,"Comment",-1)),gC={colspan:"5"},hC={class:"part_out_button"},yC=Ke(()=>t("div",{class:"dialog_tilte"},"Used Information",-1)),bC={class:"createOrderobj_box"},fC=Ke(()=>t("td",{width:"30%"},"Pay Amount:",-1)),kC=Ke(()=>t("td",null,[r("Service Name"),t("span",{class:"red"},"*"),r(":")],-1)),xC={key:0},CC={key:1,class:"Service_box12"},$C=["onClick"],VC=Ke(()=>t("td",null,[r("Used Type"),t("span",{class:"red"},"*"),r(":")],-1)),DC={class:"allQuestions_box1"},wC=["onClick"],IC=["disabled","onUpdate:modelValue"],UC=Ke(()=>t("td",null,[r("Period Date"),t("span",{class:"red"},"*"),r(":")],-1)),SC={class:"part_out_button"},AC={class:"dialog_procure_box dialog_procure_box1",style:{width:"100%"}},PC={class:"dialog_procure_box"},NC=Ke(()=>t("span",{class:"red"},"*",-1)),TC={class:"Service_box11"},EC=["onClick"],MC={class:"Find_box"},BC={class:"therapist_name"},YC={class:"date_desc"},OC={class:"duration_box"},FC={key:0,class:"dialog_procure_box",style:{"margin-top":"30px"}},zC=Ke(()=>t("div",null,[r("Location"),t("span",{class:"red"},"*"),r(" :")],-1)),RC={key:1,class:"Service_box11",style:{"margin-top":"20px"}},jC=Ke(()=>t("div",null,null,-1)),LC={key:2,class:"Find_box"},QC={key:0},HC={style:{"margin-left":"20px"}},WC={key:3,class:"part_out_button"},qC={class:"dialog_tilte"},GC={class:"dialog_procure_box"},ZC={style:{"font-weight":"bold"}},KC={style:{"margin-left":"50px"}},XC={style:{"font-weight":"bold"}},JC={style:{"margin-left":"50px"}},e8={style:{"font-weight":"bold"}},t8={style:{"margin-top":"20px"}},l8={style:{"font-weight":"bold"}},n8=Ke(()=>t("div",{class:"dialog_tilte"},"file list",-1)),o8={style:{"margin-top":"25px"}},a8=["onClick"],s8=st({name:"/crm/yuyue/PayHistories"}),i8=st({...s8,props:{str:{type:String,default:""},customer_id:{type:String,default:""},customer_name:{type:String,default:""}},setup(K){const he=K,{searchDetail:S,btnSearchPart:fe,loading:z,small:Nt,selectList:ye,columns:yt,checkList:bt,pagination:wt,handleSizeChange:pe,handleCurrentChange:it,PartList:je,order_date:Le,deliverDialog:De,selectClick:Ue,btnDeliverConfirm:F,singleTableRef:Se,infoDialog:We,btnInfo:de,infoArr:I,btnDellocation:Qe,btnCollection:_t,CollectionDialog:qe,collectionArr:p,onSelClient:Bt,ClientData:Ye,ClientDialog:Ne,eventIsNum:q,btncollectionConfirm:ne,payMethodData:N,onPayMethod:Te,GenerateDialog:oe,btnGenerate:ve,ServiceData:te,btnService:lt,DeductionType:Oe,selectedTr:Y,datePeriod:ee,disabledBeforeToday:x,btnDatePeriod:ke,btnGenerateConfirm:Ee,btnDeducationShow:It,AccountData:Xe,btnGenerateInvoice:Q,invoiceDialog:dt,Therapists:ft,disabledBeforeToday1:Rt,btnInvoiceTime:jt,onTherapists:kt,btnFind:Lt,FindData:we,btnSubmitConfirm:xt,InvoiceDetailDialog:Ct,taxData:me,IncludeTax:nt,onIs_tax:ct,onSelectLocation:Yt,locationDialog:He,eventIsNumlocation:be,locationData:L,eventFilter:xe,optionsFilter:$t,isShowFilter:Je,btnFilterQuery:Gt,UsedLogDialog:et,logData:ut,addCollectionDialog:Ge,paymentArr:ze,eventPrePay:Z,btnFile:le,fileDialog:_,onFile:g,fileArr:R,btnDelete:$,btnEidt:Ce}=Eo(he);return al(()=>{}),(Vt,M)=>{const ge=H("el-button"),$e=H("el-dialog"),v=H("el-date-picker"),C=H("el-option"),O=H("el-select"),W=H("el-switch"),Re=H("el-table-column"),Ae=H("el-table");return n(),o("div",Zx,[t("div",Kx,[t("div",Xx,[d(ln,{str:"PayHistories",onEventFilter:e(xe),optionsFilter:e($t),isShowFilter:e(Je),"onUpdate:isShowFilter":M[0]||(M[0]=w=>T(Je)?Je.value=w:null)},null,8,["onEventFilter","optionsFilter","isShowFilter"]),d(ge,{type:"primary",style:{"margin-left":"20px"},plain:"",size:"small",onClick:M[1]||(M[1]=w=>e(_t)())},{default:u(()=>[r("payment")]),_:1})])]),d(e(xl),{title:"设备列表",selectArr:e(ye),onRefresh:Vt.onSearch},{default:u(({size:w,checkList:pt})=>[d(e(kl),{border:"",ref_key:"singleTableRef",ref:Se,onSelect:e(Ue),"max-height":"500","align-whole":"center",showOverflowTooltip:"","table-layout":"auto",loading:e(z),size:"small",data:e(je),columns:e(yt),checkList:pt,pagination:e(wt),paginationSmall:w==="small","header-cell-style":{background:"var(--el-table-row-hover-bg-color)",color:"var(--el-text-color-primary)"},onSizeChange:e(pe),onCurrentChange:e(it)},{files:u(({row:se})=>[se.file.length>0?(n(),o("div",{key:0,style:{cursor:"pointer"},onClick:Ut=>e(le)(se.file)}," file["+a(se.file.length)+"] ",9,Jx)):i("",!0)]),order_sn:u(({row:se})=>[r(" P"+a(se.order_id)+"-"+a(se.order_item_id),1)]),balanceInfo:u(({row:se})=>[r(a(se.used_amount>0?se.used_amount:"")+" ",1),se.balanceInfo.length>0?(n(),P(ge,{key:0,class:"reset-margin reset-margin1",link:"",type:"primary",size:w,onClick:Ut=>e(de)(se)},{default:u(()=>[r(" Info ")]),_:2},1032,["size","onClick"])):i("",!0),(e(S).type==2||e(S).type==1)&&se.used_amount==0&&se.remain_amount>0?(n(),P(ge,{key:1,link:"",type:"primary",size:w,onClick:Ut=>e(Q)(se)},{default:u(()=>[r(" Batch Invoice ")]),_:2},1032,["size","onClick"])):i("",!0)]),operation:u(({row:se})=>[se.is_can_delete==1?(n(),P(ge,{key:0,link:"",type:"primary",size:"small",onClick:Ut=>e(Ce)(se)},{default:u(()=>[r(" Eidt ")]),_:2},1032,["onClick"])):i("",!0),se.is_can_delete==1?(n(),P(ge,{key:1,link:"",type:"danger",size:"small",onClick:Ut=>e($)(se)},{default:u(()=>[r(" Delete ")]),_:2},1032,["onClick"])):i("",!0)]),_:2},1032,["onSelect","loading","data","columns","checkList","pagination","paginationSmall","header-cell-style","onSizeChange","onCurrentChange"])]),_:1},8,["selectArr","onRefresh"]),d($e,{style:{width:"60%"},modelValue:e(We),"onUpdate:modelValue":M[2]||(M[2]=w=>T(We)?We.value=w:null),title:""},{default:u(()=>[t("div",eC,"Pay ID: "+a(e(I).pay_id),1),t("div",tC,"Amount:"+a(e(I).pay_amount),1),t("div",lC,"Remoin:"+a(e(I).remain_amount),1),e(I)&&e(I).balanceInfo.length>0?(n(),o("table",nC,[oC,(n(!0),o(V,null,D(e(I).balanceInfo,(w,pt)=>(n(),o("tr",{key:w.id},[t("td",null,a(pt+1),1),t("td",null,a(w.bussiness),1),t("td",null,a(w.pay_amount),1),t("td",null,a(w.createtime),1),t("td",null,[d(ge,{class:"reset-margin reset-margin1",link:"",type:"primary",size:Vt.size,onClick:se=>e(Qe)(w)},{default:u(()=>[r(" return ")]),_:2},1032,["size","onClick"])])]))),128))])):i("",!0),e(I)&&e(I).balanceInfo.length==0?(n(),o("div",aC," No Data ")):i("",!0)]),_:1},8,["modelValue"]),d($e,{style:{width:"50%"},modelValue:e(qe),"onUpdate:modelValue":M[13]||(M[13]=w=>T(qe)?qe.value=w:null),title:"",draggable:""},{default:u(()=>[sC,t("table",iC,[t("tr",null,[dC,t("td",null,[b(t("input",{disabled:"",class:"input2","onUpdate:modelValue":M[3]||(M[3]=w=>e(p).name=w),type:"text"},null,512),[[k,e(p).name]]),he.customer_id==""?(n(),P(ge,{key:0,type:"primary",style:{"margin-left":"7px"},plain:"",size:"small",onClick:M[4]||(M[4]=w=>e(Bt)())},{default:u(()=>[r(" Select ")]),_:1})):i("",!0)])]),t("tr",null,[uC,t("td",null,[b(t("input",{"onUpdate:modelValue":M[5]||(M[5]=w=>e(p).pay_amount=w),class:"input2",type:"text"},null,512),[[k,e(p).pay_amount]])])]),t("tr",null,[rC,t("td",null,[d(v,{style:{width:"272px"},modelValue:e(p).time,"onUpdate:modelValue":M[6]||(M[6]=w=>e(p).time=w),type:"date","value-format":"YYYY-MM-DD",placeholder:"Please select"},null,8,["modelValue"])])]),t("tr",null,[_C,t("td",null,[d(O,{clearable:"true",style:{width:"272px",margin:"0 10px 0 0"},modelValue:e(p).pay_method,"onUpdate:modelValue":M[7]||(M[7]=w=>e(p).pay_method=w),filterable:"","allow-create":"","default-first-option":"","reserve-keyword":!1,placeholder:"Please select",onChange:e(Te)},{default:u(()=>[(n(!0),o(V,null,D(e(N),w=>(n(),P(C,{key:w.id,label:w.text,value:w.value},null,8,["label","value"]))),128))]),_:1},8,["modelValue","onChange"]),e(p).pay_method=="Other"?b((n(),o("input",{key:0,"onUpdate:modelValue":M[8]||(M[8]=w=>e(p).other=w),class:"input2",style:{height:"32px"},type:"text"},null,512)),[[k,e(p).other]]):i("",!0)])]),e(p).pay_method=="Cheque"?(n(),o("tr",cC,[pC,t("td",null,[b(t("input",{"onUpdate:modelValue":M[9]||(M[9]=w=>e(p).cheque_number=w),class:"input2",type:"text"},null,512),[[k,e(p).cheque_number]])])])):i("",!0),t("tr",null,[mC,t("td",null,[d(O,{clearable:"true",style:{width:"272px",margin:"0 10px 0 0"},modelValue:e(p).account_id,"onUpdate:modelValue":M[10]||(M[10]=w=>e(p).account_id=w),filterable:"","allow-create":"","default-first-option":"","reserve-keyword":!1,placeholder:"Please select"},{default:u(()=>[(n(!0),o(V,null,D(e(Xe),w=>(n(),P(C,{key:w.id,label:w.text,value:w.value},null,8,["label","value"]))),128))]),_:1},8,["modelValue"])])]),t("tr",null,[vC,t("td",gC,[b(t("textarea",{class:"textarea_input",placeholder:"Please enter","onUpdate:modelValue":M[11]||(M[11]=w=>e(p).content=w),maxlength:"600"},null,512),[[k,e(p).content]])])])]),t("div",hC,[d(ge,{loading:e(z),type:"primary",onClick:M[12]||(M[12]=w=>e(ne)())},{default:u(()=>[r("Submit")]),_:1},8,["loading"])])]),_:1},8,["modelValue"]),d($e,{style:{width:"78%"},modelValue:e(Ne),"onUpdate:modelValue":M[15]||(M[15]=w=>T(Ne)?Ne.value=w:null),title:""},{default:u(()=>[d(pl,{onEventIsNum:e(q),str:1,ClientData:e(Ye),ClientDialog:e(Ne),"onUpdate:ClientDialog":M[14]||(M[14]=w=>T(Ne)?Ne.value=w:null)},null,8,["onEventIsNum","ClientData","ClientDialog"])]),_:1},8,["modelValue"]),d($e,{style:{width:"50%"},modelValue:e(oe),"onUpdate:modelValue":M[18]||(M[18]=w=>T(oe)?oe.value=w:null),title:""},{default:u(()=>[yC,t("table",bC,[t("tr",null,[fC,t("td",null,a(e(S).amount)+" $",1)]),t("tr",null,[kC,t("td",null,[e(te).length==0?(n(),o("div",xC,"No Data")):i("",!0),e(te).length>0?(n(),o("div",CC,[(n(!0),o(V,null,D(e(te),(w,pt)=>(n(),o("div",{class:E(["service_desc",[{service_desc_active:w.is_selected}]]),key:w.id,onClick:se=>e(lt)(w)},a(w.service_name),11,$C))),128))])):i("",!0)])]),t("tr",null,[VC,t("td",null,[t("div",DC,[(n(!0),o(V,null,D(e(Oe),(w,pt)=>(n(),o("div",{class:"allQuestions_box",key:w.id},[t("div",{class:E(["selected1",{selected_active:w.is_selected}]),onClick:se=>e(Y)(w)},[t("div",{class:E(["selected_min",{selected_min_active:w.is_selected}])},null,2)],10,wC),t("span",{class:E({selected_desc:w.is_selected})},a(w.show),3),b(t("input",{disabled:!w.is_selected,class:E([{opacity:!w.is_selected},"input2"]),style:{"margin-left":"10px"},"onUpdate:modelValue":se=>w.value=se,type:"text"},null,10,IC),[[k,w.value]])]))),128))])])]),t("tr",null,[UC,t("td",null,[d(v,{modelValue:e(ee),"onUpdate:modelValue":M[16]||(M[16]=w=>T(ee)?ee.value=w:null),type:"datetimerange","start-placeholder":"start date","end-placeholder":"end date",format:"YYYY-MM-DD","value-format":"YYYY-MM-DD",onChange:e(ke),disabledDate:e(x)},null,8,["modelValue","onChange","disabledDate"])])])]),t("div",SC,[d(ge,{loading:e(z),type:"primary",onClick:M[17]||(M[17]=w=>e(Ee)())},{default:u(()=>[r("Submit")]),_:1},8,["loading"])])]),_:1},8,["modelValue"]),d($e,{style:{width:"70%"},modelValue:e(dt),"onUpdate:modelValue":M[26]||(M[26]=w=>T(dt)?dt.value=w:null),title:"",draggable:""},{default:u(()=>[t("div",AC,[t("div",null,"Total Amount : "+a(e(S).Total_Amount),1),t("div",PC,[r(" Date"),NC,r(" : "),d(v,{style:{width:"270px"},modelValue:e(S).invoiceTime,"onUpdate:modelValue":M[19]||(M[19]=w=>e(S).invoiceTime=w),type:"datetimerange","start-placeholder":"start date","end-placeholder":"end date",format:"YYYY-MM-DD","value-format":"YYYY-MM-DD",onChange:e(jt),disabledDate:e(Rt)},null,8,["modelValue","onChange","disabledDate"])])]),t("div",TC,[(n(!0),o(V,null,D(e(ft),w=>(n(),o("div",{class:E(["service_desc",{service_desc_active:e(S).therapists.includes(w.id)}]),key:w.id,onClick:pt=>e(kt)(w)},a(w.first_name)+a(w.last_name),11,EC))),128))]),t("div",MC,[d(ge,{type:"primary",plain:"",onClick:M[20]||(M[20]=w=>e(Lt)())},{default:u(()=>[r("Find")]),_:1})]),(n(!0),o(V,null,D(e(we),(w,pt)=>(n(),o("div",{class:"show_card",key:w.id},[t("div",BC,a(w.therapist_name),1),(n(!0),o(V,null,D(w.detail,(se,Ut)=>(n(),o("div",{key:Ut},[t("div",YC,a(se.date)+" : "+a(se.date_detail.length),1),t("div",OC,[(n(!0),o(V,null,D(se.date_detail,(Tt,rl)=>(n(),o("div",{class:"duration_desc",key:rl}," ( "+a(Tt.begin)+"-"+a(Tt.end)+" "+a(Tt.duration)+" Min "+a(Tt.price)+" $) ",1))),128))])]))),128))]))),128)),e(we).length>0?(n(),o("div",FC,[zC,b(t("input",{disabled:"","onUpdate:modelValue":M[21]||(M[21]=w=>e(S).loacation_name=w),class:"input",type:"text"},null,512),[[k,e(S).loacation_name]]),d(ge,{type:"primary",style:{"margin-left":"7px"},plain:"",onClick:M[22]||(M[22]=w=>e(Yt)())},{default:u(()=>[r(" Select ")]),_:1})])):i("",!0),e(we).length>0?(n(),o("div",RC,[t("div",null,[r(" + Tax:"),d(W,{onChange:e(ct),style:{margin:"0 50px 0 0"},modelValue:e(S).is_tax1,"onUpdate:modelValue":M[23]||(M[23]=w=>e(S).is_tax1=w)},null,8,["onChange","modelValue"]),r(" Include Tax "),d(O,{disabled:"",style:{width:"130px"},clearable:"true",modelValue:e(S).include_tax,"onUpdate:modelValue":M[24]||(M[24]=w=>e(S).include_tax=w),onChange:e(nt),filterable:"","allow-create":"","default-first-option":"","reserve-keyword":!1,placeholder:"Please select"},{default:u(()=>[(n(!0),o(V,null,D(e(me),w=>(n(),P(C,{key:w.value,label:w.text,value:w.value},null,8,["label","value"]))),128))]),_:1},8,["modelValue","onChange"])]),jC])):i("",!0),e(we).length>0?(n(),o("div",LC,[e(S).is_tax=="Y"?(n(),o("span",QC,"HST:"+a(e(S).hstValue),1)):i("",!0),t("span",HC,"Total:"+a(e(S).total),1)])):i("",!0),e(we).length>0?(n(),o("div",WC,[d(ge,{loading:e(z),type:"primary",onClick:M[25]||(M[25]=w=>e(xt)())},{default:u(()=>[r("Submit")]),_:1},8,["loading"])])):i("",!0)]),_:1},8,["modelValue"]),d($e,{style:{width:"78%"},modelValue:e(He),"onUpdate:modelValue":M[28]||(M[28]=w=>T(He)?He.value=w:null),title:""},{default:u(()=>[d(Tl,{onEventIsNumlocation:e(be),note:1,locationData:e(L),locationDialog:e(He),"onUpdate:locationDialog":M[27]||(M[27]=w=>T(He)?He.value=w:null)},null,8,["onEventIsNumlocation","locationData","locationDialog"])]),_:1},8,["modelValue"]),d($e,{modelValue:e(et),"onUpdate:modelValue":M[29]||(M[29]=w=>T(et)?et.value=w:null),title:""},{default:u(()=>[t("div",qC,a(e(S).location),1),t("div",GC,[t("div",null,[r(" Name:"),t("span",ZC,a(e(S).name),1)]),t("div",KC,[r(" Account: "),t("span",XC,a(e(S).Account),1)]),t("div",JC,[r(" Tel:"),t("span",e8,a(e(S).tel),1)])]),t("div",t8,[r(" Pkg:"),t("span",l8,a(e(S).pkg),1)]),d(Ae,{data:e(ut),border:"","max-height":"600px","span-method":Vt.objectSpanMethod,style:{width:"100%","margin-top":"15px"},"highlight-current-row":""},{default:u(()=>[d(Re,{width:"55",type:"index",label:"Idx"}),d(Re,{prop:"date",label:"Date"}),d(Re,{prop:"service",label:"Service"}),d(Re,{prop:"Used",label:"Used(min)"}),d(Re,{prop:"baln",label:"Balu(min)"}),d(Re,{prop:"signature",label:"Signature"}),d(Re,{prop:"notes",label:"Note"})]),_:1},8,["data","span-method"])]),_:1},8,["modelValue"]),d($e,{style:{width:"50%"},modelValue:e(Ge),"onUpdate:modelValue":M[31]||(M[31]=w=>T(Ge)?Ge.value=w:null),title:""},{default:u(()=>[d(sn,{onEventPrePay:e(Z),str:1,paymentArr:e(ze),addCollectionDialog:e(Ge),"onUpdate:addCollectionDialog":M[30]||(M[30]=w=>T(Ge)?Ge.value=w:null)},null,8,["onEventPrePay","paymentArr","addCollectionDialog"])]),_:1},8,["modelValue"]),d($e,{style:{width:"50%"},modelValue:e(_),"onUpdate:modelValue":M[32]||(M[32]=w=>T(_)?_.value=w:null),title:""},{default:u(()=>[n8,t("div",o8,[(n(!0),o(V,null,D(e(R),(w,pt)=>(n(),o("div",{class:"file_desc",onClick:se=>e(g)(w),key:pt},a(w),9,a8))),128))])]),_:1},8,["modelValue"])])}}});const Sn=dl(i8,[["__scopeId","data-v-d7ab692c"]]),a$=Object.freeze(Object.defineProperty({__proto__:null,default:Sn},Symbol.toStringTag,{value:"Module"}));export{pl as C,Ad as I,Sn as P,g_ as _,ol as a,zt as b,rt as c,Nl as d,Fl as e,h_ as f,an as g,ul as h,Un as i,kn as j,xn as k,Cn as l,$n as m,Vn as n,Dn as o,sn as p,e$ as q,t$ as r,l$ as s,n$ as t,o$ as u,a$ as v};