1 |
- import{d as X,B as q,r as i,g as B,z as I,T as J,o as _,c as E,i as e,w as a,a as t,U as L,F as S,C as Y,k as p,l as u,D as m,Y as j,I as Q,G as W,H as Z,n as $,s as ee,J as ae,K as le,L as te,M as re,_ as se,__tla as _e}from"./index-2f799233.js";import{_ as oe,__tla as ne}from"./DictTag-ea4c6cc2.js";import{_ as ce,__tla as ie}from"./ContentWrap-9da801df.js";import{a as pe,D,__tla as ue}from"./dict-20c916e2.js";import{d as de,__tla as me}from"./formatTime-2157894c.js";import{b as fe,d as ye,__tla as he}from"./index-6810ba49.js";import ve,{__tla as we}from"./ExpressTemplateForm-fcf0d5b9.js";import{u as be,__tla as xe}from"./useMessage-e567ad40.js";import"./color-6e929987.js";import{__tla as ge}from"./el-card-c64c83d1.js";import{__tla as ke}from"./Dialog-6fd39e06.js";import{__tla as Ce}from"./index-0f3b07dc.js";import"./tree-0af4953a.js";let R,Me=Promise.all([(()=>{try{return _e}catch{}})(),(()=>{try{return ne}catch{}})(),(()=>{try{return ie}catch{}})(),(()=>{try{return ue}catch{}})(),(()=>{try{return me}catch{}})(),(()=>{try{return he}catch{}})(),(()=>{try{return we}catch{}})(),(()=>{try{return xe}catch{}})(),(()=>{try{return ge}catch{}})(),(()=>{try{return ke}catch{}})(),(()=>{try{return Ce}catch{}})()]).then(async()=>{R=se(X({name:"DeliveryExpressTemplate",__name:"index",setup(Ee){const b=be(),{t:V}=q(),z=i(0),f=i(!0),x=i([]),s=B({pageNo:1,pageSize:10,name:"",chargeMode:void 0}),g=i(),d=async()=>{f.value=!0;try{const n=await fe(s);x.value=n.list,z.value=n.total}finally{f.value=!1}},y=()=>{s.pageNo=1,d()},P=()=>{g.value.resetFields(),y()},k=i(),C=(n,r)=>{k.value.open(n,r)};return I(()=>{d()}),(n,r)=>{const G=j,h=Q,H=W,T=Z,v=$,c=ee,F=ae,M=ce,o=le,U=oe,A=te,w=J("hasPermi"),K=re;return _(),E(S,null,[e(M,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:L(y,["enter"]),class:"!w-240px"},null,8,["modelValue"])]),_:1}),e(h,{label:"\u8BA1\u8D39\u65B9\u5F0F",prop:"chargeMode"},{default:a(()=>[e(T,{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),E(S,null,Y(t(pe)(t(D).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}),m((_(),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(M,null,{default:a(()=>[m((_(),p(A,{data:t(x)},{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(U,{type:t(D).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(de)},null,8,["formatter"]),e(o,{label:"\u64CD\u4F5C",align:"center"},{default:a(l=>[m((_(),p(c,{link:"",type:"primary",onClick:N=>C("update",l.row.id)},{default:a(()=>[u(" \u7F16\u8F91 ")]),_:2},1032,["onClick"])),[[w,["trade:delivery:express-template:update"]]]),m((_(),p(c,{link:"",type:"danger",onClick:N=>(async O=>{try{await b.delConfirm(),await ye(O),b.success(V("common.delSuccess")),await d()}catch{}})(l.row.id)},{default:a(()=>[u(" \u5220\u9664 ")]),_:2},1032,["onClick"])),[[w,["trade:delivery:express-template:delete"]]])]),_:1})]),_:1},8,["data"])),[[K,t(f)]])]),_:1}),e(ve,{ref_key:"formRef",ref:k,onSuccess:d},null,512)],64)}}}),[["__file","D:/zx/mall-newfeifan-zx-business/src/views/mall/trade/delivery/expressTemplate/index.vue"]])});export{Me as __tla,R as default};
|