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