index-6e100592.js 5.8 KB

1
  1. import{az as G,d as H,P as J,r as s,x as L,b as Q,a3 as W,o as n,c as T,f as a,A as l,a as e,F as D,Q as X,C as m,D as _,k as d,E as j,R as K,S as Z,U as $,I as aa,_ as ta,J as ea,V as la,W as ra,X as oa,Y as ia,__tla as na}from"./index-a9d538d5.js";import{_ as sa,__tla as _a}from"./index.vue_vue_type_script_setup_true_lang-ca67dc77.js";import{_ as pa,__tla as ca}from"./DictTag.vue_vue_type_script_lang-9e4dd0a0.js";import{E as ma,__tla as ua}from"./el-image-2dadd73e.js";import{__tla as da}from"./el-image-viewer-2e77a3e7.js";import{_ as fa,__tla as ha}from"./ContentWrap.vue_vue_type_script_setup_true_lang-6b7b4656.js";import{a as ya,D as P,__tla as ga}from"./dict-0e53af99.js";import{d as N,__tla as wa}from"./formatTime-8985a9d0.js";import{f as O,__tla as ba}from"./formatter-39dddc29.js";import{_ as va,__tla as xa}from"./BargainRecordListDialog.vue_vue_type_script_setup_true_lang-17c08ffe.js";import{u as ka,__tla as Ca}from"./useMessage-d5cbbfad.js";import{__tla as Ra}from"./index-95ad39b3.js";import"./color-6e929987.js";import{__tla as Ta}from"./el-card-0ea446a3.js";import{__tla as Da}from"./Dialog-f354f369.js";import"./_plugin-vue_export-helper-1b428a4d.js";import{__tla as Pa}from"./el-avatar-42b0abb0.js";let S,Na=Promise.all([(()=>{try{return na}catch{}})(),(()=>{try{return _a}catch{}})(),(()=>{try{return ca}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 Ra}catch{}})(),(()=>{try{return Ta}catch{}})(),(()=>{try{return Da}catch{}})(),(()=>{try{return Pa}catch{}})()]).then(async()=>{S=H({name:"PromotionBargainRecord",__name:"index",setup(Oa){ka(),J();const f=s(!0),w=s(0),b=s([]),i=L({pageNo:1,pageSize:10,status:null,createTime:[]}),v=s(),A=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 Q(()=>{h()}),(p,r)=>{const U=K,V=Z,y=$,E=aa,u=ta,c=ea,M=la,C=fa,o=ra,Y=ma,z=pa,F=oa,B=sa,g=W("hasPermi"),q=ia;return n(),T(D,null,[a(C,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(V,{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(ya)(e(P).PROMOTION_BARGAIN_RECORD_STATUS),t=>(n(),m(U,{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(E,{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:I},{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(A)},{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(),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(Y,{src:t.row.avatar,class:"h-20px w-20px","preview-src-list":[t.row.avatar],"preview-teleported":""},null,8,["src","preview-src-list"]),_(" "+j(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(z,{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(),m(c,{link:"",type:"primary",onClick:Sa=>{return R=t.row.id,void k.value.open(R);var R}},{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(va,{ref_key:"recordListDialogRef",ref:k},null,512)],64)}}})});export{Na as __tla,S as default};