index.c6c999a4.js 2.8 KB

1
  1. import{_ as w,d as A,m as p,cp as V,w as N,p as S,r as a,o as m,A as d,x as l,u as r,h as f,H as W,a as _,D as R,b as P}from"./index.56449854.js";import{b as U}from"./calc.f00124e1.js";import{a as g,D as z}from"./demand-modify-modal.8fe3dcc1.js";import{u as H}from"./use-page-search.59eb5443.js";import"./index.96b4109c.js";import"./createRequset.56e9fc42.js";const x={formItems:[{field:"date",type:"date_composition",trigger:"change",defaultValue:"2025"}]},I=v=>({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:o}){return v?U(o.inv_tips):o.inv_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:g.delete,httpList:(o={})=>{const{date:e,...n}=o;if(e&&e.length===7){const[i,u]=e.split("-");n.year=i,n.month=u}return e&&e.length===4&&(n.year=e),g.list(n)}}}),$=P("span",{class:"mr-[5px]",style:{"font-weight":"700"}},"\u663E\u793A\u5355\u4F4D:",-1),h="invManagerTotalTips",j=A({__name:"index",setup(v){const o=p(!0),e=p(!0),n=p(null),i=p(null),{hasPermissionWithCode:u}=V(h),y={pageSearchHook:()=>H(void 0,void 0,x)};function C(c){var t;(t=n.value)==null||t.onDisplay(c)}function E(){var t;const{companyNo:c}=i.value.getBasicParams();(t=n.value)==null||t.onDisplay({companyNo:c})}return N(()=>o.value,()=>{e.value=!1,S(()=>e.value=!0)}),(c,t)=>{const k=a("ElSwitch"),T=a("el-button"),F=a("ElButton"),b=a("ElTooltip"),D=a("page-container"),M=a("ExecModal"),B=a("page-auth");return m(),d(B,{"page-name":h},{default:l(()=>[e.value?(m(),d(D,{key:0,hooks:y,"page-name":h,"search-config":r(x),"get-content-ref":s=>i.value=s,"content-config":r(I)(o.value)},{content_header:l(()=>[$,f(k,{class:"mr-[15px]",modelValue:o.value,"onUpdate:modelValue":t[0]||(t[0]=s=>o.value=s),"active-text":"\u4E07\u5143","inactive-text":"\u5143"},null,8,["modelValue"]),r(u)("2")?(m(),d(T,{key:0,size:"small",type:"primary",onClick:E},{default:l(()=>[W(" \u6DFB\u52A0 ")]),_:1})):_("v-if",!0)]),content_action:l(s=>[r(u)("4")?(m(),d(b,{key:0,content:"\u7F16\u8F91",placement:"top"},{default:l(()=>[f(F,{link:"",size:"small",type:"primary",icon:r(R)("edits"),onClick:L=>C(s)},null,8,["icon","onClick"])]),_:2},1024)):_("v-if",!0)]),_:1},8,["search-config","get-content-ref","content-config"])):_("v-if",!0),f(z,{ref_key:"demandModifyModal",ref:n,onRefresh:t[1]||(t[1]=s=>i.value.onSearch())},null,512),f(M,{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};