工艺流程BUG修复

This commit is contained in:
zhuzhilei 2024-04-10 15:49:01 +08:00
parent 9ef803a39b
commit e249b6ae1c
2 changed files with 16 additions and 7 deletions

View File

@ -9,6 +9,13 @@ export function listRouteprocess(query) {
}) })
} }
export function listRouteprocessTwo(query) {
return request({
url: '/mes/pro/routeprocess/processesList',
method: 'get',
params: query
})
}
// 查询产品的工艺组成列表 // 查询产品的工艺组成列表
export function listProductprocess(productId) { export function listProductprocess(productId) {

View File

@ -456,7 +456,7 @@ import {
getRouteprocess, getRouteprocess,
delRouteprocess, delRouteprocess,
addRouteprocess, addRouteprocess,
updateRouteprocess, updateRouteprocess, listRouteprocessTwo,
} from "@/api/mes/pro/routeprocess"; } from "@/api/mes/pro/routeprocess";
import { listProcess } from "@/api/mes/pro/process"; import { listProcess } from "@/api/mes/pro/process";
import { getToken } from "@/utils/auth"; import { getToken } from "@/utils/auth";
@ -856,23 +856,25 @@ export default {
updateRouteprocess(this.form).then((response) => { updateRouteprocess(this.form).then((response) => {
this.$modal.msgSuccess("修改成功"); this.$modal.msgSuccess("修改成功");
this.open = false; this.open = false;
// this.getList(); this.getList();
}); });
} else { } else {
addRouteprocess(this.form).then((response) => { addRouteprocess(this.form).then((response) => {
this.$modal.msgSuccess("新增成功"); this.$modal.msgSuccess("新增成功");
this.open = false; this.open = false;
// this.getList(); this.getList();
}); });
} }
this.routeprocessList.forEach((item) => { let aa = {routeId: this.form.routeId,orderNum: this.form.orderNum}
getRouteprocess(item.recordId).then((response1) => { listRouteprocessTwo(aa).then((resp) => {
updateRouteprocess(response1.data).then((response2) => { resp.data.forEach((item) => {
getRouteprocess(item.recordId).then((response) => {
updateRouteprocess(response.data).then(() => {});
}); });
}); });
this.getList();
}); });
this.getList();
} }
}); });