小小儁爺
2024-12-02 c02a3ebf5b4338710c4f9ae231d72cf591dfb97f
src/views/produceManager/workOrder.vue
@@ -3475,10 +3475,11 @@
      })
      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,
@@ -3487,7 +3488,7 @@
          '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,
@@ -3495,7 +3496,7 @@
          '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': '',