1 |
- import{d as z,P as J,r as p,x as K,b as Q,a3 as W,o as _,c as M,f as a,A as e,a as t,a4 as Y,F as S,Q as j,C as u,D as i,k as d,a8 as B,U as I,R as L,S as Z,_ as $,J as aa,V as ea,W as la,X as ta,Y as ra,__tla as sa}from"./index-1f518666.js";import{_ as _a,__tla as oa}from"./DictTag.vue_vue_type_script_lang-8a012661.js";import{_ as na,__tla as ca}from"./ContentWrap.vue_vue_type_script_setup_true_lang-a4de6de9.js";import{a as pa,D as R,__tla as ua}from"./dict-167d9193.js";import{d as ia,__tla as ma}from"./formatTime-a4909bb5.js";import{b as da,d as fa,__tla as ya}from"./index-c06d95ba.js";import{_ as ha,__tla as ba}from"./ExpressTemplateForm.vue_vue_type_script_setup_true_lang-855babdc.js";import{u as va,__tla as wa}from"./useMessage-633c11d2.js";import"./color-6e929987.js";import{__tla as xa}from"./el-card-955661ed.js";import{__tla as ga}from"./Dialog-4c960d8c.js";import"./_plugin-vue_export-helper-1b428a4d.js";import{__tla as ka}from"./index-76c5f5c4.js";import"./tree-0af4953a.js";let V,Ca=Promise.all([(()=>{try{return sa}catch{}})(),(()=>{try{return oa}catch{}})(),(()=>{try{return ca}catch{}})(),(()=>{try{return ua}catch{}})(),(()=>{try{return ma}catch{}})(),(()=>{try{return ya}catch{}})(),(()=>{try{return ba}catch{}})(),(()=>{try{return wa}catch{}})(),(()=>{try{return xa}catch{}})(),(()=>{try{return ga}catch{}})(),(()=>{try{return ka}catch{}})()]).then(async()=>{V=z({name:"DeliveryExpressTemplate",__name:"index",setup(Ea){const w=va(),{t:P}=J(),D=p(0),f=p(!0),x=p([]),s=K({pageNo:1,pageSize:10,name:"",chargeMode:void 0}),g=p(),m=async()=>{f.value=!0;try{const n=await da(s);x.value=n.list,D.value=n.total}finally{f.value=!1}},y=()=>{s.pageNo=1,m()},U=()=>{g.value.resetFields(),y()},k=p(),C=(n,r)=>{k.value.open(n,r)};return Q(()=>{m()}),(n,r)=>{const A=B,h=I,F=L,G=Z,b=$,c=aa,H=ea,E=na,o=la,X=_a,N=ta,v=W("hasPermi"),O=ra;return _(),M(S,null,[a(E,null,{default:e(()=>[a(H,{class:"-mb-15px",model:t(s),ref_key:"queryFormRef",ref:g,inline:!0,"label-width":"100px"},{default:e(()=>[a(h,{label:"\u6A21\u677F\u540D\u79F0",prop:"name"},{default:e(()=>[a(A,{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:Y(y,["enter"]),class:"!w-240px"},null,8,["modelValue"])]),_:1}),a(h,{label:"\u8BA1\u8D39\u65B9\u5F0F",prop:"chargeMode"},{default:e(()=>[a(G,{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:e(()=>[(_(!0),M(S,null,j(t(pa)(t(R).EXPRESS_CHARGE_MODE),l=>(_(),u(F,{key:l.value,label:l.label,value:l.value},null,8,["label","value"]))),128))]),_:1},8,["modelValue"])]),_:1}),a(h,null,{default:e(()=>[a(c,{onClick:y},{default:e(()=>[a(b,{icon:"ep:search",class:"mr-5px"}),i(" \u641C\u7D22")]),_:1}),a(c,{onClick:U},{default:e(()=>[a(b,{icon:"ep:refresh",class:"mr-5px"}),i(" \u91CD\u7F6E")]),_:1}),d((_(),u(c,{type:"primary",plain:"",onClick:r[2]||(r[2]=l=>C("create"))},{default:e(()=>[a(b,{icon:"ep:plus",class:"mr-5px"}),i(" \u65B0\u589E ")]),_:1})),[[v,["trade:delivery:express-template:create"]]])]),_:1})]),_:1},8,["model"])]),_:1}),a(E,null,{default:e(()=>[d((_(),u(N,{data:t(x)},{default:e(()=>[a(o,{label:"\u7F16\u53F7","min-width":"60",prop:"id"}),a(o,{label:"\u6A21\u677F\u540D\u79F0","min-width":"100",prop:"name"}),a(o,{label:"\u8BA1\u8D39\u65B9\u5F0F",prop:"chargeMode","min-width":"100",align:"center"},{default:e(l=>[a(X,{type:t(R).EXPRESS_CHARGE_MODE,value:l.row.chargeMode},null,8,["type","value"])]),_:1}),a(o,{label:"\u6392\u5E8F","min-width":"100",prop:"sort"}),a(o,{label:"\u521B\u5EFA\u65F6\u95F4",align:"center",prop:"createTime",width:"180",formatter:t(ia)},null,8,["formatter"]),a(o,{label:"\u64CD\u4F5C",align:"center"},{default:e(l=>[d((_(),u(c,{link:"",type:"primary",onClick:T=>C("update",l.row.id)},{default:e(()=>[i(" \u7F16\u8F91 ")]),_:2},1032,["onClick"])),[[v,["trade:delivery:express-template:update"]]]),d((_(),u(c,{link:"",type:"danger",onClick:T=>(async q=>{try{await w.delConfirm(),await fa(q),w.success(P("common.delSuccess")),await m()}catch{}})(l.row.id)},{default:e(()=>[i(" \u5220\u9664 ")]),_:2},1032,["onClick"])),[[v,["trade:delivery:express-template:delete"]]])]),_:1})]),_:1},8,["data"])),[[O,t(f)]])]),_:1}),a(ha,{ref_key:"formRef",ref:k,onSuccess:m},null,512)],64)}}})});export{Ca as __tla,V as default};
|