1 |
- import{d as Z,P as j,r as m,x as G,b as H,a4 as I,o as i,c as N,f as t,A as l,a as r,a5 as L,F as D,R as $,C as p,D as s,k as f,E as P,a9 as tt,V as at,S as rt,U as lt,Q as et,J as _t,W as ot,X as it,Y as st,Z as nt,_ as ct,__tla as mt}from"./index-286756b9.js";import{_ as pt,__tla as ut}from"./index-ed6c67a8.js";import{_ as ft,__tla as dt}from"./DictTag-f72b04ca.js";import{E as yt,__tla as ht}from"./el-image-73c105b7.js";import{__tla as wt}from"./el-image-viewer-e0e5d3be.js";import{_ as bt,__tla as gt}from"./ContentWrap-83998678.js";import{a as vt,D as T,__tla as kt}from"./dict-82dca549.js";import{f as V,d as xt,__tla as Ct}from"./formatTime-83e416ef.js";import{B as St,g as Ut,c as Mt,__tla as Yt}from"./BargainActivityForm-aeffaff5.js";import{f as z,__tla as Nt}from"./formatter-4a27d877.js";import{u as Dt,__tla as Pt}from"./useMessage-084b1e70.js";import{__tla as Tt}from"./index-fb47c94c.js";import"./color-6e929987.js";import{__tla as Vt}from"./el-card-d3d5a654.js";import{__tla as zt}from"./Dialog-4c2de357.js";import{__tla as Ft}from"./Form-75bb2af4.js";import{__tla as At}from"./el-virtual-list-76825854.js";import{__tla as Ot}from"./el-tree-select-7a83bfa8.js";import{__tla as Rt}from"./el-time-select-7234e78f.js";import{__tla as Et}from"./InputPassword-57bce014.js";import{__tla as Bt}from"./InputPassword.vue_vue_type_style_index_0_scoped_3f07eb1d_lang-058d317a.js";import{__tla as qt}from"./Editor-514f76f8.js";import{__tla as Jt}from"./SPuUploadImg.vue_vue_type_style_index_0_scoped_ba706063_lang-6643271d.js";import{__tla as Kt}from"./index-5a40c383.js";import{__tla as Qt}from"./UploadImg-d2713eac.js";import{__tla as Wt}from"./UploadImgs-b8116d2f.js";import{__tla as Xt}from"./UploadImgs.vue_vue_type_style_index_0_scoped_9d666400_lang-a65d467a.js";import{__tla as Zt}from"./UploadFile-e148930d.js";import{__tla as jt}from"./UploadFile.vue_vue_type_style_index_0_scoped_436eca1b_lang-3e346ba0.js";import{__tla as Gt}from"./formRules-b40a428a.js";import{__tla as Ht}from"./useCrudSchemas-2fd8541b.js";import"./tree-0af4953a.js";import{__tla as It}from"./SpuSelect-ad7305a3.js";import{__tla as Lt}from"./index-99c3aa61.js";import{__tla as $t}from"./SkuList-7139770f.js";import{__tla as ta}from"./category-2d544841.js";import{__tla as aa}from"./spu-c6e01563.js";import{__tla as ra}from"./SpuAndSkuList-725f625f.js";let F,la=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 Pt}catch{}})(),(()=>{try{return Tt}catch{}})(),(()=>{try{return Vt}catch{}})(),(()=>{try{return zt}catch{}})(),(()=>{try{return Ft}catch{}})(),(()=>{try{return At}catch{}})(),(()=>{try{return Ot}catch{}})(),(()=>{try{return Rt}catch{}})(),(()=>{try{return Et}catch{}})(),(()=>{try{return Bt}catch{}})(),(()=>{try{return qt}catch{}})(),(()=>{try{return Jt}catch{}})(),(()=>{try{return Kt}catch{}})(),(()=>{try{return Qt}catch{}})(),(()=>{try{return Wt}catch{}})(),(()=>{try{return Xt}catch{}})(),(()=>{try{return Zt}catch{}})(),(()=>{try{return jt}catch{}})(),(()=>{try{return Gt}catch{}})(),(()=>{try{return Ht}catch{}})(),(()=>{try{return It}catch{}})(),(()=>{try{return Lt}catch{}})(),(()=>{try{return $t}catch{}})(),(()=>{try{return ta}catch{}})(),(()=>{try{return aa}catch{}})(),(()=>{try{return ra}catch{}})()]).then(async()=>{F=ct(Z({name:"PromotionBargainActivity",__name:"index",setup(ea){const d=Dt(),{t:A}=j(),h=m(!0),k=m(0),x=m([]),o=G({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 H(async()=>{await n()}),(u,_)=>{const R=tt,b=at,E=rt,B=lt,g=et,c=_t,q=ot,M=bt,e=it,J=yt,K=ft,Q=st,W=pt,y=I("hasPermi"),X=nt;return i(),N(D,null,[t(M,null,{default:l(()=>[t(q,{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(R,{modelValue:r(o).name,"onUpdate:modelValue":_[0]||(_[0]=a=>r(o).name=a),placeholder:"\u8BF7\u8F93\u5165\u6D3B\u52A8\u540D\u79F0",clearable:"",onKeyup:L(w,["enter"]),class:"!w-240px"},null,8,["modelValue"])]),_:1}),t(b,{label:"\u6D3B\u52A8\u72B6\u6001",prop:"status"},{default:l(()=>[t(B,{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(D,null,$(r(vt)(r(T).COMMON_STATUS),a=>(i(),p(E,{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(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(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(K,{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:Y=>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: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 Mt(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"])),[[X,r(h)]]),t(W,{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{la as __tla,F as default};
|