工艺流程BUG修复
This commit is contained in:
parent
9ef803a39b
commit
e249b6ae1c
@ -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) {
|
||||
|
@ -456,7 +456,7 @@ import {
|
||||
getRouteprocess,
|
||||
delRouteprocess,
|
||||
addRouteprocess,
|
||||
updateRouteprocess,
|
||||
updateRouteprocess, listRouteprocessTwo,
|
||||
} from "@/api/mes/pro/routeprocess";
|
||||
import { listProcess } from "@/api/mes/pro/process";
|
||||
import { getToken } from "@/utils/auth";
|
||||
@ -856,23 +856,25 @@ export default {
|
||||
updateRouteprocess(this.form).then((response) => {
|
||||
this.$modal.msgSuccess("修改成功");
|
||||
this.open = false;
|
||||
// this.getList();
|
||||
this.getList();
|
||||
});
|
||||
} else {
|
||||
addRouteprocess(this.form).then((response) => {
|
||||
this.$modal.msgSuccess("新增成功");
|
||||
this.open = false;
|
||||
// this.getList();
|
||||
this.getList();
|
||||
});
|
||||
}
|
||||
|
||||
this.routeprocessList.forEach((item) => {
|
||||
getRouteprocess(item.recordId).then((response1) => {
|
||||
updateRouteprocess(response1.data).then((response2) => {
|
||||
});
|
||||
let aa = {routeId: this.form.routeId,orderNum: this.form.orderNum}
|
||||
listRouteprocessTwo(aa).then((resp) => {
|
||||
resp.data.forEach((item) => {
|
||||
getRouteprocess(item.recordId).then((response) => {
|
||||
updateRouteprocess(response.data).then(() => {});
|
||||
});
|
||||
});
|
||||
this.getList();
|
||||
});
|
||||
|
||||
}
|
||||
});
|
||||
|
Loading…
Reference in New Issue
Block a user