Files
Rasadyar_FrontEnd/build/assets/FilesState-B0IXfVV5.js

2 lines
108 KiB
JavaScript
Raw Permalink Normal View History

import{j as u,ak as ju,aZ as Ke,a$ as Oe,aV as Ee,aW as eu,T as p,p as Pe,B as c6,d as Au,I as $e,aL as Me,aM as Qe,aN as Ge,bl as Ye,bm as n6,b as ze}from"./mui-vendor-CkIVaoQP.js";import{a9 as ke,dT as Ue,G as y,W as yu,L as a6,j as gu,X as Cu,h as s6,p as G,v as M,l as Ve,dU as Xe,A as Fu,t as Je,S as z,k as Ze,dV as De,n as Te,dW as me}from"./index-Cr86_nOs.js";import{r as P}from"./react-vendor-CmFgShSM.js";import{u as h6,f as pu,a as ul}from"./redux-vendor-B7uoacJt.js";import{B as el,P as ll}from"./ProvinceCases-D012NTQf.js";import{R as tl,a as o6}from"./index.esm-Bu7XMDZU.js";import"./iconBase-BEJYyZsk.js";import"./ResponsiveTable-Dua7tTwQ.js";import"./FilterAlt-RwhTl5ac.js";import"./styled-components.browser.esm-gS9mh05b.js";const rl=()=>{const n=h6(),{provinceGetCaseStatus:a}=pu(e=>e.provinceSlice),[s,o]=P.useState(ke(new Date).format("YYYY-MM-DD")),l=e=>{o(e)};return P.useEffect(()=>{n(Ue(s))},[s]),u.jsxs(y,{container:!0,direction:"column",alignItems:"start",width:"1300px",overflowX:"scroll",style:{overflowX:"scroll"},children:[u.jsx(y,{children:u.jsx(yu,{label:"تاریخ",id:"date",renderInput:e=>u.jsx(ju,{...e}),value:s,onChange:e=>{l(ke(e).format("YYYY-MM-DD"))}})}),u.jsx(y,{children:u.jsx(y,{children:a==null?void 0:a.map((e,C)=>{var N,f,S,F,H,b,A,g,x,w,v,R,E,k,q,W,I,B,_;let i;((N=e==null?void 0:e.cityState)==null?void 0:N.state)==="pending"&&(i="#ff7410"),((f=e==null?void 0:e.cityState)==null?void 0:f.state)==="accept"&&(i="green"),((S=e==null?void 0:e.cityState)==null?void 0:S.state)==="reject"&&(i="red");let h;return((F=e==null?void 0:e.provinceState)==null?void 0:F.state)==="pending"&&(h="#ff7410"),((H=e==null?void 0:e.provinceState)==null?void 0:H.state)==="accept"&&(h="green"),((b=e==null?void 0:e.provinceState)==null?void 0:b.state)==="reject"&&(h="red"),u.jsx(Ke,{className:"my-table",style:{borderTop:"1px solid",marginTop:"10px"},children:u.jsx(Oe,{children:u.jsxs(Ee,{sx:{"&:last-child td, &:last-child th":{border:0}},children:[u.jsxs(eu,{component:"th",scope:"row",className:"no-border-flex-table",children:[u.jsx(y,{style:{marginBottom:"2px"},children:u.jsx(p,{variant:"button",textAlign:"center",style:{borderBottom:"1px solid gray",paddingBottom:"2px"},children:"مرغدار"})}),u.jsxs(y,{container:!0,direction:"column",children:[u.jsxs(p,{variant:"caption",children:[(A=e==null?void 0:e.poultry)==null?void 0:A.poultryName," (",(g=e==null?void 0:e.poultry)==null?void 0:g.userFullname,")"]}),u.jsxs(p,{variant:"caption",children:["تلفن: ",(x=e==null?void 0:e.poultry)==null?void 0:x.userMobile]}),u.jsxs(p,{variant:"caption",children:[(w=e==null?void 0:e.poultry)==null?void 0:w.poultryRequestQuantity.toLocaleString()," ","قطعه"]}),u.jsxs(p,{variant:"caption",color:"blue",children:["دامپزشک فارم: ",(v=e==null?void 0:e.poultry)==null?void 0:v.vetFarmName]}),u.jsxs(p,{variant:"caption",color:"blue",children:["تلفن دامپزشک: ",(R=e==null?void 0:e.poultry)==null?void 0:R.vetFarmMobile]})]})]}),u.jsxs(eu,{component:"th",scope:"row",className:"no-border-flex-table",children:[u.jsx(y,{style:{marginBottom:"2px"},children:u.jsx(p,{variant:"button",textAlign:"center",style:{borderBottom:"1px solid gray",paddingBottom:"2px"},children:"شهرستان"})}),u.jsxs(y,{container:!0,direction:"column",children:[u.jsxs(p,{variant:"caption",color:i,children:[(E=e==null?void 0:e.cityState)==null?void 0:E.operatorCity," (",(k=e==null?void 0:e.cityState)==null?void 0:k.operatorName,")"]}),u.jsxs(p,{variant:"caption",color:i,children:["تلفن: ",(q=e==null?void 0:e.cityState)==null?void 0:q.operatorMobile]})]})]}),u.jsxs(eu,{component:"th",scope:"row",className:"no-border-flex-table",children:[u.jsx(y,{style:{marginBottom:"2px"},children:u.jsx(p,{variant:"button",textAlign:"center",style:{borderBottom:"1px solid gray",paddingBottom:"2px"},children:"استان"})}),u.jsxs(y,{container:!0,direction:"column",children:[u.jsxs(p,{variant:"caption",color:h,children:[(W=e==null?void 0:e.provinceState)==null?void 0:W.provinceOperatorProvinc," (",(I=e==null?void 0:e.provinceState)==null?void 0:I.provinceO