business.4dec7963.js 1.7 KB

1
  1. import{_ as k,d as w,m,cl as y,cU as S,d1 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.62ae038d.js";import{s as N,c as D,a as U}from"./content.config.0bc45701.js";import{h as A}from"./export.100da817.js";import{u as I}from"./use-page-search.490f9727.js";import{u as E,a as V}from"./useBusinessQuery.7142a93c.js";import"./createRequset.2509add7.js";import"./xlsx.ed122d16.js";import"./lodash.586958d1.js";const q="waitProcureStockUp",H=w({__name:"business",setup(L){const c=m(null),s=y(!1),{hasPermissionWithCode:g}=S(q),i=B(),{searchConfig:t}=E({sourceConfig:N,queryField:"companyNo"}),u=m(t),{contentConfig:_}=V({sourceConfig:D,apis:{httpList:U.list}}),h={pageSearchHook:()=>I(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 A({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(H,[["__file","C:/Users/63107/Desktop/projects/report-v3/src/views/time/waitProcureStockUp/components/business.vue"]]);export{M as default};