fix:光芯黑化、退火日志reminder_interval_list列表

This commit is contained in:
shijing 2025-11-25 13:33:24 +08:00
parent 3538d68c9c
commit 5f00dc2b0c
1 changed files with 4 additions and 2 deletions

View File

@ -524,16 +524,18 @@ export default {
}
if (that.mode === "add") {
if(that.mgroupName=='黑化'||that.mgroupName=='退火'){
let times = 0;
let times = 0,reminder_interval_list=[];
that.testitems.forEach(item=>{
if(item.name=='退火时间'||item.name=='冷却时间'||item.name=='黑化时间'){
if(item.name=='退火时间'||item.name=='黑化时间'||item.name=='冷却时间'){
times = times + item.value;
reminder_interval_list.push(item.value);
}
})
let time_diff = times*60*1000;
let start_times = new Date(that.form.work_start_time).getTime();
let end_time = start_times + time_diff;
let work_end_time = new Date(end_time);
that.form.reminder_interval_list = reminder_interval_list;
that.form.work_end_time = that.$TOOL.dateFormat(work_end_time);
}
that.$API.wpm.mlog.init.req(that.form).then((res) => {