1 |
- import{_ as y,d as k,m as l,cl as b,cT as A,d0 as B,w as R,r as f,o as p,A as d,x as g,u as n,D as w,H as S,a as F}from"./index.5825373a.js";import{s as N,c as P,a as T}from"./content.config.227309b3.js";import{h as D}from"./export.77430aa8.js";import{i as I}from"./isBeyondTime.e711c536.js";import{u as E}from"./use-page-search.61a9d9c5.js";import{u as O,a as V}from"./useBusinessQuery.93b595ef.js";import"./status.3ccd5ebb.js";import"./createRequset.bcc048cf.js";import"./xlsx.ed122d16.js";import"./lodash.d072a1f6.js";const q="orderOutAddr",H=k({__name:"business",setup(U){const c=l(null),a=b(!1),{hasPermissionWithCode:C}=A(q),u=B(),{searchConfig:r}=O({sourceConfig:N,queryField:"companyNo"}),m=l(r),{contentConfig:_}=V({sourceConfig:P,apis:{httpList:T.list}}),h={pageSearchHook:()=>E(void 0,void 0,r)};R(()=>u.level,e=>{const{formItems:s}=m.value,o=s.findIndex(({field:i})=>i==="depart_id"),{itemid:t=""}=u.info||{};Number(e)===2&&(m.value.formItems[o].defaultValue=t)},{immediate:!0});const v={onSuccess:()=>a.value=!1,onStart:()=>a.value=!0,onFail:()=>a.value=!1};async function x(){const e=c.value.getBasicParams()||{},{start:s,end:o}=e;I({start:s,end:o,len:30})||await D({isAdmin:!1,name:"\u76F4\u63A5\u53D1\u8D27\u5355.xlsx",fileType:"aplication/x-msexecl",url:"/purchease/sale/orderOutAddrExport",...v,params:e})}return(e,s)=>{const o=f("el-button"),t=f("PageContainer");return p(),d(t,{hooks:h,getContentRef:i=>c.value=i,"content-config":n(_),"search-config":n(r),lockKey:"companyNo"},{content_header:g(()=>[n(C)("18")?(p(),d(o,{key:0,icon:n(w)("arrow-up-line"),onClick:x,size:"small",type:"primary"},{default:g(()=>[S("\u5BFC\u51FA")]),_:1},8,["icon"])):F("v-if",!0)]),_:1},8,["getContentRef","content-config","search-config"])}}});var X=y(H,[["__file","C:/Users/63107/Desktop/projects/report-v3/src/views/time/orderOutAddr/components/business.vue"]]);export{X as default};
|