소스 검색

增加基数

chenshilong 3 년 전
부모
커밋
0055074124
1개의 변경된 파일130개의 추가작업 그리고 15개의 파일을 삭제
  1. 130 15
      web/over_write/js/henan_2022.js

+ 130 - 15
web/over_write/js/henan_2022.js

@@ -22,8 +22,8 @@ if (typeof feeRateObject !== "undefined") {
 
 // 清单基数
 const littleFixNames = ["小修", "养护检查预算", "日常养护预算"];
-const progression = ["养护单位(业主)管理费", "工程监理费", "设计文件审查费"];
-const deficiency = { 养护工程监理费: 10000, 设计文件审查费: 10000 };
+const progression = ["养护管理单位项目管理费", "工程监理费", "设计文件审查费"];
+const deficiency = { 工程监理费: 10000, 设计文件审查费: 10000 };
 if (typeof baseFigureMap !== "undefined") {
   const { fixedFlag } = commonConstants;
   const budgetMap = {
@@ -49,9 +49,9 @@ if (typeof baseFigureMap !== "undefined") {
       pick: false,
     },
     // 显示:仅清单固定类别是“养护工程其他费用”部分可显示。
-    "养护单位(业主)管理费": {
+    养护管理单位项目管理费: {
       isProgressive: true,
-      base: "YHDWYZGLF",
+      base: "YHGLDWXMGLF",
       fixedFlag: null,
       filter: [fixedFlag.MAINTENANCE_EXPENSES],
       pick: true,
@@ -99,6 +99,48 @@ if (typeof baseFigureMap !== "undefined") {
       filter: [fixedFlag.SPREAD_BUDGET_FEE],
       pick: true,
     },
+    "设计文件审查费(一阶段)": {
+      isProgressive: true,
+      base: "SJWJSCFYJD",
+      fixedFlag: null,
+      filter: [fixedFlag.MAINTENANCE_EXPENSES],
+      pick: true,
+    },
+    "设计文件审查费(二阶段)": {
+      isProgressive: true,
+      base: "SJWJSCFEJD",
+      fixedFlag: null,
+      filter: [fixedFlag.MAINTENANCE_EXPENSES],
+      pick: true,
+    },
+    "工程设计费(一阶段)": {
+      isProgressive: true,
+      base: "GCSJFYJD",
+      fixedFlag: null,
+      filter: [fixedFlag.MAINTENANCE_EXPENSES],
+      pick: true,
+    },
+    "工程设计费(二阶段)": {
+      isProgressive: true,
+      base: "GCSJFEJD",
+      fixedFlag: null,
+      filter: [fixedFlag.MAINTENANCE_EXPENSES],
+      pick: true,
+    },
+    招标代理费及标底编制费: {
+      isProgressive: true,
+      base: "ZBDLFJBDBZF",
+      fixedFlag: null,
+      filter: [fixedFlag.MAINTENANCE_EXPENSES],
+      pick: true,
+    },
+    "招标代理费及标底编制费(未实行招标代理)": {
+      isProgressive: true,
+      base: "ZBDLFJBDBZFWSXZBDL",
+      fixedFlag: null,
+      filter: [fixedFlag.MAINTENANCE_EXPENSES],
+      pick: true,
+    },
   };
   const boqMap = {
     //仅允许用于固定类别是“第100章至700章清单”以外的清单
@@ -208,15 +250,15 @@ if (typeof baseFigureTemplate !== "undefined") {
         return (afterDeductFee + equipmentAcFee * 0.4 + equipmentAcTaxFee).toDecimal(decimalObj.bills.totalPrice);
       }
     },
-    // 养护单位(业主)管理费 算法:以{定额建筑安装工程费}为基数,采用累进办法计算。。
-    YHDWYZGLF(tender) {
+    // 养护管理单位项目管理费 算法:以{定额建筑安装工程费}为基数,采用累进办法计算。。
+    YHGLDWXMGLF(tender) {
       const baseFee = this["DEJZAZGCF"](tender);
       if (!tender) {
         calcBase.baseProgressiveFee = baseFee;
       }
       return calculateUtil.getProgressiveFee(
         baseFee,
-        "养护单位(业主)管理费",
+        "养护管理单位项目管理费",
         projectObj.project.property.progressiveInterval,
         decimalObj.bills.totalPrice,
         deficiency
@@ -236,19 +278,13 @@ if (typeof baseFigureTemplate !== "undefined") {
         deficiency
       );
     },
-    // 养护工程监理费 算法:以{定额建筑安装工程费}为基数,采用累进办法计算
+    // 工程监理费 算法:以{定额建筑安装工程费}为基数,采用累进办法计算
     YHGCJLF(tender) {
       const baseFee = this["DEJZAZGCF"](tender);
       if (!tender) {
         calcBase.baseProgressiveFee = baseFee;
       }
-      return calculateUtil.getProgressiveFee(
-        baseFee,
-        "养护工程监理费",
-        projectObj.project.property.progressiveInterval,
-        decimalObj.bills.totalPrice,
-        deficiency
-      );
+      return calculateUtil.getProgressiveFee(baseFee, "工程监理费", projectObj.project.property.progressiveInterval, decimalObj.bills.totalPrice, deficiency);
     },
     // 养护工程监理费(路线工程) 算法:以{定额建筑安装工程费}为基数,采用累进办法计算
     YHGCJLFLXGC(tender) {
@@ -372,6 +408,85 @@ if (typeof baseFigureTemplate !== "undefined") {
       //= P * [(1+i)^(n-1) -1]
       return (installFee * (Math.pow(1 + costGrowthRate, growthPeriod - 1) - 1)).toDecimal(decimalObj.bills.totalPrice);
     },
+    // 设计文件审查费(一阶段) 算法:以{定额建筑安装工程费}为基数,采用累进办法计算。
+    SJWJSCFYJD(tender) {
+      const baseFee = this["DEJZAZGCF"](tender);
+      if (!tender) {
+        calcBase.baseProgressiveFee = baseFee;
+      }
+      return calculateUtil.getProgressiveFee(
+        baseFee,
+        "设计文件审查费(一阶段)",
+        projectObj.project.property.progressiveInterval,
+        decimalObj.bills.totalPrice,
+        deficiency
+      );
+    },
+    SJWJSCFEJD(tender) {
+      const baseFee = this["DEJZAZGCF"](tender);
+      if (!tender) {
+        calcBase.baseProgressiveFee = baseFee;
+      }
+      return calculateUtil.getProgressiveFee(
+        baseFee,
+        "设计文件审查费(二阶段)",
+        projectObj.project.property.progressiveInterval,
+        decimalObj.bills.totalPrice,
+        deficiency
+      );
+    },
+    GCSJFYJD(tender) {
+      const baseFee = this["DEJZAZGCF"](tender);
+      if (!tender) {
+        calcBase.baseProgressiveFee = baseFee;
+      }
+      return calculateUtil.getProgressiveFee(
+        baseFee,
+        "工程设计费(一阶段)",
+        projectObj.project.property.progressiveInterval,
+        decimalObj.bills.totalPrice,
+        deficiency
+      );
+    },
+    GCSJFEJD(tender) {
+      const baseFee = this["DEJZAZGCF"](tender);
+      if (!tender) {
+        calcBase.baseProgressiveFee = baseFee;
+      }
+      return calculateUtil.getProgressiveFee(
+        baseFee,
+        "工程设计费(二阶段)",
+        projectObj.project.property.progressiveInterval,
+        decimalObj.bills.totalPrice,
+        deficiency
+      );
+    },
+    ZBDLFJBDBZF(tender) {
+      const baseFee = this["DEJZAZGCF"](tender);
+      if (!tender) {
+        calcBase.baseProgressiveFee = baseFee;
+      }
+      return calculateUtil.getProgressiveFee(
+        baseFee,
+        "招标代理费及标底编制费",
+        projectObj.project.property.progressiveInterval,
+        decimalObj.bills.totalPrice,
+        deficiency
+      );
+    },
+    ZBDLFJBDBZFWSXZBDL(tender) {
+      const baseFee = this["DEJZAZGCF"](tender);
+      if (!tender) {
+        calcBase.baseProgressiveFee = baseFee;
+      }
+      return calculateUtil.getProgressiveFee(
+        baseFee,
+        "招标代理费及标底编制费(未实行招标代理)",
+        projectObj.project.property.progressiveInterval,
+        decimalObj.bills.totalPrice,
+        deficiency
+      );
+    },
   };
 
   baseFigureTemplate.boq = {