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