business.d9a58dde.js 1.7 KB

1
  1. import{_ as k,d as w,m as p,cl as y,cp as S,cs as B,w as P,r as m,o as f,A as d,x as C,u as o,D as R,H as b,a as F}from"./index.56449854.js";import{s as N,c as D,a as A}from"./content.config.0ba7a04f.js";import{h as I}from"./export.a2ce61c0.js";import{u as U}from"./use-page-search.59eb5443.js";import{u as E,a as V}from"./useBusinessQuery.7bd11851.js";import"./createRequset.56e9fc42.js";import"./xlsx.ed122d16.js";import"./lodash.0da4bba2.js";const q="waitProcureStockUp",H=w({__name:"business",setup(L){const c=p(null),s=y(!1),{hasPermissionWithCode:g}=S(q),i=B(),{searchConfig:t}=E({sourceConfig:N,queryField:"companyNo"}),u=p(t),{contentConfig:_}=V({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=m("el-button"),a=m("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/89793/Desktop/projects/report-v3/src/views/time/waitProcureStockUp/components/business.vue"]]);export{M as default};