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