Просмотр исходного кода

feat(wise-cost-util): 修改工料机价格计算方法

zhangweicheng 3 лет назад
Родитель
Сommit
1c7ba7efcf
1 измененных файлов с 2 добавлено и 2 удалено
  1. 2 2
      wise-cost-util/src/glj.ts

+ 2 - 2
wise-cost-util/src/glj.ts

@@ -182,7 +182,7 @@ export const getPrice = (
   projectGljMap: Record<string, IBaseGlj>,
   unitProperty: { tenderSetting?: ITenderSetting },
   constructionProperty: { decimal: IDecimal; calcOption?: ICalcOption },
-  configMaterials: IConfigMaterial,
+  configMaterial: IConfigMaterial,
   tender?: boolean
 ) => {
   let marketPrice = 0;
@@ -199,7 +199,7 @@ export const getPrice = (
       tenderPrice = getMarketPrice(projectGlj, tenderCoe, projectGljMap, constructionProperty.decimal);
     }
 
-    if (calcPriceDiff(projectGlj, configMaterials, constructionProperty.calcOption)) {
+    if (calcPriceDiff(projectGlj, configMaterial, constructionProperty.calcOption)) {
       // 计取价差
       basePrice = getBasePrice(projectGlj, constructionProperty.decimal);
     } else {