|
@@ -6,7 +6,7 @@ import '../userMangagement.less';
|
|
import moment from 'moment';
|
|
import moment from 'moment';
|
|
import Picture from '@/manageCenter/publicComponent/picture';
|
|
import Picture from '@/manageCenter/publicComponent/picture';
|
|
import {orderTypes,customerType,jiedian,tepi,boutique} from '../../../dataDic.js';
|
|
import {orderTypes,customerType,jiedian,tepi,boutique} from '../../../dataDic.js';
|
|
-import {splitUrl,getTransactionProject,getChangeState,getTransactionChannel,beforeUploadFile,getProcessStatus,getLiquidationStatus,getboutique,getApprovedState} from '../../../tools.js';
|
|
|
|
|
|
+import {splitUrl,getTransactionProject,getChangeState,getTransactionChannel,beforeUploadFile,getProcessStatus,getLiquidationStatus,getboutique,getApprovedState,getjiedian} from '../../../tools.js';
|
|
const Option = AutoComplete.Option;
|
|
const Option = AutoComplete.Option;
|
|
//图片组件
|
|
//图片组件
|
|
const PicturesWall = React.createClass({
|
|
const PicturesWall = React.createClass({
|
|
@@ -236,14 +236,16 @@ const NewService = Form.create()(React.createClass({
|
|
dataIndex: 'dunSubject',
|
|
dataIndex: 'dunSubject',
|
|
key: 'dunSubject',
|
|
key: 'dunSubject',
|
|
render: (text, record, index) => {
|
|
render: (text, record, index) => {
|
|
- return <Select placeholder="请选择催款科目" value={record.dunSubject} style={{width:'150px'}}
|
|
|
|
|
|
+ return <div>
|
|
|
|
+ {this.state.processStatus==0?<Select placeholder="请选择催款科目" value={record.dunSubject} style={{width:'150px'}}
|
|
onChange={(e) => { record.dunSubject = e; this.setState({ contactList: this.state.contactList }); }}>
|
|
onChange={(e) => { record.dunSubject = e; this.setState({ contactList: this.state.contactList }); }}>
|
|
{
|
|
{
|
|
jiedian.map(function (item) {
|
|
jiedian.map(function (item) {
|
|
return <Select.Option key={item.value} >{item.key}</Select.Option>
|
|
return <Select.Option key={item.value} >{item.key}</Select.Option>
|
|
})
|
|
})
|
|
}
|
|
}
|
|
- </Select>
|
|
|
|
|
|
+ </Select>:getjiedian(text)}
|
|
|
|
+ </div>
|
|
|
|
|
|
}
|
|
}
|
|
},{
|
|
},{
|
|
@@ -251,9 +253,11 @@ const NewService = Form.create()(React.createClass({
|
|
dataIndex: 'money',
|
|
dataIndex: 'money',
|
|
key: 'money',
|
|
key: 'money',
|
|
render: (text, record, index) => {
|
|
render: (text, record, index) => {
|
|
- return <Input value={record.money} placeholder="请输入金额(必填项)" key={record.id} required="required"
|
|
|
|
- onChange={(e) => { record.money = e.target.value; this.setState({ contactList: this.state.contactList }); }} style={{width:'120px'}}/>
|
|
|
|
- }
|
|
|
|
|
|
+ return <div>
|
|
|
|
+ {this.state.processStatus==0?<Input value={record.money} placeholder="请输入金额(必填项)" key={record.id} required="required"
|
|
|
|
+ onChange={(e) => { record.money = e.target.value; this.setState({ contactList: this.state.contactList }); }} style={{width:'120px'}}/>:<span>{text}</span>}
|
|
|
|
+ </div>
|
|
|
|
+ }
|
|
}, {
|
|
}, {
|
|
title: '催款状态',
|
|
title: '催款状态',
|
|
dataIndex: 'dunStatus',
|
|
dataIndex: 'dunStatus',
|
|
@@ -319,6 +323,11 @@ const NewService = Form.create()(React.createClass({
|
|
this.refs.signFirstPayment.focus()
|
|
this.refs.signFirstPayment.focus()
|
|
return false;
|
|
return false;
|
|
};
|
|
};
|
|
|
|
+ if(!this.state.signDate){
|
|
|
|
+ message.warning('签单日期不能为空');
|
|
|
|
+ this.refs.signFirstPayment.focus()
|
|
|
|
+ return false;
|
|
|
|
+ };
|
|
}else{
|
|
}else{
|
|
if(this.state.orderType==undefined){
|
|
if(this.state.orderType==undefined){
|
|
message.warning('请选择订单类型');
|
|
message.warning('请选择订单类型');
|
|
@@ -593,7 +602,7 @@ const NewService = Form.create()(React.createClass({
|
|
this.setState({
|
|
this.setState({
|
|
loading: false,
|
|
loading: false,
|
|
});
|
|
});
|
|
- this.loaduser()
|
|
|
|
|
|
+ //this.loaduser()
|
|
this.loadData();
|
|
this.loadData();
|
|
} else {
|
|
} else {
|
|
message.warning(data.error[0].message);
|
|
message.warning(data.error[0].message);
|