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/hookDeducation-legacy-eebe8a2d.js
System.register(["./po-legacy-323aad91.js","./vue-router-legacy-a12307c3.js","./index-legacy-42c17c53.js","./message-legacy-10af7c73.js","./runtime-core.esm-bundler-legacy-c5df00b7.js","./index-legacy-1c13cd42.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 i,a,c,n,l,o,s,d,r,u;return{setters:[e=>{i=e.UsedFormListWeb,a=e.UsedFormDetail,c=e.deleteCompanyWeb},e=>{n=e.d,l=e.u},e=>{o=e.o},e=>{s=e.b7},e=>{d=e.r,r=e.A,u=e.o},null,null,null,null,null,null,null,null],execute:function(){e("useEqu",(function(){const{query:e,params:t}=n();l(),n();const m=d(),g=d(!1),p=d(!1),h=d(!1),y=d(!1),b=d(!1),f=d(""),k=d([]),v=d([]),_=r({}),j=r({tableIndex:0,note:""}),L=r({}),D=r({}),S=r({}),x=r({total:0,pageSize:10,currentPage:1,background:!0,currentPage:1,pageSizes:[10,25,50,100]}),C=r({order_key:"",material_key:"",truck_key:"",truck_id:"",comment:"",show:"",searchKey:"",clinic_id:"",type:"",role:"",customername:"",Account:"",location:"",name:"",pkg:"",tel:""});async function A(){let t="";e.use_id&&(t=e.use_id),g.value=!0;const{data:a}=await i(Object.assign(_,{clinic_id:C.clinic_id,role:C.role,customername:C.customername,searchKey:C.searchKey,use_id:t,pageSize:x.pageSize,page:x.currentPage}));k.value=a.data,x.total=a.total,g.value=!1}async function I(e){const{data:t}=await c(Object.assign(S,{company_id:e.id}));1==t.code?(A(),s({type:"success",message:t.msg})):s({type:"error",message:t.msg})}return u((()=>{C.type=localStorage.getItem("type"),C.clinic_id=localStorage.getItem("clinicIdOverall"),2==C.type&&(C.role="clinic"),1==C.type&&(C.role="therapists"),A()})),{searchDetail:C,btnSearchPart:function(){A()},loading:g,small:b,selectList:["Idx","CustomerId","CustomerName","Service Name","Date Period","Deducation","Deducation value","Used value","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:"CustomerId",prop:"customer_id",minWidth:100,hide:({checkList:e})=>!e.includes("CustomerId")},{label:"CustomerName",prop:"customer_name",minWidth:100,hide:({checkList:e})=>!e.includes("CustomerName")},{label:"Service Name",prop:"service_name",minWidth:100,hide:({checkList:e})=>!e.includes("Service Name")},{label:"Date Period",prop:"date_period",minWidth:100,hide:({checkList:e})=>!e.includes("Date Period")},{label:"Deducation",prop:"deducation",minWidth:150,slot:"slotAction",hide:({checkList:e})=>!e.includes("Deducation")},{label:"Deducation value",prop:"deducation_value",minWidth:120,hide:({checkList:e})=>!e.includes("Deducation value")},{label:"Used value",prop:"used_value",minWidth:120,hide:({checkList:e})=>!e.includes("Used value")},{label:"Action",fixed:"right",width:120,slot:"operation",hide:({checkList:e})=>!e.includes("Action")}],pagination:x,handleSizeChange:function(e){x.pageSize=e,A()},handleCurrentChange:function(e){x.currentPage=e,A()},PartList:k,order_date:f,deliverDialog:p,selectClick:(e,t)=>{},itemArr:j,addLocationDialog:y,locationArr:L,EditLocation:function(e){Object.keys(e).map((t=>{L[t]=e[t]}))},btnDellocation:e=>{o.confirm("Are you sure you want to delete this location",{confirmButtonText:"confirm",cancelButtonText:"cancel",type:"warning"}).then((()=>{I(e)})).catch((()=>{s({type:"info",message:"Canceled"})}))},singleTableRef:m,UsedLogDialog:h,btnUsedLog:async function(e){const{data:t}=await a(Object.assign(D,{used_id:e.id}));1==t.code?(C.pkg=t.date.info.pkg,C.tel=t.date.info.tel,C.location=t.date.info.location,C.name=t.date.info.name,C.Account=t.date.info.Account,v.value=t.date.detail,h.value=!0):s({type:"error",message:t.msg})},logData:v}}))}}}));