Browse Source

四川养护(2013),总计算程序应提供以下计算基数和费用类别。

chenshilong 3 years ago
parent
commit
db63a538af
1 changed files with 47 additions and 2 deletions
  1. 47 2
      web/over_write/js/sichuan_2013.js

+ 47 - 2
web/over_write/js/sichuan_2013.js

@@ -1,3 +1,48 @@
+let isSC2013 = true;
+
+function overwriteRationCalcBases(taxType) {
+    if (typeof rationCalcBases == 'undefined') return;
+    for (let key in rationCalcBases) delete rationCalcBases[key];
+
+    rationCalcBases['人工费'] = function (node, isTender) {
+        return calcTools.rationBaseFee(node, [gljType.LABOUR], priceTypes.ptMarketPrice, isTender);
+    };
+    rationCalcBases['材料费'] = function (node, isTender) {
+        return calcTools.rationBaseFee(node, baseMaterialTypes, priceTypes.ptMarketPrice, isTender);
+    };
+    rationCalcBases['施工机械使用费'] = function (node, isTender) {
+        return calcTools.rationBaseFee(node, baseMachineTypes, priceTypes.ptMarketPrice, isTender);
+    };
+    rationCalcBases['商品砼费'] = function (node, isTender) {
+        return calcTools.rationBaseFee(node, [gljType.COMMERCIAL_CONCRETE, gljType.COMMERCIAL_MORTAR], priceTypes.ptMarketPrice, isTender);
+    };
+    rationCalcBases['外购砼构件费'] = function (node, isTender) {
+        return calcTools.rationBaseFee(node, [gljType.PURCHASE_COMPONENT], priceTypes.ptMarketPrice, isTender);
+    };
+};
+
+(function overwriteFeeTypes() {
+    if (typeof cpFeeTypes == 'undefined') return;
+    cpFeeTypes = [
+        { type: 'marketDirect', name: '直接费' },
+        { type: 'marketDirectWork', name: '直接工程费' },
+        { type: 'marketLabour', name: '人工费' },
+        { type: 'marketMaterial', name: '材料费' },
+        { type: 'marketMachine', name: '施工机械使用费' },
+        { type: 'otherFee', name: '其他工程费' },
+        { type: 'otherFee1', name: '其他工程费I' },
+        { type: 'otherFee2', name: '其他工程费II' },
+        { type: "indirect", name: '间接费' },
+        { type: 'manage', name: '企业管理费' },
+        { type: 'force', name: '规费' },
+        { type: 'profit', name: '利润' },
+        { type: 'tax', name: '税金' },
+        { type: 'common', name: '建安费' }
+    ];
+})();
+
+
+
 if (typeof gljUtil !== "undefined") {
   gljUtil.getAssUsedPrice = function(g){//四川辅助生产人工费取市场价
     return g.marketPrice;
@@ -9,9 +54,9 @@ if (typeof gljUtil !== "undefined") {
 
 
 if (typeof module !== 'undefined') {
-  module.exports = { 
+  module.exports = {
       getDefalutAssistProductionFeeRate: function () {
           return 5
       }
   };
-}
+}