index-5160acb1.js 8.3 KB

1
  1. import{d as L,B as Z,r as p,g as $,z as j,T as Q,o as i,c as T,i as t,w as r,a as l,U as W,F as D,C as X,k as u,l as s,D as f,t as x,aZ as tt,Y as at,I as rt,G as lt,H as et,n as _t,s as ot,J as it,K as st,L as ct,M as nt,_ as mt,__tla as pt}from"./index-2f799233.js";import{_ as ut,__tla as ft}from"./index-e6cd813f.js";import{_ as dt,__tla as yt}from"./DictTag-ea4c6cc2.js";import{E as ht,__tla as wt}from"./el-image-4d26fa76.js";import{__tla as bt}from"./el-image-viewer-8e9e3571.js";import{_ as vt,__tla as gt}from"./ContentWrap-9da801df.js";import{a as kt,D as z,__tla as xt}from"./dict-20c916e2.js";import{f as V,d as Ct,__tla as St}from"./formatTime-2157894c.js";import{a as Mt,b as Ut,d as Yt,__tla as Nt}from"./combinationActivity-91ea94d5.js";import Pt,{__tla as Tt}from"./CombinationActivityForm-3d28442a.js";import{f as Dt,__tla as zt}from"./formatter-4606ca53.js";import{u as Vt,__tla as At}from"./useMessage-e567ad40.js";import{__tla as Ot}from"./index-1c180a16.js";import"./color-6e929987.js";import{__tla as Ft}from"./el-card-c64c83d1.js";import{__tla as Bt}from"./Dialog-6fd39e06.js";import{__tla as Et}from"./Form-5e5465c1.js";import{__tla as Ht}from"./el-virtual-list-febfeb66.js";import{__tla as Kt}from"./el-tree-select-ef4257fc.js";import{__tla as Rt}from"./el-time-select-4b5478df.js";import{__tla as qt}from"./InputPassword-9f2a11af.js";import{__tla as Gt}from"./InputPassword.vue_vue_type_style_index_0_scoped_3f07eb1d_lang-f411c0c0.js";import{__tla as It}from"./Editor-3a97a075.js";import{__tla as Jt}from"./SPuUploadImg.vue_vue_type_style_index_0_scoped_ba706063_lang-ac19fa49.js";import{__tla as Lt}from"./index-5f6db4a5.js";import{__tla as Zt}from"./UploadImg-d46c0539.js";import{__tla as $t}from"./UploadImgs-0a2b8085.js";import{__tla as jt}from"./UploadImgs.vue_vue_type_style_index_0_scoped_9d666400_lang-872107b3.js";import{__tla as Qt}from"./UploadFile-92910b0f.js";import{__tla as Wt}from"./UploadFile.vue_vue_type_style_index_0_scoped_436eca1b_lang-bc6f7cfd.js";import{__tla as Xt}from"./formRules-8aa12f76.js";import{__tla as ta}from"./useCrudSchemas-13251276.js";import"./tree-0af4953a.js";import{__tla as aa}from"./SpuSelect-54230da1.js";import{__tla as ra}from"./index-7549c07e.js";import{__tla as la}from"./SkuList-c1eb35ef.js";import{__tla as ea}from"./PcComponents.css_vue_type_style_index_0_src_00d8480b_scoped_00d8480b_lang-80062d91.js";import{__tla as _a}from"./category-6df467a3.js";import{__tla as oa}from"./spu-980b34a1.js";import{__tla as ia}from"./SpuAndSkuList-a62e8759.js";let A,sa=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 St}catch{}})(),(()=>{try{return Nt}catch{}})(),(()=>{try{return Tt}catch{}})(),(()=>{try{return zt}catch{}})(),(()=>{try{return At}catch{}})(),(()=>{try{return Ot}catch{}})(),(()=>{try{return Ft}catch{}})(),(()=>{try{return Bt}catch{}})(),(()=>{try{return Et}catch{}})(),(()=>{try{return Ht}catch{}})(),(()=>{try{return Kt}catch{}})(),(()=>{try{return Rt}catch{}})(),(()=>{try{return qt}catch{}})(),(()=>{try{return Gt}catch{}})(),(()=>{try{return It}catch{}})(),(()=>{try{return Jt}catch{}})(),(()=>{try{return Lt}catch{}})(),(()=>{try{return Zt}catch{}})(),(()=>{try{return $t}catch{}})(),(()=>{try{return jt}catch{}})(),(()=>{try{return Qt}catch{}})(),(()=>{try{return Wt}catch{}})(),(()=>{try{return Xt}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{}})()]).then(async()=>{A=mt(L({name:"PromotionBargainActivity",__name:"index",setup(ca){const d=Vt(),{t:O}=Z(),h=p(!0),C=p(0),S=p([]),o=$({pageNo:1,pageSize:10,name:null,status:null}),M=p();p(!1);const n=async()=>{h.value=!0;try{const c=await Mt(o);S.value=c.list,C.value=c.total}finally{h.value=!1}},w=()=>{o.pageNo=1,n()},F=()=>{M.value.resetFields(),w()},U=p(),Y=(c,e)=>{U.value.open(c,e)},B=c=>{const e=Math.min(...c.map(b=>b.combinationPrice));return`\uFFE5${tt(e)}`};return j(async()=>{await n()}),(c,e)=>{const b=at,v=rt,E=lt,H=et,g=_t,m=ot,K=it,N=vt,_=st,R=ht,q=dt,G=ct,I=ut,y=Q("hasPermi"),J=nt;return i(),T(D,null,[t(N,null,{default:r(()=>[t(K,{class:"-mb-15px",model:l(o),ref_key:"queryFormRef",ref:M,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:W(w,["enter"]),class:"!w-240px"},null,8,["modelValue"])]),_:1}),t(v,{label:"\u6D3B\u52A8\u72B6\u6001",prop:"status"},{default:r(()=>[t(H,{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),T(D,null,X(l(kt)(l(z).COMMON_STATUS),a=>(i(),u(E,{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"}),s(" \u641C\u7D22")]),_:1}),t(m,{onClick:F},{default:r(()=>[t(g,{icon:"ep:refresh",class:"mr-5px"}),s(" \u91CD\u7F6E")]),_:1}),f((i(),u(m,{type:"primary",plain:"",onClick:e[2]||(e[2]=a=>Y("create"))},{default:r(()=>[t(g,{icon:"ep:plus",class:"mr-5px"}),s(" \u65B0\u589E ")]),_:1})),[[y,["promotion:combination-activity:create"]]])]),_:1})]),_:1},8,["model"])]),_:1}),t(N,null,{default:r(()=>[f((i(),u(G,{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=>[s(x(l(V)(a.row.startTime,"YYYY-MM-DD"))+" ~ "+x(l(V)(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(Dt)},null,8,["formatter"]),t(_,{label:"\u62FC\u56E2\u4EF7",prop:"seckillPrice","min-width":"100"},{default:r(a=>[s(x(B(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(q,{type:l(z).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:P=>Y("update",a.row.id)},{default:r(()=>[s(" \u7F16\u8F91 ")]),_:2},1032,["onClick"])),[[y,["promotion:combination-activity:update"]]]),a.row.status===0?f((i(),u(m,{key:0,link:"",type:"danger",onClick:P=>(async k=>{try{await d.confirm("\u786E\u8BA4\u5173\u95ED\u8BE5\u79D2\u6740\u6D3B\u52A8\u5417\uFF1F"),await Ut(k),d.success("\u5173\u95ED\u6210\u529F"),await n()}catch{}})(a.row.id)},{default:r(()=>[s(" \u5173\u95ED ")]),_:2},1032,["onClick"])),[[y,["promotion:combination-activity:close"]]]):f((i(),u(m,{key:1,link:"",type:"danger",onClick:P=>(async k=>{try{await d.delConfirm(),await Yt(k),d.success(O("common.delSuccess")),await n()}catch{}})(a.row.id)},{default:r(()=>[s(" \u5220\u9664 ")]),_:2},1032,["onClick"])),[[y,["promotion:combination-activity:delete"]]])]),_:1})]),_:1},8,["data"])),[[J,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:n},null,8,["total","page","limit"])]),_:1}),t(Pt,{ref_key:"formRef",ref:U,onSuccess:n},null,512)],64)}}}),[["__file","D:/zx/mall-newfeifan-zx-business/src/views/mall/promotion/combination/activity/index.vue"]])});export{sa as __tla,A as default};