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/hookMemberPrice-legacy-996ac2d0.js
System.register(["./po-legacy-66bbffbb.js","./vue-router-legacy-a12307c3.js","./index-legacy-42c17c53.js","./message-legacy-10af7c73.js","./runtime-core.esm-bundler-legacy-c5df00b7.js","./index-legacy-f5c42381.js","./preload-helper-legacy-f8638e03.js","./vue-i18n.runtime.esm-bundler-legacy-720876b1.js","./index-legacy-c9e20962.js","./_commonjsHelpers-legacy-5498c249.js","./utils-legacy-c0023c33.js","./focus-trap-legacy-631b7396.js","./error-legacy-e98f9e58.js"],(function(e,i){"use strict";var t,n,s,r,a,c,o,d,l,m,p,_,u,g,h;return{setters:[e=>{t=e.getTherapistConfigListWeb,n=e.getClinicConfigListWeb,s=e.AddEditTherapistConfigWeb,r=e.addEditClinicConfigWeb,a=e.getOtherConfigListWeb,c=e.saveOtherConfigListWeb,o=e.DeleteTherapistConfigWeb,d=e.deleteClinicConfig},e=>{l=e.d,m=e.u},e=>{p=e.o},e=>{_=e.b7},e=>{u=e.r,g=e.A,h=e.o},null,null,null,null,null,null,null,null],execute:function(){e("useEqu",(function(){l(),m(),l();const e=u(),i=u(!1),b=u(!1),f=u(!1),y=u(!1),v=u(!1),x=u(""),A=u([]),j=u([]),C=u([{id:1,text:"First time",value:"first",is_selected:0},{id:2,text:"At a time",value:"time",is_selected:0}]),P=u([{id:1,name:"Therapist"},{id:2,name:"Clinic"},{id:3,name:"Other"}]),L=u([{id:1,month:"",price:""}]),w=g({index:0,month:"",price:"",id:""}),S=g({id:"",person:""}),M=g({Appointment_Reminder_SMS_Fee:"",credit_cart_point:"",no_member_test_days:"",register_member_fixed:"",register_member_point:"",register_member_type:"first",test_invoice_number:"",Daily_login_increases_points:"",Appointment_operation_increases_points:"",Invoice_operation_increases_points:"",Increase_rate_of_purchasing_membership_points:"",Points_redemption_ratio:""}),O=g({}),k=g({tableIndex:0,note:""}),I=g({}),T=g({}),D=g({}),W=g({}),E=g({}),F=g({}),z=g({}),B=g({}),R=g({total:0,pageSize:10,currentPage:1,background:!0,currentPage:1,pageSizes:[10,25,50,100]});async function $(){i.value=!0;const{data:e}=await t(Object.assign(O,{}));A.value=e.data,i.value=!1}async function J(){i.value=!0;const{data:e}=await n(Object.assign(W,{}));j.value=e.data,i.value=!1}async function N(e){const{data:i}=await o(Object.assign(D,{config_id:e.id}));1==i.code?($(),_({type:"success",message:i.msg})):_({type:"error",message:i.msg})}async function q(e){const{data:i}=await d(Object.assign(F,{config_id:e.id}));1==i.code?(J(),_({type:"success",message:i.msg})):_({type:"error",message:i.msg})}return h((()=>{$(),J(),async function(){const{data:e}=await a(Object.assign(z,{}));1==e.code?(M.Appointment_Reminder_SMS_Fee=e.data.Appointment_Reminder_SMS_Fee,M.credit_cart_point=e.data.credit_cart_point,M.no_member_test_days=e.data.no_member_test_days,M.register_member_fixed=e.data.register_member_fixed,M.register_member_point=e.data.register_member_point,M.register_member_type=e.data.register_member_type,M.test_invoice_number=e.data.test_invoice_number,M.Daily_login_increases_points=e.data.Daily_login_increases_points,M.Appointment_operation_increases_points=e.data.Appointment_operation_increases_points,M.Invoice_operation_increases_points=e.data.Invoice_operation_increases_points,M.Increase_rate_of_purchasing_membership_points=e.data.Increase_rate_of_purchasing_membership_points,M.Points_redemption_ratio=e.data.Points_redemption_ratio):_({type:"error",message:e.msg})}()})),{loading:i,selectList:["Idx","Member Period (Month)","Price ($)","Action"],columns:[{type:"selection",width:55,align:"left",hide:({checkList:e})=>!e.includes("勾选列")},{label:"Idx",type:"index",width:70,hide:({checkList:e})=>!e.includes("Idx")},{label:"Member Period (Month)",prop:"month",minWidth:100,hide:({checkList:e})=>!e.includes("Member Period (Month)")},{label:"Price ($)",prop:"price",minWidth:100,hide:({checkList:e})=>!e.includes("Price ($)")},{label:"Action",fixed:"right",width:200,slot:"operation",hide:({checkList:e})=>!e.includes("Action")}],pagination:R,handleSizeChange:function(e){R.pageSize=e,$()},handleCurrentChange:function(e){R.currentPage=e,$()},PartList:A,order_date:x,deliverDialog:b,selectClick:(e,i)=>{},itemArr:k,addLocationDialog:v,locationArr:I,EditLocation:function(e){Object.keys(e).map((i=>{I[i]=e[i]}))},btnDel:e=>{p.confirm("Are you sure you want to delete it",{confirmButtonText:"confirm",cancelButtonText:"cancel",type:"warning"}).then((()=>{N(e)})).catch((()=>{_({type:"info",message:"Canceled"})}))},singleTableRef:e,muneArr:P,TherapistArr:w,AddMemberDialog:y,btnAddForm:function(){w.id="",w.month="",w.price="",y.value=!0},onSubmit:async function(e){const{data:i}=await s(Object.assign(T,{id:w.id,month:w.month,price:w.price}));1==i.code?($(),_({type:"success",message:i.msg}),y.value=!1):_({type:"error",message:i.msg})},btnEdit:function(e){w.id=e.id,w.month=e.month,w.price=e.price,y.value=!0},PartList1:j,columns1:[{type:"selection",width:55,align:"left",hide:({checkList:e})=>!e.includes("勾选列")},{label:"Idx",type:"index",width:70,hide:({checkList:e})=>!e.includes("Idx")},{label:"Persons",prop:"person_show",minWidth:100,hide:({checkList:e})=>!e.includes("Persons")},{label:"Member Price",prop:"price",minWidth:100,slot:"MemberPrice",hide:({checkList:e})=>!e.includes("Member Price")},{label:"Action",fixed:"right",width:200,slot:"operation",hide:({checkList:e})=>!e.includes("Action")}],selectList1:["Idx","Persons","Member Price","Action"],AddClinicDialog:f,btnAddClinic:function(){S.id="",S.person="",L.value=[];let e={id:1,month:"",price:""};L.value.push(e),f.value=!0},clinicArr:S,onSubmitClinic:async function(e){const{data:i}=await r(Object.assign(E,{id:S.id,person:S.person,member_price:L.value}));1==i.code?(J(),_({type:"success",message:i.msg}),f.value=!1):_({type:"error",message:i.msg})},member_price:L,member_priceDel:function(e){let i=L.value.findIndex((i=>i.id===e.id));-1!==i&&L.value.splice(i,1),L.value.forEach(((e,i)=>{e.id=i+1}))},member_priceAdd:function(){let e={id:L.value.length+1,month:"",price:""};L.value.push(e)},btnEditClinic:function(e){S.id=e.id,S.person=e.person,L.value=JSON.parse(JSON.stringify(e.member_price)),f.value=!0},btnDelClinic:e=>{p.confirm("Are you sure you want to delete it",{confirmButtonText:"confirm",cancelButtonText:"cancel",type:"warning"}).then((()=>{q(e)})).catch((()=>{_({type:"info",message:"Canceled"})}))},isData:C,selectedTr:function(e){M.register_member_type=e.value},otherArr:M,onSubmitOther:async function(){const{data:e}=await c(Object.assign(B,{config_datas:M}));1==e.code?_({type:"success",message:e.msg}):_({type:"error",message:e.msg})},registerMemberPoint:function(){M.register_member_point>100&&(_({type:"error",message:"The maximum limit is 100%"}),M.register_member_point=100)},creditCartPoint:function(){M.credit_cart_point>100&&(_({type:"error",message:"The maximum limit is 100%"}),M.credit_cart_point=100)}}}))}}}));