Commit a3a98aa6 authored by guang.wu's avatar guang.wu

fix: 修改价格排序问题

parent 8b1ef6a8
import { Form, Button, Input, Select, notification, Cascader, InputNumber, Upload } from 'antd'; import { Form, Button, Input, Select, notification, Cascader, InputNumber } from 'antd';
import React, { Component } from 'react'; import React, { Component } from 'react';
import { SwapRightOutlined } from '@ant-design/icons'; import { SwapRightOutlined } from '@ant-design/icons';
import { connect } from 'dva'; import { connect } from 'dva';
...@@ -134,7 +134,6 @@ class goodsManage extends Component { ...@@ -134,7 +134,6 @@ class goodsManage extends Component {
const selectW = { width: 250 }; const selectW = { width: 250 };
const iptNumWidth = { width: 118 }; const iptNumWidth = { width: 118 };
const filterOption = (input, op) => op.props.children.includes(input);
return ( return (
<div> <div>
<Form <Form
...@@ -202,11 +201,6 @@ class goodsManage extends Component { ...@@ -202,11 +201,6 @@ class goodsManage extends Component {
<Button onClick={() => this.onReset()} className={styles.button}> <Button onClick={() => this.onReset()} className={styles.button}>
重置 重置
</Button> </Button>
{/* <Upload {...this.uploadConfig()}>
<Button type="primary" loading={this.state.loading} ghost className={styles.button}>
导入
</Button>
</Upload> */}
<Button <Button
type="primary" type="primary"
......
...@@ -102,7 +102,7 @@ export function columnManage() { ...@@ -102,7 +102,7 @@ export function columnManage() {
dataIndex: 'marketPrice', dataIndex: 'marketPrice',
width: 160, width: 160,
align: 'center', align: 'center',
sorter: (a, b) => a.supplyPrice - b.supplyPrice, sorter: (a, b) => a.marketPrice - b.marketPrice,
render: (_, row) => <div>{(row.marketPrice || 0).toFixed(2)}</div>, render: (_, row) => <div>{(row.marketPrice || 0).toFixed(2)}</div>,
}, },
{ {
......
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