1 |
- import{S as w,_ as N,d as V,m as l,cp as W,w as A,p as R,r as a,o as m,A as f,x as r,u,h as _,H as S,a as g,D as P,b as U}from"./index.56449854.js";import{b as v}from"./calc.f00124e1.js";import{a as Y,D as j}from"./demand-modify-modal.8dc694f0.js";import{u as q}from"./use-page-search.59eb5443.js";import"./index.96b4109c.js";import"./createRequset.56e9fc42.js";const z=w(new Date).format("YYYY-MM"),y={defaultMode:"month",formItems:[{field:"date",type:"date_composition",trigger:"change",defaultValue:z},{field:"companyNo",type:"business-query",trigger:"change",noRest:!0},{field:"depart_id",type:"depart-query",trigger:"change"}]},H=h=>({columns:[{prop:"year",label:"\u5E74",minWidth:"70px"},{prop:"month",label:"\u6708",minWidth:"70px"},{prop:"companyName",label:"\u516C\u53F8\u540D\u79F0",minWidth:"135px"},{prop:"depart_item",label:"\u90E8\u95E8",minWidth:"135px"},{prop:"total_tips",label:"\u8425\u6536\u76EE\u6807",width:"100px",cellRenderer({row:e}){return h?v(e.total_tips):e.total_tips}},{prop:"cost_tips",label:"\u6BDB\u5229\u76EE\u6807",width:"100px",cellRenderer({row:e}){return h?v(e.cost_tips):e.cost_tips}},{prop:"updatetime",label:"\u6700\u65B0\u4E00\u6B21\u4FEE\u6539\u65F6\u95F4",minWidth:"155px"},{prop:"addtime",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:{httpList:(e={})=>{const{date:t,...n}=e;if(t&&t.length===7){const[i,p]=t.split("-");n.year=i,n.month=p}return t&&t.length===4&&(n.year=t),Y.list(n)}}}),I=U("span",{class:"mr-[5px]",style:{"font-weight":"700"}},"\u663E\u793A\u5355\u4F4D:",-1),x="departmentTotalTips",$=V({__name:"index",setup(h){l(y);const e=l(!0),t=l(!0),n=l(null),i=l(null),{hasPermissionWithCode:p}=W(x),E={pageSearchHook:()=>q(void 0,void 0,y)};function C(c){var o;(o=n.value)==null||o.onDisplay(c)}function b(){var d;const{companyNo:c,depart_id:o}=i.value.getBasicParams();(d=n.value)==null||d.onDisplay({companyNo:c,depart_id:o})}return A(()=>e.value,()=>{t.value=!1,R(()=>t.value=!0)}),(c,o)=>{const d=a("ElSwitch"),F=a("el-button"),k=a("ElButton"),B=a("ElTooltip"),D=a("page-container"),M=a("ExecModal"),T=a("page-auth");return m(),f(T,{"page-name":x},{default:r(()=>[t.value?(m(),f(D,{key:0,hooks:E,"page-name":x,"search-config":u(y),"get-content-ref":s=>i.value=s,"content-config":u(H)(e.value)},{content_header:r(()=>[I,_(d,{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"]),u(p)("2")?(m(),f(F,{key:0,size:"small",type:"primary",onClick:b},{default:r(()=>[S(" \u6DFB\u52A0 ")]),_:1})):g("v-if",!0)]),content_action:r(s=>[u(p)("4")?(m(),f(B,{key:0,content:"\u7F16\u8F91",placement:"top"},{default:r(()=>[_(k,{link:"",size:"small",type:"primary",icon:u(P)("edits"),onClick:L=>C(s)},null,8,["icon","onClick"])]),_:2},1024)):g("v-if",!0)]),_:1},8,["search-config","get-content-ref","content-config"])):g("v-if",!0),_(j,{ref_key:"demandModifyModal",ref:n,onRefresh:o[1]||(o[1]=s=>i.value.onSearch())},null,512),_(M,{ref:"execModalRef"},null,512)]),_:1})}}});var Z=N($,[["__file","C:/Users/89793/Desktop/projects/report-v3/src/views/tipsSetting/departmentTotalTips/index.vue"]]);export{Z as default};
|