1 |
- import{d as X,h as Z,r as n,e as tt,l as at,Q as rt,o as i,c as S,f as t,w as r,a as e,R as lt,F as M,q as $,v as m,n as c,x as y,t as v,at as et,V as _t,A as ot,y as it,z as st,j as ct,C as nt,D as mt,G as pt,al as ut,H as ft,I as dt,_ as yt,__tla as ht}from"./index-6d7b82ba.js";import{_ as wt,__tla as kt}from"./index-a786614b.js";import{_ as vt,__tla as bt}from"./DictTag-300da1c0.js";import{E as gt,__tla as xt}from"./el-image-afb9e567.js";import{__tla as Ct}from"./el-image-viewer-4a19ded4.js";import{_ as St,__tla as Mt}from"./ContentWrap-1ba5c8ca.js";import{a as Tt,D as A,__tla as Nt}from"./dict-efb5f3b6.js";import{f as O,d as Ut,__tla as Yt}from"./formatTime-d24faf41.js";import{a as Dt,b as Pt,d as Vt,__tla as zt}from"./seckillActivity-c2e24c66.js";import{g as $t,__tla as At}from"./seckillConfig-c7728834.js";import Ot,{__tla as Ft}from"./SeckillActivityForm-40fb181f.js";import{f as Rt,__tla as qt}from"./formatter-832daf50.js";import{u as Gt,__tla as It}from"./useMessage-be161634.js";import{__tla as jt}from"./index-e37504b6.js";import"./color-6e929987.js";import{__tla as Bt}from"./ContentWrap.vue_vue_type_script_setup_true_lang-68bb15fa.js";import{__tla as Et}from"./el-card-1a4b93b1.js";import{__tla as Ht}from"./Dialog-78181bae.js";import{__tla as Kt}from"./Form-bee7ccb5.js";import{__tla as Lt}from"./el-virtual-list-2b25c1ae.js";import{__tla as Qt}from"./el-tree-select-23e10a37.js";import{__tla as Wt}from"./el-time-select-34f55ab8.js";import{__tla as Jt}from"./InputPassword-975a1e0c.js";import{__tla as Xt}from"./InputPassword.vue_vue_type_style_index_0_scoped_3f07eb1d_lang-94902465.js";import{__tla as Zt}from"./Editor-1d56306f.js";import{__tla as ta}from"./SPuUploadImg.vue_vue_type_style_index_0_scoped_ba706063_lang-b2231227.js";import{__tla as aa}from"./index-8e19be94.js";import{__tla as ra}from"./UploadImg-f5f3b1db.js";import{__tla as la}from"./UploadImgs-dc546496.js";import{__tla as ea}from"./UploadImgs.vue_vue_type_style_index_0_scoped_9d666400_lang-aa91c91b.js";import{__tla as _a}from"./UploadFile-0f52005e.js";import{__tla as oa}from"./UploadFile.vue_vue_type_style_index_0_scoped_436eca1b_lang-5325525b.js";import{__tla as ia}from"./fixed-size-list-02c43dbf.js";import{__tla as sa}from"./SpuSelect-3f08c9f4.js";import{__tla as ca}from"./index-b18db770.js";import{__tla as na}from"./SkuList-50c3eabb.js";import"./tree-0af4953a.js";import{__tla as ma}from"./category-d8fb78d9.js";import{__tla as pa}from"./spu-402402f7.js";import{__tla as ua}from"./SpuAndSkuList-779bd682.js";import{__tla as fa}from"./formRules-7ebbbdb0.js";import{__tla as da}from"./useCrudSchemas-94006a3e.js";let F,ya=Promise.all([(()=>{try{return ht}catch{}})(),(()=>{try{return kt}catch{}})(),(()=>{try{return bt}catch{}})(),(()=>{try{return xt}catch{}})(),(()=>{try{return Ct}catch{}})(),(()=>{try{return Mt}catch{}})(),(()=>{try{return Nt}catch{}})(),(()=>{try{return Yt}catch{}})(),(()=>{try{return zt}catch{}})(),(()=>{try{return At}catch{}})(),(()=>{try{return Ft}catch{}})(),(()=>{try{return qt}catch{}})(),(()=>{try{return It}catch{}})(),(()=>{try{return jt}catch{}})(),(()=>{try{return Bt}catch{}})(),(()=>{try{return Et}catch{}})(),(()=>{try{return Ht}catch{}})(),(()=>{try{return Kt}catch{}})(),(()=>{try{return Lt}catch{}})(),(()=>{try{return Qt}catch{}})(),(()=>{try{return Wt}catch{}})(),(()=>{try{return Jt}catch{}})(),(()=>{try{return Xt}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{}})(),(()=>{try{return pa}catch{}})(),(()=>{try{return ua}catch{}})(),(()=>{try{return fa}catch{}})(),(()=>{try{return da}catch{}})()]).then(async()=>{let T;T=X({name:"SeckillActivity",__name:"index",setup(ha){const h=Gt(),{t:R}=Z(),b=n(!0),N=n(0),U=n([]),o=tt({pageNo:1,pageSize:10,name:null,status:null}),Y=n();n(!1);const p=async()=>{b.value=!0;try{const s=await Dt(o);U.value=s.list,N.value=s.total}finally{b.value=!1}},g=()=>{o.pageNo=1,p()},q=()=>{Y.value.resetFields(),g()},D=n(),P=(s,l)=>{D.value.open(s,l)},V=n([]),G=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 $t()}),(s,l)=>{const f=_t,x=ot,j=it,B=st,C=ct,u=nt,E=mt,z=St,_=pt,H=ut,K=gt,L=vt,Q=ft,W=wt,w=rt("hasPermi"),J=dt;return i(),S(M,null,[t(z,null,{default:r(()=>[t(E,{class:"-mb-15px",model:e(o),ref_key:"queryFormRef",ref:Y,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(B,{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(M,null,$(e(Tt)(e(A).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:q},{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=>P("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(z,null,{default:r(()=>[y((i(),m(Q,{data:e(U),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(M,null,$(a.row.configIds,(k,d)=>(i(),m(H,{key:d,class:"mr-5px"},{default:r(()=>[c(v(G(k)),1)]),_:2},1024))),128))]),_:1}),t(_,{label:"\u6D3B\u52A8\u65F6\u95F4","min-width":"210"},{default:r(a=>[c(v(e(O)(a.row.startTime,"YYYY-MM-DD"))+" ~ "+v(e(O)(a.row.endTime,"YYYY-MM-DD")),1)]),_:1}),t(_,{label:"\u5546\u54C1\u56FE\u7247",prop:"spuName","min-width":"80"},{default:r(a=>[t(K,{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(Rt)},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(L,{type:e(A).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(Ut),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=>P("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 Pt(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(R("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"])),[[J,e(b)]]),t(W,{total:e(N),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(Ot,{ref_key:"formRef",ref:D,onSuccess:p},null,512)],64)}}}),F=yt(T,[["__file","D:/zx/mall-newfeifan-zx-admin/src/views/mall/promotion/seckill/activity/index.vue"]])});export{ya as __tla,F as default};
|