1 |
- import{_ as k,d as y,m,cl as A,cT as B,d0 as R,w,r as f,o as p,A as d,x as g,u as o,D as N,H as S,a as b}from"./index.a6923b8e.js";import{s as P,c as F,a as E}from"./search.config.9705d73f.js";import{h as I}from"./export.2c32a1f4.js";import{u as T}from"./use-page-search.4b169098.js";import{u as V,a as q}from"./useBusinessQuery.5ed122bf.js";import"./createRequset.548d50db.js";import"./xlsx.ed122d16.js";import"./lodash.d4f119ac.js";const D="noAddressOrder",H=y({__name:"business",setup(L){const c=m(null),s=A(!1),{hasPermissionWithCode:C}=B(D),i=R(),{searchConfig:t}=V({sourceConfig:P,queryField:"companyNo"}),u=m(t),{contentConfig:_}=q({sourceConfig:F,apis:{httpList:E.list}}),h={pageSearchHook:()=>T(void 0,void 0,t)};w(()=>i.level,e=>{const{formItems:l}=u.value,n=l.findIndex(({field:r})=>r==="depart_id"),{itemid:a=""}=i.info||{};Number(e)===2&&(u.value.formItems[n].defaultValue=a)},{immediate:!0});const v={onSuccess:()=>s.value=!1,onStart:()=>s.value=!0,onFail:()=>s.value=!1};async function x(){const e=c.value.getBasicParams()||{};await I({isAdmin:!1,name:"\u65E0\u5730\u5740\u8BA2\u5355.xlsx",fileType:"aplication/x-msexecl",url:"/purchease/sale/saleNoAddrListExport",...v,params:e})}return(e,l)=>{const n=f("el-button"),a=f("PageContainer");return p(),d(a,{hooks:h,getContentRef:r=>c.value=r,"content-config":o(_),"search-config":o(t),lockKey:"companyNo"},{content_header:g(()=>[o(C)("18")?(p(),d(n,{key:0,icon:o(N)("arrow-up-line"),onClick:x,size:"small",type:"primary"},{default:g(()=>[S("\u5BFC\u51FA")]),_:1},8,["icon"])):b("v-if",!0)]),_:1},8,["getContentRef","content-config","search-config"])}}});var J=k(H,[["__file","C:/Users/63107/Desktop/projects/report-v3/src/views/time/noAddressOrder/components/business.vue"]]);export{J as default};
|