|
@@ -0,0 +1,151 @@
|
|
|
+/**
|
|
|
+ * Created by CSL on 2018/11/12. 江西计算程序、基数 等覆盖。
|
|
|
+ */
|
|
|
+
|
|
|
+let isJX2017 = true;
|
|
|
+
|
|
|
+function overwriteRationCalcBases (taxType){
|
|
|
+ if (typeof rationCalcBases == 'undefined') return;
|
|
|
+ for (let key in rationCalcBases) delete rationCalcBases[key];
|
|
|
+ let isJY = taxType == '2';
|
|
|
+
|
|
|
+ rationCalcBases['人工费'] = function (node, isTender) {
|
|
|
+ return calcTools.rationBaseFee(node, [gljType.LABOUR], priceTypes.ptBasePrice, isTender);
|
|
|
+ };
|
|
|
+ rationCalcBases['定额人工费'] = function (node, isTender) {
|
|
|
+ return calcTools.rationBaseFee(node, [gljType.LABOUR], priceTypes.ptBasePrice, isTender);
|
|
|
+ };
|
|
|
+ rationCalcBases['材料费'] = function (node, isTender) {
|
|
|
+ return calcTools.rationBaseFee(node, baseMaterialTypes, priceTypes.ptBasePrice, isTender);
|
|
|
+ };
|
|
|
+ rationCalcBases['机械费'] = function (node, isTender) {
|
|
|
+ return calcTools.rationBaseFee(node, [gljType.GENERAL_MACHINE, gljType.INSTRUMENT, gljType.OTHER_MACHINE_USED], priceTypes.ptBasePrice, isTender);
|
|
|
+ };
|
|
|
+ rationCalcBases['定额机械费'] = function (node, isTender) {
|
|
|
+ return calcTools.rationBaseFee(node, [gljType.GENERAL_MACHINE, gljType.INSTRUMENT, gljType.OTHER_MACHINE_USED], priceTypes.ptBasePrice, isTender);
|
|
|
+ };
|
|
|
+ rationCalcBases['主材费'] = function (node, isTender) {
|
|
|
+ return calcTools.rationBaseFee(node, [gljType.MAIN_MATERIAL], priceTypes.ptMarketPrice, isTender);
|
|
|
+ };
|
|
|
+ rationCalcBases['设备费'] = function (node, isTender) {
|
|
|
+ return calcTools.rationBaseFee(node, [gljType.EQUIPMENT], priceTypes.ptBasePrice, isTender);
|
|
|
+ };
|
|
|
+ rationCalcBases['人工费价差'] = function (node, isTender) {
|
|
|
+ return calcTools.rationBaseFee(node, [gljType.LABOUR], priceTypes.ptDiffPrice, isTender);
|
|
|
+ };
|
|
|
+ rationCalcBases['材料费价差'] = function (node, isTender) {
|
|
|
+ return calcTools.rationBaseFee(node, baseMaterialTypes, priceTypes.ptDiffPrice, isTender);
|
|
|
+ };
|
|
|
+ rationCalcBases['机械费价差'] = function (node, isTender) {
|
|
|
+ return calcTools.rationBaseFee(node, [gljType.GENERAL_MACHINE], priceTypes.ptDiffPrice, isTender);
|
|
|
+ };
|
|
|
+ rationCalcBases['主材费价差'] = function (node, isTender) {
|
|
|
+ return calcTools.rationBaseFee(node, [gljType.MAIN_MATERIAL], priceTypes.ptDiffPrice, isTender);
|
|
|
+ };
|
|
|
+ rationCalcBases['设备费价差'] = function (node, isTender) {
|
|
|
+ return calcTools.rationBaseFee(node, [gljType.EQUIPMENT], priceTypes.ptDiffPrice, isTender);
|
|
|
+ };
|
|
|
+ rationCalcBases['人工工日'] = function (node, isTender) {
|
|
|
+ return calcTools.labourDays(node, isTender);
|
|
|
+ };
|
|
|
+ rationCalcBases['甲供人工费'] = function (node, isTender) {
|
|
|
+ return calcTools.partASupplyFee(node, '甲供定额人工费', isTender);
|
|
|
+ };
|
|
|
+ rationCalcBases['甲供材料费'] = function (node, isTender) {
|
|
|
+ return calcTools.partASupplyFee(node, '甲供定额材料费', isTender);
|
|
|
+ };
|
|
|
+ rationCalcBases['甲供机械费'] = function (node, isTender) {
|
|
|
+ return calcTools.partASupplyFee(node, '甲供定额基价机械费', isTender);
|
|
|
+ };
|
|
|
+ rationCalcBases['甲供主材费'] = function (node, isTender) {
|
|
|
+ return calcTools.partASupplyFee(node, '甲供主材费', isTender);
|
|
|
+ };
|
|
|
+ rationCalcBases['甲供设备费'] = function (node, isTender) {
|
|
|
+ return calcTools.partASupplyFee(node, '甲供设备费', isTender);
|
|
|
+ };
|
|
|
+ rationCalcBases['甲定人工费'] = function (node, isTender) {
|
|
|
+ return calcTools.partASupplyFee(node, '甲定定额基价人工费', isTender);
|
|
|
+ };
|
|
|
+ rationCalcBases['甲定材料费'] = function (node, isTender) {
|
|
|
+ return calcTools.partASupplyFee(node, '甲定定额基价材料费', isTender);
|
|
|
+ };
|
|
|
+ rationCalcBases['甲定机械费'] = function (node, isTender) {
|
|
|
+ return calcTools.partASupplyFee(node, '甲定定额基价机械费', isTender);
|
|
|
+ };
|
|
|
+ rationCalcBases['甲定主材费'] = function (node, isTender) {
|
|
|
+ return calcTools.partASupplyFee(node, '甲定主材费', isTender);
|
|
|
+ };
|
|
|
+ rationCalcBases['甲定设备费'] = function (node, isTender) {
|
|
|
+ return calcTools.partASupplyFee(node, '甲定设备费', isTender);
|
|
|
+ };
|
|
|
+ rationCalcBases['暂估材料费'] = function (node, isTender) {
|
|
|
+ return calcTools.estimateFee(node, true, isTender);
|
|
|
+ };
|
|
|
+ rationCalcBases['分包人工费'] = function (node, isTender) {
|
|
|
+ if (node.data.isSubcontract)
|
|
|
+ return calcTools.rationBaseFee(node, [gljType.LABOUR], priceTypes.ptBasePrice, isTender)
|
|
|
+ else
|
|
|
+ return 0;
|
|
|
+ };
|
|
|
+ rationCalcBases['分包材料费'] = function (node, isTender) {
|
|
|
+ if (node.data.isSubcontract)
|
|
|
+ return calcTools.rationBaseFee(node, baseMaterialTypes, priceTypes.ptBasePrice, isTender)
|
|
|
+ else
|
|
|
+ return 0;
|
|
|
+ };
|
|
|
+ rationCalcBases['分包机械费'] = function (node, isTender) {
|
|
|
+ if (node.data.isSubcontract)
|
|
|
+ return calcTools.rationBaseFee(node, [gljType.GENERAL_MACHINE], priceTypes.ptBasePrice, isTender)
|
|
|
+ else
|
|
|
+ return 0;
|
|
|
+ };
|
|
|
+ rationCalcBases['分包主材费'] = function (node, isTender) {
|
|
|
+ if (node.data.isSubcontract)
|
|
|
+ return calcTools.rationBaseFee(node, [gljType.MAIN_MATERIAL], priceTypes.ptBasePrice, isTender)
|
|
|
+ else
|
|
|
+ return 0;
|
|
|
+ };
|
|
|
+ rationCalcBases['分包设备费'] = function (node, isTender) {
|
|
|
+ if (node.data.isSubcontract)
|
|
|
+ return calcTools.rationBaseFee(node, [gljType.EQUIPMENT], priceTypes.ptBasePrice, isTender)
|
|
|
+ else
|
|
|
+ return 0;
|
|
|
+ };
|
|
|
+ rationCalcBases['分包人工工日'] = function (node, isTender) {
|
|
|
+ if (node.data.isSubcontract)
|
|
|
+ return calcTools.labourDays(node, isTender)
|
|
|
+ else
|
|
|
+ return 0;
|
|
|
+ };
|
|
|
+};
|
|
|
+
|
|
|
+
|
|
|
+(function overwriteFeeTypes() {
|
|
|
+ if (typeof cpFeeTypes == 'undefined') return;
|
|
|
+ cpFeeTypes = [
|
|
|
+ {type: 'direct', name: '直接费'},
|
|
|
+ {type: 'labour', name: '人工费'},
|
|
|
+ {type: 'marketLabour', name: '市场价人工费'},
|
|
|
+ {type: 'marketMaterial', name: '市场价材料费'},
|
|
|
+ {type: 'machine', name: '机械费'},
|
|
|
+ {type: 'marketMachine', name: '市场价机械费'},
|
|
|
+ {type: 'mainMaterial', name: '主材费'},
|
|
|
+ {type: 'equipment', name: '设备费'},
|
|
|
+ {type: 'manage', name: '企业管理费'},
|
|
|
+ {type: 'surtax', name: '附加税费'},
|
|
|
+ {type: 'profit', name: '利润'},
|
|
|
+ {type: 'safeMeasures', name: '安全文明施工措施费'},
|
|
|
+ {type: 'environment', name: '安全文明环保费'},
|
|
|
+ {type: 'tempFacility', name: '临时设施费'},
|
|
|
+ {type: 'otherTotalMeasures', name: '其他总价措施费'},
|
|
|
+ {type: 'dirtMeasures', name: '扬尘治理措施费'},
|
|
|
+ {type: 'forceFee', name: '规费'},
|
|
|
+ {type: 'tax', name: '税金'},
|
|
|
+ {type: 'common', name: '工程造价'}
|
|
|
+ ];
|
|
|
+})();
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|