This commit is contained in:
DESKTOP-FUDKNA8\znjsz
2024-04-26 15:44:04 +08:00
parent e8cc80495f
commit 517874ffc2
5 changed files with 53 additions and 57 deletions

View File

@@ -103,9 +103,12 @@ function splitCurrentAndPrevious(factoryListResponse, targetListResponse) {
ftoInvest.current[fId] = factory.chipInput;
ftoInvest.previous[fId] = factory.previousYearChipInput;
// 产出数据, 0 - (玻璃)芯片产出, 1 - 标准组件产出, 2 - BIPV产出
// 因为后端写的垃圾数据,所以这里要做一下判断
if (!([0, 1, 2].includes(factory.glassType))) continue;
const _t = [chipOutput, stdOutput, bipvOutput][factory.glassType];
_t.current[fId] = factory.outputNumber;
_t.previous[fId] = factory.previousYearOutputNumber;
// debugger;
}
return {