all.aa9622a4.js 1.7 KB

1
  1. import{_ as k,d as y,cp as w,m as d,cl as b,cs as A,w as S,r as c,o as _,A as h,x as i,h as B,u as n,D as N,H as T,a as D}from"./index.56449854.js";import{s as l,c as F}from"./content.config.5b6261b7.js";import{u as I}from"./use-page-search.59eb5443.js";import{i as P}from"./isBeyondTime.b16fe52f.js";import{h as V}from"./export.a2ce61c0.js";import"./createRequset.56e9fc42.js";import"./xlsx.ed122d16.js";const u="saleReturnList",E=y({__name:"all",setup(L){const{hasPermissionWithCode:g}=w(u),m=d(null),s=b(!1),p=A(),f=d(l),v={pageSearchHook:()=>I(void 0,void 0,l)},x={onSuccess:()=>s.value=!1,onStart:()=>s.value=!0,onFail:()=>s.value=!1};S(()=>p.level,e=>{const{formItems:o}=f.value,t=o.findIndex(({field:r})=>r==="depart_id"),{itemid:a=""}=p.info||{};Number(e)===2&&(f.value.formItems[t].defaultValue=a)},{immediate:!0});async function C(){const e=m.value.getBasicParams()||{},{start:o,end:t}=e;P({start:o,end:t,len:30})||await V({params:e,...x,isAdmin:!1,name:"\u9000\u8D27\u6D41\u6C34\u62A5\u8868.xlsx",fileType:"aplication/x-msexecl",url:"/purchease/purchase/saleReturnListExport"})}return(e,o)=>{const t=c("el-button"),a=c("page-container"),r=c("page-auth");return _(),h(r,{"page-name":u},{default:i(()=>[B(a,{hooks:v,"page-name":u,"get-content-ref":R=>m.value=R,"content-config":n(F),"search-config":n(l)},{content_header:i(()=>[n(g)("9")?(_(),h(t,{key:0,onClick:C,size:"small",icon:n(N)("arrow-up-line"),type:"primary"},{default:i(()=>[T("\u5BFC\u51FA")]),_:1},8,["icon"])):D("v-if",!0)]),_:1},8,["get-content-ref","content-config","search-config"])]),_:1})}}});var J=k(E,[["__file","C:/Users/89793/Desktop/projects/report-v3/src/views/time/saleReturnList/components/all.vue"]]);export{J as default};