1 |
- import{d as Q,A as W,r as n,g as Z,y as tt,S as at,o as i,c as S,i as t,w as r,a as e,T as rt,F as T,B as O,k as m,l as c,C as y,t as b,aY as lt,X as et,H as _t,D as ot,G as it,_ as st,q as ct,I as nt,J as mt,al as pt,K as ut,L as ft,__tla as dt}from"./index-abaca7e8.js";import{_ as yt,__tla as ht}from"./index.vue_vue_type_script_setup_true_lang-f7ebf07b.js";import{_ as wt,__tla as kt}from"./DictTag.vue_vue_type_script_lang-c84a7172.js";import{E as bt,__tla as vt}from"./el-image-56fee7ab.js";import{__tla as gt}from"./el-image-viewer-45c4debe.js";import{_ as xt,__tla as Ct}from"./ContentWrap.vue_vue_type_script_setup_true_lang-9818245e.js";import{a as St,D as $,__tla as Tt}from"./dict-885a7988.js";import{f as A,d as Mt,__tla as Yt}from"./formatTime-0c1ba065.js";import{a as Nt,b as Ut,d as Pt,__tla as Dt}from"./seckillActivity-4d1372d6.js";import{g as Vt,__tla as Ot}from"./seckillConfig-3163c067.js";import{_ as $t,__tla as At}from"./SeckillActivityForm.vue_vue_type_script_setup_true_lang-6d030538.js";import{f as zt,__tla as Ft}from"./formatter-f7c9947b.js";import{u as It,__tla as Kt}from"./useMessage-7c79d01b.js";import{__tla as qt}from"./index-e37a1056.js";import"./color-6e929987.js";import{__tla as Et}from"./el-card-ff5a526a.js";import{__tla as Rt}from"./Dialog-a2f7c92a.js";import"./_plugin-vue_export-helper-1b428a4d.js";import{__tla as Bt}from"./Form-e797f8a0.js";import{__tla as Gt}from"./el-virtual-list-f7463add.js";import{__tla as Ht}from"./el-tree-select-ae8992fc.js";import{__tla as Jt}from"./el-time-select-ed1ed327.js";import{__tla as Lt}from"./InputPassword-1c07ac5e.js";import{__tla as Xt}from"./InputPassword.vue_vue_type_style_index_0_scoped_38c93dba_lang-7594a8a8.js";import{__tla as jt}from"./style.css_vue_type_style_index_0_src_true_lang-097712b4.js";import{__tla as Qt}from"./SPuUploadImg.vue_vue_type_style_index_0_scoped_5dfa4534_lang-8933ee1b.js";import{__tla as Wt}from"./index-1a54edc6.js";import{__tla as Zt}from"./UploadImg-47ac0338.js";import{__tla as ta}from"./UploadImgs-9d0787c5.js";import{__tla as aa}from"./UploadImgs.vue_vue_type_style_index_0_scoped_3d27d917_lang-787db1dd.js";import{__tla as ra}from"./UploadFile-fbc2d83d.js";import{__tla as la}from"./UploadFile.vue_vue_type_style_index_0_scoped_2570c8e9_lang-af6b82f0.js";import{__tla as ea}from"./SpuSelect.vue_vue_type_script_setup_true_lang-200c3f3e.js";import{__tla as _a}from"./index-9ba9fadc.js";import{__tla as oa}from"./SkuList.vue_vue_type_script_setup_true_lang-937def20.js";import{__tla as ia}from"./PcComponents.css_vue_type_style_index_0_src_bf8feb19_scoped_bf8feb19_lang-b209d228.js";import"./tree-fd3a041e.js";import{__tla as sa}from"./category-6f60247b.js";import{__tla as ca}from"./spu-58800749.js";import{__tla as na}from"./SpuAndSkuList.vue_vue_type_script_setup_true_lang-8465bee6.js";import{__tla as ma}from"./formRules-04bbe1b7.js";import{__tla as pa}from"./useCrudSchemas-00ad7968.js";let z,ua=Promise.all([(()=>{try{return dt}catch{}})(),(()=>{try{return ht}catch{}})(),(()=>{try{return kt}catch{}})(),(()=>{try{return vt}catch{}})(),(()=>{try{return gt}catch{}})(),(()=>{try{return Ct}catch{}})(),(()=>{try{return Tt}catch{}})(),(()=>{try{return Yt}catch{}})(),(()=>{try{return Dt}catch{}})(),(()=>{try{return Ot}catch{}})(),(()=>{try{return At}catch{}})(),(()=>{try{return Ft}catch{}})(),(()=>{try{return Kt}catch{}})(),(()=>{try{return qt}catch{}})(),(()=>{try{return Et}catch{}})(),(()=>{try{return Rt}catch{}})(),(()=>{try{return Bt}catch{}})(),(()=>{try{return Gt}catch{}})(),(()=>{try{return Ht}catch{}})(),(()=>{try{return Jt}catch{}})(),(()=>{try{return Lt}catch{}})(),(()=>{try{return Xt}catch{}})(),(()=>{try{return jt}catch{}})(),(()=>{try{return Qt}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{}})(),(()=>{try{return pa}catch{}})()]).then(async()=>{z=Q({name:"SeckillActivity",__name:"index",setup(fa){const h=It(),{t:F}=W(),v=n(!0),M=n(0),Y=n([]),o=Z({pageNo:1,pageSize:10,name:null,status:null}),N=n();n(!1);const p=async()=>{v.value=!0;try{const s=await Nt(o);Y.value=s.list,M.value=s.total}finally{v.value=!1}},g=()=>{o.pageNo=1,p()},I=()=>{N.value.resetFields(),g()},U=n(),P=(s,l)=>{U.value.open(s,l)},D=n([]),K=s=>{const l=D.value.find(f=>f.id===s);return l!=null?`${l.name}[${l.startTime} ~ ${l.endTime}]`:""},q=s=>{const l=Math.min(...s.map(f=>f.seckillPrice));return`\uFFE5${lt(l)}`};return tt(async()=>{await p(),D.value=await Vt()}),(s,l)=>{const f=et,x=_t,E=ot,R=it,C=st,u=ct,B=nt,V=xt,_=mt,G=pt,H=bt,J=wt,L=ut,X=yt,w=at("hasPermi"),j=ft;return i(),S(T,null,[t(V,null,{default:r(()=>[t(B,{class:"-mb-15px",model:e(o),ref_key:"queryFormRef",ref:N,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:rt(g,["enter"]),class:"!w-240px"},null,8,["modelValue"])]),_:1}),t(x,{label:"\u6D3B\u52A8\u72B6\u6001",prop:"status"},{default:r(()=>[t(R,{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(T,null,O(e(St)(e($).COMMON_STATUS),a=>(i(),m(E,{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:I},{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(V,null,{default:r(()=>[y((i(),m(L,{data:e(Y),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(T,null,O(a.row.configIds,(k,d)=>(i(),m(G,{key:d,class:"mr-5px"},{default:r(()=>[c(b(K(k)),1)]),_:2},1024))),128))]),_:1}),t(_,{label:"\u6D3B\u52A8\u65F6\u95F4","min-width":"210"},{default:r(a=>[c(b(e(A)(a.row.startTime,"YYYY-MM-DD"))+" ~ "+b(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(H,{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(zt)},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(b(q(a.row.products)),1)]),_:1}),t(_,{label:"\u6D3B\u52A8\u72B6\u6001",align:"center",prop:"status","min-width":"100"},{default:r(a=>[t(J,{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(Mt),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 Ut(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 Pt(d),h.success(F("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(v)]]),t(X,{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($t,{ref_key:"formRef",ref:U,onSuccess:p},null,512)],64)}}})});export{ua as __tla,z as default};
|