|
@@ -508,6 +508,23 @@ const NewService = Form.create()(React.createClass({
|
|
|
},
|
|
|
//催款节点保存
|
|
|
contactSave(e) {
|
|
|
+ if(this.state.contactList){
|
|
|
+ console.log(1);
|
|
|
+ let cuiData=this.state.contactList;
|
|
|
+ for(var a=0;a<cuiData.length;a++){
|
|
|
+ console.log(cuiData[a]);
|
|
|
+ if(cuiData[a].money==''){
|
|
|
+ message.warning('催款金额不能为空');
|
|
|
+ this.refs.signFirstPayment.focus()
|
|
|
+ return false;
|
|
|
+ }else if(!cuiData[a].dunSubject){
|
|
|
+ message.warning('催款科目不能为空');
|
|
|
+ this.refs.signFirstPayment.focus()
|
|
|
+ return false;
|
|
|
+ }
|
|
|
+ }
|
|
|
+
|
|
|
+ };
|
|
|
this.setState({
|
|
|
loading: true
|
|
|
});
|
|
@@ -542,7 +559,6 @@ const NewService = Form.create()(React.createClass({
|
|
|
this.setState({
|
|
|
contactList: this.state.contactList
|
|
|
})
|
|
|
- console.log(this.state.contactList);
|
|
|
},
|
|
|
|
|
|
//删除收款节点
|
|
@@ -1386,55 +1402,89 @@ const NewService = Form.create()(React.createClass({
|
|
|
<Button className="submitSave" type="ghost" onClick={this.nextCancel}>取消</Button>
|
|
|
</FormItem>
|
|
|
</div>:
|
|
|
- <div className='clearfix'>
|
|
|
- <FormItem className="half-item"
|
|
|
- {...formItemLayout}
|
|
|
- label="项目名称" >
|
|
|
- <span>{this.state.commodityName}</span>
|
|
|
- </FormItem>
|
|
|
- <FormItem className="half-item"
|
|
|
- {...formItemLayout}
|
|
|
- label="项目数量" >
|
|
|
- <Input placeholder="请输入数量" value={this.state.commodityQuantity} style={{width:'200px'}}
|
|
|
- onChange={(e)=>{this.setState({commodityQuantity:e.target.value})}} />
|
|
|
- <span className="mandatory">*</span>
|
|
|
- </FormItem>
|
|
|
- <FormItem className="half-item"
|
|
|
- {...formItemLayout}
|
|
|
- label="金额(万元)" >
|
|
|
- <Input placeholder="请输入签单金额" value={this.state.commodityPrice} style={{width:'200px'}}
|
|
|
- onChange={(e)=>{this.setState({commodityPrice:e.target.value})}} />
|
|
|
- <span className="mandatory">*</span>
|
|
|
- </FormItem>
|
|
|
- <FormItem className="half-item"
|
|
|
- {...formItemLayout}
|
|
|
- label="主要项目" >
|
|
|
- <Select placeholder="选择是否为主要业务"
|
|
|
- style={{ width:'200px'}}
|
|
|
- value={this.state.main}
|
|
|
- onChange={(e)=>{this.setState({main:e})}}>
|
|
|
- {
|
|
|
- boutique.map(function (item) {
|
|
|
- return <Select.Option key={item.value} >{item.key}</Select.Option>
|
|
|
- })
|
|
|
- }
|
|
|
- </Select>
|
|
|
- <span className="mandatory">*</span>
|
|
|
- </FormItem>
|
|
|
+ <div className="clearfix">
|
|
|
+ {this.state.processStatus==0?
|
|
|
<div className='clearfix'>
|
|
|
- <FormItem
|
|
|
- labelCol={{ span: 4 }}
|
|
|
- wrapperCol={{ span: 16 }}
|
|
|
- label="服务说明" >
|
|
|
- <Input type='textarea' placeholder="请输入服务说明" value={this.state.taskComment}
|
|
|
- onChange={(e)=>{this.setState({taskComment:e.target.value})}} />
|
|
|
+ <FormItem className="half-item"
|
|
|
+ {...formItemLayout}
|
|
|
+ label="项目名称" >
|
|
|
+ <span>{this.state.commodityName}</span>
|
|
|
</FormItem>
|
|
|
- </div>
|
|
|
- <FormItem wrapperCol={{ span: 12, offset: 4 }} className="half-middle">
|
|
|
- <Button className="submitSave" type="primary" onClick={this.tabRowSave}>保存</Button>
|
|
|
- <Button className="submitSave" type="ghost" onClick={this.nextCancel}>取消</Button>
|
|
|
- </FormItem>
|
|
|
- </div>}
|
|
|
+ <FormItem className="half-item"
|
|
|
+ {...formItemLayout}
|
|
|
+ label="项目数量" >
|
|
|
+ <Input placeholder="请输入数量" value={this.state.commodityQuantity} style={{width:'200px'}}
|
|
|
+ onChange={(e)=>{this.setState({commodityQuantity:e.target.value})}} />
|
|
|
+ <span className="mandatory">*</span>
|
|
|
+ </FormItem>
|
|
|
+ <FormItem className="half-item"
|
|
|
+ {...formItemLayout}
|
|
|
+ label="金额(万元)" >
|
|
|
+ <Input placeholder="请输入签单金额" value={this.state.commodityPrice} style={{width:'200px'}}
|
|
|
+ onChange={(e)=>{this.setState({commodityPrice:e.target.value})}} />
|
|
|
+ <span className="mandatory">*</span>
|
|
|
+ </FormItem>
|
|
|
+ <FormItem className="half-item"
|
|
|
+ {...formItemLayout}
|
|
|
+ label="主要项目" >
|
|
|
+ <Select placeholder="选择是否为主要业务"
|
|
|
+ style={{ width:'200px'}}
|
|
|
+ value={this.state.main}
|
|
|
+ onChange={(e)=>{this.setState({main:e})}}>
|
|
|
+ {
|
|
|
+ boutique.map(function (item) {
|
|
|
+ return <Select.Option key={item.value} >{item.key}</Select.Option>
|
|
|
+ })
|
|
|
+ }
|
|
|
+ </Select>
|
|
|
+ <span className="mandatory">*</span>
|
|
|
+ </FormItem>
|
|
|
+ <div className='clearfix'>
|
|
|
+ <FormItem
|
|
|
+ labelCol={{ span: 4 }}
|
|
|
+ wrapperCol={{ span: 16 }}
|
|
|
+ label="服务说明" >
|
|
|
+ <Input type='textarea' placeholder="请输入服务说明" value={this.state.taskComment}
|
|
|
+ onChange={(e)=>{this.setState({taskComment:e.target.value})}} />
|
|
|
+ </FormItem>
|
|
|
+ </div>
|
|
|
+ <FormItem wrapperCol={{ span: 12, offset: 4 }} className="half-middle">
|
|
|
+ <Button className="submitSave" type="primary" onClick={this.tabRowSave}>保存</Button>
|
|
|
+ <Button className="submitSave" type="ghost" onClick={this.nextCancel}>取消</Button>
|
|
|
+ </FormItem>
|
|
|
+ </div>:<div className='clearfix'>
|
|
|
+ <FormItem className="half-item"
|
|
|
+ {...formItemLayout}
|
|
|
+ label="项目名称" >
|
|
|
+ <span>{this.state.commodityName}</span>
|
|
|
+ </FormItem>
|
|
|
+ <FormItem className="half-item"
|
|
|
+ {...formItemLayout}
|
|
|
+ label="项目数量" >
|
|
|
+ <span>{this.state.commodityQuantity}</span>
|
|
|
+ </FormItem>
|
|
|
+ <FormItem className="half-item"
|
|
|
+ {...formItemLayout}
|
|
|
+ label="金额(万元)" >
|
|
|
+ <span>{this.state.commodityPrice}</span>
|
|
|
+ </FormItem>
|
|
|
+ <FormItem className="half-item"
|
|
|
+ {...formItemLayout}
|
|
|
+ label="主要项目" >
|
|
|
+ <span>{getboutique(this.state.main)}</span>
|
|
|
+ </FormItem>
|
|
|
+ <div className='clearfix'>
|
|
|
+ <FormItem
|
|
|
+ labelCol={{ span: 4 }}
|
|
|
+ wrapperCol={{ span: 16 }}
|
|
|
+ label="服务说明" >
|
|
|
+ <span>{this.state.taskComment}</span>
|
|
|
+ </FormItem>
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
+ }
|
|
|
+ </div>
|
|
|
+ }
|
|
|
</Spin>
|
|
|
</Form >
|
|
|
</Modal>
|