tab增加退出清空功能;

增加userId == 8的判断
This commit is contained in:
linxd
2025-08-05 17:06:22 +08:00
parent 08ca7af8a5
commit 8aaaf5ce5e
8 changed files with 32 additions and 13 deletions

View File

@ -30,6 +30,7 @@ interface Dict {
const SupplierCategoryEntry: React.FC = () => {
const userId = sessionStorage.getItem('userId') || '';
// 查询
const [form] = Form.useForm();
//列表渲染数据
@ -120,7 +121,7 @@ const SupplierCategoryEntry: React.FC = () => {
</a>
)}
{record.approveStatus === '0' && (
{record.approveStatus === '0' && userId == '8' && (
<Button type="link" onClick={() => {
supplierChangeApprove({ id: record.id, approveStatus: '1' }).then(() => {
handleReset()

View File

@ -27,6 +27,8 @@ interface Data {
}
const AccessManagement: React.FC = () => {
//
const userId = sessionStorage.getItem('userId') || '';
// 查询
const [form] = Form.useForm();
//列表渲染数据
@ -127,7 +129,7 @@ const AccessManagement: React.FC = () => {
<a onClick={() => openModal('result', record)}></a>
</>
)}
{record.approveStatus === '0' && (
{record.approveStatus === '0' && userId == '8' && (
<Button type="link" onClick={() => {
supplierChangeApprove({ id: record.id, approveStatus: '1' }).then(() => {
handleReset()

View File

@ -35,6 +35,7 @@ interface Dict {
}
const CategoryLibraryManage: React.FC = () => {
const userId = sessionStorage.getItem('userId') || '';
// 搜索表单
const [form] = Form.useForm();
// 列表数据
@ -191,7 +192,7 @@ const CategoryLibraryManage: React.FC = () => {
>
</a>
{record.approveStatus === 3 && (
{record.approveStatus === 3 && userId == '8' && (
<Button type="link" onClick={() => {
supplierChangeApprove({ workFlowId: record.workFlowId, approveStatus: 1 }).then(() => {
handleReset()

View File

@ -33,6 +33,7 @@ interface Data {
}
const CategoryLibraryManage: React.FC = () => {
const userId = sessionStorage.getItem('userId') || '';
// 搜索表单
const [form] = Form.useForm();
// 列表数据
@ -186,7 +187,7 @@ const CategoryLibraryManage: React.FC = () => {
>
</a>
{record.approveStatus === '0' && (
{record.approveStatus === '0' && userId == '8' && (
<Button type="link" onClick={() => {
supplierChangeApprove({ workFlowId: record.workFlowId, approveStatus: 1 }).then(() => {
handleReset()

View File

@ -37,6 +37,7 @@ interface Props {
dispatch: any;
}
const SupplierChangeReviewManage: React.FC<Props> = ({ dispatch }) => {
const userId = sessionStorage.getItem('userId') || '';
//搜索
const [form] = Form.useForm();
//渲染数据
@ -194,7 +195,7 @@ const SupplierChangeReviewManage: React.FC<Props> = ({ dispatch }) => {
</Button>
{/* 测试使用,需删除 */}
{ record.approveStatus === '0' && (
{ record.approveStatus === '0' && userId == '8' && (
<Button type="link" onClick={() => {
supplierChangeApprove({ id:record.id, approveStatus: '1' }).then(() => {
handleReset()
@ -204,7 +205,7 @@ const SupplierChangeReviewManage: React.FC<Props> = ({ dispatch }) => {
</Button>
)}
</>
),
},
];

View File

@ -26,6 +26,7 @@ interface Dict {
}
const supplierExitAudit: React.FC = () => {
const userId = sessionStorage.getItem('userId') || '';
const [form] = Form.useForm();
const [data, setData] = useState<any[]>([]);
const [loading, setLoading] = useState(false);
@ -114,7 +115,7 @@ const supplierExitAudit: React.FC = () => {
>
</a>
{record.approveStatus === '0' && (
{record.approveStatus === '0' && userId == '8' && (
<Button type="link" onClick={() => {
supplierChangeApprove({ id: record.id, approveStatus: '1' }).then(() => {
handleReset()
@ -124,7 +125,7 @@ const supplierExitAudit: React.FC = () => {
</Button>
)}
</>
),
},
];