index.6dbec8eb.js 2.9 KB

1
  1. import{_ as w,d as V,m as c,cp as N,w as R,p as S,r as a,o as d,A as m,x as l,u as r,h as f,H as W,a as h,D as P,b as U}from"./index.3e4e5e4b.js";import{b as g}from"./calc.f00124e1.js";import{a as x,D as z}from"./demand-modify-modal.bca53cfb.js";import{u as H}from"./use-page-search.c23b39ec.js";import"./index.583889ad.js";import"./createRequset.a15dc2f4.js";const y={formItems:[{field:"date",type:"date_composition",trigger:"change",defaultValue:"2025"}]},I=_=>({columns:[{prop:"year",label:"\u5E74",minWidth:"70px"},{prop:"month",label:"\u6708",minWidth:"70px"},{prop:"uname",label:"\u4E1A\u52A1\u7ECF\u7406",minWidth:"135px"},{prop:"total_tips",label:"\u5F00\u7968\u6307\u6807",width:"100px",cellRenderer({row:e}){return _?g(e.inv_tips):e.inv_tips}},{prop:"cost_tips",label:"\u5229\u6DA6\u6307\u6807",width:"100px",cellRenderer({row:e}){return _?g(e.cost_tips):e.cost_tips}},{prop:"createTime",label:"\u521B\u5EFA\u65F6\u95F4",minWidth:"115px"},{prop:"creater",label:"\u521B\u5EFA\u4EBA",minWidth:"80px"},{label:"\u64CD\u4F5C",fixed:"right",width:90,slot:"operation"}],showTitle:!1,superUserNoAction:!1,apis:{httpDelete:x.delete,httpList:(e={})=>{const{date:t,...n}=e;if(t&&t.length===7){const[i,u]=t.split("-");n.year=i,n.month=u}return t&&t.length===4&&(n.year=t),x.list(n)}}}),$=U("span",{class:"mr-[5px]",style:{"font-weight":"700"}},"\u663E\u793A\u5355\u4F4D:",-1),v="invManagerTotalTips",j=V({__name:"index",setup(_){const e=c(!0),t=c(!0),n=c(null),i=c(null),{hasPermissionWithCode:u}=N(v),C={pageSearchHook:()=>H(void 0,void 0,y)};function E(p){var o;(o=n.value)==null||o.onDisplay(p)}function k(){var o;const{companyNo:p}=i.value.getBasicParams();(o=n.value)==null||o.onDisplay({companyNo:p})}return R(()=>e.value,()=>{t.value=!1,S(()=>t.value=!0)}),(p,o)=>{const T=a("ElSwitch"),b=a("el-button"),D=a("ElButton"),F=a("ElTooltip"),M=a("page-container"),A=a("ExecModal"),B=a("page-auth");return d(),m(B,{"page-name":v},{default:l(()=>[t.value?(d(),m(M,{key:0,hooks:C,"page-name":v,"search-config":r(y),"get-content-ref":s=>i.value=s,"content-config":r(I)(e.value)},{content_header:l(()=>[$,f(T,{class:"mr-[15px]",modelValue:e.value,"onUpdate:modelValue":o[0]||(o[0]=s=>e.value=s),"active-text":"\u4E07\u5143","inactive-text":"\u5143"},null,8,["modelValue"]),r(u)("2")?(d(),m(b,{key:0,size:"small",type:"primary",onClick:k},{default:l(()=>[W(" \u6DFB\u52A0 ")]),_:1})):h("v-if",!0)]),content_action:l(s=>[r(u)("4")?(d(),m(F,{key:0,content:"\u7F16\u8F91",placement:"top"},{default:l(()=>[f(D,{link:"",size:"small",type:"primary",icon:r(P)("edits"),onClick:L=>E(s)},null,8,["icon","onClick"])]),_:2},1024)):h("v-if",!0)]),_:1},8,["search-config","get-content-ref","content-config"])):h("v-if",!0),f(z,{ref_key:"demandModifyModal",ref:n,onRefresh:o[1]||(o[1]=s=>i.value.onSearch())},null,512),f(A,{ref:"execModalRef"},null,512)]),_:1})}}});var X=w(j,[["__file","C:/Users/89793/Desktop/projects/report-v3/src/views/tipsSetting/invManagerTotalTips/index.vue"]]);export{X as default};