index-52687e7a.js 8.2 KB

1
  1. import{d as Q,h as J,r as m,e as L,l as W,Q as X,o as i,c as Y,f as t,w as l,a as r,R as Z,F as D,q as $,v as p,n as s,x as f,t as T,V as tt,A as at,y as rt,z as lt,j as et,C as _t,D as ot,G as it,H as st,I as nt,_ as ct,__tla as mt}from"./index-e3afde76.js";import{_ as pt,__tla as ut}from"./index-51c17e69.js";import{_ as ft,__tla as dt}from"./DictTag-715a7ef1.js";import{E as yt,__tla as ht}from"./el-image-65304aa9.js";import{__tla as wt}from"./el-image-viewer-9d1c7d33.js";import{_ as bt,__tla as gt}from"./ContentWrap-5f2f4872.js";import{a as vt,D as V,__tla as kt}from"./dict-a141296d.js";import{f as z,d as xt,__tla as Ct}from"./formatTime-cee700cd.js";import{B as St,g as Ut,c as Mt,__tla as Nt}from"./BargainActivityForm-7d9328f1.js";import{f as P,__tla as Yt}from"./formatter-57b94654.js";import{u as Dt,__tla as Tt}from"./useMessage-0b1b25bd.js";import{__tla as Vt}from"./index-2d20a7ff.js";import"./color-6e929987.js";import{__tla as zt}from"./el-card-6198c22a.js";import{__tla as Pt}from"./Dialog-c20523c4.js";import{__tla as At}from"./Form-81a434c2.js";import{__tla as Ft}from"./el-virtual-list-12e94cee.js";import{__tla as Ot}from"./el-tree-select-58251b07.js";import{__tla as qt}from"./el-time-select-de59f0a3.js";import{__tla as Bt}from"./InputPassword-2c7f00ee.js";import{__tla as Rt}from"./InputPassword.vue_vue_type_style_index_0_scoped_3f07eb1d_lang-9d3f0cf3.js";import{__tla as jt}from"./Editor-9c92736f.js";import{__tla as Et}from"./SPuUploadImg.vue_vue_type_style_index_0_scoped_ba706063_lang-eb39998f.js";import{__tla as Gt}from"./index-15373756.js";import{__tla as Ht}from"./UploadImg-78fd4518.js";import{__tla as It}from"./UploadImgs-94102248.js";import{__tla as Kt}from"./UploadImgs.vue_vue_type_style_index_0_scoped_9d666400_lang-919f7924.js";import{__tla as Qt}from"./UploadFile-4fe3c3f1.js";import{__tla as Jt}from"./UploadFile.vue_vue_type_style_index_0_scoped_436eca1b_lang-97b1f5ff.js";import{__tla as Lt}from"./fixed-size-list-d043de04.js";import{__tla as Wt}from"./formRules-2fe7b606.js";import{__tla as Xt}from"./useCrudSchemas-fb10b9d4.js";import"./tree-0af4953a.js";import{__tla as Zt}from"./SpuSelect-ba387fee.js";import{__tla as $t}from"./index-7cf37194.js";import{__tla as ta}from"./SkuList-ea3d1cb7.js";import{__tla as aa}from"./category-e7301561.js";import{__tla as ra}from"./spu-9313bd7b.js";import{__tla as la}from"./SpuAndSkuList-f9d293fa.js";let A,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 Nt}catch{}})(),(()=>{try{return Yt}catch{}})(),(()=>{try{return Tt}catch{}})(),(()=>{try{return Vt}catch{}})(),(()=>{try{return zt}catch{}})(),(()=>{try{return Pt}catch{}})(),(()=>{try{return At}catch{}})(),(()=>{try{return Ft}catch{}})(),(()=>{try{return Ot}catch{}})(),(()=>{try{return qt}catch{}})(),(()=>{try{return Bt}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 Kt}catch{}})(),(()=>{try{return Qt}catch{}})(),(()=>{try{return Jt}catch{}})(),(()=>{try{return Lt}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()=>{A=ct(Q({name:"PromotionBargainActivity",__name:"index",setup(_a){const d=Dt(),{t:F}=J(),h=m(!0),k=m(0),x=m([]),o=L({pageNo:1,pageSize:10,name:null,status:null}),C=m();m(!1);const n=async()=>{h.value=!0;try{const u=await Ut(o);x.value=u.list,k.value=u.total}finally{h.value=!1}},w=()=>{o.pageNo=1,n()},O=()=>{C.value.resetFields(),w()},S=m(),U=(u,_)=>{S.value.open(u,_)};return W(async()=>{await n()}),(u,_)=>{const q=tt,b=at,B=rt,R=lt,g=et,c=_t,j=ot,M=bt,e=it,E=yt,G=ft,H=st,I=pt,y=X("hasPermi"),K=nt;return i(),Y(D,null,[t(M,null,{default:l(()=>[t(j,{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(q,{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(R,{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(V).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:O},{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=>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(H,{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(T(r(z)(a.row.startTime,"YYYY-MM-DD"))+" ~ "+T(r(z)(a.row.endTime,"YYYY-MM-DD")),1)]),_:1}),t(e,{label:"\u5546\u54C1\u56FE\u7247",prop:"spuName","min-width":"80"},{default:l(a=>[t(E,{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(P)},null,8,["formatter"]),t(e,{label:"\u780D\u4EF7\u5E95\u4EF7",prop:"bargainMinPrice","min-width":"100",formatter:r(P)},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(G,{type:r(V).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=>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(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 Mt(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"])),[[K,r(h)]]),t(I,{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(St,{ref_key:"formRef",ref:S,onSuccess:n},null,512)],64)}}}),[["__file","D:/zx/mall-newfeifan-zx-admin/src/views/mall/promotion/bargain/activity/index.vue"]])});export{ea as __tla,A as default};