1 |
- import{Z as A,cm as D,_ as y,d as k,m,cT as w,r,o as E,A as f,x as l,h as i,u as o,D as F,H as _,a as P}from"./index.a6923b8e.js";import{a as R,E as W}from"./index.539b72bd.js";import{u as T}from"./use-page-search.4b169098.js";import{u as p,w as S}from"./xlsx.ed122d16.js";import"./execl-upload.63878ce4.js";import"./createRequset.548d50db.js";const N={\u56DE\u6B3E\u5173\u8054\u7F16\u53F7:"FQR8980980809","\u4FEE\u6539\u540E\u7684\u7CFB\u6570(%)":"24"},U=[{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"}],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:"\u56DE\u6B3E\u5173\u8054\u7F16\u53F7",minWidth:"155px"},{prop:"status",label:"\u72B6\u6001",minWidth:"155px",cellRenderer:({row:a})=>A(D,null,{default:()=>O.find(e=>e.value===String(a.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:a}){var e;return((e=Y.find(n=>n.value===String(a.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(a){const e=m(null),n=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"),v=r("PageContainer"),x=r("PageAuth");return E(),f(x,{pageName:C,class:"commissionCoefficient"},{default:l(()=>[i(v,{hooks:B,getContentRef:s=>e.value=s,"content-config":o($),"search-config":o(h)},{content_header:l(()=>[o(g)("23")?(E(),f(c,{key:0,type:"primary",icon:o(F)("arrow-up-line"),onClick:t[0]||(t[0]=s=>{var d;return(d=n.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:n,onRefresh:t[1]||(t[1]=s=>e.value.onSearch())},null,512)]),_:1})}}});var Z=y(j,[["__file","C:/Users/63107/Desktop/projects/report-v3/src/views/update/commissionCoefficient/index.vue"]]);export{Z as default};
|