index-17e13579.js 4.4 KB

1
  1. import{d as X,h as j,r as i,e as I,l as K,R as W,o as _,c as M,f as e,w as a,a as t,S as B,F as S,q as J,v as p,n as u,x as d,W as L,A as Q,y as Y,z as Z,j as $,C as ee,D as ae,G as le,H as te,I as re,_ as se,__tla as _e}from"./index-4a137b90.js";import{_ as oe,__tla as ne}from"./DictTag-924c44dc.js";import{_ as ce,__tla as ie}from"./ContentWrap-30fddd97.js";import{a as pe,D as R,__tla as ue}from"./dict-84f95f40.js";import{d as me,__tla as de}from"./formatTime-afe1b360.js";import{b as fe,d as ye,__tla as he}from"./index-69894e9c.js";import ve,{__tla as we}from"./ExpressTemplateForm-de64c66f.js";import{u as xe,__tla as be}from"./useMessage-83545d0a.js";import"./color-6e929987.js";import{__tla as ge}from"./ContentWrap.vue_vue_type_script_setup_true_lang-59294cc3.js";import{__tla as ke}from"./el-card-75374a82.js";import{__tla as Ce}from"./Dialog-24d115f4.js";import{__tla as Ee}from"./index-b4955a27.js";import"./tree-0af4953a.js";let D,Me=Promise.all([(()=>{try{return _e}catch{}})(),(()=>{try{return ne}catch{}})(),(()=>{try{return ie}catch{}})(),(()=>{try{return ue}catch{}})(),(()=>{try{return de}catch{}})(),(()=>{try{return he}catch{}})(),(()=>{try{return we}catch{}})(),(()=>{try{return be}catch{}})(),(()=>{try{return ge}catch{}})(),(()=>{try{return ke}catch{}})(),(()=>{try{return Ce}catch{}})(),(()=>{try{return Ee}catch{}})()]).then(async()=>{D=se(X({name:"DeliveryExpressTemplate",__name:"index",setup(Se){const x=xe(),{t:V}=j(),z=i(0),f=i(!0),b=i([]),s=I({pageNo:1,pageSize:10,name:"",chargeMode:void 0}),g=i(),m=async()=>{f.value=!0;try{const n=await fe(s);b.value=n.list,z.value=n.total}finally{f.value=!1}},y=()=>{s.pageNo=1,m()},P=()=>{g.value.resetFields(),y()},k=i(),C=(n,r)=>{k.value.open(n,r)};return K(()=>{m()}),(n,r)=>{const G=L,h=Q,H=Y,A=Z,v=$,c=ee,F=ae,E=ce,o=le,T=oe,q=te,w=W("hasPermi"),N=re;return _(),M(S,null,[e(E,null,{default:a(()=>[e(F,{class:"-mb-15px",model:t(s),ref_key:"queryFormRef",ref:g,inline:!0,"label-width":"100px"},{default:a(()=>[e(h,{label:"\u6A21\u677F\u540D\u79F0",prop:"name"},{default:a(()=>[e(G,{modelValue:t(s).name,"onUpdate:modelValue":r[0]||(r[0]=l=>t(s).name=l),placeholder:"\u8BF7\u8F93\u5165\u6A21\u677F\u540D\u79F0",clearable:"",onKeyup:B(y,["enter"]),class:"!w-240px"},null,8,["modelValue"])]),_:1}),e(h,{label:"\u8BA1\u8D39\u65B9\u5F0F",prop:"chargeMode"},{default:a(()=>[e(A,{modelValue:t(s).chargeMode,"onUpdate:modelValue":r[1]||(r[1]=l=>t(s).chargeMode=l),placeholder:"\u8BA1\u8D39\u65B9\u5F0F",clearable:"",class:"!w-240px"},{default:a(()=>[(_(!0),M(S,null,J(t(pe)(t(R).EXPRESS_CHARGE_MODE),l=>(_(),p(H,{key:l.value,label:l.label,value:l.value},null,8,["label","value"]))),128))]),_:1},8,["modelValue"])]),_:1}),e(h,null,{default:a(()=>[e(c,{onClick:y},{default:a(()=>[e(v,{icon:"ep:search",class:"mr-5px"}),u(" \u641C\u7D22")]),_:1}),e(c,{onClick:P},{default:a(()=>[e(v,{icon:"ep:refresh",class:"mr-5px"}),u(" \u91CD\u7F6E")]),_:1}),d((_(),p(c,{type:"primary",plain:"",onClick:r[2]||(r[2]=l=>C("create"))},{default:a(()=>[e(v,{icon:"ep:plus",class:"mr-5px"}),u(" \u65B0\u589E ")]),_:1})),[[w,["trade:delivery:express-template:create"]]])]),_:1})]),_:1},8,["model"])]),_:1}),e(E,null,{default:a(()=>[d((_(),p(q,{data:t(b)},{default:a(()=>[e(o,{label:"\u7F16\u53F7","min-width":"60",prop:"id"}),e(o,{label:"\u6A21\u677F\u540D\u79F0","min-width":"100",prop:"name"}),e(o,{label:"\u8BA1\u8D39\u65B9\u5F0F",prop:"chargeMode","min-width":"100",align:"center"},{default:a(l=>[e(T,{type:t(R).EXPRESS_CHARGE_MODE,value:l.row.chargeMode},null,8,["type","value"])]),_:1}),e(o,{label:"\u6392\u5E8F","min-width":"100",prop:"sort"}),e(o,{label:"\u521B\u5EFA\u65F6\u95F4",align:"center",prop:"createTime",width:"180",formatter:t(me)},null,8,["formatter"]),e(o,{label:"\u64CD\u4F5C",align:"center"},{default:a(l=>[d((_(),p(c,{link:"",type:"primary",onClick:O=>C("update",l.row.id)},{default:a(()=>[u(" \u7F16\u8F91 ")]),_:2},1032,["onClick"])),[[w,["trade:delivery:express-template:update"]]]),d((_(),p(c,{link:"",type:"danger",onClick:O=>(async U=>{try{await x.delConfirm(),await ye(U),x.success(V("common.delSuccess")),await m()}catch{}})(l.row.id)},{default:a(()=>[u(" \u5220\u9664 ")]),_:2},1032,["onClick"])),[[w,["trade:delivery:express-template:delete"]]])]),_:1})]),_:1},8,["data"])),[[N,t(f)]])]),_:1}),e(ve,{ref_key:"formRef",ref:k,onSuccess:m},null,512)],64)}}}),[["__file","D:/zx/mall-newfeifan-zx-business/src/views/mall/trade/delivery/expressTemplate/index.vue"]])});export{Me as __tla,D as default};