Commit 737551d3 authored by 前端-钟卫鹏's avatar 前端-钟卫鹏

fix: 处理所有待新增订单页面表格顶部下拉按钮无效的问题

parent 54e53e2a
......@@ -121,9 +121,9 @@ const ReadyAddB2bOrder:React.FC<ReadyAddB2bOrderProps> = () => {
</Button>
</AuthButton>
<DropDeleteDown>
<Menu onClick={(e) => handleMenuClick(e)}>
<Menu>
<AuthButton btnCode="readyAddB2bOrder.piliangshanchu">
<Menu.Item key="1" icon={<DeleteOutlined />}>
<Menu.Item key="1" icon={<DeleteOutlined />} onClick={(e) => handleMenuClick({key: '1'})}>
{intl.formatMessage({id: 'purchaseOrder.readyAddOrder.button3'})}
</Menu.Item>
</AuthButton>
......
......@@ -119,9 +119,9 @@ const ReadyAddCashOrder:React.FC<ReadyAddCashOrderProps> = () => {
</Button>
</AuthButton>
<DropDeleteDown>
<Menu onClick={(e) => handleMenuClick(e)}>
<Menu>
<AuthButton btnCode="readyAddCashOrder.piliangshanchu">
<Menu.Item key="1" icon={<DeleteOutlined />}>
<Menu.Item key="1" icon={<DeleteOutlined />} onClick={(e) => handleMenuClick({key: '1'})}>
{intl.formatMessage({id: 'purchaseOrder.readyAddOrder.button3'})}
</Menu.Item>
</AuthButton>
......
......@@ -140,8 +140,8 @@ const ReadyAddOrder:React.FC<ReadyAddOrderProps> = (props) => {
}
</Button>
<DropDeleteDown>
<Menu onClick={(e) => handleMenuClick(e)}>
<Menu.Item key="1" icon={<DeleteOutlined />}>
<Menu>
<Menu.Item key="1" icon={<DeleteOutlined />} onClick={(e) => handleMenuClick({key: '1'})}>
{
intl.formatMessage({id: 'purchaseOrder.readyAddOrder.button3'})
}
......
......@@ -121,9 +121,9 @@ const ReadyAddRequisitionOrder:React.FC<ReadyAddRequisitionOrderProps> = () => {
</Button>
</AuthButton>
<DropDeleteDown>
<Menu onClick={(e) => handleMenuClick(e)}>
<Menu>
<AuthButton btnCode="readyAddRequisitionOrder.shanchu">
<Menu.Item key="1" icon={<DeleteOutlined />}>
<Menu.Item key="1" icon={<DeleteOutlined />} onClick={(e) => handleMenuClick({key: '1'})}>
{
intl.formatMessage({id: 'purchaseOrder.readyAddOrder.button3'})
}
......
import React from 'react'
import { history, useIntl } from 'umi'
import { Card, Button, Space, Menu, message } from 'antd'
import { Card, Button, Space, Menu, message, Dropdown } from 'antd'
import StandardTable from '@/components/StandardTable';
import { PageHeaderWrapper } from '@ant-design/pro-layout'
import { PlusCircleOutlined, DeleteOutlined } from '@ant-design/icons'
......@@ -123,9 +123,9 @@ const ReadyAddSrmOrder:React.FC<ReadyAddSrmOrderProps> = () => {
</Button>
</AuthButton>
<DropDeleteDown>
<Menu onClick={(e) => handleMenuClick(e)}>
<Menu>
<AuthButton btnCode="readyAddSrmOrder.piliangshanchu">
<Menu.Item key="1" icon={<DeleteOutlined />}>
<Menu.Item key="1" icon={<DeleteOutlined />} onClick={() => handleMenuClick({key: '1'})}>
{
intl.formatMessage({id: 'purchaseOrder.readyAddOrder.button3'})
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment