index.56fed72a.js 3.4 KB

1
  1. import{Z as C,cr as y,_ as k,d as D,m as E,cp as w,r,o as m,A as F,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.a8814309.js";import{u as T}from"./use-page-search.59eb5443.js";import{u as p,w as S}from"./xlsx.ed122d16.js";import"./createRequset.56e9fc42.js";import"./execl-upload.e8758d17.js";const N=[{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",type:"select",trigger:"change",options:N}]},U=[{value:"1",label:"\u6570\u636E\u672A\u5165\u62A5\u8868"},{value:"2",label:"\u6570\u636E\u5DF2\u5165\u62A5\u8868"}],O=[{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"}],Y=[{prop:"orderCode",label:"\u9500\u552E\u4E3B\u8BA2\u5355\u53F7",minWidth:"155px"},{prop:"status",label:"\u72B6\u6001",minWidth:"155px",cellRenderer:({row:a})=>C(y,null,{default:()=>U.find(e=>e.value===String(a.status)).label})},{prop:"before",label:"\u4E0B\u5355\u65F6\u95F4(\u4FEE\u6539\u524D)",minWidth:"155px"},{prop:"after",label:"\u4E0B\u5355\u65F6\u95F4(\u4FEE\u6539\u540E)",minWidth:"155px"},{prop:"depart_type",label:"\u90E8\u95E8",minWidth:"155px",cellRenderer({row:a}){var e;return((e=O.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"}],V={columns:Y,responseCode:1,showTitle:!1,superUserNoAction:!1,apis:{httpList:R.list}},$={\u9500\u552E\u4E3B\u8BA2\u5355\u7F16\u53F7:"QR2304121524061735",\u4FEE\u6539\u540E\u521B\u5EFA\u65F6\u95F4:"2023-10-30"},B="commissionCoefficient",j=D({__name:"index",setup(a){const e=E(null),n=E(null),{hasPermissionWithCode:g}=w(B),b={pageSearchHook:()=>T(u=>({result:{...u,change_type:2}}),u=>({result:{change_type:2}}),h)};function v(){const u=p.book_new(),t=p.json_to_sheet([$]);p.book_append_sheet(u,t,"sheet"),S(u,"\u8BA2\u5355\u4E0B\u5355\u65F6\u95F4\u4FEE\u6539\u6A21\u677F.xlsx",{bookType:"xlsx"})}return(u,t)=>{const c=r("el-button"),x=r("PageContainer"),A=r("PageAuth");return m(),F(A,{pageName:B,class:"commissionCoefficient"},{default:l(()=>[i(x,{hooks:b,getContentRef:s=>e.value=s,"content-config":o(V),"search-config":o(h)},{content_header:l(()=>[o(g)("23")?(m(),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:v,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=k(j,[["__file","C:/Users/89793/Desktop/projects/report-v3/src/views/update/correctedTime/index.vue"]]);export{Z as default};