business.ab1f9a5a.js 1.7 KB

1
  1. import{_ as k,d as y,m,cl as B,cU as R,d1 as S,w,r as f,o as p,A as d,x as g,u as o,D as N,H as b,a as A}from"./index.62ae038d.js";import{s as P,c as F,a as E}from"./content.config.ef6e2643.js";import{h as I}from"./export.100da817.js";import{u as U}from"./use-page-search.490f9727.js";import{u as V,a as q}from"./useBusinessQuery.7142a93c.js";import"./createRequset.2509add7.js";import"./xlsx.ed122d16.js";import"./lodash.586958d1.js";const D="unsigned",H=y({__name:"business",setup(L){const i=m(null),s=B(!1),{hasPermissionWithCode:C}=R(D),c=S(),{searchConfig:n}=V({sourceConfig:P,queryField:"companyNo"}),u=m(n),{contentConfig:_}=q({sourceConfig:F,apis:{httpList:E.list}}),h={pageSearchHook:()=>U(void 0,void 0,n)};w(()=>c.level,e=>{const{formItems:l}=u.value,t=l.findIndex(({field:r})=>r==="depart_id"),{itemid:a=""}=c.info||{};Number(e)===2&&(u.value.formItems[t].defaultValue=a)},{immediate:!0});const v={onSuccess:()=>s.value=!1,onStart:()=>s.value=!0,onFail:()=>s.value=!1};async function x(){const e=i.value.getBasicParams()||{};await I({isAdmin:!1,name:"\u672A\u7B7E\u6536\u62A5\u8868.xlsx",fileType:"aplication/x-msexecl",url:"/purchease/sale/saleNoSignListExport",...v,params:e})}return(e,l)=>{const t=f("el-button"),a=f("PageContainer");return p(),d(a,{hooks:h,getContentRef:r=>i.value=r,"content-config":o(_),"search-config":o(n),lockKey:"companyNo"},{content_header:g(()=>[o(C)("18")?(p(),d(t,{key:0,icon:o(N)("arrow-up-line"),onClick:x,size:"small",type:"primary"},{default:g(()=>[b("\u5BFC\u51FA")]),_:1},8,["icon"])):A("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/unsigned/components/business.vue"]]);export{M as default};