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-deb90602.js
import{getPayHistoriesWeb as Z,getPayDetailWeb as $,prePaidWeb as ee,returnPayBalanceWeb as te,DeletePaidWeb as ae}from"./po-53124e2d.js";import"./index-912f0f0b.js";import{d as A,u as oe}from"./vue-router-a383d220.js";import{o as P}from"./index-81e4a901.js";import{b7 as c}from"./message-2472a54a.js";import{r as n,A as i,o as ne}from"./runtime-core.esm-bundler-6128546f.js";import"./utils-2ab4f76a.js";import"./preload-helper-78dc9057.js";import"./vue-i18n.runtime.esm-bundler-6949bcab.js";import"./index-b7f916e1.js";import"./_commonjsHelpers-87174ba5.js";import"./focus-trap-53f1c6ab.js";import"./error-78e43d3e.js";function ge(){A(),oe(),A();const C=n(),s=n(!1),v=n(!1),u=n(!1),D=n(!1),m=n(!1),p=n(!1),x=n(!1),W=n(""),d=n(""),y=n([]),w=n([]),k=i({}),f=n(!1),h=n([]),S=i({tableIndex:0,note:""}),t=i({name:"",id:"",sum:"",actiontype:"",pay_amount:"",time:"",pay_method:"",files:[],content:"",pay_id:""}),_=i({}),I=n([{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"}]),q=i({}),E=i({}),M=i({});i({});const R=i({}),o=i({name:"",customer_id:"",pay_amount:"",pay_method:"",cheque_number:"",content:"",service_name:"",duration:"",invoice_price:"",time:"",other:"",account_id:"",company_id:""}),r=i({total:0,pageSize:10,currentPage:1,background:!0,currentPage:1,pageSizes:[10,25,50,100]}),g=i({order_key:"",material_key:"",truck_key:"",truck_id:"",comment:"",show:"",searchKey:""}),L=[{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:"Location Worked",prop:"customer_id",minWidth:100,slot:"LocationWorked",hide:({checkList:e})=>!e.includes("Location Worked")},{label:"Pay Amount",prop:"pay_amount",minWidth:100,hide:({checkList:e})=>!e.includes("Pay Amount")},{label:"Used Amount",prop:"balanceInfo",minWidth:120,slot:"balanceInfo",hide:({checkList:e})=>!e.includes("Used 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:"Action",fixed:"right",width:200,slot:"operation",align:"left",hide:({checkList:e})=>!e.includes("Action")}],O=["PayId","Files","Location Worked","CustomerId","CustomerName","Pay Amount","Used Amount","Remain Amount","Pay Method","Pay Data","Action"];function B(){l()}function T(e){r.pageSize=e,l()}function j(e){r.currentPage=e,l()}async function l(){s.value=!0;const{data:e}=await Z(Object.assign(k,{searchKey:g.searchKey,actiontype:"employee_company",pageSize:r.pageSize,page:r.currentPage}));y.value=e.data,r.total=e.total,s.value=!1}const z=(e,a)=>{};function F(e){Object.keys(e).map(a=>{_[a]=e[a]})}async function K(e){const{data:a}=await te(Object.assign(E,{used_id:e.id}));a.code==1?(b(d.value),c({type:"success",message:a.msg})):c({type:"error",message:a.msg})}const N=e=>{P.confirm("Are you sure you want to return this location",{confirmButtonText:"confirm",cancelButtonText:"cancel",type:"warning"}).then(()=>{K(e)}).catch(()=>{c({type:"info",message:"Canceled"})})};async function b(e){d.value=e;const{data:a}=await $(Object.assign(M,{pay_id:d.value.id,actiontype:"employee_company"}));a.code==1?(d.value=a.data,p.value=!0):c({type:"error",message:a.msg})}async function U(){if(s.value=!0,o.pay_method!="Cheque"&&(o.cheque_number=""),o.pay_method=="Cheque"&&o.cheque_number==""){c({type:"error",message:"Please enter cheque number"}),s.value=!1;return}let e="";if(o.pay_method=="Other"){if(o.other==""){c({type:"error",message:"Please enter pay method"}),s.value=!1;return}e=o.other}else e=o.pay_method;const{data:a}=await ee(Object.assign(q,{company_id:o.company_id,pay_amount:o.pay_amount,pay_method:e,cheque_number:o.cheque_number,content:o.content,account_id:o.account_id,collection_time:o.time,actiontype:"employee_company"}));a.code==1?(l(),c({type:"success",message:a.msg}),u.value=!1):c({type:"error",message:a.msg}),s.value=!1}function V(){l()}function X(e){e.length&&(h.value=e,f.value=!0)}function H(e){window.open(e)}async function G(e){const{data:a}=await ae(Object.assign(R,{pay_id:e.id}));a.code==1?(l(),c({type:"success",message:a.msg})):c({type:"error",message:a.msg})}const J=e=>{P.confirm("Are you sure you want to delete this item",{confirmButtonText:"confirm",cancelButtonText:"cancel",type:"warning"}).then(()=>{G(e)}).catch(()=>{c({type:"info",message:"Canceled"})})};function Q(){t.pay_id="",t.content="",t.pay_amount="",t.time="",t.pay_method="",t.files=[],t.name="",t.id="",t.sum="",t.actiontype="employee_company",m.value=!0}function Y(e){t.pay_id=e.id,t.content=e.content,t.pay_amount=e.pay_amount,t.time=e.collection_time,t.pay_method=e.pay_method,t.files=e.file,t.name=e.company_name,t.id=e.customer_id,t.sum="",t.actiontype="employee_company",m.value=!0}return ne(()=>{l()}),{searchDetail:g,btnSearchPart:B,loading:s,small:x,selectList:O,columns:L,pagination:r,handleSizeChange:T,handleCurrentChange:j,PartList:y,order_date:W,deliverDialog:v,selectClick:z,itemArr:S,addLocationDialog:D,locationArr:_,EditLocation:F,btnDellocation:N,singleTableRef:C,infoDialog:p,btnInfo:b,infoArr:d,btnCollection:Q,CollectionDialog:u,collectionArr:o,payMethodData:I,locationData:w,btncollectionConfirm:U,paymentArr:t,addCollectionDialog:m,eventPrePay:V,btnFile:X,onFile:H,fileDialog:f,fileArr:h,btnDelete:J,btnEidt:Y}}export{ge as useEqu};