all.c2e279cb.js 1.7 KB

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