1 |
- import{_ as R,d as B,m as i,cl as b,cp as w,cs as F,w as L,r as p,o as g,c as N,h as d,x as h,u as t,A as S,D as E,H as P,a as A,F as T}from"./index.56449854.js";import{L as I,a as V}from"./LogModal.4f178774.js";import{h as D}from"./export.a2ce61c0.js";import{i as M}from"./isBeyondTime.b16fe52f.js";import{s as q,c as H}from"./content.config.f8e4daf7.js";import{u as U}from"./use-page-search.59eb5443.js";import{u as j,a as z}from"./useBusinessQuery.7bd11851.js";import"./createRequset.56e9fc42.js";import"./xlsx.ed122d16.js";import"./lodash.0da4bba2.js";const K="changeLog",W=B({__name:"business",setup($){const l=i(null),a=b(!1),{hasPermissionWithCode:C}=w(K),u=i(null),_={content:{preview:e=>u.value.onDisplay(e)}},m=F(),{searchConfig:r}=j({sourceConfig:q,queryField:"companyNo"}),f=i(r),{contentConfig:v}=z({sourceConfig:H,apis:{httpList:V.list}}),x={pageSearchHook:()=>U(void 0,void 0,r)};L(()=>m.level,e=>{const{formItems:s}=f.value,o=s.findIndex(({field:c})=>c==="depart_id"),{itemid:n=""}=m.info||{};Number(e)===2&&(f.value.formItems[o].defaultValue=n)},{immediate:!0});const y={onSuccess:()=>a.value=!1,onStart:()=>a.value=!0,onFail:()=>a.value=!1};async function k(){const e=l.value.getBasicParams()||{},{start:s,end:o}=e;M({start:s,end:o,len:30})||await D({isAdmin:!1,name:"\u5546\u54C1\u4FEE\u6539\u62A5\u8868.xlsx",fileType:"aplication/x-msexecl",url:"/purchease/purchase/changeLogListExport",...y,params:e})}return(e,s)=>{const o=p("el-button"),n=p("PageContainer");return g(),N(T,null,[d(n,{hooks:x,events:_,getContentRef:c=>l.value=c,"content-config":t(v),"search-config":t(r),lockKey:"companyNo"},{content_header:h(()=>[t(C)("18")?(g(),S(o,{key:0,icon:t(E)("arrow-up-line"),onClick:k,size:"small",type:"primary"},{default:h(()=>[P("\u5BFC\u51FA")]),_:1},8,["icon"])):A("v-if",!0)]),_:1},8,["getContentRef","content-config","search-config"]),d(I,{ref_key:"logModalRef",ref:u},null,512)],64)}}});var ne=R(W,[["__file","C:/Users/89793/Desktop/projects/report-v3/src/views/time/changeLog/components/business.vue"]]);export{ne as default};
|