lxf 1 سال پیش
والد
کامیت
028f3ad772
1فایلهای تغییر یافته به همراه3 افزوده شده و 3 حذف شده
  1. 3 3
      src/views/production/operation/batching/quick.vue

+ 3 - 3
src/views/production/operation/batching/quick.vue

@@ -159,8 +159,8 @@ const changeDepartment = () => {
 const statisticalQuantity = () => {
   let quantity = 0;
   let material = {};
-  if (formData.data.inOutStorageBomList && formData.data.inOutStorageBomList.length > 0) {
-    let principal = formData.data.inOutStorageBomList.filter((item) => item.classifyParentId == "1");
+  if (inOutStorageBomList.value && inOutStorageBomList.value.length > 0) {
+    let principal = inOutStorageBomList.value.filter((item) => item.classifyParentId == "1");
     if (principal && principal.length > 0) {
       for (let j = 0; j < principal.length; j++) {
         if (principal[j].outQuantity) {
@@ -168,7 +168,7 @@ const statisticalQuantity = () => {
         }
       }
     }
-    let auxiliaryMaterial = formData.data.inOutStorageBomList.filter((item) => item.classifyParentId != "1");
+    let auxiliaryMaterial = inOutStorageBomList.value.filter((item) => item.classifyParentId != "1");
     if (auxiliaryMaterial && auxiliaryMaterial.length > 0) {
       for (let i = 0; i < auxiliaryMaterial.length; i++) {
         if (material[auxiliaryMaterial[i].classifyId]) {