Compare commits

..

No commits in common. "dcf4f6c392c48e2265c0ee0f4d5a441ec7987a1d" and "ea29a33c2aa870f4a0e4a178b655108ca4653aa2" have entirely different histories.

2 changed files with 9 additions and 11 deletions

View File

@ -134,11 +134,11 @@ export default {
if (preData && preData[0] != null) { if (preData && preData[0] != null) {
for (const factory of preData) { for (const factory of preData) {
if (factory.previousGlassType === 0) { if (factory.previousGlassType === 0) {
preDataDetail[1] = factory.previousOutputNumber preDataDetail[1] = factory.previousYearOutputNumber
} else if (factory.previousGlassType === 1) { } else if (factory.previousGlassType === 1) {
preDataDetail[2] = factory.previousOutputNumber preDataDetail[2] = factory.previousYearOutputNumber
} else if (factory.previousGlassType === 2) { } else if (factory.previousYearOutputNumber === 2) {
preDataDetail[3] = factory.previousOutputNumber currentDataDetail[3] = factory.outputNumber
} }
} }
} }

View File

@ -132,17 +132,16 @@ export default {
// } // }
} }
} }
if (preData) { if (preData && preData[0] != null) {
for (const factory of preData) { for (const factory of preData) {
if (factory.previousGlassType === 0) { if (factory.previousGlassType === 0) {
console.log('factory', factory) preDataDetail[1] = factory.previousYearOutputNumber
preDataDetail[1] = factory.previousOutputNumber
} else if (factory.previousGlassType === 1) { } else if (factory.previousGlassType === 1) {
preDataDetail[2] = factory.previousOutputNumber preDataDetail[2] = factory.previousYearOutputNumber
} }
} }
} }
if (targetListResponse) { if (targetListResponse && targetListResponse[0] != null) {
for (const factory of targetListResponse) { for (const factory of targetListResponse) {
targetDataDetail[0] = factory.ftoInput targetDataDetail[0] = factory.ftoInput
// if (factory.previousGlassType === 0) { // if (factory.previousGlassType === 0) {
@ -154,7 +153,7 @@ export default {
} }
} }
// console.log('ftoInvest',ftoInvest) // console.log('ftoInvest',ftoInvest)
if (factoryListResponse) { if (factoryListResponse && factoryListResponse[0] != null) {
for (const factory of factoryListResponse) { for (const factory of factoryListResponse) {
// targetDataDetail[0] = factory.ftoInput // targetDataDetail[0] = factory.ftoInput
if (factory.glassType === 0) { if (factory.glassType === 0) {
@ -164,7 +163,6 @@ export default {
} }
} }
} }
console.log(' this.factoryData.preDataDetail', preDataDetail);
this.factoryData.preDataDetail = preDataDetail this.factoryData.preDataDetail = preDataDetail
this.factoryData.currentDataDetail = currentDataDetail this.factoryData.currentDataDetail = currentDataDetail
this.factoryData.targetDataDetail = targetDataDetail this.factoryData.targetDataDetail = targetDataDetail