business.18371267.js 1.7 KB

1
  1. import{_ as k,d as y,m as p,cl as R,cp as w,cs 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.56449854.js";import{s as P,c as F,a as D}from"./content.config.a3d0c92f.js";import{h as I}from"./export.a2ce61c0.js";import{u as E}from"./use-page-search.59eb5443.js";import{u as V,a as q}from"./useBusinessQuery.7bd11851.js";import"./createRequset.56e9fc42.js";import"./xlsx.ed122d16.js";import"./lodash.0da4bba2.js";const H="unshipped",L=y({__name:"business",setup(T){const c=p(null),s=R(!1),{hasPermissionWithCode:g}=w(H),i=B(),{searchConfig:t}=V({sourceConfig:P,queryField:"companyNo"}),u=p(t),{contentConfig:C}=q({sourceConfig:F,apis:{httpList:D.list}}),_={pageSearchHook:()=>E(void 0,void 0,t)};N(()=>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:"\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=>c.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(L,[["__file","C:/Users/89793/Desktop/projects/report-v3/src/views/time/unshipped/components/business.vue"]]);export{J as default};