|
@@ -55,10 +55,10 @@ const MyBusiness = Form.create()(React.createClass({
|
|
|
createTime:thisdata.createTime
|
|
|
});
|
|
|
};
|
|
|
-
|
|
|
+ this.state.pagination.current = data.data.pageNo;
|
|
|
+ this.state.pagination.total = data.data.totalCount;
|
|
|
};
|
|
|
- this.state.pagination.current = data.data.pageNo;
|
|
|
- this.state.pagination.total = data.data.totalCount;
|
|
|
+
|
|
|
this.setState({
|
|
|
dataSource: theArr,
|
|
|
pagination: this.state.pagination
|
|
@@ -501,50 +501,44 @@ const MyBusiness = Form.create()(React.createClass({
|
|
|
},
|
|
|
//点击新增详情
|
|
|
newContacts(){
|
|
|
- this.setState({
|
|
|
+ this.setState({
|
|
|
+ uids:this.state.uids,
|
|
|
addcontactModul:true
|
|
|
- });
|
|
|
+ });
|
|
|
},
|
|
|
//新增联系人保存函数
|
|
|
- submitcontactman(e){
|
|
|
- e.preventDafault();
|
|
|
- this.props.form.validateFields((err, values) => {
|
|
|
- if (!err) {
|
|
|
- this.setState({
|
|
|
- loading: true
|
|
|
- });
|
|
|
- $.ajax({
|
|
|
- method: "POST",
|
|
|
- dataType: "json",
|
|
|
- crossDomain: false,
|
|
|
- url: globalConfig.context + '/api/admin/customer/addContacter',
|
|
|
- data: {
|
|
|
- cid: deletedIds,//编号id
|
|
|
- sex:this.state.hott,//性别
|
|
|
- primaryFlg:this.state.hotst,//是否是主要联系人
|
|
|
- name:this.state.paymentIdt,//联系人姓名
|
|
|
- mobile:this.state.paymt,//座机
|
|
|
- telNum:this.state.payt,//电话
|
|
|
- qq:this.state.entIdt,//qq
|
|
|
- wechat:this.state.payIdt,//微信
|
|
|
- customerPosition:this.state.paentIdt,//职位
|
|
|
- depatrment:this.state.paytIdtt,//部门
|
|
|
- email:this.state.emailst,//邮箱
|
|
|
- }
|
|
|
- }).done(function (data) {
|
|
|
- this.setState({
|
|
|
- loading: false
|
|
|
- });
|
|
|
- if (!data.error.length) {
|
|
|
- message.success('保存成功!');
|
|
|
- this.setModal2Visiblecancel()
|
|
|
- } else {
|
|
|
- message.warning(data.error[0].message);
|
|
|
- }
|
|
|
- this.getNewWoman(this.state.khId);
|
|
|
- }.bind(this));
|
|
|
- }
|
|
|
- });
|
|
|
+ submitcontactman(){
|
|
|
+ this.setState({
|
|
|
+ loading:true
|
|
|
+ })
|
|
|
+ $.ajax({
|
|
|
+ method: "post",
|
|
|
+ dataType: "json",
|
|
|
+ crossDomain: false,
|
|
|
+ url: globalConfig.context + "/api/admin/customer/addOneContact",
|
|
|
+ data:{
|
|
|
+ uid:this.state.uids,
|
|
|
+ name:this.state.newname,
|
|
|
+ mobile:this.state.newmobile,
|
|
|
+ email:this.state.newemail,
|
|
|
+ wechat:this.state.newwechat,
|
|
|
+ depatrment:this.state.newdepatrment,
|
|
|
+ position:this.state.newposition,
|
|
|
+ sex:this.state.newsex,
|
|
|
+ qq:this.state.newqq
|
|
|
+ },
|
|
|
+ success: function (data) {
|
|
|
+ if (!data.error.length) {
|
|
|
+ this.addcontactModulOK()
|
|
|
+ this.getNewWoman(this.state.uids)
|
|
|
+ this.setState({
|
|
|
+ loading: false,
|
|
|
+ })
|
|
|
+ } else {
|
|
|
+ message.warning(data.error[0].message);
|
|
|
+ };
|
|
|
+ }.bind(this)
|
|
|
+ });
|
|
|
},
|
|
|
//跟进
|
|
|
addModify(e) {
|
|
@@ -654,12 +648,12 @@ const MyBusiness = Form.create()(React.createClass({
|
|
|
data:{
|
|
|
ufbId:this.state.ufbIds,
|
|
|
followId:this.state.followId,
|
|
|
- customerStatus: this.state.customerStatus,
|
|
|
- followSituation:this.state.followSituation,
|
|
|
- contactType: this.state.contactType,
|
|
|
+ customerStatus: this.state.customerStatusV,
|
|
|
+ followSituation:this.state.followSituationV,
|
|
|
+ contactType: this.state.contactTypeV,
|
|
|
ocbId:contactsId,
|
|
|
- remarks: this.state.remarks,
|
|
|
- result: this.state.result,
|
|
|
+ remarks: this.state.remarksV,
|
|
|
+ result: this.state.resultV,
|
|
|
}
|
|
|
}).done(function (data) {
|
|
|
this.setState({
|
|
@@ -696,14 +690,14 @@ const MyBusiness = Form.create()(React.createClass({
|
|
|
};
|
|
|
this.setState({
|
|
|
businessGlossoryId:thedata.businessGlossoryId,
|
|
|
- followSituation:thedata.followSituation,
|
|
|
- customerStatus:thedata.customerStatus,
|
|
|
+ followSituationV:thedata.followSituation,
|
|
|
+ customerStatusV:thedata.customerStatus,
|
|
|
followTime:thedata.followTime,
|
|
|
createTime:thedata.createTime,
|
|
|
identifyName:thedata.identifyName,
|
|
|
- contactType:parseInt(thedata.contactType),
|
|
|
- result:thedata.result,
|
|
|
- remarks:thedata.remarks,
|
|
|
+ contactTypeV:parseInt(thedata.contactType),
|
|
|
+ resultV:thedata.result,
|
|
|
+ remarksV:thedata.remarks,
|
|
|
adminName:thedata.adminName,
|
|
|
contacts:thedata.contacts,
|
|
|
contactMobile:thedata.contactMobile,
|
|
@@ -977,7 +971,6 @@ const MyBusiness = Form.create()(React.createClass({
|
|
|
})
|
|
|
},
|
|
|
followRowClick(record, index) {
|
|
|
- console.log(record)
|
|
|
this.state.RowData = record;
|
|
|
this.listFollowUp(record);
|
|
|
this.setState({
|
|
@@ -1073,8 +1066,11 @@ const MyBusiness = Form.create()(React.createClass({
|
|
|
style={{ width: 150 }}
|
|
|
value={this.state.customerStatusS}
|
|
|
onChange={(e) => { this.setState({ customerStatusS: e }) }}>
|
|
|
- <Select.Option value="0" >正常</Select.Option>
|
|
|
- <Select.Option value="2" >锁定</Select.Option>
|
|
|
+ {
|
|
|
+ customerStatus.map(function (item) {
|
|
|
+ return <Select.Option key={item.value} >{item.key}</Select.Option>
|
|
|
+ })
|
|
|
+ }
|
|
|
</Select>
|
|
|
<Select placeholder="业务进度"
|
|
|
style={{ width: 150 }}
|
|
@@ -1340,11 +1336,11 @@ const MyBusiness = Form.create()(React.createClass({
|
|
|
}
|
|
|
</Select>
|
|
|
</FormItem>
|
|
|
- <FormItem className="half-item"
|
|
|
+ <FormItem className="half-item"
|
|
|
{...formItemLayout}
|
|
|
label="客户状态"
|
|
|
>
|
|
|
- <Select placeholder="客户状态" value={this.state.customerStatus}
|
|
|
+ <Select placeholder="客户状态" value={this.state.customerStatus} disabled={this.state.customerStatus=='6'?true:false}
|
|
|
onChange={(e) => { this.setState({ customerStatus: e }) }}>
|
|
|
{
|
|
|
customerStatus.map(function (item) {
|
|
@@ -1391,77 +1387,61 @@ const MyBusiness = Form.create()(React.createClass({
|
|
|
>
|
|
|
<Form horizontal onSubmit={this.submitcontactman} id="demand-form">
|
|
|
<Spin spinning={this.state.loading}>
|
|
|
- <Row>
|
|
|
- <FormItem
|
|
|
- labelCol={{ span: 4 }}
|
|
|
- wrapperCol={{ span: 14 }}
|
|
|
- label="是否是主要联系人:" style={{marginRight:'10px'}}>
|
|
|
- <Radio.Group value={this.state.hotst} onChange={(e) => {
|
|
|
- this.setState({ hotst: e.target.value })
|
|
|
- }}>
|
|
|
- <Radio value={0}>是</Radio>
|
|
|
- <Radio value={1}>否</Radio>
|
|
|
- </Radio.Group>
|
|
|
- </FormItem>
|
|
|
+ <Row>
|
|
|
<FormItem
|
|
|
- labelCol={{ span: 4 }}
|
|
|
+ labelCol={{ span: 3 }}
|
|
|
wrapperCol={{ span: 14 }}
|
|
|
label="性别:" style={{marginRight:'10px',marginTop: '-15px'}}>
|
|
|
- <Radio.Group value={this.state.hott} onChange={(e) => {
|
|
|
- this.setState({ hott: e.target.value })
|
|
|
+ <Radio.Group value={this.state.newsex} onChange={(e) => {
|
|
|
+ this.setState({ newsex: e.target.value })
|
|
|
}}>
|
|
|
- <Radio value={0}>男</Radio>
|
|
|
- <Radio value={1}>女</Radio>
|
|
|
+ <Radio value='男'>男</Radio>
|
|
|
+ <Radio value='女'>女</Radio>
|
|
|
</Radio.Group>
|
|
|
</FormItem>
|
|
|
</Row>
|
|
|
<Row style={{ paddingLeft:'50px' }}>
|
|
|
- <Col span={2}>姓名:</Col>
|
|
|
+ <Col span={2}><span style={{color:'red'}}>*</span>姓名:</Col>
|
|
|
<Col span={8}>
|
|
|
- <Input value={this.state.paymentIdt} required="required"
|
|
|
- onChange={(e) => { this.setState({ paymentIdt: e.target.value }) }} />
|
|
|
+ <Input value={this.state.newname} required="required"
|
|
|
+ onChange={(e) => { this.setState({ newname: e.target.value }) }} />
|
|
|
</Col>
|
|
|
- <Col span={2} style={{ marginLeft: '50px' }}>QQ号:</Col>
|
|
|
+ <Col span={2} style={{ marginLeft: '50px' }}><span style={{color:'red'}}>*</span>手机:</Col>
|
|
|
<Col span={8}>
|
|
|
- <Input value={this.state.entIdt}
|
|
|
- onChange={(e) => { this.setState({ entIdt: e.target.value }) }} />
|
|
|
+ <Input value={this.state.newmobile} required="required"
|
|
|
+ onChange={(e) => { this.setState({ newmobile: e.target.value }) }} />
|
|
|
</Col>
|
|
|
+
|
|
|
</Row>
|
|
|
<Row style={{ marginTop: '20px',paddingLeft:'50px' }}>
|
|
|
- <Col span={2}>手机号:</Col>
|
|
|
- <Col span={8}>
|
|
|
- <Input value={this.state.payt} required="required"
|
|
|
- onChange={(e) => { this.setState({ payt: e.target.value }) }} />
|
|
|
+ <Col span={2}>微信:</Col>
|
|
|
+ <Col span={8}>
|
|
|
+ <Input value={this.state.newwechat}
|
|
|
+ onChange={(e) => { this.setState({ newwechat: e.target.value }) }} />
|
|
|
</Col>
|
|
|
- <Col span={2} style={{ marginLeft: '50px' }}>座机号:</Col>
|
|
|
+ <Col span={2} style={{ marginLeft: '50px' }}>Q Q:</Col>
|
|
|
<Col span={8}>
|
|
|
- <Input value={this.state.paymt}
|
|
|
- onChange={(e) => { this.setState({ paymt: e.target.value }) }} />
|
|
|
+ <Input value={this.state.newqq}
|
|
|
+ onChange={(e) => { this.setState({ newqq: e.target.value }) }} />
|
|
|
</Col>
|
|
|
</Row>
|
|
|
-
|
|
|
<Row style={{ marginTop: '20px' ,paddingLeft:'50px'}}>
|
|
|
<Col span={2}>部门:</Col>
|
|
|
<Col span={8}>
|
|
|
- <Input value={this.state.paytIdtt}
|
|
|
- onChange={(e) => { this.setState({ paytIdtt: e.target.value }) }} />
|
|
|
+ <Input value={this.state.newdepatrment}
|
|
|
+ onChange={(e) => { this.setState({ newdepatrment: e.target.value }) }} />
|
|
|
</Col>
|
|
|
<Col span={2} style={{ marginLeft: '50px' }}>职位:</Col>
|
|
|
<Col span={8}>
|
|
|
- <Input value={this.state.paentIdt}
|
|
|
- onChange={(e) => { this.setState({ paentIdt: e.target.value }) }} />
|
|
|
+ <Input value={this.state.newposition}
|
|
|
+ onChange={(e) => { this.setState({ newposition: e.target.value }) }} />
|
|
|
</Col>
|
|
|
</Row>
|
|
|
<Row style={{ marginTop: '20px',paddingLeft:'50px' }}>
|
|
|
- <Col span={2}>微信号:</Col>
|
|
|
- <Col span={8}>
|
|
|
- <Input value={this.state.payIdt}
|
|
|
- onChange={(e) => { this.setState({ payIdt: e.target.value }) }} />
|
|
|
- </Col>
|
|
|
- <Col span={2} style={{ marginLeft: '50px' }}>邮箱:</Col>
|
|
|
+ <Col span={2}>邮箱:</Col>
|
|
|
<Col span={8}>
|
|
|
- <Input value={this.state.emailst}
|
|
|
- onChange={(e) => { this.setState({ emailst: e.target.value }) }} />
|
|
|
+ <Input value={this.state.newemail}
|
|
|
+ onChange={(e) => { this.setState({ newemail: e.target.value }) }} />
|
|
|
</Col>
|
|
|
</Row>
|
|
|
<Row style={{ marginTop: '20px',paddingLeft:'50px' ,marginBottom:'50px'}}>
|
|
@@ -1516,8 +1496,8 @@ const MyBusiness = Form.create()(React.createClass({
|
|
|
{...formItemLayout}
|
|
|
label="意向进度"
|
|
|
>
|
|
|
- <Select placeholder="意向进度" value={this.state.followSituation}
|
|
|
- onChange={(e) => { this.setState({ followSituation: e }) }}>
|
|
|
+ <Select placeholder="意向进度" value={this.state.followSituationV}
|
|
|
+ onChange={(e) => { this.setState({ followSituationV: e }) }}>
|
|
|
{
|
|
|
newFollow.map(function (item) {
|
|
|
return <Select.Option key={item.value} >{item.key}</Select.Option>
|
|
@@ -1529,8 +1509,8 @@ const MyBusiness = Form.create()(React.createClass({
|
|
|
{...formItemLayout}
|
|
|
label="客户状态"
|
|
|
>
|
|
|
- <Select placeholder="客户状态" value={this.state.customerStatus}
|
|
|
- onChange={(e) => { this.setState({ customerStatus: e }) }}>
|
|
|
+ <Select placeholder="客户状态" value={this.state.customerStatusV}
|
|
|
+ onChange={(e) => { this.setState({ customerStatusV: e }) }}>
|
|
|
{
|
|
|
customerStatus.map(function (item) {
|
|
|
return <Select.Option key={item.value} >{item.key}</Select.Option>
|
|
@@ -1543,8 +1523,8 @@ const MyBusiness = Form.create()(React.createClass({
|
|
|
labelCol={{ span: 4 }}
|
|
|
wrapperCol={{ span: 16 }}
|
|
|
label="意向说明" >
|
|
|
- <Input type="textarea" rows={4} placeholder="意向说明" value={this.state.remarks}
|
|
|
- onChange={(e) => { this.setState({ remarks: e.target.value }) }}/>
|
|
|
+ <Input type="textarea" rows={4} placeholder="意向说明" value={this.state.remarksV}
|
|
|
+ onChange={(e) => { this.setState({ remarksV: e.target.value }) }}/>
|
|
|
</FormItem>
|
|
|
</div>
|
|
|
<div style={{fontSize:'18px',marginLeft:'30px'}}>拜访情况</div>
|
|
@@ -1553,8 +1533,8 @@ const MyBusiness = Form.create()(React.createClass({
|
|
|
labelCol={{ span: 8 }}
|
|
|
wrapperCol={{ span: 16 }}
|
|
|
label="拜访方式" >
|
|
|
- <Radio.Group value={this.state.contactType} onChange={(e) => {
|
|
|
- this.setState({ contactType: e.target.value })
|
|
|
+ <Radio.Group value={this.state.contactTypeV} onChange={(e) => {
|
|
|
+ this.setState({ contactTypeV: e.target.value })
|
|
|
}}>
|
|
|
<Radio value={0}>外出</Radio>
|
|
|
<Radio value={1}>电话</Radio>
|
|
@@ -1606,8 +1586,8 @@ const MyBusiness = Form.create()(React.createClass({
|
|
|
labelCol={{ span: 4 }}
|
|
|
wrapperCol={{ span: 16 }}
|
|
|
label="拜访备注" >
|
|
|
- <Input type="textarea" rows={4} value={this.state.result} placeholder="来电备注"
|
|
|
- onChange={(e) => { this.setState({ result: e.target.value }); }}/>
|
|
|
+ <Input type="textarea" rows={4} value={this.state.resultV} placeholder="来电备注"
|
|
|
+ onChange={(e) => { this.setState({ resultV: e.target.value }); }}/>
|
|
|
</FormItem>
|
|
|
</div>
|
|
|
</div>
|