1 |
- import{_ as y,d as R,m,cl as k,cp as b,cs as B,w,r as p,o as f,A as d,x as C,u as n,D as S,H as N,a as P}from"./index.56449854.js";import{s as A,c as F,a as T}from"./content.config.5b6261b7.js";import{h as D}from"./export.a2ce61c0.js";import{i as I}from"./isBeyondTime.b16fe52f.js";import{u as L}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="saleReturnList",H=R({__name:"business",setup(U){const c=m(null),a=k(!1),{hasPermissionWithCode:g}=b(q),u=B(),{searchConfig:r}=E({sourceConfig:A,queryField:"companyNo"}),l=m(r),{contentConfig:h}=V({sourceConfig:F,apis:{httpList:T.list}}),_={pageSearchHook:()=>L(void 0,void 0,r)};w(()=>u.level,e=>{const{formItems:o}=l.value,s=o.findIndex(({field:i})=>i==="depart_id"),{itemid:t=""}=u.info||{};Number(e)===2&&(l.value.formItems[s].defaultValue=t)},{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:o,end:s}=e;I({start:o,end:s,len:30})||await D({isAdmin:!1,name:"\u9000\u8D27\u6D41\u6C34\u62A5\u8868.xlsx",fileType:"aplication/x-msexcel",url:"/purchease/purchase/saleReturnListExport",...v,params:e})}return(e,o)=>{const s=p("el-button"),t=p("PageContainer");return f(),d(t,{hooks:_,getContentRef:i=>c.value=i,"content-config":n(h),"search-config":n(r),lockKey:"companyNo"},{content_header:C(()=>[n(g)("18")?(f(),d(s,{key:0,icon:n(S)("arrow-up-line"),onClick:x,size:"small",type:"primary"},{default:C(()=>[N("\u5BFC\u51FA")]),_:1},8,["icon"])):P("v-if",!0)]),_:1},8,["getContentRef","content-config","search-config"])}}});var Q=y(H,[["__file","C:/Users/89793/Desktop/projects/report-v3/src/views/time/saleReturnList/components/business.vue"]]);export{Q as default};
|