| | |
| | | }) |
| | | |
| | | const { data: res } = await BatchSearchRouteStep(data) |
| | | const R = [...res.filter(i => i.children.length === 0), ...res.filter(i => i.children.length > 0)] |
| | | this.formData3 = [] |
| | | this.multipleSelection.forEach((item, index) => { |
| | | item.stepname = res[index].children.length > 0 ? res[index].children[0].stepname : '' |
| | | console.log(item.stepname) |
| | | item.stepname = R[index].children.length > 0 ? R[index].children[0].stepname : '' |
| | | // console.log(item.stepname) |
| | | // if (item.stepname) { |
| | | this.formData3.push({ |
| | | 'mesorderstus': item.status, |
| | |
| | | 'mesordercode': item.wo_code, |
| | | 'partcode': item.partcode, |
| | | 'mesqty': item.plan_qty, |
| | | 'routecode': res[index].children.length > 0 ? res[index].children[0].routecode : '', |
| | | 'routecode': R[index].children.length > 0 ? R[index].children[0].routecode : '', |
| | | 'wkshopcode': item.wkshp_code, |
| | | 'wkshopname': item.wkshp_name, |
| | | 'partname': item.partname, |
| | |
| | | 'planstartdate': item.plan_startdate, |
| | | 'planenddate': item.plan_enddate, |
| | | 'orderlev': item.piroque, |
| | | children: res[index].children.length > 0 ? res[index].children : [], |
| | | children: R[index].children.length > 0 ? R[index].children : [], |
| | | is_steprice: false, |
| | | |
| | | 'is_aps': '', |