index-09b0e1b9.js 6.3 KB

1
  1. import{d as G,h as Q,r as d,e as j,k as E,P as J,o as c,c as O,f as e,w as o,a,Q as w,m,v as f,q as g,F as W,U as X,z as Z,x as $,y as ee,A as ae,_ as le,B as te,C as re,D as oe,G as pe,H as ne,__tla as ie}from"./index-2eab2d23.js";import{_ as se,__tla as ue}from"./index.vue_vue_type_script_setup_true_lang-5730b053.js";import{_ as de,__tla as ce}from"./ContentWrap.vue_vue_type_script_setup_true_lang-5a63038a.js";import{d as me,__tla as _e}from"./formatTime-41155543.js";import{d as fe}from"./download-20922b56.js";import{_ as ge,P,__tla as ye}from"./PtProfitLogForm.vue_vue_type_script_setup_true_lang-27797716.js";import{u as he,__tla as be}from"./useMessage-171aa63e.js";import{__tla as we}from"./index-cc63c3c4.js";import{__tla as xe}from"./el-card-c558f0ec.js";import{__tla as Ve}from"./Dialog-c2716df6.js";import"./_plugin-vue_export-helper-1b428a4d.js";let I,ve=Promise.all([(()=>{try{return ie}catch{}})(),(()=>{try{return ue}catch{}})(),(()=>{try{return ce}catch{}})(),(()=>{try{return _e}catch{}})(),(()=>{try{return ye}catch{}})(),(()=>{try{return be}catch{}})(),(()=>{try{return we}catch{}})(),(()=>{try{return xe}catch{}})(),(()=>{try{return Ve}catch{}})()]).then(async()=>{I=G({name:"PtProfitLog",__name:"index",setup(Pe){const x=he(),{t:D}=Q(),V=d(!0),k=d([]),C=d(0),l=j({pageNo:1,pageSize:10,amount:void 0,afterAmount:void 0,profitStatus:void 0,orderId:void 0,percentTemplate:void 0,createTime:[]}),S=d(),v=d(!1),_=async()=>{V.value=!0;try{const n=await P.getPtProfitLogPage(l);k.value=n.list,C.value=n.total}finally{V.value=!1}},s=()=>{l.pageNo=1,_()},L=()=>{S.value.resetFields(),s()},T=d(),U=(n,t)=>{T.value.open(n,t)},z=async()=>{try{await x.exportConfirm(),v.value=!0;const n=await P.exportPtProfitLog(l);fe.excel(n,"\u5E73\u53F0\u5229\u6DA6\u8BB0\u5F55.xls")}catch{}finally{v.value=!1}};return E(()=>{_()}),(n,t)=>{const y=X,i=Z,K=$,N=ee,Y=ae,h=le,u=te,F=re,A=de,p=oe,H=pe,q=se,b=J("hasPermi"),M=ne;return c(),O(W,null,[e(A,null,{default:o(()=>[e(F,{class:"-mb-15px",model:a(l),ref_key:"queryFormRef",ref:S,inline:!0,"label-width":"68px"},{default:o(()=>[e(i,{label:"\u589E\u52A0\u91D1\u989D",prop:"amount"},{default:o(()=>[e(y,{modelValue:a(l).amount,"onUpdate:modelValue":t[0]||(t[0]=r=>a(l).amount=r),placeholder:"\u8BF7\u8F93\u5165\u589E\u52A0\u91D1\u989D",clearable:"",onKeyup:w(s,["enter"]),class:"!w-240px"},null,8,["modelValue"])]),_:1}),e(i,{label:"\u589E\u52A0\u540E\u91D1\u989D",prop:"afterAmount"},{default:o(()=>[e(y,{modelValue:a(l).afterAmount,"onUpdate:modelValue":t[1]||(t[1]=r=>a(l).afterAmount=r),placeholder:"\u8BF7\u8F93\u5165\u589E\u52A0\u540E\u91D1\u989D",clearable:"",onKeyup:w(s,["enter"]),class:"!w-240px"},null,8,["modelValue"])]),_:1}),e(i,{label:"\u6536\u76CA\u7C7B\u578B 1:\u5E73\u53F0\u670D\u52A1\u5668\u8D39 2:\u5E73\u53F0\u6536\u76CA",prop:"profitStatus"},{default:o(()=>[e(N,{modelValue:a(l).profitStatus,"onUpdate:modelValue":t[2]||(t[2]=r=>a(l).profitStatus=r),placeholder:"\u8BF7\u9009\u62E9\u6536\u76CA\u7C7B\u578B 1:\u5E73\u53F0\u670D\u52A1\u5668\u8D39 2:\u5E73\u53F0\u6536\u76CA",clearable:"",class:"!w-240px"},{default:o(()=>[e(K,{label:"\u8BF7\u9009\u62E9\u5B57\u5178\u751F\u6210",value:""})]),_:1},8,["modelValue"])]),_:1}),e(i,{label:"\u8BA2\u5355\u53F7",prop:"orderId"},{default:o(()=>[e(y,{modelValue:a(l).orderId,"onUpdate:modelValue":t[3]||(t[3]=r=>a(l).orderId=r),placeholder:"\u8BF7\u8F93\u5165\u8BA2\u5355\u53F7",clearable:"",onKeyup:w(s,["enter"]),class:"!w-240px"},null,8,["modelValue"])]),_:1}),e(i,{label:"\u8BA1\u7B97\u767E\u5206\u6BD4\u6A21\u677F",prop:"percentTemplate"},{default:o(()=>[e(y,{modelValue:a(l).percentTemplate,"onUpdate:modelValue":t[4]||(t[4]=r=>a(l).percentTemplate=r),placeholder:"\u8BF7\u8F93\u5165\u8BA1\u7B97\u767E\u5206\u6BD4\u6A21\u677F",clearable:"",onKeyup:w(s,["enter"]),class:"!w-240px"},null,8,["modelValue"])]),_:1}),e(i,{label:"\u521B\u5EFA\u65F6\u95F4",prop:"createTime"},{default:o(()=>[e(Y,{modelValue:a(l).createTime,"onUpdate:modelValue":t[5]||(t[5]=r=>a(l).createTime=r),"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}),e(i,null,{default:o(()=>[e(u,{onClick:s},{default:o(()=>[e(h,{icon:"ep:search",class:"mr-5px"}),m(" \u641C\u7D22")]),_:1}),e(u,{onClick:L},{default:o(()=>[e(h,{icon:"ep:refresh",class:"mr-5px"}),m(" \u91CD\u7F6E")]),_:1}),f((c(),g(u,{type:"primary",plain:"",onClick:t[6]||(t[6]=r=>U("create"))},{default:o(()=>[e(h,{icon:"ep:plus",class:"mr-5px"}),m(" \u65B0\u589E ")]),_:1})),[[b,["distri:pt-profit-log:create"]]]),f((c(),g(u,{type:"success",plain:"",onClick:z,loading:a(v)},{default:o(()=>[e(h,{icon:"ep:download",class:"mr-5px"}),m(" \u5BFC\u51FA ")]),_:1},8,["loading"])),[[b,["distri:pt-profit-log:export"]]])]),_:1})]),_:1},8,["model"])]),_:1}),e(A,null,{default:o(()=>[f((c(),g(H,{data:a(k),stripe:!0,"show-overflow-tooltip":!0},{default:o(()=>[e(p,{label:"\u7528\u6237\u7F16\u53F7",align:"center",prop:"id"}),e(p,{label:"\u589E\u52A0\u91D1\u989D",align:"center",prop:"amount"}),e(p,{label:"\u589E\u52A0\u540E\u91D1\u989D",align:"center",prop:"afterAmount"}),e(p,{label:"\u6536\u76CA\u7C7B\u578B 1:\u5E73\u53F0\u670D\u52A1\u5668\u8D39 2:\u5E73\u53F0\u6536\u76CA",align:"center",prop:"profitStatus"}),e(p,{label:"\u8BA2\u5355\u53F7",align:"center",prop:"orderId"}),e(p,{label:"\u8BA1\u7B97\u767E\u5206\u6BD4\u6A21\u677F",align:"center",prop:"percentTemplate"}),e(p,{label:"\u521B\u5EFA\u65F6\u95F4",align:"center",prop:"createTime",formatter:a(me),width:"180px"},null,8,["formatter"]),e(p,{label:"\u64CD\u4F5C",align:"center"},{default:o(r=>[f((c(),g(u,{link:"",type:"primary",onClick:R=>U("update",r.row.id)},{default:o(()=>[m(" \u7F16\u8F91 ")]),_:2},1032,["onClick"])),[[b,["distri:pt-profit-log:update"]]]),f((c(),g(u,{link:"",type:"danger",onClick:R=>(async B=>{try{await x.delConfirm(),await P.deletePtProfitLog(B),x.success(D("common.delSuccess")),await _()}catch{}})(r.row.id)},{default:o(()=>[m(" \u5220\u9664 ")]),_:2},1032,["onClick"])),[[b,["distri:pt-profit-log:delete"]]])]),_:1})]),_:1},8,["data"])),[[M,a(V)]]),e(q,{total:a(C),page:a(l).pageNo,"onUpdate:page":t[7]||(t[7]=r=>a(l).pageNo=r),limit:a(l).pageSize,"onUpdate:limit":t[8]||(t[8]=r=>a(l).pageSize=r),onPagination:_},null,8,["total","page","limit"])]),_:1}),e(ge,{ref_key:"formRef",ref:T,onSuccess:_},null,512)],64)}}})});export{ve as __tla,I as default};