index-1c1695ad.js 5.7 KB

1
  1. import{as as G,d as H,B as L,r as s,g as J,z as K,T as j,o as n,c as R,i as a,w as l,a as e,F as D,C as Q,k as m,l as _,D as d,t as W,G as X,H as Z,I as $,q as aa,n as ta,s as ea,J as la,K as ra,L as oa,M as ia,_ as na,__tla as sa}from"./index-2f799233.js";import{_ as _a,__tla as pa}from"./index-e6cd813f.js";import{_ as ca,__tla as ma}from"./DictTag-ea4c6cc2.js";import{E as ua,__tla as da}from"./el-image-4d26fa76.js";import{__tla as fa}from"./el-image-viewer-8e9e3571.js";import{_ as ha,__tla as ya}from"./ContentWrap-9da801df.js";import{a as ga,D as N,__tla as wa}from"./dict-20c916e2.js";import{d as O,__tla as ba}from"./formatTime-2157894c.js";import{f as P,__tla as va}from"./formatter-4606ca53.js";import xa,{__tla as ka}from"./BargainRecordListDialog-595132e4.js";import{u as Ta,__tla as Ca}from"./useMessage-e567ad40.js";import{__tla as Ra}from"./index-1c180a16.js";import"./color-6e929987.js";import{__tla as Da}from"./el-card-c64c83d1.js";import{__tla as Na}from"./Dialog-6fd39e06.js";import{__tla as Oa}from"./el-avatar-7a15dd9c.js";let I,Pa=Promise.all([(()=>{try{return sa}catch{}})(),(()=>{try{return pa}catch{}})(),(()=>{try{return ma}catch{}})(),(()=>{try{return da}catch{}})(),(()=>{try{return fa}catch{}})(),(()=>{try{return ya}catch{}})(),(()=>{try{return wa}catch{}})(),(()=>{try{return ba}catch{}})(),(()=>{try{return va}catch{}})(),(()=>{try{return ka}catch{}})(),(()=>{try{return Ca}catch{}})(),(()=>{try{return Ra}catch{}})(),(()=>{try{return Da}catch{}})(),(()=>{try{return Na}catch{}})(),(()=>{try{return Oa}catch{}})()]).then(async()=>{I=na(H({name:"PromotionBargainRecord",__name:"index",setup(Ia){Ta(),L();const f=s(!0),w=s(0),b=s([]),i=J({pageNo:1,pageSize:10,status:null,createTime:[]}),v=s(),M=s(!1),h=async()=>{f.value=!0;try{const p=await(async r=>await G.get({url:"/promotion/bargain-record/page",params:r}))(i);b.value=p.list,w.value=p.total}finally{f.value=!1}},x=()=>{i.pageNo=1,h()},S=()=>{v.value.resetFields(),x()},k=s();return K(()=>{h()}),(p,r)=>{const z=X,A=Z,y=$,U=aa,u=ta,c=ea,V=la,T=ha,o=ra,B=ua,E=ca,F=oa,Y=_a,g=j("hasPermi"),q=ia;return n(),R(D,null,[a(T,null,{default:l(()=>[a(V,{class:"-mb-15px",model:e(i),ref_key:"queryFormRef",ref:v,inline:!0,"label-width":"68px"},{default:l(()=>[a(y,{label:"\u780D\u4EF7\u72B6\u6001",prop:"status"},{default:l(()=>[a(A,{modelValue:e(i).status,"onUpdate:modelValue":r[0]||(r[0]=t=>e(i).status=t),placeholder:"\u8BF7\u9009\u62E9\u780D\u4EF7\u72B6\u6001",clearable:"",class:"!w-240px"},{default:l(()=>[(n(!0),R(D,null,Q(e(ga)(e(N).PROMOTION_BARGAIN_RECORD_STATUS),t=>(n(),m(z,{key:t.value,label:t.label,value:t.value},null,8,["label","value"]))),128))]),_:1},8,["modelValue"])]),_:1}),a(y,{label:"\u521B\u5EFA\u65F6\u95F4",prop:"createTime"},{default:l(()=>[a(U,{modelValue:e(i).createTime,"onUpdate:modelValue":r[1]||(r[1]=t=>e(i).createTime=t),"value-format":"YYYY-MM-DD HH:mm:ss",type:"daterange","start-placeholder":"\u5F00\u59CB\u65E5\u671F","end-placeholder":"\u7ED3\u675F\u65E5\u671F","default-time":[new Date("1 00:00:00"),new Date("1 23:59:59")],class:"!w-240px"},null,8,["modelValue","default-time"])]),_:1}),a(y,null,{default:l(()=>[a(c,{onClick:x},{default:l(()=>[a(u,{icon:"ep:search",class:"mr-5px"}),_(" \u641C\u7D22")]),_:1}),a(c,{onClick:S},{default:l(()=>[a(u,{icon:"ep:refresh",class:"mr-5px"}),_(" \u91CD\u7F6E")]),_:1}),d((n(),m(c,{type:"primary",plain:"",onClick:r[2]||(r[2]=t=>p.openForm("create"))},{default:l(()=>[a(u,{icon:"ep:plus",class:"mr-5px"}),_(" \u65B0\u589E ")]),_:1})),[[g,["promotion:bargain-record:create"]]]),d((n(),m(c,{type:"success",plain:"",onClick:p.handleExport,loading:e(M)},{default:l(()=>[a(u,{icon:"ep:download",class:"mr-5px"}),_(" \u5BFC\u51FA ")]),_:1},8,["onClick","loading"])),[[g,["promotion:bargain-record:export"]]])]),_:1})]),_:1},8,["model"])]),_:1}),a(T,null,{default:l(()=>[d((n(),m(F,{data:e(b),stripe:!0,"show-overflow-tooltip":!0},{default:l(()=>[a(o,{label:"\u7F16\u53F7","min-width":"50",prop:"id"}),a(o,{label:"\u53D1\u8D77\u7528\u6237","min-width":"120"},{default:l(t=>[a(B,{src:t.row.avatar,class:"h-20px w-20px","preview-src-list":[t.row.avatar],"preview-teleported":""},null,8,["src","preview-src-list"]),_(" "+W(t.row.nickname),1)]),_:1}),a(o,{label:"\u53D1\u8D77\u65F6\u95F4",align:"center",prop:"createTime",formatter:e(O),width:"180px"},null,8,["formatter"]),a(o,{label:"\u780D\u4EF7\u6D3B\u52A8","min-width":"150",prop:"activity.name"}),a(o,{label:"\u6700\u4F4E\u4EF7","min-width":"100",prop:"activity.bargainMinPrice",formatter:e(P)},null,8,["formatter"]),a(o,{label:"\u5F53\u524D\u4EF7","min-width":"100",prop:"bargainPrice",formatter:e(P)},null,8,["formatter"]),a(o,{label:"\u603B\u780D\u4EF7\u6B21\u6570","min-width":"100",prop:"activity.helpMaxCount"}),a(o,{label:"\u5269\u4F59\u780D\u4EF7\u6B21\u6570","min-width":"100",prop:"helpCount"}),a(o,{label:"\u780D\u4EF7\u72B6\u6001",align:"center",prop:"status"},{default:l(t=>[a(E,{type:e(N).PROMOTION_BARGAIN_RECORD_STATUS,value:t.row.status},null,8,["type","value"])]),_:1}),a(o,{label:"\u7ED3\u675F\u65F6\u95F4",align:"center",prop:"endTime",formatter:e(O),width:"180px"},null,8,["formatter"]),a(o,{label:"\u8BA2\u5355\u7F16\u53F7",align:"center",prop:"orderId"}),a(o,{label:"\u64CD\u4F5C",align:"center"},{default:l(t=>[d((n(),m(c,{link:"",type:"primary",onClick:Ma=>{return C=t.row.id,void k.value.open(C);var C}},{default:l(()=>[_(" \u52A9\u529B ")]),_:2},1032,["onClick"])),[[g,["promotion:bargain-help:query"]]])]),_:1})]),_:1},8,["data"])),[[q,e(f)]]),a(Y,{total:e(w),page:e(i).pageNo,"onUpdate:page":r[3]||(r[3]=t=>e(i).pageNo=t),limit:e(i).pageSize,"onUpdate:limit":r[4]||(r[4]=t=>e(i).pageSize=t),onPagination:h},null,8,["total","page","limit"])]),_:1}),a(xa,{ref_key:"recordListDialogRef",ref:k},null,512)],64)}}}),[["__file","D:/zx/mall-newfeifan-zx-business/src/views/mall/promotion/bargain/record/index.vue"]])});export{Pa as __tla,I as default};