index-15e68e9b.js 8.4 KB

1
  1. import{d as Q,h as $,r as p,e as J,l as L,Q as W,o as i,c as D,f as t,w as r,a as l,R as X,F as P,q as Z,v as u,n as c,x as f,t as x,at as tt,V as at,A as rt,y as lt,z as et,j as _t,C as ot,D as it,G as ct,H as nt,I as st,_ as mt,__tla as pt}from"./index-00b1998d.js";import{_ as ut,__tla as ft}from"./index-0fc7c908.js";import{_ as dt,__tla as yt}from"./DictTag-5674b0a2.js";import{E as ht,__tla as wt}from"./el-image-69d4404b.js";import{__tla as bt}from"./el-image-viewer-612a5a0e.js";import{_ as vt,__tla as gt}from"./ContentWrap-31b34b9c.js";import{a as kt,D as T,__tla as xt}from"./dict-29c23f6f.js";import{f as z,d as Ct,__tla as Mt}from"./formatTime-4e31c660.js";import{a as St,b as Nt,d as Ut,__tla as Vt}from"./combinationActivity-5ca9fc2c.js";import Yt,{__tla as Dt}from"./CombinationActivityForm-71fda172.js";import{f as Pt,__tla as Tt}from"./formatter-4cc0770d.js";import{u as zt,__tla as At}from"./useMessage-437e6444.js";import{__tla as Ot}from"./index-1e69ec9e.js";import"./color-6e929987.js";import{__tla as Ft}from"./ContentWrap.vue_vue_type_script_setup_true_lang-d8a41a7a.js";import{__tla as Rt}from"./el-card-fa7e872f.js";import{__tla as qt}from"./Dialog-5ff7ce4c.js";import{__tla as Et}from"./Form-48c4bba9.js";import{__tla as Ht}from"./el-virtual-list-a12c967a.js";import{__tla as jt}from"./el-tree-select-a872ac6f.js";import{__tla as Bt}from"./el-time-select-52d40ba8.js";import{__tla as Gt}from"./InputPassword-a91b8523.js";import{__tla as It}from"./InputPassword.vue_vue_type_style_index_0_scoped_3f07eb1d_lang-d39c7fa1.js";import{__tla as Kt}from"./Editor-f30dab21.js";import{__tla as Qt}from"./SPuUploadImg.vue_vue_type_style_index_0_scoped_ba706063_lang-a7a19838.js";import{__tla as $t}from"./index-e14527d5.js";import{__tla as Jt}from"./UploadImg-1a4a67d6.js";import{__tla as Lt}from"./UploadImgs-e43488f4.js";import{__tla as Wt}from"./UploadImgs.vue_vue_type_style_index_0_scoped_9d666400_lang-fb8088d2.js";import{__tla as Xt}from"./UploadFile-fc964417.js";import{__tla as Zt}from"./UploadFile.vue_vue_type_style_index_0_scoped_436eca1b_lang-00d2cd44.js";import{__tla as ta}from"./fixed-size-list-4f274623.js";import{__tla as aa}from"./formRules-e1a25722.js";import{__tla as ra}from"./useCrudSchemas-bd52b1d9.js";import"./tree-0af4953a.js";import{__tla as la}from"./SpuSelect-0ec60b2d.js";import{__tla as ea}from"./index-ab203f34.js";import{__tla as _a}from"./SkuList-2bc186a5.js";import{__tla as oa}from"./category-212368af.js";import{__tla as ia}from"./spu-6ce1201b.js";import{__tla as ca}from"./SpuAndSkuList-832becc3.js";let A,na=Promise.all([(()=>{try{return pt}catch{}})(),(()=>{try{return ft}catch{}})(),(()=>{try{return yt}catch{}})(),(()=>{try{return wt}catch{}})(),(()=>{try{return bt}catch{}})(),(()=>{try{return gt}catch{}})(),(()=>{try{return xt}catch{}})(),(()=>{try{return Mt}catch{}})(),(()=>{try{return Vt}catch{}})(),(()=>{try{return Dt}catch{}})(),(()=>{try{return Tt}catch{}})(),(()=>{try{return At}catch{}})(),(()=>{try{return Ot}catch{}})(),(()=>{try{return Ft}catch{}})(),(()=>{try{return Rt}catch{}})(),(()=>{try{return qt}catch{}})(),(()=>{try{return Et}catch{}})(),(()=>{try{return Ht}catch{}})(),(()=>{try{return jt}catch{}})(),(()=>{try{return Bt}catch{}})(),(()=>{try{return Gt}catch{}})(),(()=>{try{return It}catch{}})(),(()=>{try{return Kt}catch{}})(),(()=>{try{return Qt}catch{}})(),(()=>{try{return $t}catch{}})(),(()=>{try{return Jt}catch{}})(),(()=>{try{return Lt}catch{}})(),(()=>{try{return Wt}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 ca}catch{}})()]).then(async()=>{A=mt(Q({name:"PromotionBargainActivity",__name:"index",setup(sa){const d=zt(),{t:O}=$(),h=p(!0),C=p(0),M=p([]),o=J({pageNo:1,pageSize:10,name:null,status:null}),S=p();p(!1);const s=async()=>{h.value=!0;try{const n=await St(o);M.value=n.list,C.value=n.total}finally{h.value=!1}},w=()=>{o.pageNo=1,s()},F=()=>{S.value.resetFields(),w()},N=p(),U=(n,e)=>{N.value.open(n,e)},R=n=>{const e=Math.min(...n.map(b=>b.combinationPrice));return`\uFFE5${tt(e)}`};return L(async()=>{await s()}),(n,e)=>{const b=at,v=rt,q=lt,E=et,g=_t,m=ot,H=it,V=vt,_=ct,j=ht,B=dt,G=nt,I=ut,y=W("hasPermi"),K=st;return i(),D(P,null,[t(V,null,{default:r(()=>[t(H,{class:"-mb-15px",model:l(o),ref_key:"queryFormRef",ref:S,inline:!0,"label-width":"68px"},{default:r(()=>[t(v,{label:"\u6D3B\u52A8\u540D\u79F0",prop:"name"},{default:r(()=>[t(b,{modelValue:l(o).name,"onUpdate:modelValue":e[0]||(e[0]=a=>l(o).name=a),placeholder:"\u8BF7\u8F93\u5165\u6D3B\u52A8\u540D\u79F0",clearable:"",onKeyup:X(w,["enter"]),class:"!w-240px"},null,8,["modelValue"])]),_:1}),t(v,{label:"\u6D3B\u52A8\u72B6\u6001",prop:"status"},{default:r(()=>[t(E,{modelValue:l(o).status,"onUpdate:modelValue":e[1]||(e[1]=a=>l(o).status=a),placeholder:"\u8BF7\u9009\u62E9\u6D3B\u52A8\u72B6\u6001",clearable:"",class:"!w-240px"},{default:r(()=>[(i(!0),D(P,null,Z(l(kt)(l(T).COMMON_STATUS),a=>(i(),u(q,{key:a.value,label:a.label,value:a.value},null,8,["label","value"]))),128))]),_:1},8,["modelValue"])]),_:1}),t(v,null,{default:r(()=>[t(m,{onClick:w},{default:r(()=>[t(g,{icon:"ep:search",class:"mr-5px"}),c(" \u641C\u7D22")]),_:1}),t(m,{onClick:F},{default:r(()=>[t(g,{icon:"ep:refresh",class:"mr-5px"}),c(" \u91CD\u7F6E")]),_:1}),f((i(),u(m,{type:"primary",plain:"",onClick:e[2]||(e[2]=a=>U("create"))},{default:r(()=>[t(g,{icon:"ep:plus",class:"mr-5px"}),c(" \u65B0\u589E ")]),_:1})),[[y,["promotion:combination-activity:create"]]])]),_:1})]),_:1},8,["model"])]),_:1}),t(V,null,{default:r(()=>[f((i(),u(G,{data:l(M),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:"\u6D3B\u52A8\u65F6\u95F4","min-width":"210"},{default:r(a=>[c(x(l(z)(a.row.startTime,"YYYY-MM-DD"))+" ~ "+x(l(z)(a.row.endTime,"YYYY-MM-DD")),1)]),_:1}),t(_,{label:"\u5546\u54C1\u56FE\u7247",prop:"spuName","min-width":"80"},{default:r(a=>[t(j,{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:l(Pt)},null,8,["formatter"]),t(_,{label:"\u62FC\u56E2\u4EF7",prop:"seckillPrice","min-width":"100"},{default:r(a=>[c(x(R(a.row.products)),1)]),_:1}),t(_,{label:"\u5F00\u56E2\u7EC4\u6570",prop:"groupCount","min-width":"100"}),t(_,{label:"\u6210\u56E2\u7EC4\u6570",prop:"groupSuccessCount","min-width":"100"}),t(_,{label:"\u8D2D\u4E70\u6B21\u6570",prop:"recordCount","min-width":"100"}),t(_,{label:"\u6D3B\u52A8\u72B6\u6001",align:"center",prop:"status","min-width":"100"},{default:r(a=>[t(B,{type:l(T).COMMON_STATUS,value:a.row.status},null,8,["type","value"])]),_:1}),t(_,{label:"\u521B\u5EFA\u65F6\u95F4",align:"center",prop:"createTime",formatter:l(Ct),width:"180px"},null,8,["formatter"]),t(_,{label:"\u64CD\u4F5C",align:"center",width:"150px",fixed:"right"},{default:r(a=>[f((i(),u(m,{link:"",type:"primary",onClick:Y=>U("update",a.row.id)},{default:r(()=>[c(" \u7F16\u8F91 ")]),_:2},1032,["onClick"])),[[y,["promotion:combination-activity:update"]]]),a.row.status===0?f((i(),u(m,{key:0,link:"",type:"danger",onClick:Y=>(async k=>{try{await d.confirm("\u786E\u8BA4\u5173\u95ED\u8BE5\u79D2\u6740\u6D3B\u52A8\u5417\uFF1F"),await Nt(k),d.success("\u5173\u95ED\u6210\u529F"),await s()}catch{}})(a.row.id)},{default:r(()=>[c(" \u5173\u95ED ")]),_:2},1032,["onClick"])),[[y,["promotion:combination-activity:close"]]]):f((i(),u(m,{key:1,link:"",type:"danger",onClick:Y=>(async k=>{try{await d.delConfirm(),await Ut(k),d.success(O("common.delSuccess")),await s()}catch{}})(a.row.id)},{default:r(()=>[c(" \u5220\u9664 ")]),_:2},1032,["onClick"])),[[y,["promotion:combination-activity:delete"]]])]),_:1})]),_:1},8,["data"])),[[K,l(h)]]),t(I,{total:l(C),page:l(o).pageNo,"onUpdate:page":e[3]||(e[3]=a=>l(o).pageNo=a),limit:l(o).pageSize,"onUpdate:limit":e[4]||(e[4]=a=>l(o).pageSize=a),onPagination:s},null,8,["total","page","limit"])]),_:1}),t(Yt,{ref_key:"formRef",ref:N,onSuccess:s},null,512)],64)}}}),[["__file","D:/zx/mall-newfeifan-zx-admin/src/views/mall/promotion/combination/activity/index.vue"]])});export{na as __tla,A as default};