工艺流程

This commit is contained in:
打豆豆 2024-04-24 12:25:58 +08:00
parent bd41a573cd
commit eecd7cf59a
2 changed files with 3 additions and 8 deletions

View File

@ -49,7 +49,7 @@ service.interceptors.request.use(config => {
const s_url = sessionObj.url; // 请求地址
const s_data = sessionObj.data; // 请求数据
const s_time = sessionObj.time; // 请求时间
const interval = 1000; // 间隔时间(ms),小于此时间视为重复提交
const interval = 5000; // 间隔时间(ms),小于此时间视为重复提交
if (s_data === requestObj.data && requestObj.time - s_time < interval && s_url === requestObj.url) {
const message = '数据正在处理,请勿重复提交';
console.warn(`[${s_url}]: ` + message)

View File

@ -818,7 +818,7 @@ export default {
}
this.open = true;
this.title = "添加工艺组成";
listRouteprocess(this.queryParams).then((response) => {
listRouteprocess({ routeId: this.routeId }).then((response) => {
this.form.orderNum = response.rows.pop().orderNum + 1;
});
},
@ -852,12 +852,7 @@ export default {
}
},
process() {
const queryParamsArr = {
pageNum: 1,
pageSize: 10000,
routeId: this.routeId,
};
listRouteprocess(queryParamsArr).then((response) => {
listRouteprocess({ routeId: this.routeId }).then((response) => {
const dataAfterThree = [];
response.rows.forEach((item, index) => {
dataAfterThree.push(item);