|
|
+import{_ as k,d as y,cp as w,m as d,cl as b,cs as R,w as S,r as c,o as _,A as g,x as i,h as B,u as n,D as F,H as N,a as T}from"./index.56449854.js";import{s as l,c as D}from"./content.config.dd41bc71.js";import{u as I}from"./use-page-search.59eb5443.js";import{i as P}from"./isBeyondTime.b16fe52f.js";import{h as V}from"./export.a2ce61c0.js";import"./status.3ccd5ebb.js";import"./createRequset.56e9fc42.js";import"./xlsx.ed122d16.js";const u="orderOutAddr",E=y({__name:"all",setup(O){const{hasPermissionWithCode:h}=w(u),m=d(null),s=b(!1),p=R(),f=d(l),v={pageSearchHook:()=>I(void 0,void 0,l)},x={onSuccess:()=>s.value=!1,onStart:()=>s.value=!0,onFail:()=>s.value=!1};S(()=>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;P({start:t,end:o,len:30})||await V({params:e,...x,isAdmin:!1,name:"\u76F4\u63A5\u53D1\u8D27\u5355.xlsx",fileType:"aplication/x-msexecl",url:"/purchease/sale/orderOutAddrExport"})}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":A=>m.value=A,"content-config":n(D),"search-config":n(l)},{content_header:i(()=>[n(h)("9")?(_(),g(o,{key:0,onClick:C,size:"small",icon:n(F)("arrow-up-line"),type:"primary"},{default:i(()=>[N("\u5BFC\u51FA")]),_:1},8,["icon"])):T("v-if",!0)]),_:1},8,["get-content-ref","content-config","search-config"])]),_:1})}}});var K=k(E,[["__file","C:/Users/89793/Desktop/projects/report-v3/src/views/time/orderOutAddr/components/all.vue"]]);export{K as default};
|