index-b1c9e633.js 4.9 KB

1
  1. import{d as q,h as G,r as p,e as H,l as Q,Q as B,o as n,c as U,f as a,w as e,a as t,R as z,n as i,x as u,v as m,P as J,F as L,V as W,A as X,j as Y,C as $,D as Z,G as aa,H as ea,I as la,_ as ta,__tla as ra}from"./index-bd9277a1.js";import{_ as sa,__tla as oa}from"./DictTag-d6503fab.js";import{_ as _a,__tla as na}from"./ContentWrap-7c73ab26.js";import{D as ca,__tla as pa}from"./dict-4b2e9fd3.js";import{d as ia,__tla as ua}from"./formatTime-8639ba1a.js";import{d as ma}from"./download-20922b56.js";import{b as da,d as fa,e as ya,__tla as ha}from"./index-279b10c2.js";import xa,{__tla as wa}from"./ExpressForm-82c72e09.js";import{u as ga,__tla as va}from"./useMessage-274788d4.js";import"./color-6e929987.js";import{__tla as ba}from"./ContentWrap.vue_vue_type_script_setup_true_lang-5f6a2d0d.js";import{__tla as ka}from"./el-card-bc8cec83.js";import{__tla as Ca}from"./Dialog-eba103da.js";import{__tla as Va}from"./UploadImg-be688408.js";import{__tla as Sa}from"./index-b80ba4d7.js";import{__tla as Fa}from"./el-image-viewer-995341ab.js";import"./constants-40f13f5e.js";let A,Na=Promise.all([(()=>{try{return ra}catch{}})(),(()=>{try{return oa}catch{}})(),(()=>{try{return na}catch{}})(),(()=>{try{return pa}catch{}})(),(()=>{try{return ua}catch{}})(),(()=>{try{return ha}catch{}})(),(()=>{try{return wa}catch{}})(),(()=>{try{return va}catch{}})(),(()=>{try{return ba}catch{}})(),(()=>{try{return ka}catch{}})(),(()=>{try{return Ca}catch{}})(),(()=>{try{return Va}catch{}})(),(()=>{try{return Sa}catch{}})(),(()=>{try{return Fa}catch{}})()]).then(async()=>{let b;b=["src"],A=ta(q({name:"Express",__name:"index",setup(Ua){const x=ga(),{t:D}=G(),P=p(0),w=p(!0),k=p([]),r=H({pageNo:1,pageSize:10,code:"",name:""}),C=p(),g=p(!1),d=async()=>{w.value=!0;try{const o=await da(r);k.value=o.list,P.value=o.total}finally{w.value=!1}},f=()=>{r.pageNo=1,d()},R=()=>{C.value.resetFields(),f()},V=p(),S=(o,s)=>{V.value.open(o,s)},T=async()=>{try{await x.exportConfirm(),g.value=!0;const o=await ya(r);ma.excel(o,"\u5FEB\u9012\u516C\u53F8.xls")}catch{}finally{g.value=!1}};return Q(()=>{d()}),(o,s)=>{const F=W,v=X,y=Y,c=$,E=Z,N=_a,_=aa,I=sa,K=ea,h=B("hasPermi"),M=la;return n(),U(L,null,[a(N,null,{default:e(()=>[a(E,{class:"-mb-15px",model:t(r),ref_key:"queryFormRef",ref:C,inline:!0,"label-width":"100px"},{default:e(()=>[a(v,{label:"\u5FEB\u9012\u516C\u53F8\u7F16\u53F7",prop:"code"},{default:e(()=>[a(F,{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:z(f,["enter"]),class:"!w-240px"},null,8,["modelValue"])]),_:1}),a(v,{label:"\u5FEB\u9012\u516C\u53F8\u540D\u79F0",prop:"name"},{default:e(()=>[a(F,{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:z(f,["enter"]),class:"!w-240px"},null,8,["modelValue"])]),_:1}),a(v,null,{default:e(()=>[a(c,{onClick:f},{default:e(()=>[a(y,{icon:"ep:search",class:"mr-5px"}),i(" \u641C\u7D22")]),_:1}),a(c,{onClick:R},{default:e(()=>[a(y,{icon:"ep:refresh",class:"mr-5px"}),i(" \u91CD\u7F6E")]),_:1}),u((n(),m(c,{type:"primary",plain:"",onClick:s[2]||(s[2]=l=>S("create"))},{default:e(()=>[a(y,{icon:"ep:plus",class:"mr-5px"}),i(" \u65B0\u589E ")]),_:1})),[[h,["trade:delivery:express:create"]]]),u((n(),m(c,{type:"success",plain:"",onClick:T,loading:t(g)},{default:e(()=>[a(y,{icon:"ep:download",class:"mr-5px"}),i(" \u5BFC\u51FA ")]),_:1},8,["loading"])),[[h,["trade:delivery:express:export"]]])]),_:1})]),_:1},8,["model"])]),_:1}),a(N,null,{default:e(()=>[u((n(),m(K,{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?(n(),U("img",{key:0,src:l.row.logo,alt:"\u516C\u53F8logo",class:"h-40px"},null,8,b)):J("",!0)]),_:1}),a(_,{label:"\u6392\u5E8F",align:"center",prop:"sort"}),a(_,{label:"\u5F00\u542F\u72B6\u6001",align:"center",prop:"status"},{default:e(l=>[a(I,{type:t(ca).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(ia)},null,8,["formatter"]),a(_,{label:"\u64CD\u4F5C",align:"center"},{default:e(l=>[u((n(),m(c,{link:"",type:"primary",onClick:O=>S("update",l.row.id)},{default:e(()=>[i(" \u7F16\u8F91 ")]),_:2},1032,["onClick"])),[[h,["trade:delivery:express:update"]]]),u((n(),m(c,{link:"",type:"danger",onClick:O=>(async j=>{try{await x.delConfirm(),await fa(j),x.success(D("common.delSuccess")),await d()}catch{}})(l.row.id)},{default:e(()=>[i(" \u5220\u9664 ")]),_:2},1032,["onClick"])),[[h,["trade:delivery:express:delete"]]])]),_:1})]),_:1},8,["data"])),[[M,t(w)]])]),_:1}),a(xa,{ref_key:"formRef",ref:V,onSuccess:d},null,512)],64)}}}),[["__file","D:/zhongxing/mall-newfeifan-zx-admin/src/views/mall/trade/delivery/express/index.vue"]])});export{Na as __tla,A as default};