/
home
/
henzagold
/
apps
/
dist
/
assets
/
File Upload :
llllll
Current File: /home/henzagold/apps/dist/assets/index.89eea10d.js
import{d as b,r,W as w,j as _,D as h,A as T,aC as k,b as I,e as a,f as o,I as E,i as m,u as i,o as F}from"./index.e259504b.js";import{a as D}from"./hesab.162fc4a1.js";import{u as M,T as R,t as A,a as S}from"./report.477d6ca9.js";import{_ as P}from"./spinner.8231a004.js";import{E as f,N as j}from"./useConfigInject.955381d9.js";import"./styleChecker.c6ab12e2.js";import"./index.971bf506.js";import"./button.d8ebbd4e.js";import"./classCallCheck.a16feb4f.js";import"./isEqual.b75ed7f3.js";import"./debounce.45c0f724.js";import"./vnode.b5795010.js";import"./index.a2bab9ef.js";import"./getScrollBarSize.d041c417.js";import"./shallowequal.fb7616ba.js";import"./pickAttrs.4c7698ba.js";import"./index.8e85848b.js";import"./Spin.7bd25a6f.js";import"./index.d1c02dcb.js";import"./responsiveObserve.266aea3e.js";import"./KeyCode.246a5a61.js";import"./Input.7d09e79b.js";import"./omit.337c01fe.js";import"./FormItemContext.00ae2761.js";import"./Overflow.23be8e0a.js";import"./isMobile.481c1aec.js";import"./useMemo.e383b74f.js";import"./useMergedState.d691e4e3.js";import"./DownOutlined.2d079982.js";import"./CheckOutlined.c6e3ddf2.js";import"./index.4f606c41.js";import"./index.8f6ca5a8.js";import"./TextArea.01f1ca78.js";import"./EyeOutlined.319b0dc3.js";import"./index.8ac4803d.js";import"./Checkbox.aec67ecb.js";import"./index.48a5080c.js";import"./index.bdfac5f0.js";import"./Group.9a92a292.js";import"./objectDestructuringEmpty.a8e7682a.js";const B={class:"report-page"},N={class:"bg-primary h-10 flex justify-between items-center px-4"},Y=a("div",{class:"text-white text-2xl"},"\u06AF\u0632\u0627\u0631\u0634",-1),$=a("div",null,null,-1),V={style:{"text-align":"center"}},q=a("p",null,"\u062F\u0627\u062F\u0647 \u0627\u06CC \u0648\u062C\u0648\u062F \u0646\u062F\u0627\u0631\u062F",-1),C=50,Dt=b({__name:"index",setup(z){const v=f.PRESENTED_IMAGE_SIMPLE,p=r([]),x=M(),n=r(1),c=r({}),s=r(!1),y=t=>({onClick:async e=>{x.currentReport=t,await h.push({name:"reportDetail"})}}),g=[{title:"\u0646\u0648\u0639",align:"center",width:100,dataIndex:"no",key:"no"},{title:"\u062A\u0627\u0631\u06CC\u062E",align:"center",width:100,dataIndex:"Tarikh",key:"Tarikh",customRender:({text:t,record:e,index:l})=>A(e.Tarikh,"jYYYY/jMM/jDD")},{title:"\u0641\u0627\u06A9\u062A\u0648\u0631",align:"center",width:100,dataIndex:"sh_factor",key:"sh_factor"},{title:"\u0645\u0627\u0646\u062F\u0647 \u0637\u0644\u0627\u06CC\u06CC",align:"center",width:100,dataIndex:"Tahesab_t",key:"Tahesab_t",customRender:({text:t,record:e,index:l})=>{var u;return(u=e.Tahesab_t)!=null?u:0},customCell:()=>({dir:"ltr"})},{title:"\u0645\u0627\u0646\u062F\u0647 \u0631\u06CC\u0627\u0644\u06CC",align:"center",width:100,dataIndex:"Tahesab_p",key:"Tahesab_p",customRender:({text:t,record:e,index:l})=>{var u;return e.Tahesab_p?S(e.Tahesab_p,!0,""):(u=e.Tahesab_p)!=null?u:0},customCell:()=>({dir:"ltr"})}];w(()=>{_.hasMCode()||h.push({name:"home"})});async function d(){try{if(!_.hasMCode())return;s.value=!0;const{data:t}=await D(n.value,C);c.value=t,p.value.push(...t.rows[0])}catch(t){console.log(t)}finally{s.value=!1}}return T(async()=>{await d(),k(document.querySelector(".ant-table-body"),async()=>{n.value<Math.ceil(c.value.count/C)&&(n.value++,await d())},{distance:30})}),(t,e)=>(F(),I("div",B,[a("div",N,[a("div",null,[o(E,{icon:"vuesax-linear:arrow-right-1",color:"#fff",size:"18",onClick:e[0]||(e[0]=l=>t.$router.push({name:"userPage::hasSubRoute"}))})]),Y,$]),o(i(j),{direction:"rtl"},{renderEmpty:m(()=>[a("div",V,[o(i(f),{image:i(v),description:""},null,8,["image"]),q])]),default:m(()=>[o(P,{spinning:s.value,indicator:!0,tip:"\u062F\u0631\u062D\u0627\u0644 \u062F\u0631\u06CC\u0627\u0641\u062A \u0627\u0637\u0644\u0627\u0639\u0627\u062A"},{default:m(()=>[o(i(R),{pagination:!1,columns:g,sticky:"","data-source":p.value,scroll:{y:"100vh"},customRow:y},null,8,["data-source"])]),_:1},8,["spinning"])]),_:1})]))}});export{Dt as default};
Copyright ©2k19 -
Hexid
|
Tex7ure