index-754da6c8.js 4.8 KB

1
  1. import{d as E,h as G,r as p,e as I,q as J,M as X,o as c,c as M,f as a,w as e,a as t,N,y as u,z as i,x as d,a0 as B,F as L,R as Q,C as W,j as Y,G as Z,H as $,I as aa,J as ea,K as la,_ as ta,__tla as ra}from"./index-8dc1e40a.js";import{_ as sa,__tla as oa}from"./DictTag-85aade2b.js";import{_ as _a,__tla as ca}from"./ContentWrap-0aca5216.js";import{D as na,__tla as pa}from"./dict-f13a3c8f.js";import{d as ua,__tla as ia}from"./formatTime-8a155b2e.js";import{d as da}from"./download-20922b56.js";import{b as ma,d as fa,e as ya,__tla as ha}from"./index-d527b348.js";import xa,{__tla as wa}from"./ExpressForm-3f56c7b6.js";import{u as va,__tla as ga}from"./useMessage-7a27dd80.js";import"./color-6e929987.js";import{__tla as ba}from"./el-card-18df90f0.js";import{__tla as ka}from"./Dialog-41802231.js";import{__tla as Ca}from"./UploadImg-c2c75279.js";import{__tla as Va}from"./index-519182c1.js";import{__tla as Sa}from"./el-image-viewer-3b8905e6.js";import"./constants-a1da293a.js";let R,Ua=Promise.all([(()=>{try{return ra}catch{}})(),(()=>{try{return oa}catch{}})(),(()=>{try{return ca}catch{}})(),(()=>{try{return pa}catch{}})(),(()=>{try{return ia}catch{}})(),(()=>{try{return ha}catch{}})(),(()=>{try{return wa}catch{}})(),(()=>{try{return ga}catch{}})(),(()=>{try{return ba}catch{}})(),(()=>{try{return ka}catch{}})(),(()=>{try{return Ca}catch{}})(),(()=>{try{return Va}catch{}})(),(()=>{try{return Sa}catch{}})()]).then(async()=>{let b;b=["src"],R=ta(E({name:"Express",__name:"index",setup(za){const x=va(),{t:q}=G(),D=p(0),w=p(!0),k=p([]),r=I({pageNo:1,pageSize:10,code:"",name:""}),C=p(),v=p(!1),m=async()=>{w.value=!0;try{const o=await ma(r);k.value=o.list,D.value=o.total}finally{w.value=!1}},f=()=>{r.pageNo=1,m()},F=()=>{C.value.resetFields(),f()},V=p(),S=(o,s)=>{V.value.open(o,s)},K=async()=>{try{await x.exportConfirm(),v.value=!0;const o=await ya(r);da.excel(o,"\u5FEB\u9012\u516C\u53F8.xls")}catch{}finally{v.value=!1}};return J(()=>{m()}),(o,s)=>{const U=Q,g=W,y=Y,n=Z,O=$,z=_a,_=aa,T=sa,H=ea,h=X("hasPermi"),P=la;return c(),M(L,null,[a(z,null,{default:e(()=>[a(O,{class:"-mb-15px",model:t(r),ref_key:"queryFormRef",ref:C,inline:!0,"label-width":"100px"},{default:e(()=>[a(g,{label:"\u5FEB\u9012\u516C\u53F8\u7F16\u53F7",prop:"code"},{default:e(()=>[a(U,{modelValue:t(r).code,"onUpdate:modelValue":s[0]||(s[0]=l=>t(r).code=l),placeholder:"\u8BF7\u8F93\u5FEB\u9012\u516C\u53F8\u7F16\u53F7",clearable:"",onKeyup:N(f,["enter"]),class:"!w-240px"},null,8,["modelValue"])]),_:1}),a(g,{label:"\u5FEB\u9012\u516C\u53F8\u540D\u79F0",prop:"name"},{default:e(()=>[a(U,{modelValue:t(r).name,"onUpdate:modelValue":s[1]||(s[1]=l=>t(r).name=l),placeholder:"\u8BF7\u8F93\u5FEB\u9012\u516C\u53F8\u540D\u79F0",clearable:"",onKeyup:N(f,["enter"]),class:"!w-240px"},null,8,["modelValue"])]),_:1}),a(g,null,{default:e(()=>[a(n,{onClick:f},{default:e(()=>[a(y,{icon:"ep:search",class:"mr-5px"}),u(" \u641C\u7D22")]),_:1}),a(n,{onClick:F},{default:e(()=>[a(y,{icon:"ep:refresh",class:"mr-5px"}),u(" \u91CD\u7F6E")]),_:1}),i((c(),d(n,{type:"primary",plain:"",onClick:s[2]||(s[2]=l=>S("create"))},{default:e(()=>[a(y,{icon:"ep:plus",class:"mr-5px"}),u(" \u65B0\u589E ")]),_:1})),[[h,["trade:delivery:express:create"]]]),i((c(),d(n,{type:"success",plain:"",onClick:K,loading:t(v)},{default:e(()=>[a(y,{icon:"ep:download",class:"mr-5px"}),u(" \u5BFC\u51FA ")]),_:1},8,["loading"])),[[h,["trade:delivery:express:export"]]])]),_:1})]),_:1},8,["model"])]),_:1}),a(z,null,{default:e(()=>[i((c(),d(H,{data:t(k)},{default:e(()=>[a(_,{label:"\u516C\u53F8\u7F16\u7801",prop:"code"}),a(_,{label:"\u516C\u53F8\u540D\u79F0",prop:"name"}),a(_,{label:"\u516C\u53F8 logo ",prop:"logo"},{default:e(l=>[l.row.logo?(c(),M("img",{key:0,src:l.row.logo,alt:"\u516C\u53F8logo",class:"h-40px"},null,8,b)):B("",!0)]),_:1}),a(_,{label:"\u6392\u5E8F",align:"center",prop:"sort"}),a(_,{label:"\u5F00\u542F\u72B6\u6001",align:"center",prop:"status"},{default:e(l=>[a(T,{type:t(na).COMMON_STATUS,value:l.row.status},null,8,["type","value"])]),_:1}),a(_,{label:"\u521B\u5EFA\u65F6\u95F4",align:"center",prop:"createTime",width:"180",formatter:t(ua)},null,8,["formatter"]),a(_,{label:"\u64CD\u4F5C",align:"center"},{default:e(l=>[i((c(),d(n,{link:"",type:"primary",onClick:j=>S("update",l.row.id)},{default:e(()=>[u(" \u7F16\u8F91 ")]),_:2},1032,["onClick"])),[[h,["trade:delivery:express:update"]]]),i((c(),d(n,{link:"",type:"danger",onClick:j=>(async A=>{try{await x.delConfirm(),await fa(A),x.success(q("common.delSuccess")),await m()}catch{}})(l.row.id)},{default:e(()=>[u(" \u5220\u9664 ")]),_:2},1032,["onClick"])),[[h,["trade:delivery:express:delete"]]])]),_:1})]),_:1},8,["data"])),[[P,t(w)]])]),_:1}),a(xa,{ref_key:"formRef",ref:V,onSuccess:m},null,512)],64)}}}),[["__file","/Users/RuHu.Xu/Desktop/mall-newfeifan-zx-admin/src/views/mall/trade/delivery/express/index.vue"]])});export{Ua as __tla,R as default};