|
@@ -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]) {
|