|
|
@ -89,9 +89,9 @@ class Customer extends React.Component<Props, State>{ |
|
|
|
handleDetail(record: any) { |
|
|
|
handleDetail(record: any) { |
|
|
|
// @ts-ignore
|
|
|
|
// @ts-ignore
|
|
|
|
const { history } = this.props; |
|
|
|
const { history } = this.props; |
|
|
|
console.log(record) |
|
|
|
|
|
|
|
history.push({ |
|
|
|
history.push({ |
|
|
|
pathname: '/customerDetail', |
|
|
|
pathname: '/customerDetail', |
|
|
|
|
|
|
|
search: '?id='+record.customerId+'&name='+encodeURI(record.customerName), |
|
|
|
state: { record }, |
|
|
|
state: { record }, |
|
|
|
}); |
|
|
|
}); |
|
|
|
} |
|
|
|
} |
|
|
@ -104,6 +104,8 @@ class Customer extends React.Component<Props, State>{ |
|
|
|
this.state.listQuery.typePid = form.getFieldValue('typePid'); |
|
|
|
this.state.listQuery.typePid = form.getFieldValue('typePid'); |
|
|
|
const { customerNo, customerName, typePname, contacts, contactsPhone } = JSON.parse(JSON.stringify(values)) |
|
|
|
const { customerNo, customerName, typePname, contacts, contactsPhone } = JSON.parse(JSON.stringify(values)) |
|
|
|
const _listQuery = { ...this.state.listQuery, customerNo, customerName, typePname, contacts, contactsPhone } |
|
|
|
const _listQuery = { ...this.state.listQuery, customerNo, customerName, typePname, contacts, contactsPhone } |
|
|
|
|
|
|
|
_listQuery.page = 1; |
|
|
|
|
|
|
|
_listQuery.num = this.state.listQuery? this.state.listQuery.num : 20; |
|
|
|
this.setState({ listQuery: _listQuery }); |
|
|
|
this.setState({ listQuery: _listQuery }); |
|
|
|
this.getListApi(this.state.listQuery) |
|
|
|
this.getListApi(this.state.listQuery) |
|
|
|
} |
|
|
|
} |
|
|
@ -167,6 +169,7 @@ class Customer extends React.Component<Props, State>{ |
|
|
|
const { list, loading, industryOptions, organMap } = this.state; |
|
|
|
const { list, loading, industryOptions, organMap } = this.state; |
|
|
|
return ( |
|
|
|
return ( |
|
|
|
<div className="container"> |
|
|
|
<div className="container"> |
|
|
|
|
|
|
|
<div className="header-filter"> |
|
|
|
<div className="ikd-page-header"><div className="title">查询条件</div></div> |
|
|
|
<div className="ikd-page-header"><div className="title">查询条件</div></div> |
|
|
|
<div className="list-filter"> |
|
|
|
<div className="list-filter"> |
|
|
|
<Form |
|
|
|
<Form |
|
|
@ -174,12 +177,13 @@ class Customer extends React.Component<Props, State>{ |
|
|
|
className="filter" |
|
|
|
className="filter" |
|
|
|
layout="inline" |
|
|
|
layout="inline" |
|
|
|
name="basic" |
|
|
|
name="basic" |
|
|
|
|
|
|
|
style={{ paddingLeft: 20 }} |
|
|
|
onFinish={onFinish} |
|
|
|
onFinish={onFinish} |
|
|
|
onFinishFailed={onFinishFailed}> |
|
|
|
onFinishFailed={onFinishFailed}> |
|
|
|
<Form.Item |
|
|
|
<Form.Item |
|
|
|
label="关键字:" |
|
|
|
label="关键字:" |
|
|
|
name="keyword"> |
|
|
|
name="keyword"> |
|
|
|
<Input style={{ width: 230 }} placeholder="请输入输入客户名称/编号关键字" /> |
|
|
|
<Input style={{ width: 230 }} placeholder="请输入客户名称/编号关键字" /> |
|
|
|
</Form.Item> |
|
|
|
</Form.Item> |
|
|
|
<Form.Item |
|
|
|
<Form.Item |
|
|
|
label="归属机构:" |
|
|
|
label="归属机构:" |
|
|
@ -214,6 +218,8 @@ class Customer extends React.Component<Props, State>{ |
|
|
|
</Form.Item> |
|
|
|
</Form.Item> |
|
|
|
</Form> |
|
|
|
</Form> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
|
|
|
|
</div> |
|
|
|
|
|
|
|
<div className="ikd-page-header" style={{ marginLeft: 10 }}><div className="title">查询结果</div></div> |
|
|
|
<Table dataSource={list} columns={columns} rowKey="customerId" |
|
|
|
<Table dataSource={list} columns={columns} rowKey="customerId" |
|
|
|
bordered={true} |
|
|
|
bordered={true} |
|
|
|
size={'small'} |
|
|
|
size={'small'} |
|
|
|