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/hookEmail-04e8f0c5.js
import{sendEmailHistoriesWeb as z,DeliverAction as N,reSendEmailWeb as O}from"./po-d8d0fdf7.js";import{b7 as c}from"./message-2472a54a.js";import{o as j}from"./index-81e4a901.js";import{r as i,A as o,o as B}from"./runtime-core.esm-bundler-6128546f.js";import"./index-53dae824.js";import"./preload-helper-78dc9057.js";import"./vue-i18n.runtime.esm-bundler-6949bcab.js";import"./index-b7f916e1.js";import"./_commonjsHelpers-87174ba5.js";import"./vue-router-a383d220.js";import"./utils-2ab4f76a.js";import"./focus-trap-53f1c6ab.js";import"./error-78e43d3e.js";function Z(){const l=i({}),h=i(!1),d=i(""),m=i(!1),u=i(!1),f=i(!1),g=i(""),p=i([]),_=o({}),b=o({destination_comp:"",state:"",city:"",address:"",phone:"",contact:"",customer_id:""}),y=o({}),v=o({}),t=o({qo_item_str:"",name:"",address:"",way:"",shipping:[],itemsDetail:[],trackingNo:"",courier:"",comment:""}),s=o({total:0,pageSize:10,currentPage:1,background:!0,pageSizes:[10,25,50,100]}),w=[{type:"selection",width:55,align:"left",hide:({checkList:e})=>!e.includes("勾选列")},{label:"序号列",type:"index",width:70,hide:({checkList:e})=>!e.includes("序号列")},{label:"Associated",prop:"invoice_number",width:150,slot:"number",hide:({checkList:e})=>!e.includes("Associated")},{label:"Customer Name",prop:"customer_name",minWidth:100,hide:({checkList:e})=>!e.includes("Customer Name")},{label:"Email from",prop:"from_email",minWidth:100,hide:({checkList:e})=>!e.includes("Email from")},{label:"Email to",prop:"customer_email",minWidth:100},{label:"File Path",prop:"customer_product_name",minWidth:100,slot:"FilePath",hide:({checkList:e})=>!e.includes("File Path")},{label:"Date",prop:"create_time",minWidth:150,hide:({checkList:e})=>!e.includes("Date")},{label:"Status",prop:"status",slot:"status",minWidth:60,hide:({checkList:e})=>!e.includes("Status")},{label:"Action",fixed:"right",width:120,slot:"operation",hide:({checkList:e})=>!e.includes("Action")}],S=["Associated","Customer Name","Email from","File Path","Date","Status","Action"],r=o({order_key:"",material_key:"",truck_key:"",truck_id:"",comment:"",show:"",searchKey:"",clinic_id:""});function A(){a()}function P(e){s.pageSize=e,a()}function k(e){s.currentPage=e,a()}async function a(){r.clinic_id=localStorage.getItem("clinicIdOverall"),m.value=!0;const{data:e}=await z(Object.assign(_,{page:s.currentPage,pageSize:s.pageSize,searchKey:r.searchKey,clinic_id:r.clinic_id,options:d}));e.result==1&&(p.value=e.data),s.total=e.total,m.value=!1}function D(e){t.qo_item_str="";const n=[];e.forEach((x,I)=>{n.push(x.qo_item_id)}),t.qo_item_str=n.toString()}async function E(){const{data:e}=await N(Object.assign(y,{items:t.itemsDetail,shipping_address_id:t.address,customer_id:b.customer_id,trackingNo:t.trackingNo,deliverType:t.way,courier:t.courier,comment:t.comment}));e.code==1?(a(),u.value=!1,c({type:"success",message:e.msg})):c({type:"error",message:e.msg})}function C(e){return e.file_path&&e.file_path.replace("/var/www/html/public/pdf/",""),""}async function F(e){const{data:n}=await O(Object.assign(v,{email_id:e.id}));n.code==1&&(a(),c({type:"success",message:n.msg}))}const W=e=>{j.confirm("Are you sure you want to resend it ? ",{confirmButtonText:"confirm",cancelButtonText:"cancel",type:"warning"}).then(()=>{F(e)}).catch(()=>{c({type:"info",message:"Canceled"})})};function q(){l.value&&(d.value=l.value.value,a())}return B(()=>{a()}),{searchDetail:r,btnSearchPart:A,loading:m,small:f,selectList:S,columns:w,pagination:s,handleSizeChange:P,handleCurrentChange:k,PartList:p,order_date:g,deliverDialog:u,selectClick:D,deliverDataArr:t,btnDeliverConfirm:E,getFilePath:C,btnReSend:W,eventFilter:q,optionsFilter:l,isShowFilter:h}}export{Z as useEqu};