1 |
- import{_ as y,d as E,cT as w,m as d,cl as D,d0 as b,w as R,r as c,o as _,A as g,x as i,h as S,u as n,D as T,H as A,a as B}from"./index.2e9457cc.js";import{s as l,c as N}from"./content.config.d9bab52e.js";import{u as F}from"./use-page-search.ea0049a0.js";import{i as I}from"./isBeyondTime.2cbd0624.js";import{h as P}from"./export.a52061a5.js";import"./createRequset.3978c053.js";import"./xlsx.ed122d16.js";const m="orderDiff",V=E({__name:"all",setup(H){const{hasPermissionWithCode:h}=w(m),u=d(null),s=D(!1),f=b(),p=d(l),v={pageSearchHook:()=>F(void 0,void 0,l)},x={onSuccess:()=>s.value=!1,onStart:()=>s.value=!0,onFail:()=>s.value=!1};R(()=>f.level,e=>{const{formItems:t}=p.value,o=t.findIndex(({field:r})=>r==="depart_id"),{itemid:a=""}=f.info||{};Number(e)===2&&(p.value.formItems[o].defaultValue=a)},{immediate:!0});async function C(){const e=u.value.getBasicParams()||{},{start:t,end:o}=e;I({start:t,end:o,len:30})||await P({params:e,...x,isAdmin:!1,name:"\u5DE5\u5DEE\u660E\u7EC6\u5355.xlsx",fileType:"aplication/x-msexecl",url:"/purchease/sale/orderDiffListExport"})}return(e,t)=>{const o=c("el-button"),a=c("page-container"),r=c("page-auth");return _(),g(r,{"page-name":m},{default:i(()=>[S(a,{hooks:v,"page-name":m,"get-content-ref":k=>u.value=k,"content-config":n(N),"search-config":n(l)},{content_header:i(()=>[n(h)("9")?(_(),g(o,{key:0,onClick:C,size:"small",icon:n(T)("arrow-up-line"),type:"primary"},{default:i(()=>[A("\u5BFC\u51FA")]),_:1},8,["icon"])):B("v-if",!0)]),_:1},8,["get-content-ref","content-config","search-config"])]),_:1})}}});var J=y(V,[["__file","C:/Users/63107/Desktop/projects/report-v3/src/views/time/orderDiff/components/all.vue"]]);export{J as default};
|