business.0e5d0845.js 1.7 KB

1
  1. import{_ as k,d as w,m,cl as y,cT as S,d0 as B,w as P,r as p,o as f,A as d,x as C,u as o,D as R,H as b,a as F}from"./index.5825373a.js";import{s as N,c as D,a as A}from"./content.config.8593b62c.js";import{h as I}from"./export.77430aa8.js";import{u as U}from"./use-page-search.61a9d9c5.js";import{u as E,a as T}from"./useBusinessQuery.93b595ef.js";import"./createRequset.bcc048cf.js";import"./xlsx.ed122d16.js";import"./lodash.d072a1f6.js";const V="waitProcureStockUp",q=w({__name:"business",setup(H){const c=m(null),s=y(!1),{hasPermissionWithCode:g}=S(V),i=B(),{searchConfig:t}=E({sourceConfig:N,queryField:"companyNo"}),u=m(t),{contentConfig:_}=T({sourceConfig:D,apis:{httpList:A.list}}),h={pageSearchHook:()=>U(void 0,void 0,t)};P(()=>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:"\u5F85\u91C7\u8D2D\u5907\u8D27.xlsx",fileType:"aplication/x-msexecl",url:"/purchease/sale/orderBkListExport",...v,params:e})}return(e,l)=>{const n=p("el-button"),a=p("PageContainer");return f(),d(a,{hooks:h,getContentRef:r=>c.value=r,"content-config":o(_),"search-config":o(t),lockKey:"companyNo"},{content_header:C(()=>[o(g)("18")?(f(),d(n,{key:0,icon:o(R)("arrow-up-line"),onClick:x,size:"small",type:"primary"},{default:C(()=>[b("\u5BFC\u51FA")]),_:1},8,["icon"])):F("v-if",!0)]),_:1},8,["getContentRef","content-config","search-config"])}}});var M=k(q,[["__file","C:/Users/63107/Desktop/projects/report-v3/src/views/time/waitProcureStockUp/components/business.vue"]]);export{M as default};