index-b7fcc46e.js 5.0 KB

1
  1. import{d as E,Y as j,K as J,r as d,h as L,e as O,k as Q,o as P,c as W,g as v,f as e,w as r,a,au as X,R as f,x as U,a4 as Z,m as p,ay as $,v as ee,t as x,e8 as A,F as ae,n as le,C as te,V as re,A as oe,B as se,E as de,i as pe,D as ne,G as ie,H as ce,I as ue,_ as _e,__tla as me}from"./index-430b3151.js";import{_ as fe,__tla as he}from"./ContentWrap-60842994.js";import{_ as ye,__tla as ge}from"./index-c425c88f.js";import{d as ve,__tla as xe}from"./formatTime-00eecbb7.js";import{P as Ae,a as we,__tla as be}from"./PtProfitForm-08c46c67.js";import{u as Ve,__tla as Te}from"./useMessage-d226ba89.js";import{__tla as ke}from"./el-card-dee5b36b.js";import{__tla as Pe}from"./index-555139e7.js";import{__tla as Ue}from"./Dialog-cd42c639.js";let C,Ce=Promise.all([(()=>{try{return me}catch{}})(),(()=>{try{return he}catch{}})(),(()=>{try{return ge}catch{}})(),(()=>{try{return xe}catch{}})(),(()=>{try{return be}catch{}})(),(()=>{try{return Te}catch{}})(),(()=>{try{return ke}catch{}})(),(()=>{try{return Pe}catch{}})(),(()=>{try{return Ue}catch{}})()]).then(async()=>{let w,b;w={class:"search-one"},b={style:{"text-align":"right"},class:"search-input"},C=_e(E({name:"PtProfit",__name:"index",setup(Ge){const G=j(),z=J(()=>G.getMobile),c=d(!1),D=()=>{c.value=!c.value},F=()=>{c.value=!1};Ve(),L();const h=d(!0),V=d([]),T=d(0),t=O({pageNo:1,pageSize:10,ptAdd:void 0,ptGrossAdd:void 0,ptTotalAdd:void 0,createTime:[]}),k=d();d(!1);const u=async()=>{console.log(t),h.value=!0;try{const y=await we.getPtProfitPage(t);V.value=y.list,T.value=y.total}finally{h.value=!1}},s=()=>{t.pageNo=1,u()},K=()=>{k.value.resetFields(),s()},N=d();return Q(()=>{u()}),(y,o)=>{const g=le,_=te,m=re,n=oe,Y=se,H=de,M=pe,S=ne,i=ie,R=ce,q=ye,I=fe,B=ue;return P(),W(ae,null,[v("div",w,[v("div",b,[e(m,{modelValue:a(t).name,"onUpdate:modelValue":o[0]||(o[0]=l=>a(t).name=l),placeholder:"\u7528\u6237\u540D",clearable:"",onKeyup:f(s,["enter"])},{suffix:r(()=>[e(g,{class:"mr-5px",icon:"ep:search",onClick:s,style:{cursor:"pointer"}})]),append:r(()=>[e(_,{icon:a(X),onClick:D},null,8,["icon"])]),_:1},8,["modelValue"])])]),U(v("div",{class:"searchMore",style:$({width:a(z)?"88.7%":"96%"})},[e(S,{class:"-mb-15px",model:a(t),ref_key:"queryFormRef",ref:k,inline:!0,"label-width":"100px"},{default:r(()=>[e(n,{label:"\u5E73\u53F0\u670D\u52A1\u8D39",prop:"ptAdd"},{default:r(()=>[e(m,{modelValue:a(t).ptAdd,"onUpdate:modelValue":o[1]||(o[1]=l=>a(t).ptAdd=l),placeholder:"\u8BF7\u8F93\u5165\u5E73\u53F0\u670D\u52A1\u8D39",clearable:"",onKeyup:f(s,["enter"]),class:"!w-240px"},null,8,["modelValue"])]),_:1}),e(n,{label:"\u5E73\u53F0\u6536\u76CA",prop:"ptGrossAdd"},{default:r(()=>[e(m,{modelValue:a(t).ptGrossAdd,"onUpdate:modelValue":o[2]||(o[2]=l=>a(t).ptGrossAdd=l),placeholder:"\u8BF7\u8F93\u5165\u5E73\u53F0\u6536\u76CA",clearable:"",onKeyup:f(s,["enter"]),class:"!w-240px"},null,8,["modelValue"])]),_:1}),e(n,{label:"\u5E73\u53F0\u603B\u6536\u76CA",prop:"ptTotalAdd"},{default:r(()=>[e(m,{modelValue:a(t).ptTotalAdd,"onUpdate:modelValue":o[3]||(o[3]=l=>a(t).ptTotalAdd=l),placeholder:"\u8BF7\u8F93\u5165\u5E73\u53F0\u603B\u6536\u76CA",clearable:"",onKeyup:f(s,["enter"]),class:"!w-240px"},null,8,["modelValue"])]),_:1}),e(n,{label:"\u521B\u5EFA\u65F6\u95F4",prop:"createTime"},{default:r(()=>[e(Y,{modelValue:a(t).createTime,"onUpdate:modelValue":o[4]||(o[4]=l=>a(t).createTime=l),"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(M,null,{default:r(()=>[e(H,null,{default:r(()=>[e(n,null,{default:r(()=>[e(_,{onClick:F},{default:r(()=>[p(" \u6536\u8D77 ")]),_:1}),e(_,{onClick:s},{default:r(()=>[e(g,{icon:"ep:search",class:"mr-5px"}),p(" \u641C\u7D22 ")]),_:1}),e(_,{onClick:K},{default:r(()=>[e(g,{icon:"ep:refresh",class:"mr-5px"}),p(" \u91CD\u7F6E ")]),_:1})]),_:1})]),_:1})]),_:1})]),_:1},8,["model"])],4),[[Z,a(c)]]),e(I,{style:{"margin-top":"10px",padding:"10px"}},{default:r(()=>[U((P(),ee(R,{data:a(V),stripe:!0,"show-overflow-tooltip":!0},{default:r(()=>[e(i,{label:"\u7F16\u53F7",align:"center",prop:"id"}),e(i,{label:"\u5E73\u53F0\u670D\u52A1\u8D39",align:"center",prop:"ptAdd"},{default:r(l=>[p(x(a(A)(l.row.ptAdd)),1)]),_:1}),e(i,{label:"\u5E73\u53F0\u6536\u76CA",align:"center",prop:"ptGrossAdd"},{default:r(l=>[p(x(a(A)(l.row.ptGrossAdd)),1)]),_:1}),e(i,{label:"\u5E73\u53F0\u603B\u6536\u76CA",align:"center",prop:"ptTotalAdd"},{default:r(l=>[p(x(a(A)(l.row.ptTotalAdd)),1)]),_:1}),e(i,{label:"\u521B\u5EFA\u65F6\u95F4",align:"center",prop:"createTime",formatter:a(ve),width:"180px"},null,8,["formatter"])]),_:1},8,["data"])),[[B,a(h)]]),e(q,{total:a(T),page:a(t).pageNo,"onUpdate:page":o[5]||(o[5]=l=>a(t).pageNo=l),limit:a(t).pageSize,"onUpdate:limit":o[6]||(o[6]=l=>a(t).pageSize=l),onPagination:u},null,8,["total","page","limit"])]),_:1}),e(Ae,{ref_key:"formRef",ref:N,onSuccess:u},null,512)],64)}}}),[["__scopeId","data-v-797c69ac"],["__file","D:/zx/mall-newfeifan-zx-admin/src/views/system/distri/ptprofit/index.vue"]])});export{Ce as __tla,C as default};