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/hookLevel-de4c8632.js
import{getMemberLevelWeb as I,addEditMemberLevelWeb as O,deleteMemberLevelWeb as B}from"./po-338e700f.js";import{d as u,u as G}from"./vue-router-a383d220.js";import{o as N}from"./index-81e4a901.js";import{b7 as l}from"./message-2472a54a.js";import{r as i,A as n,o as R}from"./runtime-core.esm-bundler-6128546f.js";import"./index-d44f8e28.js";import"./preload-helper-78dc9057.js";import"./vue-i18n.runtime.esm-bundler-6949bcab.js";import"./index-b7f916e1.js";import"./_commonjsHelpers-87174ba5.js";import"./utils-2ab4f76a.js";import"./focus-trap-53f1c6ab.js";import"./error-78e43d3e.js";function ee(){u(),G(),u();const p=i(),s=i(!1),g=i(!1),r=i(!1),v=i(!1),f=i(!1),h=i(""),d=i([]),b=n({}),w=n({tableIndex:0,note:""}),t=n({level_code:"",level_name:"",growth:"",priv:"",id:""}),m=n({}),_=n({}),y=n({}),c=n({total:0,pageSize:10,currentPage:1,background:!0,currentPage:1,pageSizes:[10,25,50,100]}),L=n({order_key:"",material_key:"",truck_key:"",truck_id:"",comment:"",show:"",searchKey:""}),A=[{type:"selection",width:55,align:"left",hide:({checkList:e})=>!e.includes("勾选列")},{label:"Idx",type:"index",width:70,hide:({checkList:e})=>!e.includes("Idx")},{label:"Level Code",prop:"level_code",minWidth:100,hide:({checkList:e})=>!e.includes("Level Code")},{label:"Level Name",prop:"level_name",minWidth:100,hide:({checkList:e})=>!e.includes("Level Name")},{label:"Growth",prop:"growth",minWidth:100,hide:({checkList:e})=>!e.includes("Growth")},{label:"Priv",prop:"priv",minWidth:100,hide:({checkList:e})=>!e.includes("Priv")},{label:"Action",fixed:"right",width:200,slot:"operation",hide:({checkList:e})=>!e.includes("Action")}],x=["Idx","Level Code","Level Name","Growth","Priv","Action"];function C(){a()}function P(e){c.pageSize=e,a()}function k(e){c.currentPage=e,a()}async function a(){s.value=!0;const{data:e}=await I(Object.assign(b,{}));d.value=e.data,s.value=!1}const E=(e,o)=>{};function W(e){Object.keys(e).map(o=>{m[o]=e[o]})}async function D(e){const{data:o}=await B(Object.assign(y,{level_id:e.id}));o.code==1?(a(),l({type:"success",message:o.msg})):l({type:"error",message:o.msg})}const M=e=>{N.confirm("Are you sure you want to delete this item",{confirmButtonText:"confirm",cancelButtonText:"cancel",type:"warning"}).then(()=>{D(e)}).catch(()=>{l({type:"info",message:"Canceled"})})};function S(){t.level_code="",t.level_name="",t.growth="",t.priv="",t.id="",r.value=!0}function j(e){t.level_code=e.level_code,t.level_name=e.level_name,t.growth=e.growth,t.priv=e.priv,t.id=e.id,r.value=!0}async function z(e){const{data:o}=await O(Object.assign(_,{level_code:t.level_code,level_name:t.level_name,growth:t.growth,priv:t.priv,id:t.id}));o.code==1?(a(),l({type:"success",message:o.msg}),r.value=!1):l({type:"error",message:o.msg})}return R(()=>{a()}),{searchDetail:L,btnSearchPart:C,loading:s,small:f,selectList:x,columns:A,pagination:c,handleSizeChange:P,handleCurrentChange:k,PartList:d,order_date:h,deliverDialog:g,selectClick:E,itemArr:w,addLocationDialog:v,locationArr:m,EditLocation:W,singleTableRef:p,editDialog:r,btnAdd:S,levelArr:t,btnEditConfirm:z,btnEdit:j,btnDel:M}}export{ee as useEqu};