HEX
Server: Apache/2.4.6 (CentOS) OpenSSL/1.0.2k-fips PHP/8.2.20
System: Linux 825a8fd6cf8c 3.10.0-1160.95.1.el7.x86_64 #1 SMP Mon Jul 24 13:59:37 UTC 2023 x86_64
User: apache (48)
PHP: 8.2.20
Disabled: NONE
Upload Files
File: /var/www/html/public/static/js/hookPay-legacy-d148d0dd.js
System.register(["./po-legacy-3a05f0ff.js","./vue-router-legacy-a12307c3.js","./index-legacy-42c17c53.js","./message-legacy-10af7c73.js","./runtime-core.esm-bundler-legacy-c5df00b7.js","./index-legacy-dd4862fc.js","./preload-helper-legacy-f8638e03.js","./vue-i18n.runtime.esm-bundler-legacy-720876b1.js","./index-legacy-c9e20962.js","./_commonjsHelpers-legacy-5498c249.js","./utils-legacy-c0023c33.js","./focus-trap-legacy-631b7396.js","./error-legacy-e98f9e58.js"],(function(e,t){"use strict";var a,i,n,o,c,l,s,u,d,r,m,p,y,_,h,g,v,f;return{setters:[e=>{a=e.getPayHistoriesWeb,i=e.getPayDetailWeb,n=e.prePaidWeb,o=e.AddUsedFormModelWeb,c=e.AddUsedFormWeb,l=e.getPreviouInvoiceListWeb,s=e.submitPreviouInvoiceWeb,u=e.UsedFormDetail,d=e.returnPayBalanceWeb,r=e.getClinicsDetailWeb,m=e.DeletePaidWeb},e=>{p=e.d,y=e.u},e=>{_=e.o},e=>{h=e.b7},e=>{g=e.r,v=e.A,f=e.o},null,null,null,null,null,null,null,null],execute:function(){e("useEqu",(function(e){p(),y(),p();const t=g(),b=g({}),A=g(""),x=g(!1),D=g(!1),C=g(!1),P=g(!1),T=g(!1),I=g(!1),k=g(!1),j=g(!1);g("");const w=g(!1),S=g(!1),L=g(!1),W=g(!1),F=g(!1),N=g(!1),O=g(!1),M=g(""),q=g(""),E=g([]),B=g([]),R=g([]),Y=g([]),z=g([]),V=g([]),G=g([]),H=g([]),K=g([]),U=g([]),X=v({}),Q=v({name:"",id:"",sum:"",pay_amount:"",time:"",pay_method:"",files:[],content:"",pay_id:""}),J=v({tableIndex:0,note:""}),Z=g([{value:"Y",text:"Y"},{value:"N",text:"N"}]),$=v({name:"",id:"",clinic_id:""}),ee=v({name:"",id:""}),te=v({}),ae=v({}),ie=v({}),ne=v({}),oe=v({}),ce=v({});v({});const le=v({}),se=v({}),ue=v({}),de=v({}),re=v({}),me=v({name:"",customer_id:"",pay_amount:"",pay_method:"",cheque_number:"",content:"",service_name:"",duration:"",invoice_price:"",time:"",other:"",account_id:""}),pe=v({total:0,pageSize:10,currentPage:1,background:!0,pageSizes:[10,25,50,100]}),ye=g([{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"}]),_e=v({order_key:"",material_key:"",truck_key:"",truck_id:"",comment:"",show:"",searchKey:"",clinic_id:"",type:"",role:"",pay_id:"",amount:"",begin_date:"",end_date:"",therapists:"",therapistsArr:[],invoiceTime:[],Total_Amount:"",show_number:!0,is_tax1:!0,is_tax:"Y",include_tax:"Y",hstValue:"",total:"",company_id:"",loacation_name:"",Account:"",location:"",name:"",pkg:"",tel:""});async function he(){_e.clinic_id=localStorage.getItem("clinicIdOverall"),T.value=!0;const{data:t}=await a(Object.assign(X,{clinic_id:_e.clinic_id,searchKey:_e.searchKey,options:A,customer_id:e.customer_id,pageSize:pe.pageSize,page:pe.currentPage}));1==t.code?(E.value=t.data,pe.total=t.total,T.value=!1):T.value=!1}async function ge(e){const{data:t}=await d(Object.assign(ie,{used_id:e.id}));1==t.code?(ve(q.value),h({type:"success",message:t.msg})):h({type:"error",message:t.msg})}async function ve(e){q.value=e;const{data:t}=await i(Object.assign(ne,{pay_id:q.value.id}));1==t.code?(q.value=t.data,N.value=!0):h({type:"error",message:t.msg})}async function fe(){const{data:e}=await r(Object.assign(le,{searchKey:"",clinic_id:_e.clinic_id}));1==e.code&&(R.value=e.data.therapists_user)}function be(){let e=_e.Total_Amount;_e.is_tax1?"N"==_e.include_tax?(_e.hstValue=Math.round(.13*parseFloat(e)*100)/100,_e.total=Math.round(1.13*parseFloat(e)*100)/100):"Y"==_e.include_tax&&(_e.hstValue=Math.round(parseFloat(e)/1.13*.13*100)/100,_e.total=Math.round(100*parseFloat(e))/100):(_e.hstValue=0,_e.total=Math.round(100*parseFloat(e))/100)}async function Ae(e){const{data:t}=await u(Object.assign(de,{used_id:e}));1==t.code?(_e.pkg=t.date.info.pkg,_e.tel=t.date.info.tel,_e.location=t.date.info.location,_e.name=t.date.info.name,_e.Account=t.date.info.Account,B.value=t.date.detail,P.value=!0):h({type:"error",message:t.msg})}async function xe(e){const{data:t}=await m(Object.assign(re,{pay_id:e.id}));1==t.code?(he(),h({type:"success",message:t.msg})):h({type:"error",message:t.msg})}return f((()=>{_e.type=localStorage.getItem("type"),2==_e.type&&(_e.role="clinic"),1==_e.type&&(_e.role="therapists"),he()})),{searchDetail:_e,btnSearchPart:function(){he()},loading:T,small:O,selectList:["PayId","Files","CustomerId","CustomerName","Pay Amount","Account Name","Invoiced Amount","Remain Amount","Pay Method","Pay Data","Collection Time","Action"],columns:[{type:"selection",width:55,align:"left",hide:({checkList:e})=>!e.includes("勾选列")},{label:"序号列",type:"index",width:70,hide:({checkList:e})=>!e.includes("序号列")},{label:"PayId",prop:"pay_id",minWidth:50,hide:({checkList:e})=>!e.includes("PayId")},{label:"Files",prop:"file",minWidth:50,slot:"files",hide:({checkList:e})=>!e.includes("Files")},{label:"CustomerId",prop:"customer_id",minWidth:100,hide:({checkList:e})=>!e.includes("CustomerId")},{label:"CustomerName",prop:"customername",minWidth:100,hide:({checkList:e})=>!e.includes("CustomerName")},{label:"Pay Amount",prop:"pay_amount",minWidth:100,hide:({checkList:e})=>!e.includes("Pay Amount")},{label:"Account Name",prop:"account_name",minWidth:100,hide:({checkList:e})=>!e.includes("Account Name")},{label:"Invoiced Amount",prop:"balanceInfo",minWidth:120,slot:"balanceInfo",hide:({checkList:e})=>!e.includes("Invoiced Amount")},{label:"Remain Amount",prop:"remain_amount",minWidth:120,hide:({checkList:e})=>!e.includes("Remain Amount")},{label:"Pay Method",prop:"pay_method",minWidth:150,hide:({checkList:e})=>!e.includes("Pay Method")},{label:"Pay Data",prop:"create_time",minWidth:120,hide:({checkList:e})=>!e.includes("Pay Data")},{label:"Collection Time",prop:"collection_time",minWidth:120,hide:({checkList:e})=>!e.includes("Collection Time")},{label:"Action",fixed:"right",width:200,slot:"operation",align:"left",hide:({checkList:e})=>!e.includes("Action")}],pagination:pe,handleSizeChange:function(e){pe.pageSize=e,he()},handleCurrentChange:function(e){pe.currentPage=e,he()},PartList:E,order_date:M,deliverDialog:I,selectClick:(e,t)=>{},itemArr:J,addLocationDialog:S,locationArr:te,EditLocation:function(e){Object.keys(e).map((t=>{te[t]=e[t]}))},btnDellocation:e=>{_.confirm("Are you sure you want to return this location",{confirmButtonText:"confirm",cancelButtonText:"cancel",type:"warning"}).then((()=>{ge(e)})).catch((()=>{h({type:"info",message:"Canceled"})}))},singleTableRef:t,infoDialog:N,btnInfo:ve,infoArr:q,btnCollection:function(){Q.pay_id="",Q.content="",Q.pay_amount="",Q.time="",Q.pay_method="",Q.files=[],Q.name=e.customer_name,Q.id=e.customer_id,Q.sum="",C.value=!0},CollectionDialog:F,collectionArr:me,onSelClient:function(){$.clinic_id=_e.clinic_id,w.value=!0},ClientData:$,ClientDialog:w,eventIsNum:function(){me.customer_id=$.id,me.name=$.name},btncollectionConfirm:async function(){if(T.value=!0,"Cheque"!=me.pay_method&&(me.cheque_number=""),"Cheque"==me.pay_method&&""==me.cheque_number)return h({type:"error",message:"Please enter cheque number"}),void(T.value=!1);let e="";if("Other"==me.pay_method){if(""==me.other)return h({type:"error",message:"Please enter pay method"}),void(T.value=!1);e=me.other}else e=me.pay_method;const{data:t}=await n(Object.assign(oe,{customer_id:me.customer_id,pay_amount:me.pay_amount,pay_method:e,cheque_number:me.cheque_number,content:me.content,collection_time:me.time,account_id:me.account_id}));1==t.code?(he(),h({type:"success",message:t.msg}),F.value=!1):h({type:"error",message:t.msg}),T.value=!1},payMethodData:ye,onPayMethod:function(e){null==e&&(me.pay_method="")},GenerateDialog:W,btnGenerate:async function(e){_e.pay_id=e.id;const{data:t}=await o(Object.assign(ae,{pay_id:_e.pay_id,role:_e.role,clinic_id:_e.clinic_id}));1==t.code?(K.value=t.data.service,G.value=t.data.Deduction_type,_e.amount=t.data.amount,Y.value=[t.data.date_period.begin,t.data.date_period.end],W.value=!0):h({type:"error",message:t.msg})},ServiceData:K,btnService:function(e){1==e.is_selected?e.is_selected=!1:e.is_selected=!0},DeductionType:G,selectedTr:function(e){G.value.forEach(((e,t)=>{e.is_selected=!1})),e.is_selected=!0},datePeriod:Y,disabledBeforeToday:function(e){const t=new Date;return t.setHours(0,0,0,0),e.getTime()<t.getTime()},btnDatePeriod:function(e){null==e&&(Y.value=[])},btnGenerateConfirm:async function(){T.value=!0,null==Y.value&&(Y.value=[]);let e={begin:Y.value.length>0?Y.value[0]:"",end:Y.value.length>0?Y.value[1]:""},t={Deduction_type:G.value,amount:_e.amount,date_period:e,service:K.value};const{data:a}=await c(Object.assign(ce,{pay_id:_e.pay_id,model_data:t,clinic_id:_e.clinic_id}));1==a.code?(he(),h({type:"success",message:a.msg}),W.value=!1):h({type:"error",message:a.msg}),T.value=!1},btnDeducationShow:function(e){Ae(e.deducation_info.id)},AccountData:z,btnGenerateInvoice:function(e){_e.pay_id=e.id,_e.therapists="",_e.therapistsArr=[],_e.invoiceTime=[],H.value=[],_e.Total_Amount=e.remain_amount,R.value=[],_e.company_id="",_e.loacation_name="",2==_e.type&&fe(),j.value=!0},invoiceDialog:j,Therapists:R,disabledBeforeToday1:function(e){const t=new Date;return t.setHours(0,0,0,0),e.getTime()>t.getTime()},onTherapists:function(e){if(_e.therapists.includes(e.id)){let t=_e.therapistsArr.findIndex((t=>t===e.id));-1!==t&&_e.therapistsArr.splice(t,1)}else _e.therapistsArr.push(e.id);_e.therapists=_e.therapistsArr.toString()},btnInvoiceTime:function(e){null==e&&(_e.invoiceTime=[])},btnFind:async function(){let e="",t="";null!=_e.invoiceTime&&_e.invoiceTime.length>0&&(e=_e.invoiceTime[0],t=_e.invoiceTime[1]);const{data:a}=await l(Object.assign(se,{clinic_id:_e.clinic_id,role:_e.role,begin_date:e,end_date:t,therapists:_e.therapists,pay_id:_e.pay_id}));1==a.code?(0==a.data.length&&h({type:"info",message:"No data"}),H.value=a.data,_e.is_tax1=!0,_e.is_tax="Y",be()):h({type:"error",message:a.msg})},FindData:H,InvoiceDetailDialog:L,btnSubmitConfirm:async function(){T.value=!0;const{data:e}=await s(Object.assign(ue,{clinic_id:_e.clinic_id,role:_e.role,pay_id:_e.pay_id,rows:H.value,is_tax:_e.is_tax1,include_tax:_e.include_tax,company_id:_e.company_id}));1==e.code?(V.value=e.InvoiceArr,j.value=!1,he()):h({type:"error",message:e.msg}),T.value=!1},taxData:Z,IncludeTax:function(e){null==e&&(_e.include_tax="N"),be()},onIs_tax:function(e){_e.is_tax=e?"Y":"N",be()},onSelectLocation:function(){k.value=!0},locationDialog:k,eventIsNumlocation:function(){_e.loacation_name=ee.name,_e.company_id=ee.id},locationData:ee,eventFilter:function(){b.value&&(A.value=b.value.value,he())},optionsFilter:b,isShowFilter:x,btnFilterQuery:function(){x.value=!x.value},UsedLogDialog:P,logData:B,addCollectionDialog:C,paymentArr:Q,eventPrePay:function(){he()},btnFile:function(e){e.length&&(U.value=e,D.value=!0)},onFile:function(e){window.open(e)},fileDialog:D,fileArr:U,btnDelete:e=>{_.confirm("Are you sure you want to delete this item",{confirmButtonText:"confirm",cancelButtonText:"cancel",type:"warning"}).then((()=>{xe(e)})).catch((()=>{h({type:"info",message:"Canceled"})}))},btnEidt:function(e){Q.pay_id=e.id,Q.content=e.content,Q.pay_amount=e.pay_amount,Q.time=e.collection_time,Q.pay_method=e.pay_method,Q.files=e.file,Q.name=e.customername,Q.id=e.customer_id,Q.sum="",C.value=!0}}}))}}}));