fix:工艺路线编辑时产品展示更新

This commit is contained in:
shijing 2025-04-10 15:12:21 +08:00
parent 7c4cce854a
commit 664de0b1f5
1 changed files with 9 additions and 9 deletions

View File

@ -302,20 +302,20 @@ export default {
form.name = that.form.name;
form.material = that.form.material;
if (that.form.id) {
that.$API.mtm.routepack.update
.req(that.form.id, that.form)
.then((res) => {
that.routepack = res.id;
that.query.routepack = res.id;
that.apiObj = that.$API.mtm.route.list;
that.active = 1;
that.getDEGdatas();
});
that.$API.mtm.routepack.update.req(that.form.id, that.form).then((res) => {
that.routepack = res.id;
that.query.routepack = res.id;
that.form.material_name = res.material_name;
that.apiObj = that.$API.mtm.route.list;
that.active = 1;
that.getDEGdatas();
});
} else {
that.$API.mtm.routepack.create.req(form).then((res) => {
this.active = 1;
that.form.id = res.id;
that.routepack = res.id;
that.form.material_name = res.material_name;
});
}
that.materials.forEach((item) => {