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/hookHealth-legacy-497e1a1b.js
System.register(["./po-legacy-dfc6c129.js","./vue-router-legacy-a12307c3.js","./message-legacy-10af7c73.js","./index-legacy-42c17c53.js","./runtime-core.esm-bundler-legacy-c5df00b7.js","./index-legacy-b444da4a.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,s,c,l,r,d,u,m,h;return{setters:[e=>{a=e.getCompanyListWeb,i=e.addCompanyWeb,n=e.getHealthFormDataWebapi,o=e.submitHealthFormModelWebApi,s=e.deleteCompanyWeb},e=>{c=e.d,l=e.u},e=>{r=e.b7},e=>{d=e.o},e=>{u=e.r,m=e.A,h=e.o},null,null,null,null,null,null,null,null],execute:function(){e("useEqu",(function(){const{query:e,params:t}=c(),p=l();c();const y=u(!1),g=u(!1),b=u(!1),f=u(!1),_=u(!1),k=u(""),v=u(""),j=u([]),C=u([]),P=u([]),L=m({}),w=m({}),A=m({tableIndex:0,note:""}),W=m({name:"",today_date:"",hear_about:"",chief_complaint:"",rashes_bruise:!1,address:"",Birth:"",Code_ZIP:"",Occupation:"",Phone:"",Work_Phone:"",Physician:"",Phone1:"",City:""}),S=m({company_name:"",first_name:"",last_name:"",phone:"",email:"",address:"",state:"Ontraio",city:"",hst:"",r_ac:"",rmt_register:"",country:"Canada",postal:"L3S 0E2",company_id:"",number_companyname:""});m({destination_comp:"",state:"",city:"",address:"",phone:"",contact:"",customer_id:""});const D=m({}),O=m({}),x=m({}),H=m({qo_item_str:"",name:"",address:"",way:"",shipping:[],itemsDetail:[],trackingNo:"",courier:"",comment:""}),E=m({total:0,pageSize:10,currentPage:1,background:!0,currentPage:1,pageSizes:[10,25,50,100]}),T=u([{name:"Practice Location",id:1},{name:"Setup",id:2},{name:"Email Config",id:3}]),z=m({order_key:"",material_key:"",truck_key:"",truck_id:"",comment:"",show:"",searchKey:""});async function I(){y.value=!0;const{data:e}=await a(Object.assign(L,{searchKey:z.searchKey}));j.value=e.data,y.value=!1}async function N(e){const{data:t}=await n(Object.assign(w,{customer_id:e}));1==t.code&&(P.value=t.model.health_info,Object.keys(t.model.information).map((e=>{W[e]=t.model.information[e]})))}async function q(e){const{data:t}=await s(Object.assign(O,{company_id:e.id}));1==t.code?(I(),r({type:"success",message:t.msg})):r({type:"error",message:t.msg})}return h((()=>{const e=p.options.history.location.split("?");e.length>1&&(e[1].split("&").forEach(((e,t)=>{const a=e.split("=");"zIf_Fi"==a[0]?v.value=a[1]:"password"==a[0]?password=a[1]:"code"==a[0]&&(code=a[1])})),N(v.value))})),{searchDetail:z,btnSearchPart:function(){I()},loading:y,small:_,selectList:["勾选列","Company","HST#","Name","Postal","Phone","Email","Address","Provice","City","Action"],columns:[{type:"selection",width:55,align:"left",hide:({checkList:e})=>!e.includes("勾选列")},{label:"序号列",type:"index",width:70,hide:({checkList:e})=>!e.includes("序号列")},{label:"Company",prop:"company_name",minWidth:100,hide:({checkList:e})=>!e.includes("Company")},{label:"HST#",prop:"hst",minWidth:100,hide:({checkList:e})=>!e.includes("HST#")},{label:"Name",prop:"first_name",minWidth:100,hide:({checkList:e})=>!e.includes("Name")},{label:"Postal",prop:"postal",minWidth:100,hide:({checkList:e})=>!e.includes("Postal")},{label:"Phone",prop:"phone",minWidth:150,slot:"slotAction",hide:({checkList:e})=>!e.includes("Phone")},{label:"Email",prop:"email",minWidth:120,hide:({checkList:e})=>!e.includes("Email")},{label:"Address",prop:"address",minWidth:120,hide:({checkList:e})=>!e.includes("Address")},{label:"Provice",prop:"state",minWidth:120,hide:({checkList:e})=>!e.includes("Provice")},{label:"City",prop:"city",minWidth:120,hide:({checkList:e})=>!e.includes("City")},{label:"Action",fixed:"right",width:120,slot:"operation",hide:({checkList:e})=>!e.includes("Action")}],pagination:E,handleSizeChange:function(e){E.pageSize=e,I()},handleCurrentChange:function(e){E.currentPage=e,I()},PartList:j,order_date:k,deliverDialog:g,selectClick:(t,a)=>{if(t.length>1){const e=t.shift();singleTableRef.value.toggleRowSelection(e,!1)}e.note&&p.push({path:"/crm/yuyue/note",query:{location_id:a.id,location:encodeURIComponent(JSON.stringify(a))}})},deliverDataArr:H,btnDeliverConfirm:async function(){const{data:e}=await i(Object.assign(D,{data_row:S}));1==e.code?(I(),f.value=!1,r({type:"success",message:e.msg})):r({type:"error",message:e.msg})},locationData:T,itemArr:A,infoData:C,onHealth:function(e,t){1==t.is_selected?t.is_selected=0:0==t.is_selected&&(t.is_selected=1)},health_info:P,onSituationArr:function(e){A.tableIndex=e},addLocationDialog:f,btnHealthConfirm:async function(e){let t={information:W,health_info:P.value};y.value=!0;const{data:a}=await o(Object.assign(x,{customer_id:v.value,data_row:t}));1==a.code&&(P.value=a.data,r({type:"success",message:a.msg}),b.value=!0,y.value=!1)},customer_id:v,btnAdd:function(){Object.keys(S).map((e=>{S[e]=""})),f.value=!0},onHealthForm:N,locationArr:S,EditLocation:function(e){Object.keys(e).map((t=>{S[t]=e[t]})),f.value=!0},btnDellocation:e=>{d.confirm("Are you sure you want to delete this location",{confirmButtonText:"confirm",cancelButtonText:"cancel",type:"warning"}).then((()=>{q(e)})).catch((()=>{r({type:"info",message:"Canceled"})}))},HealthArr:W,healthDialog:b}}))}}}));