index-8f5f6510.js 5.7 KB

1
  1. import{aA as G,d as H,P as J,r as s,x as L,b as Q,a4 as W,o as n,c as T,f as a,A as l,a as e,F as D,R as X,C as c,D as _,k as d,E as Z,S as j,U as K,V as $,I as aa,Q as ta,J as ea,W as la,X as ra,Y as oa,Z as ia,_ as na,__tla as sa}from"./index-286756b9.js";import{_ as _a,__tla as pa}from"./index-ed6c67a8.js";import{_ as ma,__tla as ca}from"./DictTag-f72b04ca.js";import{E as ua,__tla as da}from"./el-image-73c105b7.js";import{__tla as fa}from"./el-image-viewer-e0e5d3be.js";import{_ as ha,__tla as ya}from"./ContentWrap-83998678.js";import{a as ga,D as P,__tla as wa}from"./dict-82dca549.js";import{d as A,__tla as ba}from"./formatTime-83e416ef.js";import{f as N,__tla as va}from"./formatter-4a27d877.js";import xa,{__tla as ka}from"./BargainRecordListDialog-6db62ffe.js";import{u as Ra,__tla as Ca}from"./useMessage-084b1e70.js";import{__tla as Ta}from"./index-fb47c94c.js";import"./color-6e929987.js";import{__tla as Da}from"./el-card-d3d5a654.js";import{__tla as Pa}from"./Dialog-4c2de357.js";import{__tla as Aa}from"./el-avatar-2aa16c07.js";let O,Na=Promise.all([(()=>{try{return sa}catch{}})(),(()=>{try{return pa}catch{}})(),(()=>{try{return ca}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 Ta}catch{}})(),(()=>{try{return Da}catch{}})(),(()=>{try{return Pa}catch{}})(),(()=>{try{return Aa}catch{}})()]).then(async()=>{O=na(H({name:"PromotionBargainRecord",__name:"index",setup(Oa){Ra(),J();const f=s(!0),w=s(0),b=s([]),i=L({pageNo:1,pageSize:10,status:null,createTime:[]}),v=s(),S=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()},U=()=>{v.value.resetFields(),x()},k=s();return Q(()=>{h()}),(p,r)=>{const V=j,z=K,y=$,I=aa,u=ta,m=ea,M=la,R=ha,o=ra,E=ua,F=ma,Y=oa,B=_a,g=W("hasPermi"),q=ia;return n(),T(D,null,[a(R,null,{default:l(()=>[a(M,{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(z,{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),T(D,null,X(e(ga)(e(P).PROMOTION_BARGAIN_RECORD_STATUS),t=>(n(),c(V,{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(I,{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(m,{onClick:x},{default:l(()=>[a(u,{icon:"ep:search",class:"mr-5px"}),_(" \u641C\u7D22")]),_:1}),a(m,{onClick:U},{default:l(()=>[a(u,{icon:"ep:refresh",class:"mr-5px"}),_(" \u91CD\u7F6E")]),_:1}),d((n(),c(m,{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(),c(m,{type:"success",plain:"",onClick:p.handleExport,loading:e(S)},{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(R,null,{default:l(()=>[d((n(),c(Y,{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(E,{src:t.row.avatar,class:"h-20px w-20px","preview-src-list":[t.row.avatar],"preview-teleported":""},null,8,["src","preview-src-list"]),_(" "+Z(t.row.nickname),1)]),_:1}),a(o,{label:"\u53D1\u8D77\u65F6\u95F4",align:"center",prop:"createTime",formatter:e(A),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(N)},null,8,["formatter"]),a(o,{label:"\u5F53\u524D\u4EF7","min-width":"100",prop:"bargainPrice",formatter:e(N)},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(F,{type:e(P).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(A),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(),c(m,{link:"",type:"primary",onClick:Sa=>{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(B,{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-admin/src/views/mall/promotion/bargain/record/index.vue"]])});export{Na as __tla,O as default};