fix:创建工艺路线点击上一步时创建多条记录
This commit is contained in:
parent
9fa6081434
commit
3435ffa718
|
@ -244,6 +244,7 @@ export default {
|
|||
let form = {};
|
||||
form.name = that.form.name;
|
||||
form.material = that.form.material;
|
||||
console.log("that.form",that.form)
|
||||
if (that.form.id) {
|
||||
that.$API.mtm.routepack.update
|
||||
.req(that.form.id, that.form)
|
||||
|
@ -258,7 +259,9 @@ export default {
|
|||
} else {
|
||||
that.$API.mtm.routepack.create.req(form).then((res) => {
|
||||
this.active = 1;
|
||||
that.form.id = res.id;
|
||||
that.routepack = res.id;
|
||||
console.log("that.form",that.form)
|
||||
});
|
||||
}
|
||||
},
|
||||
|
|
Loading…
Reference in New Issue