1 |
- import{_ as k,d as A,cp as w,m as d,cl as b,cs as B,w as D,r as c,o as _,A as h,x as i,h as R,u as n,D as S,H as E,a as F}from"./index.56449854.js";import{s as u,c as N}from"./content.config.3f672965.js";import{u as T}from"./use-page-search.59eb5443.js";import{i as I}from"./isBeyondTime.b16fe52f.js";import{h as P}from"./export.a2ce61c0.js";import"./createRequset.56e9fc42.js";import"./xlsx.ed122d16.js";const l="orderOutMonth",V=A({__name:"all",setup(M){const{hasPermissionWithCode:g}=w(l),m=d(null),s=b(!1),p=B(),f=d(u),v={pageSearchHook:()=>T(void 0,void 0,u)},x={onSuccess:()=>s.value=!1,onStart:()=>s.value=!0,onFail:()=>s.value=!1};D(()=>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_day:t,end_day:o}=e;I({start:t,end:o,len:30})||await P({params:e,...x,isAdmin:!1,name:"\u91C7\u8D2D\u8BA2\u5355\u53D1\u8D27\u7EF4\u5EA6\u8868.xlsx",fileType:"aplication/x-msexecl",url:"/purchease/sale/orderOutMotAddrExport"})}return(e,t)=>{const o=c("el-button"),a=c("page-container"),r=c("page-auth");return _(),h(r,{"page-name":l},{default:i(()=>[R(a,{hooks:v,"page-name":l,"get-content-ref":y=>m.value=y,"content-config":n(N),"search-config":n(u)},{content_header:i(()=>[n(g)("9")?(_(),h(o,{key:0,onClick:C,size:"small",icon:n(S)("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=k(V,[["__file","C:/Users/89793/Desktop/projects/report-v3/src/views/time/orderOutMonth/components/all.vue"]]);export{G as default};
|