all.7fc1d84c.js 1.6 KB

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