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