index-8529cb33.js 8.5 KB

1
  1. import{d as J,B as L,r as m,f as X,z as Q,S as W,o as i,c as T,i as t,w as l,a as r,T as Z,F as Y,C as $,j as p,m as s,D as f,t as D,X as tt,I as at,G as rt,H as lt,_ as et,q as _t,J as ot,K as it,L as st,M as ct,__tla as nt}from"./index-1e808f2e.js";import{_ as mt,__tla as pt}from"./index.vue_vue_type_script_setup_true_lang-571824c6.js";import{_ as ut,__tla as ft}from"./DictTag.vue_vue_type_script_lang-5c02ebfe.js";import{E as dt,__tla as yt}from"./el-image-263fb014.js";import{__tla as ht}from"./el-image-viewer-dddb6285.js";import{_ as wt,__tla as bt}from"./ContentWrap.vue_vue_type_script_setup_true_lang-cc335a20.js";import{a as gt,D as P,__tla as vt}from"./dict-a31cb4ba.js";import{f as V,d as kt,__tla as Ct}from"./formatTime-a348c3be.js";import{_ as xt,g as St,c as Ut,__tla as Mt}from"./BargainActivityForm.vue_vue_type_script_setup_true_lang-bf992c60.js";import{f as z,__tla as Nt}from"./formatter-55e90c25.js";import{u as Tt,__tla as Yt}from"./useMessage-5f9e8917.js";import{__tla as Dt}from"./index-73afebcf.js";import"./color-6e929987.js";import{__tla as Pt}from"./el-card-03b3588b.js";import{__tla as Vt}from"./Dialog-f44f9d78.js";import"./_plugin-vue_export-helper-1b428a4d.js";import{__tla as zt}from"./Form-18c0747a.js";import{__tla as At}from"./el-virtual-list-c88c2cf8.js";import{__tla as Ft}from"./el-tree-select-e8e05888.js";import{__tla as Ot}from"./el-time-select-9e66b75c.js";import{__tla as Bt}from"./InputPassword-b3d7a3e7.js";import{__tla as Rt}from"./InputPassword.vue_vue_type_style_index_0_scoped_38c93dba_lang-ad69fd33.js";import{__tla as qt}from"./style.css_vue_type_style_index_0_src_true_lang-507ff6a6.js";import{__tla as Kt}from"./SPuUploadImg.vue_vue_type_style_index_0_scoped_5dfa4534_lang-b3df4382.js";import{__tla as jt}from"./index-b59955b6.js";import{__tla as Et}from"./UploadImg-3538b5a5.js";import{__tla as Gt}from"./UploadImgs-d9af51cb.js";import{__tla as Ht}from"./UploadImgs.vue_vue_type_style_index_0_scoped_3d27d917_lang-531188a2.js";import{__tla as It}from"./UploadFile-5a50d6dd.js";import{__tla as Jt}from"./UploadFile.vue_vue_type_style_index_0_scoped_2570c8e9_lang-d79157f5.js";import{__tla as Lt}from"./formRules-83fad61e.js";import{__tla as Xt}from"./useCrudSchemas-0ab1b807.js";import"./tree-fd3a041e.js";import{__tla as Qt}from"./SpuSelect.vue_vue_type_script_setup_true_lang-e19b3e4c.js";import{__tla as Wt}from"./index-89aca07e.js";import{__tla as Zt}from"./SkuList.vue_vue_type_script_setup_true_lang-7b9b16cc.js";import{__tla as $t}from"./PcComponents.css_vue_type_style_index_0_src_bf8feb19_scoped_bf8feb19_lang-e58f9938.js";import{__tla as ta}from"./category-9d0fc28e.js";import{__tla as aa}from"./spu-d8bf9472.js";import{__tla as ra}from"./SpuAndSkuList.vue_vue_type_script_setup_true_lang-7d504025.js";let A,la=Promise.all([(()=>{try{return nt}catch{}})(),(()=>{try{return pt}catch{}})(),(()=>{try{return ft}catch{}})(),(()=>{try{return yt}catch{}})(),(()=>{try{return ht}catch{}})(),(()=>{try{return bt}catch{}})(),(()=>{try{return vt}catch{}})(),(()=>{try{return Ct}catch{}})(),(()=>{try{return Mt}catch{}})(),(()=>{try{return Nt}catch{}})(),(()=>{try{return Yt}catch{}})(),(()=>{try{return Dt}catch{}})(),(()=>{try{return Pt}catch{}})(),(()=>{try{return Vt}catch{}})(),(()=>{try{return zt}catch{}})(),(()=>{try{return At}catch{}})(),(()=>{try{return Ft}catch{}})(),(()=>{try{return Ot}catch{}})(),(()=>{try{return Bt}catch{}})(),(()=>{try{return Rt}catch{}})(),(()=>{try{return qt}catch{}})(),(()=>{try{return Kt}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 Lt}catch{}})(),(()=>{try{return Xt}catch{}})(),(()=>{try{return Qt}catch{}})(),(()=>{try{return Wt}catch{}})(),(()=>{try{return Zt}catch{}})(),(()=>{try{return $t}catch{}})(),(()=>{try{return ta}catch{}})(),(()=>{try{return aa}catch{}})(),(()=>{try{return ra}catch{}})()]).then(async()=>{A=J({name:"PromotionBargainActivity",__name:"index",setup(ea){const d=Tt(),{t:F}=L(),h=m(!0),k=m(0),C=m([]),o=X({pageNo:1,pageSize:10,name:null,status:null}),x=m();m(!1);const c=async()=>{h.value=!0;try{const u=await St(o);C.value=u.list,k.value=u.total}finally{h.value=!1}},w=()=>{o.pageNo=1,c()},O=()=>{x.value.resetFields(),w()},S=m(),U=(u,_)=>{S.value.open(u,_)};return Q(async()=>{await c()}),(u,_)=>{const B=tt,b=at,R=rt,q=lt,g=et,n=_t,K=ot,M=wt,e=it,j=dt,E=ut,G=st,H=mt,y=W("hasPermi"),I=ct;return i(),T(Y,null,[t(M,null,{default:l(()=>[t(K,{class:"-mb-15px",model:r(o),ref_key:"queryFormRef",ref:x,inline:!0,"label-width":"68px"},{default:l(()=>[t(b,{label:"\u6D3B\u52A8\u540D\u79F0",prop:"name"},{default:l(()=>[t(B,{modelValue:r(o).name,"onUpdate:modelValue":_[0]||(_[0]=a=>r(o).name=a),placeholder:"\u8BF7\u8F93\u5165\u6D3B\u52A8\u540D\u79F0",clearable:"",onKeyup:Z(w,["enter"]),class:"!w-240px"},null,8,["modelValue"])]),_:1}),t(b,{label:"\u6D3B\u52A8\u72B6\u6001",prop:"status"},{default:l(()=>[t(q,{modelValue:r(o).status,"onUpdate:modelValue":_[1]||(_[1]=a=>r(o).status=a),placeholder:"\u8BF7\u9009\u62E9\u6D3B\u52A8\u72B6\u6001",clearable:"",class:"!w-240px"},{default:l(()=>[(i(!0),T(Y,null,$(r(gt)(r(P).COMMON_STATUS),a=>(i(),p(R,{key:a.value,label:a.label,value:a.value},null,8,["label","value"]))),128))]),_:1},8,["modelValue"])]),_:1}),t(b,null,{default:l(()=>[t(n,{onClick:w},{default:l(()=>[t(g,{icon:"ep:search",class:"mr-5px"}),s(" \u641C\u7D22")]),_:1}),t(n,{onClick:O},{default:l(()=>[t(g,{icon:"ep:refresh",class:"mr-5px"}),s(" \u91CD\u7F6E")]),_:1}),f((i(),p(n,{type:"primary",plain:"",onClick:_[2]||(_[2]=a=>U("create"))},{default:l(()=>[t(g,{icon:"ep:plus",class:"mr-5px"}),s(" \u65B0\u589E ")]),_:1})),[[y,["promotion:bargain-activity:create"]]])]),_:1})]),_:1},8,["model"])]),_:1}),t(M,null,{default:l(()=>[f((i(),p(G,{data:r(C),stripe:!0,"show-overflow-tooltip":!0},{default:l(()=>[t(e,{label:"\u6D3B\u52A8\u7F16\u53F7",prop:"id","min-width":"80"}),t(e,{label:"\u6D3B\u52A8\u540D\u79F0",prop:"name","min-width":"140"}),t(e,{label:"\u6D3B\u52A8\u65F6\u95F4","min-width":"210"},{default:l(a=>[s(D(r(V)(a.row.startTime,"YYYY-MM-DD"))+" ~ "+D(r(V)(a.row.endTime,"YYYY-MM-DD")),1)]),_:1}),t(e,{label:"\u5546\u54C1\u56FE\u7247",prop:"spuName","min-width":"80"},{default:l(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(e,{label:"\u5546\u54C1\u6807\u9898",prop:"spuName","min-width":"300"}),t(e,{label:"\u8D77\u59CB\u4EF7\u683C",prop:"bargainFirstPrice","min-width":"100",formatter:r(z)},null,8,["formatter"]),t(e,{label:"\u780D\u4EF7\u5E95\u4EF7",prop:"bargainMinPrice","min-width":"100",formatter:r(z)},null,8,["formatter"]),t(e,{label:"\u603B\u780D\u4EF7\u4EBA\u6570",prop:"recordUserCount","min-width":"100"}),t(e,{label:"\u6210\u529F\u780D\u4EF7\u4EBA\u6570",prop:"recordSuccessUserCount","min-width":"110"}),t(e,{label:"\u52A9\u529B\u4EBA\u6570",prop:"helpUserCount","min-width":"100"}),t(e,{label:"\u6D3B\u52A8\u72B6\u6001",align:"center",prop:"status","min-width":"100"},{default:l(a=>[t(E,{type:r(P).COMMON_STATUS,value:a.row.status},null,8,["type","value"])]),_:1}),t(e,{label:"\u5E93\u5B58",align:"center",prop:"stock","min-width":"80"}),t(e,{label:"\u603B\u5E93\u5B58",align:"center",prop:"totalStock","min-width":"80"}),t(e,{label:"\u521B\u5EFA\u65F6\u95F4",align:"center",prop:"createTime",formatter:r(kt),width:"180px"},null,8,["formatter"]),t(e,{label:"\u64CD\u4F5C",align:"center",width:"150px",fixed:"right"},{default:l(a=>[f((i(),p(n,{link:"",type:"primary",onClick:N=>U("update",a.row.id)},{default:l(()=>[s(" \u7F16\u8F91 ")]),_:2},1032,["onClick"])),[[y,["promotion:bargain-activity:update"]]]),a.row.status===0?f((i(),p(n,{key:0,link:"",type:"danger",onClick:N=>(async v=>{try{await d.confirm("\u786E\u8BA4\u5173\u95ED\u8BE5\u780D\u4EF7\u6D3B\u52A8\u5417\uFF1F"),await(void 0)(v),d.success("\u5173\u95ED\u6210\u529F"),await c()}catch{}})(a.row.id)},{default:l(()=>[s(" \u5173\u95ED ")]),_:2},1032,["onClick"])),[[y,["promotion:bargain-activity:close"]]]):f((i(),p(n,{key:1,link:"",type:"danger",onClick:N=>(async v=>{try{await d.delConfirm(),await Ut(v),d.success(F("common.delSuccess")),await c()}catch{}})(a.row.id)},{default:l(()=>[s(" \u5220\u9664 ")]),_:2},1032,["onClick"])),[[y,["promotion:bargain-activity:delete"]]])]),_:1})]),_:1},8,["data"])),[[I,r(h)]]),t(H,{total:r(k),page:r(o).pageNo,"onUpdate:page":_[3]||(_[3]=a=>r(o).pageNo=a),limit:r(o).pageSize,"onUpdate:limit":_[4]||(_[4]=a=>r(o).pageSize=a),onPagination:c},null,8,["total","page","limit"])]),_:1}),t(xt,{ref_key:"formRef",ref:S,onSuccess:c},null,512)],64)}}})});export{la as __tla,A as default};