1 |
- import{_ as y,d as A,cT as w,m as d,cl as F,d0 as b,w as R,r as c,o as _,A as g,x as i,h as S,u as n,D as T,H as B,a as D}from"./index.5825373a.js";import{s as l,c as N}from"./content.config.df5cc666.js";import{u as E}from"./use-page-search.61a9d9c5.js";import{i as I}from"./isBeyondTime.e711c536.js";import{h as P}from"./export.77430aa8.js";import"./status.3ccd5ebb.js";import"./createRequset.bcc048cf.js";import"./xlsx.ed122d16.js";const u="orderOutMotAddr",V=A({__name:"all",setup(M){const{hasPermissionWithCode:h}=w(u),m=d(null),s=F(!1),p=b(),f=d(l),v={pageSearchHook:()=>E(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:t,end:o}=e;I({start:t,end:o,len:30})||await P({params:e,...x,isAdmin:!1,name:"\u5EF6\u8FDF\u53D1\u8D27\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 _(),g(r,{"page-name":u},{default:i(()=>[S(a,{hooks:v,"page-name":u,"get-content-ref":k=>m.value=k,"content-config":n(N),"search-config":n(l)},{content_header:i(()=>[n(h)("9")?(_(),g(o,{key:0,onClick:C,size:"small",icon:n(T)("arrow-up-line"),type:"primary"},{default:i(()=>[B("\u5BFC\u51FA")]),_:1},8,["icon"])):D("v-if",!0)]),_:1},8,["get-content-ref","content-config","search-config"])]),_:1})}}});var J=y(V,[["__file","C:/Users/63107/Desktop/projects/report-v3/src/views/time/orderOutMotAddr/components/all.vue"]]);export{J as default};
|