index.041345ce.js 3.0 KB

1
  1. import{_ as N,d as A,m as c,cp as V,w as R,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 h,D as P,b as U}from"./index.56449854.js";import{b as v}from"./calc.f00124e1.js";import{a as y,D as z}from"./demand-modify-modal.0b7f4feb.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"},{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:"\u5F00\u7968\u6307\u6807",width:"100px",cellRenderer({row:e}){return _?v(e.inv_tips):e.inv_tips}},{prop:"cost_tips",label:"\u5229\u6DA6\u6307\u6807",width:"100px",cellRenderer({row:e}){return _?v(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:y.delete,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)}}}),$=U("span",{class:"mr-[5px]",style:{"font-weight":"700"}},"\u663E\u793A\u5355\u4F4D:",-1),g="invCompanyTotalTips",j=A({__name:"index",setup(_){const e=c(!0),t=c(!0),n=c(null),i=c(null),{hasPermissionWithCode:p}=V(g),C={pageSearchHook:()=>H(void 0,void 0,x)};function k(u){var o;(o=n.value)==null||o.onDisplay(u)}function E(){var o;const{companyNo:u}=i.value.getBasicParams();(o=n.value)==null||o.onDisplay({companyNo:u})}return R(()=>e.value,()=>{t.value=!1,S(()=>t.value=!0)}),(u,o)=>{const b=a("ElSwitch"),D=a("el-button"),F=a("ElButton"),T=a("ElTooltip"),B=a("page-container"),w=a("ExecModal"),M=a("page-auth");return m(),d(M,{"page-name":g},{default:l(()=>[t.value?(m(),d(B,{key:0,hooks:C,"page-name":g,"search-config":r(x),"get-content-ref":s=>i.value=s,"content-config":r(I)(e.value)},{content_header:l(()=>[$,f(b,{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(p)("2")?(m(),d(D,{key:0,size:"small",type:"primary",onClick:E},{default:l(()=>[W(" \u6DFB\u52A0 ")]),_:1})):h("v-if",!0)]),content_action:l(s=>[r(p)("4")?(m(),d(T,{key:0,content:"\u7F16\u8F91",placement:"top"},{default:l(()=>[f(F,{link:"",size:"small",type:"primary",icon:r(P)("edits"),onClick:q=>k(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(w,{ref:"execModalRef"},null,512)]),_:1})}}});var X=N(j,[["__file","C:/Users/89793/Desktop/projects/report-v3/src/views/tipsSetting/invCompanyTotalTips/index.vue"]]);export{X as default};