|
|
@@ -7,6 +7,79 @@
|
|
|
* @date 2019/8/15
|
|
|
* @version
|
|
|
*/
|
|
|
+let isGD2018 = true;
|
|
|
+
|
|
|
+function overwriteRationCalcBases (){
|
|
|
+ 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.MAIN_MATERIAL], priceTypes.ptMarketPrice, isTender);
|
|
|
+ };
|
|
|
+ rationCalcBases['设备费'] = function (node, isTender) {
|
|
|
+ return calcTools.rationBaseFee(node, [gljType.EQUIPMENT], priceTypes.ptMarketPrice, isTender);
|
|
|
+ };
|
|
|
+ rationCalcBases['工日合计'] = function (node, isTender) {
|
|
|
+ return calcTools.labourDays(node, isTender);
|
|
|
+ };
|
|
|
+ rationCalcBases['甲供人工费'] = function (node, isTender) {
|
|
|
+ return calcTools.partASupplyFee(node, '甲供人工费', isTender, false);
|
|
|
+ };
|
|
|
+ rationCalcBases['甲供材料费'] = function (node, isTender) {
|
|
|
+ return calcTools.partASupplyFee(node, '甲供材料费', isTender, false);
|
|
|
+ };
|
|
|
+ rationCalcBases['甲供施工机具费'] = function (node, isTender) {
|
|
|
+ return calcTools.partASupplyFee(node, '甲供机械费', isTender, false);
|
|
|
+ };
|
|
|
+ rationCalcBases['甲供主材费'] = function (node, isTender) {
|
|
|
+ return calcTools.partASupplyFee(node, '甲供主材费', isTender, false);
|
|
|
+ };
|
|
|
+ rationCalcBases['甲供设备费'] = function (node, isTender) {
|
|
|
+ return calcTools.partASupplyFee(node, '甲供设备费', isTender, false);
|
|
|
+ };
|
|
|
+ rationCalcBases['甲定人工费'] = function (node, isTender) {
|
|
|
+ return calcTools.partASupplyFee(node, '甲定人工费', isTender, false);
|
|
|
+ };
|
|
|
+ rationCalcBases['甲定材料费'] = function (node, isTender) {
|
|
|
+ return calcTools.partASupplyFee(node, '甲定材料费', isTender, false);
|
|
|
+ };
|
|
|
+ rationCalcBases['甲定施工机具费'] = function (node, isTender) {
|
|
|
+ return calcTools.partASupplyFee(node, '甲定机械费', isTender, false);
|
|
|
+ };
|
|
|
+ rationCalcBases['甲定主材费'] = function (node, isTender) {
|
|
|
+ return calcTools.partASupplyFee(node, '甲定主材费', isTender, false);
|
|
|
+ };
|
|
|
+ rationCalcBases['甲定设备费'] = function (node, isTender) {
|
|
|
+ return calcTools.partASupplyFee(node, '甲定设备费', isTender, false);
|
|
|
+ };
|
|
|
+ rationCalcBases['暂估材料费'] = function (node, isTender) {
|
|
|
+ return calcTools.estimateFee(node, true, isTender);
|
|
|
+ };
|
|
|
+};
|
|
|
+
|
|
|
+(function overwriteFeeTypes() {
|
|
|
+ if (typeof cpFeeTypes == 'undefined') return;
|
|
|
+ cpFeeTypes = [
|
|
|
+ {type: 'labour', name: '人工费'},
|
|
|
+ {type: 'material', name: '材料费'},
|
|
|
+ {type: 'machine', name: '机械费'},
|
|
|
+ {type: 'mainMaterial', name: '主材费'},
|
|
|
+ {type: 'equipment', name: '设备费'},
|
|
|
+ {type: 'direct', name: '直接费'},
|
|
|
+ {type: 'manage', name: '管理费'},
|
|
|
+ {type: 'profit', name: '利润'},
|
|
|
+ {type: 'common', name: '工程造价'}
|
|
|
+ ];
|
|
|
+})();
|
|
|
+
|
|
|
|
|
|
if (typeof module !== 'undefined') {
|
|
|
|