index-e71c88f9.js 8.1 KB

1
  1. import{d as L,h as Q,r as i,e as J,l as W,Q as X,o as s,c as V,f as a,w as e,a as r,R as Z,F as S,q as $,v as u,n as c,x as d,t as U,V as tt,A as at,y as rt,z as et,B as lt,j as _t,C as ot,D as st,G as it,H as ct,I as nt,_ as mt,__tla as ut}from"./index-6d7b82ba.js";import{_ as pt,__tla as dt}from"./index-a786614b.js";import{_ as ft,__tla as yt}from"./DictTag-300da1c0.js";import{E as ht,__tla as wt}from"./el-image-afb9e567.js";import{__tla as vt}from"./el-image-viewer-4a19ded4.js";import{_ as gt,__tla as xt}from"./ContentWrap-1ba5c8ca.js";import{a as bt,D as N,__tla as kt}from"./dict-efb5f3b6.js";import{f as z,d as Ct,__tla as Dt}from"./formatTime-d24faf41.js";import{D as Tt,g as Yt,c as Mt,d as Vt,__tla as St}from"./DiscountActivityForm-3bf04223.js";import{u as Ut,__tla as Nt}from"./useMessage-be161634.js";import{__tla as zt}from"./index-e37504b6.js";import"./color-6e929987.js";import{__tla as At}from"./ContentWrap.vue_vue_type_script_setup_true_lang-68bb15fa.js";import{__tla as Ot}from"./el-card-1a4b93b1.js";import{__tla as qt}from"./Dialog-78181bae.js";import{__tla as Ft}from"./Form-bee7ccb5.js";import{__tla as Ht}from"./el-virtual-list-2b25c1ae.js";import{__tla as Pt}from"./el-tree-select-23e10a37.js";import{__tla as Rt}from"./el-time-select-34f55ab8.js";import{__tla as jt}from"./InputPassword-975a1e0c.js";import{__tla as Bt}from"./InputPassword.vue_vue_type_style_index_0_scoped_3f07eb1d_lang-94902465.js";import{__tla as Et}from"./Editor-1d56306f.js";import{__tla as Gt}from"./SPuUploadImg.vue_vue_type_style_index_0_scoped_ba706063_lang-b2231227.js";import{__tla as It}from"./index-8e19be94.js";import{__tla as Kt}from"./UploadImg-f5f3b1db.js";import{__tla as Lt}from"./UploadImgs-dc546496.js";import{__tla as Qt}from"./UploadImgs.vue_vue_type_style_index_0_scoped_9d666400_lang-aa91c91b.js";import{__tla as Jt}from"./UploadFile-0f52005e.js";import{__tla as Wt}from"./UploadFile.vue_vue_type_style_index_0_scoped_436eca1b_lang-5325525b.js";import{__tla as Xt}from"./fixed-size-list-02c43dbf.js";import{__tla as Zt}from"./SpuSelect-3f08c9f4.js";import{__tla as $t}from"./index-b18db770.js";import{__tla as ta}from"./SkuList-50c3eabb.js";import"./tree-0af4953a.js";import{__tla as aa}from"./category-d8fb78d9.js";import{__tla as ra}from"./spu-402402f7.js";import{__tla as ea}from"./SpuAndSkuList-779bd682.js";import{__tla as la}from"./formRules-7ebbbdb0.js";import{__tla as _a}from"./useCrudSchemas-94006a3e.js";let A,oa=Promise.all([(()=>{try{return ut}catch{}})(),(()=>{try{return dt}catch{}})(),(()=>{try{return yt}catch{}})(),(()=>{try{return wt}catch{}})(),(()=>{try{return vt}catch{}})(),(()=>{try{return xt}catch{}})(),(()=>{try{return kt}catch{}})(),(()=>{try{return Dt}catch{}})(),(()=>{try{return St}catch{}})(),(()=>{try{return Nt}catch{}})(),(()=>{try{return zt}catch{}})(),(()=>{try{return At}catch{}})(),(()=>{try{return Ot}catch{}})(),(()=>{try{return qt}catch{}})(),(()=>{try{return Ft}catch{}})(),(()=>{try{return Ht}catch{}})(),(()=>{try{return Pt}catch{}})(),(()=>{try{return Rt}catch{}})(),(()=>{try{return jt}catch{}})(),(()=>{try{return Bt}catch{}})(),(()=>{try{return Et}catch{}})(),(()=>{try{return Gt}catch{}})(),(()=>{try{return It}catch{}})(),(()=>{try{return Kt}catch{}})(),(()=>{try{return Lt}catch{}})(),(()=>{try{return Qt}catch{}})(),(()=>{try{return Jt}catch{}})(),(()=>{try{return Wt}catch{}})(),(()=>{try{return Xt}catch{}})(),(()=>{try{return Zt}catch{}})(),(()=>{try{return $t}catch{}})(),(()=>{try{return ta}catch{}})(),(()=>{try{return aa}catch{}})(),(()=>{try{return ra}catch{}})(),(()=>{try{return ea}catch{}})(),(()=>{try{return la}catch{}})(),(()=>{try{return _a}catch{}})()]).then(async()=>{A=mt(L({name:"DiscountActivity",__name:"index",setup(sa){const f=Ut(),{t:O}=Q(),w=i(!0),b=i(0),k=i([]),_=J({pageNo:1,pageSize:10,activeTime:null,name:null,status:null}),C=i();i(!1);const n=async()=>{w.value=!0;try{const p=await Yt(_);k.value=p.list,b.value=p.total}finally{w.value=!1}},v=()=>{_.pageNo=1,n()},q=()=>{C.value.resetFields(),v()},D=i(),T=(p,l)=>{D.value.open(p,l)};return i([]),W(async()=>{await n()}),(p,l)=>{const F=tt,y=at,H=rt,P=et,R=lt,g=_t,m=ot,j=st,Y=gt,o=it,B=ht,E=ft,G=ct,I=pt,h=X("hasPermi"),K=nt;return s(),V(S,null,[a(Y,null,{default:e(()=>[a(j,{class:"-mb-15px",model:r(_),ref_key:"queryFormRef",ref:C,inline:!0,"label-width":"68px"},{default:e(()=>[a(y,{label:"\u6D3B\u52A8\u540D\u79F0",prop:"name"},{default:e(()=>[a(F,{modelValue:r(_).name,"onUpdate:modelValue":l[0]||(l[0]=t=>r(_).name=t),placeholder:"\u8BF7\u8F93\u5165\u6D3B\u52A8\u540D\u79F0",clearable:"",onKeyup:Z(v,["enter"]),class:"!w-240px"},null,8,["modelValue"])]),_:1}),a(y,{label:"\u6D3B\u52A8\u72B6\u6001",prop:"status"},{default:e(()=>[a(P,{modelValue:r(_).status,"onUpdate:modelValue":l[1]||(l[1]=t=>r(_).status=t),placeholder:"\u8BF7\u9009\u62E9\u6D3B\u52A8\u72B6\u6001",clearable:"",class:"!w-240px"},{default:e(()=>[(s(!0),V(S,null,$(r(bt)(r(N).COMMON_STATUS),t=>(s(),u(H,{key:t.value,label:t.label,value:t.value},null,8,["label","value"]))),128))]),_:1},8,["modelValue"])]),_:1}),a(y,{label:"\u6D3B\u52A8\u65F6\u95F4",prop:"activeTime"},{default:e(()=>[a(R,{modelValue:r(_).activeTime,"onUpdate:modelValue":l[2]||(l[2]=t=>r(_).activeTime=t),"value-format":"YYYY-MM-DD HH:mm:ss",type:"daterange","start-placeholder":"\u5F00\u59CB\u65E5\u671F","end-placeholder":"\u7ED3\u675F\u65E5\u671F","default-time":[new Date("1 00:00:00"),new Date("1 23:59:59")],class:"!w-240px"},null,8,["modelValue","default-time"])]),_:1}),a(y,null,{default:e(()=>[a(m,{onClick:v},{default:e(()=>[a(g,{icon:"ep:search",class:"mr-5px"}),c(" \u641C\u7D22")]),_:1}),a(m,{onClick:q},{default:e(()=>[a(g,{icon:"ep:refresh",class:"mr-5px"}),c(" \u91CD\u7F6E")]),_:1}),d((s(),u(m,{type:"primary",plain:"",onClick:l[3]||(l[3]=t=>T("create"))},{default:e(()=>[a(g,{icon:"ep:plus",class:"mr-5px"}),c(" \u65B0\u589E\u6D3B\u52A8 ")]),_:1})),[[h,["promotion:discount-activity:create"]]])]),_:1})]),_:1},8,["model"])]),_:1}),a(Y,null,{default:e(()=>[d((s(),u(G,{data:r(k),stripe:!0,"show-overflow-tooltip":!0},{default:e(()=>[a(o,{label:"\u6D3B\u52A8\u7F16\u53F7",prop:"id","min-width":"80"}),a(o,{label:"\u6D3B\u52A8\u540D\u79F0",prop:"name","min-width":"140"}),a(o,{label:"\u6D3B\u52A8\u65F6\u95F4","min-width":"210"},{default:e(t=>[c(U(r(z)(t.row.startTime,"YYYY-MM-DD"))+" ~ "+U(r(z)(t.row.endTime,"YYYY-MM-DD")),1)]),_:1}),a(o,{label:"\u5546\u54C1\u56FE\u7247",prop:"spuName","min-width":"80"},{default:e(t=>[a(B,{src:t.row.picUrl,class:"h-40px w-40px","preview-src-list":[t.row.picUrl],"preview-teleported":""},null,8,["src","preview-src-list"])]),_:1}),a(o,{label:"\u5546\u54C1\u6807\u9898",prop:"spuName","min-width":"300"}),a(o,{label:"\u6D3B\u52A8\u72B6\u6001",align:"center",prop:"status","min-width":"100"},{default:e(t=>[a(E,{type:r(N).COMMON_STATUS,value:t.row.status},null,8,["type","value"])]),_:1}),a(o,{label:"\u521B\u5EFA\u65F6\u95F4",align:"center",prop:"createTime",formatter:r(Ct),width:"180px"},null,8,["formatter"]),a(o,{label:"\u64CD\u4F5C",align:"center",width:"150px",fixed:"right"},{default:e(t=>[d((s(),u(m,{link:"",type:"primary",onClick:M=>T("update",t.row.id)},{default:e(()=>[c(" \u7F16\u8F91 ")]),_:2},1032,["onClick"])),[[h,["promotion:discount-activity:update"]]]),t.row.status===0?d((s(),u(m,{key:0,link:"",type:"danger",onClick:M=>(async x=>{try{await f.confirm("\u786E\u8BA4\u5173\u95ED\u8BE5\u9650\u65F6\u6298\u6263\u6D3B\u52A8\u5417\uFF1F"),await Mt(x),f.success("\u5173\u95ED\u6210\u529F"),await n()}catch{}})(t.row.id)},{default:e(()=>[c(" \u5173\u95ED ")]),_:2},1032,["onClick"])),[[h,["promotion:discount-activity:close"]]]):d((s(),u(m,{key:1,link:"",type:"danger",onClick:M=>(async x=>{try{await f.delConfirm(),await Vt(x),f.success(O("common.delSuccess")),await n()}catch{}})(t.row.id)},{default:e(()=>[c(" \u5220\u9664 ")]),_:2},1032,["onClick"])),[[h,["promotion:discount-activity:delete"]]])]),_:1})]),_:1},8,["data"])),[[K,r(w)]]),a(I,{total:r(b),page:r(_).pageNo,"onUpdate:page":l[4]||(l[4]=t=>r(_).pageNo=t),limit:r(_).pageSize,"onUpdate:limit":l[5]||(l[5]=t=>r(_).pageSize=t),onPagination:n},null,8,["total","page","limit"])]),_:1}),a(Tt,{ref_key:"formRef",ref:D,onSuccess:n},null,512)],64)}}}),[["__file","D:/zx/mall-newfeifan-zx-admin/src/views/mall/promotion/discountActivity/index.vue"]])});export{oa as __tla,A as default};