|
@@ -298,16 +298,6 @@ const NewService = Form.create()(React.createClass({
|
|
theorgCodeUrl = picArr.join(",");
|
|
theorgCodeUrl = picArr.join(",");
|
|
};
|
|
};
|
|
if(this.props.userDetaile){
|
|
if(this.props.userDetaile){
|
|
- if(!this.state.contacts){
|
|
|
|
- message.warning('企业负责人不能为空');
|
|
|
|
- this.refs.signFirstPayment.focus()
|
|
|
|
- return false;
|
|
|
|
- };
|
|
|
|
- if(!this.state.contactMobile){
|
|
|
|
- message.warning('企业负责人电话不能为空');
|
|
|
|
- this.refs.signFirstPayment.focus()
|
|
|
|
- return false;
|
|
|
|
- };
|
|
|
|
if(!this.state.totalAmount){
|
|
if(!this.state.totalAmount){
|
|
message.warning('签单金额不能为空');
|
|
message.warning('签单金额不能为空');
|
|
this.refs.signFirstPayment.focus()
|
|
this.refs.signFirstPayment.focus()
|
|
@@ -830,7 +820,7 @@ const NewService = Form.create()(React.createClass({
|
|
if(!data.error.length) {
|
|
if(!data.error.length) {
|
|
message.success('保存成功!');
|
|
message.success('保存成功!');
|
|
this.nextCancel()
|
|
this.nextCancel()
|
|
- this.loaduser(this.props.datauser);
|
|
+ //this.loaduser(this.props.datauser);
|
|
this.loadData();
|
|
this.loadData();
|
|
} else {
|
|
} else {
|
|
message.warning(data.error[0].message);
|
|
message.warning(data.error[0].message);
|
|
@@ -1104,13 +1094,11 @@ const NewService = Form.create()(React.createClass({
|
|
{...formItemLayout}
|
|
{...formItemLayout}
|
|
label="企业联系人" >
|
|
label="企业联系人" >
|
|
<Input placeholder="请输入联系人" ref='signTotalAmount' value={this.state.contacts} onChange={(e)=>{this.setState({contacts:e.target.value})}} style={{width:'240px'}} />
|
|
<Input placeholder="请输入联系人" ref='signTotalAmount' value={this.state.contacts} onChange={(e)=>{this.setState({contacts:e.target.value})}} style={{width:'240px'}} />
|
|
- <span className="mandatory">*</span>
|
|
|
|
</FormItem>
|
|
</FormItem>
|
|
<FormItem className="half-item"
|
|
<FormItem className="half-item"
|
|
{...formItemLayout}
|
|
{...formItemLayout}
|
|
label="联系人电话" >
|
|
label="联系人电话" >
|
|
<Input placeholder="请输入联系人电话" ref='signTotalAmount' value={this.state.contactMobile} onChange={(e)=>{this.setState({contactMobile:e.target.value})}} style={{width:'240px'}} />
|
|
<Input placeholder="请输入联系人电话" ref='signTotalAmount' value={this.state.contactMobile} onChange={(e)=>{this.setState({contactMobile:e.target.value})}} style={{width:'240px'}} />
|
|
- <span className="mandatory">*</span>
|
|
|
|
</FormItem>
|
|
</FormItem>
|
|
<FormItem className="half-item"
|
|
<FormItem className="half-item"
|
|
{...formItemLayout}
|
|
{...formItemLayout}
|
|
@@ -1202,25 +1190,41 @@ const NewService = Form.create()(React.createClass({
|
|
<span>{this.state.signDate}</span>
|
|
<span>{this.state.signDate}</span>
|
|
</FormItem>
|
|
</FormItem>
|
|
</div>}
|
|
</div>}
|
|
-
|
|
+ <div className='clearfix'>
|
|
-
|
|
+ {this.state.processStatus==0?
|
|
- <div className='clearfix'>
|
|
+ <FormItem
|
|
- <FormItem
|
|
+ labelCol={{ span: 4 }}
|
|
- labelCol={{ span: 4 }}
|
|
+ wrapperCol={{ span: 18 }}
|
|
- wrapperCol={{ span: 18 }}
|
|
+ label={
|
|
- label={
|
|
+ <span>
|
|
- <span>
|
|
+ <strong style={{ color: '#f00' }}>*</strong>合同扫描件
|
|
- <strong style={{ color: '#f00' }}>*</strong>合同扫描件
|
|
+ </span>
|
|
- </span>
|
|
+ }
|
|
- }
|
|
+ >
|
|
- >
|
|
+
|
|
-
|
|
+ <PicturesWall
|
|
- <PicturesWall
|
|
+ fileList={this.getOrgCodeUrl}
|
|
- fileList={this.getOrgCodeUrl}
|
|
+ pictureUrl={this.state.orgCodeUrl} />
|
|
- pictureUrl={this.state.orgCodeUrl} />
|
|
+ <p>图片建议:要清晰。</p>
|
|
- <p>图片建议:要清晰。</p>
|
|
+ </FormItem>:
|
|
- </FormItem>
|
|
+ <FormItem labelCol={{ span: 4 }} wrapperCol={{ span: 18 }} label="合同扫描件">
|
|
- </div>
|
|
+ <Upload className="demandDetailShow-upload"
|
|
|
|
+ listType="picture-card"
|
|
|
|
+ fileList={this.state.orgCodeUrl}
|
|
|
|
+ onPreview={(file) => {
|
|
|
|
+ this.setState({
|
|
|
|
+ previewImage: file.url || file.thumbUrl,
|
|
|
|
+ previewVisible: true,
|
|
|
|
+ });
|
|
|
|
+ }} >
|
|
|
|
+ </Upload>
|
|
|
|
+ <Modal maskClosable={false} footer={null}
|
|
|
|
+ visible={this.state.previewVisible}
|
|
|
|
+ onCancel={() => { this.setState({ previewVisible: false }) }}>
|
|
|
|
+ <img alt="" style={{ width: '100%' }} src={this.state.previewImage || ''} />
|
|
|
|
+ </Modal>
|
|
|
|
+ </FormItem>}
|
|
|
|
+ </div>
|
|
<div className='clearfix'>
|
|
<div className='clearfix'>
|
|
{this.state.processStatus==0?
|
|
{this.state.processStatus==0?
|
|
<FormItem
|
|
<FormItem
|
|
@@ -1432,7 +1436,7 @@ const NewService = Form.create()(React.createClass({
|
|
<Modal maskClosable={false} visible={this.state.lookVisible}
|
|
<Modal maskClosable={false} visible={this.state.lookVisible}
|
|
onOk={this.noCancel} onCancel={this.noCancel}
|
|
onOk={this.noCancel} onCancel={this.noCancel}
|
|
width='800px'
|
|
width='800px'
|
|
- title={'项目任务详情'}
|
|
+ title={'退单申请'}
|
|
footer=''
|
|
footer=''
|
|
className="admin-desc-content">
|
|
className="admin-desc-content">
|
|
<Form layout="horizontal" id="demand-form">
|
|
<Form layout="horizontal" id="demand-form">
|