2 lines
108 KiB
JavaScript
2 lines
108 KiB
JavaScript
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-CeyyVc1v.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-0uMkWb0x.js";import{R as tl,a as o6}from"./index.esm-Bu7XMDZU.js";import"./iconBase-BEJYyZsk.js";import"./ResponsiveTable-w7hk7Uq8.js";import"./FilterAlt-scT0HEUg.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.provinceOperatorName,")"]}),u.jsxs(p,{variant:"caption",color:h,children:["تلفن: ",(B=e==null?void 0:e.provinceState)==null?void 0:B.provinceOperatorMobile]})]})]}),u.jsx(eu,{component:"th",scope:"row",className:"loop-kill-request no-border-flex-table",children:(_=e==null?void 0:e.provinceKillRequests)==null?void 0:_.map((L,xu)=>{var lu,tu,ru,nu,su,cu;let Y;return(L==null?void 0:L.state)==="pending"&&(Y="#ff7410"),(L==null?void 0:L.state)==="accepted"&&(Y="green"),(L==null?void 0:L.state)==="rejected"&&(Y="red"),u.jsxs(Ee,{className:"row-kill-request",sx:{"&:last-child td, &:last-child th":{border:0}},children:[u.jsxs(eu,{component:"th",scope:"row",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.jsx(p,{variant:"caption",color:Y,children:L==null?void 0:L.buyerName}),u.jsxs(p,{variant:"caption",color:Y,children:[L==null?void 0:L.quantity," قطعه"]}),u.jsxs(p,{variant:"caption",color:Y,children:["تلفن: ",L==null?void 0:L.buyerMobile]})]})]}),u.jsxs(eu,{component:"th",scope:"row",children:[u.jsx(y,{style:{marginBottom:"2px"},children:u.jsx(p,{variant:"button",textAlign:"center",style:{borderBottom:"1px solid gray",paddingBottom:"2px"},children:"راننده"})}),(lu=L==null?void 0:L.killHouseRequests)==null?void 0:lu.map((c,Q)=>{let K="";return c!=null&&c.clearanceCode?K="green":K="red",u.jsx(y,{container:!0,direction:"column",style:{whiteSpace:"nowrap"},children:u.jsxs(p,{variant:"caption",color:K,children:[c==null?void 0:c.driverName," / تعداد"," ",c==null?void 0:c.quantity.toLocaleString()," / کدبهداشتی ",c==null?void 0:c.trafficCode," / کدترخیص"," ",c!=null&&c.clearanceCode?c==null?void 0:c.clearanceCode:"در انتظار"]})},Q)})]}),u.jsxs(eu,{component:"th",scope:"row",children:[u.jsx(y,{style:{marginBottom:"2px"},children:u.jsx(p,{variant:"button",textAlign:"center",style:{borderBottom:"1px solid gray",paddingBottom:"2px"},children:"دامپزشک کشتارگاه"})}),(tu=L==null?void 0:L.killHouseRequests)==null?void 0:tu.map((c,Q)=>{let K="";return(c==null?void 0:c.vetState)==="pending"?K="#ff7410":(c==null?void 0:c.vetState)==="accepted"?K="green":K="red",u.jsx(y,{container:!0,direction:"column",style:{whiteSpace:"nowrap"},children:u.jsxs(p,{variant:"caption",color:K,children:[c!=null&&c.killHouseVetName?c==null?void 0:c.killHouseVetName:"ندارد"," ","/"," ",c!=null&&c.killHouseVetMobile?c.killHouseVetMobile:"ندارد"]})},Q)})]}),u.jsxs(eu,{component:"th",scope:"row",children:[u.jsx(y,{style:{marginBottom:"2px"},children:u.jsx(p,{variant:"button",textAlign:"center",style:{borderBottom:"1px solid gray",paddingBottom:"2px"},children:"اطلاعات بار"})}),(nu=(ru=L==null?void 0:L.killHouseRequests)==null?void 0:ru.filter(c=>c.bar))==null?void 0:nu.map((c,Q)=>{var U,V,X,J,Z,D,T,m,uu,du,au,ou,hu;let K;return((U=c==null?void 0:c.bar)==null?void 0:U.state)==="pending"&&(K="#ff7410"),((V=c==null?void 0:c.bar)==null?void 0:V.state)==="accepted"&&(K="green"),((X=c==null?void 0:c.bar)==null?void 0:X.state)==="rejected"&&(K="red"),u.jsx(y,{container:!0,direction:"column",style:{whiteSpace:"nowrap"},children:u.jsx(p,{variant:"caption",color:K,children:u.jsxs(y,{container:!0,gap:1,style:{flexFlow:"nowrap"},children:[u.jsx("a",{href:(J=c==null?void 0:c.bar)==null?void 0:J.carWeightWithLoadImage,children:u.jsx("img",{src:(Z=c==null?void 0:c.bar)==null?void 0:Z.carWeightWithLoadImage,width:"20",height:"20",alt:"",style:{borderRadius:"4px"}})}),"وزن با بار:"," ",(T=(D=c==null?void 0:c.bar)==null?void 0:D.carWeightWithLoad)==null?void 0:T.toLocaleString()," ","/",u.jsx("a",{href:(m=c==null?void 0:c.bar)==null?void 0:m.carWeightWithoutLoadImage,children:u.jsx("img",{src:(uu=c==null?void 0:c.bar)==null?void 0:uu.carWeightWithoutLoadImage,width:"20",height:"20",alt:"",style:{borderRadius:"4px"}})}),"وزن بدون بار:"," ",(au=(du=c==null?void 0:c.bar)==null?void 0:du.carWeightWithoutLoad)==null?void 0:au.toLocaleString()," ","/ وزن خالص:",(ou=c==null?void 0:c.bar)==null?void 0:ou.netWeight.toLocaleString()," ","/ تعداد واقعی:",(hu=c==null?void 0:c.bar)==null?void 0:hu.realQuantity.toLocaleString()]})})},Q)})]}),u.jsxs(eu,{component:"th",scope:"row",children:[u.jsx(y,{style:{marginBottom:"2px"},children:u.jsx(p,{variant:"button",textAlign:"center",style:{borderBottom:"1px solid gray",paddingBottom:"2px"},children:"فاکتور استان"})}),(cu=(su=L==null?void 0:L.killHouseRequests)==null?void 0:su.filter(c=>c.provinceFactor))==null?void 0:cu.map((c,Q)=>{var U,V,X,J,Z,D,T,m,uu;let K;return((U=c==null?void 0:c.killHouseFactor)==null?void 0:U.state)==="pending"&&(K="#ff7410"),((V=c==null?void 0:c.killHouseFactor)==null?void 0:V.state)==="accepted"&&(K="green"),((X=c==null?void 0:c.killHouseFactor)==null?void 0:X.state)==="rejected"&&(K="red"),u.jsx(y,{container:!0,direction:"column",style:{whiteSpace:"nowrap"},children:u.jsxs(p,{variant:"caption",color:K,children:["فی:"," ",(J=c==null?void 0:c.provinceFactor)==null?void 0:J.factorFee.toLocaleString()," / ","وزن:"," ",(Z=c==null?void 0:c.provinceFactor)==null?void 0:Z.totalWeight.toLocaleString()," / ","مبلغ کل:"," ",(D=c==null?void 0:c.provinceFactor)==null?void 0:D.totalPrice.toLocaleString(),u.jsx("a",{href:(T=c==null?void 0:c.killHouseFactor)==null?void 0:T.factorImage,children:u.jsx("img",{src:(m=c==null?void 0:c.killHouseFactor)==null?void 0:m.factorImage,width:"20",height:"20",alt:"",style:{borderRadius:"4px"}})}),"شناسه پرداخت:",(uu=c==null?void 0:c.killHouseFactor)==null?void 0:uu.paymentCode]})},Q)})]})]},xu)})})]})})},C)})})})]})},C6=ul("PROVINCE_GET_CONTRADICTIONS_DATA",async(n,{dispatch:a})=>{a(a6());try{const{data:s,status:o}=await gu.get(`/killing_info_discrepancy_report/?date1=${n.selectedDate1}&date2=${n.selectedDate2}&role=${Cu()}`);return a(s6()),{data:s,status:o}}catch(s){throw a(s6()),s}}),t={invoiceTable:{width:"100%",borderCollapse:"collapse",alignSelf:"center",marginBottom:"2px",fontFamily:"titr"},tableCell:{border:"1px solid #000",pAlign:"left",textAlign:"center",fontSize:9,fontWeight:"bolder"},tableCellGreen:{border:"1px solid #000",pAlign:"left",textAlign:"center",fontSize:9,color:"white",fontWeight:"bolder",backgroundColor:"rgba(26, 188, 156, 0.7)"},tableHeader:{backgroundColor:"rgba(211, 211, 211, 0.3)",pageBreakAfter:"auto"},headerRow:{backgroundColor:"rgba(211, 211, 211, 0.3)",color:"black",pageBreakInside:"avoid",pageBreakAfter:"auto"},tableHeaderCell:{backgroundColor:"rgba(211, 211, 211, 0.3)",fontSize:10,border:"1px solid #000",padding:"4px",textAlign:"center",fontWeight:"bolder"},tableHeaderCellGreen:{backgroundColor:"rgba(26, 188, 156, 0.7)",fontSize:10,border:"1px solid #000",padding:"4px",textAlign:"center",fontWeight:"bolder",color:"white"},tableRowEven:{backgroundColor:"rgba(170, 183, 255, 0.3)"}},x6=({clearanceCode:n})=>{const a=P.useRef(null),s=()=>{a.current&&a.current.submit()};return u.jsxs("form",{action:"https://e.ivo.ir/Rahgiri/Gidprnt.aspx",method:"post",target:"_blank",ref:a,style:{cursor:"pointer",display:"flex",alignItems:"center",justifyContent:"center"},children:[u.jsx("input",{name:"gid",type:"hidden",value:n}),u.jsx("a",{color:"primary",onClick:s,children:n})]})},nl=({item:n})=>u.jsxs("table",{style:t.invoiceTable,children:[u.jsx("thead",{style:t.tableHeader,children:u.jsxs("tr",{style:t.headerRow,children:[u.jsx("th",{style:t.tableHeaderCell,children:"تعداد درخواست"}),u.jsx("th",{style:t.tableHeaderCell,children:"مجموع درخواست کشتار (قطعه)"}),u.jsx("th",{style:t.tableHeaderCell,children:"مجموع درخواست کشتار (وزن)"}),u.jsx("th",{style:t.tableHeaderCell,children:"تعداد تخصیص به خریدار"}),u.jsx("th",{style:t.tableHeaderCell,children:"وزن تخصیص به خریدار "}),u.jsx("th",{style:t.tableHeaderCellGreen,children:"مانده قطعه قابل تخصیص"}),u.jsx("th",{style:t.tableHeaderCellGreen,children:"وزن قابل تخصیص"}),u.jsx("th",{style:t.tableHeaderCell,children:"اپراتور"})]})}),u.jsx("tbody",{children:u.jsxs("tr",{style:t.tableRowEven,children:[u.jsx("td",{style:t.tableCell,children:n==null?void 0:n.totalRequests.toLocaleString()}),u.jsx("td",{style:t.tableCell,children:n==null?void 0:n.poultryRequestTotalQuantity.toLocaleString()}),u.jsx("td",{style:t.tableCell,children:Math.round(n==null?void 0:n.poultryRequestTotalWeight).toLocaleString()}),u.jsx("td",{style:t.tableCell,children:n==null?void 0:n.provinceKillRequestsTotalQuantity.toLocaleString()}),u.jsx("td",{style:t.tableCell,children:n==null?void 0:n.provinceKillRequestsTotalWeight.toLocaleString()}),u.jsx("td",{style:t.tableCellGreen,children:n==null?void 0:n.poultryRequestTotalRemainQuantity.toLocaleString()}),u.jsx("td",{style:t.tableCellGreen,children:Math.round(n==null?void 0:n.poultryRequestRemainWeight).toLocaleString()}),u.jsxs("td",{style:t.tableCell,children:[n==null?void 0:n.operatorFullname," ",u.jsx("br",{})," ",n==null?void 0:n.operatorMobile]})]})})]}),qe=({items:n,start:a,end:s})=>{const o=n==null?void 0:n.slice(a-1,s);return u.jsxs("table",{style:t.invoiceTable,children:[u.jsx("thead",{style:t.tableHeader,children:u.jsxs("tr",{style:t.headerRow,children:[u.jsx("th",{style:t.tableHeaderCell,children:"ردیف"}),u.jsx("th",{style:t.tableHeaderCell,children:"خریدار"}),u.jsx("th",{style:t.tableHeaderCell,children:"سهم کشتار (قطعه)"}),u.jsx("th",{style:t.tableHeaderCell,children:"سهم کشتار (وزن)"}),u.jsx("th",{style:t.tableHeaderCell,children:"تعداد ماشین ها"}),u.jsx("th",{style:t.tableHeaderCell,children:"تخصیص به ماشین (قطعه)"}),u.jsx("th",{style:t.tableHeaderCell,children:"تخصیص به ماشین (وزن)"}),u.jsx("th",{style:t.tableHeaderCellGreen,children:"مانده قطعه قابل تخصیص"}),u.jsx("th",{style:t.tableHeaderCellGreen,children:"مانده وزن قابل تخصیص"}),u.jsx("th",{style:t.tableHeaderCell,children:"اپراتور"})]})}),u.jsx("tbody",{children:o==null?void 0:o.map((l,e)=>{var C,i,h,N,f,S,F,H,b,A,g,x;return u.jsxs("tr",{style:e%2===0?t.tableRowEven:{},children:[u.jsx("td",{style:t.tableCell,children:e+a}),u.jsxs("td",{style:t.tableCell,children:[(C=l==null?void 0:l.killhouseUser)==null?void 0:C.name," ",u.jsx("br",{})," (",(h=(i=l==null?void 0:l.killhouseUser)==null?void 0:i.killHouseOperator)==null?void 0:h.user.mobile,")"]}),u.jsx("td",{style:t.tableCell,children:(N=l==null?void 0:l.totalInfo)==null?void 0:N.provinceKillRequestQuantity.toLocaleString()}),u.jsx("td",{style:t.tableCell,children:(f=l==null?void 0:l.totalInfo)==null?void 0:f.provinceKillRequestWeight.toLocaleString()}),u.jsx("td",{style:t.tableCell,children:(S=l==null?void 0:l.totalInfo)==null?void 0:S.killHouseRequestsCount.toLocaleString()}),u.jsx("td",{style:t.tableCell,children:(F=l==null?void 0:l.totalInfo)==null?void 0:F.killHouseRequestQuantity.toLocaleString()}),u.jsx("td",{style:t.tableCell,children:(H=l==null?void 0:l.totalInfo)==null?void 0:H.killHouseRequestWeight.toLocaleString()}),u.jsx("td",{style:t.tableCellGreen,children:(b=l==null?void 0:l.totalInfo)==null?void 0:b.provinceKillRequestRemainQuantity.toLocaleString()}),u.jsx("td",{style:t.tableCellGreen,children:(A=l==null?void 0:l.totalInfo)==null?void 0:A.provinceKillRequestRemainWeight.toLocaleString()}),u.jsx("td",{style:t.tableCell,children:u.jsxs(u.Fragment,{children:[(g=l==null?void 0:l.totalInfo)==null?void 0:g.operatorFullname,u.jsx("br",{}),(x=l==null?void 0:l.totalInfo)==null?void 0:x.operatorMobile]})})]},e)})})]})},d6=({items:n,start:a,end:s})=>{const o=n==null?void 0:n.slice(a-1,s);return u.jsxs("table",{style:t.invoiceTable,children:[u.jsx("thead",{style:t.tableHeader,children:u.jsxs("tr",{style:t.headerRow,children:[u.jsx("th",{style:t.tableHeaderCell,children:"ردیف"}),u.jsx("th",{style:t.tableHeaderCell,children:"کد بار"}),u.jsx("th",{style:t.tableHeaderCell,children:"خریدار"}),u.jsx("th",{style:t.tableHeaderCell,children:"تاریخ کشتار"}),u.jsx("th",{style:t.tableHeaderCell,children:"فروشنده"}),u.jsx("th",{style:t.tableHeaderCell,children:"ماشین"}),u.jsx("th",{style:t.tableHeaderCell,children:"راننده"}),u.jsx("th",{style:t.tableHeaderCell,children:"نژاد"}),u.jsx("th",{style:t.tableHeaderCell,children:"تعداد"}),u.jsx("th",{style:t.tableHeaderCell,children:"وزن بار"}),u.jsx("th",{style:t.tableHeaderCell,children:"میانگین وزن"}),u.jsx("th",{style:t.tableHeaderCell,children:"محل کشتار"}),u.jsx("th",{style:t.tableHeaderCell,children:"دامپزشک"})]})}),u.jsx("tbody",{children:o==null?void 0:o.map((l,e)=>{var C,i,h,N,f,S,F,H,b,A,g,x,w,v,R,E,k,q,W,I,B,_;return u.jsxs("tr",{style:e%2===0?t.tableRowEven:{},children:[u.jsx("td",{style:t.tableCell,children:e+a}),u.jsx("td",{style:t.tableCell,children:l==null?void 0:l.barCode}),u.jsxs("td",{style:t.tableCell,children:[(C=l==null?void 0:l.killhouseUser)==null?void 0:C.name," ",u.jsx("br",{})," (",(h=(i=l==null?void 0:l.killhouseUser)==null?void 0:i.killHouseOperator)==null?void 0:h.user.mobile,")"]}),u.jsx("td",{style:t.tableCell,children:G((N=l==null?void 0:l.killRequest)==null?void 0:N.reciveDate)}),u.jsxs("td",{style:t.tableCell,children:[(S=(f=l==null?void 0:l.poultryRequest)==null?void 0:f.poultry)==null?void 0:S.unitName," ",u.jsx("br",{}),"(",(b=(H=(F=l==null?void 0:l.poultryRequest)==null?void 0:F.poultry)==null?void 0:H.user)==null?void 0:b.mobile,")"]}),u.jsx("td",{style:t.tableCell,children:(A=l==null?void 0:l.car)==null?void 0:A.typeCar}),u.jsx("td",{style:t.tableCell,children:(g=l==null?void 0:l.car)==null?void 0:g.driverName}),u.jsx("td",{style:t.tableCell,children:(x=l==null?void 0:l.poultryRequest)==null?void 0:x.chickenBreed}),u.jsx("td",{style:t.tableCell,children:(w=l==null?void 0:l.quantity)==null?void 0:w.toLocaleString()}),u.jsx("td",{style:t.tableCell,children:(R=(v=l==null?void 0:l.weightInfo)==null?void 0:v.weight)==null?void 0:R.toLocaleString()}),u.jsx("td",{style:t.tableCell,children:(E=l==null?void 0:l.weightInfo)==null?void 0:E.indexWeight}),u.jsx("td",{style:t.tableCell,children:l==null?void 0:l.killPlace}),u.jsx("td",{style:t.tableCell,children:l!=null&&l.vetFarm?u.jsxs(u.Fragment,{children:[(W=(q=(k=l==null?void 0:l.vetFarm)==null?void 0:k.vet)==null?void 0:q.user)==null?void 0:W.fullname,u.jsx("br",{}),(_=(B=(I=l==null?void 0:l.vetFarm)==null?void 0:I.vet)==null?void 0:B.user)==null?void 0:_.mobile]}):"ندارد"})]},e)})})]})},We=({items:n,start:a,end:s})=>{const o=n==null?void 0:n.slice(a-1,s);return u.jsxs("table",{style:t.invoiceTable,children:[u.jsx("thead",{style:t.tableHeader,children:u.jsxs("tr",{style:t.headerRow,children:[u.jsx("th",{style:t.tableHeaderCell,children:"ردیف"}),u.jsx("th",{style:t.tableHeaderCell,children:"کد بار"}),u.jsx("th",{style:t.tableHeaderCell,children:"خریدار"}),u.jsx("th",{style:t.tableHeaderCell,children:"فروشنده"}),u.jsx("th",{style:t.tableHeaderCell,children:"تاریخ کشتار"}),u.jsx("th",{style:t.tableHeaderCell,children:"ماشین"}),u.jsx("th",{style:t.tableHeaderCell,children:"راننده"}),u.jsx("th",{style:t.tableHeaderCell,children:"نژاد"}),u.jsx("th",{style:t.tableHeaderCell,children:"تعداد"}),u.jsx("th",{style:t.tableHeaderCell,children:"وزن بار"}),u.jsx("th",{style:t.tableHeaderCell,children:"میانگین وزن"}),u.jsx("th",{style:t.tableHeaderCell,children:"کد قرنطینه"}),u.jsx("th",{style:t.tableHeaderCell,children:"دامپزشک"})]})}),u.jsx("tbody",{children:o==null?void 0:o.map((l,e)=>{var C,i,h,N,f,S,F,H,b,A,g,x,w,v,R,E,k,q,W,I,B,_;return u.jsxs("tr",{style:e%2===0?t.tableRowEven:{},children:[u.jsx("td",{style:t.tableCell,children:e+a}),u.jsx("td",{style:t.tableCell,children:l==null?void 0:l.barCode}),u.jsxs("td",{style:t.tableCell,children:[(C=l==null?void 0:l.killhouseUser)==null?void 0:C.name," ",u.jsx("br",{})," (",(h=(i=l==null?void 0:l.killhouseUser)==null?void 0:i.killHouseOperator)==null?void 0:h.user.mobile,")"]}),u.jsxs("td",{style:t.tableCell,children:[(f=(N=l==null?void 0:l.poultryRequest)==null?void 0:N.poultry)==null?void 0:f.unitName," ",u.jsx("br",{}),"(",(H=(F=(S=l==null?void 0:l.poultryRequest)==null?void 0:S.poultry)==null?void 0:F.user)==null?void 0:H.mobile,")"]}),u.jsx("td",{style:t.tableCell,children:G((b=l==null?void 0:l.killRequest)==null?void 0:b.reciveDate)}),u.jsx("td",{style:t.tableCell,children:(A=l==null?void 0:l.car)==null?void 0:A.typeCar}),u.jsx("td",{style:t.tableCell,children:(g=l==null?void 0:l.car)==null?void 0:g.driverName}),u.jsx("td",{style:t.tableCell,children:(x=l==null?void 0:l.poultryRequest)==null?void 0:x.chickenBreed}),u.jsx("td",{style:t.tableCell,children:(w=l==null?void 0:l.quantity)==null?void 0:w.toLocaleString()}),u.jsx("td",{style:t.tableCell,children:(R=(v=l==null?void 0:l.weightInfo)==null?void 0:v.weight)==null?void 0:R.toLocaleString()}),u.jsx("td",{style:t.tableCell,children:(E=l==null?void 0:l.weightInfo)==null?void 0:E.indexWeight}),u.jsx("td",{style:t.tableCell,children:u.jsx(x6,{clearanceCode:l==null?void 0:l.clearanceCode})}),u.jsx("td",{style:t.tableCell,children:l!=null&&l.vetFarm?u.jsxs(u.Fragment,{children:[(W=(q=(k=l==null?void 0:l.vetFarm)==null?void 0:k.vet)==null?void 0:q.user)==null?void 0:W.fullname,u.jsx("br",{}),(_=(B=(I=l==null?void 0:l.vetFarm)==null?void 0:I.vet)==null?void 0:B.user)==null?void 0:_.mobile]}):"ندارد"})]},e)})})]})},Ie=({items:n,start:a,end:s})=>{const o=n==null?void 0:n.slice(a-1,s);return u.jsxs("table",{style:t.invoiceTable,children:[u.jsx("thead",{style:t.tableHeader,children:u.jsxs("tr",{style:t.headerRow,children:[u.jsx("th",{style:t.tableHeaderCell,children:"ردیف"}),u.jsx("th",{style:t.tableHeaderCell,children:"کد بار"}),u.jsx("th",{style:t.tableHeaderCell,children:"خریدار"}),u.jsx("th",{style:t.tableHeaderCell,children:"فروشنده"}),u.jsx("th",{style:t.tableHeaderCell,children:"تاریخ کشتار"}),u.jsx("th",{style:t.tableHeaderCell,children:"ماشین"}),u.jsx("th",{style:t.tableHeaderCell,children:"راننده"}),u.jsx("th",{style:t.tableHeaderCell,children:"نژاد"}),u.jsx("th",{style:t.tableHeaderCell,children:"تعداد"}),u.jsx("th",{style:t.tableHeaderCell,children:"وزن بار"}),u.jsx("th",{style:t.tableHeaderCell,children:"میانگین وزن"}),u.jsx("th",{style:t.tableHeaderCell,children:"کد قرنطینه"}),u.jsx("th",{style:t.tableHeaderCell,children:"تعداد تخلیه شده (دامپزشک)"}),u.jsx("th",{style:t.tableHeaderCell,children:"وزن تخلیه شده (دامپزشک)"}),u.jsx("th",{style:t.tableHeaderCell,children:"کاربر"})]})}),u.jsx("tbody",{children:o==null?void 0:o.map((l,e)=>{var C,i,h,N,f,S,F,H,b,A,g,x,w,v,R,E,k,q,W,I,B,_;return u.jsxs("tr",{style:e%2===0?t.tableRowEven:{},children:[u.jsx("td",{style:t.tableCell,children:e+a}),u.jsx("td",{style:t.tableCell,children:l==null?void 0:l.barCode}),u.jsxs("td",{style:t.tableCell,children:[(C=l==null?void 0:l.killhouseUser)==null?void 0:C.name," ",u.jsx("br",{})," (",(h=(i=l==null?void 0:l.killhouseUser)==null?void 0:i.killHouseOperator)==null?void 0:h.user.mobile,")"]}),u.jsxs("td",{style:t.tableCell,children:[(f=(N=l==null?void 0:l.poultryRequest)==null?void 0:N.poultry)==null?void 0:f.unitName," ",u.jsx("br",{}),"(",(H=(F=(S=l==null?void 0:l.poultryRequest)==null?void 0:S.poultry)==null?void 0:F.user)==null?void 0:H.mobile,")"]}),u.jsx("td",{style:t.tableCell,children:G((b=l==null?void 0:l.killRequest)==null?void 0:b.reciveDate)}),u.jsx("td",{style:t.tableCell,children:(A=l==null?void 0:l.car)==null?void 0:A.typeCar}),u.jsx("td",{style:t.tableCell,children:(g=l==null?void 0:l.car)==null?void 0:g.driverName}),u.jsx("td",{style:t.tableCell,children:(x=l==null?void 0:l.poultryRequest)==null?void 0:x.chickenBreed}),u.jsx("td",{style:t.tableCell,children:(w=l==null?void 0:l.quantity)==null?void 0:w.toLocaleString()}),u.jsx("td",{style:t.tableCell,children:(R=(v=l==null?void 0:l.weightInfo)==null?void 0:v.weight)==null?void 0:R.toLocaleString()}),u.jsx("td",{style:t.tableCell,children:(E=l==null?void 0:l.weightInfo)==null?void 0:E.indexWeight}),u.jsx("td",{style:t.tableCell,children:u.jsx(x6,{clearanceCode:l==null?void 0:l.clearanceCode})}),u.jsx("td",{style:t.tableCell,children:l==null?void 0:l.vetAcceptedRealQuantity.toLocaleString()}),u.jsx("td",{style:t.tableCell,children:l==null?void 0:l.vetAcceptedRealWeight.toLocaleString()}),u.jsx("td",{style:t.tableCell,children:l!=null&&l.vetFarm?u.jsxs(u.Fragment,{children:[(W=(q=(k=l==null?void 0:l.vetFarm)==null?void 0:k.vet)==null?void 0:q.user)==null?void 0:W.fullname,u.jsx("br",{}),(_=(B=(I=l==null?void 0:l.vetFarm)==null?void 0:I.vet)==null?void 0:B.user)==null?void 0:_.mobile]}):"ندارد"})]},e)})})]})},Be=({items:n,start:a,end:s})=>{const o=n==null?void 0:n.slice(a-1,s);return u.jsxs("table",{style:t.invoiceTable,children:[u.jsx("thead",{style:t.tableHeader,children:u.jsxs("tr",{style:t.headerRow,children:[u.jsx("th",{style:t.tableHeaderCell,children:"ردیف"}),u.jsx("th",{style:t.tableHeaderCell,children:"کد بار"}),u.jsx("th",{style:t.tableHeaderCell,children:"خریدار"}),u.jsx("th",{style:t.tableHeaderCell,children:"تاریخ کشتار"}),u.jsx("th",{style:t.tableHeaderCell,children:"ماشین"}),u.jsx("th",{style:t.tableHeaderCell,children:"راننده"}),u.jsx("th",{style:t.tableHeaderCell,children:"کد قرنطینه"}),u.jsx("th",{style:t.tableHeaderCell,children:"تعداد"}),u.jsx("th",{style:t.tableHeaderCell,children:"وزن بار"}),u.jsx("th",{style:t.tableHeaderCell,children:"تعداد تخلیه شده (دامپزشک)"}),u.jsx("th",{style:t.tableHeaderCell,children:"وزن تخلیه شده (دامپزشک)"}),u.jsx("th",{style:t.tableHeaderCell,children:"اطلاعات بار کشتارگاه (تعداد)"}),u.jsx("th",{style:t.tableHeaderCell,children:"اطلاعات بار کشتارگاه (وزن)"})]})}),u.jsx("tbody",{children:o==null?void 0:o.map((l,e)=>{var C,i,h,N,f,S,F,H,b,A,g,x;return u.jsxs("tr",{style:e%2===0?t.tableRowEven:{},children:[u.jsx("td",{style:t.tableCell,children:e+a}),u.jsx("td",{style:t.tableCell,children:l==null?void 0:l.barCode}),u.jsxs("td",{style:t.tableCell,children:[(C=l==null?void 0:l.killhouseUser)==null?void 0:C.name," ",u.jsx("br",{})," (",(h=(i=l==null?void 0:l.killhouseUser)==null?void 0:i.killHouseOperator)==null?void 0:h.user.mobile,")"]}),u.jsx("td",{style:t.tableCell,children:G((N=l==null?void 0:l.killRequest)==null?void 0:N.reciveDate)}),u.jsx("td",{style:t.tableCell,children:(f=l==null?void 0:l.car)==null?void 0:f.typeCar}),u.jsx("td",{style:t.tableCell,children:(S=l==null?void 0:l.car)==null?void 0:S.driverName}),u.jsx("td",{style:t.tableCell,children:u.jsx(x6,{clearanceCode:l==null?void 0:l.clearanceCode})}),u.jsx("td",{style:t.tableCell,children:(F=l==null?void 0:l.weightInfo)==null?void 0:F.quantity.toLocaleString()}),u.jsx("td",{style:t.tableCell,children:(H=l==null?void 0:l.weightInfo)==null?void 0:H.weight.toLocaleString()}),u.jsx("td",{style:t.tableCell,children:(b=l==null?void 0:l.weightInfo)==null?void 0:b.killHouseVetQuantity.toLocaleString()}),u.jsx("td",{style:t.tableCell,children:(A=l==null?void 0:l.weightInfo)==null?void 0:A.killHouseVetWeight.toLocaleString()}),u.jsx("td",{style:t.tableCell,children:(g=l==null?void 0:l.weightInfo)==null?void 0:g.assingmentQuantity.toLocaleString()}),u.jsx("td",{style:t.tableCell,children:(x=l==null?void 0:l.weightInfo)==null?void 0:x.assingmentWeight.toLocaleString()})]},e)})})]})},j={page:{width:"210mm",height:"297mm",display:"flex",margin:"0 auto",flexDirection:"column",position:"relative",direction:"rtl",fontFamily:"titr",fontWeight:"bold"},pageData:{position:"relative",display:"flex",direction:"rtl",flexDirection:"column"},tableInNewPage:{pageBreakAfter:"always",paddingLeft:"20px",paddingRight:"20px",direction:"rtl",fontFamily:"titr",fontWeight:"bold"},container:{width:"95%",alignSelf:"center",pageBreakInside:"avoid"},logo:{marginTop:"15px",width:"100px",height:"auto",zIndex:10},logoFooter:{width:"100px",height:"auto"},contentContainer:{alignItems:"center",display:"flex",justifyContent:"space-between",marginRight:"20px",marginLeft:"20px"},contentInLine:{display:"flex",flexDirection:"column",alignItems:"center"},watermarkContainer:{position:"fixed",top:250,left:30,right:0,bottom:0,justifyContent:"center",alignItems:"center",opacity:.15,zIndex:-1,userSelect:"none"},watermarkp:{fontFamily:"nazanin",fontSize:100,fontWeight:"bolder",color:"grey",transform:"rotate(-45deg)",left:"50%",userSelect:"none"},firsttitle:{pAlign:"center",color:"#00008b",fontWeight:"800"},divider:{alignSelf:"center",width:"120mm",height:"1px",backgroundColor:"black",margin:"0em"},divider2:{alignSelf:"center",width:"100%",height:"1px",backgroundColor:"black",margin:"0em"},footer:{left:0,bottom:0,width:"100%",position:"absolute"},footerContainer:{alignItems:"center",display:"flex"},circle:{borderRadius:"50%",width:"20px",height:"20px",padding:"10px",background:"#ecf0f1",border:" 1px solid #000",color:"#000",textAlign:"center",marginRight:"300px"},titleOfTable:{marginRight:"20px",fontSize:"15px"},titleOfTable2:{fontSize:"15px"}},i6=P.forwardRef((n,a)=>{const{item:s}=n,{inDate1:o}=n,{inDate2:l}=n,e=()=>u.jsx(u.Fragment,{children:u.jsxs("div",{style:j.contentContainer,children:[u.jsx("div",{style:j.contentInLine}),u.jsxs("div",{style:{...j.contentInLine,marginRight:"100px"},children:[u.jsxs("span",{style:{...j.firsttitle,fontSize:14,zIndex:1},children:["گزارش مغایرت اطلاعات کشتار و عدم فعالیت نقش ها"," "]}),o===l?u.jsxs("span",{style:{fontSize:"15px",color:"#485460"},children:["مورخ ",G(M(o))]}):u.jsxs("span",{style:{fontSize:"15px",color:"#485460"},children:["از تاریخ ",G(M(o))," "," "," تا تاریخ"," "," ",G(M(l))]}),u.jsx("hr",{style:j.divider}),"سامانه رصدیار"]}),u.jsx("div",{style:j.contentInLine,children:u.jsx("img",{alt:"logo",src:Ve,style:j.logo})})]})});let C=0;const i=()=>(C++,u.jsx(u.Fragment,{children:u.jsxs("div",{style:j.footer,children:[u.jsx("div",{style:j.divider2}),u.jsxs("div",{style:j.footerContainer,children:[u.jsx("img",{alt:"logo",src:Xe,style:j.logoFooter}),u.jsxs("p",{style:{fontSize:15,marginRight:"10px"},children:["گزارش مغایرت درخواست کشتار و عدم فعالیت نقش ها",u.jsx("br",{}),"www.rasadyaar.ir"]}),u.jsx("div",{style:j.circle,children:C})]})]})})),h=15,N=Math.ceil(Math.max(0,((s==null?void 0:s.partFour.length)-h)/h)),f=[];for(let x=0;x<N;x++){const w=h+x*h+1,v=h+(x+1)*h;(s==null?void 0:s.partTwo.length)>v-h&&f.push(u.jsxs("div",{style:j.page,children:[u.jsx(e,{}),u.jsxs("div",{style:j.tableInNewPage,children:[u.jsx("h3",{style:j.titleOfTable2,children:"مغایرت در ثبت ماشین و ایجاد بار"}),u.jsx(qe,{items:s==null?void 0:s.partTwo,start:w,end:v})]}),u.jsx(i,{})]},x))}const S=Math.ceil(Math.max(0,((s==null?void 0:s.partFour.length)-h)/h)),F=[];for(let x=0;x<S;x++){const w=h+x*h+1,v=h+(x+1)*h;(s==null?void 0:s.partFour.length)>v-h&&F.push(u.jsxs("div",{style:j.page,children:[u.jsx(e,{}),u.jsxs("div",{style:j.tableInNewPage,children:[u.jsx("h3",{style:j.titleOfTable2,children:"بارهای تخلیه نشده"}),u.jsx(We,{items:s==null?void 0:s.partFour,start:w,end:v})]}),u.jsx(i,{})]},x))}const H=Math.ceil(Math.max(0,((s==null?void 0:s.partFive.length)-h)/h)),b=[];for(let x=0;x<H;x++){const w=h+x*h+1,v=h+(x+1)*h;(s==null?void 0:s.partFour.length)>v-h&&b.push(u.jsxs("div",{style:j.page,children:[u.jsx(e,{}),u.jsxs("div",{style:j.tableInNewPage,children:[u.jsx("h3",{style:j.titleOfTable2,children:"بارهاي تکمیل نشده (بارگزاري سند باسکول و مستندات وزنی)"}),u.jsx(Ie,{items:s==null?void 0:s.partFive,start:w,end:v})]}),u.jsx(i,{})]},x))}const A=Math.ceil(Math.max(0,((s==null?void 0:s.partSix.length)-h)/h)),g=[];for(let x=0;x<A;x++){const w=h+x*h+1,v=h+(x+1)*h;(s==null?void 0:s.partFour.length)>v-h&&g.push(u.jsxs("div",{style:j.page,children:[u.jsx(e,{}),u.jsxs("div",{style:j.tableInNewPage,children:[u.jsx("h3",{style:j.titleOfTable2,children:"مغایرت در اطلاعات بار"}),u.jsx(Be,{items:s==null?void 0:s.partSix,start:w,end:v})]}),u.jsx(i,{})]},x))}return u.jsxs("div",{ref:a,children:[u.jsx("div",{style:j.watermarkContainer,children:u.jsx("p",{style:j.watermarkp,children:"سامانه رصدیار "})}),u.jsxs("div",{style:j.page,children:[u.jsx(e,{}),u.jsxs("div",{style:j.pageData,children:[u.jsx("h3",{style:j.titleOfTable,children:" درخواست کشتار و تخصیص"}),u.jsx("div",{style:j.container,children:u.jsx(nl,{item:s==null?void 0:s.partOne})}),u.jsx("h3",{style:j.titleOfTable,children:"مغایرت در ثبت ماشین و ایجاد بار"}),u.jsx("div",{style:j.container,children:u.jsx(qe,{items:s==null?void 0:s.partTwo,start:1,end:h})})]}),u.jsx(i,{})]}),f,u.jsxs("div",{style:j.page,children:[u.jsx(e,{}),u.jsxs("div",{style:j.pageData,children:[u.jsx("h3",{style:j.titleOfTable,children:"بارهای فاقد کد قرنطینه"}),u.jsx("div",{style:j.container,children:u.jsx(d6,{items:s==null?void 0:s.partThree,start:1,end:15})})]}),u.jsx(i,{})]}),(s==null?void 0:s.partThree.length)>15&&u.jsxs("div",{style:j.page,children:[u.jsx(e,{}),u.jsxs("div",{style:j.tableInNewPage,children:[u.jsx("h3",{style:j.titleOfTable2,children:"بارهای فاقد کد قرنطینه"}),u.jsx(d6,{items:s==null?void 0:s.partThree,start:16,end:30})]}),u.jsx(i,{})]}),(s==null?void 0:s.partThree.length)>30&&u.jsxs("div",{style:j.page,children:[u.jsx(e,{}),u.jsxs("div",{style:j.tableInNewPage,children:[u.jsx("h3",{style:j.titleOfTable2,children:"بارهای فاقد کد قرنطینه"}),u.jsx(d6,{items:s==null?void 0:s.partThree,start:31,end:45})]}),u.jsx(i,{})]}),(s==null?void 0:s.partThree.length)>45&&u.jsxs("div",{style:j.page,children:[u.jsx(e,{}),u.jsxs("div",{style:j.tableInNewPage,children:[u.jsx("h3",{style:j.titleOfTable2,children:"بارهای فاقد کد قرنطینه"}),u.jsx(d6,{items:s==null?void 0:s.partThree,start:46,end:75})]}),u.jsx(i,{})]}),u.jsxs("div",{style:j.page,children:[u.jsx(e,{}),u.jsxs("div",{style:j.pageData,children:[u.jsx("h3",{style:j.titleOfTable,children:"بارهای تخلیه نشده"}),u.jsx("div",{style:j.container,children:u.jsx(We,{items:s==null?void 0:s.partFour,start:1,end:h})})]}),u.jsx(i,{})]}),F,u.jsxs("div",{style:j.page,children:[u.jsx(e,{}),u.jsxs("div",{style:j.pageData,children:[u.jsx("h3",{style:j.titleOfTable,children:"بارهاي تکمیل نشده (بارگزاري سند باسکول و مستندات وزنی)"}),u.jsx("div",{style:j.container,children:u.jsx(Ie,{items:s==null?void 0:s.partFive,start:1,end:h})})]}),u.jsx(i,{})]}),b,u.jsxs("div",{style:j.page,children:[u.jsx(e,{}),u.jsxs("div",{style:j.pageData,children:[u.jsx("h3",{style:j.titleOfTable,children:"مغایرت در اطلاعات بار"}),u.jsx("div",{style:j.container,children:u.jsx(Be,{items:s==null?void 0:s.partSix,start:1,end:h})})]}),u.jsx(i,{})]}),g]})});i6.displayName="ProvinceGetContradictionsFile";i6.propTypes={item:Pe.PropTypes.any};const r={invoiceTable:{width:"100%",borderCollapse:"collapse",alignSelf:"center",fontFamily:"titr",marginBottom:"15px"},tableCell:{border:"1px solid #000",pAlign:"left",textAlign:"center",fontSize:12,fontWeight:"bolder"},tableCellGreen:{border:"1px solid #000",pAlign:"left",textAlign:"center",fontSize:12,color:"white",fontWeight:"bolder",backgroundColor:"rgba(26, 188, 156, 0.7)"},tableHeader:{backgroundColor:"rgba(211, 211, 211, 0.3)",pageBreakAfter:"auto"},headerRow:{backgroundColor:"rgba(211, 211, 211, 0.3)",color:"black",pageBreakInside:"avoid",pageBreakAfter:"auto"},tableHeaderCell:{backgroundColor:"rgba(211, 211, 211, 0.3)",fontSize:12,border:"1px solid #000",padding:"4px",textAlign:"center",fontWeight:"bolder"},tableHeaderCellGreen:{backgroundColor:"rgba(26, 188, 156, 0.7)",fontSize:12,border:"1px solid #000",padding:"4px",textAlign:"center",fontWeight:"bolder",color:"white"},tableRowEven:{backgroundColor:"rgba(170, 183, 255, 0.3)"}},j6=({clearanceCode:n})=>{const a=P.useRef(null),s=()=>{a.current&&a.current.submit()};return u.jsxs("form",{action:"https://e.ivo.ir/Rahgiri/Gidprnt.aspx",method:"post",target:"_blank",ref:a,style:{cursor:"pointer",display:"flex",alignItems:"center",justifyContent:"center"},children:[u.jsx("input",{name:"gid",type:"hidden",value:n}),u.jsx("a",{color:"primary",onClick:s,children:n})]})},sl=({item:n})=>u.jsxs("table",{style:r.invoiceTable,children:[u.jsx("thead",{style:r.tableHeader,children:u.jsxs("tr",{style:r.headerRow,children:[u.jsx("th",{style:r.tableHeaderCell,children:"تعداد درخواست"}),u.jsx("th",{style:r.tableHeaderCell,children:"مجموع درخواست کشتار (قطعه)"}),u.jsx("th",{style:r.tableHeaderCell,children:"مجموع درخواست کشتار (وزن)"}),u.jsx("th",{style:r.tableHeaderCell,children:"تعداد تخصیص به خریدار"}),u.jsx("th",{style:r.tableHeaderCell,children:"وزن تخصیص به خریدار "}),u.jsx("th",{style:r.tableHeaderCellGreen,children:"مانده قطعه قابل تخصیص"}),u.jsx("th",{style:r.tableHeaderCellGreen,children:"وزن قابل تخصیص"}),u.jsx("th",{style:r.tableHeaderCell,children:"اپراتور"})]})}),u.jsx("tbody",{children:u.jsxs("tr",{style:r.tableRowEven,children:[u.jsx("td",{style:r.tableCell,children:n==null?void 0:n.totalRequests.toLocaleString()}),u.jsx("td",{style:r.tableCell,children:n==null?void 0:n.poultryRequestTotalQuantity.toLocaleString()}),u.jsx("td",{style:r.tableCell,children:Math.round(n==null?void 0:n.poultryRequestTotalWeight).toLocaleString()}),u.jsx("td",{style:r.tableCell,children:n==null?void 0:n.provinceKillRequestsTotalQuantity.toLocaleString()}),u.jsx("td",{style:r.tableCell,children:n==null?void 0:n.provinceKillRequestsTotalWeight.toLocaleString()}),u.jsx("td",{style:r.tableCellGreen,children:n==null?void 0:n.poultryRequestTotalRemainQuantity.toLocaleString()}),u.jsx("td",{style:r.tableCellGreen,children:Math.round(n==null?void 0:n.poultryRequestRemainWeight).toLocaleString()}),u.jsxs("td",{style:r.tableCell,children:[n==null?void 0:n.operatorFullname," ",u.jsx("br",{})," ",n==null?void 0:n.operatorMobile]})]})})]}),cl=({items:n,start:a,end:s})=>{const o=n==null?void 0:n.slice(a-1,s);return u.jsxs("table",{style:r.invoiceTable,children:[u.jsx("thead",{style:r.tableHeader,children:u.jsxs("tr",{style:r.headerRow,children:[u.jsx("th",{style:r.tableHeaderCell,children:"ردیف"}),u.jsx("th",{style:r.tableHeaderCell,children:"خریدار"}),u.jsx("th",{style:r.tableHeaderCell,children:"سهم کشتار (قطعه)"}),u.jsx("th",{style:r.tableHeaderCell,children:"سهم کشتار (وزن)"}),u.jsx("th",{style:r.tableHeaderCell,children:"تعداد ماشین ها"}),u.jsx("th",{style:r.tableHeaderCell,children:"تخصیص به ماشین (قطعه)"}),u.jsx("th",{style:r.tableHeaderCell,children:"تخصیص به ماشین (وزن)"}),u.jsx("th",{style:r.tableHeaderCellGreen,children:"مانده قطعه قابل تخصیص"}),u.jsx("th",{style:r.tableHeaderCellGreen,children:"مانده وزن قابل تخصیص"}),u.jsx("th",{style:r.tableHeaderCell,children:"اپراتور"})]})}),u.jsx("tbody",{children:o==null?void 0:o.map((l,e)=>{var C,i,h,N,f,S,F,H,b,A,g,x;return u.jsxs("tr",{style:e%2===0?r.tableRowEven:{},children:[u.jsx("td",{style:r.tableCell,children:e+a}),u.jsxs("td",{style:r.tableCell,children:[(C=l==null?void 0:l.killhouseUser)==null?void 0:C.name," ",u.jsx("br",{})," (",(h=(i=l==null?void 0:l.killhouseUser)==null?void 0:i.killHouseOperator)==null?void 0:h.user.mobile,")"]}),u.jsx("td",{style:r.tableCell,children:(N=l==null?void 0:l.totalInfo)==null?void 0:N.provinceKillRequestQuantity.toLocaleString()}),u.jsx("td",{style:r.tableCell,children:(f=l==null?void 0:l.totalInfo)==null?void 0:f.provinceKillRequestWeight.toLocaleString()}),u.jsx("td",{style:r.tableCell,children:(S=l==null?void 0:l.totalInfo)==null?void 0:S.killHouseRequestsCount.toLocaleString()}),u.jsx("td",{style:r.tableCell,children:(F=l==null?void 0:l.totalInfo)==null?void 0:F.killHouseRequestQuantity.toLocaleString()}),u.jsx("td",{style:r.tableCell,children:(H=l==null?void 0:l.totalInfo)==null?void 0:H.killHouseRequestWeight.toLocaleString()}),u.jsx("td",{style:r.tableCellGreen,children:(b=l==null?void 0:l.totalInfo)==null?void 0:b.provinceKillRequestRemainQuantity.toLocaleString()}),u.jsx("td",{style:r.tableCellGreen,children:(A=l==null?void 0:l.totalInfo)==null?void 0:A.provinceKillRequestRemainWeight.toLocaleString()}),u.jsx("td",{style:r.tableCell,children:u.jsxs(u.Fragment,{children:[(g=l==null?void 0:l.totalInfo)==null?void 0:g.operatorFullname,u.jsx("br",{}),(x=l==null?void 0:l.totalInfo)==null?void 0:x.operatorMobile]})})]},e)})})]})},_e=({items:n,start:a,end:s})=>{const o=n==null?void 0:n.slice(a-1,s);return u.jsxs("table",{style:r.invoiceTable,children:[u.jsx("thead",{style:r.tableHeader,children:u.jsxs("tr",{style:r.headerRow,children:[u.jsx("th",{style:r.tableHeaderCell,children:"ردیف"}),u.jsx("th",{style:r.tableHeaderCell,children:"کد بار"}),u.jsx("th",{style:r.tableHeaderCell,children:"خریدار"}),u.jsx("th",{style:r.tableHeaderCell,children:"تاریخ کشتار"}),u.jsx("th",{style:r.tableHeaderCell,children:"فروشنده"}),u.jsx("th",{style:r.tableHeaderCell,children:"ماشین"}),u.jsx("th",{style:r.tableHeaderCell,children:"راننده"}),u.jsx("th",{style:r.tableHeaderCell,children:"نژاد"}),u.jsx("th",{style:r.tableHeaderCell,children:"تعداد"}),u.jsx("th",{style:r.tableHeaderCell,children:"وزن بار"}),u.jsx("th",{style:r.tableHeaderCell,children:"میانگین وزن"}),u.jsx("th",{style:r.tableHeaderCell,children:"محل کشتار"}),u.jsx("th",{style:r.tableHeaderCell,children:"دامپزشک"})]})}),u.jsx("tbody",{children:o==null?void 0:o.map((l,e)=>{var C,i,h,N,f,S,F,H,b,A,g,x,w,v,R,E,k,q,W,I,B,_;return u.jsxs("tr",{style:e%2===0?r.tableRowEven:{},children:[u.jsx("td",{style:r.tableCell,children:e+a}),u.jsx("td",{style:r.tableCell,children:l==null?void 0:l.barCode}),u.jsxs("td",{style:r.tableCell,children:[(C=l==null?void 0:l.killhouseUser)==null?void 0:C.name," ",u.jsx("br",{})," (",(h=(i=l==null?void 0:l.killhouseUser)==null?void 0:i.killHouseOperator)==null?void 0:h.user.mobile,")"]}),u.jsx("td",{style:r.tableCell,children:G((N=l==null?void 0:l.killRequest)==null?void 0:N.reciveDate)}),u.jsxs("td",{style:r.tableCell,children:[(S=(f=l==null?void 0:l.poultryRequest)==null?void 0:f.poultry)==null?void 0:S.unitName," ",u.jsx("br",{}),"(",(b=(H=(F=l==null?void 0:l.poultryRequest)==null?void 0:F.poultry)==null?void 0:H.user)==null?void 0:b.mobile,")"]}),u.jsx("td",{style:r.tableCell,children:(A=l==null?void 0:l.car)==null?void 0:A.typeCar}),u.jsx("td",{style:r.tableCell,children:(g=l==null?void 0:l.car)==null?void 0:g.driverName}),u.jsx("td",{style:r.tableCell,children:(x=l==null?void 0:l.poultryRequest)==null?void 0:x.chickenBreed}),u.jsx("td",{style:r.tableCell,children:(w=l==null?void 0:l.quantity)==null?void 0:w.toLocaleString()}),u.jsx("td",{style:r.tableCell,children:(R=(v=l==null?void 0:l.weightInfo)==null?void 0:v.weight)==null?void 0:R.toLocaleString()}),u.jsx("td",{style:r.tableCell,children:(E=l==null?void 0:l.weightInfo)==null?void 0:E.indexWeight}),u.jsx("td",{style:r.tableCell,children:l==null?void 0:l.killPlace}),u.jsx("td",{style:r.tableCell,children:l!=null&&l.vetFarm?u.jsxs(u.Fragment,{children:[(W=(q=(k=l==null?void 0:l.vetFarm)==null?void 0:k.vet)==null?void 0:q.user)==null?void 0:W.fullname,u.jsx("br",{}),(_=(B=(I=l==null?void 0:l.vetFarm)==null?void 0:I.vet)==null?void 0:B.user)==null?void 0:_.mobile]}):"ندارد"})]},e)})})]})},dl=({items:n,start:a,end:s})=>{const o=n==null?void 0:n.slice(a-1,s);return u.jsxs("table",{style:r.invoiceTable,children:[u.jsx("thead",{style:r.tableHeader,children:u.jsxs("tr",{style:r.headerRow,children:[u.jsx("th",{style:r.tableHeaderCell,children:"ردیف"}),u.jsx("th",{style:r.tableHeaderCell,children:"کد بار"}),u.jsx("th",{style:r.tableHeaderCell,children:"خریدار"}),u.jsx("th",{style:r.tableHeaderCell,children:"فروشنده"}),u.jsx("th",{style:r.tableHeaderCell,children:"تاریخ کشتار"}),u.jsx("th",{style:r.tableHeaderCell,children:"ماشین"}),u.jsx("th",{style:r.tableHeaderCell,children:"راننده"}),u.jsx("th",{style:r.tableHeaderCell,children:"نژاد"}),u.jsx("th",{style:r.tableHeaderCell,children:"تعداد"}),u.jsx("th",{style:r.tableHeaderCell,children:"وزن بار"}),u.jsx("th",{style:r.tableHeaderCell,children:"میانگین وزن"}),u.jsx("th",{style:r.tableHeaderCell,children:"کد قرنطینه"}),u.jsx("th",{style:r.tableHeaderCell,children:"دامپزشک"})]})}),u.jsx("tbody",{children:o==null?void 0:o.map((l,e)=>{var C,i,h,N,f,S,F,H,b,A,g,x,w,v,R,E,k,q,W,I,B,_;return u.jsxs("tr",{style:e%2===0?r.tableRowEven:{},children:[u.jsx("td",{style:r.tableCell,children:e+a}),u.jsx("td",{style:r.tableCell,children:l==null?void 0:l.barCode}),u.jsxs("td",{style:r.tableCell,children:[(C=l==null?void 0:l.killhouseUser)==null?void 0:C.name," ",u.jsx("br",{})," (",(h=(i=l==null?void 0:l.killhouseUser)==null?void 0:i.killHouseOperator)==null?void 0:h.user.mobile,")"]}),u.jsxs("td",{style:r.tableCell,children:[(f=(N=l==null?void 0:l.poultryRequest)==null?void 0:N.poultry)==null?void 0:f.unitName," ",u.jsx("br",{}),"(",(H=(F=(S=l==null?void 0:l.poultryRequest)==null?void 0:S.poultry)==null?void 0:F.user)==null?void 0:H.mobile,")"]}),u.jsx("td",{style:r.tableCell,children:G((b=l==null?void 0:l.killRequest)==null?void 0:b.reciveDate)}),u.jsx("td",{style:r.tableCell,children:(A=l==null?void 0:l.car)==null?void 0:A.typeCar}),u.jsx("td",{style:r.tableCell,children:(g=l==null?void 0:l.car)==null?void 0:g.driverName}),u.jsx("td",{style:r.tableCell,children:(x=l==null?void 0:l.poultryRequest)==null?void 0:x.chickenBreed}),u.jsx("td",{style:r.tableCell,children:(w=l==null?void 0:l.quantity)==null?void 0:w.toLocaleString()}),u.jsx("td",{style:r.tableCell,children:(R=(v=l==null?void 0:l.weightInfo)==null?void 0:v.weight)==null?void 0:R.toLocaleString()}),u.jsx("td",{style:r.tableCell,children:(E=l==null?void 0:l.weightInfo)==null?void 0:E.indexWeight}),u.jsx("td",{style:r.tableCell,children:u.jsx(j6,{clearanceCode:l==null?void 0:l.clearanceCode})}),u.jsx("td",{style:r.tableCell,children:l!=null&&l.vetFarm?u.jsxs(u.Fragment,{children:[(W=(q=(k=l==null?void 0:l.vetFarm)==null?void 0:k.vet)==null?void 0:q.user)==null?void 0:W.fullname,u.jsx("br",{}),(_=(B=(I=l==null?void 0:l.vetFarm)==null?void 0:I.vet)==null?void 0:B.user)==null?void 0:_.mobile]}):"ندارد"})]},e)})})]})},al=({items:n,start:a,end:s})=>{const o=n==null?void 0:n.slice(a-1,s);return u.jsxs("table",{style:r.invoiceTable,children:[u.jsx("thead",{style:r.tableHeader,children:u.jsxs("tr",{style:r.headerRow,children:[u.jsx("th",{style:r.tableHeaderCell,children:"ردیف"}),u.jsx("th",{style:r.tableHeaderCell,children:"کد بار"}),u.jsx("th",{style:r.tableHeaderCell,children:"خریدار"}),u.jsx("th",{style:r.tableHeaderCell,children:"فروشنده"}),u.jsx("th",{style:r.tableHeaderCell,children:"تاریخ کشتار"}),u.jsx("th",{style:r.tableHeaderCell,children:"ماشین"}),u.jsx("th",{style:r.tableHeaderCell,children:"راننده"}),u.jsx("th",{style:r.tableHeaderCell,children:"نژاد"}),u.jsx("th",{style:r.tableHeaderCell,children:"تعداد"}),u.jsx("th",{style:r.tableHeaderCell,children:"وزن بار"}),u.jsx("th",{style:r.tableHeaderCell,children:"میانگین وزن"}),u.jsx("th",{style:r.tableHeaderCell,children:"کد قرنطینه"}),u.jsx("th",{style:r.tableHeaderCell,children:"تعداد تخلیه شده (دامپزشک)"}),u.jsx("th",{style:r.tableHeaderCell,children:"وزن تخلیه شده (دامپزشک)"}),u.jsx("th",{style:r.tableHeaderCell,children:"کاربر"})]})}),u.jsx("tbody",{children:o==null?void 0:o.map((l,e)=>{var C,i,h,N,f,S,F,H,b,A,g,x,w,v,R,E,k,q,W,I,B,_;return u.jsxs("tr",{style:e%2===0?r.tableRowEven:{},children:[u.jsx("td",{style:r.tableCell,children:e+a}),u.jsx("td",{style:r.tableCell,children:l==null?void 0:l.barCode}),u.jsxs("td",{style:r.tableCell,children:[(C=l==null?void 0:l.killhouseUser)==null?void 0:C.name," ",u.jsx("br",{})," (",(h=(i=l==null?void 0:l.killhouseUser)==null?void 0:i.killHouseOperator)==null?void 0:h.user.mobile,")"]}),u.jsxs("td",{style:r.tableCell,children:[(f=(N=l==null?void 0:l.poultryRequest)==null?void 0:N.poultry)==null?void 0:f.unitName," ",u.jsx("br",{}),"(",(H=(F=(S=l==null?void 0:l.poultryRequest)==null?void 0:S.poultry)==null?void 0:F.user)==null?void 0:H.mobile,")"]}),u.jsx("td",{style:r.tableCell,children:G((b=l==null?void 0:l.killRequest)==null?void 0:b.reciveDate)}),u.jsx("td",{style:r.tableCell,children:(A=l==null?void 0:l.car)==null?void 0:A.typeCar}),u.jsx("td",{style:r.tableCell,children:(g=l==null?void 0:l.car)==null?void 0:g.driverName}),u.jsx("td",{style:r.tableCell,children:(x=l==null?void 0:l.poultryRequest)==null?void 0:x.chickenBreed}),u.jsx("td",{style:r.tableCell,children:(w=l==null?void 0:l.quantity)==null?void 0:w.toLocaleString()}),u.jsx("td",{style:r.tableCell,children:(R=(v=l==null?void 0:l.weightInfo)==null?void 0:v.weight)==null?void 0:R.toLocaleString()}),u.jsx("td",{style:r.tableCell,children:(E=l==null?void 0:l.weightInfo)==null?void 0:E.indexWeight}),u.jsx("td",{style:r.tableCell,children:u.jsx(j6,{clearanceCode:l==null?void 0:l.clearanceCode})}),u.jsx("td",{style:r.tableCell,children:l==null?void 0:l.vetAcceptedRealQuantity.toLocaleString()}),u.jsx("td",{style:r.tableCell,children:l==null?void 0:l.vetAcceptedRealWeight.toLocaleString()}),u.jsx("td",{style:r.tableCell,children:l!=null&&l.vetFarm?u.jsxs(u.Fragment,{children:[(W=(q=(k=l==null?void 0:l.vetFarm)==null?void 0:k.vet)==null?void 0:q.user)==null?void 0:W.fullname,u.jsx("br",{}),(_=(B=(I=l==null?void 0:l.vetFarm)==null?void 0:I.vet)==null?void 0:B.user)==null?void 0:_.mobile]}):"ندارد"})]},e)})})]})},ol=({items:n,start:a,end:s})=>{const o=n==null?void 0:n.slice(a-1,s);return u.jsxs("table",{style:r.invoiceTable,children:[u.jsx("thead",{style:r.tableHeader,children:u.jsxs("tr",{style:r.headerRow,children:[u.jsx("th",{style:r.tableHeaderCell,children:"ردیف"}),u.jsx("th",{style:r.tableHeaderCell,children:"کد بار"}),u.jsx("th",{style:r.tableHeaderCell,children:"خریدار"}),u.jsx("th",{style:r.tableHeaderCell,children:"تاریخ کشتار"}),u.jsx("th",{style:r.tableHeaderCell,children:"ماشین"}),u.jsx("th",{style:r.tableHeaderCell,children:"راننده"}),u.jsx("th",{style:r.tableHeaderCell,children:"کد قرنطینه"}),u.jsx("th",{style:r.tableHeaderCell,children:"تعداد"}),u.jsx("th",{style:r.tableHeaderCell,children:"وزن بار"}),u.jsx("th",{style:r.tableHeaderCell,children:"تعداد تخلیه شده (دامپزشک)"}),u.jsx("th",{style:r.tableHeaderCell,children:"وزن تخلیه شده (دامپزشک)"}),u.jsx("th",{style:r.tableHeaderCell,children:"اطلاعات بار کشتارگاه (تعداد)"}),u.jsx("th",{style:r.tableHeaderCell,children:"اطلاعات بار کشتارگاه (وزن)"})]})}),u.jsx("tbody",{children:o==null?void 0:o.map((l,e)=>{var C,i,h,N,f,S,F,H,b,A,g,x;return u.jsxs("tr",{style:e%2===0?r.tableRowEven:{},children:[u.jsx("td",{style:r.tableCell,children:e+a}),u.jsx("td",{style:r.tableCell,children:l==null?void 0:l.barCode}),u.jsxs("td",{style:r.tableCell,children:[(C=l==null?void 0:l.killhouseUser)==null?void 0:C.name," ",u.jsx("br",{})," (",(h=(i=l==null?void 0:l.killhouseUser)==null?void 0:i.killHouseOperator)==null?void 0:h.user.mobile,")"]}),u.jsx("td",{style:r.tableCell,children:G((N=l==null?void 0:l.killRequest)==null?void 0:N.reciveDate)}),u.jsx("td",{style:r.tableCell,children:(f=l==null?void 0:l.car)==null?void 0:f.typeCar}),u.jsx("td",{style:r.tableCell,children:(S=l==null?void 0:l.car)==null?void 0:S.driverName}),u.jsx("td",{style:r.tableCell,children:u.jsx(j6,{clearanceCode:l==null?void 0:l.clearanceCode})}),u.jsx("td",{style:r.tableCell,children:(F=l==null?void 0:l.weightInfo)==null?void 0:F.quantity.toLocaleString()}),u.jsx("td",{style:r.tableCell,children:(H=l==null?void 0:l.weightInfo)==null?void 0:H.weight.toLocaleString()}),u.jsx("td",{style:r.tableCell,children:(b=l==null?void 0:l.weightInfo)==null?void 0:b.killHouseVetQuantity.toLocaleString()}),u.jsx("td",{style:r.tableCell,children:(A=l==null?void 0:l.weightInfo)==null?void 0:A.killHouseVetWeight.toLocaleString()}),u.jsx("td",{style:r.tableCell,children:(g=l==null?void 0:l.weightInfo)==null?void 0:g.assingmentQuantity.toLocaleString()}),u.jsx("td",{style:r.tableCell,children:(x=l==null?void 0:l.weightInfo)==null?void 0:x.assingmentWeight.toLocaleString()})]},e)})})]})},hl=()=>{var b;const[,,n,a,s,o]=P.useContext(Fu),[l,e]=P.useState(),[C,i]=P.useState(),h=h6(),N=P.useRef(),f=Je.useReactToPrint({content:()=>N.current,documentTitle:"گزارش مغایرت درخواست کشتار و عدم فعالیت نقش ها "}),S=()=>{h(a6()),h(C6({selectedDate1:n,selectedDate2:s})).then(A=>{i(A.payload.data),h(s6())})},F=pu(A=>A.userSlice),H=A=>{h(a6()),h(C6({selectedDate1:n,selectedDate2:s})).then(g=>{e(g.payload.data),h(s6())})};return P.useEffect(()=>{(()=>{const g=M(new Date).format("YYYY-MM-DD"),x=M(g).subtract(1,"days").format("YYYY-MM-DD"),w=g;a(x),o(w),h(a6());try{const v=h(C6({selectedDate1:x,selectedDate2:w}));i(v.payload.data)}catch{h(s6())}})()},[]),P.useEffect(()=>{l&&f()},[l]),u.jsxs(y,{container:!0,p:z.TINY,xs:12,children:[u.jsxs(y,{container:!0,alignItems:"center",gap:z.SMALL,children:[u.jsx("div",{style:{visibility:"hidden",position:"absolute"},children:u.jsx(i6,{ref:N,item:l,inDate1:n,inDate2:s})}),u.jsx(p,{variant:"body2",children:"دریافت لیست مغایرت ها (حداکثر بازه 7 روزه)"}),u.jsx(y,{style:{width:"150px"},children:u.jsx(yu,{label:"از تاریخ",id:"date",renderInput:A=>u.jsx(ju,{...A}),value:n,onChange:A=>{a(M(A).format("YYYY-MM-DD"))}})}),u.jsx(y,{style:{width:"150px"},children:u.jsx(yu,{label:"تا تاریخ",id:"date",renderInput:A=>u.jsx(ju,{style:{width:"160px"},...A}),value:s,onChange:A=>{o(M(A).format("YYYY-MM-DD"))}})}),u.jsx(c6,{disabled:M(s).diff(M(n),"days")>7,type:"submit",onClick:S,endIcon:u.jsx(tl,{}),children:"جستجو"}),u.jsx(Au,{title:"خروجی PDF",children:u.jsx($e,{disabled:M(s).diff(M(n),"days")>7,"aria-label":"delete",color:"success",onClick:()=>{H()},children:u.jsx(el,{size:28})})}),u.jsx(Au,{title:"خروجی اکسل",children:u.jsx("a",{href:`${gu.defaults.baseURL}discrepancy_report_excel/?date1=${n}&date2=${s}&key=${(b=F==null?void 0:F.userProfile)==null?void 0:b.key}&role=${Cu()}`,rel:"noreferrer",children:u.jsx(c6,{color:"success",children:u.jsx(o6,{size:32})})})})]}),C&&u.jsx(y,{width:"100%",mt:z.SMALL,children:C&&u.jsxs(y,{width:"100%",mt:z.SMALL,children:[iu("درخواست کشتار و تخصیص",u.jsx(sl,{item:C==null?void 0:C.partOne})),iu("مغایرت در ثبت ماشین و ایجاد بار",u.jsx(cl,{items:C==null?void 0:C.partTwo,start:1,end:1e3})),iu("بارهای دارای مغایرت تعداد",u.jsx(_e,{items:C==null?void 0:C.partSeven,start:1,end:1e3})),iu("بارهای فاقد کد قرنطینه",u.jsx(_e,{items:C==null?void 0:C.partThree,start:1,end:1e3})),iu("بارهای تخلیه نشده",u.jsx(dl,{items:C==null?void 0:C.partFour,start:1,end:1e3})),iu("بارهاي تکمیل نشده (بارگزاري سند باسکول و مستندات وزنی)",u.jsx(al,{items:C==null?void 0:C.partFive,start:1,end:1e3})),iu("مغایرت در اطلاعات بار",u.jsx(ol,{items:C==null?void 0:C.partSix,start:1,end:1e3}))]})})]})},iu=(n,a)=>u.jsxs(Me,{children:[u.jsx(Qe,{expandIcon:u.jsx(Ze,{}),"aria-controls":"panel-content",id:"panel-header",children:u.jsx(p,{variant:"subtitle1",children:n})}),u.jsx(Ge,{children:a})]}),O=({link:n,text:a,fontSize:s,role:o,token:l,fColor:e})=>{const C=pu(h=>h.userSlice.authToken),[i]=P.useContext(Fu);return u.jsxs(u.Fragment,{children:[" ",Cu()==="ProvinceOperator"||Cu()==="SuperAdmin"?u.jsx(Au,{title:"جهت دانلود کلید کنید ",placement:"top",children:u.jsx("a",{onClick:()=>{i({vertical:"top",horizontal:"center",msg:"فایل اکسل در حال دانلود می باشد، این علمیات ممکن است زمان بر باشد لطفا صبر کنید.",severity:"success"})},className:"cell",style:{textDecoration:"none",fontSize:s||"12px",color:e||"white"},href:n?`${gu.defaults.baseURL}${n}${o?`&role=${Cu()}`:""}${l?`&token=${C}`:""}`:"#",children:a})}):u.jsx("span",{style:{textDecoration:"none",fontSize:s||"12px",color:e||"white"},children:a})]})},Cl=()=>{var h,N,f,S,F,H,b,A,g,x,w,v,R,E,k,q,W,I,B,_,L,xu,Y,lu,tu,ru,nu,su,cu,c,Q,K,U,V,X,J,Z,D,T,m,uu,du,au,ou,hu,bu,Nu,fu,Su,Hu,vu,wu,Lu,Ru,Eu,ku,qu,d,Wu,Iu,Bu,_u,Ku,Ou,Pu,$u,Mu,Qu,Gu,Yu,zu,Uu,Vu,Xu,Ju,Zu,Du,Tu,mu,u6,e6,l6,t6,r6,y6,A6,g6,F6,p6,b6,N6,f6,S6,H6,v6,w6,L6,R6,E6,k6,q6,W6,I6,B6,_6,K6,O6,P6,$6,M6,Q6,G6,Y6,z6,U6,V6,X6,J6,Z6,D6,T6,m6,u0,e0,l0,t0,r0,n0,s0,c0,d0,a0,o0,h0,C0,x0,i0,j0,y0,A0,g0,F0,p0,b0,N0,f0,S0,H0,v0,w0,L0,R0,E0,k0,q0,W0,I0,B0,_0,K0,O0,P0,$0,M0,Q0,G0,Y0,z0,U0,V0,X0,J0,Z0,D0,T0,m0,ue,ee,le,te,re,ne,se,ce,de,ae,oe,he,Ce,xe,ie,je,ye,Ae,ge,Fe,pe,be,Ne,fe,Se,He,ve,we,Le,Re;const n=h6(),[,,a,s,o,l]=P.useContext(Fu),{casesTableDetails:e}=pu($=>$.provinceSlice),[C]=P.useContext(Fu),i=pu($=>$.userSlice.userProfile.key);return P.useEffect(()=>{const $=M(new Date).format("YYYY-MM-DD");s($),l($)},[]),P.useEffect(()=>{n(De({selectedDate1:a,selectedDate2:o}))},[a,o]),u.jsxs(y,{container:!0,p:z.TINY,xs:12,justifyContent:"center",alignItems:"center",children:[u.jsx(p,{m:2,variant:"body1",children:"گزارش کلی فارم های فعال مرغ گوشتی دارای مانده در سالن بیشتر از 10 درصد و بازه سنی 55 تا 90 روزه"}),(Cu()==="ProvinceOperator"||Cu()==="SuperAdmin")&&u.jsx(Au,{title:"خروجی اکسل گزارش جامع",children:u.jsx(c6,{color:"success",onClick:()=>{C({vertical:"top",horizontal:"center",msg:"فایل اکسل در حال دانلود می باشد، این علمیات ممکن است زمان بر باشد لطفا صبر کنید.",severity:"success"});const $=`${gu.defaults.baseURL}poultry_hatching_between_50age_70age_excel`;window.location.href=$},children:u.jsx(o6,{size:32})})}),u.jsx("div",{children:u.jsxs("table",{className:"table-styles",children:[u.jsx("thead",{children:u.jsxs("tr",{className:"green-header",children:[u.jsx("th",{children:"تعداد فارم"}),u.jsx("th",{children:"مجموع جوجه ریزی کل"}),u.jsx("th",{children:"تعداد فارم بایگانی"}),u.jsx("th",{children:"مجموع جوجه ریزی بایگانی"}),u.jsx("th",{children:"تعداد فارم فعال"}),u.jsx("th",{children:"مجموع جوجه ریزی فعال"}),u.jsx("th",{children:"مجموع قطعه کشتار شده"}),u.jsx("th",{children:"مجموع وزن کشتار شده"}),u.jsx("th",{children:"جمع کل مانده در سالن "}),u.jsx("th",{children:"مانده در سالن از 90 درصد جوجه ریزی"}),u.jsx("th",{children:"کمترین سن"}),u.jsx("th",{children:"بیشترین سن"}),u.jsx("th",{children:"مجموع وزن تعهد دولتی"}),u.jsx("th",{children:"مجموع قطعه کشتار دولتی"}),u.jsx("th",{children:"مجموع وزن کشتار دولتی"}),u.jsx("th",{children:"مجموع قطعه کشتار آزاد"}),u.jsx("th",{children:"مجموع وزن کشتار آزاد"}),u.jsx("th",{children:"مجموع تعداد کشتار خارج از استان"}),u.jsx("th",{children:"مجموع وزن کشتار خارج از استان"})]})}),u.jsx("tbody",{children:u.jsxs("tr",{children:[u.jsx("td",{className:"centered-cell",children:(N=(h=e==null?void 0:e.age55Age90)==null?void 0:h.poultry)==null?void 0:N.toLocaleString()}),u.jsx("td",{className:"centered-cell",children:(S=(f=e==null?void 0:e.age55Age90)==null?void 0:f.hatchingQuantity)==null?void 0:S.toLocaleString()}),u.jsx("td",{className:"centered-cell",children:(H=(F=e==null?void 0:e.age55Age90)==null?void 0:F.lenArchiveHatching)==null?void 0:H.toLocaleString()}),u.jsx("td",{className:"centered-cell",children:(A=(b=e==null?void 0:e.age55Age90)==null?void 0:b.archiveHatchingQuantity)==null?void 0:A.toLocaleString()}),u.jsx("td",{className:"centered-cell",children:(x=(g=e==null?void 0:e.age55Age90)==null?void 0:g.lenActiveHatching)==null?void 0:x.toLocaleString()}),u.jsx("td",{className:"centered-cell",children:(v=(w=e==null?void 0:e.age55Age90)==null?void 0:w.activeHatchingQuantity)==null?void 0:v.toLocaleString()}),u.jsx("td",{className:"centered-cell",children:(E=(R=e==null?void 0:e.age55Age90)==null?void 0:R.hatchingKilledQuantity)==null?void 0:E.toLocaleString()}),u.jsx("td",{className:"centered-cell",children:(q=(k=e==null?void 0:e.age55Age90)==null?void 0:k.hatchingKilledWeight)==null?void 0:q.toLocaleString()}),u.jsx("td",{className:"centered-cell",children:(I=(W=e==null?void 0:e.age55Age90)==null?void 0:W.hatchingLeftOver)==null?void 0:I.toLocaleString()}),u.jsx("td",{className:"centered-cell",children:(_=(B=e==null?void 0:e.age55Age90)==null?void 0:B.hatchingLeftOverNintyPercent)==null?void 0:_.toLocaleString()}),u.jsx("td",{className:"centered-cell",children:(xu=(L=e==null?void 0:e.age55Age90)==null?void 0:L.minAge)==null?void 0:xu.toLocaleString()}),u.jsx("td",{className:"centered-cell",children:(lu=(Y=e==null?void 0:e.age55Age90)==null?void 0:Y.maxAge)==null?void 0:lu.toLocaleString()}),u.jsx("td",{className:"centered-cell",children:(ru=(tu=e==null?void 0:e.age55Age90)==null?void 0:tu.totalCommitment)==null?void 0:ru.toLocaleString()}),u.jsx("td",{className:"centered-cell",children:(su=(nu=e==null?void 0:e.age55Age90)==null?void 0:nu.governmentalQuantity)==null?void 0:su.toLocaleString()}),u.jsx("td",{className:"centered-cell",children:(c=(cu=e==null?void 0:e.age55Age90)==null?void 0:cu.governmentalWeight)==null?void 0:c.toLocaleString()}),u.jsx("td",{className:"centered-cell",children:(K=(Q=e==null?void 0:e.age55Age90)==null?void 0:Q.freeQuantity)==null?void 0:K.toLocaleString()}),u.jsx("td",{className:"centered-cell",children:(V=(U=e==null?void 0:e.age55Age90)==null?void 0:U.freeWeight)==null?void 0:V.toLocaleString()}),u.jsx("td",{className:"centered-cell",children:(J=(X=e==null?void 0:e.age55Age90)==null?void 0:X.outProvinceKilledQuantity)==null?void 0:J.toLocaleString()}),u.jsx("td",{className:"centered-cell",children:(D=(Z=e==null?void 0:e.age55Age90)==null?void 0:Z.outProvinceKilledWeight)==null?void 0:D.toLocaleString()})]})})]})}),u.jsxs(y,{container:!0,gap:z.SMALL,xs:12,mt:4,alignItems:"center",children:[u.jsx(y,{children:u.jsx(yu,{label:"از تاریخ",id:"date",renderInput:$=>u.jsx(ju,{size:"small",style:{width:"160px"},...$}),value:a,onChange:$=>{s(M($).format("YYYY-MM-DD"))}})}),u.jsx(y,{children:u.jsx(yu,{label:"تا تاریخ",id:"date",renderInput:$=>u.jsx(ju,{size:"small",style:{width:"160px"},...$}),value:o,onChange:$=>{l(M($).format("YYYY-MM-DD"))}})}),u.jsx(y,{children:u.jsx(Au,{title:"خروجی اکسل گزارش جامع",children:u.jsx(c6,{color:"warning",onClick:()=>{C({vertical:"top",horizontal:"center",msg:"فایل اکسل در حال دانلود می باشد، این علمیات ممکن است زمان بر باشد لطفا صبر کنید.",severity:"success"});const $=`${gu.defaults.baseURL}detail_of_killing_excel/?date1=${a}&date2=${o}&key=${i}&role=${Cu()}`;window.location.href=$},children:u.jsx(o6,{size:32})})})})]}),u.jsx(p,{m:2,variant:"body1",children:"گزارش بارهای ایجاد شده در فرآیند کشتار مرغ گوشتی"}),u.jsx(y,{container:!0,alignItems:"center",justifyContent:"center",xs:12,m:1,children:u.jsx(p,{variant:"body2",color:"primary",children:"اطلاعات کلی بارها"})}),u.jsx("div",{children:u.jsxs("table",{className:"table-styles",children:[u.jsx("thead",{children:u.jsxs("tr",{children:[u.jsxs("th",{className:"green-cell",children:[" ",u.jsx(O,{text:"درخواست مرغداران",role:!0,token:!0,link:`poultry_kill_request_excel/?start=${a}&end=${o}`})," "]}),u.jsxs("th",{className:"green-cell",children:[u.jsx(O,{text:"مجموع حجم درخواست مرغداران",role:!0,token:!0,link:`poultry_kill_request_excel/?start=${a}&end=${o}`})," "]}),u.jsx("th",{className:"green-cell",children:u.jsx(O,{text:"مجموع وزن قطعه درخواست مرغداران",role:!0,token:!0,link:`poultry_kill_request_excel/?start=${a}&end=${o}`})}),u.jsx("th",{className:"green-cell",children:u.jsx(O,{text:"کمترین سن کشتار",role:!0,token:!0,link:`poultry_kill_request_excel/?start=${a}&end=${o}`})}),u.jsx("th",{className:"green-cell",children:u.jsx(O,{text:"بیشترین سن کشتار",role:!0,token:!0,link:`poultry_kill_request_excel/?start=${a}&end=${o}`})}),u.jsx("th",{className:"green-cell",children:u.jsx(O,{text:"میانگین سنی کشتار",role:!0,token:!0,link:`poultry_kill_request_excel/?start=${a}&end=${o}`})}),u.jsx("th",{className:"blue-cell",children:u.jsx(O,{text:"تعداد بارهای ایجاد شده",link:`bar_excel/?start=${a}&end=${o}`})}),u.jsx("th",{className:"blue-cell",children:u.jsx(O,{text:"مجموع حجم بارها",link:`bar_excel/?start=${a}&end=${o}`})}),u.jsx("th",{className:"blue-cell",children:u.jsx(O,{text:"مجموع وزن بارهای ایجاد شده",link:`bar_excel/?start=${a}&end=${o}`})}),u.jsx("th",{className:"blue-cell",children:u.jsx(O,{text:"میانگین وزن",link:`bar_excel/?start=${a}&end=${o}`})}),u.jsx("th",{className:"light-green-cell",children:u.jsx(O,{fColor:"rgb(99, 97, 97)",text:"تعداد بارهای دارای کد قرنطینه",link:`number_of_times_with_quarantine_code_excel/?date1=${a}&date2=${o}`})}),u.jsx("th",{className:"light-green-cell",children:u.jsx(O,{fColor:"rgb(99, 97, 97)",text:" مجموع قطعه بارهای دارای کد قرنطینه",link:`number_of_times_with_quarantine_code_excel/?date1=${a}&date2=${o}`})}),u.jsx("th",{className:"light-blue-cell",children:u.jsx(O,{text:"تعداد بار احراز شده از قرنطینه",link:`the_burden_of_quarantine_excel/?date1=${a}&date2=${o}`})}),u.jsx("th",{className:"light-blue-cell",children:u.jsx(O,{text:"مجموع حجم احراز شده از قرنطینه",link:`the_burden_of_quarantine_excel/?date1=${a}&date2=${o}`})}),u.jsx("th",{className:"light-yellow-cell",children:u.jsx(O,{text:"تعداد بارهای فاقد کد قرنطینه",link:`bar_without_quarantine_code_excel/?date1=${a}&date2=${o}`})}),u.jsx("th",{className:"light-yellow-cell",children:u.jsx(O,{text:"مجموع قطعه بارهای فاقد کد قرنطینه",link:`bar_without_quarantine_code_excel/?date1=${a}&date2=${o}`})}),u.jsx("th",{className:"light-yellow-cell",children:u.jsx(O,{text:"تعداد بارهایی که در قرنطینه و رصدیار اختلاف دارند",link:`bar_without_quarantine_code_excel/?date1=${a}&date2=${o}`})})]})}),u.jsx("tbody",{children:u.jsxs("tr",{children:[u.jsx("td",{className:"centered-cell",children:(m=(T=e==null?void 0:e.killRequest)==null?void 0:T.poultryRequest)==null?void 0:m.toLocaleString()}),u.jsx("td",{className:"centered-cell",children:(du=(uu=e==null?void 0:e.killRequest)==null?void 0:uu.poultryRequestQuantity)==null?void 0:du.toLocaleString()}),u.jsx("td",{className:"centered-cell",children:(ou=(au=e==null?void 0:e.killRequest)==null?void 0:au.poultryRequestWeight)==null?void 0:ou.toLocaleString()}),u.jsx("td",{className:"centered-cell",children:(bu=(hu=e==null?void 0:e.killRequest)==null?void 0:hu.minAge)==null?void 0:bu.toLocaleString()}),u.jsx("td",{className:"centered-cell",children:(fu=(Nu=e==null?void 0:e.killRequest)==null?void 0:Nu.maxAge)==null?void 0:fu.toLocaleString()}),u.jsx("td",{className:"centered-cell",children:(Hu=(Su=e==null?void 0:e.killRequest)==null?void 0:Su.avgAge)==null?void 0:Hu.toLocaleString()}),u.jsx("td",{className:"centered-cell",children:(wu=(vu=e==null?void 0:e.killRequest)==null?void 0:vu.lenKillRequest)==null?void 0:wu.toLocaleString()}),u.jsx("td",{className:"centered-cell",children:(Ru=(Lu=e==null?void 0:e.killRequest)==null?void 0:Lu.killRequestQuantity)==null?void 0:Ru.toLocaleString()}),u.jsx("td",{className:"centered-cell",children:(ku=(Eu=e==null?void 0:e.killRequest)==null?void 0:Eu.killRequestWeight)==null?void 0:ku.toLocaleString()}),u.jsx("td",{className:"centered-cell",children:(qu=e==null?void 0:e.killRequest)==null?void 0:qu.avgWeight}),u.jsx("td",{className:"centered-cell",children:(Wu=(d=e==null?void 0:e.killRequest)==null?void 0:d.lenKillRequestHasCode)==null?void 0:Wu.toLocaleString()}),u.jsx("td",{className:"centered-cell",children:(Bu=(Iu=e==null?void 0:e.killRequest)==null?void 0:Iu.quantityOfKillRequestHasCode)==null?void 0:Bu.toLocaleString()}),u.jsx("td",{className:"centered-cell",children:(Ku=(_u=e==null?void 0:e.killRequest)==null?void 0:_u.lenKillRequestHasQuarantine)==null?void 0:Ku.toLocaleString()}),u.jsx("td",{className:"centered-cell",children:(Pu=(Ou=e==null?void 0:e.killRequest)==null?void 0:Ou.quantityOfKillRequestHasQuarantine)==null?void 0:Pu.toLocaleString()}),u.jsx("td",{className:"centered-cell",children:(Mu=($u=e==null?void 0:e.killRequest)==null?void 0:$u.lenKillRequestHasNotCode)==null?void 0:Mu.toLocaleString()}),u.jsx("td",{className:"centered-cell",children:(Gu=(Qu=e==null?void 0:e.killRequest)==null?void 0:Qu.quantityOfKillRequestHasNotCode)==null?void 0:Gu.toLocaleString()}),u.jsx("td",{className:"centered-cell",children:(zu=(Yu=e==null?void 0:e.killRequest)==null?void 0:Yu.differenceBar)==null?void 0:zu.toLocaleString()})]})})]})}),u.jsx(y,{container:!0,alignItems:"center",justifyContent:"center",xs:12,m:1,children:u.jsx(p,{variant:"body2",color:"primary",children:"تفکیک بارهای دولتی، آزاد و خارج از استان"})}),u.jsx("div",{style:{overflowX:"auto"},children:u.jsxs("table",{className:"table-styles",children:[u.jsx("thead",{children:u.jsxs("tr",{children:[u.jsx("th",{className:"blue-cell",children:u.jsx(O,{text:"تعداد بار دولتی",link:`government_burden_excel/?date1=${a}&date2=${o}`})}),u.jsx("th",{className:"blue-cell",children:u.jsx(O,{text:"مجموع قطعه بارهای دولتی",link:`government_burden_excel/?date1=${a}&date2=${o}`})}),u.jsx("th",{className:"blue-cell",children:u.jsx(O,{text:"مجموع وزن بارهای دولتی",link:`government_burden_excel/?date1=${a}&date2=${o}`})}),u.jsxs("th",{className:"blue-cell",children:[" ",u.jsx(O,{text:"بارهای دولتی دارای کد قرنطینه احراز شده",link:`government_burden_excel/?date1=${a}&date2=${o}`})]}),u.jsx("th",{className:"blue-cell",children:u.jsx(O,{text:"حجم دولتی احراز شده از قرنطینه",link:`goverment_bar_state_with_a_certified_quarantine_code_excel/?date1=${a}&date2=${o}`})}),u.jsx("th",{className:"light-green-cell",children:u.jsx(O,{text:" تعداد بارهای آزاد",link:`free_loads_excel/?date1=${a}&date2=${o}`})}),u.jsx("th",{className:"light-green-cell",children:u.jsx(O,{text:" مجموع قطعه بارهای بارهای آزاد",link:`free_loads_excel/?date1=${a}&date2=${o}`})}),u.jsx("th",{className:"light-blue-cell",children:"مجموع وزن بارهای آزاد"}),u.jsx("th",{className:"light-blue-cell",children:"بارهای آزاد احراز شده از قرنطینه"}),u.jsx("th",{className:"light-blue-cell",children:"مجموع حجم بارهای آزاد احراز شده از قرنطینه"}),u.jsx("th",{className:"light-blue-cell",children:"کل بارهای آزاد دارای کد قرنطینه"}),u.jsx("th",{className:"sky-blue-cell",children:"تعداد بارهای خارج از استان"}),u.jsx("th",{className:"sky-blue-cell",children:"مجموع قطعه بارهای خارج از استان"})]})}),u.jsx("tbody",{children:u.jsxs("tr",{children:[u.jsx("td",{className:"centered-cell",children:(Vu=(Uu=e==null?void 0:e.freeAndGovernmentKillRequest)==null?void 0:Uu.lenGovernment)==null?void 0:Vu.toLocaleString()}),u.jsx("td",{className:"centered-cell",children:(Ju=(Xu=e==null?void 0:e.freeAndGovernmentKillRequest)==null?void 0:Xu.quantityGovernment)==null?void 0:Ju.toLocaleString()}),u.jsx("td",{className:"centered-cell",children:(Du=(Zu=e==null?void 0:e.freeAndGovernmentKillRequest)==null?void 0:Zu.weightGovernment)==null?void 0:Du.toLocaleString()}),u.jsx("td",{className:"centered-cell",children:(mu=(Tu=e==null?void 0:e.freeAndGovernmentKillRequest)==null?void 0:Tu.lenGovernmentQuarantineQuantity)==null?void 0:mu.toLocaleString()}),u.jsx("td",{className:"centered-cell",children:(e6=(u6=e==null?void 0:e.freeAndGovernmentKillRequest)==null?void 0:u6.realQuantityBarGovernmentQuarantineQuantity)==null?void 0:e6.toLocaleString()}),u.jsx("td",{className:"centered-cell",children:(t6=(l6=e==null?void 0:e.freeAndGovernmentKillRequest)==null?void 0:l6.lenFree)==null?void 0:t6.toLocaleString()}),u.jsx("td",{className:"centered-cell",children:(y6=(r6=e==null?void 0:e.freeAndGovernmentKillRequest)==null?void 0:r6.quantityFree)==null?void 0:y6.toLocaleString()}),u.jsx("td",{className:"centered-cell",children:(g6=(A6=e==null?void 0:e.freeAndGovernmentKillRequest)==null?void 0:A6.weightFree)==null?void 0:g6.toLocaleString()}),u.jsx("td",{className:"centered-cell",children:(p6=(F6=e==null?void 0:e.freeAndGovernmentKillRequest)==null?void 0:F6.lenFreeQuarantineQuantity)==null?void 0:p6.toLocaleString()}),u.jsx("td",{className:"centered-cell",children:(N6=(b6=e==null?void 0:e.freeAndGovernmentKillRequest)==null?void 0:b6.realQuantityBarFreeQuarantineQuantity)==null?void 0:N6.toLocaleString()}),u.jsx("td",{className:"centered-cell",children:(S6=(f6=e==null?void 0:e.freeAndGovernmentKillRequest)==null?void 0:f6.lenFreeHasCode)==null?void 0:S6.toLocaleString()}),u.jsx("td",{className:"centered-cell",children:(v6=(H6=e==null?void 0:e.freeAndGovernmentKillRequest)==null?void 0:H6.lenOutKillRequest)==null?void 0:v6.toLocaleString()}),u.jsx("td",{className:"centered-cell",children:(L6=(w6=e==null?void 0:e.freeAndGovernmentKillRequest)==null?void 0:w6.quantityOutKillRequest)==null?void 0:L6.toLocaleString()})]})})]})}),u.jsx(y,{container:!0,alignItems:"center",justifyContent:"center",xs:12,m:1,children:u.jsx(p,{variant:"body2",color:"primary",children:"اطلاعات بارهای تخلیه شده و تکمیل شده توسط کشتارگاه"})}),u.jsx("div",{children:u.jsxs("table",{className:"table-styles",children:[u.jsx("thead",{children:u.jsxs("tr",{children:[u.jsx("th",{className:"sky-blue-cell",children:"تعداد بارهای ورودی به کشتارگاه"}),u.jsx("th",{className:"sky-blue-cell",children:"مجموعه قطعه بارهای ورودی به کشتارگاه"}),u.jsx("th",{className:"sky-blue-cell",children:"وزن بارهای ورودی به کشتارگاه"}),u.jsx("th",{className:"sky-blue-cell",children:"میانگین وزن"}),u.jsx("th",{className:"brown-cell",children:"وزن لاشه مرغ بعد از کسر 25% افت"}),u.jsx("th",{className:"light-blue-cell",children:"تعداد بار تخلیه شده دامپزشک"}),u.jsx("th",{className:"light-blue-cell",children:"مجموع حجم تخلیه شده دامپزشک"}),u.jsx("th",{className:"light-blue-cell",children:"مجموع وزن تخلیه شده دامپزشک"}),u.jsx("th",{className:"blue-cell",children:"تعداد بارهای تکمیل شده کشتارگاه"}),u.jsx("th",{className:"blue-cell",children:"مجموع حجم نهایی در کشتارگاه"}),u.jsx("th",{className:"blue-cell",children:"مجموع وزن نهایی در کشتارگاه"}),u.jsx("th",{className:"blue-cell",children:"بارهای تخلیه شده فاقد کد قرنطینه"}),u.jsx("th",{className:"blue-cell",children:"قطعه بارهای تخلیه شده فاقد کد قرنطینه"}),u.jsx("th",{className:"blue-cell",children:"وزن بارهای تخلیه شده فاقد کد قرنطینه"})]})}),u.jsx("tbody",{children:u.jsxs("tr",{children:[u.jsx("td",{className:"centered-cell",children:(E6=(R6=e==null?void 0:e.completeKillRequest)==null?void 0:R6.lenCompleteWithKillHouseAndVet)==null?void 0:E6.toLocaleString()}),u.jsx("td",{className:"centered-cell",children:(q6=(k6=e==null?void 0:e.completeKillRequest)==null?void 0:k6.quantityWithKillHouseAndVet)==null?void 0:q6.toLocaleString()}),u.jsx("td",{className:"centered-cell",children:(I6=(W6=e==null?void 0:e.completeKillRequest)==null?void 0:W6.weightWithKillHouseAndVet)==null?void 0:I6.toLocaleString()}),u.jsx("td",{className:"centered-cell",children:(B6=e==null?void 0:e.completeKillRequest)==null?void 0:B6.avgWeight}),u.jsx("td",{className:"centered-cell",children:(K6=(_6=e==null?void 0:e.completeKillRequest)==null?void 0:_6.less25)==null?void 0:K6.toLocaleString()}),u.jsx("td",{className:"centered-cell",children:(P6=(O6=e==null?void 0:e.completeKillRequest)==null?void 0:O6.lenCompleteWithVet)==null?void 0:P6.toLocaleString()}),u.jsx("td",{className:"centered-cell",children:(M6=($6=e==null?void 0:e.completeKillRequest)==null?void 0:$6.quantityCompleteWithVet)==null?void 0:M6.toLocaleString()}),u.jsx("td",{className:"centered-cell",children:(G6=(Q6=e==null?void 0:e.completeKillRequest)==null?void 0:Q6.weightCompleteWithVet)==null?void 0:G6.toLocaleString()}),u.jsx("td",{className:"centered-cell",children:(z6=(Y6=e==null?void 0:e.completeKillRequest)==null?void 0:Y6.lenCompleteWithKillHouse)==null?void 0:z6.toLocaleString()}),u.jsx("td",{className:"centered-cell",children:(V6=(U6=e==null?void 0:e.completeKillRequest)==null?void 0:U6.quantityFinalKillHouse)==null?void 0:V6.toLocaleString()}),u.jsx("td",{className:"centered-cell",children:(J6=(X6=e==null?void 0:e.completeKillRequest)==null?void 0:X6.weightFinalKillHouse)==null?void 0:J6.toLocaleString()}),u.jsx("td",{className:"centered-cell",children:(D6=(Z6=e==null?void 0:e.completeKillRequest)==null?void 0:Z6.lenKillReqsHasNotCode)==null?void 0:D6.toLocaleString()}),u.jsx("td",{className:"centered-cell",children:(m6=(T6=e==null?void 0:e.completeKillRequest)==null?void 0:T6.quantityKillReqsHasNotCode)==null?void 0:m6.toLocaleString()}),u.jsx("td",{className:"centered-cell",children:(e0=(u0=e==null?void 0:e.completeKillRequest)==null?void 0:u0.weightKillReqsHasNotCode)==null?void 0:e0.toLocaleString()})]})})]})}),u.jsx(y,{container:!0,alignItems:"center",justifyContent:"center",xs:12,m:1,children:u.jsx(p,{variant:"body2",color:"primary",children:"اطلاعات بارهای تخلیه نشده و تخلیه نشده توسط کشتارگاه"})}),u.jsx("div",{children:u.jsxs("table",{className:"table-styles",children:[u.jsx("thead",{children:u.jsxs("tr",{children:[u.jsx("th",{className:"red-cell",children:"تعداد بار تخلیه نشده"}),u.jsx("th",{className:"red-cell",children:"مجموع بارهای تخلیه نشده"}),u.jsx("th",{className:"red-cell",children:"وزن بارهای تخلیه نشده"}),u.jsx("th",{className:"light-green-cell",children:"بارهای تخلیه شده و عدم تکمیل توسط کشتارگاه"}),u.jsx("th",{className:"light-green-cell",children:"قطعه بارهای تخلیه شده و عدم تکمیل توسط کشتارگاه"}),u.jsx("th",{className:"light-green-cell",children:"وزن بارهای تخلیه شده و عدم تکمیل توسط کشتارگاه"})]})}),u.jsx("tbody",{children:u.jsxs("tr",{children:[u.jsx("td",{className:"centered-cell",children:(t0=(l0=e==null?void 0:e.killRequestHasNotAssigment)==null?void 0:l0.lenKillReqsNotAssigment)==null?void 0:t0.toLocaleString()}),u.jsx("td",{className:"centered-cell",children:(n0=(r0=e==null?void 0:e.killRequestHasNotAssigment)==null?void 0:r0.quantityKillReqsNotAssigment)==null?void 0:n0.toLocaleString()}),u.jsx("td",{className:"centered-cell",children:(c0=(s0=e==null?void 0:e.killRequestHasNotAssigment)==null?void 0:s0.weightKillReqsNotAssigment)==null?void 0:c0.toLocaleString()}),u.jsx("td",{className:"centered-cell",children:(a0=(d0=e==null?void 0:e.killRequestHasNotAssigment)==null?void 0:d0.lenKillRequestHasNotComplete)==null?void 0:a0.toLocaleString()}),u.jsx("td",{className:"centered-cell",children:(h0=(o0=e==null?void 0:e.killRequestHasNotAssigment)==null?void 0:o0.quantityKillRequestHasNotComplete)==null?void 0:h0.toLocaleString()}),u.jsx("td",{className:"centered-cell",children:(x0=(C0=e==null?void 0:e.killRequestHasNotAssigment)==null?void 0:C0.weightKillRequestHasNotComplete)==null?void 0:x0.toLocaleString()})]})})]})}),u.jsx(y,{container:!0,alignItems:"center",justifyContent:"center",xs:12,m:1,children:u.jsx(p,{variant:"body2",color:"primary",children:"حجم نهایی کم شده از سالن مرغدار (ملاک کشتار)"})}),u.jsx("div",{className:"table-container",children:u.jsxs("table",{className:"table-styles",children:[u.jsx("thead",{children:u.jsxs("tr",{children:[u.jsx("th",{className:"blue-cell",children:"ملاک قطعه کشتار شده"}),u.jsx("th",{className:"blue-cell",children:"ملاک وزن کشتار شده"})]})}),u.jsx("tbody",{children:u.jsxs("tr",{children:[u.jsx("td",{className:"centered-cell",children:(j0=(i0=e==null?void 0:e.finalQuantityAndWeight)==null?void 0:i0.finalQuantity)==null?void 0:j0.toLocaleString()}),u.jsx("td",{className:"centered-cell",children:(A0=(y0=e==null?void 0:e.finalQuantityAndWeight)==null?void 0:y0.finalWeight)==null?void 0:A0.toLocaleString()})]})})]})}),u.jsx(y,{xs:12,mt:2,children:u.jsx(p,{variant:"body2",color:"primary",children:"توزیع از کشتارگاه به مباشر و صنف"})}),u.jsxs(y,{container:!0,justifyContent:"space-between",xs:12,mt:1,children:[u.jsxs(p,{variant:"body2",children:["تعداد خریداران:"," ",(F0=(g0=e==null?void 0:e.killHouseWareHouseTotalReportDailyBroadCast)==null?void 0:g0.buyers)==null?void 0:F0.toLocaleString()]}),u.jsxs(p,{variant:"body2",children:["تعداد مباشر تخصیص داده شده:"," ",(b0=(p0=e==null?void 0:e.killHouseWareHouseTotalReportDailyBroadCast)==null?void 0:p0.numberOfSteward)==null?void 0:b0.toLocaleString()]}),u.jsxs(p,{variant:"body2",children:["تعداد صنف تخصیص داده شده:"," ",(f0=(N0=e==null?void 0:e.killHouseWareHouseTotalReportDailyBroadCast)==null?void 0:N0.numberOfGuild)==null?void 0:f0.toLocaleString()]})]}),u.jsx("div",{className:"table-container",children:u.jsxs("table",{className:"table-styles",style:{width:"100%"},children:[u.jsxs("thead",{children:[u.jsxs("tr",{children:[u.jsx("th",{className:"strong-blue-cell",colSpan:2,children:"ورودی از سردخانه"}),u.jsx("th",{className:"strong-blue-cell",colSpan:2,children:"خرید خارج از استان"}),u.jsx("th",{className:"strong-blue-cell",colSpan:2,children:"بارهای روزانه"}),u.jsx("th",{className:"strong-blue-cell",colSpan:2,children:"جمع کل انبار"}),u.jsx("th",{className:"strong-blue-cell",colSpan:2,children:"توزیع شده"}),u.jsx("th",{className:"strong-blue-cell",colSpan:2,children:"توزیع/تحویل شده"}),u.jsx("th",{className:"strong-blue-cell",colSpan:2,children:"مانده انبار"})]}),u.jsxs("tr",{children:[u.jsx("th",{className:"centered-cell yellow-cell",children:"تعداد"}),u.jsx("th",{className:"centered-cell yellow-cell",children:"وزن"}),u.jsx("th",{className:"centered-cell yellow-cell",children:"تعداد"}),u.jsx("th",{className:"centered-cell yellow-cell",children:"وزن"}),u.jsx("th",{className:"centered-cell yellow-cell",children:"تعداد"}),u.jsx("th",{className:"centered-cell yellow-cell",children:"وزن"}),u.jsx("th",{className:"centered-cell yellow-cell",children:"تعداد"}),u.jsx("th",{className:"centered-cell yellow-cell",children:"وزن"}),u.jsx("th",{className:"centered-cell yellow-cell",children:"تعداد"}),u.jsx("th",{className:"centered-cell yellow-cell",children:"وزن"}),u.jsx("th",{className:"centered-cell yellow-cell",children:"تعداد"}),u.jsx("th",{className:"centered-cell yellow-cell",children:"وزن"}),u.jsx("th",{className:"centered-cell yellow-cell",children:"تعداد"}),u.jsx("th",{className:"centered-cell yellow-cell",children:"وزن"})]})]}),u.jsx("tbody",{children:u.jsxs("tr",{children:[u.jsx("td",{className:"centered-cell detail-cell",children:(H0=(S0=e==null?void 0:e.killHouseWareHouseTotalReportDailyBroadCast)==null?void 0:S0.incomingQuantityOfColdHouse)==null?void 0:H0.toLocaleString()}),u.jsx("td",{className:"centered-cell detail-cell",children:(w0=(v0=e==null?void 0:e.killHouseWareHouseTotalReportDailyBroadCast)==null?void 0:v0.incomingWeightOfColdHouse)==null?void 0:w0.toLocaleString()}),u.jsx("td",{className:"centered-cell detail-cell",children:(R0=(L0=e==null?void 0:e.killHouseWareHouseTotalReportDailyBroadCast)==null?void 0:L0.totalNumberOfFreeCarcasses)==null?void 0:R0.toLocaleString()}),u.jsx("td",{className:"centered-cell detail-cell",children:(k0=(E0=e==null?void 0:e.killHouseWareHouseTotalReportDailyBroadCast)==null?void 0:E0.totalFreeWeightOfCarcasses)==null?void 0:k0.toLocaleString()}),u.jsx("td",{className:"centered-cell detail-cell",children:(W0=(q0=e==null?void 0:e.killHouseWareHouseTotalReportDailyBroadCast)==null?void 0:q0.totalNumberOfCarcasses)==null?void 0:W0.toLocaleString()}),u.jsx("td",{className:"centered-cell detail-cell",children:(B0=(I0=e==null?void 0:e.killHouseWareHouseTotalReportDailyBroadCast)==null?void 0:I0.totalWeightOfCarcasses)==null?void 0:B0.toLocaleString()}),u.jsx("td",{className:"centered-cell detail-cell",children:(K0=(_0=e==null?void 0:e.killHouseWareHouseTotalReportDailyBroadCast)==null?void 0:_0.finalTotalNumberOfCarcasses)==null?void 0:K0.toLocaleString()}),u.jsx("td",{className:"centered-cell detail-cell",children:(P0=(O0=e==null?void 0:e.killHouseWareHouseTotalReportDailyBroadCast)==null?void 0:O0.finalTotalWeightOfCarcasses)==null?void 0:P0.toLocaleString()}),u.jsx("td",{className:"centered-cell detail-cell",children:(M0=($0=e==null?void 0:e.killHouseWareHouseTotalReportDailyBroadCast)==null?void 0:$0.totalAllocatedQuantity)==null?void 0:M0.toLocaleString()}),u.jsx("td",{className:"centered-cell detail-cell",children:(G0=(Q0=e==null?void 0:e.killHouseWareHouseTotalReportDailyBroadCast)==null?void 0:Q0.totalAllocatedWeight)==null?void 0:G0.toLocaleString()}),u.jsx("td",{className:"centered-cell detail-cell",children:(z0=(Y0=e==null?void 0:e.killHouseWareHouseTotalReportDailyBroadCast)==null?void 0:Y0.totalAcceptedAllocatedQuantity)==null?void 0:z0.toLocaleString()}),u.jsx("td",{className:"centered-cell detail-cell",children:(V0=(U0=e==null?void 0:e.killHouseWareHouseTotalReportDailyBroadCast)==null?void 0:U0.totalAcceptedAllocatedWeight)==null?void 0:V0.toLocaleString()}),u.jsx("td",{className:"centered-cell detail-cell",children:(J0=(X0=e==null?void 0:e.killHouseWareHouseTotalReportDailyBroadCast)==null?void 0:X0.totalRemainQuantity)==null?void 0:J0.toLocaleString()}),u.jsx("td",{className:"centered-cell detail-cell",children:(D0=(Z0=e==null?void 0:e.killHouseWareHouseTotalReportDailyBroadCast)==null?void 0:Z0.totalRemainWeight)==null?void 0:D0.toLocaleString()})]})})]})}),u.jsx(y,{xs:12,mt:2,children:u.jsx(p,{variant:"body2",color:"primary",children:"توزیع از مباشر به صنف"})}),u.jsxs(y,{container:!0,justifyContent:"space-between",xs:12,mt:1,children:[u.jsxs(p,{variant:"body2",children:["تعداد خریداران:"," ",(m0=(T0=e==null?void 0:e.stewardWareHouseTotalReportDailyBroadCast)==null?void 0:T0.buyers)==null?void 0:m0.toLocaleString()]}),u.jsxs(p,{variant:"body2",children:["تعداد صنف تخصیص داده شده:"," ",(ee=(ue=e==null?void 0:e.stewardWareHouseTotalReportDailyBroadCast)==null?void 0:ue.numberOfGuild)==null?void 0:ee.toLocaleString()]})]}),u.jsx("div",{className:"table-container",children:u.jsxs("table",{className:"table-styles",style:{width:"100%"},children:[u.jsxs("thead",{children:[u.jsxs("tr",{children:[u.jsx("th",{className:"strong-blue-cell",colSpan:2,children:"ورودی از سردخانه"}),u.jsx("th",{className:"strong-blue-cell",colSpan:2,children:"خرید خارج از استان"}),u.jsx("th",{className:"strong-blue-cell",colSpan:2,children:"بارهای روزانه"}),u.jsx("th",{className:"strong-blue-cell",colSpan:2,children:"جمع کل انبار"}),u.jsx("th",{className:"strong-blue-cell",colSpan:2,children:"توزیع شده"}),u.jsx("th",{className:"strong-blue-cell",colSpan:2,children:"توزیع/تحویل شده"}),u.jsx("th",{className:"strong-blue-cell",colSpan:2,children:"مانده انبار"})]}),u.jsxs("tr",{children:[u.jsx("th",{className:"centered-cell yellow-cell",children:"تعداد"}),u.jsx("th",{className:"centered-cell yellow-cell",children:"وزن"}),u.jsx("th",{className:"centered-cell yellow-cell",children:"تعداد"}),u.jsx("th",{className:"centered-cell yellow-cell",children:"وزن"}),u.jsx("th",{className:"centered-cell yellow-cell",children:"تعداد"}),u.jsx("th",{className:"centered-cell yellow-cell",children:"وزن"}),u.jsx("th",{className:"centered-cell yellow-cell",children:"تعداد"}),u.jsx("th",{className:"centered-cell yellow-cell",children:"وزن"}),u.jsx("th",{className:"centered-cell yellow-cell",children:"تعداد"}),u.jsx("th",{className:"centered-cell yellow-cell",children:"وزن"}),u.jsx("th",{className:"centered-cell yellow-cell",children:"تعداد"}),u.jsx("th",{className:"centered-cell yellow-cell",children:"وزن"}),u.jsx("th",{className:"centered-cell yellow-cell",children:"تعداد"}),u.jsx("th",{className:"centered-cell yellow-cell",children:"وزن"})]})]}),u.jsx("tbody",{children:u.jsxs("tr",{children:[u.jsx("td",{className:"centered-cell detail-cell",children:(te=(le=e==null?void 0:e.stewardWareHouseTotalReportDailyBroadCast)==null?void 0:le.incomingQuantityOfColdHouse)==null?void 0:te.toLocaleString()}),u.jsx("td",{className:"centered-cell detail-cell",children:(ne=(re=e==null?void 0:e.stewardWareHouseTotalReportDailyBroadCast)==null?void 0:re.incomingWeightOfColdHouse)==null?void 0:ne.toLocaleString()}),u.jsx("td",{className:"centered-cell detail-cell",children:(ce=(se=e==null?void 0:e.stewardWareHouseTotalReportDailyBroadCast)==null?void 0:se.totalNumberOfFreeCarcasses)==null?void 0:ce.toLocaleString()}),u.jsx("td",{className:"centered-cell detail-cell",children:(ae=(de=e==null?void 0:e.stewardWareHouseTotalReportDailyBroadCast)==null?void 0:de.totalFreeWeightOfCarcasses)==null?void 0:ae.toLocaleString()}),u.jsx("td",{className:"centered-cell detail-cell",children:(he=(oe=e==null?void 0:e.stewardWareHouseTotalReportDailyBroadCast)==null?void 0:oe.totalNumberOfCarcasses)==null?void 0:he.toLocaleString()}),u.jsx("td",{className:"centered-cell detail-cell",children:(xe=(Ce=e==null?void 0:e.stewardWareHouseTotalReportDailyBroadCast)==null?void 0:Ce.totalWeightOfCarcasses)==null?void 0:xe.toLocaleString()}),u.jsx("td",{className:"centered-cell detail-cell",children:(je=(ie=e==null?void 0:e.stewardWareHouseTotalReportDailyBroadCast)==null?void 0:ie.finalTotalNumberOfCarcasses)==null?void 0:je.toLocaleString()}),u.jsx("td",{className:"centered-cell detail-cell",children:(Ae=(ye=e==null?void 0:e.stewardWareHouseTotalReportDailyBroadCast)==null?void 0:ye.finalTotalWeightOfCarcasses)==null?void 0:Ae.toLocaleString()}),u.jsx("td",{className:"centered-cell detail-cell",children:(Fe=(ge=e==null?void 0:e.stewardWareHouseTotalReportDailyBroadCast)==null?void 0:ge.totalAllocatedQuantity)==null?void 0:Fe.toLocaleString()}),u.jsx("td",{className:"centered-cell detail-cell",children:(be=(pe=e==null?void 0:e.stewardWareHouseTotalReportDailyBroadCast)==null?void 0:pe.totalAllocatedWeight)==null?void 0:be.toLocaleString()}),u.jsx("td",{className:"centered-cell detail-cell",children:(fe=(Ne=e==null?void 0:e.stewardWareHouseTotalReportDailyBroadCast)==null?void 0:Ne.totalAcceptedAllocatedQuantity)==null?void 0:fe.toLocaleString()}),u.jsx("td",{className:"centered-cell detail-cell",children:(He=(Se=e==null?void 0:e.stewardWareHouseTotalReportDailyBroadCast)==null?void 0:Se.totalAcceptedAllocatedWeight)==null?void 0:He.toLocaleString()}),u.jsx("td",{className:"centered-cell detail-cell",children:(we=(ve=e==null?void 0:e.stewardWareHouseTotalReportDailyBroadCast)==null?void 0:ve.totalRemainQuantity)==null?void 0:we.toLocaleString()}),u.jsx("td",{className:"centered-cell detail-cell",children:(Re=(Le=e==null?void 0:e.stewardWareHouseTotalReportDailyBroadCast)==null?void 0:Le.totalRemainWeight)==null?void 0:Re.toLocaleString()})]})})]})})]})},xl=()=>{var h,N,f,S,F,H,b,A,g,x,w,v,R,E,k,q,W,I,B,_,L,xu,Y,lu,tu,ru,nu,su,cu,c,Q,K,U,V,X,J,Z,D,T,m,uu,du,au,ou,hu,bu,Nu,fu,Su,Hu,vu,wu,Lu,Ru,Eu,ku,qu;const n=h6(),[,,a,s,o,l]=P.useContext(Fu),{slaughterSurveillance:e}=pu(d=>d.provinceSlice),[C]=P.useContext(Fu),i=Te();return P.useEffect(()=>{const d=M(new Date).format("YYYY-MM-DD");s(d),l(d)},[]),P.useEffect(()=>{n(me({selectedDate1:a,selectedDate2:o}))},[a,o]),u.jsxs(y,{container:!0,p:z.TINY,xs:12,justifyContent:"center",alignItems:"center",children:[u.jsxs(y,{container:!0,gap:z.SMALL,xs:12,mt:4,children:[u.jsx(y,{children:u.jsx(yu,{label:"از تاریخ",id:"date",renderInput:d=>u.jsx(ju,{size:"small",style:{width:"160px"},...d}),value:a,onChange:d=>{s(M(d).format("YYYY-MM-DD"))}})}),u.jsx(y,{children:u.jsx(yu,{label:"تا تاریخ",id:"date",renderInput:d=>u.jsx(ju,{size:"small",style:{width:"160px"},...d}),value:o,onChange:d=>{l(M(d).format("YYYY-MM-DD"))}})}),u.jsx(Au,{title:"خروجی اکسل گزارش پایش کشتارگاه",children:u.jsx(c6,{color:"primary",onClick:()=>{C({vertical:"top",horizontal:"center",msg:"فایل اکسل در حال دانلود می باشد، این علمیات ممکن است زمان بر باشد لطفا صبر کنید.",severity:"success"});const d=`${gu.defaults.baseURL}comprehensive_report_of_the_slaughterhouse_excel/?date1=${a}&date2=${o}`;window.location.href=d},children:u.jsx(o6,{size:32})})})]}),u.jsxs(p,{m:2,variant:"body1",children:["گزارش جامع خریداران در فرآیند کشتار مرغ گوشتی ",i]}),u.jsx("div",{children:u.jsxs("table",{className:"table-styles",children:[u.jsx("thead",{children:u.jsxs("tr",{className:"green-header",children:[u.jsx("th",{children:"تعداد کل بارهای ایجاد شده (زنده)"}),u.jsx("th",{children:"وزن کل بارهای ایجاد شده (زنده)"}),u.jsx("th",{children:"حجم کل بارهای تحویلی کشتارگاه (زنده)"}),u.jsx("th",{children:"وزن کل بارهای تحویلی کشتارگاه (زنده)"}),u.jsx("th",{children:"وزن تحویلی با افت 25 درصد"}),u.jsx("th",{children:"تعداد ورودی به انبار کشتارگاه (لاشه)"}),u.jsx("th",{children:"وزن ورودی به انبار کشتارگاه (لاشه)"}),u.jsx("th",{children:"درصد لاشه ورودی به انبار کشتارگاه نسبت به بار تحویلی کشتارگاه"}),u.jsx("th",{children:"درصد وزن لاشه ورودی به انبار کشتارگاه نسبت به بار تحویلی کشتارگاه"}),u.jsx("th",{children:"درصد تعداد بار تحویلی نسبت به بار ایحاد شده"}),u.jsx("th",{children:"درصد وزن بار تحویلی نسبت به بار ایحاد شده"})]})}),u.jsx("tbody",{children:u.jsxs("tr",{children:[u.jsx("td",{className:"centered-cell",children:(N=(h=e==null?void 0:e.allKillRequest)==null?void 0:h.quantityOfCreateBar)==null?void 0:N.toLocaleString()}),u.jsx("td",{className:"centered-cell",children:(S=(f=e==null?void 0:e.allKillRequest)==null?void 0:f.weightOfCreateBar)==null?void 0:S.toLocaleString()}),u.jsx("td",{className:"centered-cell",children:(H=(F=e==null?void 0:e.allKillRequest)==null?void 0:F.quantityOfReceiveBar)==null?void 0:H.toLocaleString()}),u.jsx("td",{className:"centered-cell",children:(A=(b=e==null?void 0:e.allKillRequest)==null?void 0:b.weightOfReceiveBar)==null?void 0:A.toLocaleString()}),u.jsx("td",{className:"centered-cell",children:(x=(g=e==null?void 0:e.allKillRequest)==null?void 0:g.weightWithTwentyFivePercentReceive)==null?void 0:x.toLocaleString()}),u.jsx("td",{className:"centered-cell",children:(v=(w=e==null?void 0:e.allKillRequest)==null?void 0:w.quantityWarehouse)==null?void 0:v.toLocaleString()}),u.jsx("td",{className:"centered-cell",children:(E=(R=e==null?void 0:e.allKillRequest)==null?void 0:R.weightWarehouse)==null?void 0:E.toLocaleString()}),u.jsxs("td",{className:"centered-cell",children:[(q=(k=e==null?void 0:e.allKillRequest)==null?void 0:k.quantityPercentWarehouse)==null?void 0:q.toLocaleString(),"%"]}),u.jsxs("td",{className:"centered-cell",children:[(I=(W=e==null?void 0:e.allKillRequest)==null?void 0:W.weightPercentWarehouse)==null?void 0:I.toLocaleString(),"%"]}),u.jsxs("td",{className:"centered-cell",children:[(_=(B=e==null?void 0:e.allKillRequest)==null?void 0:B.quantityPercentReceive)==null?void 0:_.toLocaleString(),"%"]}),u.jsxs("td",{className:"centered-cell",children:[(xu=(L=e==null?void 0:e.allKillRequest)==null?void 0:L.weightPercentReceive)==null?void 0:xu.toLocaleString(),"%"]})]})})]})}),u.jsx(y,{xs:12,children:u.jsxs(p,{m:2,variant:"body1",color:"secondary",children:["اطلاعات کلی توزیع و پخش مرغ گرم از تاریخ"," ",G((Y=e==null?void 0:e.generalBroadcastInformations)==null?void 0:Y.date1)," ","تا تاریخ"," ",G((lu=e==null?void 0:e.generalBroadcastInformations)==null?void 0:lu.date2)]})}),u.jsx("div",{children:u.jsxs("table",{className:"table-styles",children:[u.jsx("thead",{children:u.jsxs("tr",{className:"green-header",children:[u.jsx("th",{children:"تعداد خریداران"}),u.jsx("th",{children:"تعداد کشتار داخل استان"}),u.jsx("th",{children:"وزن کشتار داخل استان"}),u.jsx("th",{children:"تعداد خرید خارج استان"}),u.jsx("th",{children:"وزن خرید خارج استان"}),u.jsx("th",{children:"تعداد جمع کل انبار"}),u.jsx("th",{children:"وزن جمع کل انبار"}),u.jsx("th",{children:"تعداد توزیع شده"}),u.jsx("th",{children:"وزن توزیع شده"}),u.jsx("th",{children:"تعداد توزیع / تحویل شده"}),u.jsx("th",{children:"وزن توزیع / تحویل شده"}),u.jsx("th",{children:"تعداد مانده انبار"}),u.jsx("th",{children:"وزن مانده انبار"}),u.jsx("th",{children:"درصد توزیع نسبت به ورودی به انبار"}),u.jsx("th",{children:"تعداد مباشر تخصیص داده شده"}),u.jsx("th",{children:"تعداد صنف تخصیص داده شده"})]})}),u.jsx("tbody",{children:u.jsxs("tr",{children:[u.jsx("td",{className:"centered-cell",children:(ru=(tu=e==null?void 0:e.generalBroadcastInformations)==null?void 0:tu.numberOfBuyer)==null?void 0:ru.toLocaleString()}),u.jsx("td",{className:"centered-cell",children:(su=(nu=e==null?void 0:e.generalBroadcastInformations)==null?void 0:nu.quantityOfKillRequestInProvince)==null?void 0:su.toLocaleString()}),u.jsx("td",{className:"centered-cell",children:(c=(cu=e==null?void 0:e.generalBroadcastInformations)==null?void 0:cu.weightOfKillRequestInProvince)==null?void 0:c.toLocaleString()}),u.jsx("td",{className:"centered-cell",children:(K=(Q=e==null?void 0:e.generalBroadcastInformations)==null?void 0:Q.quantityOfKillRequestOutProvince)==null?void 0:K.toLocaleString()}),u.jsx("td",{className:"centered-cell",children:(V=(U=e==null?void 0:e.generalBroadcastInformations)==null?void 0:U.weightOfKillRequestOutProvince)==null?void 0:V.toLocaleString()}),u.jsx("td",{className:"centered-cell",children:(J=(X=e==null?void 0:e.generalBroadcastInformations)==null?void 0:X.quantityCarcasses)==null?void 0:J.toLocaleString()}),u.jsx("td",{className:"centered-cell",children:(D=(Z=e==null?void 0:e.generalBroadcastInformations)==null?void 0:Z.weightCarcasses)==null?void 0:D.toLocaleString()}),u.jsx("td",{className:"centered-cell",children:(m=(T=e==null?void 0:e.generalBroadcastInformations)==null?void 0:T.allocatedQuantity)==null?void 0:m.toLocaleString()}),u.jsx("td",{className:"centered-cell",children:(du=(uu=e==null?void 0:e.generalBroadcastInformations)==null?void 0:uu.allocatedWeight)==null?void 0:du.toLocaleString()}),u.jsx("td",{className:"centered-cell",children:(ou=(au=e==null?void 0:e.generalBroadcastInformations)==null?void 0:au.acceptedAllocatedQuantity)==null?void 0:ou.toLocaleString()}),u.jsx("td",{className:"centered-cell",children:(bu=(hu=e==null?void 0:e.generalBroadcastInformations)==null?void 0:hu.acceptedAllocatedWeight)==null?void 0:bu.toLocaleString()}),u.jsx("td",{className:"centered-cell",children:(fu=(Nu=e==null?void 0:e.generalBroadcastInformations)==null?void 0:Nu.remainQuantity)==null?void 0:fu.toLocaleString()}),u.jsx("td",{className:"centered-cell",children:(Hu=(Su=e==null?void 0:e.generalBroadcastInformations)==null?void 0:Su.remainWeight)==null?void 0:Hu.toLocaleString()}),u.jsxs("td",{className:"centered-cell",children:["%",(wu=(vu=e==null?void 0:e.generalBroadcastInformations)==null?void 0:vu.percentWarehouse)==null?void 0:wu.toLocaleString()]}),u.jsx("td",{className:"centered-cell",children:(Ru=(Lu=e==null?void 0:e.generalBroadcastInformations)==null?void 0:Lu.numberOfStewards)==null?void 0:Ru.toLocaleString()}),u.jsx("td",{className:"centered-cell",children:(ku=(Eu=e==null?void 0:e.generalBroadcastInformations)==null?void 0:Eu.numberOfGiulds)==null?void 0:ku.toLocaleString()})]})})]})}),u.jsxs(y,{container:!0,xs:12,justifyContent:"center",alignItems:"center",children:[u.jsx(y,{xs:4}),u.jsx(y,{xs:4,children:u.jsx(p,{m:2,variant:"body1",color:"secondary",children:"اطلاعات کلی بارها و توزیع خریداران"})}),u.jsx(y,{xs:4,justifyContent:"end",container:!0,children:u.jsx(p,{sx:{fontSize:"10px",color:"red"},children:"*وزن (کیلوگرام)، حجم (قطعه)"})})]}),u.jsx("div",{className:"last-table-container",children:u.jsxs("table",{className:"table-styles",style:{width:"100%"},children:[u.jsxs("thead",{children:[u.jsxs("tr",{children:[u.jsx("th",{className:"strong-blue-cell",colSpan:1,rowSpan:2,children:"ردیف"})," ",u.jsx("th",{className:"strong-blue-cell",colSpan:1,rowSpan:2,children:"خریدار"})," ",u.jsx("th",{className:"strong-blue-cell",colSpan:1,rowSpan:2,children:"شهرستان"}),u.jsx("th",{className:"green-cell",colSpan:2,children:"حجم کل بارهای ایجاد شده توسط کشتارگاه ( زنده)"}),u.jsx("th",{className:"green-cell",colSpan:2,children:"حجم کل بارهای تحویلی توسط کشتارگاه( زنده)"}),u.jsx("th",{className:"strong-blue-cell",rowSpan:2,colSpan:1,children:"وزن تحویلی با افت 25%"}),u.jsxs("th",{className:"strong-blue-cell",rowSpan:2,colSpan:1,children:["درصد حجم بار ایجاد شده به تحویلی"," "]}),u.jsx("th",{className:"strong-blue-cell",colSpan:2,children:"ورودی به انبار کشتارگاه(لاشه)"}),u.jsx("th",{className:"strong-blue-cell",colSpan:2,children:"درصد لاشه ورودی به انبار کشتارگاه نسبت به بارتحویلی کشتارگاه (با افت 25 %)"}),u.jsx("th",{className:"strong-blue-cell",colSpan:2,children:"خرید خارج از استان"}),u.jsx("th",{className:"strong-blue-cell",colSpan:2,children:"جمع کل انبار"})," ",u.jsx("th",{className:"strong-blue-cell",colSpan:2,children:"توزیع شده"})," ",u.jsx("th",{className:"strong-blue-cell",colSpan:2,children:"توزیع/تحویل شده"})," ",u.jsx("th",{className:"strong-blue-cell",colSpan:2,children:"مانده انبار"}),u.jsx("th",{className:"strong-blue-cell",colSpan:1,rowSpan:2,children:"درصد وزن مانده در انبار به ورودی انبار"}),u.jsx("th",{className:"strong-blue-cell",colSpan:1,rowSpan:2,children:"تعداد مباشر/ صنف"}),u.jsx("th",{className:"strong-blue-cell",colSpan:3,children:"بارهای تخلیه شده و عدم تکمیل(تحویل)"})," "]}),u.jsxs("tr",{children:[u.jsx("th",{className:"centered-cell yellow-cell",children:"حجم"}),u.jsx("th",{className:"centered-cell yellow-cell",children:"وزن"}),u.jsx("th",{className:"centered-cell yellow-cell",children:"حجم"}),u.jsx("th",{className:"centered-cell yellow-cell",children:"وزن"}),u.jsx("th",{className:"centered-cell yellow-cell",children:"حجم"}),u.jsx("th",{className:"centered-cell yellow-cell",children:"وزن"}),u.jsx("th",{className:"centered-cell yellow-cell",children:"حجم"}),u.jsx("th",{className:"centered-cell yellow-cell",children:"وزن"}),u.jsx("th",{className:"centered-cell yellow-cell",children:"حجم"}),u.jsx("th",{className:"centered-cell yellow-cell",children:"وزن"}),u.jsx("th",{className:"centered-cell yellow-cell",children:"حجم"}),u.jsx("th",{className:"centered-cell yellow-cell",children:"وزن"}),u.jsx("th",{className:"centered-cell yellow-cell",children:"حجم"}),u.jsx("th",{className:"centered-cell yellow-cell",children:"وزن"}),u.jsx("th",{className:"centered-cell yellow-cell",children:"حجم"}),u.jsx("th",{className:"centered-cell yellow-cell",children:"وزن"}),u.jsx("th",{className:"centered-cell yellow-cell",children:"حجم"}),u.jsx("th",{className:"centered-cell yellow-cell",children:"وزن"}),u.jsx("th",{className:"centered-cell yellow-cell",children:"تعداد بار"}),u.jsx("th",{className:"centered-cell yellow-cell",children:"حجم بار "}),u.jsx("th",{className:"centered-cell yellow-cell",children:"وزن بار "})]})]}),u.jsx("tbody",{children:(qu=e==null?void 0:e.killRequestAndBroadcast)==null?void 0:qu.map((d,Wu)=>{var Iu,Bu,_u,Ku,Ou,Pu,$u,Mu,Qu,Gu,Yu,zu,Uu,Vu,Xu,Ju,Zu,Du,Tu,mu,u6,e6,l6,t6,r6;return u.jsxs("tr",{className:"row-of-table",children:[u.jsx("td",{className:"centered-cell detail-cell",children:Wu+1}),u.jsx("td",{className:"centered-cell detail-cell",children:d==null?void 0:d.name}),u.jsx("td",{className:"centered-cell detail-cell",children:d==null?void 0:d.city}),u.jsx("td",{className:"centered-cell detail-cell",children:(Iu=d==null?void 0:d.killReqQuantity)==null?void 0:Iu.toLocaleString()}),u.jsx("td",{className:"centered-cell detail-cell",children:(Bu=d==null?void 0:d.killReqWeight)==null?void 0:Bu.toLocaleString()}),u.jsx("td",{className:"centered-cell detail-cell",children:(_u=d==null?void 0:d.quantityReceiver)==null?void 0:_u.toLocaleString()}),u.jsx("td",{className:"centered-cell detail-cell",children:(Ku=d==null?void 0:d.weightReceiver)==null?void 0:Ku.toLocaleString()}),u.jsx("td",{className:"centered-cell detail-cell",children:(Ou=d==null?void 0:d.twentyFivePercentWeight)==null?void 0:Ou.toLocaleString()}),u.jsxs("td",{className:"centered-cell detail-cell",children:["%",parseInt((Pu=d==null?void 0:d.receiverPercent)==null?void 0:Pu.toLocaleString())]}),u.jsx("td",{className:"centered-cell detail-cell",children:($u=d==null?void 0:d.quantityOfCarcasses)==null?void 0:$u.toLocaleString()}),u.jsx("td",{className:"centered-cell detail-cell",children:(Mu=d==null?void 0:d.weightOfCarcasses)==null?void 0:Mu.toLocaleString()}),u.jsxs("td",{className:"centered-cell detail-cell",children:["%",parseInt((Qu=d==null?void 0:d.quantityOfLashePercent)==null?void 0:Qu.toLocaleString())]}),u.jsxs("td",{className:"centered-cell detail-cell",children:["%",parseInt((Gu=d==null?void 0:d.weightOfLashePercent)==null?void 0:Gu.toLocaleString())]}),u.jsx("td",{className:"centered-cell detail-cell",children:(Yu=d==null?void 0:d.quantityOutProvince)==null?void 0:Yu.toLocaleString()}),u.jsx("td",{className:"centered-cell detail-cell",children:(zu=d==null?void 0:d.weightOutProvince)==null?void 0:zu.toLocaleString()}),u.jsx("td",{className:"centered-cell detail-cell",children:(Uu=d==null?void 0:d.totalNumberOfCarcasses)==null?void 0:Uu.toLocaleString()}),u.jsx("td",{className:"centered-cell detail-cell",children:(Vu=d==null?void 0:d.totalWeightOfCarcasses)==null?void 0:Vu.toLocaleString()}),u.jsx("td",{className:"centered-cell detail-cell",children:(Xu=d==null?void 0:d.allocatedQuantity)==null?void 0:Xu.toLocaleString()}),u.jsx("td",{className:"centered-cell detail-cell",children:(Ju=d==null?void 0:d.allocatedWeight)==null?void 0:Ju.toLocaleString()}),u.jsx("td",{className:"centered-cell detail-cell",children:(Zu=d==null?void 0:d.acceptedAllocatedQuantity)==null?void 0:Zu.toLocaleString()}),u.jsx("td",{className:"centered-cell detail-cell",children:(Du=d==null?void 0:d.acceptedAllocatedWeight)==null?void 0:Du.toLocaleString()}),u.jsx("td",{className:"centered-cell detail-cell",children:(Tu=d==null?void 0:d.remainQuantity)==null?void 0:Tu.toLocaleString()}),u.jsx("td",{className:"centered-cell detail-cell",children:(mu=d==null?void 0:d.remainWeight)==null?void 0:mu.toLocaleString()}),u.jsxs("td",{className:"centered-cell detail-cell",children:["%",parseInt((u6=d==null?void 0:d.remainPercent)==null?void 0:u6.toLocaleString())]}),u.jsx("td",{className:"centered-cell detail-cell",children:(e6=d==null?void 0:d.stewardAndGuild)==null?void 0:e6.toLocaleString()}),u.jsx("td",{className:"centered-cell detail-cell",children:(l6=d==null?void 0:d.lenKillReqNotComplete)==null?void 0:l6.toLocaleString()}),u.jsx("td",{className:"centered-cell detail-cell",children:(t6=d==null?void 0:d.quantityKillReqNotComplete)==null?void 0:t6.toLocaleString()}),u.jsx("td",{className:"centered-cell detail-cell",children:(r6=d==null?void 0:d.weightKillReqNotComplete)==null?void 0:r6.toLocaleString()})]},Wu)})})]})})]})},il=()=>{const[n,a]=P.useState("new"),s=(o,l)=>{l&&a(l)};return u.jsxs(y,{container:!0,direction:"column",mt:z.MEDIUM,xs:12,justifyContent:"center",children:[u.jsx(y,{contaienr:!0,justifyContent:"end",mb:z.SMALL,children:u.jsxs(y,{container:!0,alignItems:"center",gap:z.SMALL,children:[u.jsx(p,{children:"نمایش بصورت: "}),u.jsxs(Ye,{color:"primary",value:n,exclusive:!0,onChange:s,children:[u.jsx(n6,{value:"new",children:"پرونده ای"}),u.jsx(n6,{value:"contradictions",children:"گزارش مغایرت"}),u.jsx(n6,{value:"atlas",children:"با جزئیات"}),u.jsx(n6,{value:"killdetail",children:"جزئیات کشتار و پخش"}),u.jsx(n6,{value:"killhouseSurveillance",children:"جزئیات پایش کشتارگاه"})]})]})}),u.jsxs(y,{container:!0,xs:12,children:[n==="atlas"&&u.jsx(rl,{}),n==="new"&&u.jsx(ll,{}),n==="contradictions"&&u.jsx(hl,{}),n==="killdetail"&&u.jsx(Cl,{}),n==="killhouseSurveillance"&&u.jsx(xl,{})]})]})},Hl=()=>u.jsx(u.Fragment,{children:u.jsx(ze,{display:"flex",justifyContent:"center",children:u.jsx(y,{container:!0,direction:"column",justifyContent:"center",xs:12,sm:12,md:10,lg:10,children:u.jsx(y,{container:!0,justifyContent:"space-between",gap:z.SMALL,children:u.jsx(y,{xs:12,children:u.jsx(il,{})})})})})});export{Hl as default};
|