index-ee99f432.js 8.3 KB

1
  1. import{d as J,B as j,r as m,g as Q,z as W,T as X,o as i,c as N,i as t,w as l,a as r,U as Z,F as T,C as $,k as p,l as s,D as f,t as D,Y as tt,I as at,G as rt,H as lt,n as et,s as _t,J as ot,K as it,L as st,M as nt,_ as ct,__tla as mt}from"./index-2f799233.js";import{_ as pt,__tla as ut}from"./index-e6cd813f.js";import{_ as ft,__tla as dt}from"./DictTag-ea4c6cc2.js";import{E as yt,__tla as ht}from"./el-image-4d26fa76.js";import{__tla as wt}from"./el-image-viewer-8e9e3571.js";import{_ as bt,__tla as gt}from"./ContentWrap-9da801df.js";import{a as vt,D as z,__tla as kt}from"./dict-20c916e2.js";import{f as P,d as xt,__tla as Ct}from"./formatTime-2157894c.js";import{B as Ut,g as Mt,c as St,__tla as Yt}from"./BargainActivityForm-f9336d37.js";import{f as V,__tla as Nt}from"./formatter-4606ca53.js";import{u as Tt,__tla as Dt}from"./useMessage-e567ad40.js";import{__tla as zt}from"./index-1c180a16.js";import"./color-6e929987.js";import{__tla as Pt}from"./el-card-c64c83d1.js";import{__tla as Vt}from"./Dialog-6fd39e06.js";import{__tla as Ot}from"./Form-5e5465c1.js";import{__tla as At}from"./el-virtual-list-febfeb66.js";import{__tla as Ft}from"./el-tree-select-ef4257fc.js";import{__tla as Bt}from"./el-time-select-4b5478df.js";import{__tla as Kt}from"./InputPassword-9f2a11af.js";import{__tla as Lt}from"./InputPassword.vue_vue_type_style_index_0_scoped_3f07eb1d_lang-f411c0c0.js";import{__tla as Rt}from"./Editor-3a97a075.js";import{__tla as qt}from"./SPuUploadImg.vue_vue_type_style_index_0_scoped_ba706063_lang-ac19fa49.js";import{__tla as Et}from"./index-5f6db4a5.js";import{__tla as Gt}from"./UploadImg-d46c0539.js";import{__tla as Ht}from"./UploadImgs-0a2b8085.js";import{__tla as It}from"./UploadImgs.vue_vue_type_style_index_0_scoped_9d666400_lang-872107b3.js";import{__tla as Jt}from"./UploadFile-92910b0f.js";import{__tla as jt}from"./UploadFile.vue_vue_type_style_index_0_scoped_436eca1b_lang-bc6f7cfd.js";import{__tla as Qt}from"./formRules-8aa12f76.js";import{__tla as Wt}from"./useCrudSchemas-13251276.js";import"./tree-0af4953a.js";import{__tla as Xt}from"./SpuSelect-54230da1.js";import{__tla as Zt}from"./index-7549c07e.js";import{__tla as $t}from"./SkuList-c1eb35ef.js";import{__tla as ta}from"./PcComponents.css_vue_type_style_index_0_src_00d8480b_scoped_00d8480b_lang-80062d91.js";import{__tla as aa}from"./category-6df467a3.js";import{__tla as ra}from"./spu-980b34a1.js";import{__tla as la}from"./SpuAndSkuList-a62e8759.js";let O,ea=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 Yt}catch{}})(),(()=>{try{return Nt}catch{}})(),(()=>{try{return Dt}catch{}})(),(()=>{try{return zt}catch{}})(),(()=>{try{return Pt}catch{}})(),(()=>{try{return Vt}catch{}})(),(()=>{try{return Ot}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 qt}catch{}})(),(()=>{try{return Et}catch{}})(),(()=>{try{return Gt}catch{}})(),(()=>{try{return Ht}catch{}})(),(()=>{try{return It}catch{}})(),(()=>{try{return Jt}catch{}})(),(()=>{try{return jt}catch{}})(),(()=>{try{return Qt}catch{}})(),(()=>{try{return Wt}catch{}})(),(()=>{try{return Xt}catch{}})(),(()=>{try{return Zt}catch{}})(),(()=>{try{return $t}catch{}})(),(()=>{try{return ta}catch{}})(),(()=>{try{return aa}catch{}})(),(()=>{try{return ra}catch{}})(),(()=>{try{return la}catch{}})()]).then(async()=>{O=ct(J({name:"PromotionBargainActivity",__name:"index",setup(_a){const d=Tt(),{t:A}=j(),h=m(!0),k=m(0),x=m([]),o=Q({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()},F=()=>{C.value.resetFields(),w()},U=m(),M=(u,_)=>{U.value.open(u,_)};return W(async()=>{await n()}),(u,_)=>{const B=tt,b=at,K=rt,L=lt,g=et,c=_t,R=ot,S=bt,e=it,q=yt,E=ft,G=st,H=pt,y=X("hasPermi"),I=nt;return i(),N(T,null,[t(S,null,{default:l(()=>[t(R,{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(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(L,{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),N(T,null,$(r(vt)(r(z).COMMON_STATUS),a=>(i(),p(K,{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:F},{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(G,{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(D(r(P)(a.row.startTime,"YYYY-MM-DD"))+" ~ "+D(r(P)(a.row.endTime,"YYYY-MM-DD")),1)]),_:1}),t(e,{label:"\u5546\u54C1\u56FE\u7247",prop:"spuName","min-width":"80"},{default:l(a=>[t(q,{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(V)},null,8,["formatter"]),t(e,{label:"\u780D\u4EF7\u5E95\u4EF7",prop:"bargainMinPrice","min-width":"100",formatter:r(V)},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(z).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:Y=>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:Y=>(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:Y=>(async v=>{try{await d.delConfirm(),await St(v),d.success(A("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"])),[[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:n},null,8,["total","page","limit"])]),_:1}),t(Ut,{ref_key:"formRef",ref:U,onSuccess:n},null,512)],64)}}}),[["__file","D:/zx/mall-newfeifan-zx-business/src/views/mall/promotion/bargain/activity/index.vue"]])});export{ea as __tla,O as default};