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