1 |
- import{_ as y,d as k,m,cl as B,cp as b,cs as R,w,r as p,o as f,A as d,x as g,u as t,D as S,H as A,a as F}from"./index.56449854.js";import{s as N,c as P,a as E}from"./content.config.73bfd9da.js";import{h as T}from"./export.a2ce61c0.js";import{i as I}from"./isBeyondTime.b16fe52f.js";import{u as L}from"./use-page-search.59eb5443.js";import{u as O,a as V}from"./useBusinessQuery.7bd11851.js";import"./createRequset.56e9fc42.js";import"./xlsx.ed122d16.js";import"./lodash.0da4bba2.js";const q="goodOnlineList",D=k({__name:"business",setup(H){const c=m(null),a=B(!1),{hasPermissionWithCode:C}=b(q),u=R(),{searchConfig:i}=O({sourceConfig:N,queryField:"companyNo"}),l=m(i),{contentConfig:h}=V({sourceConfig:P,apis:{httpList:E.list}}),_={pageSearchHook:()=>L(void 0,void 0,i)};w(()=>u.level,e=>{const{formItems:s}=l.value,o=s.findIndex(({field:r})=>r==="depart_id"),{itemid:n=""}=u.info||{};Number(e)===2&&(l.value.formItems[o].defaultValue=n)},{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 T({isAdmin:!1,name:"\u5546\u54C1\u4E0A\u7EBF\u62A5\u8868.xlsx",fileType:"aplication/x-msexecl",url:"/purchease/purchase/goodOnlineListExport",...v,params:e})}return(e,s)=>{const o=p("el-button"),n=p("PageContainer");return f(),d(n,{hooks:_,getContentRef:r=>c.value=r,"content-config":t(h),"search-config":t(i),lockKey:"companyNo"},{content_header:g(()=>[t(C)("18")?(f(),d(o,{key:0,icon:t(S)("arrow-up-line"),onClick:x,size:"small",type:"primary"},{default:g(()=>[A("\u5BFC\u51FA")]),_:1},8,["icon"])):F("v-if",!0)]),_:1},8,["getContentRef","content-config","search-config"])}}});var Q=y(D,[["__file","C:/Users/89793/Desktop/projects/report-v3/src/views/time/goodOnlineList/components/business.vue"]]);export{Q as default};
|