all.a43f81df.js 1.7 KB

1
  1. import{_ as y,d as w,cT as A,m as d,cl as b,d0 as B,w as R,r as c,o as _,A as g,x as i,h as S,u as a,D as T,H as E,a as F}from"./index.2e9457cc.js";import{s as l,c as N}from"./content.config.e04a85b4.js";import{u as I}from"./use-page-search.ea0049a0.js";import{i as P}from"./isBeyondTime.2cbd0624.js";import{h as V}from"./export.a52061a5.js";import"./createRequset.3978c053.js";import"./xlsx.ed122d16.js";const u="goodOnlineList",L=w({__name:"all",setup(O){const{hasPermissionWithCode:h}=A(u),m=d(null),s=b(!1),p=B(),f=d(l),v={pageSearchHook:()=>I(void 0,void 0,l)},x={onSuccess:()=>s.value=!1,onStart:()=>s.value=!0,onFail:()=>s.value=!1};R(()=>p.level,e=>{const{formItems:t}=f.value,o=t.findIndex(({field:r})=>r==="depart_id"),{itemid:n=""}=p.info||{};Number(e)===2&&(f.value.formItems[o].defaultValue=n)},{immediate:!0});async function C(){const e=m.value.getBasicParams()||{},{start:t,end:o}=e;P({start:t,end:o,len:30})||await V({params:e,...x,isAdmin:!1,name:"\u5546\u54C1\u4E0A\u7EBF\u62A5\u8868.xlsx",fileType:"aplication/x-msexecl",url:"/purchease/purchase/goodOnlineListExport"})}return(e,t)=>{const o=c("el-button"),n=c("page-container"),r=c("page-auth");return _(),g(r,{"page-name":u},{default:i(()=>[S(n,{hooks:v,"page-name":u,"get-content-ref":k=>m.value=k,"content-config":a(N),"search-config":a(l)},{content_header:i(()=>[a(h)("9")?(_(),g(o,{key:0,onClick:C,size:"small",icon:a(T)("arrow-up-line"),type:"primary"},{default:i(()=>[E("\u5BFC\u51FA")]),_:1},8,["icon"])):F("v-if",!0)]),_:1},8,["get-content-ref","content-config","search-config"])]),_:1})}}});var G=y(L,[["__file","C:/Users/63107/Desktop/projects/report-v3/src/views/time/goodOfflineList/components/all.vue"]]);export{G as default};