1 |
- import{_ as A,d as V,m as u,cp as W,Q as R,w as S,p as P,r as s,o as m,A as d,x as r,u as p,b as U,h as f,H as Y,a as y,D as j}from"./index.bf41a5b5.js";import{b as E}from"./calc.0cdee66c.js";import{a as z,D as H}from"./demand-modify-modal.d9ce5aac.js";import{u as I}from"./use-page-search.fc995b50.js";import"./index.a408f48c.js";import"./createRequset.3eb6d703.js";const v={formItems:[{field:"date",type:"date_composition",trigger:"change",defaultValue:"2024"},{field:"companyNo",type:"business-query",trigger:"change"}]},$=_=>({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:t}){return _?E(t.total_tips):t.total_tips}},{prop:"cost_tips",label:"\u6BDB\u5229\u76EE\u6807",width:"100px",cellRenderer({row:t}){return _?E(t.cost_tips):t.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:(t={})=>{const{date:o,...a}=t;if(o&&o.length===7){const[l,c]=o.split("-");a.year=l,a.month=c}return o&&o.length===4&&(a.year=o),z.list(a)}}}),x="companyTotalTips",q=V({__name:"index",setup(_){const t=u(!0),o=u(!0);u(v);const a=u(null),l=u(null),{hasPermissionWithCode:c}=W(x),C=R(new Date).format("YYYY-MM");function b(i,e){const[h,g]=C.split("-");return!(i<h||e<g)}const k={pageSearchHook:()=>I(void 0,void 0,v)};function D(i){var e;(e=a.value)==null||e.onDisplay(i)}function F(){var e;const{companyNo:i}=l.value.getBasicParams();(e=a.value)==null||e.onDisplay({companyNo:i})}return S(()=>t.value,()=>{o.value=!1,P(()=>o.value=!0)}),(i,e)=>{const h=s("ElSwitch"),g=s("el-button"),B=s("ElButton"),T=s("ElTooltip"),M=s("page-container"),N=s("ExecModal"),w=s("page-auth");return m(),d(w,{"page-name":x},{default:r(()=>[o.value?(m(),d(M,{key:0,hooks:k,"page-name":x,"search-config":p(v),"get-content-ref":n=>l.value=n,"content-config":p($)(t.value)},{content_header:r(()=>[e[3]||(e[3]=U("span",{class:"mr-[5px]",style:{"font-weight":"700"}},"\u663E\u793A\u5355\u4F4D:",-1)),f(h,{class:"mr-[15px]",modelValue:t.value,"onUpdate:modelValue":e[0]||(e[0]=n=>t.value=n),"active-text":"\u4E07\u5143","inactive-text":"\u5143"},null,8,["modelValue"]),p(c)("2")?(m(),d(g,{key:0,size:"small",type:"primary",onClick:F},{default:r(()=>e[2]||(e[2]=[Y(" \u6DFB\u52A0 ")])),_:1})):y("v-if",!0)]),content_action:r(n=>[p(c)("4")&&Object.keys(n).length!==0&&b(n.year,n.month)?(m(),d(T,{key:0,content:"\u7F16\u8F91",placement:"top"},{default:r(()=>[f(B,{link:"",size:"small",type:"primary",icon:p(j)("edits"),onClick:L=>D(n)},null,8,["icon","onClick"])]),_:2},1024)):y("v-if",!0)]),_:1},8,["search-config","get-content-ref","content-config"])):y("v-if",!0),f(H,{ref_key:"demandModifyModal",ref:a,onRefresh:e[1]||(e[1]=n=>l.value.onSearch())},null,512),f(N,{ref:"execModalRef"},null,512)]),_:1})}}});var Z=A(q,[["__file","C:/Users/Administrator/Desktop/projects/report-v3/src/views/tipsSetting/companyTotalTips/index.vue"]]);export{Z as default};
|