Explorar el Código

feat(material): 增加图号、单重和总重字段并计算总重

yusheng hace 1 semana
padre
commit
66821bbe00
Se han modificado 1 ficheros con 16 adiciones y 1 borrados
  1. 16 1
      src/views/material/BOMmanage/components/detailedList.vue

+ 16 - 1
src/views/material/BOMmanage/components/detailedList.vue

@@ -331,6 +331,10 @@
             prop: 'brandNum',
             label: '牌号'
           },
+          {
+            prop: 'imgCode',
+            label: '图号'
+          },
 
           {
             prop: 'modelType',
@@ -366,7 +370,17 @@
             label: '计量单位',
             showOverflowTooltip: true
           },
-
+          {
+            prop: 'netWeight',
+            label: '单重',
+            width: 100,
+          },
+          {
+            prop: 'totalWeight',
+            label: '总重',
+            width: 100,
+  
+          },
           {
             prop: 'produceType',
             slot: 'produceType',
@@ -705,6 +719,7 @@
 
         const match = newVal.match(/^(\d+)(\.\d{0,4})?/);
         item.dosage = match ? match[0] : '';
+        item.totalWeight=newVal*item.netWeight;
 
         // 4. 更新数据
         // item.dosage = newVal;