|
@@ -283,6 +283,7 @@ const AchievementList = Form.create()(React.createClass({
|
|
|
//点击添加跟进记录,点击最新跟进下的+号,将会查询出很多数据,展示在列表里面,
|
|
|
setModal1VisibleOk(e) {
|
|
|
this.setState({modal1Visible:true});
|
|
|
+ this.state.remarkst='';
|
|
|
let deletedIds;
|
|
|
for (let idx = 0; idx < this.state.selectedRows.length; idx++) {
|
|
|
let rowItem = this.state.selectedRows[idx];
|
|
@@ -731,7 +732,7 @@ const AchievementList = Form.create()(React.createClass({
|
|
|
id: this.state.addCid,//编号id
|
|
|
cuid:this.state.idt,//联系人ID
|
|
|
followDates:yearString+' '+pjstringY,
|
|
|
- followResult:values.remarks,//跟进结果
|
|
|
+ followResult:this.state.remarkst,//跟进结果
|
|
|
attachment:"",//附件地址
|
|
|
customerStatus:this.state.customerStatus,//跟进客户状态
|
|
|
followSituation:this.state.followSituation.length==1?this.state.followSituation:followSituation,//跟进进度
|
|
@@ -1680,10 +1681,8 @@ const AchievementList = Form.create()(React.createClass({
|
|
|
//添加跟进记录没单选的情况下
|
|
|
addcord(){
|
|
|
var addcord=this.state.rowId
|
|
|
- this.setState({modal1Visible:true});
|
|
|
- this.setState({
|
|
|
- remarks:''
|
|
|
- });
|
|
|
+ this.setState({modal1Visible:true});
|
|
|
+ this.state.remarkst='';
|
|
|
this.Detailload(addcord);
|
|
|
this.getNewWoman(addcord)
|
|
|
},
|
|
@@ -1718,7 +1717,30 @@ const AchievementList = Form.create()(React.createClass({
|
|
|
<div className="user-content" >
|
|
|
<div className="content-title">
|
|
|
<span>客户管理</span>
|
|
|
- <div className="patent-addNew clearfix" style={{marginRight:"22px"}}>
|
|
|
+ <div className="patent-addNew clearfix" style={{marginRight:"22px"}}>
|
|
|
+ <Button disabled onClick={() => { window.open(globalConfig.context + '/api/admin/achievement/downloadTemplate?sign=achievement_template') }}>下载批量导入模板</Button>
|
|
|
+ <Upload
|
|
|
+ action={globalConfig.context + "/api/admin/achievement/uploadTemplate"}
|
|
|
+ data={{ 'sign': 'achievement_template' }}
|
|
|
+ beforeUpload={beforeUploadFile}
|
|
|
+ showUploadList={false}
|
|
|
+ onChange={(info) => {
|
|
|
+ if (info.file.status !== 'uploading') {
|
|
|
+ console.log(info.file, info.fileList);
|
|
|
+ }
|
|
|
+ if (info.file.status === 'done') {
|
|
|
+ if (!info.file.response.error.length) {
|
|
|
+ message.success(`${info.file.name} 文件上传成功!`);
|
|
|
+ } else {
|
|
|
+ message.warning(info.file.response.error[0].message);
|
|
|
+ return;
|
|
|
+ };
|
|
|
+ } else if (info.file.status === 'error') {
|
|
|
+ message.error(`${info.file.name} 文件上传失败。`);
|
|
|
+ };
|
|
|
+ }} >
|
|
|
+ <Button disabled>上传批量内容</Button>
|
|
|
+ </Upload>
|
|
|
<Button type="primary" className="addButton" onClick={this.addClick}>新建客户<Icon type="plus" /></Button>
|
|
|
</div>
|
|
|
</div>
|
|
@@ -2019,11 +2041,7 @@ const AchievementList = Form.create()(React.createClass({
|
|
|
labelCol={{ span: 4 }}
|
|
|
wrapperCol={{ span: 18 }}
|
|
|
label="跟进结果" >
|
|
|
- {getFieldDecorator('remarks', {
|
|
|
- initialValue: this.state.remarks
|
|
|
- })(
|
|
|
- <Input type="textarea" rows={4} />
|
|
|
- )}
|
|
|
+ <Input type="textarea" rows={4} value={this.state.remarkst} onChange={(e)=>{this.setState({remarkst:e.target.value}); }}/>
|
|
|
</FormItem>
|
|
|
</div>
|
|
|
<div className="clearfix">
|