This commit is contained in:
parent
21ec6df821
commit
46b5123fab
|
@ -104,7 +104,7 @@ class order_form extends Component {
|
||||||
branches: result.data.branches,
|
branches: result.data.branches,
|
||||||
isSpin:false
|
isSpin:false
|
||||||
});
|
});
|
||||||
if(this.props.form_type === "edit"){
|
if(this.props.form_type !== "new"){
|
||||||
this.get_detail();
|
this.get_detail();
|
||||||
}else{
|
}else{
|
||||||
this.props.form.setFieldsValue({
|
this.props.form.setFieldsValue({
|
||||||
|
@ -166,8 +166,7 @@ class order_form extends Component {
|
||||||
start_date: start_date,
|
start_date: start_date,
|
||||||
due_date: due_date,
|
due_date: due_date,
|
||||||
issue_type: issue_type,
|
issue_type: issue_type,
|
||||||
})
|
}).then((result) => {
|
||||||
.then((result) => {
|
|
||||||
if (result && result.data.id) {
|
if (result && result.data.id) {
|
||||||
this.props.showNotification("任务创建成功!");
|
this.props.showNotification("任务创建成功!");
|
||||||
this.props.history.push(`/projects/${projectsId}/orders/${result.data.id}/detail`);
|
this.props.history.push(`/projects/${projectsId}/orders/${result.data.id}/detail`);
|
||||||
|
@ -194,8 +193,7 @@ class order_form extends Component {
|
||||||
due_date: due_date,
|
due_date: due_date,
|
||||||
issue_type: issue_type,
|
issue_type: issue_type,
|
||||||
...values,
|
...values,
|
||||||
})
|
}).then((result) => {
|
||||||
.then((result) => {
|
|
||||||
if (result) {
|
if (result) {
|
||||||
this.props.history.push(
|
this.props.history.push(
|
||||||
`/projects/${projectsId}/orders/${orderId}/detail`
|
`/projects/${projectsId}/orders/${orderId}/detail`
|
||||||
|
|
Loading…
Reference in New Issue