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/hookPointsList-legacy-d88df8da.js
System.register(["./po-legacy-aafda07b.js","./vue-router-legacy-a12307c3.js","./index-legacy-42c17c53.js","./message-legacy-10af7c73.js","./runtime-core.esm-bundler-legacy-c5df00b7.js","./index-legacy-93e261a4.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,n,i,o,c,l,r,s,u,d;return{setters:[e=>{a=e.getPointManagerWeb,n=e.changePointWeb,i=e.deleteCompanyWeb},e=>{o=e.d,c=e.u},e=>{l=e.o},e=>{r=e.b7},e=>{s=e.r,u=e.A,d=e.o},null,null,null,null,null,null,null,null],execute:function(){e("useEqu",(function(){o(),c(),o();const e=s(),t=s(!1),g=s(!1),p=s(!1),h=s(!1),m=s(!1),y=s(""),x=s([]),b=u({}),f=u({tableIndex:0,note:""}),_=u({point:"",growth:"",redemption_ratio:"",Amount:0,exchange_point:0}),j=s([{id:1,value:"userName",text:"User Name"},{id:2,value:"payTime",text:"Pay Time"}]),v=s([{value:"prepaid",text:"Prepaid"},{value:"balance",text:"Balance"},{value:"all",text:"All"}]),P=s([{value:"1month",text:"1 Month"},{value:"3month",text:"3 Month"},{value:"6month",text:"6 Month"},{value:"1year",text:"1 Year"}]),k=u({}),D=u({}),w=u({}),A=u({total:0,pageSize:10,currentPage:1,background:!0,currentPage:1,pageSizes:[10,25,50,100]}),L=u({order_key:"",material_key:"",truck_key:"",truck_id:"",comment:"",show:"",searchKey:"",searchType:"userName",searchValue:"",paymentType:"all"});async function T(){t.value=!0;const{data:e}=await a(Object.assign(b,{}));x.value=e.data.detail,_.point=e.data.total.point,_.growth=e.data.total.growth,_.redemption_ratio=e.data.redemption_ratio,t.value=!1}async function C(e){const{data:t}=await i(Object.assign(w,{company_id:e.id}));1==t.code?(T(),r({type:"success",message:t.msg})):r({type:"error",message:t.msg})}return d((()=>{T()})),{searchDetail:L,btnSearchPart:function(){T()},loading:t,small:m,selectList:["Idx","Point","Description","Date"],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:"Point",prop:"point",width:200,slot:"Point",hide:({checkList:e})=>!e.includes("Point")},{label:"Description",prop:"point_origin",hide:({checkList:e})=>!e.includes("Description")},{label:"Date",prop:"create_time",minWidth:100,hide:({checkList:e})=>!e.includes("Date")}],pagination:A,handleSizeChange:function(e){A.pageSize=e,T()},handleCurrentChange:function(e){A.currentPage=e,T()},PartList:x,order_date:y,deliverDialog:g,selectClick:(e,t)=>{},itemArr:f,addLocationDialog:p,locationArr:k,EditLocation:function(e){Object.keys(e).map((t=>{k[t]=e[t]}))},btnDellocation:e=>{l.confirm("Are you sure you want to delete this location",{confirmButtonText:"confirm",cancelButtonText:"cancel",type:"warning"}).then((()=>{C(e)})).catch((()=>{r({type:"info",message:"Canceled"})}))},singleTableRef:e,searchData:j,DisplayType:v,timeData:P,loadPartList:T,btnSearchType:function(){L.searchValue=""},totalArr:_,ExchangeDialog:h,btnExchange:function(){_.exchange_point=0,h.value=!0},btnAll:function(){_.exchange_point=_.point,_.Amount=(_.exchange_point*_.redemption_ratio/100).toFixed(2)},exchangePoint:function(){_.exchange_point>_.point&&(r({type:"error",message:"Up to "+_.point+" can be exchanged"}),_.exchange_point=_.point),_.Amount=(_.exchange_point*_.redemption_ratio/100).toFixed(2)},btnExchangeConfirm:async function(e){const{data:t}=await n(Object.assign(D,{point:_.exchange_point}));1==t.code?(T(),r({type:"success",message:t.msg}),h.value=!1):r({type:"error",message:t.msg})}}}))}}}));