all.614f01c1.js 1.7 KB

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