|
@@ -1,5 +1,5 @@
|
|
|
import React,{Component} from "react";
|
|
|
-import {Button, Form, Input, message, Popconfirm, Select, Spin, Table, Tabs, Upload} from "antd";
|
|
|
+import {Button, Form, Input, message, Modal, Popconfirm, Select, Spin, Table, Tabs, Upload,AutoComplete} from "antd";
|
|
|
import {ChooseList} from "../../order/orderNew/chooseList";
|
|
|
import $ from "jquery/src/ajax";
|
|
|
import { patentTypeList} from '@/dataDic.js';
|
|
@@ -9,6 +9,7 @@ import {getPatentType} from "@/tools.js";
|
|
|
import './patent.less';
|
|
|
|
|
|
import PatentDetails from './patentDetails';
|
|
|
+import ReminderLog from "../../customer/NEW/crm/reminderLog";
|
|
|
|
|
|
const { TabPane } = Tabs;
|
|
|
|
|
@@ -24,6 +25,11 @@ class List extends Component{
|
|
|
key: "id",
|
|
|
},
|
|
|
{
|
|
|
+ title: "专利号",
|
|
|
+ dataIndex: "patentNo",
|
|
|
+ key: "patentNo",
|
|
|
+ },
|
|
|
+ {
|
|
|
title: "专利名称",
|
|
|
dataIndex: "name",
|
|
|
key: "name",
|
|
@@ -49,14 +55,19 @@ class List extends Component{
|
|
|
key: "holders",
|
|
|
},
|
|
|
{
|
|
|
+ title: "授权日期",
|
|
|
+ dataIndex: "authorizationDates",
|
|
|
+ key: "authorizationDates",
|
|
|
+ },
|
|
|
+ {
|
|
|
title: "发明人",
|
|
|
dataIndex: "inventor",
|
|
|
key: "inventor",
|
|
|
},
|
|
|
{
|
|
|
title: "收费截止日",
|
|
|
- dataIndex: "",
|
|
|
- key: "",
|
|
|
+ dataIndex: "endDates",
|
|
|
+ key: "endDates",
|
|
|
},
|
|
|
{
|
|
|
title: "年费状态",
|
|
@@ -64,8 +75,14 @@ class List extends Component{
|
|
|
key: "annualFeeStatus",
|
|
|
render: (text)=>{
|
|
|
return (
|
|
|
- text === 0 ? '无信息' :
|
|
|
- text === 1 ? '代缴费' : ''
|
|
|
+ <span style={{
|
|
|
+ color: text === 0 ? '#f00' : text === 1 ? '#25e027' : ''
|
|
|
+ }}>
|
|
|
+ {
|
|
|
+ text === 0 ? '待缴费' :
|
|
|
+ text === 1 ? '已缴费' : ''
|
|
|
+ }
|
|
|
+ </span>
|
|
|
)
|
|
|
}
|
|
|
},
|
|
@@ -75,25 +92,36 @@ class List extends Component{
|
|
|
key: "salesmanRemind",
|
|
|
render: (text)=>{
|
|
|
return(
|
|
|
- text === 0 ? '未提醒' :
|
|
|
- text === 1 ? '已提醒' : ''
|
|
|
+ <span style={{
|
|
|
+ color: text === 0 ? '#f00' : text === 1 ? '#25e027' : ''
|
|
|
+ }}>
|
|
|
+ {
|
|
|
+ text === 0 ? '未通知' :
|
|
|
+ text === 1 ? '已通知' : ''
|
|
|
+ }
|
|
|
+ </span>
|
|
|
)
|
|
|
}
|
|
|
},
|
|
|
{
|
|
|
+ title: "Email",
|
|
|
+ dataIndex: "email",
|
|
|
+ key: "email",
|
|
|
+ },
|
|
|
+ {
|
|
|
title: "年费/滞纳金/恢复",
|
|
|
dataIndex: "delayingAmount",
|
|
|
key: "delayingAmount",
|
|
|
render:(text,record)=>{
|
|
|
return(
|
|
|
- (record.patentAmount || '无') + '/' + (text || '无') + '/' + (record.recoveryAmount || '无')
|
|
|
+ record.patentAmount+ '/' + text + '/' + record.recoveryAmount
|
|
|
)
|
|
|
}
|
|
|
},
|
|
|
{
|
|
|
title: "客户名称",
|
|
|
- dataIndex: "companyName",
|
|
|
- key: "companyName",
|
|
|
+ dataIndex: "userName",
|
|
|
+ key: "userName",
|
|
|
},
|
|
|
{
|
|
|
title: "项目名称",
|
|
@@ -121,14 +149,42 @@ class List extends Component{
|
|
|
key: "depName",
|
|
|
},
|
|
|
{
|
|
|
+ title: "录入人",
|
|
|
+ dataIndex: "inputName",
|
|
|
+ key: "inputName",
|
|
|
+ },
|
|
|
+ {
|
|
|
+ title: "录入时间",
|
|
|
+ dataIndex: "createTimes",
|
|
|
+ key: "createTimes",
|
|
|
+ },
|
|
|
+ {
|
|
|
+ title: "跟进人",
|
|
|
+ dataIndex: "aname",
|
|
|
+ key: "aname",
|
|
|
+ },
|
|
|
+ {
|
|
|
title: "操作",
|
|
|
dataIndex: "id",
|
|
|
key: "caozuo",
|
|
|
render: (text,record) => {
|
|
|
return (
|
|
|
<div>
|
|
|
- <Button type="primary" style={{marginRight:"15px"}}>发邮件</Button>
|
|
|
- <Button type="primary">发通知</Button>
|
|
|
+ <Button disabled={record.isFollow === 0} type="primary" onClick={(e)=>{
|
|
|
+ e.stopPropagation();
|
|
|
+ this.setState({
|
|
|
+ detailsVisible:true,
|
|
|
+ detailsInfor:record,
|
|
|
+ readOnly:false
|
|
|
+ })
|
|
|
+ }}>修改</Button>
|
|
|
+ <Button style={{marginLeft:'10px'}} type="primary" onClick={(e)=>{
|
|
|
+ e.stopPropagation();
|
|
|
+ this.setState({
|
|
|
+ visible:true,
|
|
|
+ id:text
|
|
|
+ })
|
|
|
+ }}>专利日志</Button>
|
|
|
</div>
|
|
|
)
|
|
|
}
|
|
@@ -151,6 +207,9 @@ class List extends Component{
|
|
|
detailsInfor:{},
|
|
|
departmentArr:[],
|
|
|
selectedRowKeys:[],
|
|
|
+ selectedRows:[],
|
|
|
+
|
|
|
+ unSelectedRows:[],
|
|
|
|
|
|
name:undefined,
|
|
|
type:undefined,
|
|
@@ -158,7 +217,9 @@ class List extends Component{
|
|
|
annualFeeStatus:undefined,
|
|
|
userName:undefined,
|
|
|
salesmanRemind:undefined,
|
|
|
+ isFollow:undefined,
|
|
|
aname:undefined,
|
|
|
+ patentNo:undefined,
|
|
|
|
|
|
upLoad: {
|
|
|
customRequest: (options) => {
|
|
@@ -199,7 +260,13 @@ class List extends Component{
|
|
|
},
|
|
|
name: "file",
|
|
|
action: globalConfig.context + "/api/admin/patentNew/import",
|
|
|
- }
|
|
|
+ },
|
|
|
+
|
|
|
+ adminList:[],
|
|
|
+
|
|
|
+ status:props.status,
|
|
|
+
|
|
|
+ aid:'',
|
|
|
}
|
|
|
this.changeList = this.changeList.bind(this);
|
|
|
this.loadData = this.loadData.bind(this);
|
|
@@ -207,6 +274,19 @@ class List extends Component{
|
|
|
this.departmentList = this.departmentList.bind(this);
|
|
|
this.exportExec = this.exportExec.bind(this);
|
|
|
this.onReset = this.onReset.bind(this);
|
|
|
+ this.updateBatch = this.updateBatch.bind(this);
|
|
|
+ this.getAdminList = this.getAdminList.bind(this);
|
|
|
+ }
|
|
|
+
|
|
|
+ componentWillReceiveProps(prevProps) {
|
|
|
+ if(prevProps.status !== this.state.status){
|
|
|
+ this.setState({
|
|
|
+ status:prevProps.status
|
|
|
+ },()=>{
|
|
|
+ this.loadData();
|
|
|
+ this.departmentList();
|
|
|
+ })
|
|
|
+ }
|
|
|
}
|
|
|
|
|
|
componentDidMount() {
|
|
@@ -232,6 +312,7 @@ class List extends Component{
|
|
|
this.setState({
|
|
|
loading: true,
|
|
|
selectedRowKeys:[],
|
|
|
+ selectedRows:[]
|
|
|
});
|
|
|
let data = {
|
|
|
name:this.state.name,
|
|
@@ -240,10 +321,15 @@ class List extends Component{
|
|
|
annualFeeStatus:this.state.annualFeeStatus,
|
|
|
userName:this.state.userName,
|
|
|
salesmanRemind:this.state.salesmanRemind,
|
|
|
+ isFollow:this.state.isFollow,
|
|
|
aname:this.state.aname,
|
|
|
+ patentNo:this.state.patentNo,
|
|
|
pageNo:pageNo || 1,
|
|
|
pageSize:10,
|
|
|
}
|
|
|
+ if(this.state.status){
|
|
|
+ data.status=this.state.status;
|
|
|
+ }
|
|
|
for(let i in data){
|
|
|
if(data[i] === undefined){delete data[i]}
|
|
|
}
|
|
@@ -261,6 +347,7 @@ class List extends Component{
|
|
|
this.state.pagination.current = 0;
|
|
|
this.state.pagination.total = 0;
|
|
|
}
|
|
|
+ data.data.list.map(v=>v.key = v.id)
|
|
|
this.setState({
|
|
|
page: data.data.pageNo,
|
|
|
dataSource: data.data.list,
|
|
@@ -289,7 +376,7 @@ class List extends Component{
|
|
|
downloadFile() {
|
|
|
window.location.href =
|
|
|
globalConfig.context +
|
|
|
- "/api/admin/patentNewexportTemplate?" +
|
|
|
+ "/api/admin/patentNew/exportTemplate?" +
|
|
|
"sign=new_patent_template";
|
|
|
}
|
|
|
|
|
@@ -331,7 +418,9 @@ class List extends Component{
|
|
|
annualFeeStatus:this.state.annualFeeStatus,
|
|
|
userName:this.state.userName,
|
|
|
salesmanRemind:this.state.salesmanRemind,
|
|
|
+ isFollow:this.state.isFollow,
|
|
|
aname:this.state.aname,
|
|
|
+ patentNo:this.state.patentNo,
|
|
|
}
|
|
|
for(let i in data){
|
|
|
if(data[i] === undefined){delete data[i]}
|
|
@@ -359,6 +448,47 @@ class List extends Component{
|
|
|
window.location.href = globalConfig.context + "/open/download?fileName=" + fileName
|
|
|
}
|
|
|
|
|
|
+ //获取营销管理员列表
|
|
|
+ getAdminList(name) {
|
|
|
+ this.setState({
|
|
|
+ adminListLoading:true
|
|
|
+ })
|
|
|
+ $.ajax({
|
|
|
+ method: "get",
|
|
|
+ dataType: "json",
|
|
|
+ crossDomain: false,
|
|
|
+ url: globalConfig.context + "/api/admin/superviser/adminList",
|
|
|
+ data: {
|
|
|
+ pageNo: 1,
|
|
|
+ pageSize: 99,
|
|
|
+ name
|
|
|
+ },
|
|
|
+ success: function (data) {
|
|
|
+ let thedata = data.data.list;
|
|
|
+ let theArr = [];
|
|
|
+ if (data.error && data.error.length) {
|
|
|
+ message.warning(data.error[0].message);
|
|
|
+ }else{
|
|
|
+ thedata.map(function (item, _) {
|
|
|
+ theArr.push({
|
|
|
+ value: item.id,
|
|
|
+ label: item.name,
|
|
|
+ });
|
|
|
+ });
|
|
|
+ }
|
|
|
+ this.setState({
|
|
|
+ adminList: theArr,
|
|
|
+ });
|
|
|
+ }.bind(this),
|
|
|
+ }).always(
|
|
|
+ function () {
|
|
|
+ this.setState({
|
|
|
+ adminListLoading:false
|
|
|
+ })
|
|
|
+ }.bind(this)
|
|
|
+ );
|
|
|
+ }
|
|
|
+
|
|
|
onReset(){
|
|
|
this.setState({
|
|
|
name:undefined,
|
|
@@ -367,10 +497,76 @@ class List extends Component{
|
|
|
annualFeeStatus:undefined,
|
|
|
userName:undefined,
|
|
|
salesmanRemind:undefined,
|
|
|
+ isFollow:undefined,
|
|
|
aname:undefined,
|
|
|
+ patentNo:undefined,
|
|
|
},()=>{this.loadData();})
|
|
|
}
|
|
|
|
|
|
+ updateBatch(type){
|
|
|
+ if(type === 2 && !this.state.aid){
|
|
|
+ message.warning('请选择营销管理员');
|
|
|
+ return;
|
|
|
+ }
|
|
|
+ let loading = message.loading('加载中...')
|
|
|
+ if(type === 0){
|
|
|
+ this.setState({
|
|
|
+ updateBatchLoading0:true,
|
|
|
+ })
|
|
|
+ }else if(type === 1){
|
|
|
+ this.setState({
|
|
|
+ updateBatchLoading1:true,
|
|
|
+ })
|
|
|
+ }else if(type === 2){
|
|
|
+ this.setState({
|
|
|
+ updateBatchLoading2:true,
|
|
|
+ })
|
|
|
+ }
|
|
|
+ let ids = this.state.selectedRowKeys.join(',');
|
|
|
+ let data = {
|
|
|
+ ids,
|
|
|
+ type,//0 批量通知 1批量发邮件 2转给营销管理员
|
|
|
+ }
|
|
|
+ if(type === 2){
|
|
|
+ data.aid = this.state.aid
|
|
|
+ }
|
|
|
+ $.ajax({
|
|
|
+ method: "post",
|
|
|
+ dataType: "json",
|
|
|
+ crossDomain: false,
|
|
|
+ url: globalConfig.context + "/api/admin/patentNew/updateBatch",
|
|
|
+ data,
|
|
|
+ success: function(data) {
|
|
|
+ loading();
|
|
|
+ if(data.error.length === 0){
|
|
|
+ message.success(type === 0 ? '批量通知成功' : type === 1 ? '批量发邮件成功' : type === 2 ? '转入成功' : '');
|
|
|
+ if(type === 2){
|
|
|
+ this.setState({
|
|
|
+ adminVisible:false
|
|
|
+ })
|
|
|
+ }
|
|
|
+ this.loadData(this.state.page);
|
|
|
+ }else{
|
|
|
+ message.warning(data.error[0].message);
|
|
|
+ }
|
|
|
+ }.bind(this),
|
|
|
+ }).always(function() {
|
|
|
+ if(type === 0){
|
|
|
+ this.setState({
|
|
|
+ updateBatchLoading0:false,
|
|
|
+ })
|
|
|
+ }else if(type === 1){
|
|
|
+ this.setState({
|
|
|
+ updateBatchLoading1:false,
|
|
|
+ })
|
|
|
+ }else if(type === 2){
|
|
|
+ this.setState({
|
|
|
+ updateBatchLoading2:false,
|
|
|
+ })
|
|
|
+ }
|
|
|
+ }.bind(this));
|
|
|
+ }
|
|
|
+
|
|
|
render() {
|
|
|
return (
|
|
|
<div className="user-content">
|
|
@@ -389,6 +585,9 @@ class List extends Component{
|
|
|
<Input style={{ width: '130px' }} value={this.state.name} onChange={(e)=>{this.setState({name:e.target.value})}} placeholder="请输入专利名称"/>
|
|
|
</Form.Item>
|
|
|
<Form.Item>
|
|
|
+ <Input style={{ width: '130px' }} value={this.state.patentNo} onChange={(e)=>{this.setState({patentNo:e.target.value})}} placeholder="请输入专利号"/>
|
|
|
+ </Form.Item>
|
|
|
+ <Form.Item>
|
|
|
<Input style={{ width: '130px' }} value={this.state.aname} onChange={(e)=>{this.setState({aname:e.target.value})}} placeholder="请输入跟进人名称"/>
|
|
|
</Form.Item>
|
|
|
<Form.Item>
|
|
@@ -435,6 +634,16 @@ class List extends Component{
|
|
|
</Select>
|
|
|
</Form.Item>
|
|
|
<Form.Item>
|
|
|
+ <Select placeholder="请选择关系" value={this.state.isFollow} onSelect={(e)=>{
|
|
|
+ this.setState({
|
|
|
+ isFollow:e
|
|
|
+ })
|
|
|
+ }} style={{ width: "140px" }}>
|
|
|
+ <Select.Option value={0} >我录入</Select.Option>
|
|
|
+ <Select.Option value={1} >我跟进</Select.Option>
|
|
|
+ </Select>
|
|
|
+ </Form.Item>
|
|
|
+ <Form.Item>
|
|
|
<Select placeholder="请选择派单部门" value={this.state.depName} onSelect={e=>{this.setState({depName:e})}} style={{ width: "240px" }}>
|
|
|
{
|
|
|
this.state.departmentArr.map(function (item) {
|
|
@@ -460,9 +669,10 @@ class List extends Component{
|
|
|
<TabPane tab="操作" key="2">
|
|
|
<Popconfirm placement="top" title="确定要标识为已通知吗?" onConfirm={(e)=>{
|
|
|
e.stopPropagation();
|
|
|
-
|
|
|
+ this.updateBatch(0);
|
|
|
}} okText="确定" cancelText="取消">
|
|
|
<Button
|
|
|
+ loading={this.state.updateBatchLoading0}
|
|
|
type="primary"
|
|
|
style={{ margin: "11px 0px 10px 10px" }}
|
|
|
disabled={this.state.selectedRowKeys.length === 0}
|
|
@@ -470,6 +680,41 @@ class List extends Component{
|
|
|
标识为已通知
|
|
|
</Button>
|
|
|
</Popconfirm>
|
|
|
+ <Popconfirm placement="top" title="确定要批量发邮件吗?" onConfirm={(e)=>{
|
|
|
+ e.stopPropagation();
|
|
|
+ let arr = this.state.selectedRows.filter(v=>v.status === 0);
|
|
|
+ if(arr.length > 0){
|
|
|
+ this.setState({
|
|
|
+ unSelectedRows: arr,
|
|
|
+ unSelectedRowsVisible:true
|
|
|
+ })
|
|
|
+ }else{
|
|
|
+ this.updateBatch(1)
|
|
|
+ }
|
|
|
+ }} okText="确定" cancelText="取消">
|
|
|
+ <Button
|
|
|
+ loading={this.state.updateBatchLoading1}
|
|
|
+ type="primary"
|
|
|
+ style={{ margin: "11px 0px 10px 10px" }}
|
|
|
+ disabled={this.state.selectedRowKeys.length === 0}
|
|
|
+ >
|
|
|
+ 批量发邮件
|
|
|
+ </Button>
|
|
|
+ </Popconfirm>
|
|
|
+ <Button
|
|
|
+ loading={this.state.updateBatchLoading2}
|
|
|
+ type="primary"
|
|
|
+ style={{ margin: "11px 0px 10px 10px" }}
|
|
|
+ disabled={this.state.selectedRowKeys.length === 0}
|
|
|
+ onClick={()=>{
|
|
|
+ this.setState({
|
|
|
+ adminVisible:true,
|
|
|
+ adminList:[],
|
|
|
+ })
|
|
|
+ }}
|
|
|
+ >
|
|
|
+ 转入营销管理
|
|
|
+ </Button>
|
|
|
<Upload {...this.state.upLoad} disabled={this.state.upLoadFileLoading}>
|
|
|
<Button
|
|
|
loading={this.state.upLoadFileLoading}
|
|
@@ -489,6 +734,15 @@ class List extends Component{
|
|
|
>
|
|
|
下载专利模板
|
|
|
</Button>
|
|
|
+ <Button
|
|
|
+ type="primary"
|
|
|
+ style={{ margin: "11px 0px 10px 10px" }}
|
|
|
+ onClick={()=>{
|
|
|
+ this.exportExec();
|
|
|
+ }}
|
|
|
+ >
|
|
|
+ 导出Excel
|
|
|
+ </Button>
|
|
|
</TabPane>
|
|
|
<TabPane tab="更改表格显示数据" key="3">
|
|
|
<div style={{ marginLeft: 10 }}>
|
|
@@ -518,13 +772,17 @@ class List extends Component{
|
|
|
onRowClick={(record)=>{
|
|
|
this.setState({
|
|
|
detailsVisible:true,
|
|
|
+ readOnly:true,
|
|
|
detailsInfor:record
|
|
|
})
|
|
|
}}
|
|
|
rowSelection={{
|
|
|
+ getCheckboxProps:record => ({
|
|
|
+ disabled: record.isFollow === 0
|
|
|
+ }),
|
|
|
selectedRowKeys:this.state.selectedRowKeys,
|
|
|
- onChange: (selectedRowKeys)=>{
|
|
|
- this.setState({ selectedRowKeys });
|
|
|
+ onChange: (selectedRowKeys,selectedRows)=>{
|
|
|
+ this.setState({ selectedRowKeys,selectedRows });
|
|
|
},
|
|
|
}}
|
|
|
scroll={{ x: "max-content", y: 0 }}
|
|
@@ -534,15 +792,116 @@ class List extends Component{
|
|
|
</Spin>
|
|
|
</div>
|
|
|
{this.state.detailsVisible ? <PatentDetails
|
|
|
+ readOnly={this.state.readOnly}
|
|
|
visible={this.state.detailsVisible}
|
|
|
detailsInfor={this.state.detailsInfor}
|
|
|
+ onRefresh={()=>{
|
|
|
+ this.loadData(this.state.page);
|
|
|
+ }}
|
|
|
onCancel={()=>{
|
|
|
this.setState({
|
|
|
+ readOnly:true,
|
|
|
detailsVisible:false,
|
|
|
detailsInfor:{}
|
|
|
})
|
|
|
}}
|
|
|
/> : null}
|
|
|
+ {this.state.visible ? <ReminderLog
|
|
|
+ id={this.state.id}
|
|
|
+ visible={this.state.visible}
|
|
|
+ cancel={()=>{
|
|
|
+ this.setState({
|
|
|
+ visible:false,
|
|
|
+ id:undefined
|
|
|
+ })
|
|
|
+ }}
|
|
|
+ /> : null}
|
|
|
+
|
|
|
+ {this.state.unSelectedRowsVisible ? <Modal
|
|
|
+ title='提醒'
|
|
|
+ className='payRecordComponent'
|
|
|
+ width={500}
|
|
|
+ maskClosable={false}
|
|
|
+ footer={null}
|
|
|
+ visible={this.state.unSelectedRowsVisible}
|
|
|
+ onCancel={()=>{
|
|
|
+ this.setState({
|
|
|
+ unSelectedRowsVisible:false,
|
|
|
+ unSelectedRows:[]
|
|
|
+ })
|
|
|
+ }}
|
|
|
+ >
|
|
|
+ <div style={{paddingBottom:'15px'}}>下列选项不能批量发邮件,请取消后再批量发邮件</div>
|
|
|
+ <Table
|
|
|
+ columns={[
|
|
|
+ {
|
|
|
+ title: "专利号",
|
|
|
+ dataIndex: "patentNo",
|
|
|
+ key: "patentNo",
|
|
|
+ },
|
|
|
+ {
|
|
|
+ title: "专利名称",
|
|
|
+ dataIndex: "name",
|
|
|
+ key: "name",
|
|
|
+ },
|
|
|
+ ]}
|
|
|
+ dataSource={this.state.unSelectedRows}
|
|
|
+ pagination={false}
|
|
|
+ scroll={{ x: "max-content", y: 0 }}
|
|
|
+ bordered
|
|
|
+ size="small"
|
|
|
+ />
|
|
|
+ </Modal> : null}
|
|
|
+
|
|
|
+ {this.state.adminVisible ? <Modal
|
|
|
+ title='选择营销管理员'
|
|
|
+ className='payRecordComponent'
|
|
|
+ width={300}
|
|
|
+ maskClosable={false}
|
|
|
+ footer={null}
|
|
|
+ visible={this.state.adminVisible}
|
|
|
+ onCancel={()=>{
|
|
|
+ this.setState({
|
|
|
+ adminVisible:false
|
|
|
+ })
|
|
|
+ }}
|
|
|
+ >
|
|
|
+ <div style={{display:'flex',flexFlow:"column",justifyContent:'center',alignItems:'center'}}>
|
|
|
+ <div style={{display:'flex',alignItems:'center'}}>
|
|
|
+ <span style={{paddingRight:'15px'}}>营销管理:</span>
|
|
|
+ <Select
|
|
|
+ showSearch
|
|
|
+ style={{ width: 200 }}
|
|
|
+ placeholder="请选择营销管理"
|
|
|
+ optionFilterProp="children"
|
|
|
+ onSelect={(aid)=>{
|
|
|
+ this.setState({
|
|
|
+ aid
|
|
|
+ })
|
|
|
+ }}
|
|
|
+ onSearch={(value) => {this.getAdminList(value)}}
|
|
|
+ >
|
|
|
+ {
|
|
|
+ this.state.adminList.map(v=>(
|
|
|
+ <Select.Option value={v.value} key={v.value}>{v.label}</Select.Option>
|
|
|
+ ))
|
|
|
+ }
|
|
|
+ </Select>
|
|
|
+ </div>
|
|
|
+ <Popconfirm placement="top" title="确定要转入此营销管理吗?" onConfirm={(e)=>{
|
|
|
+ e.stopPropagation();
|
|
|
+ this.updateBatch(2);
|
|
|
+ }} okText="确定" cancelText="取消">
|
|
|
+ <Button
|
|
|
+ loading={this.state.updateBatchLoading2}
|
|
|
+ type='primary'
|
|
|
+ style={{marginAuto:'0 auto',marginTop:'20px'}}
|
|
|
+ >
|
|
|
+ 确定
|
|
|
+ </Button>
|
|
|
+ </Popconfirm>
|
|
|
+ </div>
|
|
|
+ </Modal> : null}
|
|
|
</div>
|
|
|
)
|
|
|
}
|