index.a3d91f52.js 2.7 KB

1
  1. import{Q 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.b5c844d0.js";import{a as W,D as A}from"./demand-modify-modal.5de02b8a.js";import{u as R}from"./use-page-search.c59d5041.js";import"./index.2729e62e.js";import"./createRequset.6b7f85e0.js";import"./calc.0cdee66c.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"}]},V=[{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"}],Y={columns:V,showTitle:!1,superUserNoAction:!1,apis:{httpList:(g={})=>{const{date:e,...o}=g;if(e&&e.length===7){const[r,c]=e.split("-");o.year=r,o.month=c}return e&&e.length===4&&(o.year=e),W.list(o)}}},h="departmentTotalTips",j=M({__name:"index",setup(g){d(_);const e=d(null),o=d(null),{hasPermissionWithCode:r}=w(h),c={pageSearchHook:()=>R(void 0,void 0,_)};function x(s){var t;(t=e.value)==null||t.onDisplay(s)}function E(){var p;const{companyNo:s,depart_id:t}=o.value.getBasicParams();(p=e.value)==null||p.onDisplay({companyNo:s,depart_id:t})}return(s,t)=>{const p=n("el-button"),v=n("ElButton"),b=n("ElTooltip"),C=n("page-container"),F=n("ExecModal"),B=n("page-auth");return m(),f(B,{"page-name":h},{default:a(()=>[u(C,{hooks:c,"page-name":h,"search-config":i(_),"get-content-ref":l=>o.value=l,"content-config":i(Y)},{content_header:a(()=>[i(r)("2")?(m(),f(p,{key:0,size:"small",type:"primary",onClick:E},{default:a(()=>t[1]||(t[1]=[N(" \u6DFB\u52A0 ")])),_:1})):y("v-if",!0)]),content_action:a(l=>[i(r)("4")?(m(),f(b,{key:0,content:"\u7F16\u8F91",placement:"top"},{default:a(()=>[u(v,{link:"",size:"small",type:"primary",icon:i(T)("edits"),onClick:S=>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:t[0]||(t[0]=l=>o.value.onSearch())},null,512),u(F,{ref:"execModalRef"},null,512)]),_:1})}}});var L=D(j,[["__file","D:/work/sjtj/report-v3/src/views/subscribe/departmentTotalTips/index.vue"]]);export{L as default};