index-52404291.js 4.8 KB

1
  1. import{d as W,P as X,r as p,x as Y,b as j,a3 as B,o as c,c as F,f as a,A as e,a as t,a4 as K,D as u,k as i,C as m,a2 as G,F as H,a8 as I,U as L,_ as Q,J as Z,V as $,W as aa,X as ea,Y as la,__tla as ta}from"./index-a9d538d5.js";import{_ as ra,__tla as oa}from"./DictTag.vue_vue_type_script_lang-9e4dd0a0.js";import{_ as sa,__tla as _a}from"./ContentWrap.vue_vue_type_script_setup_true_lang-6b7b4656.js";import{D as ca,__tla as na}from"./dict-0e53af99.js";import{d as pa,__tla as ua}from"./formatTime-8985a9d0.js";import{d as ia}from"./download-20922b56.js";import{b as ma,d as da,e as fa,__tla as ya}from"./index-ad8df48e.js";import{_ as ha,__tla as xa}from"./ExpressForm.vue_vue_type_script_setup_true_lang-d7b287e3.js";import{u as ga,__tla as wa}from"./useMessage-d5cbbfad.js";import"./color-6e929987.js";import{__tla as ba}from"./el-card-0ea446a3.js";import{__tla as ka}from"./Dialog-f354f369.js";import"./_plugin-vue_export-helper-1b428a4d.js";import{__tla as va}from"./UploadImg-4d05829d.js";import{__tla as Ca}from"./index-ab25a150.js";import{__tla as Va}from"./el-image-viewer-2e77a3e7.js";import"./constants-c811e5ff.js";let M,Sa=Promise.all([(()=>{try{return ta}catch{}})(),(()=>{try{return oa}catch{}})(),(()=>{try{return _a}catch{}})(),(()=>{try{return na}catch{}})(),(()=>{try{return ua}catch{}})(),(()=>{try{return ya}catch{}})(),(()=>{try{return xa}catch{}})(),(()=>{try{return wa}catch{}})(),(()=>{try{return ba}catch{}})(),(()=>{try{return ka}catch{}})(),(()=>{try{return va}catch{}})(),(()=>{try{return Ca}catch{}})(),(()=>{try{return Va}catch{}})()]).then(async()=>{let k;k=["src"],M=W({name:"Express",__name:"index",setup(Ta){const x=ga(),{t:N}=X(),O=p(0),g=p(!0),v=p([]),r=Y({pageNo:1,pageSize:10,code:"",name:""}),C=p(),w=p(!1),d=async()=>{g.value=!0;try{const s=await ma(r);v.value=s.list,O.value=s.total}finally{g.value=!1}},f=()=>{r.pageNo=1,d()},P=()=>{C.value.resetFields(),f()},V=p(),S=(s,o)=>{V.value.open(s,o)},q=async()=>{try{await x.exportConfirm(),w.value=!0;const s=await fa(r);ia.excel(s,"\u5FEB\u9012\u516C\u53F8.xls")}catch{}finally{w.value=!1}};return j(()=>{d()}),(s,o)=>{const T=I,b=L,y=Q,n=Z,A=$,U=sa,_=aa,D=ra,R=ea,h=B("hasPermi"),z=la;return c(),F(H,null,[a(U,null,{default:e(()=>[a(A,{class:"-mb-15px",model:t(r),ref_key:"queryFormRef",ref:C,inline:!0,"label-width":"100px"},{default:e(()=>[a(b,{label:"\u5FEB\u9012\u516C\u53F8\u7F16\u53F7",prop:"code"},{default:e(()=>[a(T,{modelValue:t(r).code,"onUpdate:modelValue":o[0]||(o[0]=l=>t(r).code=l),placeholder:"\u8BF7\u8F93\u5FEB\u9012\u516C\u53F8\u7F16\u53F7",clearable:"",onKeyup:K(f,["enter"]),class:"!w-240px"},null,8,["modelValue"])]),_:1}),a(b,{label:"\u5FEB\u9012\u516C\u53F8\u540D\u79F0",prop:"name"},{default:e(()=>[a(T,{modelValue:t(r).name,"onUpdate:modelValue":o[1]||(o[1]=l=>t(r).name=l),placeholder:"\u8BF7\u8F93\u5FEB\u9012\u516C\u53F8\u540D\u79F0",clearable:"",onKeyup:K(f,["enter"]),class:"!w-240px"},null,8,["modelValue"])]),_:1}),a(b,null,{default:e(()=>[a(n,{onClick:f},{default:e(()=>[a(y,{icon:"ep:search",class:"mr-5px"}),u(" \u641C\u7D22")]),_:1}),a(n,{onClick:P},{default:e(()=>[a(y,{icon:"ep:refresh",class:"mr-5px"}),u(" \u91CD\u7F6E")]),_:1}),i((c(),m(n,{type:"primary",plain:"",onClick:o[2]||(o[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(),m(n,{type:"success",plain:"",onClick:q,loading:t(w)},{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(U,null,{default:e(()=>[i((c(),m(R,{data:t(v)},{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(),F("img",{key:0,src:l.row.logo,alt:"\u516C\u53F8logo",class:"h-40px"},null,8,k)):G("",!0)]),_:1}),a(_,{label:"\u6392\u5E8F",align:"center",prop:"sort"}),a(_,{label:"\u5F00\u542F\u72B6\u6001",align:"center",prop:"status"},{default:e(l=>[a(D,{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(pa)},null,8,["formatter"]),a(_,{label:"\u64CD\u4F5C",align:"center"},{default:e(l=>[i((c(),m(n,{link:"",type:"primary",onClick:E=>S("update",l.row.id)},{default:e(()=>[u(" \u7F16\u8F91 ")]),_:2},1032,["onClick"])),[[h,["trade:delivery:express:update"]]]),i((c(),m(n,{link:"",type:"danger",onClick:E=>(async J=>{try{await x.delConfirm(),await da(J),x.success(N("common.delSuccess")),await d()}catch{}})(l.row.id)},{default:e(()=>[u(" \u5220\u9664 ")]),_:2},1032,["onClick"])),[[h,["trade:delivery:express:delete"]]])]),_:1})]),_:1},8,["data"])),[[z,t(g)]])]),_:1}),a(ha,{ref_key:"formRef",ref:V,onSuccess:d},null,512)],64)}}})});export{Sa as __tla,M as default};