index-373cc70d.js 8.5 KB

1
  1. import{d as I,B as J,r as p,f as X,z as $,S as Q,o as i,c as P,i as t,w as r,a as l,T as W,F as V,C as Z,j as u,m as c,D as f,t as C,a_ as tt,X as at,I as rt,G as lt,H as et,_ as _t,q as ot,J as it,K as ct,L as st,M as nt,__tla as mt}from"./index-1e808f2e.js";import{_ as pt,__tla as ut}from"./index.vue_vue_type_script_setup_true_lang-571824c6.js";import{_ as ft,__tla as dt}from"./DictTag.vue_vue_type_script_lang-5c02ebfe.js";import{E as yt,__tla as ht}from"./el-image-263fb014.js";import{__tla as wt}from"./el-image-viewer-dddb6285.js";import{_ as bt,__tla as gt}from"./ContentWrap.vue_vue_type_script_setup_true_lang-cc335a20.js";import{a as vt,D,__tla as kt}from"./dict-a31cb4ba.js";import{f as z,d as Ct,__tla as xt}from"./formatTime-a348c3be.js";import{a as St,b as Mt,d as Nt,__tla as Tt}from"./combinationActivity-9ba8cabc.js";import{_ as Ut,__tla as Yt}from"./CombinationActivityForm.vue_vue_type_script_setup_true_lang-82fe9208.js";import{f as Pt,__tla as Vt}from"./formatter-55e90c25.js";import{u as Dt,__tla as zt}from"./useMessage-5f9e8917.js";import{__tla as Ot}from"./index-73afebcf.js";import"./color-6e929987.js";import{__tla as qt}from"./el-card-03b3588b.js";import{__tla as At}from"./Dialog-f44f9d78.js";import"./_plugin-vue_export-helper-1b428a4d.js";import{__tla as Ft}from"./Form-18c0747a.js";import{__tla as Bt}from"./el-virtual-list-c88c2cf8.js";import{__tla as Kt}from"./el-tree-select-e8e05888.js";import{__tla as Lt}from"./el-time-select-9e66b75c.js";import{__tla as Rt}from"./InputPassword-b3d7a3e7.js";import{__tla as jt}from"./InputPassword.vue_vue_type_style_index_0_scoped_38c93dba_lang-ad69fd33.js";import{__tla as Et}from"./style.css_vue_type_style_index_0_src_true_lang-507ff6a6.js";import{__tla as Gt}from"./SPuUploadImg.vue_vue_type_style_index_0_scoped_5dfa4534_lang-b3df4382.js";import{__tla as Ht}from"./index-b59955b6.js";import{__tla as It}from"./UploadImg-3538b5a5.js";import{__tla as Jt}from"./UploadImgs-d9af51cb.js";import{__tla as Xt}from"./UploadImgs.vue_vue_type_style_index_0_scoped_3d27d917_lang-531188a2.js";import{__tla as $t}from"./UploadFile-5a50d6dd.js";import{__tla as Qt}from"./UploadFile.vue_vue_type_style_index_0_scoped_2570c8e9_lang-d79157f5.js";import{__tla as Wt}from"./formRules-83fad61e.js";import{__tla as Zt}from"./useCrudSchemas-0ab1b807.js";import"./tree-fd3a041e.js";import{__tla as ta}from"./SpuSelect.vue_vue_type_script_setup_true_lang-e19b3e4c.js";import{__tla as aa}from"./index-89aca07e.js";import{__tla as ra}from"./SkuList.vue_vue_type_script_setup_true_lang-7b9b16cc.js";import{__tla as la}from"./PcComponents.css_vue_type_style_index_0_src_bf8feb19_scoped_bf8feb19_lang-e58f9938.js";import{__tla as ea}from"./category-9d0fc28e.js";import{__tla as _a}from"./spu-d8bf9472.js";import{__tla as oa}from"./SpuAndSkuList.vue_vue_type_script_setup_true_lang-7d504025.js";let O,ia=Promise.all([(()=>{try{return mt}catch{}})(),(()=>{try{return ut}catch{}})(),(()=>{try{return dt}catch{}})(),(()=>{try{return ht}catch{}})(),(()=>{try{return wt}catch{}})(),(()=>{try{return gt}catch{}})(),(()=>{try{return kt}catch{}})(),(()=>{try{return xt}catch{}})(),(()=>{try{return Tt}catch{}})(),(()=>{try{return Yt}catch{}})(),(()=>{try{return Vt}catch{}})(),(()=>{try{return zt}catch{}})(),(()=>{try{return Ot}catch{}})(),(()=>{try{return qt}catch{}})(),(()=>{try{return At}catch{}})(),(()=>{try{return Ft}catch{}})(),(()=>{try{return Bt}catch{}})(),(()=>{try{return Kt}catch{}})(),(()=>{try{return Lt}catch{}})(),(()=>{try{return Rt}catch{}})(),(()=>{try{return jt}catch{}})(),(()=>{try{return Et}catch{}})(),(()=>{try{return Gt}catch{}})(),(()=>{try{return Ht}catch{}})(),(()=>{try{return It}catch{}})(),(()=>{try{return Jt}catch{}})(),(()=>{try{return Xt}catch{}})(),(()=>{try{return $t}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{}})()]).then(async()=>{O=I({name:"PromotionBargainActivity",__name:"index",setup(ca){const d=Dt(),{t:q}=J(),h=p(!0),x=p(0),S=p([]),o=X({pageNo:1,pageSize:10,name:null,status:null}),M=p();p(!1);const n=async()=>{h.value=!0;try{const s=await St(o);S.value=s.list,x.value=s.total}finally{h.value=!1}},w=()=>{o.pageNo=1,n()},A=()=>{M.value.resetFields(),w()},N=p(),T=(s,e)=>{N.value.open(s,e)},F=s=>{const e=Math.min(...s.map(b=>b.combinationPrice));return`\uFFE5${tt(e)}`};return $(async()=>{await n()}),(s,e)=>{const b=at,g=rt,B=lt,K=et,v=_t,m=ot,L=it,U=bt,_=ct,R=yt,j=ft,E=st,G=pt,y=Q("hasPermi"),H=nt;return i(),P(V,null,[t(U,null,{default:r(()=>[t(L,{class:"-mb-15px",model:l(o),ref_key:"queryFormRef",ref:M,inline:!0,"label-width":"68px"},{default:r(()=>[t(g,{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:W(w,["enter"]),class:"!w-240px"},null,8,["modelValue"])]),_:1}),t(g,{label:"\u6D3B\u52A8\u72B6\u6001",prop:"status"},{default:r(()=>[t(K,{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),P(V,null,Z(l(vt)(l(D).COMMON_STATUS),a=>(i(),u(B,{key:a.value,label:a.label,value:a.value},null,8,["label","value"]))),128))]),_:1},8,["modelValue"])]),_:1}),t(g,null,{default:r(()=>[t(m,{onClick:w},{default:r(()=>[t(v,{icon:"ep:search",class:"mr-5px"}),c(" \u641C\u7D22")]),_:1}),t(m,{onClick:A},{default:r(()=>[t(v,{icon:"ep:refresh",class:"mr-5px"}),c(" \u91CD\u7F6E")]),_:1}),f((i(),u(m,{type:"primary",plain:"",onClick:e[2]||(e[2]=a=>T("create"))},{default:r(()=>[t(v,{icon:"ep:plus",class:"mr-5px"}),c(" \u65B0\u589E ")]),_:1})),[[y,["promotion:combination-activity:create"]]])]),_:1})]),_:1},8,["model"])]),_:1}),t(U,null,{default:r(()=>[f((i(),u(E,{data:l(S),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(C(l(z)(a.row.startTime,"YYYY-MM-DD"))+" ~ "+C(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(R,{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(C(F(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(j,{type:l(D).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=>T("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 Mt(k),d.success("\u5173\u95ED\u6210\u529F"),await n()}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 Nt(k),d.success(q("common.delSuccess")),await n()}catch{}})(a.row.id)},{default:r(()=>[c(" \u5220\u9664 ")]),_:2},1032,["onClick"])),[[y,["promotion:combination-activity:delete"]]])]),_:1})]),_:1},8,["data"])),[[H,l(h)]]),t(G,{total:l(x),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:n},null,8,["total","page","limit"])]),_:1}),t(Ut,{ref_key:"formRef",ref:N,onSuccess:n},null,512)],64)}}})});export{ia as __tla,O as default};