Explorar o código

装箱单成衣参照数据尺码字段值来源

jbb %!s(int64=2) %!d(string=hai) anos
pai
achega
1e636eff32

+ 6 - 1
src/views/packing-list/packinglist-clothes/clothesAddDrawer.vue

@@ -514,6 +514,11 @@ export default {
               var str =item.hod
               var n=str.split(" ");
               item.hod = n[0]
+              var row = item;
+              var sizeTables = row.sizeTables;
+              for (var j=0; j<sizeTables.length;j++){
+               row['size-'+sizeTables[j].size] = sizeTables[j].proportion;
+              }
             })
           }else {
             this.$message.error(res.message);
@@ -542,8 +547,8 @@ export default {
           };
           newColumns.splice(i+1+j,0,field);
         }
-        }
         this.clothesAddColumns = newColumns
+        }
     },
      
     // 参照预装箱单