1 |
- import{Z as A,cr as y,_ as k,d as D,m,cp as w,r as s,o as E,A as f,x as l,h as p,u as o,D as F,H as h,a as P}from"./index.56449854.js";import{a as W,E as R}from"./index.c8d0101a.js";import{u as N}from"./use-page-search.59eb5443.js";import{u as i,w as S}from"./xlsx.ed122d16.js";import"./execl-upload.e8758d17.js";import"./createRequset.56e9fc42.js";const T={\u9500\u552E\u4E3B\u8BA2\u5355\u7F16\u53F7:"QR2311071358599975",\u4FEE\u6539\u540E\u6210\u672C:"100"},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"}],_={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",minWidth:"155px",label:"\u9500\u552E\u4E3B\u8BA2\u5355\u7F16\u53F7"},{prop:"goodNo",label:"\u5546\u54C1\u6210\u672C\u7F16\u53F7",minWidth:"155px"},{prop:"goodName",label:"\u5546\u54C1\u540D\u79F0",minWidth:"155px"},{prop:"status",label:"\u72B6\u6001",minWidth:"155px",cellRenderer:({row:a})=>A(y,null,{default:()=>O.find(e=>e.value===String(a.status)).label})},{prop:"before",label:"\u4FEE\u6539\u524D\u6210\u672C",minWidth:"155px"},{prop:"after",label:"\u4FEE\u6539\u540E\u6210\u672C",minWidth:"155px"},{label:"\u90E8\u95E8",prop:"depart_type",minWidth:"155px",cellRenderer({row:a}){var e;return((e=Y.find(n=>n.value===String(a.depart_type)))==null?void 0:e.label)||"--"}},{label:"\u521B\u5EFA\u4EBA",prop:"apply_name",minWidth:"155px"},{label:"\u521B\u5EFA\u4EBA\u6240\u5728\u90E8\u95E8",prop:"depart_name",minWidth:"155px"},{prop:"addtime",label:"\u521B\u5EFA\u65F6\u95F4",minWidth:"155px"}],$={columns:V,responseCode:1,showTitle:!1,superUserNoAction:!1,apis:{httpList:W.list}},C="correctedCost",j=D({__name:"index",setup(a){const e=m(null),n=m(null),{hasPermissionWithCode:g}=w(C),b={pageSearchHook:()=>N(t=>({result:{...t,change_type:3}}),()=>({result:{change_type:3}}),_)};function x(){const t=i.book_new(),u=i.json_to_sheet([T]);i.book_append_sheet(t,u,"sheet"),S(t,"\u8BA2\u5355\u5546\u54C1\u6210\u672C\u4FEE\u6539\u6A21\u677F.xlsx",{bookType:"xlsx"})}return(t,u)=>{const c=s("el-button"),B=s("PageContainer"),v=s("PageAuth");return E(),f(v,{pageName:C,class:"commissionCoefficient"},{default:l(()=>[p(B,{hooks:b,getContentRef:r=>e.value=r,"content-config":o($),"search-config":o(_)},{content_header:l(()=>[o(g)("23")?(E(),f(c,{key:0,type:"primary",icon:o(F)("arrow-up-line"),onClick:u[0]||(u[0]=r=>{var d;return(d=n.value)==null?void 0:d.onDisplay()}),size:"small"},{default:l(()=>[h(" \u5BFC\u5165 ")]),_:1},8,["icon"])):P("v-if",!0),p(c,{icon:o(F)("arrow-down-line"),onClick:x,size:"small"},{default:l(()=>[h(" \u4E0B\u8F7D\u5BFC\u5165\u6A21\u677F ")]),_:1},8,["icon"])]),_:1},8,["getContentRef","content-config","search-config"]),p(R,{ref_key:"excelFileUploadRef",ref:n,onRefresh:u[1]||(u[1]=r=>e.value.onSearch())},null,512)]),_:1})}}});var Z=k(j,[["__file","C:/Users/89793/Desktop/projects/report-v3/src/views/update/correctedCost/index.vue"]]);export{Z as default};
|