all.7c2f9d79.js 1.6 KB

1
  1. import{_ as w,d as A,cp as N,m as d,cl as R,cs as S,w as y,r,o as _,A as h,x as c,h as b,u as o,D as B,H as D,a as F}from"./index.56449854.js";import{s as i,c as I}from"./content.config.a3d0c92f.js";import{u as P}from"./use-page-search.59eb5443.js";import{h as V}from"./export.a2ce61c0.js";import"./createRequset.56e9fc42.js";import"./xlsx.ed122d16.js";const l="unshipped",E=A({__name:"all",setup(H){const{hasPermissionWithCode:g}=N(l),u=d(null),t=R(!1),p=S(),m=d(i),v={pageSearchHook:()=>P(void 0,void 0,i)},x={onSuccess:()=>t.value=!1,onStart:()=>t.value=!0,onFail:()=>t.value=!1};y(()=>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 V({params:e,...x,isAdmin:!1,name:"\u672A\u53D1\u8D27\u62A5\u8868.xlsx",fileType:"aplication/x-msexecl",url:"/purchease/sale/orderNoOutListExport"})}return(e,f)=>{const a=r("el-button"),n=r("page-container"),s=r("page-auth");return _(),h(s,{"page-name":l},{default:c(()=>[b(n,{hooks:v,"page-name":l,"get-content-ref":k=>u.value=k,"content-config":o(I),"search-config":o(i)},{content_header:c(()=>[o(g)("9")?(_(),h(a,{key:0,onClick:C,size:"small",icon:o(B)("arrow-up-line"),type:"primary"},{default:c(()=>[D("\u5BFC\u51FA")]),_:1},8,["icon"])):F("v-if",!0)]),_:1},8,["get-content-ref","content-config","search-config"])]),_:1})}}});var O=w(E,[["__file","C:/Users/89793/Desktop/projects/report-v3/src/views/time/unshipped/components/all.vue"]]);export{O as default};