1 |
- import{_ as y,d as k,m as l,cl as b,cp as B,cs as F,w as R,r as p,o as f,A as d,x as g,u as n,D as w,H as A,a as S}from"./index.56449854.js";import{s as N,c as P,a as D}from"./content.config.255531e1.js";import{h as T}from"./export.a2ce61c0.js";import{i as E}from"./isBeyondTime.b16fe52f.js";import{u as I}from"./use-page-search.59eb5443.js";import{u as M,a as O}from"./useBusinessQuery.7bd11851.js";import"./status.3ccd5ebb.js";import"./createRequset.56e9fc42.js";import"./xlsx.ed122d16.js";import"./lodash.0da4bba2.js";const V="orderOutMotAddr",q=k({__name:"business",setup(H){const c=l(null),a=b(!1),{hasPermissionWithCode:C}=B(V),u=F(),{searchConfig:r}=M({sourceConfig:N,queryField:"companyNo"}),m=l(r),{contentConfig:_}=O({sourceConfig:P,apis:{httpList:D.list}}),h={pageSearchHook:()=>I(void 0,void 0,r)};R(()=>u.level,e=>{const{formItems:t}=m.value,o=t.findIndex(({field:i})=>i==="depart_id"),{itemid:s=""}=u.info||{};Number(e)===2&&(m.value.formItems[o].defaultValue=s)},{immediate:!0});const v={onSuccess:()=>a.value=!1,onStart:()=>a.value=!0,onFail:()=>a.value=!1};async function x(){const e=c.value.getBasicParams()||{},{start:t,end:o}=e;E({start:t,end:o,len:30})||await T({isAdmin:!1,name:"\u5EF6\u8FDF\u53D1\u8D27\u8868.xlsx",fileType:"aplication/x-msexecl",url:"/purchease/sale/orderOutMotAddrExport",...v,params:e})}return(e,t)=>{const o=p("el-button"),s=p("PageContainer");return f(),d(s,{hooks:h,getContentRef:i=>c.value=i,"content-config":n(_),"search-config":n(r),lockKey:"companyNo"},{content_header:g(()=>[n(C)("18")?(f(),d(o,{key:0,icon:n(w)("arrow-up-line"),onClick:x,size:"small",type:"primary"},{default:g(()=>[A("\u5BFC\u51FA")]),_:1},8,["icon"])):S("v-if",!0)]),_:1},8,["getContentRef","content-config","search-config"])}}});var X=y(q,[["__file","C:/Users/89793/Desktop/projects/report-v3/src/views/time/orderOutMotAddr/components/business.vue"]]);export{X as default};
|