模具 优化

This commit is contained in:
xielue 2023-09-19 18:44:53 +08:00
parent cc064770f1
commit 62c177a286
1 changed files with 15 additions and 9 deletions

View File

@ -467,6 +467,12 @@ export default {
}
});
if (this.departmentId && item.production_type != 2) {
if (!info.data.mold_production_order_component_processes.length) {
return;
}
}
keys.push(key);
infos.push(info);
@ -845,7 +851,7 @@ export default {
let departments = [];
this.detailsData2.forEach(item => {
if (item.department_detail && item.department_detail.name && !departments.filter(a=>a.id == item.department_detail.id + "").length) {
if (item.department_detail && item.department_detail.name && !departments.filter(a => a.id == item.department_detail.id + "").length) {
departments.push({
id: item.department_detail.id + "",
name: item.department_detail.name
@ -885,7 +891,7 @@ export default {
item.plan_complete_time = this.getDateValueString(item.plan_complete_time);
item.send_time = this.getDateValueString(item.send_time);
item.complete_time = this.getDateValueString(item.complete_time);
item.progress = (item.progress || 0) +"%";
item.progress = (item.progress || 0) + "%";
ds2.push(item);
});
@ -908,7 +914,7 @@ export default {
item.plan_complete_time = this.getDateValueString(item.plan_complete_time);
item.send_time = this.getDateValueString(item.send_time);
item.complete_time = this.getDateValueString(item.complete_time);
item.production_type = item.production_type == 1 ?'正常布产' :'委外布产';
item.production_type = item.production_type == 1 ? '正常布产' : '委外布产';
if (item.component_line == component_line) {
d1.push(item);
}