index-b5127773.js 5.8 KB

1
  1. import{ap as G,d as H,h as L,r as s,e as j,k as J,P as K,o as n,c as R,f as a,w as l,a as e,F as D,n as Q,q as c,m as _,v as d,t as W,x as X,y as Z,z as $,A as aa,_ as ta,B as ea,C as la,D as ra,G as oa,H as ia,__tla as na}from"./index-2eab2d23.js";import{_ as sa,__tla as _a}from"./index.vue_vue_type_script_setup_true_lang-5730b053.js";import{_ as pa,__tla as ma}from"./DictTag.vue_vue_type_script_lang-cb1e47ff.js";import{E as ca,__tla as ua}from"./el-image-2171f3ff.js";import{__tla as da}from"./el-image-viewer-5d14bc77.js";import{_ as fa,__tla as ha}from"./ContentWrap.vue_vue_type_script_setup_true_lang-5a63038a.js";import{a as ya,D as P,__tla as ga}from"./dict-1ad71b6f.js";import{d as N,__tla as wa}from"./formatTime-41155543.js";import{f as O,__tla as ba}from"./formatter-bf00f7bd.js";import{_ as va,__tla as xa}from"./BargainRecordListDialog.vue_vue_type_script_setup_true_lang-7ee4f43b.js";import{u as ka,__tla as Ca}from"./useMessage-171aa63e.js";import{__tla as Ta}from"./index-cc63c3c4.js";import"./color-6e929987.js";import{__tla as Ra}from"./el-card-c558f0ec.js";import{__tla as Da}from"./Dialog-c2716df6.js";import"./_plugin-vue_export-helper-1b428a4d.js";import{__tla as Pa}from"./el-avatar-399a18d6.js";let A,Na=Promise.all([(()=>{try{return na}catch{}})(),(()=>{try{return _a}catch{}})(),(()=>{try{return ma}catch{}})(),(()=>{try{return ua}catch{}})(),(()=>{try{return da}catch{}})(),(()=>{try{return ha}catch{}})(),(()=>{try{return ga}catch{}})(),(()=>{try{return wa}catch{}})(),(()=>{try{return ba}catch{}})(),(()=>{try{return xa}catch{}})(),(()=>{try{return Ca}catch{}})(),(()=>{try{return Ta}catch{}})(),(()=>{try{return Ra}catch{}})(),(()=>{try{return Da}catch{}})(),(()=>{try{return Pa}catch{}})()]).then(async()=>{A=H({name:"PromotionBargainRecord",__name:"index",setup(Oa){ka(),L();const f=s(!0),w=s(0),b=s([]),i=j({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()},I=()=>{v.value.resetFields(),x()},k=s();return J(()=>{h()}),(p,r)=>{const M=X,U=Z,y=$,V=aa,u=ta,m=ea,B=la,C=fa,o=ra,z=ca,E=pa,F=oa,Y=sa,g=K("hasPermi"),q=ia;return n(),R(D,null,[a(C,null,{default:l(()=>[a(B,{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(U,{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(ya)(e(P).PROMOTION_BARGAIN_RECORD_STATUS),t=>(n(),c(M,{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(V,{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:I},{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(C,null,{default:l(()=>[d((n(),c(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(z,{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(N),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(O)},null,8,["formatter"]),a(o,{label:"\u5F53\u524D\u4EF7","min-width":"100",prop:"bargainPrice",formatter:e(O)},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(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(N),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:Aa=>{return T=t.row.id,void k.value.open(T);var T}},{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(va,{ref_key:"recordListDialogRef",ref:k},null,512)],64)}}})});export{Na as __tla,A as default};