index.65f4580e.js 2.7 KB

1
  1. import{S as k,_ as D,d as M,m as d,cp as w,r as n,o as m,A as f,x as a,h as u,u as i,H as N,a as y,D as T}from"./index.56449854.js";import{a as W,D as A}from"./demand-modify-modal.bf1d74b7.js";import{u as R}from"./use-page-search.59eb5443.js";import"./index.8797d878.js";import"./createRequset.56e9fc42.js";import"./calc.f00124e1.js";const P=k(new Date).format("YYYY-MM"),_={defaultMode:"month",formItems:[{field:"date",type:"date_composition",trigger:"change",defaultValue:P},{field:"companyNo",type:"business-query",trigger:"change",noRest:!0},{field:"depart_id",type:"depart-query",trigger:"change"}]},S=[{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"},{prop:"cost_tips",label:"\u6BDB\u5229\u76EE\u6807",width:"100px"},{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"}],V={columns:S,showTitle:!1,superUserNoAction:!1,apis:{httpList:(g={})=>{const{date:e,...t}=g;if(e&&e.length===7){const[r,c]=e.split("-");t.year=r,t.month=c}return e&&e.length===4&&(t.year=e),W.list(t)}}},h="departmentTotalTips",Y=M({__name:"index",setup(g){d(_);const e=d(null),t=d(null),{hasPermissionWithCode:r}=w(h),c={pageSearchHook:()=>R(void 0,void 0,_)};function x(s){var o;(o=e.value)==null||o.onDisplay(s)}function E(){var p;const{companyNo:s,depart_id:o}=t.value.getBasicParams();(p=e.value)==null||p.onDisplay({companyNo:s,depart_id:o})}return(s,o)=>{const p=n("el-button"),v=n("ElButton"),C=n("ElTooltip"),b=n("page-container"),F=n("ExecModal"),B=n("page-auth");return m(),f(B,{"page-name":h},{default:a(()=>[u(b,{hooks:c,"page-name":h,"search-config":i(_),"get-content-ref":l=>t.value=l,"content-config":i(V)},{content_header:a(()=>[i(r)("2")?(m(),f(p,{key:0,size:"small",type:"primary",onClick:E},{default:a(()=>[N(" \u6DFB\u52A0 ")]),_:1})):y("v-if",!0)]),content_action:a(l=>[i(r)("4")?(m(),f(C,{key:0,content:"\u7F16\u8F91",placement:"top"},{default:a(()=>[u(v,{link:"",size:"small",type:"primary",icon:i(T)("edits"),onClick:U=>x(l)},null,8,["icon","onClick"])]),_:2},1024)):y("v-if",!0)]),_:1},8,["search-config","get-content-ref","content-config"]),u(A,{ref_key:"demandModifyModal",ref:e,onRefresh:o[0]||(o[0]=l=>t.value.onSearch())},null,512),u(F,{ref:"execModalRef"},null,512)]),_:1})}}});var L=D(Y,[["__file","C:/Users/89793/Desktop/projects/report-v3/src/views/subscribe/departmentTotalTips/index.vue"]]);export{L as default};