1 |
- import{d as W,n as Z,r as n,f as tt,B as at,P as rt,o as i,c as S,i as t,w as r,a as e,Q as lt,F as N,k as z,l as m,j as c,C as y,t as v,au as et,U as _t,H as ot,D as it,G as st,v as ct,J as nt,K as mt,L as pt,ak as ut,M as ft,N as dt,_ as yt,__tla as ht}from"./index-af173888.js";import{_ as wt,__tla as kt}from"./index-a33d7937.js";import{_ as vt,__tla as bt}from"./DictTag-4a35e2b7.js";import{E as gt,__tla as xt}from"./el-image-fdde0035.js";import{__tla as Ct}from"./el-image-viewer-0d82b94c.js";import{_ as St,__tla as Nt}from"./ContentWrap-b959c1be.js";import{a as Ut,D as $,__tla as Mt}from"./dict-093d1dfa.js";import{f as A,d as Tt,__tla as Pt}from"./formatTime-8a6f6c49.js";import{a as Yt,b as Dt,d as Vt,__tla as Ot}from"./seckillActivity-625683f4.js";import{g as zt,__tla as $t}from"./seckillConfig-ca3be4fb.js";import At,{__tla as Ft}from"./SeckillActivityForm-6da771db.js";import{f as Ht,__tla as Rt}from"./formatter-fe7c8d2a.js";import{u as Et,__tla as It}from"./useMessage-170c1b43.js";import{__tla as Jt}from"./index-54b8f773.js";import"./color-6e929987.js";import{__tla as Kt}from"./el-card-178b9654.js";import{__tla as Lt}from"./Dialog-987c90a1.js";import{__tla as jt}from"./Form-1c876ba3.js";import{__tla as qt}from"./el-virtual-list-de299d42.js";import{__tla as Bt}from"./el-tree-select-cd58540b.js";import{__tla as Gt}from"./el-time-select-6302a345.js";import{__tla as Qt}from"./InputPassword-dc4d37fb.js";import{__tla as Xt}from"./Editor-c9f3a63b.js";import{__tla as Wt}from"./UploadImg-adf73e38.js";import{__tla as Zt}from"./index-4db4ba8b.js";import{__tla as ta}from"./UploadImgs-8cdc0566.js";import{__tla as aa}from"./UploadImgs.vue_vue_type_style_index_0_scoped_9d666400_lang-9154d28f.js";import{__tla as ra}from"./UploadFile-be0ca317.js";import{__tla as la}from"./UploadFile.vue_vue_type_style_index_0_scoped_436eca1b_lang-d9f75960.js";import{__tla as ea}from"./SpuSelect-fff8b892.js";import{__tla as _a}from"./index-0994e210.js";import{__tla as oa}from"./SkuList-d8139bf9.js";import"./tree-02f455f9.js";import{__tla as ia}from"./category-8ca28490.js";import{__tla as sa}from"./spu-41f2bf16.js";import{__tla as ca}from"./SpuAndSkuList-c67f3250.js";import{__tla as na}from"./formRules-515a78c5.js";import{__tla as ma}from"./useCrudSchemas-e2a05839.js";let F,pa=Promise.all([(()=>{try{return ht}catch{}})(),(()=>{try{return kt}catch{}})(),(()=>{try{return bt}catch{}})(),(()=>{try{return xt}catch{}})(),(()=>{try{return Ct}catch{}})(),(()=>{try{return Nt}catch{}})(),(()=>{try{return Mt}catch{}})(),(()=>{try{return Pt}catch{}})(),(()=>{try{return Ot}catch{}})(),(()=>{try{return $t}catch{}})(),(()=>{try{return Ft}catch{}})(),(()=>{try{return Rt}catch{}})(),(()=>{try{return It}catch{}})(),(()=>{try{return Jt}catch{}})(),(()=>{try{return Kt}catch{}})(),(()=>{try{return Lt}catch{}})(),(()=>{try{return jt}catch{}})(),(()=>{try{return qt}catch{}})(),(()=>{try{return Bt}catch{}})(),(()=>{try{return Gt}catch{}})(),(()=>{try{return Qt}catch{}})(),(()=>{try{return Xt}catch{}})(),(()=>{try{return Wt}catch{}})(),(()=>{try{return Zt}catch{}})(),(()=>{try{return ta}catch{}})(),(()=>{try{return aa}catch{}})(),(()=>{try{return ra}catch{}})(),(()=>{try{return la}catch{}})(),(()=>{try{return ea}catch{}})(),(()=>{try{return _a}catch{}})(),(()=>{try{return oa}catch{}})(),(()=>{try{return ia}catch{}})(),(()=>{try{return sa}catch{}})(),(()=>{try{return ca}catch{}})(),(()=>{try{return na}catch{}})(),(()=>{try{return ma}catch{}})()]).then(async()=>{let U;U=W({name:"SeckillActivity",__name:"index",setup(ua){const h=Et(),{t:H}=Z(),b=n(!0),M=n(0),T=n([]),o=tt({pageNo:1,pageSize:10,name:null,status:null}),P=n();n(!1);const p=async()=>{b.value=!0;try{const s=await Yt(o);T.value=s.list,M.value=s.total}finally{b.value=!1}},g=()=>{o.pageNo=1,p()},R=()=>{P.value.resetFields(),g()},Y=n(),D=(s,l)=>{Y.value.open(s,l)},V=n([]),E=s=>{const l=V.value.find(f=>f.id===s);return l!=null?`${l.name}[${l.startTime} ~ ${l.endTime}]`:""},I=s=>{const l=Math.min(...s.map(f=>f.seckillPrice));return`\uFFE5${et(l)}`};return at(async()=>{await p(),V.value=await zt()}),(s,l)=>{const f=_t,x=ot,J=it,K=st,C=ct,u=nt,L=mt,O=St,_=pt,j=ut,q=gt,B=vt,G=ft,Q=wt,w=rt("hasPermi"),X=dt;return i(),S(N,null,[t(O,null,{default:r(()=>[t(L,{class:"-mb-15px",model:e(o),ref_key:"queryFormRef",ref:P,inline:!0,"label-width":"68px"},{default:r(()=>[t(x,{label:"\u6D3B\u52A8\u540D\u79F0",prop:"name"},{default:r(()=>[t(f,{modelValue:e(o).name,"onUpdate:modelValue":l[0]||(l[0]=a=>e(o).name=a),placeholder:"\u8BF7\u8F93\u5165\u6D3B\u52A8\u540D\u79F0",clearable:"",onKeyup:lt(g,["enter"]),class:"!w-240px"},null,8,["modelValue"])]),_:1}),t(x,{label:"\u6D3B\u52A8\u72B6\u6001",prop:"status"},{default:r(()=>[t(K,{modelValue:e(o).status,"onUpdate:modelValue":l[1]||(l[1]=a=>e(o).status=a),placeholder:"\u8BF7\u9009\u62E9\u6D3B\u52A8\u72B6\u6001",clearable:"",class:"!w-240px"},{default:r(()=>[(i(!0),S(N,null,z(e(Ut)(e($).COMMON_STATUS),a=>(i(),m(J,{key:a.value,label:a.label,value:a.value},null,8,["label","value"]))),128))]),_:1},8,["modelValue"])]),_:1}),t(x,null,{default:r(()=>[t(u,{onClick:g},{default:r(()=>[t(C,{icon:"ep:search",class:"mr-5px"}),c(" \u641C\u7D22")]),_:1}),t(u,{onClick:R},{default:r(()=>[t(C,{icon:"ep:refresh",class:"mr-5px"}),c(" \u91CD\u7F6E")]),_:1}),y((i(),m(u,{type:"primary",plain:"",onClick:l[2]||(l[2]=a=>D("create"))},{default:r(()=>[t(C,{icon:"ep:plus",class:"mr-5px"}),c(" \u65B0\u589E ")]),_:1})),[[w,["promotion:seckill-activity:create"]]])]),_:1})]),_:1},8,["model"])]),_:1}),t(O,null,{default:r(()=>[y((i(),m(G,{data:e(T),stripe:!0,"show-overflow-tooltip":!0},{default:r(()=>[t(_,{label:"\u6D3B\u52A8\u7F16\u53F7",prop:"id","min-width":"80"}),t(_,{label:"\u6D3B\u52A8\u540D\u79F0",prop:"name","min-width":"140"}),t(_,{label:"\u79D2\u6740\u65F6\u6BB5",prop:"configIds",width:"220px","show-overflow-tooltip":!1},{default:r(a=>[(i(!0),S(N,null,z(a.row.configIds,(k,d)=>(i(),m(j,{key:d,class:"mr-5px"},{default:r(()=>[c(v(E(k)),1)]),_:2},1024))),128))]),_:1}),t(_,{label:"\u6D3B\u52A8\u65F6\u95F4","min-width":"210"},{default:r(a=>[c(v(e(A)(a.row.startTime,"YYYY-MM-DD"))+" ~ "+v(e(A)(a.row.endTime,"YYYY-MM-DD")),1)]),_:1}),t(_,{label:"\u5546\u54C1\u56FE\u7247",prop:"spuName","min-width":"80"},{default:r(a=>[t(q,{src:a.row.picUrl,class:"h-40px w-40px","preview-src-list":[a.row.picUrl],"preview-teleported":""},null,8,["src","preview-src-list"])]),_:1}),t(_,{label:"\u5546\u54C1\u6807\u9898",prop:"spuName","min-width":"300"}),t(_,{label:"\u539F\u4EF7",prop:"marketPrice","min-width":"100",formatter:e(Ht)},null,8,["formatter"]),t(_,{label:"\u539F\u4EF7",prop:"marketPrice","min-width":"100"}),t(_,{label:"\u79D2\u6740\u4EF7",prop:"seckillPrice","min-width":"100"},{default:r(a=>[c(v(I(a.row.products)),1)]),_:1}),t(_,{label:"\u6D3B\u52A8\u72B6\u6001",align:"center",prop:"status","min-width":"100"},{default:r(a=>[t(B,{type:e($).COMMON_STATUS,value:a.row.status},null,8,["type","value"])]),_:1}),t(_,{label:"\u5E93\u5B58",align:"center",prop:"stock","min-width":"80"}),t(_,{label:"\u603B\u5E93\u5B58",align:"center",prop:"totalStock","min-width":"80"}),t(_,{label:"\u521B\u5EFA\u65F6\u95F4",align:"center",prop:"createTime",formatter:e(Tt),width:"180px"},null,8,["formatter"]),t(_,{label:"\u64CD\u4F5C",align:"center",width:"150px",fixed:"right"},{default:r(a=>[y((i(),m(u,{link:"",type:"primary",onClick:k=>D("update",a.row.id)},{default:r(()=>[c(" \u7F16\u8F91 ")]),_:2},1032,["onClick"])),[[w,["promotion:seckill-activity:update"]]]),a.row.status===0?y((i(),m(u,{key:0,link:"",type:"danger",onClick:k=>(async d=>{try{await h.confirm("\u786E\u8BA4\u5173\u95ED\u8BE5\u79D2\u6740\u6D3B\u52A8\u5417\uFF1F"),await Dt(d),h.success("\u5173\u95ED\u6210\u529F"),await p()}catch{}})(a.row.id)},{default:r(()=>[c(" \u5173\u95ED ")]),_:2},1032,["onClick"])),[[w,["promotion:seckill-activity:close"]]]):y((i(),m(u,{key:1,link:"",type:"danger",onClick:k=>(async d=>{try{await h.delConfirm(),await Vt(d),h.success(H("common.delSuccess")),await p()}catch{}})(a.row.id)},{default:r(()=>[c(" \u5220\u9664 ")]),_:2},1032,["onClick"])),[[w,["promotion:seckill-activity:delete"]]])]),_:1})]),_:1},8,["data"])),[[X,e(b)]]),t(Q,{total:e(M),page:e(o).pageNo,"onUpdate:page":l[3]||(l[3]=a=>e(o).pageNo=a),limit:e(o).pageSize,"onUpdate:limit":l[4]||(l[4]=a=>e(o).pageSize=a),onPagination:p},null,8,["total","page","limit"])]),_:1}),t(At,{ref_key:"formRef",ref:Y,onSuccess:p},null,512)],64)}}}),F=yt(U,[["__file","/Users/RuHu.Xu/Desktop/mall-newfeifan-zx-admin/src/views/mall/promotion/seckill/activity/index.vue"]])});export{pa as __tla,F as default};
|