Commit fa74b95c authored by FE-安焕焕's avatar FE-安焕焕 👣

修改文案

parent 001b6ec7
import React from 'react'; import React from 'react';
import DeliverOrder from '../pendingDeliveryOrder'; import DeliverOrder from '../pendingDeliveryOrder';
// 已发货type:2;待发货type: 1
const TableList = () => <DeliverOrder type={2} />; const TableList = () => <DeliverOrder type={2} />;
export default TableList; export default TableList;
...@@ -21,6 +21,8 @@ const TableList = props => { ...@@ -21,6 +21,8 @@ const TableList = props => {
const [rowKeys, setRowKeys] = useState([]); const [rowKeys, setRowKeys] = useState([]);
const [LogisticsData, setLogisticsData] = useState([{}]); const [LogisticsData, setLogisticsData] = useState([{}]);
const [QueryData, setQueryData] = useState({}); const [QueryData, setQueryData] = useState({});
const [ShowUpdateBtn] = useState([2, 5]);
const actionRef = useRef(); const actionRef = useRef();
const columns = [ const columns = [
{ {
...@@ -95,7 +97,7 @@ const TableList = props => { ...@@ -95,7 +97,7 @@ const TableList = props => {
width: 120, width: 120,
render: (_, record) => ( render: (_, record) => (
<React.Fragment> <React.Fragment>
{ {ShowUpdateBtn.includes(record.skuSource.value) ? null : (
<Button <Button
type="primary" type="primary"
style={{ style={{
...@@ -115,9 +117,9 @@ const TableList = props => { ...@@ -115,9 +117,9 @@ const TableList = props => {
handleModalVisible(true); handleModalVisible(true);
}} }}
> >
更新物流信息 {props.type === 2 ? '更新物流信息' : '填写物流信息'}
</Button> </Button>
} )}
</React.Fragment> </React.Fragment>
), ),
}, },
......
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