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