1 |
- import{d as J,n as Q,r as m,f as X,B as I,P as W,o as i,c as Y,i as t,w as l,a as r,Q as Z,F as D,k as $,l as p,j as s,C as f,t as P,U as tt,H as at,D as rt,G as lt,v as et,J as _t,K as ot,L as it,M as st,N as nt,_ as ct,__tla as mt}from"./index-afaf388d.js";import{_ as pt,__tla as ut}from"./index-89d02e79.js";import{_ as ft,__tla as dt}from"./DictTag-3a1a976c.js";import{E as yt,__tla as ht}from"./el-image-caa301d0.js";import{__tla as wt}from"./el-image-viewer-9330e340.js";import{_ as bt,__tla as gt}from"./ContentWrap-abe0694e.js";import{a as vt,D as T,__tla as kt}from"./dict-0449a0a1.js";import{f as V,d as xt,__tla as Ct}from"./formatTime-42952e7f.js";import{B as Ut,g as Mt,c as St,__tla as Nt}from"./BargainActivityForm-1effe4fc.js";import{f as O,__tla as Yt}from"./formatter-c93873cc.js";import{u as Dt,__tla as Pt}from"./useMessage-a290df31.js";import{__tla as Tt}from"./index-0eed91e1.js";import"./color-6e929987.js";import{__tla as Vt}from"./el-card-9c18d881.js";import{__tla as Ot}from"./Dialog-82c2009c.js";import{__tla as zt}from"./Form-7db80151.js";import{__tla as Ft}from"./el-virtual-list-b9de369f.js";import{__tla as Rt}from"./el-tree-select-190eecb6.js";import{__tla as At}from"./el-time-select-a42090a8.js";import{__tla as Bt}from"./InputPassword-424f0833.js";import{__tla as Ht}from"./Editor-7453cc9a.js";import{__tla as Kt}from"./SPuUploadImg.vue_vue_type_style_index_0_scoped_ba706063_lang-6a6e9523.js";import{__tla as Lt}from"./index-6149057d.js";import{__tla as jt}from"./UploadImg-f909692d.js";import{__tla as qt}from"./UploadImgs-a15847a2.js";import{__tla as Et}from"./UploadImgs.vue_vue_type_style_index_0_scoped_9d666400_lang-e548deac.js";import{__tla as Gt}from"./UploadFile-20e8f946.js";import{__tla as Jt}from"./UploadFile.vue_vue_type_style_index_0_scoped_436eca1b_lang-f19c84d5.js";import{__tla as Qt}from"./formRules-2ee9e3cd.js";import{__tla as Xt}from"./useCrudSchemas-e7ea74c9.js";import"./tree-0af4953a.js";import{__tla as It}from"./SpuSelect-985ea190.js";import{__tla as Wt}from"./index-c82fc2ba.js";import{__tla as Zt}from"./SkuList-ec41fe68.js";import{__tla as $t}from"./category-f4ef186a.js";import{__tla as ta}from"./spu-4d82f8bd.js";import{__tla as aa}from"./SpuAndSkuList-91dc4004.js";let z,ra=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 Ct}catch{}})(),(()=>{try{return Nt}catch{}})(),(()=>{try{return Yt}catch{}})(),(()=>{try{return Pt}catch{}})(),(()=>{try{return Tt}catch{}})(),(()=>{try{return Vt}catch{}})(),(()=>{try{return Ot}catch{}})(),(()=>{try{return zt}catch{}})(),(()=>{try{return Ft}catch{}})(),(()=>{try{return Rt}catch{}})(),(()=>{try{return At}catch{}})(),(()=>{try{return Bt}catch{}})(),(()=>{try{return Ht}catch{}})(),(()=>{try{return Kt}catch{}})(),(()=>{try{return Lt}catch{}})(),(()=>{try{return jt}catch{}})(),(()=>{try{return qt}catch{}})(),(()=>{try{return Et}catch{}})(),(()=>{try{return Gt}catch{}})(),(()=>{try{return Jt}catch{}})(),(()=>{try{return Qt}catch{}})(),(()=>{try{return Xt}catch{}})(),(()=>{try{return It}catch{}})(),(()=>{try{return Wt}catch{}})(),(()=>{try{return Zt}catch{}})(),(()=>{try{return $t}catch{}})(),(()=>{try{return ta}catch{}})(),(()=>{try{return aa}catch{}})()]).then(async()=>{z=ct(J({name:"PromotionBargainActivity",__name:"index",setup(la){const d=Dt(),{t:F}=Q(),h=m(!0),k=m(0),x=m([]),o=X({pageNo:1,pageSize:10,name:null,status:null}),C=m();m(!1);const n=async()=>{h.value=!0;try{const u=await Mt(o);x.value=u.list,k.value=u.total}finally{h.value=!1}},w=()=>{o.pageNo=1,n()},R=()=>{C.value.resetFields(),w()},U=m(),M=(u,_)=>{U.value.open(u,_)};return I(async()=>{await n()}),(u,_)=>{const A=tt,b=at,B=rt,H=lt,g=et,c=_t,K=ot,S=bt,e=it,L=yt,j=ft,q=st,E=pt,y=W("hasPermi"),G=nt;return i(),Y(D,null,[t(S,null,{default:l(()=>[t(K,{class:"-mb-15px",model:r(o),ref_key:"queryFormRef",ref:C,inline:!0,"label-width":"68px"},{default:l(()=>[t(b,{label:"\u6D3B\u52A8\u540D\u79F0",prop:"name"},{default:l(()=>[t(A,{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(H,{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),Y(D,null,$(r(vt)(r(T).COMMON_STATUS),a=>(i(),p(B,{key:a.value,label:a.label,value:a.value},null,8,["label","value"]))),128))]),_:1},8,["modelValue"])]),_:1}),t(b,null,{default:l(()=>[t(c,{onClick:w},{default:l(()=>[t(g,{icon:"ep:search",class:"mr-5px"}),s(" \u641C\u7D22")]),_:1}),t(c,{onClick:R},{default:l(()=>[t(g,{icon:"ep:refresh",class:"mr-5px"}),s(" \u91CD\u7F6E")]),_:1}),f((i(),p(c,{type:"primary",plain:"",onClick:_[2]||(_[2]=a=>M("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(S,null,{default:l(()=>[f((i(),p(q,{data:r(x),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(P(r(V)(a.row.startTime,"YYYY-MM-DD"))+" ~ "+P(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(L,{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(O)},null,8,["formatter"]),t(e,{label:"\u780D\u4EF7\u5E95\u4EF7",prop:"bargainMinPrice","min-width":"100",formatter:r(O)},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(j,{type:r(T).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(xt),width:"180px"},null,8,["formatter"]),t(e,{label:"\u64CD\u4F5C",align:"center",width:"150px",fixed:"right"},{default:l(a=>[f((i(),p(c,{link:"",type:"primary",onClick:N=>M("update",a.row.id)},{default:l(()=>[s(" \u7F16\u8F91 ")]),_:2},1032,["onClick"])),[[y,["promotion:bargain-activity:update"]]]),a.row.status===0?f((i(),p(c,{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 n()}catch{}})(a.row.id)},{default:l(()=>[s(" \u5173\u95ED ")]),_:2},1032,["onClick"])),[[y,["promotion:bargain-activity:close"]]]):f((i(),p(c,{key:1,link:"",type:"danger",onClick:N=>(async v=>{try{await d.delConfirm(),await St(v),d.success(F("common.delSuccess")),await n()}catch{}})(a.row.id)},{default:l(()=>[s(" \u5220\u9664 ")]),_:2},1032,["onClick"])),[[y,["promotion:bargain-activity:delete"]]])]),_:1})]),_:1},8,["data"])),[[G,r(h)]]),t(E,{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:n},null,8,["total","page","limit"])]),_:1}),t(Ut,{ref_key:"formRef",ref:U,onSuccess:n},null,512)],64)}}}),[["__file","/Users/RuHu.Xu/Desktop/mall-newfeifan-zx-admin/src/views/mall/promotion/bargain/activity/index.vue"]])});export{ra as __tla,z as default};
|