ソースを参照

1.机器设备测算表推荐值逻辑调整

GouGengquan 5 ヶ月 前
コミット
817aed3f4f
1 ファイル変更2 行追加2 行削除
  1. 2 2
      src/views/assets/workbench/eqpt/calculate/importInfo.vue

+ 2 - 2
src/views/assets/workbench/eqpt/calculate/importInfo.vue

@@ -1780,7 +1780,7 @@ export default {
     mostSimilar() {
       for (let index = 0; index < this.eqptPageData.length; index++) {
         for (const item of this.eqptLifeIfrRefs) {
-          if (this.eqptPageData[index].equipmentName.includes(item.type)) {
+          if (this.eqptPageData[index].equipmentName.includes(item.type) && this.eqptPageData[index].economicServiceLife && this.eqptPageData[index].installationRate) {
             this.eqptPageData[index].economicServiceLife = item.lifeRecommendedValue
             this.eqptPageData[index].installationRate = item.ifrRecommendedValue
             // 计算年限成新率
@@ -1821,7 +1821,7 @@ export default {
         }
       })
     },
-    // 设置默认物价指数给询价依据
+    // 设置默认(通用设备制造业)物价指数给询价依据
     setPPItoInquiryBasis(row) {
       if (row.valuationMethod === '物价指数调整法') {
         const date = new Date(row.purchaseDate)