File: /var/www/html/public/static/js/PayHistories-93adda2d.js
import{ab as k,b7 as ot,L as fl,v as To}from"./message-2472a54a.js";import{useEqu as Eo}from"./hookPay-04e3f645.js";import ln from"./search-97483a8e.js";import{b as kl,P as xl}from"./index.es-6330c7aa.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-6ea0d708.js";import{_ as nn}from"./usersDetail_icon-a94f04d1.js";import{useEqu as Wo}from"./hookInvoice2-ea325de7.js";import on from"./autograph-4c261b0f.js";import Tl from"./locationConfig-f10f8d28.js";import{d as gn,u as qo}from"./vue-router-a383d220.js";import bn from"./payConfig-21139957.js";import{useEqu as Go}from"./hookPrePay-13c06430.js";import{d as at,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 f,l as A,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 Ae,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-bd39953b.js";import{useEqu as Xo}from"./hookBooking-be2deb49.js";import{_ as Jo}from"./booking_date_icon-35236f08.js";import{_ as ea}from"./time_icon-b16e277f.js";import{useEqu as ta}from"./hookBkDetail-f813c1f3.js";import la from"./chineseMedical-0d84621c.js";import na from"./statement-6b55392e.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",Yt=X=>(sl("data-v-9d4d21e3"),X=X(),il(),X),oa={class:"main"},aa=Yt(()=>t("div",{class:"dialog_tilte"},"payment",-1)),sa={class:"createOrderobj_box"},ia={key:0,width:"30%"},da=Yt(()=>t("span",{class:"red"}," * ",-1)),ua={key:1,width:"30%"},ra=Yt(()=>t("span",{class:"red"}," * ",-1)),_a={key:2},ca={key:3},pa=Yt(()=>t("td",null,[r("Pay Amount"),t("span",{class:"red"}," * ")],-1)),ma=Yt(()=>t("td",null,"Collection Time",-1)),va=Yt(()=>t("td",null,[r("Pay Method"),t("span",{class:"red"}," * ")],-1)),ga={key:0},ha=Yt(()=>t("td",null,[r("Check Number"),t("span",{class:"red"}," * ")],-1)),ya=Yt(()=>t("td",null,"file",-1)),ba={colspan:"5",class:"payment_box"},fa=Yt(()=>t("td",null,"Comment",-1)),ka={colspan:"5"},xa={class:"part_out_button"},Ca=Yt(()=>t("div",{class:"dialog_tilte"},"创建采购单",-1)),$a=Yt(()=>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=at({name:"/crm/yuyue/prePay"}),wa=at({...Da,props:{str:{type:String,default:""},paymentArr:{type:Object,default:""},addCollectionDialog:{type:Boolean,default:""}},emits:["update:addCollectionDialog","update:eventPrePay"],setup(X,{emit:ve}){const P=X,{searchDetail:ye,btnSearchPart:z,loading:Tt,small:ge,selectList:ht,columns:yt,checkList:bt,pagination:pe,handleSizeChange:st,handleCurrentChange:je,PartList:it,order_date:Ue,deliverDialog:De,selectClick:F,btnDeliverConfirm:We,singleTableRef:be,collectionArr:se,onSelClient:I,ClientDialog:Le,ClientData:ft,eventIsNum:Qe,payMethodData:p,AccountData:It,btncollectionConfirm:Ye,btnGoView:Te,uploadSlotFile1:Ee,payMethodData2:le,eventPay:U,payConfigDialog:fe,btnEdit:Me,itemArr:G,locationData:ne,upload:qe}=Go(P,ve);return al(()=>{}),(Oe,Y)=>{const te=H("el-button"),x=H("el-option"),ke=H("el-select"),Pe=H("el-date-picker"),Ut=H("el-upload"),Je=H("el-dialog");return n(),o("div",oa,[aa,t("table",sa,[t("tr",null,[e(G).actiontype==""?(n(),o("td",ia,[r(" Client"),da])):i("",!0),e(G).actiontype?(n(),o("td",ua,[r(" Location Worked:"),ra])):i("",!0),P.str!=3?(n(),o("td",_a,[f(t("input",{disabled:"",class:"input2","onUpdate:modelValue":Y[0]||(Y[0]=Q=>e(se).name=Q),type:"text"},null,512),[[k,e(se).name]]),P.paymentArr.id==""||P.str==""||e(se).pay_id?(n(),A(te,{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),P.str==3?(n(),o("td",ca,[d(ke,{style:{width:"272px",margin:"0 10px 0 0"},modelValue:e(se).company_id,"onUpdate:modelValue":Y[2]||(Y[2]=Q=>e(se).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(ne),Q=>(n(),A(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,[f(t("input",{"onUpdate:modelValue":Y[3]||(Y[3]=Q=>e(se).pay_amount=Q),class:"input2",type:"text"},null,512),[[k,e(se).pay_amount]])])]),t("tr",null,[ma,t("td",null,[d(Pe,{style:{width:"272px"},modelValue:e(se).time,"onUpdate:modelValue":Y[4]||(Y[4]=Q=>e(se).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(se).pay_method,"onUpdate:modelValue":Y[5]||(Y[5]=Q=>e(se).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(le),Q=>(n(),A(x,{key:Q.id,label:Q.text,value:Q.value},null,8,["label","value"]))),128))]),_:1},8,["modelValue","onChange"]),e(se).pay_method=="Other"?f((n(),o("input",{key:0,"onUpdate:modelValue":Y[6]||(Y[6]=Q=>e(se).other=Q),class:"input2",style:{height:"32px"},type:"text"},null,512)),[[k,e(se).other]]):i("",!0),d(te,{type:"primary",link:"",size:"small",onClick:Y[7]||(Y[7]=Q=>e(Me)())},{default:u(()=>[r("Edit")]),_:1})])]),e(se).pay_method=="Cheque"?(n(),o("tr",ga,[ha,t("td",null,[f(t("input",{"onUpdate:modelValue":Y[8]||(Y[8]=Q=>e(se).cheque_number=Q),class:"input2",type:"text"},null,512),[[k,e(se).cheque_number]])])])):i("",!0),t("tr",null,[ya,t("td",ba,[d(Ut,{ref_key:"upload",ref:qe,class:"avatar_uploader",action:e(Ol),"on-exceed":Oe.handleExceed,"on-success":e(Ee),"on-error":Oe.handleUploadError,"on-change":Oe.handleChangePic},{default:u(()=>[d(te,{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(se).files1,(Q,dt)=>(n(),o("div",{class:"files1_desc",key:dt},a(Q),1))),128))])]),t("tr",null,[fa,t("td",ka,[f(t("textarea",{class:"textarea_input",placeholder:"Please enter","onUpdate:modelValue":Y[9]||(Y[9]=Q=>e(se).content=Q),maxlength:"600"},null,512),[[k,e(se).content]])])])]),t("div",xa,[d(te,{loading:e(Tt),type:"primary",onClick:Y[10]||(Y[10]=Q=>e(Ye)())},{default:u(()=>[r("Submit")]),_:1},8,["loading"]),e(G).str==""?(n(),A(te,{key:0,link:"",type:"primary",onClick:Y[11]||(Y[11]=Q=>e(Te)())},{default:u(()=>[r("Go view")]),_:1})):i("",!0)]),d(Je,{modelValue:e(De),"onUpdate:modelValue":Y[13]||(Y[13]=Q=>T(De)?De.value=Q:null),title:""},{default:u(()=>[Ca,$a,t("div",Va,[d(te,{type:"primary",onClick:Y[12]||(Y[12]=Q=>e(We)())},{default:u(()=>[r("确定")]),_:1})])]),_:1},8,["modelValue"]),d(Je,{style:{width:"78%"},modelValue:e(Le),"onUpdate:modelValue":Y[15]||(Y[15]=Q=>T(Le)?Le.value=Q:null),title:""},{default:u(()=>[d(pl,{onEventIsNum:e(Qe),str:1,ClientData:e(ft),ClientDialog:e(Le),"onUpdate:ClientDialog":Y[14]||(Y[14]=Q=>T(Le)?Le.value=Q:null)},null,8,["onEventIsNum","ClientData","ClientDialog"])]),_:1},8,["modelValue"]),d(Je,{style:{width:"76%"},modelValue:e(fe),"onUpdate:modelValue":Y[17]||(Y[17]=Q=>T(fe)?fe.value=Q:null),title:""},{default:u(()=>[d(bn,{onEventPay:e(U),str:1,payConfigDialog:e(fe),"onUpdate:payConfigDialog":Y[16]||(Y[16]=Q=>T(fe)?fe.value=Q:null)},null,8,["onEventPay","payConfigDialog"])]),_:1},8,["modelValue"])])}}});const sn=dl(wa,[["__scopeId","data-v-9d4d21e3"]]),a3=Object.freeze(Object.defineProperty({__proto__:null,default:sn},Symbol.toStringTag,{value:"Module"})),wn=X=>(sl("data-v-dbeb8594"),X=X(),il(),X),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=at({name:"/crm/yuyue/components/Charge"}),Ha=at({...Qa,props:{str:{type:String,default:""},ChargeArr:{type:Object,default:""}},emits:["update:ChargeDialog","update:eventCharge"],setup(X,{emit:ve}){const P=X;gn(),qo(),gn();const ye=Ae({name:"",id:"",sum:"",actiontype:""});fn(P.ChargeArr,(le,U)=>{P.str==6?Ee():se()});const z=Ae({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 Tt=Ae({}),ge=Ae({});Ae({});const ht=ue([]),yt=ue([]),bt=ue([]),pe=Ae({}),st=Ae({}),je=Ae({});Ae({});const it=ue(!1),Ue=ue(!1),De=ue(!1),F=ue(!1),We=Ae({name:"",customer_id:"",pay_amount:0,pay_method:"",cheque_number:"",content:"",invoice_id:"",account_id:"",time:"",other:"",files:[]}),be=Ae({type:"",clinic_id:"",role:"",searchKey:""});async function se(){be.type=parseInt(localStorage.getItem("type")),be.type==2?(be.role="clinic",be.clinic_id=localStorage.getItem("clinicIdOverall")):be.type==1&&(be.role="therapists"),it.value=!0;const{data:le}=await Mo(Object.assign(Tt,{customer_id:P.ChargeArr.value.customer_id}));le.code==1&&(it.value=!1,P.str==2?(z.Invoice_Charge_Number=le.data.invoice_id_arr,z.Total_Paid_Amount=le.data.need_amount_sum,z.customer_id=P.ChargeArr.value.customer_id,z.customer_name=P.ChargeArr.value.customer_name):(P.ChargeArr.value.actiontype=="employee_company"&&(z.actiontype="employee_company"),z.Invoice_Charge_Number=P.ChargeArr.value.Invoice_Charge_Number,z.Customer_Name=P.ChargeArr.value.Customer_Name,z.Invoice_Total_Charge=P.ChargeArr.value.Invoice_Total_Charge,z.Has_Paid_Amount=P.ChargeArr.value.Has_Paid_Amount,z.Need_Charge_Amount=P.ChargeArr.value.Need_Charge_Amount,z.Total_Paid_Amount=P.ChargeArr.value.Total_Paid_Amount,z.customer_id=P.ChargeArr.value.customer_id,z.customer_name=P.ChargeArr.value.customer_name,z.invoice_id=P.ChargeArr.value.invoice_id),It())}function I(){Le(),ft(),Qe();let le=0;P.str==2?le=z.Total_Paid_Amount:le=z.Need_Charge_Amount,yt.value.forEach((U,fe)=>{le=le-U.paid_amount}),le>0?We.pay_amount=le.toFixed(2):We.pay_amount=0,ye.name=P.ChargeArr.value.customer_name,ye.id=P.ChargeArr.value.customer_id,ye.sum=We.pay_amount,ye.actiontype=z.actiontype,De.value=!0}function Le(){const le=new Date,U=le.getFullYear(),fe=("0"+(le.getMonth()+1)).slice(-2),Me=("0"+le.getDate()).slice(-2);We.time=U+"-"+fe+"-"+Me}async function ft(){const{data:le}=await Yo(Object.assign(pe,{clinic_id:be.clinic_id,role:be.role,searchKey:""}));le.code==1&&(ht.value=le.data)}async function Qe(){const{data:le}=await Oo(Object.assign(ge,{clinic_id:be.clinic_id,role:be.role,searchKey:""}));le.code==1&&(bt.value=le.data)}function p(){Qe()}async function It(){const{data:le}=await Bo(Object.assign(st,{customer_id:P.ChargeArr.value.customer_id,actiontype:z.actiontype}));if(le.code==1){yt.value=le.data;let U="";P.str==1?U=z.Need_Charge_Amount:U=z.Total_Paid_Amount,yt.value.forEach((fe,Me)=>{const G=Math.min(fe.remain_amount,U);G>0&&(fe.paid_amount=G,U=parseFloat((U-G).toFixed(2)))})}else ot({type:"error",message:le.msg})}async function Ye(){Ue.value=!0;let le=[];P.str==2||P.str==6?le=z.Invoice_Charge_Number:le.push(z.invoice_id);const{data:U}=await Fo(Object.assign(je,{invoice_id_list:le,pay_amount_details:yt.value,actiontype:z.actiontype}));U.code==1?(Ue.value=!1,ve("update:ChargeDialog",!1),ve("eventCharge")):(Ue.value=!1,ot({type:"error",message:U.msg}))}function Te(){It()}function Ee(){z.Invoice_Charge_Number=P.ChargeArr.value.Invoice_Charge_Number,z.Total_Paid_Amount=P.ChargeArr.value.Total_Paid_Amount,z.customer_id=P.ChargeArr.value.customer_id,z.customer_name=P.ChargeArr.value.customer_name,It()}return al(()=>{P.str==6?Ee():se()}),(le,U)=>{const fe=H("el-button"),Me=H("el-dialog");return n(),o("div",Ia,[P.str==2||P.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),P.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(yt.value,(G,ne)=>(n(),o("tr",{key:G.id},[t("td",null,a(G.cheque_number),1),t("td",null,a(G.pay_amount)+" $",1),t("td",null,a(G.has_pay_amount)+" $",1),t("td",null,a(G.remain_amount)+" $",1),t("td",null,[f(t("input",{"onUpdate:modelValue":qe=>G.paid_amount=qe,class:"input",type:"text"},null,8,Ra),[[k,G.paid_amount]]),r(" $ ")])]))),128))]),t("div",ja,[d(fe,{type:"primary",loading:Ue.value,onClick:U[0]||(U[0]=G=>Ye())},{default:u(()=>[r("Submit")]),_:1},8,["loading"])]),t("div",La,[r(" The balance is insufficient,please Pay "),d(fe,{link:"",type:"primary",style:{"margin-left":"8px"},onClick:U[1]||(U[1]=G=>I())},{default:u(()=>[r("Payment")]),_:1})]),d(Me,{style:{width:"76%"},modelValue:F.value,"onUpdate:modelValue":U[3]||(U[3]=G=>F.value=G),title:""},{default:u(()=>[d(bn,{onEventPay:p,str:1,payConfigDialog:F.value,"onUpdate:payConfigDialog":U[2]||(U[2]=G=>F.value=G)},null,8,["payConfigDialog"])]),_:1},8,["modelValue"]),d(Me,{style:{width:"50%"},modelValue:De.value,"onUpdate:modelValue":U[5]||(U[5]=G=>De.value=G),title:""},{default:u(()=>[d(sn,{onEventPrePay:Te,str:P.str,paymentArr:ye,addCollectionDialog:De.value,"onUpdate:addCollectionDialog":U[4]||(U[4]=G=>De.value=G)},null,8,["str","paymentArr","addCollectionDialog"])]),_:1},8,["modelValue"])])}}});const Fl=dl(Ha,[["__scopeId","data-v-dbeb8594"]]),s3=Object.freeze(Object.defineProperty({__proto__:null,default:Fl},Symbol.toStringTag,{value:"Module"})),J=X=>(sl("data-v-8340b0dc"),X=X(),il(),X),Wa={class:"main"},qa=J(()=>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=J(()=>t("div",{class:"dialog_tilte"},"Add Invoice",-1)),rs={class:"createOrderobj_box"},_s=J(()=>t("td",{width:"15%"},"Invoice Type",-1)),cs=J(()=>t("td",{width:"16%"},[r("Therapist"),t("span",{class:"red"}," * ")],-1)),ps=J(()=>t("td",null,[r("Client"),t("span",{class:"red"}," * ")],-1)),ms=J(()=>t("td",null,[r("Invoice Date"),t("span",{class:"red"}," * ")],-1)),vs={key:0},gs={class:"dialog_procure_box"},hs=J(()=>t("span",{class:"red"}," * ",-1)),ys={key:1},bs=J(()=>t("td",null,"Detail",-1)),fs={class:"Service_Invoice_box1"},ks={class:"createOrderobj_box_child"},xs=J(()=>t("td",{width:"15%"},"Invoice Number",-1)),Cs=J(()=>t("td",null,"Service",-1)),$s=["onUpdate:modelValue"],Vs={key:0},Ds=J(()=>t("td",null,"Receive",-1)),ws=["onUpdate:modelValue"],Is=J(()=>t("td",null,"Tax",-1)),Us={key:0},Ss=J(()=>t("td",null,[r("Item"),t("span",{class:"red"}," * ")],-1)),As=J(()=>t("div",null,"Date:",-1)),Ps=J(()=>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=J(()=>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=J(()=>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=J(()=>t("div",{class:"dialog_tilte"},"Booking Match",-1)),Js={class:"createOrderobj_box"},ei=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)),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=J(()=>t("img",{class:"_attachment",src:an,alt:""},null,-1)),di={class:"part_out_button"},ui=J(()=>t("div",{class:"dialog_tilte"},"Invoice Detail",-1)),ri={class:"Invoice_Detail_box"},_i={class:"INVOICE_box"},ci=J(()=>t("div",{class:"INVOICE_box_left"},"INVOICE",-1)),pi={class:"INVOICE_box_right"},mi={class:"Relaxation"},vi={style:{"font-size":"29rpx"}},gi=J(()=>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=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)),wi={key:0},Ii=J(()=>t("td",null,null,-1)),Ui=J(()=>t("td",null,null,-1)),Si=J(()=>t("td",null,null,-1)),Ai=J(()=>t("td",null,"Subtotal:",-1)),Pi={key:1},Ni=J(()=>t("td",null,null,-1)),Ti=J(()=>t("td",null,null,-1)),Ei=J(()=>t("td",null,null,-1)),Mi=J(()=>t("td",null,"HST:",-1)),Bi={key:2},Yi=J(()=>t("td",null,null,-1)),Oi=J(()=>t("td",null,null,-1)),Fi=J(()=>t("td",null,null,-1)),zi=J(()=>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=J(()=>t("div",{style:{margin:"18px 0 6px 0"}},"Prepaid History",-1)),ud={class:"createOrderobj_box"},rd=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)),_d=["onUpdate:modelValue"],cd={class:"part_out_button"},pd={class:"insufficient"},md=J(()=>t("div",{class:"dialog_tilte"},"payment",-1)),vd={class:"createOrderobj_box"},gd=J(()=>t("td",{width:"30%"},[r("UserName"),t("span",{class:"red"}," * ")],-1)),hd=J(()=>t("td",null,[r("Pay Amount"),t("span",{class:"red"}," * ")],-1)),yd=J(()=>t("td",null,"Collection Time",-1)),bd=J(()=>t("td",null,[r("Pay Method"),t("span",{class:"red"}," * ")],-1)),fd={key:0},kd=J(()=>t("td",null,[r("Check Number"),t("span",{class:"red"}," * ")],-1)),xd=J(()=>t("td",null,"Account ID",-1)),Cd=J(()=>t("td",null,"Comment",-1)),$d={colspan:"5"},Vd={class:"part_out_button"},Dd=J(()=>t("div",{class:"dialog_tilte"},"file list",-1)),wd={style:{"margin-top":"25px"}},Id=["onClick"],Ud=at({name:"/crm/yuyue/invoice2"}),Sd=at({...Ud,props:{str:{type:String,default:""},customer_id:{type:String,default:""},customer_name:{type:String,default:""}},setup(X){const ve=X,{searchDetail:P,btnSearchPart:ye,loading:z,small:Tt,selectList:ge,columns:ht,checkList:yt,pagination:bt,handleSizeChange:pe,handleCurrentChange:st,PartList:je,order_date:it,deliverDialog:Ue,selectClick:De,deliverDataArr:F,btnDeliverConfirm:We,getBooking:be,getNote:se,addForm:I,InvoiceType:Le,btnAdd:ft,descriptionData:Qe,items:p,during_price_array:It,AddItem:Ye,onDelete:Te,taxData:Ee,onIs_tax:le,IncludeTax:U,duringPrice:fe,onSelectLocation:Me,locationDialog:G,ClientDialog:ne,eventIsNumlocation:qe,eventIsNum:Oe,onSelClient:Y,ClientData:te,locationData:x,btnDelInvoice:ke,sandEmailDialog:Pe,btnSendEmail:Ut,onSend:Je,btnPrintPDF:Q,onPrice:dt,openAutograph:kt,signatureCanvas:jt,signatureDataUrl:Lt,saveSignature:xt,clearSignature:Qt,autographDialog:we,signalData:Ct,eventSignal:$t,handleValueFromChild:K,signalUrl:lt,InvoiceDetailDialog:_t,btnDetail:Ot,detailInfo:He,company_info:he,info:L,type:xe,customer_info:Vt,addServiceData:Ge,changeServic:Zt,licenceDetail:et,CollectionDialog:ut,btnCollection:Ze,CollectionData:ze,bookingPaymentConfirm:Z,addCollectionDialog:oe,AddCollect:_,collectionArr:g,btncollectionConfirm:R,btnShowNumber:$,ClinicsList:Ce,btnClinic:Dt,TherapistDate:M,onTherapist:me,disabledBeforeToday:$e,Therapists:v,onTherapistSelect:C,btnIsPaid:O,btnService:W,payMethodData:Re,AccountData:Se,isShowFilter:w,btnFilterQuery:ct,optionsFilter:ie,eventFilter:St,getNoInvoiceBookings:Et,MatchData:rl,MatchDialog:ml,selectedTr:zl,onSelectItemDate:El,btnExport:Ml,loading1:Cl,btnAddCharge:Ht,ChargeDialog:Ft,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:zt,onDeleteService:Mt,changeServiceItem:wt,onDeleteI:Pl,loadPartList:Kt,invoiceDate:S}=Wo(ve);return al(()=>{}),(Ie,N)=>{const Be=H("el-button"),At=H("el-switch"),pt=H("el-tooltip"),mt=H("el-option"),Pt=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:ve.customer_id,onEventFilter:e(St),optionsFilter:e(ie),isShowFilter:e(w),"onUpdate:isShowFilter":N[0]||(N[0]=c=>T(w)?w.value=c:null)},null,8,["customer_id","onEventFilter","optionsFilter","isShowFilter"])]),ve.customer_id?(n(),A(Be,{key:0,plain:"",loading:e(Cl),type:"primary",onClick:N[1]||(N[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(),A(Be,{key:1,plain:"",type:"primary",onClick:N[2]||(N[2]=c=>e(ft)()),style:{"margin-left":"20px"},size:"small"},{default:u(()=>[r("Add")]),_:1})):i("",!0),d(At,{style:{"margin-left":"20px"},modelValue:e(P).show_number,"onUpdate:modelValue":N[3]||(N[3]=c=>e(P).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:N[4]||(N[4]=c=>e(Kt)("Y")),style:{"margin-left":"20px"},size:"small"},{default:u(()=>[r("Export")]),_:1},8,["loading"]),ve.customer_id&&e(je).length>0&&e(P).is_batch_invoice==1?(n(),A(Be,{key:2,plain:"",type:"primary",onClick:N[5]||(N[5]=c=>e(Ht)()),size:"small",style:{"margin-left":"20px"}},{default:u(()=>[r("Payment")]),_:1})):i("",!0)]),d(e(xl),{title:"设备列表",selectArr:e(ge),onRefresh:Ie.onSearch},{default:u(({size:c,checkList:_e})=>[d(e(kl),{border:"",onSelect:e(De),selectable:e(Ul),"max-height":"500","align-whole":"center",showOverflowTooltip:"","table-layout":"auto",loading:e(z),size:"small",data:e(je),columns:e(ht),checkList:_e,pagination:e(bt),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(st)},{files:u(({row:B})=>[B.file.length>0?(n(),o("div",{key:0,style:{cursor:"pointer"},onClick:vt=>e(Sl)(B.file)}," file["+a(B.file.length)+"] ",9,Ka)):i("",!0)]),IsPaid:u(({row:B})=>[d(At,{modelValue:B.is_paid,"onUpdate:modelValue":vt=>B.is_paid=vt,onChange:vt=>e(O)(vt,B),style:{transform:"scale(0.7)"}},null,8,["modelValue","onUpdate:modelValue","onChange"])]),operation:u(({row:B})=>[t("div",Xa,[d(pt,{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:vt=>e(Ze)(B),class:"coupon_icon1",src:Cn,alt:""},null,8,Ja)):i("",!0)]),_:2},1024),d(pt,{content:"Detail",class:"box-item",effect:"light",placement:"top"},{default:u(()=>[t("img",{onClick:vt=>e(Ot)(B),class:"coupon_icon1",src:ol,alt:""},null,8,es)]),_:2},1024),d(pt,{content:"Send Email",class:"box-item",effect:"light",placement:"top"},{default:u(()=>[e(xe)==1||e(xe)==2?(n(),o("img",{key:0,onClick:vt=>e(Ut)(B),class:"coupon_icon1",src:$n,alt:""},null,8,ts)):i("",!0)]),_:2},1024),d(pt,{content:"Print PDF",class:"box-item",effect:"light",placement:"top"},{default:u(()=>[t("img",{onClick:vt=>e(Q)(B),class:"coupon_icon2",src:Vn,alt:""},null,8,ls)]),_:2},1024),d(pt,{content:" Delete",class:"box-item",effect:"light",placement:"top"},{default:u(()=>[e(xe)==1||e(xe)==2?(n(),o("img",{key:0,onClick:vt=>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(be)(B)),1)]),Note:u(({row:B})=>[r(a(e(se)(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(),A(Be,{key:0,loading:e(wl),plain:"",type:"primary",onClick:N[6]||(N[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(P).sub_amount)+"$",1)]),t("div",is,[r(" SUM Paid Amount :"),t("span",ds,a(e(P).sub_pay_amount)+"$",1)])])]),d(re,{style:{width:"80%"},modelValue:e(Ue),"onUpdate:modelValue":N[18]||(N[18]=c=>T(Ue)?Ue.value=c:null),title:""},{default:u(()=>[us,t("table",rs,[t("tr",null,[_s,t("td",null,[d(Pt,{style:{width:"180px"},clearable:"true",modelValue:e(I).invoice_type,"onUpdate:modelValue":N[7]||(N[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(Le),c=>(n(),A(mt,{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(Pt,{style:{width:"260px"},modelValue:e(I).Therapist,"onUpdate:modelValue":N[8]||(N[8]=c=>e(I).Therapist=c),"allow-create":"","default-first-option":"","reserve-keyword":!1,placeholder:"Please select",onChange:e(me)},{default:u(()=>[(n(!0),o(V,null,D(e(M),c=>(n(),A(mt,{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,[f(t("input",{"onUpdate:modelValue":N[9]||(N[9]=c=>e(I).Client_name=c),disabled:"",class:"input",type:"text"},null,512),[[k,e(I).Client_name]]),ve.customer_id==""?(n(),A(Be,{key:0,type:"primary",style:{"margin-left":"7px"},plain:"",size:"small",onClick:N[10]||(N[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":N[11]||(N[11]=c=>e(I).date=c),type:"date","value-format":"YYYY-MM-DD",placeholder:"Please select",disabledDate:e($e),onChange:e(S)},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:N[12]||(N[12]=c=>e(W)()),class:"usersDetail_icon",src:nn,alt:""})])]),t("td",null,[e(I).invoice_type!="outside"?(n(),A(Pt,{key:0,style:{width:"180px"},clearable:"true",modelValue:e(I).description_type,"onUpdate:modelValue":N[13]||(N[13]=c=>e(I).description_type=c),filterable:"","allow-create":"","default-first-option":"","reserve-keyword":!1,placeholder:"Please select",onChange:e(zt)},{default:u(()=>[(n(!0),o(V,null,D(e(Ge),c=>(n(),A(mt,{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"?f((n(),o("input",{key:1,placeholder:"Please enter","onUpdate:modelValue":N[14]||(N[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(),A(Pt,{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(wt)(B,c),placeholder:"Please select"},{default:u(()=>[(n(!0),o(V,null,D(e(Ge),B=>(n(),A(mt,{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"?f((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,[f(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(At,{onChange:B=>e(le)(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(),A(Pt,{key:1,style:{width:"130px","margin-left":"4px"},clearable:"true",modelValue:c.include_tax,"onUpdate:modelValue":B=>c.include_tax=B,onChange:B=>e(U)(B,c),filterable:"","allow-create":"","default-first-option":"","reserve-keyword":!1,placeholder:"Please select"},{default:u(()=>[(n(!0),o(V,null,D(e(Ee),B=>(n(),A(mt,{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,vt)=>(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(Et)(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(Pt,{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(fe)(ce,c,B)},{default:u(()=>[(n(!0),o(V,null,D(B.during_price_json,(ce,dn)=>(n(),A(mt,{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"?f((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),vt>0?(n(),A(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_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: "),f(t("input",{placeholder:"Please enter","onUpdate:modelValue":N[15]||(N[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:N[16]||(N[16]=c=>e(kt)())},"signature")])]),t("div",Ks,[d(Be,{loading:e(z),type:"primary",onClick:N[17]||(N[17]=c=>e(We)())},{default:u(()=>[r("Submit")]),_:1},8,["loading"])])]),_:1},8,["modelValue"]),d(re,{style:{width:"45%"},modelValue:e(ml),"onUpdate:modelValue":N[19]||(N[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(ne),"onUpdate:modelValue":N[21]||(N[21]=c=>T(ne)?ne.value=c:null),title:""},{default:u(()=>[d(pl,{onEventIsNum:e(Oe),str:1,ClientData:e(te),ClientDialog:e(ne),"onUpdate:ClientDialog":N[20]||(N[20]=c=>T(ne)?ne.value=c:null)},null,8,["onEventIsNum","ClientData","ClientDialog"])]),_:1},8,["modelValue"]),d(re,{style:{width:"78%"},modelValue:e(G),"onUpdate:modelValue":N[23]||(N[23]=c=>T(G)?G.value=c:null),title:""},{default:u(()=>[d(Tl,{onEventIsNumlocation:e(qe),note:2,locationData:e(x),locationDialog:e(G),"onUpdate:locationDialog":N[22]||(N[22]=c=>T(G)?G.value=c:null)},null,8,["onEventIsNumlocation","locationData","locationDialog"])]),_:1},8,["modelValue"]),t("div",oi,[d(re,{style:{width:"78%"},modelValue:e(Pe),"onUpdate:modelValue":N[26]||(N[26]=c=>T(Pe)?Pe.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),f(t("textarea",{class:"textarea_input1",placeholder:"Please enter","onUpdate:modelValue":N[24]||(N[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:N[25]||(N[25]=c=>e(Je)())},{default:u(()=>[r("send")]),_:1})])]),_:1},8,["modelValue"])]),d(re,{style:{width:"1000px","max-height":"100%"},modelValue:e(we),"onUpdate:modelValue":N[29]||(N[29]=c=>T(we)?we.value=c:null),title:""},{default:u(()=>[d(on,{onChildToParent:e(K),onEventSignal:e($t),signalData:e(Ct),signalUrl:e(lt),"onUpdate:signalUrl":N[27]||(N[27]=c=>T(lt)?lt.value=c:null),autographDialog:e(we),"onUpdate:autographDialog":N[28]||(N[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(_t),"onUpdate:modelValue":N[31]||(N[31]=c=>T(_t)?_t.value=c:null),title:""},{default:u(()=>[ui,t("div",ri,[t("div",_i,[ci,t("div",pi,[t("div",mi,a(e(he).title),1),t("div",vi,a(e(he).number_companyname),1),t("div",null,a(e(he).address),1),t("div",null,a(e(he).city)+" "+a(e(he).state),1),t("div",null,a(e(he).country)+" "+a(e(he).postal),1),t("div",null,"Tel:"+a(e(he).phone),1),t("div",null,"HST#:"+a(e(he).hst),1)])]),gi,t("div",hi,[t("div",yi,"Name:"+a(e(Vt).show1),1),e(P).show_number?(n(),o("div",bi," Invoice Number:"+a(e(L).invoice_number),1)):i("",!0),e(P).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(Vt).show2),1),e(P).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)?f((n(),o("input",{key:2,disabled:"",placeholder:"Please enter","onUpdate:modelValue":N[30]||(N[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":N[34]||(N[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,[f(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:N[32]||(N[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:N[33]||(N[33]=c=>e(_)())},{default:u(()=>[r("Payment")]),_:1})])]),_:1},8,["modelValue"]),d(re,{style:{width:"50%"},modelValue:e(oe),"onUpdate:modelValue":N[44]||(N[44]=c=>T(oe)?oe.value=c:null),title:""},{default:u(()=>[md,t("table",vd,[t("tr",null,[gd,t("td",null,[f(t("input",{disabled:"",class:"input2","onUpdate:modelValue":N[35]||(N[35]=c=>e(I).Customer_Name=c),type:"text"},null,512),[[k,e(I).Customer_Name]])])]),t("tr",null,[hd,t("td",null,[f(t("input",{"onUpdate:modelValue":N[36]||(N[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":N[37]||(N[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(Pt,{clearable:"true",style:{width:"272px",margin:"0 10px 0 0"},modelValue:e(g).pay_method,"onUpdate:modelValue":N[38]||(N[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(),A(mt,{key:c.id,label:c.text,value:c.value},null,8,["label","value"]))),128))]),_:1},8,["modelValue","onChange"]),e(g).pay_method=="Other"?f((n(),o("input",{key:0,"onUpdate:modelValue":N[39]||(N[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,[f(t("input",{"onUpdate:modelValue":N[40]||(N[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(Pt,{clearable:"true",style:{width:"272px",margin:"0 10px 0 0"},modelValue:e(g).account_id,"onUpdate:modelValue":N[41]||(N[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(Se),c=>(n(),A(mt,{key:c.id,label:c.text,value:c.value},null,8,["label","value"]))),128))]),_:1},8,["modelValue"])])]),t("tr",null,[Cd,t("td",$d,[f(t("textarea",{class:"textarea_input",placeholder:"Please enter","onUpdate:modelValue":N[42]||(N[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:N[43]||(N[43]=c=>e(R)())},{default:u(()=>[r("Submit")]),_:1},8,["loading"])])]),_:1},8,["modelValue"]),d(re,{style:{width:"76%"},modelValue:e(Ft),"onUpdate:modelValue":N[46]||(N[46]=c=>T(Ft)?Ft.value=c:null),title:""},{default:u(()=>[d(Fl,{onEventCharge:e(Vl),str:e(Dl),ChargeArr:e($l),ChargeDialog:e(Ft),"onUpdate:ChargeDialog":N[45]||(N[45]=c=>T(Ft)?Ft.value=c:null)},null,8,["onEventCharge","str","ChargeArr","ChargeDialog"])]),_:1},8,["modelValue"]),d(re,{style:{width:"50%"},modelValue:e(gl),"onUpdate:modelValue":N[47]||(N[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-8340b0dc"]]),ee=X=>(sl("data-v-4c355fae"),X=X(),il(),X),Pd={class:"main"},Nd=ee(()=>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=ee(()=>t("div",{class:"dialog_tilte"},"Add Invoice",-1)),qd={class:"createOrderobj_box"},Gd=ee(()=>t("td",{width:"15%"},"Invoice Type",-1)),Zd=ee(()=>t("td",null,[r("Location"),t("span",{class:"red"}," * ")],-1)),Kd=ee(()=>t("td",null,[r("Client"),t("span",{class:"red"}," * ")],-1)),Xd=ee(()=>t("td",null,[r("Invoice Date"),t("span",{class:"red"}," * ")],-1)),Jd={key:0},eu={style:{display:"flex"}},tu=ee(()=>t("span",{class:"red"}," * ",-1)),lu={key:1},nu=ee(()=>t("td",null,"Detail",-1)),ou={class:"Service_Invoice_box1"},au={class:"createOrderobj_box_child"},su=ee(()=>t("td",{width:"15%"},"Invoice Number",-1)),iu=ee(()=>t("td",null,"Service",-1)),du=["onUpdate:modelValue"],uu={key:0},ru=ee(()=>t("td",null,"Receive",-1)),_u=["onUpdate:modelValue"],cu=ee(()=>t("td",null,"Tax",-1)),pu={key:0},mu=ee(()=>t("td",null,[r("Item"),t("span",{class:"red"}," * ")],-1)),vu=ee(()=>t("div",null,"Date:",-1)),gu=ee(()=>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=ee(()=>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=ee(()=>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=ee(()=>t("div",{class:"dialog_tilte"},"Booking Match",-1)),Bu={class:"createOrderobj_box"},Yu=ee(()=>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=ee(()=>t("img",{class:"_attachment",src:an,alt:""},null,-1)),Hu={class:"part_out_button"},Wu=ee(()=>t("div",{class:"dialog_tilte"},"Invoice Detail",-1)),qu={class:"Invoice_Detail_box"},Gu={class:"INVOICE_box"},Zu=ee(()=>t("div",{class:"INVOICE_box_left"},"INVOICE",-1)),Ku={class:"INVOICE_box_right"},Xu={class:"Relaxation"},Ju={style:{"font-size":"29rpx"}},er=ee(()=>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=ee(()=>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=ee(()=>t("td",null,null,-1)),pr=ee(()=>t("td",null,null,-1)),mr=ee(()=>t("td",null,null,-1)),vr=ee(()=>t("td",null,"Subtotal:",-1)),gr={key:1},hr=ee(()=>t("td",null,null,-1)),yr=ee(()=>t("td",null,null,-1)),br=ee(()=>t("td",null,null,-1)),fr=ee(()=>t("td",null,"HST:",-1)),kr={key:2},xr=ee(()=>t("td",null,null,-1)),Cr=ee(()=>t("td",null,null,-1)),$r=ee(()=>t("td",null,null,-1)),Vr=ee(()=>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=ee(()=>t("div",{style:{margin:"18px 0 6px 0"}},"Prepaid History",-1)),Wr={class:"createOrderobj_box"},qr=ee(()=>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=ee(()=>t("div",{class:"dialog_tilte"},"payment",-1)),Jr={class:"createOrderobj_box"},e_=ee(()=>t("td",{width:"30%"},[r("UserName"),t("span",{class:"red"}," * ")],-1)),t_=ee(()=>t("td",null,[r("Pay Amount"),t("span",{class:"red"}," * ")],-1)),l_=ee(()=>t("td",null,"Collection Time",-1)),n_=ee(()=>t("td",null,[r("Pay Method"),t("span",{class:"red"}," * ")],-1)),o_={key:0},a_=ee(()=>t("td",null,[r("Check Number"),t("span",{class:"red"}," * ")],-1)),s_=ee(()=>t("td",null,"Account ID",-1)),i_=ee(()=>t("td",null,"Comment",-1)),d_={colspan:"5"},u_={class:"part_out_button"},r_=ee(()=>t("div",{class:"dialog_tilte"},"file list",-1)),__={style:{"margin-top":"25px"}},c_=["onClick"],p_=at({name:"/crm/yuyue/invoice"}),m_=at({...p_,props:{str:{type:String,default:""},customer_id:{type:String,default:""},customer_name:{type:String,default:""}},setup(X){const ve=X,{searchDetail:P,btnSearchPart:ye,loading:z,small:Tt,selectList:ge,columns:ht,checkList:yt,pagination:bt,handleSizeChange:pe,handleCurrentChange:st,PartList:je,order_date:it,deliverDialog:Ue,selectClick:De,deliverDataArr:F,btnDeliverConfirm:We,getBooking:be,getNote:se,addForm:I,InvoiceType:Le,btnAdd:ft,descriptionData:Qe,items:p,during_price_array:It,AddItem:Ye,onDelete:Te,taxData:Ee,onIs_tax:le,IncludeTax:U,duringPrice:fe,onSelectLocation:Me,locationDialog:G,ClientDialog:ne,eventIsNumlocation:qe,eventIsNum:Oe,onSelClient:Y,ClientData:te,locationData:x,btnDelInvoice:ke,sandEmailDialog:Pe,btnSendEmail:Ut,onSend:Je,btnPrintPDF:Q,onPrice:dt,openAutograph:kt,signatureCanvas:jt,signatureDataUrl:Lt,saveSignature:xt,clearSignature:Qt,autographDialog:we,signalData:Ct,eventSignal:$t,handleValueFromChild:K,signalUrl:lt,InvoiceDetailDialog:_t,btnDetail:Ot,detailInfo:He,company_info:he,info:L,type:xe,customer_info:Vt,addServiceData:Ge,changeServic:Zt,licenceDetail:et,CollectionDialog:ut,btnCollection:Ze,CollectionData:ze,bookingPaymentConfirm:Z,addCollectionDialog:oe,AddCollect:_,collectionArr:g,btncollectionConfirm:R,btnShowNumber:$,disabledBeforeToday:Ce,onSearch:Dt,clinicData:M,onClinicData:me,btnIsPaid:$e,btnGuide:v,btnService:C,payMethodData:O,AccountData:W,isShowFilter:Re,btnFilterQuery:Se,optionsFilter:w,eventFilter:ct,getNoInvoiceBookings:ie,MatchData:St,MatchDialog:Et,selectedTr:rl,btnMatchConfirm:ml,onSelectItemDate:zl,btnExport:El,loading1:Ml,btnAddCharge:Cl,ChargeDialog:Ht,ChargeArr:Ft,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:zt,onDeleteI:Mt,loadPartList:wt,invoiceDate:Pl}=Ko(ve);return al(()=>{}),(Kt,S)=>{const Ie=H("el-button"),N=H("el-switch"),Be=H("el-tooltip"),At=H("el-option"),pt=H("el-select"),mt=H("el-date-picker"),Pt=H("el-upload"),tt=H("el-dialog");return n(),o("div",Pd,[Nd,t("div",Td,[d(ln,{str:"invoice",onEventFilter:e(ct),optionsFilter:e(w),isShowFilter:e(Re),"onUpdate:isShowFilter":S[0]||(S[0]=h=>T(Re)?Re.value=h:null)},null,8,["onEventFilter","optionsFilter","isShowFilter"]),ve.customer_id?(n(),A(Ie,{key:0,plain:"",loading:e(Ml),type:"primary",onClick:S[1]||(S[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(),A(Ie,{key:1,size:"small",plain:"",type:"primary",onClick:S[2]||(S[2]=h=>e(ft)()),style:{"margin-left":"20px"}},{default:u(()=>[r("Add")]),_:1})):i("",!0),d(N,{style:{"margin-left":"20px"},modelValue:e(P).show_number,"onUpdate:modelValue":S[3]||(S[3]=h=>e(P).show_number=h),"active-text":"invoice number shows ON","inactive-text":"OFF",onChange:e($)},null,8,["modelValue","onChange"]),d(Ie,{plain:"",type:"primary",onClick:S[4]||(S[4]=h=>e(v)()),style:{"margin-left":"20px"},size:"small"},{default:u(()=>[r("Guide")]),_:1}),d(Ie,{loading:e(z),plain:"",type:"primary",onClick:S[5]||(S[5]=h=>e(wt)("Y")),style:{"margin-left":"20px"},size:"small"},{default:u(()=>[r("Export")]),_:1},8,["loading"]),ve.customer_id&&e(je).length>0&&e(P).is_batch_invoice==1?(n(),A(Ie,{key:2,plain:"",type:"primary",onClick:S[6]||(S[6]=h=>e(Cl)()),style:{"margin-left":"20px"},size:"small"},{default:u(()=>[r("Payment")]),_:1})):i("",!0)]),d(e(xl),{title:"设备列表",selectArr:e(ge),onRefresh:e(Dt)},{default:u(({size:h,checkList:re})=>[d(e(kl),{border:"",onSelect:e(De),"max-height":"500","align-whole":"center",showOverflowTooltip:"","table-layout":"auto",loading:e(z),size:"small",data:e(je),columns:e(ht),checkList:re,pagination:e(bt),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(st)},{IsPaid:u(({row:c})=>[d(N,{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(Ze)(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(Ot)(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(Ut)(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(be)(c)),1)]),Note:u(({row:c})=>[r(a(e(se)(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(),A(Ie,{key:0,loading:e(wl),plain:"",type:"primary",onClick:S[7]||(S[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(P).sub_amount)+"$",1)]),t("div",Qd,[r(" SUM Paid Amount :"),t("span",Hd,a(e(P).sub_pay_amount)+"$",1)])])]),d(tt,{style:{width:"80%"},draggable:"",modelValue:e(Ue),"onUpdate:modelValue":S[20]||(S[20]=h=>T(Ue)?Ue.value=h:null),title:""},{default:u(()=>[Wd,t("table",qd,[t("tr",null,[Gd,t("td",null,[d(pt,{style:{width:"180px"},clearable:"true",modelValue:e(I).invoice_type,"onUpdate:modelValue":S[8]||(S[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(Le),h=>(n(),A(At,{key:h.value,label:h.text,value:h.value},null,8,["label","value"]))),128))]),_:1},8,["modelValue"])])]),t("tr",null,[Zd,t("td",null,[f(t("input",{disabled:"","onUpdate:modelValue":S[9]||(S[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:S[10]||(S[10]=h=>e(Me)())},{default:u(()=>[r(" Select ")]),_:1})])]),t("tr",null,[Kd,t("td",null,[f(t("input",{"onUpdate:modelValue":S[11]||(S[11]=h=>e(I).Client_name=h),disabled:"",class:"input",type:"text"},null,512),[[k,e(I).Client_name]]),ve.customer_id==""?(n(),A(Ie,{key:0,type:"primary",style:{"margin-left":"7px"},plain:"",size:"small",onClick:S[12]||(S[12]=h=>e(Y)())},{default:u(()=>[r(" Select ")]),_:1})):i("",!0)])]),t("tr",null,[Xd,t("td",null,[d(mt,{style:{width:"180px"},modelValue:e(I).date,"onUpdate:modelValue":S[13]||(S[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:S[14]||(S[14]=h=>e(C)()),class:"usersDetail_icon",src:nn,alt:""})]),t("td",null,[e(I).invoice_type!="outside"?(n(),A(pt,{key:0,style:{width:"180px"},clearable:"true",modelValue:e(I).description_type,"onUpdate:modelValue":S[15]||(S[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(Ge),h=>(n(),A(At,{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"?f((n(),o("input",{key:1,placeholder:"Please enter","onUpdate:modelValue":S[16]||(S[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(),A(pt,{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(zt)(c,h),placeholder:"Please select"},{default:u(()=>[(n(!0),o(V,null,D(e(Ge),c=>(n(),A(At,{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"?f((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,[f(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(N,{onChange:c=>e(le)(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(),A(pt,{key:1,style:{width:"130px","margin-left":"4px"},clearable:"true",modelValue:h.include_tax,"onUpdate:modelValue":c=>h.include_tax=c,onChange:c=>e(U)(c,h),filterable:"","allow-create":"","default-first-option":"","reserve-keyword":!1,placeholder:"Please select"},{default:u(()=>[(n(!0),o(V,null,D(e(Ee),c=>(n(),A(At,{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(ie)(h,c),style:{margin:"0 10px"}},{default:u(()=>[r("Match")]),_:2},1032,["onClick"]),vu,d(mt,{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(pt,{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(fe)(B,h,c)},{default:u(()=>[(n(!0),o(V,null,D(c.during_price_json,(B,vt)=>(n(),A(At,{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"?f((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(),A(Ie,{key:3,link:"",type:"danger",onClick:B=>e(Mt)(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_number?h.licence_number:""),1)])])]))),128))])])):i("",!0),t("tr",null,[Uu,t("td",Su,[d(Pt,{ref:"upload",class:"avatar_uploader",action:e(Ol),"on-exceed":Kt.handleExceed,"on-success":e(Il),"on-error":Kt.handleUploadError,"on-change":Kt.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: "),f(t("input",{placeholder:"Please enter","onUpdate:modelValue":S[17]||(S[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:S[18]||(S[18]=h=>e(kt)())},"signature")])])):i("",!0),e(I).loacation_name?(n(),o("div",Eu,[d(Ie,{loading:e(z),type:"primary",onClick:S[19]||(S[19]=h=>e(We)())},{default:u(()=>[r("Submit")]),_:1},8,["loading"])])):i("",!0)]),_:1},8,["modelValue"]),d(tt,{style:{width:"45%"},modelValue:e(Et),"onUpdate:modelValue":S[21]||(S[21]=h=>T(Et)?Et.value=h:null),title:""},{default:u(()=>[Mu,t("table",Bu,[Yu,(n(!0),o(V,null,D(e(St),(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(ne),"onUpdate:modelValue":S[23]||(S[23]=h=>T(ne)?ne.value=h:null),title:""},{default:u(()=>[d(pl,{onEventIsNum:e(Oe),str:1,ClientData:e(te),ClientDialog:e(ne),"onUpdate:ClientDialog":S[22]||(S[22]=h=>T(ne)?ne.value=h:null)},null,8,["onEventIsNum","ClientData","ClientDialog"])]),_:1},8,["modelValue"]),d(tt,{style:{width:"78%"},modelValue:e(G),"onUpdate:modelValue":S[25]||(S[25]=h=>T(G)?G.value=h:null),title:""},{default:u(()=>[d(Tl,{onEventIsNumlocation:e(qe),note:2,locationData:e(x),locationDialog:e(G),"onUpdate:locationDialog":S[24]||(S[24]=h=>T(G)?G.value=h:null)},null,8,["onEventIsNumlocation","locationData","locationDialog"])]),_:1},8,["modelValue"]),t("div",Ru,[d(tt,{style:{width:"78%"},modelValue:e(Pe),"onUpdate:modelValue":S[28]||(S[28]=h=>T(Pe)?Pe.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),f(t("textarea",{class:"textarea_input1",placeholder:"Please enter","onUpdate:modelValue":S[26]||(S[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:S[27]||(S[27]=h=>e(Je)())},{default:u(()=>[r("send")]),_:1})])]),_:1},8,["modelValue"])]),d(tt,{style:{width:"1000px","max-height":"100%"},modelValue:e(we),"onUpdate:modelValue":S[31]||(S[31]=h=>T(we)?we.value=h:null),title:""},{default:u(()=>[d(on,{onChildToParent:e(K),onEventSignal:e($t),signalData:e(Ct),signalUrl:e(lt),"onUpdate:signalUrl":S[29]||(S[29]=h=>T(lt)?lt.value=h:null),autographDialog:e(we),"onUpdate:autographDialog":S[30]||(S[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(_t),"onUpdate:modelValue":S[33]||(S[33]=h=>T(_t)?_t.value=h:null),title:""},{default:u(()=>[Wu,t("div",qu,[t("div",Gu,[Zu,t("div",Ku,[t("div",Xu,a(e(he).title),1),t("div",Ju,a(e(he).number_companyname),1),t("div",null,a(e(he).address),1),t("div",null,a(e(he).city)+" "+a(e(he).state),1),t("div",null,a(e(he).country)+" "+a(e(he).postal),1),t("div",null,"Tel:"+a(e(he).phone),1),t("div",null,"HST#:"+a(e(he).hst),1)])]),er,t("div",tr,[t("div",lr,"Name:"+a(e(Vt).show1),1),e(P).show_number?(n(),o("div",nr," Invoice Number:"+a(e(L).invoice_number),1)):i("",!0),e(P).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(Vt).show2),1),e(P).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)?f((n(),o("input",{key:2,disabled:"",placeholder:"Please enter","onUpdate:modelValue":S[32]||(S[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":S[36]||(S[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,[f(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:S[34]||(S[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:S[35]||(S[35]=h=>e(_)())},{default:u(()=>[r("Payment")]),_:1})])]),_:1},8,["modelValue"]),d(tt,{style:{width:"50%"},modelValue:e(oe),"onUpdate:modelValue":S[46]||(S[46]=h=>T(oe)?oe.value=h:null),title:""},{default:u(()=>[Xr,t("table",Jr,[t("tr",null,[e_,t("td",null,[f(t("input",{disabled:"",class:"input2","onUpdate:modelValue":S[37]||(S[37]=h=>e(I).Customer_Name=h),type:"text"},null,512),[[k,e(I).Customer_Name]])])]),t("tr",null,[t_,t("td",null,[f(t("input",{"onUpdate:modelValue":S[38]||(S[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(mt,{style:{width:"272px"},modelValue:e(g).time,"onUpdate:modelValue":S[39]||(S[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(pt,{clearable:"true",style:{width:"272px",margin:"0 10px 0 0"},modelValue:e(g).pay_method,"onUpdate:modelValue":S[40]||(S[40]=h=>e(g).pay_method=h),filterable:"","allow-create":"","default-first-option":"","reserve-keyword":!1,placeholder:"Please select",onChange:Kt.onPayMethod},{default:u(()=>[(n(!0),o(V,null,D(e(O),h=>(n(),A(At,{key:h.id,label:h.text,value:h.value},null,8,["label","value"]))),128))]),_:1},8,["modelValue","onChange"]),e(g).pay_method=="Other"?f((n(),o("input",{key:0,"onUpdate:modelValue":S[41]||(S[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,[f(t("input",{"onUpdate:modelValue":S[42]||(S[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(pt,{clearable:"true",style:{width:"272px",margin:"0 10px 0 0"},modelValue:e(g).account_id,"onUpdate:modelValue":S[43]||(S[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(),A(At,{key:h.id,label:h.text,value:h.value},null,8,["label","value"]))),128))]),_:1},8,["modelValue"])])]),t("tr",null,[i_,t("td",d_,[f(t("textarea",{class:"textarea_input",placeholder:"Please enter","onUpdate:modelValue":S[44]||(S[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:S[45]||(S[45]=h=>e(R)())},{default:u(()=>[r("Submit")]),_:1},8,["loading"])])]),_:1},8,["modelValue"]),d(tt,{style:{width:"76%"},modelValue:e(Ht),"onUpdate:modelValue":S[48]||(S[48]=h=>T(Ht)?Ht.value=h:null),title:""},{default:u(()=>[d(Fl,{onEventCharge:e($l),str:e(Vl),ChargeArr:e(Ft),ChargeDialog:e(Ht),"onUpdate:ChargeDialog":S[47]||(S[47]=h=>T(Ht)?Ht.value=h:null)},null,8,["onEventCharge","str","ChargeArr","ChargeDialog"])]),_:1},8,["modelValue"]),d(tt,{style:{width:"50%"},modelValue:e(vl),"onUpdate:modelValue":S[49]||(S[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-4c355fae"]]),g_="/public/static/png/warn_icon-d5331d22.png",h_="/public/static/png/plan_img-7a624edf.png",Rt="/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=X=>(sl("data-v-f6fd5377"),X=X(),il(),X),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={key:4,class:"EmailSensitive_box",style:{"margin-top":"20px"}},Fp={key:5,style:{"margin-top":"12px"},class:"EmailSensitive_box"},zp={key:6,style:{"margin-top":"12px"},class:"EmailSensitive_box"},Rp=m(()=>t("div",{class:"Email_box",style:{"margin-top":"120px"}},null,-1)),jp={class:"part_out_button"},Lp=m(()=>t("div",{class:"dialog_tilte"},"User details",-1)),Qp={class:"fieldset"},Hp=m(()=>t("legend",{class:"legend"},"Booking List",-1)),Wp={class:"fieldset"},qp=m(()=>t("legend",{class:"legend"},"Note List",-1)),Gp={key:0,class:"formDialog_box"},Zp=m(()=>t("div",{class:"dialog_tilte"},"Informed Consent- MASSAGE THERAPY",-1)),Kp={class:"Informed_box"},Xp=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)),Jp=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)),em=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)),tm=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)),lm=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)),nm=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)),om=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)),am=m(()=>t("div",{class:"desc1"},"Cancellation and No Show Policy",-1)),sm=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)),im={class:"Description_box"},dm=m(()=>t("div",{class:"Date_title"},"Date:",-1)),um={class:"Description_box",style:{"align-items":"flex-end"}},rm=m(()=>t("div",null,"Patient Signature (Legal Guardian)",-1)),_m=["disabled"],cm=["src"],pm={class:"Description_box",style:{"align-items":"flex-end"}},mm=m(()=>t("div",null,"Witness of Signature",-1)),vm=["disabled"],gm=["src"],hm={key:1,class:"formDialog_box"},ym=m(()=>t("div",{class:"desc"},"Treatment Plan for:",-1)),bm=["disabled"],fm={class:"Description_box"},km=m(()=>t("div",{class:"Date_title"},"Date:",-1)),xm=m(()=>t("div",{class:"desc"},"Limitations of activities of daily living:",-1)),Cm=["disabled"],$m=m(()=>t("div",{class:"desc"},"Treatment plan discussed with Client:",-1)),Vm={class:"allQuestions_box1"},Dm=["onClick"],wm=m(()=>t("div",{class:"desc"},"Clients Goal / Treatment Goal:",-1)),Im=["disabled"],Um=m(()=>t("div",{class:"desc"},"Received informed consent for treatment :",-1)),Sm={class:"allQuestions_box1"},Am=["onClick"],Pm=m(()=>t("div",{class:"desc"},"Type / Focus of treatment:",-1)),Nm=["disabled"],Tm=m(()=>t("div",{class:"desc"},"Frequency:",-1)),Em=["disabled"],Mm=m(()=>t("div",{class:"desc"},"Duration:",-1)),Bm=["disabled"],Ym=m(()=>t("div",{class:"desc"},"Areas to be treated:",-1)),Om=["onClick"],Fm=["disabled","onUpdate:modelValue"],zm=m(()=>t("div",{class:"desc"},"Assessments Performed:",-1)),Rm=["disabled"],jm=m(()=>t("div",{class:"desc"},"Results of Assessments:",-1)),Lm=["disabled"],Qm=m(()=>t("div",{class:"desc"},"Reassessment schedule:",-1)),Hm=["disabled"],Wm=m(()=>t("div",{class:"desc"},"Anticipated Progression of Responses:",-1)),qm=["disabled"],Gm=m(()=>t("div",{class:"desc"},"Remedial exercises/ Hydrotherapy recommended:",-1)),Zm=["disabled"],Km=m(()=>t("div",{class:"desc"},"Contraindications / Risks:",-1)),Xm=["disabled"],Jm=m(()=>t("div",{class:"desc"},"Referrals:",-1)),e1=["disabled"],t1=m(()=>t("img",{class:"plan_img",src:h_,alt:""},null,-1)),l1={key:2,class:"formDialog_box"},n1=m(()=>t("div",{class:"desc"},"Treatment notes for:",-1)),o1=["disabled"],a1={class:"Description_box"},s1=m(()=>t("div",{class:"Date_title"},"Date:",-1)),i1={class:"Description_box"},d1=m(()=>t("div",{class:"Date_title"},"Time:",-1)),u1=["onClick"],r1={class:"Description_box"},_1=m(()=>t("div",{class:"Date_title"},"Duration:",-1)),c1=["disabled"],p1={class:"Description_box"},m1=m(()=>t("div",{class:"Date_title"},"Fee:",-1)),v1=["disabled"],g1=m(()=>t("div",{class:"allQuestions_box2"},[t("span",{style:{"margin-left":"4px"}},"$ ")],-1)),h1=m(()=>t("div",{class:"desc"},"Informed consent received:",-1)),y1={class:"allQuestions_box1",style:{"margin-top":"20rpx",width:"96%"}},b1=["onClick"],f1={class:"Description_box"},k1=m(()=>t("div",{class:"Date_title"},"treatment assessment:",-1)),x1=["disabled"],C1={class:"Description_box"},$1=m(()=>t("div",{class:"Date_title"},"Therapist:",-1)),V1=m(()=>t("div",{class:"desc"},"Client Goal:",-1)),D1=["disabled"],w1=m(()=>t("div",{class:"desc"},"Techniques Used:",-1)),I1=["onClick"],U1=["disabled","onUpdate:modelValue"],S1=m(()=>t("div",{class:"desc"},"Areas Treated :",-1)),A1=["onClick"],P1=["disabled","onUpdate:modelValue"],N1=m(()=>t("div",{class:"desc"},"Clinical findings:",-1)),T1=["disabled"],E1=m(()=>t("div",{class:"desc"},"Clients reaction / feedback:",-1)),M1=["disabled"],B1=m(()=>t("div",{class:"desc"},"Recommended Self-Care:",-1)),Y1=["disabled"],O1={key:3,class:"formDialog_box"},F1=m(()=>t("div",{class:"title5"}," Consent for Assessment and Treatment of Sensitive Areas ",-1)),z1={class:"input_box",style:{"margin-top":"30rpx"}},R1=["disabled"],j1=["disabled"],L1={key:0,class:"Description_box",style:{"align-items":"flex-end"}},Q1=m(()=>t("div",null,"Client Signature:",-1)),H1=["onUpdate:modelValue"],W1=["src"],q1=m(()=>t("div",{class:"desc1"},"List Clinical Indication:",-1)),G1=["disabled"],Z1=m(()=>t("div",{class:"desc1"}," The RMT has explained the following to me and I fully understand the proposed assessment and/or treatment: ",-1)),K1=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)),X1=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)),J1=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)),ev=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)),tv=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)),lv=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)),nv=m(()=>t("div",{class:"desc1"}," I voluntarily give my informed consent for the assessment and/or treatment as discussed and outlined above. ",-1)),ov=m(()=>t("div",{class:"desc1"},"Client Name (print):",-1)),av=["disabled"],sv={class:"Description_box"},iv=m(()=>t("div",null,"Date:",-1)),dv={class:"Description_box",style:{"align-items":"flex-end"}},uv=m(()=>t("div",null,"Client Signature:",-1)),rv=["disabled"],_v=["src"],cv={key:4,class:"formDialog_box"},pv=m(()=>t("div",{class:"desc1",style:{"margin-top":"30px"}},"Ongoing Treatment:",-1)),mv=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)),vv={class:"show_card"},gv={class:"Description_box"},hv=m(()=>t("div",null,"Date:",-1)),yv={class:"Description_box",style:{"align-items":"flex-end"}},bv=m(()=>t("div",null,"Client Signature:",-1)),fv=["disabled"],kv=["src"],xv={class:"show_card"},Cv={class:"Description_box"},$v=m(()=>t("div",null,"Date:",-1)),Vv={class:"Description_box",style:{"align-items":"flex-end"}},Dv=m(()=>t("div",null,"Client Signature:",-1)),wv=["disabled"],Iv=["src"],Uv={class:"show_card"},Sv={class:"Description_box"},Av=m(()=>t("div",null,"Date:",-1)),Pv={class:"Description_box",style:{"align-items":"flex-end"}},Nv=m(()=>t("div",null,"Client Signature:",-1)),Tv=["disabled"],Ev=["src"],Mv={class:"show_card"},Bv={class:"Description_box"},Yv=m(()=>t("div",null,"Date:",-1)),Ov={class:"Description_box",style:{"align-items":"flex-end"}},Fv=m(()=>t("div",null,"Client Signature:",-1)),zv=["disabled"],Rv=["src"],jv={class:"show_card"},Lv={class:"Description_box"},Qv=m(()=>t("div",null,"Date:",-1)),Hv={class:"Description_box",style:{"align-items":"flex-end"}},Wv=m(()=>t("div",null,"Client Signature:",-1)),qv=["disabled"],Gv=["src"],Zv={key:5,class:"formDialog_box"},Kv=m(()=>t("div",{class:"description_title"},"description:",-1)),Xv=["disabled"],Jv={key:6,class:"part_out_button"},eg=m(()=>t("div",{class:"dialog_tilte"},"Add Invoice",-1)),tg={class:"createOrderobj_box66 Invoice_td",style:{width:"100%"}},lg=m(()=>t("td",{width:"10%"},"Invoice Type",-1)),ng={key:0},og=m(()=>t("td",null,[r("Location"),t("span",{class:"red"}," * ")],-1)),ag=m(()=>t("td",null,[r("Client"),t("span",{class:"red"}," * ")],-1)),sg={key:1},ig=m(()=>t("td",null,"Therapist",-1)),dg={style:{display:"flex","align-items":"center"}},ug={key:0,style:{"margin-left":"16px"}},rg={style:{display:"flex","align-items":"center"}},_g=m(()=>t("span",{class:"red"}," * ",-1)),cg={class:"Service_Invoice_box1"},pg={class:"createOrderobj_box_child"},mg=m(()=>t("td",{width:"15%"},"Invoice Number",-1)),vg=m(()=>t("td",null,"Service",-1)),gg=["onUpdate:modelValue"],hg={key:0},yg=m(()=>t("td",null,"Receive",-1)),bg=["onUpdate:modelValue"],fg=m(()=>t("td",null,"Tax",-1)),kg={key:0},xg=m(()=>t("td",null,[r("Item"),t("span",{class:"red"}," * ")],-1)),Cg={style:{margin:"0 18px 0 0"}},$g=m(()=>t("div",null,"Date:",-1)),Vg=m(()=>t("div",{style:{"margin-left":"10px"}},"Duration:",-1)),Dg={key:0,style:{"margin-left":"10px"}},wg=["onUpdate:modelValue","onInput"],Ig={key:2,style:{"margin-left":"5px"}},Ug={class:"Add_Item"},Sg=m(()=>t("div",null,null,-1)),Ag={key:0},Pg={key:0},Ng={style:{"margin-left":"20px"}},Tg={class:"Signature_box",style:{width:"80%"}},Eg={class:"Paid_desc"},Mg={class:"Paid_desc"},Bg={class:"Paid_desc"},Yg=m(()=>t("td",null,"File",-1)),Og={class:"payment_box"},Fg={key:0,class:"Signature_box1"},zg={class:"signal_image_box"},Rg={class:"signal_url_box"},jg=["src"],Lg={key:1,class:"part_out_button"},Qg={style:{"margin-top":"8px"}},Hg={style:{"margin-top":"8px"}},Wg={style:{"margin-top":"8px"}},qg={style:{"margin-top":"8px"}},Gg=m(()=>t("div",{style:{margin:"18px 0 6px 0"}},"Prepaid History",-1)),Zg={key:0,class:"createOrderobj_box66"},Kg=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)),Xg=["onUpdate:modelValue"],Jg={key:1,class:"part_out_button"},eh={key:2,class:"no_data1"},th={class:"insufficient"},lh=m(()=>t("div",{class:"dialog_tilte"},"payment",-1)),nh={class:"createOrderobj_box66"},oh=m(()=>t("td",{width:"30%"},[r("UserName"),t("span",{class:"red"}," * ")],-1)),ah=m(()=>t("td",null,[r("Pay Amount"),t("span",{class:"red"}," * ")],-1)),sh=m(()=>t("td",null,"Collection Time",-1)),ih=m(()=>t("td",null,[r("Pay Method"),t("span",{class:"red"}," * ")],-1)),dh={key:0},uh=m(()=>t("td",null,[r("Check Number"),t("span",{class:"red"}," * ")],-1)),rh=m(()=>t("td",null,"Account ID",-1)),_h=m(()=>t("td",null,"Comment",-1)),ch={colspan:"5"},ph={class:"part_out_button"},mh=m(()=>t("div",{class:"dialog_tilte",style:{margin:"-14px 0 10px 0"}}," Invoice Detail ",-1)),vh={key:0,class:"loading_desc"},gh={class:"dialog_procure_box",style:{"margin-top":"0px","flex-wrap":"wrap"}},hh=["onClick"],yh={class:"INVOICE_box"},bh=m(()=>t("div",{class:"INVOICE_box_left"},"INVOICE",-1)),fh={class:"INVOICE_box_right"},kh={class:"Relaxation"},xh={style:{"font-size":"29rpx"}},Ch={class:"Invoice_Detail_box2",style:{"margin-top":"12px"}},$h=m(()=>t("div",{class:"Name_box_box"},[t("div",{class:"Name_box"},"Bill To:"),t("div",{class:"Name_box"})],-1)),Vh={class:"Name_box_box"},Dh={class:"Name_box"},wh={key:0},Ih={key:1,class:"Name_box"},Uh={key:2,class:"Name_box"},Sh={class:"Name_box_box"},Ah={class:"Name_box"},Ph={key:0},Nh={key:1,class:"Name_box"},Th={class:"uni_table_box"},Eh={class:"createOrderobj_box"},Mh=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)),Bh={key:0},Yh=m(()=>t("td",null,null,-1)),Oh=m(()=>t("td",null,null,-1)),Fh=m(()=>t("td",null,null,-1)),zh=m(()=>t("td",null,"Subtotal:",-1)),Rh={key:1},jh=m(()=>t("td",null,null,-1)),Lh=m(()=>t("td",null,null,-1)),Qh=m(()=>t("td",null,null,-1)),Hh=m(()=>t("td",null,"HST:",-1)),Wh={key:2},qh=m(()=>t("td",null,null,-1)),Gh=m(()=>t("td",null,null,-1)),Zh=m(()=>t("td",null,null,-1)),Kh=m(()=>t("td",null,"Total:",-1)),Xh={key:0,class:"receive_message"},Jh={key:0,class:"file_box"},ey=["onClick"],ty={class:"Signature_box"},ly={class:"Paid_desc"},ny={class:"Paid_desc"},oy={class:"Paid_desc"},ay={class:"Signature"},sy={key:0,class:"line"},iy=["src"],dy=["onUpdate:modelValue"],uy={class:"part_out_button"},ry={class:"Email_box"},_y=m(()=>t("img",{class:"_attachment",src:an,alt:""},null,-1)),cy={class:"part_out_button"},py={style:{margin:"40px 0 10px 0"}},my={style:{"font-weight":"bold"}},vy={style:{"font-weight":"bold"}},gy={style:{margin:"10px 0 0px 0"}},hy={style:{"font-weight":"bold"}},yy={class:"part_out_button",style:{"margin-top":"60px"}},by={style:{margin:"10px 0 35px 0"}},fy={style:{"font-weight":"bold"}},ky=m(()=>t("div",{class:"Notes_title"},"Notes :",-1)),xy=m(()=>t("div",{class:"Notes_title"},"Enclosure :",-1)),Cy=["onClick"],$y={key:0,style:{width:"100%"}},Vy={class:"dialog_procure_box",style:{"margin-top":"0px"}},Dy=["onClick"],wy={key:0,class:"fieldset"},Iy=m(()=>t("legend",{class:"legend"},"Basic Info",-1)),Uy={class:"createOrderobj_box66"},Sy=m(()=>t("td",{width:"15%"},"Booking#:",-1)),Ay=m(()=>t("td",{width:"15%"},[t("div",{class:"EmailSensitive_box"},[r(" Date "),t("img",{class:"booking_date_icon",src:Jo,alt:""})])],-1)),Py=m(()=>t("td",{width:"15%"},"Therapist:",-1)),Ny=m(()=>t("td",{width:"15%"},[t("div",{class:"EmailSensitive_box"},[r(" Time "),t("img",{class:"booking_date_icon",src:ea,alt:""})])],-1)),Ty=m(()=>t("td",{width:"15%"},"Client Name:",-1)),Ey=m(()=>t("td",{width:"15%"},"Service:",-1)),My={style:{display:"flex","flex-wrap":"wrap","align-items":"center"}},By={key:0,style:{display:"flex","flex-wrap":"wrap","align-items":"center"}},Yy={key:0},Oy={key:0},Fy=m(()=>t("td",{width:"15%"},"Amount:",-1)),zy=m(()=>t("td",null,"Look for treatmemt:",-1)),Ry=m(()=>t("td",{width:"15%"},"Invoice therpist:",-1)),jy=m(()=>t("td",null,"Client Note:",-1)),Ly={colspan:"4"},Qy={class:"booking_button"},Hy={key:1,class:"fieldset"},Wy=m(()=>t("legend",{class:"legend"},"Operational Info",-1)),qy={class:"createOrderobj_box66"},Gy=m(()=>t("td",{width:"30%"},"CheckIn Time",-1)),Zy={key:0},Ky={key:0},Xy=m(()=>t("td",null,"Complete Time",-1)),Jy={key:0,class:""},eb={key:1},tb=m(()=>t("td",null,"Confirmed Time",-1)),lb={key:0,class:""},nb={key:2},ob=m(()=>t("td",null,"Customer Evalution",-1)),ab={key:3},sb=m(()=>t("td",null,"Deducation",-1)),ib={key:2,class:"fieldset"},db=m(()=>t("legend",{class:"legend"},"Notes",-1)),ub={class:"createOrderobj_box66"},rb=m(()=>t("tr",{class:"createOrderobj_box66_tr"},[t("td"),t("td",null,"Form"),t("td",null,"Img")],-1)),_b=m(()=>t("td",{width:"30%"},"Health Form",-1)),cb={width:"30%"},pb={class:"EmailSensitive_box"},mb={class:"EmailSensitive_box"},vb=m(()=>t("img",{class:"delclose_icon",src:ul,alt:""},null,-1)),gb={key:0},hb=m(()=>t("td",{width:"30%"},"First Informed Consent No Fill",-1)),yb={class:"EmailSensitive_box"},bb=m(()=>t("td",null,null,-1)),fb={key:1},kb=m(()=>t("td",{width:"30%"},"Informed 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%"},"Sensitive Consent",-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%"},"Ongoing",-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 Plan",-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",{width:"30%"},"Treatment Notes",-1)),Rb={class:"EmailSensitive_box"},jb={class:"EmailSensitive_box"},Lb=m(()=>t("img",{class:"delclose_icon",src:ul,alt:""},null,-1)),Qb={key:6},Hb=m(()=>t("td",null,"TCM",-1)),Wb={class:"EmailSensitive_box"},qb={class:"EmailSensitive_box"},Gb=m(()=>t("img",{class:"delclose_icon",src:ul,alt:""},null,-1)),Zb=m(()=>t("td",{width:"30%"},"Treatment",-1)),Kb={class:"EmailSensitive_box"},Xb={class:"EmailSensitive_box"},Jb=m(()=>t("img",{class:"delclose_icon",src:ul,alt:""},null,-1)),ef={key:0,class:"booking_button",style:{"margin-top":"10px"}},tf={key:1,class:"createOrderobj_box77_box"},lf={class:"createOrderobj_box77"},nf=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)),of={style:{"line-height":"24px"}},af={key:0,class:"EmailSensitive_box"},sf=["onClick"],df=["onClick"],uf={key:1,class:"EmailSensitive_box"},rf=["onClick"],_f=["onClick"],cf={key:2,class:"EmailSensitive_box"},pf=["onClick"],mf=["onClick"],vf={key:3,class:"EmailSensitive_box"},gf=["onClick"],hf=["onClick"],yf={key:4,class:"EmailSensitive_box"},bf=["onClick"],ff=["onClick"],kf={key:5,class:"EmailSensitive_box"},xf=["onClick"],Cf=["onClick"],$f={class:"EmailSensitive_box"},Vf=["onClick"],Df=["onClick"],wf={key:3,class:"fieldset"},If=m(()=>t("legend",{class:"legend"},"Invoices",-1)),Uf={class:"booking_button"},Sf={key:0,class:"booking_button",style:{margin:"-15px 0 6px 0"}},Af={key:1,class:"createOrderobj_box66"},Pf=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)),Nf=["onClick"],Tf={style:{display:"flex"}},Ef={key:4,class:"fieldset"},Mf=m(()=>t("legend",{class:"legend"},"Relation Booking",-1)),Bf={class:"createOrderobj_box66"},Yf=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)),Of=m(()=>t("div",{class:"dialog_tilte"},"Is this confirmed the Appointment ?",-1)),Ff={key:0},zf={key:1,class:"Invitation10"},Rf={key:2,class:"Invitation10"},jf={class:"part_out_button",style:{"margin-top":"80px"}},Lf=m(()=>t("div",{class:"dialog_tilte"},"Virtual Booking",-1)),Qf={class:"createOrderobj_box"},Hf=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)),Wf={width:"5%"},qf=m(()=>t("div",{class:"dialog_tilte"},"Sensitive Form Email",-1)),Gf={class:"treated_desc_box",style:{"flex-direction":"column","align-items":"flex-start","margin-top":"25px"}},Zf=m(()=>t("div",{class:"desc1",style:{margin:"30px 0 7px 0"}}," List Clinical Indication: ",-1)),Kf={class:"part_out_button"},Xf=m(()=>t("div",{class:"dialog_tilte"},"file list",-1)),Jf={style:{"margin-top":"25px"}},e2=["onClick"],t2=at({name:"/crm/yuyue/components/bookingDetail"}),l2=at({...t2,props:{str:{type:String,default:""},bookingorder_id:{type:String,default:""}},emits:["update:bookingDetailDialog1","update:onbKDetail"],setup(X,{emit:ve}){const P=X,ye=ue("small"),{searchDetail:z,btnSearchPart:Tt,loading:ge,small:ht,selectList:yt,columns:bt,checkList:pe,pagination:st,handleSizeChange:je,handleCurrentChange:it,PartList:Ue,deliverDialog:De,selectClick:F,deliverDataArr:We,btnDeliverConfirm:be,BookingInfoData:se,Terapist:I,get_table_box:Le,bookingDate:ft,serverDate:Qe,formArr:p,calendarData:It,loadDaysClander:Ye,onDay:Te,addBookingDialog:Ee,onAddBooking:le,addForm:U,goPrivacy:fe,PrivacyDialog:Me,ClientDialog:G,eventIsNum:ne,ClientData:qe,locationDialog:Oe,eventIsNumlocation:Y,locationData:te,onSelectLocation:x,onSelClient:ke,btnAddConfirm:Pe,serviceData:Ut,onHealthForm:Je,health_info:Q,infoData:dt,healthDialog:kt,btnHealthConfirm:jt,onCheckIn:Lt,addDuringDialog:xt,addDuringConfirm:Qt,onPaymant:we,onHealth:Ct,sandEmailDialog:$t,EmailArr:K,onSend:lt,onService:_t,onCancel:Ot,ClientDetail:He,BookingList:he,NoteList:L,onMore:xe,onRetract:Vt,onEmail:Ge,items:Zt,onDelete:et,onAddItem:ut,formDialog:Ze,Form1Edit:ze,planArr:Z,noteArr:oe,sensitivedArr:_,ougoingArr:g,isData:R,isData1:$,TimeData:Ce,DurationData:Dt,initialData:M,areasData1:me,usedData1:$e,receivedData1:v,treatedData:C,submitNoteForm:O,selectedTr:W,selectedTr1:Re,btnInitia:Se,coatingRequire:w,coatingRequire1:ct,coatingRequire2:ie,onTime:St,onDuration:Et,onReceived:rl,btnAddInvoice:ml,items1:zl,InvoiceType:El,during_price_array:Ml,onIs_tax:Cl,AddItem:Ht,onDeleteI:Ft,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:zt,openAutograph:Mt,disabledBeforeToday:wt,signalData:Pl,eventSignal:Kt,addServiceData:S,onServiceAdd:Ie,onArrowLeft:N,onArrowRight:Be,btnClinic:At,btnSearchService:pt,LicenceServeData:mt,btnAmount:Pt,btnAmount1:tt,CollectionDialog:h,btnCollection:re,CollectionData:c,bookingPaymentConfirm:_e,addCollectionDialog:B,AddCollect:vt,collectionArr:ce,btncollectionConfirm:dn,btnDelBooking:An,btnEdit:Pn,TherapistList1:Nn,emailData:Tn,InvoiceDetailDialog:jl,company_info:p8,customer_info:m8,info:v8,licenceDetail:g8,detailInfo:h8,invoiceData:Bl,onCancelEmail:En,sendEmail:Mn,sandEmailInvoiceDialog:Ll,noSend:Bn,btnShowNumber:un,InvoiceEmailSend:Yn,DeducationData:y8,selectedDeducation:b8,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:f8,addMessageData:Hn,onMessageData:Wn,btnIsSensitived:k8,btnIsInformed:x8,btnIsHealthForm:qn,onAppointComplete:Gn,btnBookingDetail:C8,bookingDetailDialog:$8,bookedArr:b,handleExceed:Wt,handleChangePic:qt,bookingImg:Xt,uploadSlotFile1:Jt,btnFormImgView:el,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:V8,handleDblClick:D8,visual_data:w8,virtualDialog:Zl,virtualArr:co,healthDialog1:I8,HealthArr:Ve,rashesBruise:U8,SensitiveDialog:Kl,SensitiveEmail:po,SendEmailSensitive:mo,GoaddTherapist:S8,GoaddService:A8,HealthEmail:P8,btnFillout:_n,detaiilMenu:vo,onDetaiilMenu:go,ServiceInvoice:cn,stulesShow:N8,btnStulesShow:T8,onDeleteService:ho,isleftShow:E8,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(P,ve);return al(()=>{}),(gt,s)=>{const tl=H("el-option"),ll=H("el-select"),q=H("el-button"),Bt=H("el-checkbox"),Ke=H("el-date-picker"),en=H("el-time-picker"),Ao=H("el-input-number"),Ne=H("el-dialog"),nt=H("el-table-column"),vn=H("el-table"),tn=H("el-switch"),Gt=H("el-upload"),Po=H("el-rate"),No=Zo("loading");return n(),o("div",y_,[d(Ne,{style:{width:"80%"},modelValue:e(Ee),"onUpdate:modelValue":s[18]||(s[18]=l=>T(Ee)?Ee.value=l:null),title:"",draggable:""},{default:u(()=>[e(U).booking_id==""?(n(),o("div",b_," Add Booking ")):i("",!0),e(U).booking_id?(n(),o("div",f_,"Edit Booking")):i("",!0),e(U).booking_id==""?(n(),o("div",k_," Therapist:"+a(e(U).Therapist_name),1)):i("",!0),e(p).type==2&&e(U).booking_id?(n(),o("div",x_,[r(" Therapist "),C_])):i("",!0),e(p).type==2&&e(U).booking_id?(n(),o("div",$_,[d(ll,{style:{width:"100%"},clearable:"true",modelValue:e(U).Therapist_id,"onUpdate:modelValue":s[0]||(s[0]=l=>e(U).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(),A(tl,{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_,[f(t("input",{disabled:"","onUpdate:modelValue":s[1]||(s[1]=l=>e(U).loacation_name_add=l),class:"input2",type:"text"},null,512),[[k,e(U).loacation_name_add]]),e(U).booking_id?(n(),A(q,{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(U).Client_name?(n(),A(q,{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(U).Client_name),1)]),A_,t("div",P_,[(n(!0),o(V,null,D(e(S),(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(Bt,{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(Ke,{disabled:e(U).booking_id=="",style:{width:"100%"},modelValue:e(U).date,"onUpdate:modelValue":s[5]||(s[5]=l=>e(U).date=l),type:"date",disabledDate:gt.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(U).service_times,"onUpdate:modelValue":s[6]||(s[6]=l=>e(U).service_times=l),"disabled-hours":gt.disabledHours,"disabled-minutes":gt.disabledMinutes,"disabled-seconds":gt.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(q,{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_,f(t("input",{style:{margin:"0 6px"},placeholder:"Please Add Duration","onUpdate:modelValue":s[8]||(s[8]=l=>e(U).During=l),class:"input",type:"text",onInput:s[9]||(s[9]=l=>e(Pt)(1))},null,544),[[k,e(U).During]]),r(" ( Min. ) "),R_,f(t("input",{placeholder:"Please enter","onUpdate:modelValue":s[10]||(s[10]=l=>e(U).amount=l),class:"input",type:"text"},null,512),[[k,e(U).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_,[f(t("textarea",{style:{height:"60px"},class:"textarea_input1",placeholder:"Please enter","onUpdate:modelValue":s[11]||(s[11]=l=>e(U).description=l),maxlength:"600"},null,512),[[k,e(U).description]])]),e(U).booking_id==""?(n(),o("div",W_,[d(Bt,{onChange:e(oo),modelValue:e(U).is_items,"onUpdate:modelValue":s[12]||(s[12]=l=>e(U).is_items=l),label:"Add multiple items",size:"large"},null,8,["onChange","modelValue"]),e(U).is_items?(n(),o("div",q_," Interval Days : ")):i("",!0),e(U).is_items?(n(),A(Ao,{key:1,controls:!0,onChange:e(so),modelValue:e(U).interval_days,"onUpdate:modelValue":s[13]||(s[13]=l=>e(U).interval_days=l),step:1},null,8,["onChange","modelValue"])):i("",!0),e(U).is_items?(n(),A(q,{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(U).is_items?(n(),o("div",G_,[t("table",Z_,[K_,(n(!0),o(V,null,D(e(Zt),(l,j)=>(n(),o("tr",{key:l.id},[t("td",null,[d(Ke,{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":gt.disabledHours,"disabled-minutes":gt.disabledMinutes,"disabled-seconds":gt.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,Nt)=>(n(),o("div",{style:{"font-size":"12px",width:"100px"},key:y.id},a(Nt+1)+" . "+a(y.begin_time)+" ~ "+a(y.end_time),1))),128))])):i("",!0)])]),t("td",null,[f(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,[f(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(q,{link:"",type:"danger",onClick:y=>e(et)(l)},{default:u(()=>[r("Delete")]),_:2},1032,["onClick"])])]))),128))]),d(q,{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(U).booking_id==""&&e(U).is_Auto==1?(n(),A(Bt,{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(q,{loading:e(ge),type:"primary",onClick:s[17]||(s[17]=l=>e(Pe)())},{default:u(()=>[r("Submit")]),_:1},8,["loading"])])]),_:1},8,["modelValue"]),d(Ne,{style:{width:"50%"},modelValue:e(Me),"onUpdate:modelValue":s[19]||(s[19]=l=>T(Me)?Me.value=l:null),title:"",draggable:""},{default:u(()=>[oc]),_:1},8,["modelValue"]),d(Ne,{style:{width:"78%"},modelValue:e(G),"onUpdate:modelValue":s[21]||(s[21]=l=>T(G)?G.value=l:null),title:"",draggable:""},{default:u(()=>[d(pl,{onEventIsNum:e(ne),str:1,ClientData:e(qe),ClientDialog:e(G),"onUpdate:ClientDialog":s[20]||(s[20]=l=>T(G)?G.value=l:null)},null,8,["onEventIsNum","ClientData","ClientDialog"])]),_:1},8,["modelValue"]),d(Ne,{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(te),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(Ne,{style:{width:"95%",padding:"0 40px"},modelValue:e(kt),"onUpdate:modelValue":s[38]||(s[38]=l=>T(kt)?kt.value=l:null),title:"",draggable:""},{default:u(()=>[ac,sc,t("table",ic,[t("tr",null,[dc,t("td",uc,[f(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(Ke,{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:ye.value},null,8,["disabled","modelValue","size"])])]),t("tr",null,[pc,t("td",null,[f(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(Ke,{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:ye.value},null,8,["disabled","modelValue","size"])])]),t("tr",null,[gc,t("td",null,[t("div",hc,[f(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,f(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,[f(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,[f(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,[f(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,[f(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,[f(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,[f(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,[f(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,Nt)=>(n(),o("div",{class:"",key:Nt},[y.type=="checkbox"?(n(),A(Bt,{key:0,disabled:e(p).is_health==2,checked:y.is_selected==1,label:y.title,size:"large",onChange:de=>e(Ct)(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),f(t("input",{disabled:e(p).is_health==2,type:"text","onUpdate:modelValue":de=>y.field_value=de,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),f(t("textarea",{disabled:e(p).is_health==2,class:"textarea_input",style:{width:"272px"},placeholder:"Please enter","onUpdate:modelValue":de=>y.field_value=de,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(Ke,{disabled:e(p).is_health==2,style:{width:"272px"},modelValue:y.field_value,"onUpdate:modelValue":de=>y.field_value=de,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,Nt)=>(n(),o("div",{class:"",key:Nt},[y.type=="checkbox"?(n(),A(Bt,{key:0,disabled:e(p).is_health==2,checked:y.is_selected==1,label:y.title,size:"large",onChange:de=>e(Ct)(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),f(t("input",{disabled:e(p).is_health==2,type:"text","onUpdate:modelValue":de=>y.field_value=de,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),f(t("textarea",{disabled:e(p).is_health==2,class:"textarea_input",style:{width:"97%"},placeholder:"Please enter","onUpdate:modelValue":de=>y.field_value=de,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(Ke,{disabled:e(p).is_health==2,style:{width:"272px"},modelValue:y.field_value,"onUpdate:modelValue":de=>y.field_value=de,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,Nt)=>(n(),o("div",{class:"",key:Nt},[y.type=="checkbox"?(n(),A(Bt,{key:0,disabled:e(p).is_health==2,checked:y.is_selected==1,label:y.title,size:"large",onChange:de=>e(Ct)(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),f(t("input",{disabled:e(p).is_health==2,type:"text","onUpdate:modelValue":de=>y.field_value=de,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),f(t("textarea",{disabled:e(p).is_health==2,class:"textarea_input",style:{width:"97%"},placeholder:"Please enter","onUpdate:modelValue":de=>y.field_value=de,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(Ke,{disabled:e(p).is_health==2,style:{width:"272px"},modelValue:y.field_value,"onUpdate:modelValue":de=>y.field_value=de,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(q,{loading:e(ge),type:"primary",onClick:s[37]||(s[37]=l=>e(jt)())},{default:u(()=>[r("Submit")]),_:1},8,["loading"])])):i("",!0)]),_:1},8,["modelValue"]),t("div",kp,[d(Ne,{style:{width:"30%"},modelValue:e(xt),"onUpdate:modelValue":s[41]||(s[41]=l=>T(xt)?xt.value=l:null),title:"",draggable:""},{default:u(()=>[t("div",xp,[r(" Service : "),t("span",Cp,a(e(K).bookingServers),1)]),t("div",$p,[Vp,e(K).is_health_form==1?(n(),A(q,{key:0,size:"small",plain:"",type:"success",style:{width:"54px"}},{default:u(()=>[r("Ok")]),_:1})):i("",!0),e(K).is_health_form==0?(n(),A(q,{key:1,size:"small",plain:"",type:"warning",onClick:s[39]||(s[39]=l=>e(qn)())},{default:u(()=>[r("Fill In")]),_:1})):i("",!0)]),e(K).bookingServers&&e(K).bookingServers.includes("Massage")?(n(),o("div",Dp)):i("",!0),e(K).bookingServers&&e(K).bookingServers.includes("Massage")?(n(),o("div",wp)):i("",!0),t("div",Ip,[d(q,{type:"primary",onClick:s[40]||(s[40]=l=>e(Qt)())},{default:u(()=>[r("Submit")]),_:1})])]),_:1},8,["modelValue"])]),t("div",Up,[d(Ne,{style:{width:"78%"},modelValue:e($t),"onUpdate:modelValue":s[47]||(s[47]=l=>T($t)?$t.value=l:null),title:"",draggable:""},{default:u(()=>[e(K).is_booking==1?(n(),o("div",Sp," Booking success ")):i("",!0),e(K).is_booking==2?(n(),o("div",Ap," Send "+a(e(K).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(K).booking_notice_type&&e(K).booking_notice_type.includes("email")?(n(),o("div",Tp," Email to : "+a(e(K).email_to),1)):i("",!0),e(K).booking_notice_type&&e(K).booking_notice_type.includes("message")?(n(),o("div",Ep," SMS to : "+a(e(K).phone_to),1)):i("",!0),t("div",Mp,a(e(K).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))]),e(K).email_type==""||e(K).email_type=="health"?(n(),o("div",Op,[e(K).email_type==""?(n(),A(Bt,{key:0,modelValue:e(K).email_health,"onUpdate:modelValue":s[42]||(s[42]=l=>e(K).email_health=l),label:"",size:"large"},null,8,["modelValue"])):i("",!0),r(" Health History : "+a(e(K).health_form_url),1)])):i("",!0),e(K).bookingServers&&e(K).bookingServers.includes("Massage")&&(e(K).email_type=="informed"||e(K).email_type=="")?(n(),o("div",Fp,[e(K).email_type==""?(n(),A(Bt,{key:0,modelValue:e(K).email_informed,"onUpdate:modelValue":s[43]||(s[43]=l=>e(K).email_informed=l),label:"",size:"large"},null,8,["modelValue"])):i("",!0),r(" Informed consent : "+a(e(K).informed_content_url),1)])):i("",!0),e(K).bookingServers&&e(K).bookingServers.includes("Massage")&&(e(K).email_type=="informed_first"||e(K).email_type=="")?(n(),o("div",zp,[e(K).email_type==""?(n(),A(Bt,{key:0,modelValue:e(K).email_informed,"onUpdate:modelValue":s[44]||(s[44]=l=>e(K).email_informed=l),label:"",size:"large"},null,8,["modelValue"])):i("",!0),r(" Informed consent : "+a(e(K).informed_content_first_url),1)])):i("",!0),Rp,t("div",jp,[d(q,{type:"info",plain:"",onClick:s[45]||(s[45]=l=>e(Ot)())},{default:u(()=>[r("nosend")]),_:1}),d(q,{loading:e(ge),type:"primary",onClick:s[46]||(s[46]=l=>e(lt)())},{default:u(()=>[r("Send Booking Email")]),_:1},8,["loading"])])]),_:1},8,["modelValue"])]),d(Ne,{modelValue:e(De),"onUpdate:modelValue":s[48]||(s[48]=l=>T(De)?De.value=l:null),title:"",draggable:""},{default:u(()=>[Lp,t("fieldset",Qp,[Hp,d(vn,{border:"",data:e(he),height:"250",style:{width:"100%"}},{default:u(()=>[d(nt,{type:"index",width:"60"}),d(nt,{prop:"booking_order_no",label:"Order#"}),d(nt,{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(nt,{prop:"Therapists_name",label:"Therapist"}),d(nt,{prop:"room",label:"Room"}),d(nt,{prop:"1111111111111",label:"Date"},{default:u(l=>[r(a(l.row.create_time.substring(0,10)),1)]),_:1}),d(nt,{prop:"begin_time",label:"Begin time"}),d(nt,{prop:"session",label:"Session"})]),_:1},8,["data"])]),t("fieldset",Wp,[qp,d(vn,{border:"",data:e(L),height:"250",style:{width:"100%"}},{default:u(()=>[d(nt,{type:"index",width:"60"}),d(nt,{prop:"ServiceContent",label:"Service Content"}),d(nt,{prop:"Therapists_name",label:"Therapist"}),d(nt,{prop:"company_name",label:"Clinic Name"}),d(nt,{prop:"Comment",label:"Treatment Date"},{default:u(l=>[r(a(l.row.create_time.substring(0,10)),1)]),_:1}),d(nt,{prop:"Comment",label:"Start Time"},{default:u(l=>[r(a(l.row.begin_time.substring(0,8)),1)]),_:1}),d(nt,{prop:"spend_tims",label:"Duration"}),d(nt,{prop:"comment",label:"Comment"})]),_:1},8,["data"])])]),_:1},8,["modelValue"]),d(Ne,{style:{width:"70%"},modelValue:e(Ze),"onUpdate:modelValue":s[103]||(s[103]=l=>T(Ze)?Ze.value=l:null),title:"",draggable:""},{default:u(()=>[e(p).form_type=="informed"?(n(),o("div",Gp,[Zp,t("div",Kp,[Xp,Jp,em,tm,lm,nm,om,am,sm,t("div",im,[dm,d(Ke,{disabled:e(p).is_form_edit==2,modelValue:e(p).time,"onUpdate:modelValue":s[49]||(s[49]=l=>e(p).time=l),type:"date",format:"YYYY-MM-DD","value-format":"YYYY-MM-DD",placeholder:"Please select",disabledDate:e(wt),size:ye.value},null,8,["disabled","modelValue","disabledDate","size"])]),t("div",um,[rm,f(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[50]||(s[50]=l=>e(p).signal_desc1=l)},null,10,_m),[[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,cm)):i("",!0),t("div",{class:E([{opacity:e(p).is_form_edit==2},"Manualsignature"]),onClick:s[51]||(s[51]=l=>e(Mt)("informed","signal_url1"))}," signature ",2)]),t("div",pm,[mm,f(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[52]||(s[52]=l=>e(p).signal_desc2=l)},null,10,vm),[[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,gm)):i("",!0),t("div",{class:E([{opacity:e(p).is_form_edit==2},"Manualsignature"]),onClick:s[53]||(s[53]=l=>e(Mt)("informed","signal_url2"))}," signature ",2)])])])):i("",!0),e(p).form_type=="treatment_plan"?(n(),o("div",hm,[ym,f(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[54]||(s[54]=l=>e(Z).plan=l),maxlength:"600"},null,10,bm),[[k,e(Z).plan]]),t("div",fm,[km,d(Ke,{disabled:e(p).is_form_edit==2,modelValue:e(Z).date,"onUpdate:modelValue":s[55]||(s[55]=l=>e(Z).date=l),type:"date",format:"YYYY-MM-DD","value-format":"YYYY-MM-DD",placeholder:"Please select",disabledDate:e(wt),size:ye.value},null,8,["disabled","modelValue","disabledDate","size"])]),xm,f(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).daily_living=l),maxlength:"600"},null,10,Cm),[[k,e(Z).daily_living]]),$m,t("div",Vm,[(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,Dm),r(" "+a(l.text),1)]))),128))]),wm,f(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).treatment_goal=l),maxlength:"600"},null,10,Im),[[k,e(Z).treatment_goal]]),Um,t("div",Sm,[(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,Am),r(" "+a(l.text),1)]))),128))]),Pm,f(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).focus_treatment=l),maxlength:"600"},null,10,Nm),[[k,e(Z).focus_treatment]]),Tm,f(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).frequency=l),maxlength:"600"},null,10,Em),[[k,e(Z).frequency]]),Mm,f(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).duration=l),maxlength:"600"},null,10,Bm),[[k,e(Z).duration]]),Ym,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,Om),l.id==13&&l.is_selected==1?f((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,Fm)),[[k,l.input]]):i("",!0)]))),128))],2),zm,f(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).performed=l),maxlength:"600"},null,10,Rm),[[k,e(Z).performed]]),jm,f(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).assessments=l),maxlength:"600"},null,10,Lm),[[k,e(Z).assessments]]),Qm,f(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).schedule=l),maxlength:"600"},null,10,Hm),[[k,e(Z).schedule]]),Wm,f(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).responses=l),maxlength:"600"},null,10,qm),[[k,e(Z).responses]]),Gm,f(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(Z).hydrotherapy=l),maxlength:"600"},null,10,Zm),[[k,e(Z).hydrotherapy]]),Km,f(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[66]||(s[66]=l=>e(Z).contraindications=l),maxlength:"600"},null,10,Xm),[[k,e(Z).contraindications]]),Jm,f(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[67]||(s[67]=l=>e(Z).referrals=l),maxlength:"600"},null,10,e1),[[k,e(Z).referrals]]),t1])):i("",!0),e(p).form_type=="treatment_note"?(n(),o("div",l1,[n1,f(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[68]||(s[68]=l=>e(oe).notes=l),maxlength:"600"},null,10,o1),[[k,e(oe).notes]]),t("div",a1,[s1,d(Ke,{disabled:e(p).is_form_edit==2,modelValue:e(oe).date,"onUpdate:modelValue":s[69]||(s[69]=l=>e(oe).date=l),type:"date",format:"YYYY-MM-DD","value-format":"YYYY-MM-DD",placeholder:"Please select",disabledDate:e(wt),style:{width:"180px"}},null,8,["disabled","modelValue","disabledDate"])]),t("div",i1,[d1,d(en,{class:E({opacity:e(p).is_form_edit==2}),disabled:e(p).is_form_edit==2,style:{width:"180px"},modelValue:e(oe).time,"onUpdate:modelValue":s[70]||(s[70]=l=>e(oe).time=l),"disabled-hours":gt.disabledHours,"disabled-minutes":gt.disabledMinutes,"disabled-seconds":gt.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(oe).timeType==l.value}]),onClick:y=>e(St)(l,j)},[t("div",{class:E(["selected_min",{selected_min_active:l.is_selected==1||e(oe).timeType==l.value}])},null,2)],10,u1),r(" "+a(l.text),1)]))),128))],2)]),t("div",r1,[_1,f(t("input",{class:E([{opacity:e(p).is_form_edit==2},"input"]),disabled:e(p).is_form_edit==2,type:"text","onUpdate:modelValue":s[71]||(s[71]=l=>e(oe).duration=l),style:{margin:"0 20px 0 0"}},null,10,c1),[[k,e(oe).duration]]),r(" (Min) ")]),t("div",p1,[m1,f(t("input",{class:E([{opacity:e(p).is_form_edit==2},"input"]),disabled:e(p).is_form_edit==2,type:"text","onUpdate:modelValue":s[72]||(s[72]=l=>e(oe).fee=l)},null,10,v1),[[k,e(oe).fee]]),g1]),h1,t("div",y1,[(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(oe).receivedType==l.value}]),onClick:y=>e(rl)(l,j)},[t("div",{class:E(["selected_min",{selected_min_active:l.is_selected==1||e(oe).receivedType==l.value}])},null,2)],10,b1),r(" "+a(l.text),1)]))),128))]),t("div",f1,[k1,f(t("input",{class:E([{opacity:e(p).is_form_edit==2},"input1"]),disabled:e(p).is_form_edit==2,type:"text","onUpdate:modelValue":s[73]||(s[73]=l=>e(oe).assessment=l)},null,10,x1),[[k,e(oe).assessment]])]),t("div",C1,[$1,f(t("input",{type:"text",disabled:"",class:"input1","onUpdate:modelValue":s[74]||(s[74]=l=>e(oe).therapist=l)},null,512),[[k,e(oe).therapist]])]),V1,f(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(oe).client_goal=l),maxlength:"600"},null,10,D1),[[k,e(oe).client_goal]]),w1,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(ie)(l),class:E([{treated_active:l.is_selected==1},"treated_desc"])},a(l.name),11,I1),(l.id==9||l.id==10)&&l.is_selected==1?f((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,U1)),[[k,l.input]]):i("",!0)]))),128))],2),S1,t("div",{class:E(["treated_desc_box",{opacity:e(p).is_form_edit==2}])},[(n(!0),o(V,null,D(e(me),(l,j)=>(n(),o("div",{class:"usedData1_box",key:l.id},[t("div",{onClick:y=>e(ct)(l),class:E([{treated_active:l.is_selected==1},"treated_desc"])},a(l.name),11,A1),l.id==13&&l.is_selected==1?f((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,P1)),[[k,l.input]]):i("",!0)]))),128))],2),N1,f(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[76]||(s[76]=l=>e(oe).findings=l),maxlength:"600"},null,10,T1),[[k,e(oe).findings]]),E1,f(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[77]||(s[77]=l=>e(oe).feedback=l),maxlength:"600"},null,10,M1),[[k,e(oe).feedback]]),B1,f(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(oe).self_care=l),maxlength:"600"},null,10,Y1),[[k,e(oe).self_care]])])):i("",!0),e(p).form_type=="sensitived"?(n(),o("div",O1,[F1,t("div",z1,[f(t("input",{class:E([{opacity:e(p).is_form_edit==2},"input"]),disabled:e(p).is_form_edit==2,type:"text","onUpdate:modelValue":s[79]||(s[79]=l=>e(_).name=l)},null,10,R1),[[k,e(_).name]]),r(" (name), have requested assessment and/or treatment by this Registered Massage Therapist(RMT) "),f(t("input",{class:E([{opacity:e(p).is_form_edit==2},"input"]),disabled:e(p).is_form_edit==2,type:"text","onUpdate:modelValue":s[80]||(s[80]=l=>e(_).name1=l)},null,10,j1),[[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(Bt,{disabled:"",checked:l.is_selected==1,label:l.name,size:"large",onChange:y=>e(Se)(y,l)},null,8,["checked","label","onChange"]),l.is_selected?(n(),o("div",L1,[Q1,f(t("input",{disabled:"",class:"Signature_input",type:"text",placeholder:"Please enter","onUpdate:modelValue":y=>l.signal_desc=y},null,8,H1),[[k,l.signal_desc]]),l.signal_url1?(n(),o("img",{key:0,class:"signal_url_box",src:l.signal_url1,alt:""},null,8,W1)):i("",!0)])):i("",!0)]))),128))],2),q1,f(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[81]||(s[81]=l=>e(_).indication=l),maxlength:"600"},null,10,G1),[[k,e(_).indication]]),Z1,K1,X1,J1,ev,tv,lv,nv,ov,f(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[82]||(s[82]=l=>e(_).client_name=l),maxlength:"600"},null,10,av),[[k,e(_).client_name]]),t("div",sv,[iv,d(Ke,{disabled:e(p).is_form_edit==2,modelValue:e(_).date,"onUpdate:modelValue":s[83]||(s[83]=l=>e(_).date=l),type:"date",format:"YYYY-MM-DD","value-format":"YYYY-MM-DD",placeholder:"Please select",disabledDate:e(wt),size:ye.value},null,8,["disabled","modelValue","disabledDate","size"])]),t("div",dv,[uv,f(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).sensitived_desc=l)},null,10,rv),[[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,_v)):i("",!0),t("div",{class:E([{opacity:e(p).is_form_edit==2},"Manualsignature"]),onClick:s[85]||(s[85]=l=>e(Mt)("sensitived","signal_url1"))}," signature ",2)])])):i("",!0),e(p).form_type=="ougoing"?(n(),o("div",cv,[pv,mv,t("div",vv,[t("div",gv,[hv,d(Ke,{disabled:e(p).is_form_edit==2,modelValue:e(g).date1,"onUpdate:modelValue":s[86]||(s[86]=l=>e(g).date1=l),type:"date",format:"YYYY-MM-DD","value-format":"YYYY-MM-DD",disabledDate:e(wt),placeholder:"Please select",size:ye.value},null,8,["disabled","modelValue","disabledDate","size"])]),t("div",yv,[bv,f(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_desc1=l)},null,10,fv),[[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,kv)):i("",!0),t("div",{class:E([{opacity:e(p).is_form_edit==2},"Manualsignature"]),onClick:s[88]||(s[88]=l=>e(Mt)("ougoing","signal_url2"))}," signature ",2)])]),t("div",xv,[t("div",Cv,[$v,d(Ke,{disabled:e(p).is_form_edit==2,modelValue:e(g).date2,"onUpdate:modelValue":s[89]||(s[89]=l=>e(g).date2=l),type:"date",format:"YYYY-MM-DD","value-format":"YYYY-MM-DD",placeholder:"Please select",disabledDate:e(wt),size:ye.value},null,8,["disabled","modelValue","disabledDate","size"])]),t("div",Vv,[Dv,f(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_desc2=l)},null,10,wv),[[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,Iv)):i("",!0),t("div",{class:E([{opacity:e(p).is_form_edit==2},"Manualsignature"]),onClick:s[91]||(s[91]=l=>e(Mt)("ougoing","signal_url3"))}," signature ",2)])]),t("div",Uv,[t("div",Sv,[Av,d(Ke,{disabled:e(p).is_form_edit==2,modelValue:e(g).date3,"onUpdate:modelValue":s[92]||(s[92]=l=>e(g).date3=l),type:"date",format:"YYYY-MM-DD","value-format":"YYYY-MM-DD",placeholder:"Please select",disabledDate:e(wt),size:ye.value},null,8,["disabled","modelValue","disabledDate","size"])]),t("div",Pv,[Nv,f(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_desc3=l)},null,10,Tv),[[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,Ev)):i("",!0),t("div",{class:E([{opacity:e(p).is_form_edit==2},"Manualsignature"]),onClick:s[94]||(s[94]=l=>e(Mt)("ougoing","signal_url4"))}," signature ",2)])]),t("div",Mv,[t("div",Bv,[Yv,d(Ke,{disabled:e(p).is_form_edit==2,modelValue:e(g).date4,"onUpdate:modelValue":s[95]||(s[95]=l=>e(g).date4=l),type:"date",format:"YYYY-MM-DD","value-format":"YYYY-MM-DD",placeholder:"Please select",disabledDate:e(wt),size:ye.value},null,8,["disabled","modelValue","disabledDate","size"])]),t("div",Ov,[Fv,f(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_desc4=l)},null,10,zv),[[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,Rv)):i("",!0),t("div",{class:E([{opacity:e(p).is_form_edit==2},"Manualsignature"]),onClick:s[97]||(s[97]=l=>e(Mt)("ougoing","signal_url5"))}," signature ",2)])]),t("div",jv,[t("div",Lv,[Qv,d(Ke,{disabled:e(p).is_form_edit==2,modelValue:e(g).date5,"onUpdate:modelValue":s[98]||(s[98]=l=>e(g).date5=l),type:"date",format:"YYYY-MM-DD","value-format":"YYYY-MM-DD",placeholder:"Please select",disabledDate:e(wt),size:ye.value},null,8,["disabled","modelValue","disabledDate","size"])]),t("div",Hv,[Wv,f(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[99]||(s[99]=l=>e(p).ougoing_desc5=l)},null,10,qv),[[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,Gv)):i("",!0),t("div",{class:E([{opacity:e(p).is_form_edit==2},"Manualsignature"]),onClick:s[100]||(s[100]=l=>e(Mt)("ougoing","signal_url6"))}," signature ",2)])])])):i("",!0),e(p).form_type=="treatment"?(n(),o("div",Zv,[Kv,f(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[101]||(s[101]=l=>e(p).treatment_description=l),maxlength:"600"},null,10,Xv),[[k,e(p).treatment_description]])])):i("",!0),e(p).is_form_edit==1?(n(),o("div",Jv,[d(q,{loading:e(ge),type:"primary",onClick:s[102]||(s[102]=l=>e(O)(1))},{default:u(()=>[r("Submit")]),_:1},8,["loading"])])):i("",!0)]),_:1},8,["modelValue"]),d(Ne,{style:{width:"90%"},modelValue:e(_l),"onUpdate:modelValue":s[115]||(s[115]=l=>T(_l)?_l.value=l:null),title:"",draggable:""},{default:u(()=>[eg,t("table",tg,[t("tr",null,[lg,t("td",null,[d(ll,{style:{width:"180px"},clearable:"true",modelValue:e(U).invoice_type,"onUpdate:modelValue":s[104]||(s[104]=l=>e(U).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(),A(tl,{key:l.value,label:l.text,value:l.value},null,8,["label","value"]))),128))]),_:1},8,["modelValue"])])]),e(p).type==1?(n(),o("tr",ng,[og,t("td",null,[f(t("input",{disabled:"","onUpdate:modelValue":s[105]||(s[105]=l=>e(U).loacation_name1=l),class:"input",type:"text"},null,512),[[k,e(U).loacation_name1]])])])):i("",!0),t("tr",null,[ag,t("td",null,[f(t("input",{"onUpdate:modelValue":s[106]||(s[106]=l=>e(U).Client_name1=l),disabled:"",class:"input",type:"text"},null,512),[[k,e(U).Client_name1]])])]),e(p).type==2?(n(),o("tr",sg,[ig,t("td",null,[t("div",dg,[f(t("input",{disabled:"","onUpdate:modelValue":s[107]||(s[107]=l=>e(U).invoiceTherapist_name=l),class:"input",type:"text"},null,512),[[k,e(U).invoiceTherapist_name]]),e(b).clients.has_licence==0?(n(),o("div",ug," Switch Licence Therapist : ")):i("",!0),e(b).clients.has_licence==0?(n(),A(ll,{key:1,style:{width:"180px"},clearable:"true",modelValue:e(U).has_therapistlicence,"onUpdate:modelValue":s[108]||(s[108]=l=>e(U).has_therapistlicence=l),onChange:s[109]||(s[109]=l=>e(yo)(l,gt.item)),placeholder:"Please select"},{default:u(()=>[(n(!0),o(V,null,D(e(b).clients.can_licence_therapist,l=>(n(),A(tl,{key:l.id,label:l.user_name,value:l.id},null,8,["label","value"]))),128))]),_:1},8,["modelValue"])):i("",!0),e(b).clients.has_licence==0?(n(),A(q,{key:2,type:"primary",style:{"margin-left":"16px"},plain:"",size:"small",onClick:s[110]||(s[110]=l=>e(bo)())},{default:u(()=>[r(" Confirm ")]),_:1})):i("",!0)])])])):i("",!0),t("tr",null,[t("td",null,[t("div",rg,[r(" Service"),_g,t("img",{onClick:s[111]||(s[111]=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",cg,[t("table",pg,[t("tr",null,[mg,t("td",null,a(l.invoice_number),1)]),t("tr",null,[vg,t("td",null,[e(U).invoice_type!="outside"?(n(),A(ll,{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(mt),y=>(n(),A(tl,{key:y.value,label:y.value,value:y.value},null,8,["label","value"]))),128))]),_:2},1032,["modelValue","onUpdate:modelValue","onChange"])):i("",!0),e(U).invoice_type=="outside"?f((n(),o("input",{key:1,placeholder:"Please enter","onUpdate:modelValue":y=>l.description_outside=y,class:"input",type:"text"},null,8,gg)),[[k,l.description_outside]]):i("",!0)])]),e(U).invoice_type=="third_Pay"||e(U).invoice_type=="gift"?(n(),o("tr",hg,[yg,t("td",null,[f(t("textarea",{class:"textarea_input",placeholder:"Please enter","onUpdate:modelValue":y=>l.receive_message=y,maxlength:"600"},null,8,bg),[[k,l.receive_message]])])])):i("",!0),t("tr",null,[fg,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",kg,"Include Tax ")):i("",!0),l.is_tax?(n(),A(ll,{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(),A(tl,{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,[xg,t("td",null,[(n(!0),o(V,null,D(l.service_detail,(y,Nt)=>(n(),o("div",{key:y.id,class:"items_box"},[t("div",Cg," Booking#:"+a(y.booking_no),1),$g,d(Ke,{disabled:"",style:{width:"180px"},modelValue:y.treatment_date,"onUpdate:modelValue":de=>y.treatment_date=de,type:"date","value-format":"YYYY-MM-DD",placeholder:"Please select"},null,8,["modelValue","onUpdate:modelValue"]),Vg,d(ll,{style:{width:"180px"},clearable:"true",modelValue:y.spend_time,"onUpdate:modelValue":de=>y.spend_time=de,filterable:"","allow-create":"","default-first-option":"","reserve-keyword":!1,placeholder:"Please select",onChange:de=>e(Il)(de,l,y)},{default:u(()=>[(n(!0),o(V,null,D(y.during_price_json,(de,M8)=>(n(),A(tl,{key:de.value,label:de.text,value:de.value},null,8,["label","value"]))),128))]),_:2},1032,["modelValue","onUpdate:modelValue","onChange"]),e(U).invoice_type!="gift"?(n(),o("div",Dg," Price: ")):i("",!0),e(U).invoice_type!="gift"?f((n(),o("input",{key:1,style:{width:"100px"},"onUpdate:modelValue":de=>y.price=de,type:"text",class:"input",onInput:de=>e(Vl)(l)},null,40,wg)),[[k,y.price]]):i("",!0),e(U).invoice_type!="gift"?(n(),o("span",Ig,"($)")):i("",!0),Nt>0?(n(),A(q,{key:3,link:"",type:"danger",onClick:de=>e(Ft)(l,y),style:{"margin-left":"20px"}},{default:u(()=>[r("Delete")]),_:2},1032,["onClick"])):i("",!0)]))),128)),t("div",Ug,[Sg,e(U).invoice_type!="gift"?(n(),o("div",Ag,[l.is_tax?(n(),o("span",Pg,"HST:"+a(l.hstValue),1)):i("",!0),t("span",Ng,"Total:"+a(l.total),1)])):i("",!0)])])])]),t("div",Tg,[t("div",Eg," Name:"+a(l.licence_name?l.licence_name:""),1),t("div",Mg,a(l.licence_description?l.licence_description:""),1),t("div",Bg,a(l.licence_title?l.licence_title:"")+": "+a(l.licence_number?l.licence_number:""),1)])]),e(cn).length>1?(n(),A(q,{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,[Yg,t("td",Og,[d(Gt,{ref:"upload",class:"avatar_uploader",action:e(Ol),"on-exceed":e(Wt),"on-success":e(Vo),"on-error":gt.handleUploadError,"on-change":e(qt)},{default:u(()=>[d(q,{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(U).files1,(l,j)=>(n(),o("div",{class:"files1_desc",key:j},a(l),1))),128))])])]),e(U).loacation_name1?(n(),o("div",Fg,[t("div",zg,[r(" Signature: "),f(t("input",{placeholder:"Please enter","onUpdate:modelValue":s[112]||(s[112]=l=>e(U).signal_desc=l),class:"Signature_input",type:"text"},null,512),[[k,e(U).signal_desc]]),t("div",Rg,[e(U).signal_image5?(n(),o("img",{key:0,class:"signal_url_box8",src:e(U).signal_image5,alt:""},null,8,jg)):i("",!0)]),t("div",{class:"Manualsignature",onClick:s[113]||(s[113]=l=>e(Ln)())}," signature ")])])):i("",!0),e(U).loacation_name1?(n(),o("div",Lg,[d(q,{type:"primary",onClick:s[114]||(s[114]=l=>e(wl)())},{default:u(()=>[r("Submit")]),_:1})])):i("",!0)]),_:1},8,["modelValue"]),d(Ne,{style:{width:"1000px","max-height":"100%"},modelValue:e(zt),"onUpdate:modelValue":s[118]||(s[118]=l=>T(zt)?zt.value=l:null),title:"",draggable:""},{default:u(()=>[d(on,{onEventSignal:e(Kt),signalData:e(Pl),signalUrl:e(ql),"onUpdate:signalUrl":s[116]||(s[116]=l=>T(ql)?ql.value=l:null),autographDialog:e(zt),"onUpdate:autographDialog":s[117]||(s[117]=l=>T(zt)?zt.value=l:null)},null,8,["onEventSignal","signalData","signalUrl","autographDialog"])]),_:1},8,["modelValue"]),d(Ne,{style:{width:"60%"},modelValue:e(h),"onUpdate:modelValue":s[121]||(s[121]=l=>T(h)?h.value=l:null),title:"",draggable:""},{default:u(()=>[t("div",null,"Invoice Number : "+a(e(U).Invoice_Charge_Number),1),t("div",Qg," Customer Name : "+a(e(U).Customer_Name),1),t("div",Hg," Invoice Total Charge : "+a(e(U).Invoice_Total_Charge)+" $ ",1),t("div",Wg," Has Paid Amount : "+a(e(U).Has_Paid_Amount)+" $ ",1),t("div",qg," Need Charge Amount : "+a(e(U).Need_Charge_Amount)+" $ ",1),Gg,e(c).length>0?(n(),o("table",Zg,[Kg,(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,[f(t("input",{"onUpdate:modelValue":y=>l.paid_amount=y,class:"input",type:"text"},null,8,Xg),[[k,l.paid_amount]]),r(" $ ")])]))),128))])):i("",!0),e(c).length>0?(n(),o("div",Jg,[d(q,{type:"primary",onClick:s[119]||(s[119]=l=>e(_e)())},{default:u(()=>[r("Submit")]),_:1})])):i("",!0),e(c).length==0?(n(),o("div",eh,"No Data")):i("",!0),t("div",th,[r(" The balance is insufficient,please pay "),d(q,{link:"",type:"primary",style:{"margin-left":"8px"},onClick:s[120]||(s[120]=l=>e(vt)())},{default:u(()=>[r("Payment")]),_:1})])]),_:1},8,["modelValue"]),d(Ne,{style:{width:"50%"},modelValue:e(B),"onUpdate:modelValue":s[131]||(s[131]=l=>T(B)?B.value=l:null),title:""},{default:u(()=>[lh,t("table",nh,[t("tr",null,[oh,t("td",null,[f(t("input",{disabled:"",class:"input2","onUpdate:modelValue":s[122]||(s[122]=l=>e(U).Customer_Name=l),type:"text"},null,512),[[k,e(U).Customer_Name]])])]),t("tr",null,[ah,t("td",null,[f(t("input",{"onUpdate:modelValue":s[123]||(s[123]=l=>e(ce).pay_amount=l),class:"input2",type:"text"},null,512),[[k,e(ce).pay_amount]])])]),t("tr",null,[sh,t("td",null,[d(Ke,{style:{width:"272px"},modelValue:e(ce).time,"onUpdate:modelValue":s[124]||(s[124]=l=>e(ce).time=l),type:"date","value-format":"YYYY-MM-DD",placeholder:"Please select"},null,8,["modelValue"])])]),t("tr",null,[ih,t("td",null,[d(ll,{clearable:"true",style:{width:"272px",margin:"0 10px 0 0"},modelValue:e(ce).pay_method,"onUpdate:modelValue":s[125]||(s[125]=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(),A(tl,{key:l.id,label:l.text,value:l.value},null,8,["label","value"]))),128))]),_:1},8,["modelValue"]),e(ce).pay_method=="Other"?f((n(),o("input",{key:0,"onUpdate:modelValue":s[126]||(s[126]=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",dh,[uh,t("td",null,[f(t("input",{"onUpdate:modelValue":s[127]||(s[127]=l=>e(ce).cheque_number=l),class:"input2",type:"text"},null,512),[[k,e(ce).cheque_number]])])])):i("",!0),t("tr",null,[rh,t("td",null,[d(ll,{clearable:"true",style:{width:"272px",margin:"0 10px 0 0"},modelValue:e(ce).account_id,"onUpdate:modelValue":s[128]||(s[128]=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(),A(tl,{key:l.id,label:l.text,value:l.value},null,8,["label","value"]))),128))]),_:1},8,["modelValue"])])]),t("tr",null,[_h,t("td",ch,[f(t("textarea",{class:"textarea_input",placeholder:"Please enter","onUpdate:modelValue":s[129]||(s[129]=l=>e(ce).content=l),maxlength:"600"},null,512),[[k,e(ce).content]])])])]),t("div",ph,[d(q,{loading:e(ge),type:"primary",onClick:s[130]||(s[130]=l=>e(dn)())},{default:u(()=>[r("Submit")]),_:1},8,["loading"])])]),_:1},8,["modelValue"]),d(Ne,{style:{width:"1000px","max-height":"85%"},modelValue:e(jl),"onUpdate:modelValue":s[135]||(s[135]=l=>T(jl)?jl.value=l:null),title:"",draggable:""},{default:u(()=>[mh,e(Bl).length==0?(n(),o("div",vh,"Loading...")):i("",!0),t("div",gh,[(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,hh))),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",yh,[bh,t("div",fh,[t("div",kh,a(l.company_info.title),1),t("div",xh,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",Ch,[$h,t("div",Vh,[t("div",Dh,"Name:"+a(l.customer_info.show1),1),j>0?(n(),o("div",wh)):i("",!0),e(z).show_number?(n(),o("div",Ih," Invoice Number:"+a(l.info.invoice_number),1)):i("",!0),e(z).show_number?i("",!0):(n(),o("div",Uh," Invoice Date:"+a(l.info.invoice_date),1))]),t("div",Sh,[t("div",Ah,"Address:"+a(l.customer_info.show2),1),j>0?(n(),o("div",Ph)):i("",!0),e(z).show_number?(n(),o("div",Nh," Invoice Date:"+a(l.info.invoice_date),1)):i("",!0)]),t("div",Th,[t("table",Eh,[Mh,(n(!0),o(V,null,D(l.detail,(y,Nt)=>(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",Bh,[Yh,Oh,Fh,zh,t("td",null,a(l.info.total_price),1)])):i("",!0),l.info.total_amount>0?(n(),o("tr",Rh,[jh,Lh,Qh,Hh,t("td",null,a(l.info.tax_amount),1)])):i("",!0),l.info.total_amount>0?(n(),o("tr",Wh,[qh,Gh,Zh,Kh,t("td",null,a(l.info.total_amount),1)])):i("",!0)])]),l.info.receive_message?(n(),o("div",Xh," Receive:"+a(l.info.receive_message),1)):i("",!0)]),e(U).fileView.length>0?(n(),o("div",Jh,[r(" file : "),(n(!0),o(V,null,D(e(U).fileView,(y,Nt)=>(n(),o("div",{class:"file_desc1",onClick:de=>e(pn)(y),key:Nt},a(y),9,ey))),128))])):i("",!0),t("div",ty,[t("div",ly,a(l.licence.name),1),t("div",ny,a(l.licence.Descrption),1),t("div",oy,a(l.licence.register_no),1)]),t("div",ay,[r(" Signature: "),(l.info.signal_image==""||l.info.signal_image==null)&&(l.info.signal_desc==""||l.info.signal_desc==null)?(n(),o("div",sy)):i("",!0),l.info.signal_image?(n(),o("img",{key:1,src:l.info.signal_image,class:"Signature_img",mode:"",alt:""},null,8,iy)):i("",!0),l.info.signal_desc&&(l.info.signal_image==""||l.info.signal_image==null)?f((n(),o("input",{key:2,disabled:"",placeholder:"Please enter","onUpdate:modelValue":y=>l.info.signal_desc=y,class:"signal_desc",type:"text"},null,8,dy)),[[k,l.info.signal_desc]]):i("",!0)]),t("div",uy,[d(q,{type:"info",size:"small",plain:"",onClick:s[132]||(s[132]=y=>e(En)())},{default:u(()=>[r("nosend")]),_:1}),d(q,{type:"primary",size:"small",onClick:s[133]||(s[133]=y=>e(Mn)())},{default:u(()=>[r("send email")]),_:1}),d(tn,{style:{"margin-left":"20px"},modelValue:e(z).show_number,"onUpdate:modelValue":s[134]||(s[134]=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(Ne,{style:{width:"42%"},modelValue:e(Ll),"onUpdate:modelValue":s[139]||(s[139]=l=>T(Ll)?Ll.value=l:null),title:"",draggable:""},{default:u(()=>[t("div",null,"Email to : "+a(e(U).customArr.email),1),t("div",ry," Dear "+a(e(U).customArr.first_name)+" "+a(e(U).customArr.last_name)+" : ",1),f(t("textarea",{class:"textarea_input3",placeholder:"Please enter","onUpdate:modelValue":s[136]||(s[136]=l=>e(U).email_content=l)},null,512),[[k,e(U).email_content]]),(n(!0),o(V,null,D(e(Bl),(l,j)=>(n(),o("div",{class:"Email_box5",key:j},[_y,t("div",null,a(l.invoice_pdf.file_path.replace("/var/www/html/public/pdf/","")),1)]))),128)),t("div",cy,[d(q,{type:"info",plain:"",onClick:s[137]||(s[137]=l=>e(Bn)())},{default:u(()=>[r("nosend")]),_:1}),d(q,{loading:e(ge),type:"primary",onClick:s[138]||(s[138]=l=>e(Yn)())},{default:u(()=>[r("send")]),_:1},8,["loading"])])]),_:1},8,["modelValue"]),d(Ne,{style:{width:"42%"},modelValue:e(Ql),"onUpdate:modelValue":s[142]||(s[142]=l=>T(Ql)?Ql.value=l:null),title:"",draggable:""},{default:u(()=>[t("div",py,[r(" Customer Name :"),t("span",my,a(e(Hl).clients.customer_name),1)]),t("div",null,[r(" Customer Email :"),t("span",vy,a(e(Hl).clients.email_values.email_to),1)]),t("div",gy,[r(" Customer Submit Href :"),t("span",hy,a(e(Hl).clients.customer_submit_href),1)]),d(q,{style:{margin:"40px 0 0px 0"},type:"primary",link:"",onClick:s[140]||(s[140]=l=>e(Fn)())},{default:u(()=>[r("Copy clipboard")]),_:1}),t("div",yy,[d(q,{type:"primary",onClick:s[141]||(s[141]=l=>e(jn)())},{default:u(()=>[r("Submit")]),_:1})])]),_:1},8,["modelValue"]),d(Ne,{style:{width:"42%"},modelValue:e(Wl),"onUpdate:modelValue":s[143]||(s[143]=l=>T(Wl)?Wl.value=l:null),title:"",draggable:""},{default:u(()=>[t("div",by,[r(" Order completion time :"),t("span",fy,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:gt.changeRate,modelValue:l.level_value,"onUpdate:modelValue":y=>l.level_value=y,colors:gt.colors},null,8,["onChange","modelValue","onUpdate:modelValue","colors"])]))),128)),ky,t("div",null,a(e(Yl).notes),1),xy,(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,Cy))),128))]),_:1},8,["modelValue"]),e(b).clients?(n(),o("div",$y,[t("div",Vy,[(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,Dy))),128))]),e(z).tableIndex==0?(n(),o("fieldset",wy,[Iy,t("table",Uy,[t("tr",null,[Sy,t("td",null,a(e(b).clients.booking_order_no),1),Ay,t("td",null,a(e(b).date),1)]),t("tr",null,[Py,t("td",null,a(e(b).therapists_name),1),Ny,t("td",null,a(e(b).clients.begin_time)+"-"+a(e(b).clients.end_time),1)]),t("tr",null,[Ty,t("td",null,a(e(b).clients.customer_name),1),Ey,t("td",My,[r(a(e(b).clients.description_type)+" "+a(e(b).clients.session)+" Min ",1),e(b).clients.additional_Service&&e(p).is_additional==1?(n(),o("div",By,[r(" ( "),(n(!0),o(V,null,D(e(b).clients.additional_Service,(l,j)=>(n(),o("div",{key:l.id},[l.is_Selected?(n(),o("div",Yy,[r(a(l.service_name)+" "+a(l.duration)+" min ",1),j<e(b).clients.additional_Service.length-1?(n(),o("span",Oy," , ")):i("",!0)])):i("",!0)]))),128)),r(" ) ")])):i("",!0)])]),t("tr",null,[Fy,t("td",null,a(e(b).clients.amount)+"$",1),zy,t("td",null,a(e(b).clients.description),1)]),t("tr",null,[Ry,t("td",null,a(e(b).clients.invoice_therpist_name),1),jy,t("td",null,a(e(b).clients.customer_note),1)]),t("tr",null,[t("td",Ly,[t("div",Qy,[e(b).clients.is_delete==1?(n(),A(q,{key:0,plain:"",size:"small",type:"danger",style:{"margin-left":"15px"},onClick:s[144]||(s[144]=l=>e(An)(e(b)))},{default:u(()=>[r(" Delete ")]),_:1})):i("",!0),e(b).clients.is_edit==1?(n(),A(q,{key:1,plain:"",size:"small",type:"primary",onClick:s[145]||(s[145]=l=>e(Pn)(e(b)))},{default:u(()=>[r(" Edit ")]),_:1})):i("",!0),e(b).clients.is_email==1?(n(),A(q,{key:2,plain:"",size:"small",type:"primary",style:{"margin-left":"15px"},onClick:s[146]||(s[146]=l=>e(Ge)(e(b),1,""))},{default:u(()=>[r(" Booking Email ")]),_:1})):i("",!0)])])])])])):i("",!0),e(z).tableIndex==0?(n(),o("fieldset",Hy,[Wy,t("table",qy,[t("tr",null,[Gy,t("td",null,[e(b).clients.is_checkin==0?(n(),o("div",Zy,a(e(b).clients.check_in_time),1)):i("",!0),e(b).clients.is_checkin==1?(n(),A(q,{key:1,plain:"",size:"small",type:"primary",onClick:s[147]||(s[147]=l=>e(Lt)(e(b)))},{default:u(()=>[r(" Check In ")]),_:1})):i("",!0)])]),e(b).clients.finish_show==1?(n(),o("tr",Ky,[Xy,t("td",null,[e(b).clients.is_finish==0?(n(),o("div",Jy,a(e(b).clients.finish_time),1)):i("",!0),e(b).clients.is_finish==1?(n(),A(q,{key:1,plain:"",size:"small",type:"primary",onClick:s[148]||(s[148]=l=>e(Gn)(e(b)))},{default:u(()=>[r(" Appoint Complete ")]),_:1})):i("",!0)])])):i("",!0),e(b).clients.confirm_show==1?(n(),o("tr",eb,[tb,t("td",null,[e(b).clients.is_confirm==0?(n(),o("div",lb,a(e(b).clients.confirm_time),1)):i("",!0),e(b).clients.is_confirm==1?(n(),A(q,{key:1,plain:"",size:"small",type:"primary",onClick:s[149]||(s[149]=l=>e(Qn)(e(b)))},{default:u(()=>[r(" Appoint Confirm ")]),_:1})):i("",!0)])])):i("",!0),e(b).clients.evaluation_show==1?(n(),o("tr",nb,[ob,t("td",null,[e(b).clients.is_customer_submit==1?(n(),A(q,{key:0,plain:"",size:"small",type:"primary",onClick:s[150]||(s[150]=l=>e(On)(e(b)))},{default:u(()=>[r(" Customer Submit ")]),_:1})):i("",!0),e(b).is_evaluation==1?(n(),A(q,{key:1,plain:"",size:"small",type:"primary",onClick:s[151]||(s[151]=l=>e(zn)(e(b)))},{default:u(()=>[r(" view ")]),_:1})):i("",!0)])])):i("",!0),e(b).clients.deducation_show!=""?(n(),o("tr",ab,[sb,t("td",null,a(e(b).clients.deducation_show1),1)])):i("",!0)])])):i("",!0),e(z).tableIndex==0?(n(),o("fieldset",ib,[db,t("table",ub,[rb,t("tr",null,[_b,t("td",cb,[t("div",pb,[e(b)&&e(b).clients.current_note_detail.note_detail&&e(b).clients.current_note_detail.note_detail.health_document&&e(b).clients.current_note_detail.note_detail.health_document.length==0?(n(),o("img",{key:0,class:"delclose_icon",src:ol,alt:"",onClick:s[152]||(s[152]=l=>e(Je)(e(b),1))})):i("",!0),e(b)&&e(b).clients.current_note_detail.note_detail.health_document&&e(b).clients.current_note_detail.note_detail.health_document.length>0?(n(),o("img",{key:1,class:"delclose_icon",src:Rt,alt:"",onClick:s[153]||(s[153]=l=>e(Je)(e(b),2))})):i("",!0),d(q,{link:"",type:"primary",onClick:s[154]||(s[154]=l=>e(Ge)(e(b),1,"health")),style:{"margin-left":"7px"}},{default:u(()=>[r(" Send Email ")]),_:1})])]),t("td",null,[t("div",mb,[e(b)&&e(b).clients.current_note_detail.note_detail.health_image?(n(),o("img",{key:0,class:"delclose_icon",onClick:s[155]||(s[155]=l=>e(el)(e(b).clients.current_note_detail.note_detail.health_image)),src:rt,alt:""})):i("",!0),d(Gt,{ref_key:"bookingImg",ref:Xt,data:{booking_id:e(b).clients.id,form_type:"health"},style:{display:"flex"},action:e(nl),limit:1,"on-exceed":e(Wt),"on-success":e(Jt),"on-change":e(qt),loading:e(ge)},{default:u(()=>[vb]),_:1},8,["data","action","on-exceed","on-success","on-change","loading"])])])]),e(b).clients.current_note_detail.note_detail.is_massage==1&&e(b).clients.has_first_informed==0?(n(),o("tr",gb,[hb,t("td",null,[t("div",yb,[d(q,{link:"",type:"primary",onClick:s[156]||(s[156]=l=>e(Ge)(e(b),1,"informed_first")),style:{"margin-left":"7px"}},{default:u(()=>[r(" Send Email ")]),_:1})])]),bb])):i("",!0),e(b).clients.current_note_detail.note_detail.is_massage==1?(n(),o("tr",fb,[kb,t("td",null,[t("div",xb,[e(b)&&e(b).clients.current_note_detail.note_detail.informed_content_document&&e(b)&&e(b).clients.current_note_detail.note_detail.informed_content_document.length>0?(n(),o("img",{key:0,class:"delclose_icon",src:Rt,alt:"",onClick:s[157]||(s[157]=l=>e(ze)(e(b),"informed"))})):i("",!0),d(q,{link:"",type:"primary",onClick:s[158]||(s[158]=l=>e(Ge)(e(b),1,"informed")),style:{"margin-left":"7px"}},{default:u(()=>[r(" Send Email ")]),_:1})])]),t("td",null,[t("div",Cb,[e(b)&&e(b).clients.current_note_detail.note_detail.informed_content_image?(n(),o("img",{key:0,class:"delclose_icon",onClick:s[159]||(s[159]=l=>e(el)(e(b).clients.current_note_detail.note_detail.informed_content_image)),src:rt,alt:""})):i("",!0),d(Gt,{ref_key:"bookingImg",ref:Xt,data:{booking_id:e(b).clients.id,form_type:"informed"},style:{display:"flex"},action:e(nl),limit:1,"on-exceed":e(Wt),"on-success":e(Jt),"on-change":e(qt),loading:e(ge)},{default:u(()=>[$b]),_:1},8,["data","action","on-exceed","on-success","on-change","loading"])])])])):i("",!0),e(b).clients.current_note_detail.note_detail.is_massage==1?(n(),o("tr",Vb,[Db,t("td",null,[t("div",wb,[e(b)&&e(b).clients.is_sensitived==1?(n(),o("img",{key:0,class:"delclose_icon",src:Rt,alt:"",onClick:s[160]||(s[160]=l=>e(ze)(e(b),"sensitived"))})):i("",!0),d(q,{link:"",type:"primary",onClick:s[161]||(s[161]=l=>e(po)()),style:{"margin-left":"7px"}},{default:u(()=>[r(" Send Email ")]),_:1})])]),t("td",null,[t("div",Ib,[e(b)&&e(b).clients.current_note_detail.note_detail.sensitive_content_image?(n(),o("img",{key:0,class:"delclose_icon",onClick:s[162]||(s[162]=l=>e(el)(e(b).clients.current_note_detail.note_detail.sensitive_content_image)),src:rt,alt:""})):i("",!0),d(Gt,{ref_key:"bookingImg",ref:Xt,data:{booking_id:e(b).clients.id,form_type:"sensitived"},style:{display:"flex"},action:e(nl),limit:1,"on-exceed":e(Wt),"on-success":e(Jt),"on-change":e(qt),loading:e(ge)},{default:u(()=>[Ub]),_:1},8,["data","action","on-exceed","on-success","on-change","loading"])])])])):i("",!0),e(b).clients.current_note_detail.note_detail.is_massage==1?(n(),o("tr",Sb,[Ab,t("td",null,[t("div",Pb,[e(b)&&e(b).clients.current_note_detail.note_detail.ongoning_content_document&&e(b).clients.current_note_detail.note_detail.ongoning_content_document.length==0?(n(),o("img",{key:0,class:"delclose_icon",src:ol,alt:"",onClick:s[163]||(s[163]=l=>e(ze)(e(b),"ougoing"))})):i("",!0),e(b)&&e(b).clients.current_note_detail.note_detail.ongoning_content_document&&e(b).clients.current_note_detail.note_detail.ongoning_content_document.length>0?(n(),o("img",{key:1,class:"delclose_icon",src:Nl,alt:"",onClick:s[164]||(s[164]=l=>e(ze)(e(b),"ougoing"))})):i("",!0)])]),t("td",null,[t("div",Nb,[e(b)&&e(b).clients.current_note_detail.note_detail.ongoning_content_image?(n(),o("img",{key:0,class:"delclose_icon",onClick:s[165]||(s[165]=l=>e(el)(e(b).clients.current_note_detail.note_detail.ongoning_content_image)),src:rt,alt:""})):i("",!0),d(Gt,{ref_key:"bookingImg",ref:Xt,data:{booking_id:e(b).clients.id,form_type:"ougoing"},style:{display:"flex"},action:e(nl),limit:1,"on-exceed":e(Wt),"on-success":e(Jt),"on-change":e(qt),loading:e(ge)},{default:u(()=>[Tb]),_:1},8,["data","action","on-exceed","on-success","on-change","loading"])])])])):i("",!0),e(b).clients.current_note_detail.note_detail.is_massage==1?(n(),o("tr",Eb,[Mb,t("td",null,[t("div",Bb,[e(b)&&e(b).clients.current_note_detail.note_detail.treatment_plan_document&&e(b).clients.current_note_detail.note_detail.treatment_plan_document.length==0?(n(),o("img",{key:0,class:"delclose_icon",src:ol,alt:"",onClick:s[166]||(s[166]=l=>e(ze)(e(b),"treatment_plan"))})):i("",!0),e(b)&&e(b).clients.current_note_detail.note_detail.treatment_plan_document&&e(b).clients.current_note_detail.note_detail.treatment_plan_document.length>0?(n(),o("img",{key:1,class:"delclose_icon",src:Nl,alt:"",onClick:s[167]||(s[167]=l=>e(ze)(e(b),"treatment_plan"))})):i("",!0)])]),t("td",null,[t("div",Yb,[e(b)&&e(b).clients.current_note_detail.note_detail.treatment_plan_image?(n(),o("img",{key:0,class:"delclose_icon",onClick:s[168]||(s[168]=l=>e(el)(e(b).clients.current_note_detail.note_detail.treatment_plan_image)),src:rt,alt:""})):i("",!0),d(Gt,{ref_key:"bookingImg",ref:Xt,data:{booking_id:e(b).clients.id,form_type:"treatment_plan"},style:{display:"flex"},action:e(nl),limit:1,"on-exceed":e(Wt),"on-success":e(Jt),"on-change":e(qt),loading:e(ge)},{default:u(()=>[Ob]),_:1},8,["data","action","on-exceed","on-success","on-change","loading"])])])])):i("",!0),e(b).clients.current_note_detail.note_detail.is_massage==1?(n(),o("tr",Fb,[zb,t("td",null,[t("div",Rb,[e(b)&&e(b).clients.current_note_detail.note_detail.treatment_note_document&&e(b).clients.current_note_detail.note_detail.treatment_note_document.length==0?(n(),o("img",{key:0,class:"delclose_icon",src:ol,alt:"",onClick:s[169]||(s[169]=l=>e(ze)(e(b),"treatment_note"))})):i("",!0),e(b)&&e(b).clients.current_note_detail.note_detail.treatment_note_document&&e(b).clients.current_note_detail.note_detail.treatment_note_document.length>0?(n(),o("img",{key:1,class:"delclose_icon",src:Nl,alt:"",onClick:s[170]||(s[170]=l=>e(ze)(e(b),"treatment_note"))})):i("",!0)])]),t("td",null,[t("div",jb,[e(b)&&e(b).clients.current_note_detail.note_detail.treatment_note_image?(n(),o("img",{key:0,class:"delclose_icon",onClick:s[171]||(s[171]=l=>e(el)(e(b).clients.current_note_detail.note_detail.treatment_note_image)),src:rt,alt:""})):i("",!0),d(Gt,{ref_key:"bookingImg",ref:Xt,data:{booking_id:e(b).clients.id,form_type:"treatment_note"},style:{display:"flex"},action:e(nl),limit:1,"on-exceed":e(Wt),"on-success":e(Jt),"on-change":e(qt),loading:e(ge)},{default:u(()=>[Lb]),_:1},8,["data","action","on-exceed","on-success","on-change","loading"])])])])):i("",!0),e(b).clients.current_note_detail.note_detail.isTCM==1?(n(),o("tr",Qb,[Hb,t("td",null,[t("div",Wb,[e(b)&&e(b).clients.current_note_detail.note_detail.TCM_document&&e(b).clients.current_note_detail.note_detail.TCM_document.length==0?(n(),o("img",{key:0,class:"delclose_icon",src:ol,alt:"",onClick:s[172]||(s[172]=l=>e(Jl)("1"))})):i("",!0),e(b)&&e(b).clients.current_note_detail.note_detail.TCM_document&&e(b).clients.current_note_detail.note_detail.TCM_document.length>0?(n(),o("img",{key:1,class:"delclose_icon",src:Nl,alt:"",onClick:s[173]||(s[173]=l=>e(Jl)("1"))})):i("",!0)])]),t("td",null,[t("div",qb,[e(b)&&e(b).clients.current_note_detail.note_detail.TCM_image?(n(),o("img",{key:0,class:"delclose_icon",onClick:s[174]||(s[174]=l=>e(el)(e(b).clients.current_note_detail.note_detail.TCM_image)),src:rt,alt:""})):i("",!0),d(Gt,{ref_key:"bookingImg",ref:Xt,data:{booking_id:e(b).clients.id,form_type:"TCM"},style:{display:"flex"},action:e(nl),limit:1,"on-exceed":e(Wt),"on-success":e(Jt),"on-change":e(qt),loading:e(ge)},{default:u(()=>[Gb]),_:1},8,["data","action","on-exceed","on-success","on-change","loading"])])])])):i("",!0),t("tr",null,[Zb,t("td",null,[t("div",Kb,[e(b)&&e(b).clients.current_note_detail.note_detail.treatment_document&&e(b).clients.current_note_detail.note_detail.treatment_document.length==0?(n(),o("img",{key:0,class:"delclose_icon",src:ol,alt:"",onClick:s[175]||(s[175]=l=>e(ze)(e(b),"treatment"))})):i("",!0),e(b)&&e(b).clients.current_note_detail.note_detail.treatment_document&&e(b).clients.current_note_detail.note_detail.treatment_document.length>0?(n(),o("img",{key:1,class:"delclose_icon",src:Nl,alt:"",onClick:s[176]||(s[176]=l=>e(ze)(e(b),"treatment"))})):i("",!0)])]),t("td",null,[t("div",Xb,[e(b)&&e(b).clients.current_note_detail.note_detail.treatment_image?(n(),o("img",{key:0,class:"delclose_icon",onClick:s[177]||(s[177]=l=>e(el)(e(b).clients.current_note_detail.note_detail.treatment_image)),src:rt,alt:""})):i("",!0),d(Gt,{ref_key:"bookingImg",ref:Xt,data:{booking_id:e(b).clients.id,form_type:"treatment"},style:{display:"flex"},action:e(nl),limit:1,"on-exceed":e(Wt),"on-success":e(Jt),"on-change":e(qt),loading:e(ge)},{default:u(()=>[Jb]),_:1},8,["data","action","on-exceed","on-success","on-change","loading"])])])])]),e(b).clients.other_note_detail.length>0?(n(),o("div",ef,[e(p).is_form_history==2&&e(p).is_historyAll==2?(n(),A(q,{key:0,plain:"",size:"small",type:"primary",onClick:s[178]||(s[178]=l=>e(_n)(1))},{default:u(()=>[r(" All ")]),_:1})):i("",!0),e(p).is_form_history==2&&e(p).is_historyAll==1?(n(),A(q,{key:1,style:{"margin-left":"10px"},plain:"",size:"small",type:"primary",onClick:s[179]||(s[179]=l=>e(_n)(2))},{default:u(()=>[r(" Fill out ")]),_:1})):i("",!0),d(q,{style:{"margin-left":"10px"},plain:"",size:"small",type:"primary",onClick:s[180]||(s[180]=l=>e(to)(e(b)))},{default:u(()=>[r(" History Notes ")]),_:1})])):i("",!0),e(p).is_form_history==2?(n(),o("div",tf,[t("table",lf,[nf,(n(!0),o(V,null,D(e(b).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",of,[l.note_detail.is_massage==1&&l.is_informed?(n(),o("div",af,[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:Rt,alt:""},null,8,sf)):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,df)):i("",!0)])):i("",!0),l.note_detail.is_massage==1&&l.is_sensitive?(n(),o("div",uf,[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:Rt,alt:""},null,8,rf)):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,_f)):i("",!0)])):i("",!0),l.note_detail.is_massage==1&&l.is_ongoning?(n(),o("div",cf,[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:Rt,alt:""},null,8,pf)):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,mf)):i("",!0)])):i("",!0),l.note_detail.is_massage==1&&l.is_treatment_plan?(n(),o("div",vf,[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:Rt,alt:""},null,8,gf)):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,hf)):i("",!0)])):i("",!0),l.note_detail.is_massage==1&&l.is_treatment_note?(n(),o("div",yf,[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:Rt,alt:""},null,8,bf)):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,ff)):i("",!0)])):i("",!0),l.is_TCM&&l.note_detail.isTCM==1?(n(),o("div",kf,[r(" TCM "),l.note_detail.TCM_document.length>0?(n(),o("img",{key:0,class:"delclose_icon5",onClick:y=>e(Jl)("2",l),src:Rt,alt:""},null,8,xf)):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,Cf)):i("",!0)])):i("",!0),t("div",$f,[r(" Treatment "),l.note_detail.treatment_document.length>0?(n(),o("img",{key:0,class:"delclose_icon5",onClick:y=>e(hl)(l,"treatment"),src:Rt,alt:""},null,8,Vf)):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,Df)):i("",!0)])])],2))),128))])])):i("",!0)])):i("",!0),e(z).tableIndex==1?(n(),o("fieldset",wf,[If,t("div",Uf,[e(b).clients.is_invoice==1?(n(),A(q,{key:0,plain:"",size:"small",type:"primary",onClick:s[181]||(s[181]=l=>e(ml)(e(b)))},{default:u(()=>[r(" Add Invoice ")]),_:1})):i("",!0)]),e(b).clients.is_invoice==0?(n(),o("div",Sf,[d(tn,{style:{margin:"-4px 50px 0 0"},modelValue:e(z).show_number,"onUpdate:modelValue":s[182]||(s[182]=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(b).clients.is_invoice==0?(n(),o("table",Af,[Pf,(n(!0),o(V,null,D(e(b).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,Nf)):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",Tf,[d(q,{plain:"",size:"small",type:"primary",onClick:y=>e(re)(l)},{default:u(()=>[r(" Charge ")]),_:2},1032,["onClick"]),d(q,{style:{"margin-left":"12px"},plain:"",size:"small",type:"primary",onClick:y=>e(Zn)(l)},{default:u(()=>[r(" Detail ")]),_:2},1032,["onClick"]),d(q,{style:{"margin-left":"12px"},plain:"",size:"small",type:"primary",onClick:y=>e(Kn)(l)},{default:u(()=>[r(" Email ")]),_:2},1032,["onClick"]),d(q,{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(b).group_detail.length>0?(n(),o("fieldset",Ef,[Mf,t("table",Bf,[Yf,(n(!0),o(V,null,D(e(b).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(Ne,{style:{width:"40%","margin-top":"55px","min-height":"40%"},modelValue:e(Gl),"onUpdate:modelValue":s[184]||(s[184]=l=>T(Gl)?Gl.value=l:null),title:"",draggable:""},{default:u(()=>[Of,e(b).clients.is_invoice==0?(n(),o("div",Ff,a(e(b).clients.confirm_comment),1)):i("",!0),e(b).clients.canuse_deducation_list.length>0&&e(b).clients.is_invoice==1?(n(),o("div",zf," Use Deducation: "+a(e(b).clients.canuse_deducation_list[0].deducation_show),1)):i("",!0),e(b).clients.canuse_deducation_list.length==0&&e(b).clients.is_invoice==1?(n(),o("div",Rf," Use Deducation: No ")):i("",!0),t("div",jf,[d(q,{type:"primary",onClick:s[183]||(s[183]=l=>e(no)())},{default:u(()=>[r("Submit")]),_:1})])]),_:1},8,["modelValue"]),d(Ne,{style:{width:"50%","margin-top":"55px","min-height":"40%"},modelValue:e(Zl),"onUpdate:modelValue":s[185]||(s[185]=l=>T(Zl)?Zl.value=l:null),title:"",draggable:""},{default:u(()=>[Lf,t("table",Qf,[Hf,(n(!0),o(V,null,D(e(co),(l,j)=>(n(),o("tr",{key:l.id},[t("td",Wf,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(Ne,{style:{width:"60%","margin-top":"55px","min-height":"40%"},modelValue:e(Kl),"onUpdate:modelValue":s[188]||(s[188]=l=>T(Kl)?Kl.value=l:null),title:"",draggable:""},{default:u(()=>[qf,t("div",null,"Email to : "+a(e(b).clients.customerInfo.email),1),t("div",null,"Dear : "+a(e(b).clients.customer_name),1),t("div",null," Sensitive Form Link : "+a(e(b).clients.sentitive_content_url),1),t("div",Gf,[(n(!0),o(V,null,D(e(M),(l,j)=>(n(),o("div",{key:l.id},[d(Bt,{modelValue:l.is_selected,"onUpdate:modelValue":y=>l.is_selected=y,label:l.name,size:"large"},null,8,["modelValue","onUpdate:modelValue","label"])]))),128))]),Zf,f(t("textarea",{class:"textarea_input",placeholder:"Please enter","onUpdate:modelValue":s[186]||(s[186]=l=>e(_).indication=l),maxlength:"600"},null,512),[[k,e(_).indication]]),t("div",Kf,[d(q,{loading:e(ge),type:"primary",onClick:s[187]||(s[187]=l=>e(mo)())},{default:u(()=>[r("Send Email")]),_:1},8,["loading"])])]),_:1},8,["modelValue"]),f((n(),A(q,{type:"primary",onClick:e(ko)},{default:u(()=>[r(" 指令方式 ")]),_:1},8,["onClick"])),[[To,!1],[No,e(fo),void 0,{fullscreen:!0,lock:!0}]]),d(Ne,{style:{width:"76%"},modelValue:e(yl),"onUpdate:modelValue":s[190]||(s[190]=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[189]||(s[189]=l=>T(yl)?yl.value=l:null)},null,8,["onEventCharge","str","ChargeArr","ChargeDialog"])]),_:1},8,["modelValue"]),d(Ne,{style:{width:"50%"},modelValue:e(Xl),"onUpdate:modelValue":s[191]||(s[191]=l=>T(Xl)?Xl.value=l:null),title:""},{default:u(()=>[Xf,t("div",Jf,[(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,e2))),128))])]),_:1},8,["modelValue"]),d(Ne,{style:{width:"90%"},modelValue:e(bl),"onUpdate:modelValue":s[193]||(s[193]=l=>T(bl)?bl.value=l:null),title:""},{default:u(()=>[d(la,{onEventChinese:e(Uo),chineseArr:e(Io),chineseMedicalDialog:e(bl),"onUpdate:chineseMedicalDialog":s[192]||(s[192]=l=>T(bl)?bl.value=l:null)},null,8,["onEventChinese","chineseArr","chineseMedicalDialog"])]),_:1},8,["modelValue"])])}}});const In=dl(l2,[["__scopeId","data-v-f6fd5377"]]),i3=Object.freeze(Object.defineProperty({__proto__:null,default:In},Symbol.toStringTag,{value:"Module"})),Fe=X=>(sl("data-v-7ac2ff91"),X=X(),il(),X),n2={class:"main"},o2={class:"dialog_procure_box",style:{"margin-top":"0px"}},a2=Fe(()=>t("div",null,"Time:",-1)),s2={key:0},i2={class:"dialog_procure_box sign_box_desc",style:{"justify-content":"flex-end",margin:"-10px 0 12px 0"}},d2=Fe(()=>t("div",{class:"dialog_tilte"},"创建采购单",-1)),u2={class:"fieldset"},r2=Fe(()=>t("legend",{class:"legend"},"发货操作",-1)),_2={class:"createOrderobj_box"},c2=Fe(()=>t("td",{width:"15%"},"客户名称",-1)),p2={class:"part_out_button"},m2={class:"addDuringDialog_box"},v2={class:"InvoiceStartNumber",style:{"justify-content":"center","margin-top":"20px"}},g2=Fe(()=>t("div",null,"To Room:",-1)),h2={class:"part_out_button"},y2=Fe(()=>t("div",{class:"dialog_tilte"},"Health History Form",-1)),b2=Fe(()=>t("div",{class:"Description_box title_name"}," This information is to help the therapist to create a safe and effective treatment plan. ",-1)),f2={key:0,class:"Description_box"},k2={class:"title"},x2=["onUpdate:modelValue"],C2={key:1,class:"Description_box"},$2={class:"title"},V2={key:2,class:"infoData_box"},D2={class:"Description_box"},w2={class:"Description_desc",style:{margin:"0 0 16rpx 0"}},I2=Fe(()=>t("div",{class:""},null,-1)),U2=["onUpdate:modelValue"],S2={class:"show_card"},A2=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)),P2={class:"title_desc"},N2={key:1,class:""},T2={class:""},E2=["onUpdate:modelValue"],M2={key:2,class:""},B2={class:""},Y2=["onUpdate:modelValue"],O2={key:3,class:""},F2={class:""},z2={class:"part_out_button"},R2=Fe(()=>t("div",{class:"dialog_tilte"},"Add Booking",-1)),j2=Fe(()=>t("div",{class:"Add_Booking_box"},[r(" Location "),t("span",{class:"red"}," * ")],-1)),L2={class:"Add_Booking_box"},Q2=Fe(()=>t("div",{class:"Add_Booking_box"},[r("Client"),t("span",{class:"red"}," * ")],-1)),H2={class:"Add_Booking_box"},W2=Fe(()=>t("div",{class:"Add_Booking_box"},[r("Service"),t("span",{class:"red"}," * ")],-1)),q2={class:"Service_box11"},G2=["onClick"],Z2=Fe(()=>t("div",{class:"Add_Booking_box"},[r(" Date "),t("span",{class:"red"}," * ")],-1)),K2={class:"Add_Booking_box"},X2=Fe(()=>t("div",{class:"Add_Booking_box Therapist_desc"},"Therapist",-1)),J2={class:"menu_box"},e0={class:"gender_box"},t0={key:0},l0=["onClick"],n0=Fe(()=>t("div",{class:"Add_Booking_box"},[r("time"),t("span",{class:"red"}," * ")],-1)),o0={class:"Add_Booking_box"},a0=Fe(()=>t("div",{class:"Add_Booking_box"},[r("Duration"),t("span",{class:"red"}," * ")],-1)),s0={class:"Add_Booking_box"},i0=Fe(()=>t("div",{class:"Add_Booking_box"},"Look for treatmemt:",-1)),d0={class:"Add_Booking_box"},u0={class:"Add_Booking_box",style:{"margin-top":"25px"}},r0={style:{"margin-left":"10px"}},_0={class:"part_out_button"},c0=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)),p0={class:"dialog_procure_box"},m0=Fe(()=>t("div",null,"date:",-1)),v0=Fe(()=>t("div",{style:{margin:"0 20px 0 35px"}},"Therapist:",-1)),g0={align:"left",class:"BookingInfoData_date"},h0={class:""},y0={class:""},b0=at({name:"/crm/yuyue/booking"}),f0=at({...b0,props:{str:{type:String,default:""},customer_id:{type:String,default:""}},setup(X){const ve=X,{searchDetail:P,btnSearchPart:ye,loading:z,small:Tt,selectList:ge,columns:ht,checkList:yt,pagination:bt,handleSizeChange:pe,handleCurrentChange:st,PartList:je,order_date:it,deliverDialog:Ue,selectClick:De,deliverDataArr:F,btnDeliverConfirm:We,expressCompanyData:be,onSearchDate:se,getNote:I,getInvoice:Le,onCheckIn:ft,addDuringDialog:Qe,addDuringConfirm:p,onPaymant:It,onCancel:Ye,onHealthForm:Te,healthDialog:Ee,infoData:le,health_info:U,onHealth:fe,btnHealthConfirm:Me,AddBooking:G,addForm:ne,addBookingDialog:qe,serviceData:Oe,TherapistData:Y,isData:te,selectedTr:x,onSelectLocation:ke,locationDialog:Pe,eventIsNumlocation:Ut,locationData:Je,ClientDialog:Q,eventIsNum:dt,ClientData:kt,onSelClient:jt,goPrivacy:Lt,PrivacyDialog:xt,disabledWeekends:Qt,timeData:we,onServiceTimes:Ct,serverDate:$t,btnServerDate:K,btnAddConfirm:lt,goHealth:_t,BookingInfo:Ot,BookingInfoDialog:He,BookingInfoData:he,dropdownVisible:L,addServiceData:xe,onServiceAdd:Vt,Therapists:Ge,clinicData:Zt,onClinicData:et,onTherapists:ut,onExpressCompanyData:Ze,onDetail:ze,bookingDetailDialog1:Z,formArr:oe,onbKDetail:_,stulesShow:g}=Xo(ve);return al(()=>{}),(R,$)=>{const Ce=H("el-option"),Dt=H("el-select"),M=H("el-button"),me=H("el-dialog"),$e=H("el-date-picker"),v=H("el-checkbox");return n(),o("div",n2,[t("div",o2,[a2,d(Dt,{clearable:"true",modelValue:e(P).searchDate,"onUpdate:modelValue":$[0]||($[0]=C=>e(P).searchDate=C),filterable:"","allow-create":"","default-first-option":"","reserve-keyword":!1,placeholder:"Please select",onChange:e(Ze)},{default:u(()=>[(n(!0),o(V,null,D(e(be),C=>(n(),A(Ce,{key:C.id,label:C.text,value:C.value},null,8,["label","value"]))),128))]),_:1},8,["modelValue","onChange"]),e(P).type==2?(n(),o("div",s2,"Therapist:")):i("",!0),e(P).type==2?(n(),A(Dt,{key:1,clearable:"true",modelValue:e(P).therapists_id,"onUpdate:modelValue":$[1]||($[1]=C=>e(P).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(Ge),C=>(n(),A(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),f(t("input",{class:"input",placeholder:"Please enter","onUpdate:modelValue":$[2]||($[2]=C=>e(P).searchKey=C),type:"text"},null,512),[[k,e(P).searchKey]]),d(M,{type:"primary",onClick:$[3]||($[3]=C=>e(ye)()),style:{"margin-left":"20px"},size:"small"},{default:u(()=>[r("Search")]),_:1})]),t("div",i2,[(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(ge),onRefresh:R.onSearch},{default:u(({size:C,checkList:O})=>[d(e(kl),{border:"",onSelect:e(De),"max-height":"500","align-whole":"center",showOverflowTooltip:"","table-layout":"auto",loading:e(z),size:"small",data:e(je),columns:e(ht),checkList:O,pagination:e(bt),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(st)},{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(Le)(W)),1)]),operation:u(({row:W})=>[d(M,{link:"",type:"primary",size:e(Tt),onClick:Re=>e(ze)(W)},{default:u(()=>[r(" Detail ")]),_:2},1032,["size","onClick"])]),_:2},1032,["onSelect","loading","data","columns","checkList","pagination","paginationSmall","header-cell-style","onSizeChange","onCurrentChange"])]),_:1},8,["selectArr","onRefresh"]),d(me,{modelValue:e(Ue),"onUpdate:modelValue":$[5]||($[5]=C=>T(Ue)?Ue.value=C:null),title:""},{default:u(()=>[d2,t("fieldset",u2,[r2,t("table",_2,[t("tr",null,[c2,t("td",null,a(e(F).name),1)])])]),t("div",p2,[d(M,{type:"primary",onClick:$[4]||($[4]=C=>e(We)())},{default:u(()=>[r("确定")]),_:1})])]),_:1},8,["modelValue"]),t("div",m2,[d(me,{style:{width:"30%"},modelValue:e(Qe),"onUpdate:modelValue":$[8]||($[8]=C=>T(Qe)?Qe.value=C:null),title:""},{default:u(()=>[t("div",v2,[g2,f(t("input",{"onUpdate:modelValue":$[6]||($[6]=C=>e(P).room=C),style:{"margin-left":"5px"},class:"input",type:"text"},null,512),[[k,e(P).room]])]),t("div",h2,[d(M,{type:"primary",onClick:$[7]||($[7]=C=>e(p)())},{default:u(()=>[r("Submit")]),_:1})])]),_:1},8,["modelValue"])]),d(me,{style:{width:"50%",padding:"0 40px"},modelValue:e(Ee),"onUpdate:modelValue":$[10]||($[10]=C=>T(Ee)?Ee.value=C:null),title:""},{default:u(()=>[y2,b2,(n(!0),o(V,null,D(e(le),(C,O)=>(n(),o("div",{class:"infoData_box",key:O},[C.type=="input"?(n(),o("div",f2,[t("div",k2,a(C.field_show),1),f(t("input",{type:"text",class:"input8","onUpdate:modelValue":W=>C.field_value=W},null,8,x2),[[k,C.field_value]])])):i("",!0),C.type=="date"?(n(),o("div",C2,[t("div",$2,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",V2,[t("div",D2,[t("div",w2,a(C.field_show),1),I2]),f(t("textarea",{class:"textarea_input",placeholder:"Please enter","onUpdate:modelValue":W=>C.field_value=W,maxlength:"600"},null,8,U2),[[k,C.field_value]])])):i("",!0)]))),128)),t("div",S2,[A2,(n(!0),o(V,null,D(e(U),(C,O)=>(n(),o("div",{class:"health_info_box",key:O},[t("div",P2,a(C.title),1),(n(!0),o(V,null,D(C.detail,(W,Re)=>(n(),o("div",{class:"",key:Re},[W.type=="checkbox"?(n(),A(v,{key:0,checked:W.is_selected==1,label:W.title,size:"large",onChange:Se=>e(fe)(C.detail,W)},null,8,["checked","label","onChange"])):i("",!0),W.type=="input"?(n(),o("div",N2,[t("div",T2,a(W.title),1),f(t("input",{type:"text","onUpdate:modelValue":Se=>W.field_value=Se,class:"input1"},null,8,E2),[[k,W.field_value]])])):i("",!0),W.type=="textarea"?(n(),o("div",M2,[t("div",B2,a(W.title),1),f(t("textarea",{class:"textarea_input",style:{width:"97%"},placeholder:"Please enter","onUpdate:modelValue":Se=>W.field_value=Se,maxlength:"600"},null,8,Y2),[[k,W.field_value]])])):i("",!0),W.type=="label"?(n(),o("div",O2,[t("div",F2,a(W.title),1)])):i("",!0)]))),128))]))),128))]),t("div",z2,[d(M,{type:"primary",onClick:$[9]||($[9]=C=>e(Me)())},{default:u(()=>[r("Submit")]),_:1})])]),_:1},8,["modelValue"]),d(me,{style:{width:"70%"},modelValue:e(qe),"onUpdate:modelValue":$[22]||($[22]=C=>T(qe)?qe.value=C:null),title:""},{default:u(()=>[R2,j2,t("div",L2,[f(t("input",{disabled:"","onUpdate:modelValue":$[11]||($[11]=C=>e(ne).loacation_name=C),class:"input2",type:"text"},null,512),[[k,e(ne).loacation_name]]),d(M,{type:"primary",style:{"margin-left":"10px"},plain:"",size:"small",onClick:$[12]||($[12]=C=>e(ke)())},{default:u(()=>[r(" Select ")]),_:1})]),Q2,t("div",H2,[f(t("input",{disabled:"","onUpdate:modelValue":$[13]||($[13]=C=>e(ne).Client_name=C),class:"input2",type:"text"},null,512),[[k,e(ne).Client_name]]),d(M,{type:"primary",style:{"margin-left":"10px"},plain:"",size:"small",onClick:$[14]||($[14]=C=>e(jt)())},{default:u(()=>[r(" Select ")]),_:1})]),W2,t("div",q2,[(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(Vt)(C)},a(C.name),11,G2))),128))]),Z2,t("div",K2,[d($e,{style:{width:"100%"},modelValue:e(ne).date,"onUpdate:modelValue":$[15]||($[15]=C=>e(ne).date=C),type:"date",disabledDate:e(Qt),"value-format":"YYYY-MM-DD",placeholder:"Please select",onChange:e($t)},null,8,["modelValue","disabledDate","onChange"])]),X2,t("div",J2,[(n(!0),o(V,null,D(e(Y),(C,O)=>(n(),o("div",{class:"menu_desc",key:O},[t("div",e0,[r(a(C.text)+" ",1),O>2?(n(),o("span",t0," ( "+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,l0)]))),128))]),n0,t("div",o0,[d(Dt,{style:{width:"100%"},clearable:"true",modelValue:e(ne).service_times,"onUpdate:modelValue":$[16]||($[16]=C=>e(ne).service_times=C),filterable:"","allow-create":"","default-first-option":"","reserve-keyword":!1,placeholder:"Please select",onClick:$[17]||($[17]=C=>e(Ct)())},{default:u(()=>[(n(!0),o(V,null,D(e(we),C=>(n(),A(Ce,{key:C.id,label:C.text,value:C.value},null,8,["label","value"]))),128))]),_:1},8,["modelValue"])]),a0,t("div",s0,[f(t("input",{placeholder:"Please Add Duration","onUpdate:modelValue":$[18]||($[18]=C=>e(ne).During=C),class:"input2",type:"text"},null,512),[[k,e(ne).During]]),r(" ( Min. ) ")]),i0,t("div",d0,[f(t("textarea",{style:{height:"60px"},class:"textarea_input1",placeholder:"Please enter","onUpdate:modelValue":$[19]||($[19]=C=>e(ne).description=C),maxlength:"600"},null,512),[[k,e(ne).description]])]),t("div",u0,[d(v),t("div",r0,[r(" I have read and agreed to the booking police "),t("span",{class:"agreement",onClick:$[20]||($[20]=C=>e(Lt)())},"《Privacy Policy》")])]),t("div",_0,[d(M,{type:"primary",onClick:$[21]||($[21]=C=>e(lt)())},{default:u(()=>[r("Submit")]),_:1})])]),_:1},8,["modelValue"]),d(me,{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(kt),ClientDialog:e(Q),"onUpdate:ClientDialog":$[23]||($[23]=C=>T(Q)?Q.value=C:null)},null,8,["onEventIsNum","ClientData","ClientDialog"])]),_:1},8,["modelValue"]),d(me,{style:{width:"78%"},modelValue:e(Pe),"onUpdate:modelValue":$[26]||($[26]=C=>T(Pe)?Pe.value=C:null),title:""},{default:u(()=>[d(Tl,{onEventIsNumlocation:e(Ut),note:1,locationData:e(Je),locationDialog:e(Pe),"onUpdate:locationDialog":$[25]||($[25]=C=>T(Pe)?Pe.value=C:null)},null,8,["onEventIsNumlocation","locationData","locationDialog"])]),_:1},8,["modelValue"]),d(me,{style:{width:"50%"},modelValue:e(xt),"onUpdate:modelValue":$[27]||($[27]=C=>T(xt)?xt.value=C:null),title:""},{default:u(()=>[c0]),_:1},8,["modelValue"]),d(me,{style:{width:"70%"},modelValue:e(He),"onUpdate:modelValue":$[29]||($[29]=C=>T(He)?He.value=C:null),title:""},{default:u(()=>[t("div",p0,[m0,d($e,{style:{"margin-left":"20px"},modelValue:e(ne).dateInfo,"onUpdate:modelValue":$[28]||($[28]=C=>e(ne).dateInfo=C),type:"date","value-format":"YYYY-MM-DD",placeholder:"Please select",onChange:e($t)},null,8,["modelValue","onChange"]),v0,t("div",null,a(e(ne).Terapist),1)]),(n(!0),o(V,null,D(e(he),(C,O)=>(n(),o("table",{class:"createOrderobj_box",key:O},[t("tr",null,[t("td",g0,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,(Se,w)=>(n(),o("td",{key:w},[t("div",{class:E(["time_value_box",[Se.status=="stop"?"stop":"time_value_box",Se.status=="free"?"free":"time_value_box",Se.status=="new"?"new":"time_value_box",Se.status=="Check In"?"check_in":"time_value_box",Se.status=="payment"?"payment":"time_value_box",Se.status=="canceled"?"canceled":"time_value_box",Se.status=="email"?"Email":"time_value_box",Se.status=="invoice"?"Invoice":"time_value_box"]])},[t("div",h0,a(Se.time_value),1),t("div",y0,a(Se.client_name.first_name)+" "+a(Se.client_name.last_name)+" ( "+a(Se.status)+" ) ",1)],2)]))),128))]))),128))]))),128))]),_:1},8,["modelValue"]),d(me,{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(oe).bookingorder_id,onOnbKDetail:e(_)},null,8,["bookingDetailDialog1","bookingorder_id","onOnbKDetail"])]),_:1},8,["modelValue"])])}}});const Un=dl(f0,[["__scopeId","data-v-7ac2ff91"]]),d3=Object.freeze(Object.defineProperty({__proto__:null,default:Un},Symbol.toStringTag,{value:"Module"})),ae=X=>(sl("data-v-fa11dc58"),X=X(),il(),X),k0={class:"main"},x0={class:"dialog_procure_box dialog_procure_box1",style:{"margin-top":"0px"}},C0={class:"dialog_procure_box"},$0={class:"dialog_procure_box"},V0=ae(()=>t("div",{style:{margin:"0 4px 0 0"}},"Sort By :",-1)),D0={class:"online_img_box"},w0={key:0,class:"online_img",src:kn,alt:""},I0={key:1},U0={class:"online_img_box"},S0={key:0,class:"vip_icon",src:xn,alt:""},A0={key:1},P0={class:"online_img_box"},N0={key:0,class:"dialog_tilte"},T0={key:1,class:"dialog_procure_box",style:{margin:"0px 0 10px 0"}},E0=["onClick"],M0={key:2,class:"basic_box"},B0=ae(()=>t("span",{style:{margin:"0 0 0 0px"}},"Name : ",-1)),Y0=ae(()=>t("span",null,"Phone : ",-1)),O0=ae(()=>t("span",null,"Email : ",-1)),F0=ae(()=>t("span",null,"Upcoming Booking : ",-1)),z0=ae(()=>t("span",null,"Last treatment : ",-1)),R0={key:3,class:"createOrderobj_box"},j0=ae(()=>t("td",{width:"10%",class:"td_title"},"First Name",-1)),L0={width:"20%"},Q0={key:0},H0=ae(()=>t("td",{width:"10%",class:"td_title"},"Last Name",-1)),W0={key:0},q0=ae(()=>t("td",{width:"10%",class:"td_title"},"Address",-1)),G0={width:"20%"},Z0={key:0},K0=ae(()=>t("td",{class:"td_title"},"City",-1)),X0={key:0},J0=ae(()=>t("td",{class:"td_title"},"Province",-1)),ek={key:0},tk=ae(()=>t("td",{class:"td_title"},"Country",-1)),lk={key:0},nk=ae(()=>t("td",{class:"td_title"},"Postal",-1)),ok={key:0},ak=ae(()=>t("td",{class:"td_title"},"Patient File #",-1)),sk={key:0},ik=ae(()=>t("td",{class:"td_title"},[r("Email"),t("span",{class:"red"}," * ")],-1)),dk={key:0},uk={class:"td_title"},rk={key:0,class:"red"},_k={colspan:"3"},ck={key:0},pk={key:3,style:{color:"red","margin-left":"10px"}},mk=ae(()=>t("td",{class:"td_title"},"Gender",-1)),vk={key:0},gk={key:1,class:"allQuestions_box1"},hk=["onClick"],yk=ae(()=>t("td",{class:"td_title"},"Insurance Company",-1)),bk={key:0},fk=ae(()=>t("td",{class:"td_title"},"Coverage Type",-1)),kk={key:0,class:"createOrderobj_box11"},xk={class:"createOrderobj_box66_tr",style:{"font-size":"12px"}},Ck={key:0,class:"red"},$k={key:0,class:"red"},Vk={key:0,class:"red"},Dk={key:0,class:"red"},wk={key:0},Ik={key:0},Uk=ae(()=>t("td",{style:{"text-align":"center",padding:"5px 0"},colspan:"6"}," no data ",-1)),Sk=[Uk],Ak={key:0},Pk=["onUpdate:modelValue"],Nk={key:0},Tk=["onUpdate:modelValue"],Ek={key:0},Mk={key:0},Bk=["onUpdate:modelValue"],Yk={key:0},Ok=ae(()=>t("td",{class:"td_title"},"Insurance Num",-1)),Fk={key:0},zk=ae(()=>t("td",{class:"td_title",width:"11%"},"D.O.B",-1)),Rk={key:0},jk=ae(()=>t("td",{class:"td_title"},"Booking notice type",-1)),Lk={key:0},Qk={key:1,class:"Service_box11"},Hk=["onClick"],Wk=ae(()=>t("td",{class:"td_title"},"Is VIP",-1)),qk={key:0,style:{color:"#fd6b2d"}},Gk=ae(()=>t("td",{class:"td_title"},"Note",-1)),Zk={colspan:"5"},Kk={key:0},Xk={colspan:"6"},Jk={style:{display:"flex","justify-content":"flex-end"}},ex={key:4,class:"part_out_button"},tx={key:5},lx={key:6},nx={key:7},ox={key:8},ax={key:9},sx={key:10},ix={style:{margin:"0px 0 10px 0"}},dx={class:"createOrderobj_box11"},ux=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)),rx=["onUpdate:modelValue"],_x={style:{"margin-top":"13px"}},cx={class:"part_out_button"},px=ae(()=>t("div",{class:"dialog_tilte"},"payment",-1)),mx={class:"createOrderobj_box"},vx=ae(()=>t("td",{width:"30%"},[r("Client"),t("span",{class:"red"}," * ")],-1)),gx=ae(()=>t("td",null,[r("Pay Amount"),t("span",{class:"red"}," * ")],-1)),hx=ae(()=>t("td",null,"Collection Time",-1)),yx=ae(()=>t("td",null,[r("Pay Method"),t("span",{class:"red"},"*")],-1)),bx={key:0},fx=ae(()=>t("td",null,[r("Check Number"),t("span",{class:"red"}," * ")],-1)),kx=ae(()=>t("td",null,"Account ID",-1)),xx=ae(()=>t("td",null,"Comment",-1)),Cx={colspan:"5"},$x={class:"part_out_button"},Vx=ae(()=>t("div",{class:"dialog_tilte"},null,-1)),Dx={class:"createOrderobj_box"},wx=["onUpdate:modelValue"],Ix=["onUpdate:modelValue"],Ux=["onUpdate:modelValue"],Sx=["onUpdate:modelValue"],Ax=["onUpdate:modelValue"],Px=["onUpdate:modelValue"],Nx=["onUpdate:modelValue"],Tx={class:"part_out_button"},Ex=ae(()=>t("div",{class:"dialog_tilte"},"Family Relation",-1)),Mx={style:{margin:"-10px 0 10px 0"}},Bx={class:"createOrderobj_box"},Yx=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)),Ox=["onUpdate:modelValue"],Fx={style:{"margin-top":"13px"}},zx={class:"part_out_button"},Rx={class:"dialog_procure_box dialog_procure_box1",style:{margin:"0px 0 -20px 0"}},jx={class:"dialog_procure_box"},Lx={class:"dialog_procure_box"},Qx=ae(()=>t("div",{style:{margin:"0 4px 0 0"}},"Sort By :",-1)),Hx={class:"online_img_box"},Wx={key:0,class:"online_img",src:kn,alt:""},qx={key:1},Gx={class:"online_img_box"},Zx={key:0,class:"vip_icon",src:xn,alt:""},Kx={key:1},Xx={class:"online_img_box"},Jx=at({name:"/crm/yuyue/components/Client"}),eC=at({...Jx,props:{str:{type:String,default:""},ClientData:{type:Object,default:""},ClientDialog:{type:Boolean,default:""}},emits:["update:ClientDialog","update:eventIsNum"],setup(X,{emit:ve}){const P=X,ye=ue(),z=Ae({}),Tt=Ae({}),ge=Ae({}),ht=Ae({});Ae({});const yt=Ae({}),bt=Ae({}),pe=ue(!1),st=ue(!1),je=ue(!1),it=ue(!1),Ue=ue(!1),De=ue(""),F=ue(1),We=ue("Action");ue("");const be=ue(!1),se=ue([]),I=ue([]),Le=ue([]),ft=ue([]),Qe=ue([]),p=ue([]),It=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=Ae({client_name:"",Client_id:"",Client_name:"",client_id:""});Ae({name:"",id:"",clinic_id:""});const Te=Ae({total:0,pageSize:15,currentPage:1,background:!0,pageSizes:[10,30,50,100]}),Ee=ue([{id:1,text:"Mobile SMS",value:"message",is_selected:0},{id:2,text:"Email",value:"email",is_selected:1}]),le=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"}]),U=[{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")}],fe=["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"],Me=[{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")}],G=["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"],ne=ue([{id:1,text:"Male",value:1,is_selected:0},{id:2,text:"Female",value:2,is_selected:0}]),qe=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(P.ClientData,(_,g)=>{ke()});const Y=Ae({name:"",customer_id:"",pay_amount:"",pay_method:"",cheque_number:"",content:"",service_name:"",duration:"",invoice_price:"",time:"",other:"",account_id:""}),te=Ae({order_key:"",material_key:"",truck_key:"",truck_id:"",comment:"",show:"",searchKey:"",tableIndex:"",order_by:"last_name",type:""}),x=Ae({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"));te.type=g;let R="";P.ClientData.clinic_id&&(R=P.ClientData.clinic_id,De.value=P.ClientData.clinic_id),g==2&&(R=localStorage.getItem("clinicIdOverall"),De.value=localStorage.getItem("clinicIdOverall")),pe.value=!0;const{data:$}=await zo(Object.assign(z,{searchKey:te.searchKey,clinic_id:R,page:Te.currentPage,pageSize:Te.pageSize,order_by:te.order_by}));We.value="Action",Te.total=$.total_record,se.value=$.data,_=="edit"&&ve("eventIsNum"),pe.value=!1}function Pe(){F.value=2,te.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,it.value=!0}function Ut(_){F.value=1,te.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,Ee.value.forEach((g,R)=>{g.is_selected=0,_.booking_notice_type&&_.booking_notice_type.includes(g.value)&&(g.is_selected=1)}),Ot(_),it.value=!0}async function Je(){pe.value=!0;const{data:_}=await Ro(Object.assign(Tt,{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:De,booking_notice_type:x.booking_notice_type,insurance_coverage_type:x.insurance_coverage_type}));_.code==0?(pe.value=!1,ke("edit"),it.value=!1):(pe.value=!1,ot({type:"error",message:_.msg}))}const Q=(_,g)=>{P.str==1?(P.ClientData.name=_.firstName?_.firstName+" "+_.lastName:_.showText,P.ClientData.id=_.id,ve("update:ClientDialog",!1),ve("eventIsNum")):Ut(_)},dt=(_,g)=>{if(P.str==1){if(_.length>1){const R=_.shift(),{toggleRowSelection:$}=ye.value.getTableRef();$(R,!1)}P.ClientData.name=g.firstName+" "+g.lastName,P.ClientData.id=g.id,ve("update:ClientDialog",!1),ve("eventIsNum")}};async function kt(){const{data:_}=await Ho(Object.assign(ge,{customer_id:x.customer_id}));_.code==1?(it.value=!1,ke(),ot({type:"success",message:_.msg})):ot({type:"error",message:_.msg})}const jt=()=>{hn.confirm("Are you sure you want to delete this location",{confirmButtonText:"confirm",cancelButtonText:"cancel",type:"warning"}).then(()=>{kt()}).catch(()=>{ot({type:"info",message:"Canceled"})})};function Lt(_){x.sex=_.value}function xt(_){if(x.phone_code==""||x.phone_code=="0086")return;if(_=_.replace("(",""),_=_.replace(")",""),_=_.replace("-",""),/[^\d]/g.test(_)){ot({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 Qt(){if(pe.value=!0,Y.pay_method!="Cheque"&&(Y.cheque_number=""),Y.pay_method=="Cheque"&&Y.cheque_number==""){ot({type:"error",message:"Please enter cheque number"});return}if(Y.pay_method=="Other"){if(Y.other==""){ot({type:"error",message:"Please enter pay method"});return}Y.other}else Y.pay_method;const{data:_}=await jo(Object.assign(ht,{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(),ot({type:"success",message:_.msg}),be.value=!1):ot({type:"error",message:_.msg}),pe.value=!1}function we(_){_==null&&(x.phone_code="")}function Ct(_){_==null&&(Y.pay_method="")}function $t(_){_.is_selected==1?_.is_selected=0:_.is_selected==0&&(_.is_selected=1);let g=[];Ee.value.forEach((R,$)=>{R.is_selected==1&&g.push(R.value)}),x.booking_notice_type=g.toString()}async function K(){pe.value=!0;const{data:_}=await Lo(Object.assign(yt,{customer_list:Qe.value,title_list:I.value,role:"therapists",clinic_id:""}));_.code==1?(pe.value=!1,ke(),st.value=!1,ot({type:"success",message:_.msg})):(pe.value=!1,ot({type:"error",message:_.msg}))}function lt(_){Te.pageSize=_,ke()}function _t(_){Te.currentPage=_,ke()}function Ot(_){Ye.client_name=_.Principal_Client_name+"(#"+_.Principal_Client_id+")",Ye.client_id=_.Principal_Client_id,te.searchKey&&(te.searchKey="",ke()),p.value=JSON.parse(JSON.stringify(_.relation_arr))}function He(){We.value="Action1",Ue.value=!0}const he=(_,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),Ue.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(()=>{ot({type:"info",message:"Canceled"})})};async function Vt(){const{data:_}=await Qo(Object.assign(bt,{Principal_Client_id:Ye.client_id,relation:p.value}));_.code==1?(je.value=!1,te.searchKey="",ke(),ot({type:"success",message:_.msg})):ot({type:"error",message:_.msg})}function Ge(_){te.tableIndex=_}function Zt(){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 Ze(){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 oe(){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(),oe()}),(_,g)=>{const R=H("el-button"),$=H("el-option"),Ce=H("el-select"),Dt=H("el-cascader"),M=H("el-date-picker"),me=H("el-switch"),$e=H("el-dialog");return n(),o("div",k0,[t("div",x0,[t("div",C0,[f(t("input",{class:"input","onUpdate:modelValue":g[0]||(g[0]=v=>te.searchKey=v),type:"text"},null,512),[[k,te.searchKey]]),d(R,{style:{"margin-left":"20px"},type:"primary",onClick:g[1]||(g[1]=v=>ke())},{default:u(()=>[r("Search")]),_:1})]),t("div",$0,[V0,d(Ce,{style:{width:"150px"},clearable:"true",modelValue:te.order_by,"onUpdate:modelValue":g[2]||(g[2]=v=>te.order_by=v),placeholder:"Please select",onChange:Zt},{default:u(()=>[(n(!0),o(V,null,D(qe.value,v=>(n(),A($,{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=>Pe()),plain:""},{default:u(()=>[r("Add Client")]),_:1})])]),d(e(xl),{title:"设备列表",selectArr:fe,onRefresh:_.onSearch},{default:u(({size:v,checkList:C})=>[d(e(kl),{border:"","highlight-current-row":"",ref_key:"singleTableRef",ref:ye,onSelect:dt,onRowClick:Q,"max-height":"500","align-whole":"center",showOverflowTooltip:"","table-layout":"auto",loading:pe.value,size:"small",data:se.value,columns:U,checkList:C,pagination:Te,paginationSmall:v==="small","header-cell-style":{background:"var(--el-table-row-hover-bg-color)",color:"var(--el-text-color-primary)"},onSizeChange:lt,onCurrentChange:_t},{Gender:u(({row:O})=>[r(a(O.sex==1?"Male":"Female"),1)]),Online:u(({row:O})=>[t("div",D0,[O.is_online==1?(n(),o("img",w0)):(n(),o("div",I0))])]),IsVIP:u(({row:O})=>[t("div",U0,[O.is_vip?(n(),o("img",S0)):(n(),o("div",A0))])]),Relation:u(({row:O})=>[t("div",P0,a(O.relation_show)+" ",1)]),operation:u(({row:O})=>[d(R,{link:"",type:"primary",size:v,onClick:fl(W=>Ut(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:it.value,"onUpdate:modelValue":g[29]||(g[29]=v=>it.value=v),title:"",draggable:""},{default:u(()=>[x.customer_id==""?(n(),o("div",N0," Add Client ")):i("",!0),x.customer_id?(n(),o("div",T0,[(n(!0),o(V,null,D(It.value,(v,C)=>(n(),o("div",{class:E(["situationArr_desc",[te.tableIndex==C?"situationArr_active":"situationArr_desc"]]),key:v.id,onClick:O=>Ge(C)},a(v.name),11,E0))),128))])):i("",!0),x.customer_id?(n(),o("div",M0,[t("div",null,[B0,r(a(x.firstNameT)+a(x.lastNameT),1)]),t("div",null,[Y0,r(a(x.phoneT),1)]),t("div",null,[O0,r(a(x.emailT),1)]),t("div",null,[F0,r(a(x.upcoming_bookingT),1)]),t("div",null,[z0,r(a(x.last_treatmentT),1)])])):i("",!0),te.tableIndex==0?(n(),o("table",R0,[t("tr",null,[j0,t("td",L0,[F.value==1?(n(),o("div",Q0,a(x.firstName),1)):i("",!0),F.value==2?f((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)]),H0,t("td",null,[F.value==1?(n(),o("div",W0,a(x.lastName),1)):i("",!0),F.value==2?f((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)]),q0,t("td",G0,[F.value==1?(n(),o("div",Z0,a(x.address),1)):i("",!0),F.value==2?f((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,[K0,t("td",null,[F.value==1?(n(),o("div",X0,a(x.city),1)):i("",!0),F.value==2?f((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)]),J0,t("td",null,[F.value==1?(n(),o("div",ek,a(x.state),1)):i("",!0),F.value==2?f((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)]),tk,t("td",null,[F.value==1?(n(),o("div",lk,a(x.country),1)):i("",!0),F.value==2?f((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,[nk,t("td",null,[F.value==1?(n(),o("div",ok,a(x.postal),1)):i("",!0),F.value==2?f((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)]),ak,t("td",null,[F.value==1?(n(),o("div",sk,a(x.patient_file),1)):i("",!0),F.value==2?f((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)]),ik,t("td",null,[F.value==1?(n(),o("div",dk,a(x.email),1)):i("",!0),F.value==2?f((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",uk,[r(" Phone"),F.value==2?(n(),o("span",rk,"*")):i("",!0)]),t("td",_k,[F.value==1?(n(),o("div",ck," ("+a(x.phone_code)+")"+a(x.phone),1)):i("",!0),F.value==2?(n(),A(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(),A($,{key:v.id,label:v.text,value:v.value},null,8,["label","value"]))),128))]),_:1},8,["modelValue"])):i("",!0),F.value==2?f((n(),o("input",{key:2,"onUpdate:modelValue":g[14]||(g[14]=v=>x.phone=v),onInput:g[15]||(g[15]=v=>xt(x.phone)),class:"input",type:"text"},null,544)),[[k,x.phone]]):i("",!0),F.value==2?(n(),o("span",pk,"Either email or phone information is required")):i("",!0)]),mk,t("td",null,[F.value==1?(n(),o("div",vk,a(x.sex==1?"Male":"Female"),1)):i("",!0),F.value==2?(n(),o("div",gk,[(n(!0),o(V,null,D(ne.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=>Lt(v,C)},[t("div",{class:E(["selected_min",{selected_min_active:v.value==x.sex}])},null,2)],10,hk),r(" "+a(v.text),1)]))),128))])):i("",!0)])]),t("tr",null,[yk,t("td",null,[F.value==1?(n(),o("div",bk,a(x.insuranceCompany),1)):i("",!0),F.value==2?f((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)]),fk,t("td",null,[x.insurance_coverage_type?(n(),o("table",kk,[t("tr",xk,[t("td",null,[r("Type"),F.value==2?(n(),o("span",Ck,"*")):i("",!0)]),t("td",null,[r(" Limit Amount"),F.value==2?(n(),o("span",$k,"*")):i("",!0)]),t("td",null,[r(" Begin Time"),F.value==2?(n(),o("span",Vk,"*")):i("",!0)]),t("td",null,[r(" Rate(%)"),F.value==2?(n(),o("span",Dk,"*")):i("",!0)]),F.value==2?(n(),o("td",wk,"Action")):i("",!0)]),x.insurance_coverage_type.length==0?(n(),o("tr",Ik,Sk)):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",Ak,a(v.type),1)):i("",!0),F.value==2?f((n(),o("input",{key:1,"onUpdate:modelValue":O=>v.type=O,class:"input33",type:"text"},null,8,Pk)),[[k,v.type]]):i("",!0)]),t("td",null,[F.value==1?(n(),o("div",Nk,a(v.limit_amount),1)):i("",!0),F.value==2?f((n(),o("input",{key:1,"onUpdate:modelValue":O=>v.limit_amount=O,class:"input33",type:"text"},null,8,Tk)),[[k,v.limit_amount]]):i("",!0)]),t("td",null,[F.value==1?(n(),o("div",Ek,a(v.begin_time),1)):i("",!0),F.value==2?(n(),A(Dt,{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",Mk,a(v.rate),1)):i("",!0),F.value==2?f((n(),o("input",{key:1,"onUpdate:modelValue":O=>v.rate=O,class:"input33",type:"text"},null,8,Bk)),[[k,v.rate]]):i("",!0)]),F.value==2?(n(),o("td",Yk,[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(),A(R,{key:1,style:{"margin-top":"8px"},size:"small",type:"primary",plain:"",onClick:g[17]||(g[17]=v=>Ze())},{default:u(()=>[r("Add")]),_:1})):i("",!0)]),Ok,t("td",null,[F.value==1?(n(),o("div",Fk,a(x.insuranceNum),1)):i("",!0),F.value==2?f((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,[zk,t("td",null,[F.value==1?(n(),o("div",Rk,a(x.direct_of_billing),1)):i("",!0),F.value==2?(n(),A(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)]),jk,t("td",null,[F.value==1?(n(),o("div",Lk,a(x.booking_notice_type),1)):i("",!0),F.value==2?(n(),o("div",Qk,[(n(!0),o(V,null,D(Ee.value,v=>(n(),o("div",{class:E(["service_desc",{service_desc_active:v.is_selected==1}]),key:v.id,onClick:fl(C=>$t(v),["stop"])},a(v.text),11,Hk))),128))])):i("",!0)]),Wk,t("td",null,[F.value==1?(n(),o("div",qk,a(x.is_vip?"Vip":""),1)):i("",!0),F.value==2?(n(),A(me,{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,[Gk,t("td",Zk,[F.value==1?(n(),o("div",Kk,a(x.comment),1)):i("",!0),F.value==2?f((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",Xk,[t("div",Jk,[d(R,{plain:"",type:"danger",size:"small",onClick:g[22]||(g[22]=fl(v=>jt(_.row),["stop"]))},{default:u(()=>[r(" Delete ")]),_:1})])])])])):i("",!0),te.tableIndex==0?(n(),o("div",ex,[F.value==1?(n(),A(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(),A(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(),A(R,{key:2,style:{"margin-left":"20px"},loading:pe.value,type:"primary",onClick:g[25]||(g[25]=v=>Je())},{default:u(()=>[r("Save")]),_:1},8,["loading"])):i("",!0),x.customer_id==""?(n(),A(R,{key:3,style:{"margin-left":"20px"},loading:pe.value,type:"primary",onClick:g[26]||(g[26]=v=>Je())},{default:u(()=>[r("Submit")]),_:1},8,["loading"])):i("",!0)])):i("",!0),te.tableIndex==2?(n(),o("div",tx,[d(Un,{str:1,customer_id:x.customer_id},null,8,["customer_id"])])):i("",!0),te.tableIndex==3&&te.type==1?(n(),o("div",lx,[d(v_,{str:1,customer_id:x.customer_id,customer_name:x.customer_name},null,8,["customer_id","customer_name"])])):i("",!0),te.tableIndex==3&&te.type==2?(n(),o("div",nx,[d(Ad,{str:1,customer_id:x.customer_id,customer_name:x.customer_name},null,8,["customer_id","customer_name"])])):i("",!0),te.tableIndex==4?(n(),o("div",ox,[d(Sn,{customer_name:x.customer_name,str:1,customer_id:x.customer_id},null,8,["customer_name","customer_id"])])):i("",!0),te.tableIndex==5?(n(),o("div",ax,[d(na,{str:1,customer_id:x.customer_id},null,8,["customer_id"])])):i("",!0),te.tableIndex==1?(n(),o("div",sx,[t("div",ix," Master : "+a(Ye.client_name),1),t("table",dx,[ux,(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,[f(t("input",{style:{height:"28px"},class:"input","onUpdate:modelValue":O=>v.relationship=O,type:"text"},null,8,rx),[[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",_x,[d(R,{type:"primary",plain:"",size:"small",onClick:g[27]||(g[27]=v=>He())},{default:u(()=>[r("Add User")]),_:1})]),t("div",cx,[d(R,{type:"primary",loading:pe.value,onClick:g[28]||(g[28]=v=>Vt())},{default:u(()=>[r("Submit")]),_:1},8,["loading"])])])):i("",!0)]),_:1},8,["modelValue"]),d($e,{style:{width:"50%"},modelValue:be.value,"onUpdate:modelValue":g[39]||(g[39]=v=>be.value=v),title:""},{default:u(()=>[px,t("table",mx,[t("tr",null,[vx,t("td",null,[f(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,[gx,t("td",null,[f(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,[hx,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,[yx,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:Ct},{default:u(()=>[(n(!0),o(V,null,D(le.value,v=>(n(),A($,{key:v.id,label:v.text,value:v.value},null,8,["label","value"]))),128))]),_:1},8,["modelValue"]),Y.pay_method=="Other"?f((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",bx,[fx,t("td",null,[f(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,[kx,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(Le.value,v=>(n(),A($,{key:v.id,label:v.text,value:v.value},null,8,["label","value"]))),128))]),_:1},8,["modelValue"])])]),t("tr",null,[xx,t("td",Cx,[f(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",$x,[d(R,{type:"primary",loading:pe.value,onClick:g[38]||(g[38]=v=>Qt())},{default:u(()=>[r("Submit")]),_:1},8,["loading"])])]),_:1},8,["modelValue"]),d($e,{style:{width:"92%"},modelValue:st.value,"onUpdate:modelValue":g[41]||(g[41]=v=>st.value=v),title:""},{default:u(()=>[Vx,t("table",Dx,[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(ft.value,(O,W)=>(n(),A($,{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,[f(t("input",{class:"input","onUpdate:modelValue":O=>v.value1=O,type:"text"},null,8,wx),[[k,v.value1]])]),t("td",null,[f(t("input",{class:"input","onUpdate:modelValue":O=>v.value2=O,type:"text"},null,8,Ix),[[k,v.value2]])]),t("td",null,[f(t("input",{class:"input","onUpdate:modelValue":O=>v.value3=O,type:"text"},null,8,Ux),[[k,v.value3]])]),t("td",null,[f(t("input",{class:"input","onUpdate:modelValue":O=>v.value4=O,type:"text"},null,8,Sx),[[k,v.value4]])]),t("td",null,[f(t("input",{class:"input","onUpdate:modelValue":O=>v.value5=O,type:"text"},null,8,Ax),[[k,v.value5]])]),t("td",null,[f(t("input",{class:"input","onUpdate:modelValue":O=>v.value6=O,type:"text"},null,8,Px),[[k,v.value6]])]),t("td",null,[f(t("input",{class:"input","onUpdate:modelValue":O=>v.value7=O,type:"text"},null,8,Nx),[[k,v.value7]])])]))),128))]),t("div",Tx,[d(R,{type:"primary",loading:pe.value,onClick:g[40]||(g[40]=v=>K())},{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(()=>[Ex,t("div",Mx," Master : "+a(Ye.client_name),1),t("table",Bx,[Yx,(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,[f(t("input",{class:"input","onUpdate:modelValue":O=>v.relationship=O,type:"text"},null,8,Ox),[[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",Fx,[d(R,{type:"primary",plain:"",size:"small",onClick:g[42]||(g[42]=v=>He())},{default:u(()=>[r("Add User")]),_:1})]),t("div",zx,[d(R,{type:"primary",loading:pe.value,onClick:g[43]||(g[43]=v=>Vt())},{default:u(()=>[r("Submit")]),_:1},8,["loading"])])]),_:1},8,["modelValue"]),d($e,{style:{width:"78%"},modelValue:Ue.value,"onUpdate:modelValue":g[49]||(g[49]=v=>Ue.value=v),title:"",draggable:""},{default:u(()=>[t("div",Rx,[t("div",jx,[f(t("input",{class:"input","onUpdate:modelValue":g[45]||(g[45]=v=>te.searchKey=v),type:"text"},null,512),[[k,te.searchKey]]),d(R,{style:{"margin-left":"20px"},type:"primary",onClick:g[46]||(g[46]=v=>ke())},{default:u(()=>[r("Search")]),_:1})]),t("div",Lx,[Qx,d(Ce,{style:{width:"150px"},clearable:"true",modelValue:te.order_by,"onUpdate:modelValue":g[47]||(g[47]=v=>te.order_by=v),placeholder:"Please select",onChange:Zt},{default:u(()=>[(n(!0),o(V,null,D(qe.value,v=>(n(),A($,{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=>Pe()),plain:""},{default:u(()=>[r("Add Client")]),_:1})])]),d(e(xl),{title:"设备列表",selectArr:G,onRefresh:_.onSearch},{default:u(({size:v,checkList:C})=>[d(e(kl),{border:"","highlight-current-row":"",ref_key:"singleTableRef",ref:ye,onSelect:dt,onRowClick:he,"max-height":"500","align-whole":"center",showOverflowTooltip:"","table-layout":"auto",loading:pe.value,size:"small",data:se.value,columns:Me,checkList:C,pagination:Te,paginationSmall:v==="small","header-cell-style":{background:"var(--el-table-row-hover-bg-color)",color:"var(--el-text-color-primary)"},onSizeChange:lt,onCurrentChange:_t},{Gender:u(({row:O})=>[r(a(O.sex==1?"Male":"Female"),1)]),Online:u(({row:O})=>[t("div",Hx,[O.is_online==1?(n(),o("img",Wx)):(n(),o("div",qx))])]),IsVIP:u(({row:O})=>[t("div",Gx,[O.is_vip?(n(),o("img",Zx)):(n(),o("div",Kx))])]),Relation:u(({row:O})=>[t("div",Xx,a(O.relation_show)+" ",1)]),_:2},1032,["loading","data","checkList","pagination","paginationSmall","header-cell-style"])]),_:1},8,["onRefresh"])]),_:1},8,["modelValue"])])}}});const pl=dl(eC,[["__scopeId","data-v-fa11dc58"]]),u3=Object.freeze(Object.defineProperty({__proto__:null,default:pl},Symbol.toStringTag,{value:"Module"})),Xe=X=>(sl("data-v-d7ab692c"),X=X(),il(),X),tC={class:"main"},lC={class:"dialog_procure_box dialog_procure_box1",style:{"margin-top":"0px"}},nC={class:"dialog_procure_box"},oC=["onClick"],aC={class:"pay_id"},sC={class:"pay_id"},iC={class:"pay_id"},dC={key:0,class:"createOrderobj_box"},uC=Xe(()=>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)),rC={key:1,class:"no_data"},_C=Xe(()=>t("div",{class:"dialog_tilte"},"payment",-1)),cC={class:"createOrderobj_box"},pC=Xe(()=>t("td",{width:"30%"},[r("Client"),t("span",{class:"red"}," * ")],-1)),mC=Xe(()=>t("td",null,[r("Pay Amount"),t("span",{class:"red"}," * ")],-1)),vC=Xe(()=>t("td",null,"Collection Time",-1)),gC=Xe(()=>t("td",null,[r("Pay Method"),t("span",{class:"red"},"*")],-1)),hC={key:0},yC=Xe(()=>t("td",null,[r("Check Number"),t("span",{class:"red"}," * ")],-1)),bC=Xe(()=>t("td",null,"Account ID",-1)),fC=Xe(()=>t("td",null,"Comment",-1)),kC={colspan:"5"},xC={class:"part_out_button"},CC=Xe(()=>t("div",{class:"dialog_tilte"},"Used Information",-1)),$C={class:"createOrderobj_box"},VC=Xe(()=>t("td",{width:"30%"},"Pay Amount:",-1)),DC=Xe(()=>t("td",null,[r("Service Name"),t("span",{class:"red"},"*"),r(":")],-1)),wC={key:0},IC={key:1,class:"Service_box12"},UC=["onClick"],SC=Xe(()=>t("td",null,[r("Used Type"),t("span",{class:"red"},"*"),r(":")],-1)),AC={class:"allQuestions_box1"},PC=["onClick"],NC=["disabled","onUpdate:modelValue"],TC=Xe(()=>t("td",null,[r("Period Date"),t("span",{class:"red"},"*"),r(":")],-1)),EC={class:"part_out_button"},MC={class:"dialog_procure_box dialog_procure_box1",style:{width:"100%"}},BC={class:"dialog_procure_box"},YC=Xe(()=>t("span",{class:"red"},"*",-1)),OC={class:"Service_box11"},FC=["onClick"],zC={class:"Find_box"},RC={class:"therapist_name"},jC={class:"date_desc"},LC={class:"duration_box"},QC={key:0,class:"dialog_procure_box",style:{"margin-top":"30px"}},HC=Xe(()=>t("div",null,[r("Location"),t("span",{class:"red"},"*"),r(" :")],-1)),WC={key:1,class:"Service_box11",style:{"margin-top":"20px"}},qC=Xe(()=>t("div",null,null,-1)),GC={key:2,class:"Find_box"},ZC={key:0},KC={style:{"margin-left":"20px"}},XC={key:3,class:"part_out_button"},JC={class:"dialog_tilte"},e8={class:"dialog_procure_box"},t8={style:{"font-weight":"bold"}},l8={style:{"margin-left":"50px"}},n8={style:{"font-weight":"bold"}},o8={style:{"margin-left":"50px"}},a8={style:{"font-weight":"bold"}},s8={style:{"margin-top":"20px"}},i8={style:{"font-weight":"bold"}},d8=Xe(()=>t("div",{class:"dialog_tilte"},"file list",-1)),u8={style:{"margin-top":"25px"}},r8=["onClick"],_8=at({name:"/crm/yuyue/PayHistories"}),c8=at({..._8,props:{str:{type:String,default:""},customer_id:{type:String,default:""},customer_name:{type:String,default:""}},setup(X){const ve=X,{searchDetail:P,btnSearchPart:ye,loading:z,small:Tt,selectList:ge,columns:ht,checkList:yt,pagination:bt,handleSizeChange:pe,handleCurrentChange:st,PartList:je,order_date:it,deliverDialog:Ue,selectClick:De,btnDeliverConfirm:F,singleTableRef:We,infoDialog:be,btnInfo:se,infoArr:I,btnDellocation:Le,btnCollection:ft,CollectionDialog:Qe,collectionArr:p,onSelClient:It,ClientData:Ye,ClientDialog:Te,eventIsNum:Ee,btncollectionConfirm:le,payMethodData:U,onPayMethod:fe,GenerateDialog:Me,btnGenerate:G,ServiceData:ne,btnService:qe,DeductionType:Oe,selectedTr:Y,datePeriod:te,disabledBeforeToday:x,btnDatePeriod:ke,btnGenerateConfirm:Pe,btnDeducationShow:Ut,AccountData:Je,btnGenerateInvoice:Q,invoiceDialog:dt,Therapists:kt,disabledBeforeToday1:jt,btnInvoiceTime:Lt,onTherapists:xt,btnFind:Qt,FindData:we,btnSubmitConfirm:Ct,InvoiceDetailDialog:$t,taxData:K,IncludeTax:lt,onIs_tax:_t,onSelectLocation:Ot,locationDialog:He,eventIsNumlocation:he,locationData:L,eventFilter:xe,optionsFilter:Vt,isShowFilter:Ge,btnFilterQuery:Zt,UsedLogDialog:et,logData:ut,addCollectionDialog:Ze,paymentArr:ze,eventPrePay:Z,btnFile:oe,fileDialog:_,onFile:g,fileArr:R,btnDelete:$,btnEidt:Ce}=Eo(ve);return al(()=>{}),(Dt,M)=>{const me=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"),Se=H("el-table");return n(),o("div",tC,[t("div",lC,[t("div",nC,[d(ln,{str:"PayHistories",onEventFilter:e(xe),optionsFilter:e(Vt),isShowFilter:e(Ge),"onUpdate:isShowFilter":M[0]||(M[0]=w=>T(Ge)?Ge.value=w:null)},null,8,["onEventFilter","optionsFilter","isShowFilter"]),d(me,{type:"primary",style:{"margin-left":"20px"},plain:"",size:"small",onClick:M[1]||(M[1]=w=>e(ft)())},{default:u(()=>[r("payment")]),_:1})])]),d(e(xl),{title:"设备列表",selectArr:e(ge),onRefresh:Dt.onSearch},{default:u(({size:w,checkList:ct})=>[d(e(kl),{border:"",ref_key:"singleTableRef",ref:We,onSelect:e(De),"max-height":"500","align-whole":"center",showOverflowTooltip:"","table-layout":"auto",loading:e(z),size:"small",data:e(je),columns:e(ht),checkList:ct,pagination:e(bt),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(st)},{files:u(({row:ie})=>[ie.file.length>0?(n(),o("div",{key:0,style:{cursor:"pointer"},onClick:St=>e(oe)(ie.file)}," file["+a(ie.file.length)+"] ",9,oC)):i("",!0)]),order_sn:u(({row:ie})=>[r(" P"+a(ie.order_id)+"-"+a(ie.order_item_id),1)]),balanceInfo:u(({row:ie})=>[r(a(ie.used_amount>0?ie.used_amount:"")+" ",1),ie.balanceInfo.length>0?(n(),A(me,{key:0,class:"reset-margin reset-margin1",link:"",type:"primary",size:w,onClick:St=>e(se)(ie)},{default:u(()=>[r(" Info ")]),_:2},1032,["size","onClick"])):i("",!0),(e(P).type==2||e(P).type==1)&&ie.used_amount==0&&ie.remain_amount>0?(n(),A(me,{key:1,link:"",type:"primary",size:w,onClick:St=>e(Q)(ie)},{default:u(()=>[r(" Batch Invoice ")]),_:2},1032,["size","onClick"])):i("",!0)]),operation:u(({row:ie})=>[ie.is_can_delete==1?(n(),A(me,{key:0,link:"",type:"primary",size:"small",onClick:St=>e(Ce)(ie)},{default:u(()=>[r(" Eidt ")]),_:2},1032,["onClick"])):i("",!0),ie.is_can_delete==1?(n(),A(me,{key:1,link:"",type:"danger",size:"small",onClick:St=>e($)(ie)},{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(be),"onUpdate:modelValue":M[2]||(M[2]=w=>T(be)?be.value=w:null),title:""},{default:u(()=>[t("div",aC,"Pay ID: "+a(e(I).pay_id),1),t("div",sC,"Amount:"+a(e(I).pay_amount),1),t("div",iC,"Remoin:"+a(e(I).remain_amount),1),e(I)&&e(I).balanceInfo.length>0?(n(),o("table",dC,[uC,(n(!0),o(V,null,D(e(I).balanceInfo,(w,ct)=>(n(),o("tr",{key:w.id},[t("td",null,a(ct+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(me,{class:"reset-margin reset-margin1",link:"",type:"primary",size:Dt.size,onClick:ie=>e(Le)(w)},{default:u(()=>[r(" return ")]),_:2},1032,["size","onClick"])])]))),128))])):i("",!0),e(I)&&e(I).balanceInfo.length==0?(n(),o("div",rC," 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(()=>[_C,t("table",cC,[t("tr",null,[pC,t("td",null,[f(t("input",{disabled:"",class:"input2","onUpdate:modelValue":M[3]||(M[3]=w=>e(p).name=w),type:"text"},null,512),[[k,e(p).name]]),ve.customer_id==""?(n(),A(me,{key:0,type:"primary",style:{"margin-left":"7px"},plain:"",size:"small",onClick:M[4]||(M[4]=w=>e(It)())},{default:u(()=>[r(" Select ")]),_:1})):i("",!0)])]),t("tr",null,[mC,t("td",null,[f(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,[vC,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,[gC,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(fe)},{default:u(()=>[(n(!0),o(V,null,D(e(U),w=>(n(),A(C,{key:w.id,label:w.text,value:w.value},null,8,["label","value"]))),128))]),_:1},8,["modelValue","onChange"]),e(p).pay_method=="Other"?f((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",hC,[yC,t("td",null,[f(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,[bC,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(Je),w=>(n(),A(C,{key:w.id,label:w.text,value:w.value},null,8,["label","value"]))),128))]),_:1},8,["modelValue"])])]),t("tr",null,[fC,t("td",kC,[f(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",xC,[d(me,{loading:e(z),type:"primary",onClick:M[12]||(M[12]=w=>e(le)())},{default:u(()=>[r("Submit")]),_:1},8,["loading"])])]),_:1},8,["modelValue"]),d($e,{style:{width:"78%"},modelValue:e(Te),"onUpdate:modelValue":M[15]||(M[15]=w=>T(Te)?Te.value=w:null),title:""},{default:u(()=>[d(pl,{onEventIsNum:e(Ee),str:1,ClientData:e(Ye),ClientDialog:e(Te),"onUpdate:ClientDialog":M[14]||(M[14]=w=>T(Te)?Te.value=w:null)},null,8,["onEventIsNum","ClientData","ClientDialog"])]),_:1},8,["modelValue"]),d($e,{style:{width:"50%"},modelValue:e(Me),"onUpdate:modelValue":M[18]||(M[18]=w=>T(Me)?Me.value=w:null),title:""},{default:u(()=>[CC,t("table",$C,[t("tr",null,[VC,t("td",null,a(e(P).amount)+" $",1)]),t("tr",null,[DC,t("td",null,[e(ne).length==0?(n(),o("div",wC,"No Data")):i("",!0),e(ne).length>0?(n(),o("div",IC,[(n(!0),o(V,null,D(e(ne),(w,ct)=>(n(),o("div",{class:E(["service_desc",[{service_desc_active:w.is_selected}]]),key:w.id,onClick:ie=>e(qe)(w)},a(w.service_name),11,UC))),128))])):i("",!0)])]),t("tr",null,[SC,t("td",null,[t("div",AC,[(n(!0),o(V,null,D(e(Oe),(w,ct)=>(n(),o("div",{class:"allQuestions_box",key:w.id},[t("div",{class:E(["selected1",{selected_active:w.is_selected}]),onClick:ie=>e(Y)(w)},[t("div",{class:E(["selected_min",{selected_min_active:w.is_selected}])},null,2)],10,PC),t("span",{class:E({selected_desc:w.is_selected})},a(w.show),3),f(t("input",{disabled:!w.is_selected,class:E([{opacity:!w.is_selected},"input2"]),style:{"margin-left":"10px"},"onUpdate:modelValue":ie=>w.value=ie,type:"text"},null,10,NC),[[k,w.value]])]))),128))])])]),t("tr",null,[TC,t("td",null,[d(v,{modelValue:e(te),"onUpdate:modelValue":M[16]||(M[16]=w=>T(te)?te.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",EC,[d(me,{loading:e(z),type:"primary",onClick:M[17]||(M[17]=w=>e(Pe)())},{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",MC,[t("div",null,"Total Amount : "+a(e(P).Total_Amount),1),t("div",BC,[r(" Date"),YC,r(" : "),d(v,{style:{width:"270px"},modelValue:e(P).invoiceTime,"onUpdate:modelValue":M[19]||(M[19]=w=>e(P).invoiceTime=w),type:"datetimerange","start-placeholder":"start date","end-placeholder":"end date",format:"YYYY-MM-DD","value-format":"YYYY-MM-DD",onChange:e(Lt),disabledDate:e(jt)},null,8,["modelValue","onChange","disabledDate"])])]),t("div",OC,[(n(!0),o(V,null,D(e(kt),w=>(n(),o("div",{class:E(["service_desc",{service_desc_active:e(P).therapists.includes(w.id)}]),key:w.id,onClick:ct=>e(xt)(w)},a(w.first_name)+a(w.last_name),11,FC))),128))]),t("div",zC,[d(me,{type:"primary",plain:"",onClick:M[20]||(M[20]=w=>e(Qt)())},{default:u(()=>[r("Find")]),_:1})]),(n(!0),o(V,null,D(e(we),(w,ct)=>(n(),o("div",{class:"show_card",key:w.id},[t("div",RC,a(w.therapist_name),1),(n(!0),o(V,null,D(w.detail,(ie,St)=>(n(),o("div",{key:St},[t("div",jC,a(ie.date)+" : "+a(ie.date_detail.length),1),t("div",LC,[(n(!0),o(V,null,D(ie.date_detail,(Et,rl)=>(n(),o("div",{class:"duration_desc",key:rl}," ( "+a(Et.begin)+"-"+a(Et.end)+" "+a(Et.duration)+" Min "+a(Et.price)+" $) ",1))),128))])]))),128))]))),128)),e(we).length>0?(n(),o("div",QC,[HC,f(t("input",{disabled:"","onUpdate:modelValue":M[21]||(M[21]=w=>e(P).loacation_name=w),class:"input",type:"text"},null,512),[[k,e(P).loacation_name]]),d(me,{type:"primary",style:{"margin-left":"7px"},plain:"",onClick:M[22]||(M[22]=w=>e(Ot)())},{default:u(()=>[r(" Select ")]),_:1})])):i("",!0),e(we).length>0?(n(),o("div",WC,[t("div",null,[r(" + Tax:"),d(W,{onChange:e(_t),style:{margin:"0 50px 0 0"},modelValue:e(P).is_tax1,"onUpdate:modelValue":M[23]||(M[23]=w=>e(P).is_tax1=w)},null,8,["onChange","modelValue"]),r(" Include Tax "),d(O,{disabled:"",style:{width:"130px"},clearable:"true",modelValue:e(P).include_tax,"onUpdate:modelValue":M[24]||(M[24]=w=>e(P).include_tax=w),onChange:e(lt),filterable:"","allow-create":"","default-first-option":"","reserve-keyword":!1,placeholder:"Please select"},{default:u(()=>[(n(!0),o(V,null,D(e(K),w=>(n(),A(C,{key:w.value,label:w.text,value:w.value},null,8,["label","value"]))),128))]),_:1},8,["modelValue","onChange"])]),qC])):i("",!0),e(we).length>0?(n(),o("div",GC,[e(P).is_tax=="Y"?(n(),o("span",ZC,"HST:"+a(e(P).hstValue),1)):i("",!0),t("span",KC,"Total:"+a(e(P).total),1)])):i("",!0),e(we).length>0?(n(),o("div",XC,[d(me,{loading:e(z),type:"primary",onClick:M[25]||(M[25]=w=>e(Ct)())},{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(he),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",JC,a(e(P).location),1),t("div",e8,[t("div",null,[r(" Name:"),t("span",t8,a(e(P).name),1)]),t("div",l8,[r(" Account: "),t("span",n8,a(e(P).Account),1)]),t("div",o8,[r(" Tel:"),t("span",a8,a(e(P).tel),1)])]),t("div",s8,[r(" Pkg:"),t("span",i8,a(e(P).pkg),1)]),d(Se,{data:e(ut),border:"","max-height":"600px","span-method":Dt.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(Ze),"onUpdate:modelValue":M[31]||(M[31]=w=>T(Ze)?Ze.value=w:null),title:""},{default:u(()=>[d(sn,{onEventPrePay:e(Z),str:1,paymentArr:e(ze),addCollectionDialog:e(Ze),"onUpdate:addCollectionDialog":M[30]||(M[30]=w=>T(Ze)?Ze.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(()=>[d8,t("div",u8,[(n(!0),o(V,null,D(e(R),(w,ct)=>(n(),o("div",{class:"file_desc",onClick:ie=>e(g)(w),key:ct},a(w),9,r8))),128))])]),_:1},8,["modelValue"])])}}});const Sn=dl(c8,[["__scopeId","data-v-d7ab692c"]]),r3=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,Rt 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,a3 as q,s3 as r,i3 as s,d3 as t,u3 as u,r3 as v};