index-55a9d164.js 5.3 KB

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