fix:工艺路线编辑时产品展示更新
This commit is contained in:
parent
7c4cce854a
commit
664de0b1f5
|
|
@ -302,20 +302,20 @@ export default {
|
||||||
form.name = that.form.name;
|
form.name = that.form.name;
|
||||||
form.material = that.form.material;
|
form.material = that.form.material;
|
||||||
if (that.form.id) {
|
if (that.form.id) {
|
||||||
that.$API.mtm.routepack.update
|
that.$API.mtm.routepack.update.req(that.form.id, that.form).then((res) => {
|
||||||
.req(that.form.id, that.form)
|
that.routepack = res.id;
|
||||||
.then((res) => {
|
that.query.routepack = res.id;
|
||||||
that.routepack = res.id;
|
that.form.material_name = res.material_name;
|
||||||
that.query.routepack = res.id;
|
that.apiObj = that.$API.mtm.route.list;
|
||||||
that.apiObj = that.$API.mtm.route.list;
|
that.active = 1;
|
||||||
that.active = 1;
|
that.getDEGdatas();
|
||||||
that.getDEGdatas();
|
});
|
||||||
});
|
|
||||||
} else {
|
} else {
|
||||||
that.$API.mtm.routepack.create.req(form).then((res) => {
|
that.$API.mtm.routepack.create.req(form).then((res) => {
|
||||||
this.active = 1;
|
this.active = 1;
|
||||||
that.form.id = res.id;
|
that.form.id = res.id;
|
||||||
that.routepack = res.id;
|
that.routepack = res.id;
|
||||||
|
that.form.material_name = res.material_name;
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
that.materials.forEach((item) => {
|
that.materials.forEach((item) => {
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue