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