business.a89e6f76.js 1.8 KB

1
  1. import{_ as y,d as k,m,cl as b,cU as B,d1 as E,w as R,r as l,o as p,A as d,x as C,u as n,D as w,H as D,a as S}from"./index.62ae038d.js";import{s as N,c as P,a as F}from"./content.config.b7f86301.js";import{h as T}from"./export.100da817.js";import{i as A}from"./isBeyondTime.739eee0f.js";import{u as I}from"./use-page-search.490f9727.js";import{u as U,a as V}from"./useBusinessQuery.7142a93c.js";import"./createRequset.2509add7.js";import"./xlsx.ed122d16.js";import"./lodash.586958d1.js";const q="orderDiff",H=k({__name:"business",setup(L){const c=m(null),a=b(!1),{hasPermissionWithCode:g}=B(q),u=E(),{searchConfig:r}=U({sourceConfig:N,queryField:"companyNo"}),f=m(r),{contentConfig:_}=V({sourceConfig:P,apis:{httpList:F.list}}),h={pageSearchHook:()=>I(void 0,void 0,r)};R(()=>u.level,e=>{const{formItems:s}=f.value,o=s.findIndex(({field:i})=>i==="depart_id"),{itemid:t=""}=u.info||{};Number(e)===2&&(f.value.formItems[o].defaultValue=t)},{immediate:!0});const v={onSuccess:()=>a.value=!1,onStart:()=>a.value=!0,onFail:()=>a.value=!1};async function x(){const e=c.value.getBasicParams()||{},{start:s,end:o}=e;A({start:s,end:o,len:30})||await T({isAdmin:!1,name:"\u5DE5\u5DEE\u660E\u7EC6\u5355.xlsx",fileType:"aplication/x-msexecl",url:"/purchease/sale/orderDiffListExport",...v,params:e})}return(e,s)=>{const o=l("el-button"),t=l("PageContainer");return p(),d(t,{hooks:h,getContentRef:i=>c.value=i,"content-config":n(_),"search-config":n(r),lockKey:"companyNo"},{content_header:C(()=>[n(g)("18")?(p(),d(o,{key:0,icon:n(w)("arrow-up-line"),onClick:x,size:"small",type:"primary"},{default:C(()=>[D(" \u5BFC\u51FA ")]),_:1},8,["icon"])):S("v-if",!0)]),_:1},8,["getContentRef","content-config","search-config"])}}});var Q=y(H,[["__file","C:/Users/63107/Desktop/projects/report-v3/src/views/time/orderDiff/components/business.vue"]]);export{Q as default};