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