index.5f6a4771.js 3.4 KB

1
  1. import{Z as A,cr as D,_ as y,d as k,m,cp as w,r,o as f,A as E,x as l,h as i,u as o,D as F,H as _,a as P}from"./index.56449854.js";import{a as R,E as W}from"./index.45d4cf60.js";import{u as T}from"./use-page-search.59eb5443.js";import{u as p,w as S}from"./xlsx.ed122d16.js";import"./execl-upload.e8758d17.js";import"./calc.f00124e1.js";import"./createRequset.56e9fc42.js";const N={\u8D44\u91D1\u8BA4\u9886\u7F16\u53F7:"TRC2309281424116003","\u4FEE\u6539\u540E\u7684\u7CFB\u6570(%)":"24"},U=[{value:"1",label:"\u5BA2\u670D\u90E8@\u767E\u8FB0\u8363\u8FBE"},{value:"3",label:"\u9879\u76EE\u90E8@\u666E\u6DA6\u5FC3\u5802"},{value:"4",label:"\u9500\u552E\u90E8"}],h={formItems:[{field:"date",type:"date_picker",trigger:"change",otherOptions:{type:"daterange",startPlaceholder:"\u5F00\u59CB\u65F6\u95F4",endPlaceholder:"\u7ED3\u675F\u65F6\u95F4",valueFormat:"YYYY-MM-DD",startProp:"start",endProp:"end"}},{field:"depart_type",trigger:"change",type:"select",options:U}]},O=[{value:"1",label:"\u6570\u636E\u672A\u5165\u62A5\u8868"},{value:"2",label:"\u6570\u636E\u5DF2\u5165\u62A5\u8868"}],Y=[{value:"1",label:"\u5BA2\u670D\u90E8@\u767E\u8FB0\u8363\u8FBE"},{value:"2",label:"\u65B0\u5A92\u4F53"},{value:"3",label:"\u9879\u76EE\u90E8@\u666E\u6DA6\u5FC3\u5802"},{value:"4",label:"\u9500\u552E\u90E8"}],V=[{prop:"orderCode",label:"\u8D44\u91D1\u8BA4\u9886\u7F16\u53F7",minWidth:"155px"},{prop:"status",label:"\u72B6\u6001",minWidth:"155px",cellRenderer:({row:n})=>A(D,null,{default:()=>O.find(e=>e.value===String(n.status)).label})},{prop:"before",label:"\u63D0\u6210\u7CFB\u6570(\u4FEE\u6539\u524D)",minWidth:"155px"},{prop:"after",label:"\u63D0\u6210\u7CFB\u6570(\u4FEE\u6539\u540E)",minWidth:"155px"},{prop:"depart_type",label:"\u90E8\u95E8",minWidth:"155px",cellRenderer({row:n}){var e;return((e=Y.find(a=>a.value===String(n.depart_type)))==null?void 0:e.label)||"--"}},{prop:"apply_name",label:"\u521B\u5EFA\u4EBA",minWidth:"155px"},{prop:"depart_name",label:"\u521B\u5EFA\u4EBA\u6240\u5728\u90E8\u95E8",minWidth:"155px"},{prop:"addtime",label:"\u521B\u5EFA\u65F6\u95F4",minWidth:"155px"}],$={columns:V,responseCode:1,showTitle:!1,superUserNoAction:!1,apis:{httpList:R.list}},C="commissionCoefficient",j=k({__name:"index",setup(n){const e=m(null),a=m(null),{hasPermissionWithCode:g}=w(C),B={pageSearchHook:()=>T(u=>({result:{...u,change_type:1}}),u=>({result:{change_type:1}}),h)};function b(){const u=p.book_new(),t=p.json_to_sheet([N]);p.book_append_sheet(u,t,"sheet"),S(u,"\u63D0\u6210\u7CFB\u6570\u4FEE\u6539\u6A21\u677F.xlsx",{bookType:"xlsx"})}return(u,t)=>{const c=r("el-button"),x=r("PageContainer"),v=r("PageAuth");return f(),E(v,{pageName:C,class:"commissionCoefficient"},{default:l(()=>[i(x,{hooks:B,getContentRef:s=>e.value=s,"content-config":o($),"search-config":o(h)},{content_header:l(()=>[o(g)("23")?(f(),E(c,{key:0,type:"primary",icon:o(F)("arrow-up-line"),onClick:t[0]||(t[0]=s=>{var d;return(d=a.value)==null?void 0:d.onDisplay()}),size:"small"},{default:l(()=>[_("\u5BFC\u5165")]),_:1},8,["icon"])):P("v-if",!0),i(c,{icon:o(F)("arrow-down-line"),onClick:b,size:"small"},{default:l(()=>[_("\u4E0B\u8F7D\u5BFC\u5165\u6A21\u677F")]),_:1},8,["icon"])]),_:1},8,["getContentRef","content-config","search-config"]),i(W,{ref_key:"excelFileUploadRef",ref:a,onRefresh:t[1]||(t[1]=s=>e.value.onSearch())},null,512)]),_:1})}}});var G=y(j,[["__file","C:/Users/89793/Desktop/projects/report-v3/src/views/update/commissionCoefficient/index.vue"]]);export{G as default};