|
|
|
@ -1,6 +1,7 @@
|
|
|
|
|
import { useEffect, useState } from 'react';
|
|
|
|
|
import { useParams, Link, useNavigate, useLocation } from 'react-router-dom';
|
|
|
|
|
import { App, Button, Divider, Popconfirm, Select } from 'antd';
|
|
|
|
|
import { ReloadOutlined } from '@ant-design/icons';
|
|
|
|
|
import { useProductsAuditStatesMapVal } from '@/hooks/useProductsSets';
|
|
|
|
|
import { useTranslation } from 'react-i18next';
|
|
|
|
|
import useProductsStore, { postProductsQuoteAuditAction, postAgencyAuditAction } from '@/stores/Products/Index';
|
|
|
|
@ -14,7 +15,7 @@ import VendorSelector from '@/components/VendorSelector';
|
|
|
|
|
import AuditStateSelector from '@/components/AuditStateSelector';
|
|
|
|
|
import NewProductModal from './NewProductModal';
|
|
|
|
|
|
|
|
|
|
const Header = ({ refresh, newActionable, ...props }) => {
|
|
|
|
|
const Header = ({ refresh, ...props }) => {
|
|
|
|
|
const location = useLocation();
|
|
|
|
|
const isEditPage = location.pathname.includes('edit');
|
|
|
|
|
const showEditA = !location.pathname.includes('edit');
|
|
|
|
@ -142,6 +143,7 @@ const Header = ({ refresh, newActionable, ...props }) => {
|
|
|
|
|
<AuditStateSelector variant={'borderless'} className='w-32' size='large' value={pickAuditState} onChange={handleAuditStateChange} />
|
|
|
|
|
{/* <Divider type={'vertical'} />
|
|
|
|
|
{(use_year || '').replace('all', '')} */}
|
|
|
|
|
<Button onClick={() => refresh(param)} type='text' className='text-primary round-none' ghost icon={<ReloadOutlined />} />
|
|
|
|
|
</h2>
|
|
|
|
|
</div>
|
|
|
|
|
{showEditA && (
|
|
|
|
|