|
@@ -183,6 +183,7 @@ const AchievementDetailShow = Form.create()(React.createClass({
|
|
|
if (thisData.ownerId) {
|
|
|
this.getContactsList(thisData.ownerId);
|
|
|
};
|
|
|
+ console.log(thisData);
|
|
|
}.bind(this),
|
|
|
}).always(function () {
|
|
|
this.setState({
|
|
@@ -354,7 +355,7 @@ const AchievementDetailShow = Form.create()(React.createClass({
|
|
|
const formItemLayout = {
|
|
|
labelCol: { span: 8 },
|
|
|
wrapperCol: { span: 14 },
|
|
|
- };
|
|
|
+ };
|
|
|
return (
|
|
|
<Form horizontal onSubmit={this.handleSubmit} id="demand-form">
|
|
|
<Spin spinning={this.state.loading}>
|
|
@@ -364,11 +365,7 @@ const AchievementDetailShow = Form.create()(React.createClass({
|
|
|
label="客户类型5555" >
|
|
|
<span>{theData._shareType}</span>
|
|
|
</FormItem>
|
|
|
- <FormItem className="half-item"
|
|
|
- {...formItemLayout}
|
|
|
- label="编号" >
|
|
|
- <span>{theData.id}</span>
|
|
|
- </FormItem>
|
|
|
+
|
|
|
<div className="clearfix" style={{marginLeft:'40px',marginBottom:'20px',color:'#000000'}}>基本资料:</div>
|
|
|
</div>
|
|
|
{/* <FormItem className="half-item"
|
|
@@ -382,12 +379,8 @@ const AchievementDetailShow = Form.create()(React.createClass({
|
|
|
</FormItem> */}
|
|
|
<FormItem className="half-item"
|
|
|
{...formItemLayout}
|
|
|
- label="跟单人" >
|
|
|
- {getFieldDecorator('ownerId', {
|
|
|
- initialValue: theData.ownerId
|
|
|
- })(
|
|
|
- <Input />
|
|
|
- )}
|
|
|
+ label="跟单人" >
|
|
|
+ <span>{theData.adminName}</span>
|
|
|
</FormItem>
|
|
|
|
|
|
<div className="clearfix" style={{marginLeft:'40px',marginBottom:'20px',color:'#000000'}}>公司资料:</div>
|
|
@@ -446,7 +439,8 @@ const AchievementDetailShow = Form.create()(React.createClass({
|
|
|
{...formItemLayout}
|
|
|
label="最新跟进" >
|
|
|
{getFieldDecorator('followSituation', {
|
|
|
- initialValue: theData.followSituation
|
|
|
+ rules: [{ required: true, message: '此项为必填项!' }],
|
|
|
+ initialValue: getfllowSituation(theData.followSituation)
|
|
|
})(
|
|
|
<Select placeholder="选择跟进进度" style={{ width: 160 }} >
|
|
|
{
|
|
@@ -461,7 +455,8 @@ const AchievementDetailShow = Form.create()(React.createClass({
|
|
|
{...formItemLayout}
|
|
|
label="客户状态" >
|
|
|
{getFieldDecorator('customerStatus', {
|
|
|
- initialValue: theData.customerStatus
|
|
|
+ rules: [{ required: true, message: '此项为必填项!' }],
|
|
|
+ initialValue: getcustomerStatue(theData.customerStatus)
|
|
|
})(
|
|
|
<Select placeholder="选择客户状态" style={{ width: 160 }} >
|
|
|
{
|
|
@@ -478,7 +473,7 @@ const AchievementDetailShow = Form.create()(React.createClass({
|
|
|
{getFieldDecorator('adress', {
|
|
|
initialValue: theData.adress
|
|
|
})(
|
|
|
- <Input />
|
|
|
+ <Input type="text" rows={1}/>
|
|
|
)}
|
|
|
</FormItem>
|
|
|
<div className="clearfix">
|
|
@@ -499,11 +494,11 @@ const AchievementDetailShow = Form.create()(React.createClass({
|
|
|
<FormItem className="half-item"
|
|
|
{...formItemLayout}
|
|
|
label="姓名" >
|
|
|
- {getFieldDecorator('name', {
|
|
|
+ {getFieldDecorator('contactName', {
|
|
|
rules: [{ required: true, message: '此项为必填项!' }],
|
|
|
- initialValue: theData.name
|
|
|
+ initialValue: theData.contactName
|
|
|
})(
|
|
|
- <Input />
|
|
|
+ <Input type="text" rows={1}/>
|
|
|
)}
|
|
|
</FormItem>
|
|
|
<FormItem className="half-item"
|
|
@@ -511,10 +506,9 @@ const AchievementDetailShow = Form.create()(React.createClass({
|
|
|
label="性别" >
|
|
|
{getFieldDecorator('sex', {
|
|
|
rules: [{ required: true, message: '此项为必填项!' }],
|
|
|
- initialValue:getsex(theData.sex)
|
|
|
-
|
|
|
+ initialValue:theData.sex
|
|
|
})(
|
|
|
- <Radio.Group>
|
|
|
+ <Radio.Group onChange={(e) => { this.setState({ radios: e.target.value }); }}>
|
|
|
<Radio value="0">男</Radio>
|
|
|
<Radio value="1">女</Radio>
|
|
|
</Radio.Group>
|
|
@@ -527,7 +521,7 @@ const AchievementDetailShow = Form.create()(React.createClass({
|
|
|
rules: [{ required: true, message: '此项为必填项!' }],
|
|
|
initialValue: theData.telNum
|
|
|
})(
|
|
|
- <Input />
|
|
|
+ <Input type="text" rows={1}/>
|
|
|
)}
|
|
|
</FormItem>
|
|
|
<FormItem className="half-item"
|
|
@@ -536,7 +530,7 @@ const AchievementDetailShow = Form.create()(React.createClass({
|
|
|
{getFieldDecorator('mobile', {
|
|
|
initialValue: theData.mobile
|
|
|
})(
|
|
|
- <Input />
|
|
|
+ <Input type="text" rows={1}/>
|
|
|
)}
|
|
|
</FormItem>
|
|
|
<FormItem className="half-item"
|
|
@@ -545,7 +539,7 @@ const AchievementDetailShow = Form.create()(React.createClass({
|
|
|
{getFieldDecorator('qq', {
|
|
|
initialValue: theData.qq
|
|
|
})(
|
|
|
- <Input />
|
|
|
+ <Input type="text" rows={1}/>
|
|
|
)}
|
|
|
</FormItem>
|
|
|
<FormItem className="half-item"
|
|
@@ -554,7 +548,7 @@ const AchievementDetailShow = Form.create()(React.createClass({
|
|
|
{getFieldDecorator('email', {
|
|
|
initialValue: theData.email
|
|
|
})(
|
|
|
- <Input />
|
|
|
+ <Input type="text" rows={1}/>
|
|
|
)}
|
|
|
</FormItem>
|
|
|
<FormItem className="half-item"
|
|
@@ -563,7 +557,7 @@ const AchievementDetailShow = Form.create()(React.createClass({
|
|
|
{getFieldDecorator('wechat', {
|
|
|
initialValue: theData.wechat
|
|
|
})(
|
|
|
- <Input />
|
|
|
+ <Input type="text" rows={1}/>
|
|
|
)}
|
|
|
</FormItem>
|
|
|
<FormItem className="half-item"
|
|
@@ -572,7 +566,7 @@ const AchievementDetailShow = Form.create()(React.createClass({
|
|
|
{getFieldDecorator('depatrment', {
|
|
|
initialValue: theData.depatrment
|
|
|
})(
|
|
|
- <Input />
|
|
|
+ <Input type="text" rows={1}/>
|
|
|
)}
|
|
|
</FormItem>
|
|
|
<FormItem className="half-item"
|
|
@@ -581,15 +575,15 @@ const AchievementDetailShow = Form.create()(React.createClass({
|
|
|
{getFieldDecorator('customerPosition', {
|
|
|
initialValue: theData.customerPosition
|
|
|
})(
|
|
|
- <Input />
|
|
|
+ <Input type="text" rows={1}/>
|
|
|
)}
|
|
|
</FormItem>
|
|
|
|
|
|
</div>
|
|
|
- <FormItem wrapperCol={{ span: 12, offset: 4 }}>
|
|
|
- <Button className="set-submit" type="primary" htmlType="submit" id="change_keep">保存</Button>
|
|
|
- <Button className="set-submit" type="ghost" onClick={this.props.closeDesc} id='change_rem'>取消</Button>
|
|
|
- </FormItem>
|
|
|
+ <div className="clearfix" style={{paddingLeft:"200px",marginBottom:"20px"}}>
|
|
|
+ <Button className="set-submit" type="primary" htmlType="submit" id="change_keep" style={{marginTop:"20px"}}>保存</Button>
|
|
|
+ <Button className="set-submit" type="ghost" onClick={this.props.closeDesc} id='change_rem' style={{marginTop:"20px"}}>取消</Button>
|
|
|
+ </div>
|
|
|
|
|
|
{/* <FormItem wrapperCol={{ span: 12, offset: 4 }}>
|
|
|
{theData.auditStatus == 2 ? <Button className="set-submit" type="primary" htmlType="submit">保存</Button> : <span></span>}
|
|
@@ -880,7 +874,7 @@ const AchievementDetailForm = Form.create()(React.createClass({
|
|
|
<div className="clearfix">
|
|
|
<FormItem className="half-item"
|
|
|
{...formItemLayout}
|
|
|
- label="客户类型11111" >
|
|
|
+ label="客户类型" >
|
|
|
{getFieldDecorator('customerTyp', {
|
|
|
rules: [{ required: true, message: '此项为必填项!' }],
|
|
|
initialValue: theData.customerTyp
|
|
@@ -891,11 +885,6 @@ const AchievementDetailForm = Form.create()(React.createClass({
|
|
|
</Select>
|
|
|
)}
|
|
|
</FormItem>
|
|
|
- <FormItem className="half-item"
|
|
|
- {...formItemLayout}
|
|
|
- label="编号" >
|
|
|
- <span>{theData.id}</span>
|
|
|
- </FormItem>
|
|
|
<div className="clearfix" style={{marginLeft:'40px',marginBottom:'20px',color:'#000000'}}>基本资料:</div>
|
|
|
<div>
|
|
|
{/* <FormItem className="half-item"
|
|
@@ -984,6 +973,7 @@ const AchievementDetailForm = Form.create()(React.createClass({
|
|
|
{...formItemLayout}
|
|
|
label="最新跟进" >
|
|
|
{getFieldDecorator('followSituation', {
|
|
|
+ rules: [{ required: true, message: '此项为必填项!' }],
|
|
|
initialValue: getfllowSituation(theData.followSituation)
|
|
|
})(
|
|
|
<Select placeholder="选择跟进进度" style={{ width: 160 }} >
|
|
@@ -999,6 +989,7 @@ const AchievementDetailForm = Form.create()(React.createClass({
|
|
|
{...formItemLayout}
|
|
|
label="客户状态" >
|
|
|
{getFieldDecorator('customerStatus', {
|
|
|
+ rules: [{ required: true, message: '此项为必填项!' }],
|
|
|
initialValue: getcustomerStatue(theData.customerStatus)
|
|
|
})(
|
|
|
<Select placeholder="选择客户状态" style={{ width: 160 }} >
|