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