|
@@ -309,28 +309,57 @@ let calcTools = {
|
|
if (!treeNode.data.gljList) return 0;
|
|
if (!treeNode.data.gljList) return 0;
|
|
let me = this, result = 0;
|
|
let me = this, result = 0;
|
|
let price = 0, temp = 0, temp2 = 0;
|
|
let price = 0, temp = 0, temp2 = 0;
|
|
- for (let glj of treeNode.data.gljList) {
|
|
|
|
- if (gljTypes.indexOf(glj.type) >= 0) {
|
|
|
|
- if (isTender){
|
|
|
|
- calcTools.calcGLJTenderPrice(glj);
|
|
|
|
- calcTools.calcGLJTenderQty(treeNode, glj);
|
|
|
|
- };
|
|
|
|
- let qty = isTender ? me.uiGLJQty(glj["tenderQuantity"]) : me.uiGLJQty(glj["quantity"]);
|
|
|
|
- let mprice = isTender ? me.uiGLJPrice(glj["tenderPrice"], glj) : me.uiGLJPrice(glj["marketPrice"], glj);
|
|
|
|
- let aprice = calcTools.hasAdjustPrice() ? me.uiGLJPrice(glj["adjustPrice"], glj) : me.uiGLJPrice(glj["basePrice"], glj);
|
|
|
|
|
|
|
|
- if (priceType == priceTypes.ptDiffPrice){
|
|
|
|
- // if (aprice != mprice){
|
|
|
|
|
|
+ // 机械组成物价差: 机上人工、动力燃料
|
|
|
|
+ if ((priceType == priceTypes.ptDiffPrice) && (gljTypes.includes(gljType.MACHINE_LABOUR) || gljTypes.includes(gljType.FUEL_POWER_FEE))){
|
|
|
|
+ for (let glj of treeNode.data.gljList) {
|
|
|
|
+ if ([gljType.GENERAL_MACHINE, gljType.INSTRUMENT].includes(glj.type)){
|
|
|
|
+ if (isTender){
|
|
|
|
+ calcTools.calcGLJTenderPrice(glj);
|
|
|
|
+ calcTools.calcGLJTenderQty(treeNode, glj);
|
|
|
|
+ };
|
|
|
|
+ let mds = projectObj.project.composition.getCompositionByGLJ(glj);
|
|
|
|
+ if (!mds) mds = [];
|
|
|
|
+ for (let md of mds){
|
|
|
|
+ if (gljTypes.includes(md.type)){
|
|
|
|
+ let gljQ = isTender ? me.uiGLJQty(glj["tenderQuantity"]) : me.uiGLJQty(glj["quantity"]);
|
|
|
|
+ let mdQ = me.uiGLJQty(md.consumption);
|
|
|
|
+ let mdMP = isTender ? md["tenderPrice"] : md["marketPrice"];
|
|
|
|
+ let mdAP = calcTools.hasAdjustPrice() ? md["adjustPrice"] : md["basePrice"];
|
|
|
|
+ // if (aprice != mprice){
|
|
|
|
+ temp = (temp + (gljQ * mdQ * mdMP).toDecimal(decimalObj.process)).toDecimal(decimalObj.process);
|
|
|
|
+ temp2 = (temp2 + (gljQ * mdQ * mdAP).toDecimal(decimalObj.process)).toDecimal(decimalObj.process);
|
|
|
|
+ // }
|
|
|
|
+ }
|
|
|
|
+ }
|
|
|
|
+ }
|
|
|
|
+ }
|
|
|
|
+ }
|
|
|
|
+ // 普通基数计算(包括普通价差)
|
|
|
|
+ else{
|
|
|
|
+ for (let glj of treeNode.data.gljList) {
|
|
|
|
+ if (gljTypes.indexOf(glj.type) >= 0) {
|
|
|
|
+ if (isTender){
|
|
|
|
+ calcTools.calcGLJTenderPrice(glj);
|
|
|
|
+ calcTools.calcGLJTenderQty(treeNode, glj);
|
|
|
|
+ };
|
|
|
|
+ let qty = isTender ? me.uiGLJQty(glj["tenderQuantity"]) : me.uiGLJQty(glj["quantity"]);
|
|
|
|
+ let mprice = isTender ? me.uiGLJPrice(glj["tenderPrice"], glj) : me.uiGLJPrice(glj["marketPrice"], glj);
|
|
|
|
+ let aprice = calcTools.hasAdjustPrice() ? me.uiGLJPrice(glj["adjustPrice"], glj) : me.uiGLJPrice(glj["basePrice"], glj);
|
|
|
|
+
|
|
|
|
+ if (priceType == priceTypes.ptDiffPrice){
|
|
|
|
+ // if (aprice != mprice){
|
|
temp = (temp + (qty * mprice).toDecimal(decimalObj.process)).toDecimal(decimalObj.process);
|
|
temp = (temp + (qty * mprice).toDecimal(decimalObj.process)).toDecimal(decimalObj.process);
|
|
temp2 = (temp2 + (qty * aprice).toDecimal(decimalObj.process)).toDecimal(decimalObj.process);
|
|
temp2 = (temp2 + (qty * aprice).toDecimal(decimalObj.process)).toDecimal(decimalObj.process);
|
|
- // }
|
|
|
|
- }
|
|
|
|
- else {
|
|
|
|
- if (priceType == priceTypes.ptBasePrice){ price = me.uiGLJPrice(glj["basePrice"], glj);}
|
|
|
|
- else if (priceType == priceTypes.ptAdjustPrice){price = aprice;}
|
|
|
|
- else if (priceType == priceTypes.ptMarketPrice){price = mprice;}
|
|
|
|
- temp = (qty * price).toDecimal(decimalObj.process);
|
|
|
|
- result = (result + temp).toDecimal(decimalObj.process);
|
|
|
|
|
|
+ // }
|
|
|
|
+ }
|
|
|
|
+ else {
|
|
|
|
+ if (priceType == priceTypes.ptBasePrice){ price = me.uiGLJPrice(glj["basePrice"], glj);}
|
|
|
|
+ else if (priceType == priceTypes.ptAdjustPrice){price = aprice;}
|
|
|
|
+ else if (priceType == priceTypes.ptMarketPrice){price = mprice;}
|
|
|
|
+ temp = (qty * price).toDecimal(decimalObj.process);
|
|
|
|
+ result = (result + temp).toDecimal(decimalObj.process);
|
|
|
|
+ };
|
|
};
|
|
};
|
|
};
|
|
};
|
|
};
|
|
};
|
|
@@ -523,11 +552,11 @@ let calcTools = {
|
|
if (treeNode.data.type != rationType.volumePrice && treeNode.data.type != rationType.gljRation) return;
|
|
if (treeNode.data.type != rationType.volumePrice && treeNode.data.type != rationType.gljRation) return;
|
|
let result = 0, me = this;
|
|
let result = 0, me = this;
|
|
if (
|
|
if (
|
|
- (treeNode.data.subType === gljType.LABOUR && baseName === rationCalcBasesNameMap.DEJJRGF) ||
|
|
|
|
- (baseMaterialTypes.includes(treeNode.data.subType) && baseName === rationCalcBasesNameMap.DEJJCLF) ||
|
|
|
|
- (treeNode.data.subType === gljType.GENERAL_MACHINE && baseName === rationCalcBasesNameMap.DEJJJXF) ||
|
|
|
|
- (treeNode.data.subType === gljType.MAIN_MATERIAL && baseName === rationCalcBasesNameMap.ZCF) ||
|
|
|
|
- (treeNode.data.subType === gljType.EQUIPMENT && baseName === rationCalcBasesNameMap.SBF)) {
|
|
|
|
|
|
+ (treeNode.data.subType === gljType.LABOUR && calcTools.inBase(baseName, 'RGF')) ||
|
|
|
|
+ (baseMaterialTypes.includes(treeNode.data.subType) && calcTools.inBase(baseName, 'CLF')) ||
|
|
|
|
+ (treeNode.data.subType === gljType.GENERAL_MACHINE && calcTools.inBase(baseName, 'JXF')) ||
|
|
|
|
+ (treeNode.data.subType === gljType.MAIN_MATERIAL && calcTools.inBase(baseName, 'ZCF')) ||
|
|
|
|
+ (treeNode.data.subType === gljType.EQUIPMENT && calcTools.inBase(baseName, 'SBF'))) {
|
|
if (treeNode.data.type == rationType.volumePrice)
|
|
if (treeNode.data.type == rationType.volumePrice)
|
|
result = treeNode.data.marketUnitFee ? parseFloat(treeNode.data.marketUnitFee).toDecimal(decimalObj.ration.unitPrice) : 0
|
|
result = treeNode.data.marketUnitFee ? parseFloat(treeNode.data.marketUnitFee).toDecimal(decimalObj.ration.unitPrice) : 0
|
|
else if (treeNode.data.type == rationType.gljRation)
|
|
else if (treeNode.data.type == rationType.gljRation)
|
|
@@ -535,7 +564,7 @@ let calcTools = {
|
|
// 这里因为是算基数所以要取基价,但不能直接取basePrice,受限于项目属性的三个选项。
|
|
// 这里因为是算基数所以要取基价,但不能直接取basePrice,受限于项目属性的三个选项。
|
|
result = gljOprObj.getBasePrice(treeNode);
|
|
result = gljOprObj.getBasePrice(treeNode);
|
|
}
|
|
}
|
|
- else if (treeNode.data.subType === gljType.GENERAL_MACHINE && baseName === rationCalcBasesNameMap.DEJJJSRGF) {
|
|
|
|
|
|
+ else if (treeNode.data.subType === gljType.GENERAL_MACHINE && calcTools.inBase(baseName, 'JSRGF')) {
|
|
let glj = {
|
|
let glj = {
|
|
'code': treeNode.data.code,
|
|
'code': treeNode.data.code,
|
|
'name': treeNode.data.name,
|
|
'name': treeNode.data.name,
|
|
@@ -548,11 +577,11 @@ let calcTools = {
|
|
}
|
|
}
|
|
else if (
|
|
else if (
|
|
(treeNode.data.type == rationType.gljRation) &&
|
|
(treeNode.data.type == rationType.gljRation) &&
|
|
- ((treeNode.data.subType === gljType.LABOUR && baseName === rationCalcBasesNameMap.RGFJC) ||
|
|
|
|
- (baseMaterialTypes.includes(treeNode.data.subType) && baseName === rationCalcBasesNameMap.CLFJC) ||
|
|
|
|
- (treeNode.data.subType === gljType.GENERAL_MACHINE && baseName === rationCalcBasesNameMap.JXFJC) ||
|
|
|
|
- (treeNode.data.subType === gljType.MAIN_MATERIAL && baseName === rationCalcBasesNameMap.ZCFJC) ||
|
|
|
|
- (treeNode.data.subType === gljType.EQUIPMENT && baseName === rationCalcBasesNameMap.SBFJC))
|
|
|
|
|
|
+ ((treeNode.data.subType === gljType.LABOUR && calcTools.inBase(baseName, 'JC_RGF')) ||
|
|
|
|
+ (baseMaterialTypes.includes(treeNode.data.subType) && calcTools.inBase(baseName, 'JC_CLF')) ||
|
|
|
|
+ (treeNode.data.subType === gljType.GENERAL_MACHINE && calcTools.inBase(baseName, 'JC_JXF')) ||
|
|
|
|
+ (treeNode.data.subType === gljType.MAIN_MATERIAL && calcTools.inBase(baseName, 'JC_ZCF')) ||
|
|
|
|
+ (treeNode.data.subType === gljType.EQUIPMENT && calcTools.inBase(baseName, 'JC_SBF')))
|
|
) {
|
|
) {
|
|
let aprice = me.uiGLJPrice(treeNode.data.basePrice); // 量价虚拟的工料机不可能有发文,这里直接取定额价。
|
|
let aprice = me.uiGLJPrice(treeNode.data.basePrice); // 量价虚拟的工料机不可能有发文,这里直接取定额价。
|
|
let mprice = me.uiGLJPrice(treeNode.data.marketUnitFee);
|
|
let mprice = me.uiGLJPrice(treeNode.data.marketUnitFee);
|
|
@@ -571,26 +600,22 @@ let calcTools = {
|
|
supplyT = [supplyType.JDYG];
|
|
supplyT = [supplyType.JDYG];
|
|
|
|
|
|
let gljT = [], compT = [];
|
|
let gljT = [], compT = [];
|
|
- if ([rationCalcBasesNameMap.JGDEJJRGF, rationCalcBasesNameMap.JDDEJJRGF].includes(baseName)){ // 甲供、甲定人工
|
|
|
|
|
|
+ if (calcTools.inBase(baseName, 'JG_RGF') || calcTools.inBase(baseName, 'JD_RGF')){
|
|
gljT = [gljType.LABOUR];
|
|
gljT = [gljType.LABOUR];
|
|
}
|
|
}
|
|
- else if ([rationCalcBasesNameMap.JGDEJJCLF, rationCalcBasesNameMap.JDDEJJCLF].includes(baseName)){ // 甲供、甲定材料
|
|
|
|
|
|
+ else if (calcTools.inBase(baseName, 'JG_CLF') || calcTools.inBase(baseName, 'JD_CLF')){ // 甲供、甲定材料
|
|
gljT = baseMaterialTypes;
|
|
gljT = baseMaterialTypes;
|
|
compT = compositionTypes;
|
|
compT = compositionTypes;
|
|
}
|
|
}
|
|
- else if ([rationCalcBasesNameMap.JGDEJJJXF, rationCalcBasesNameMap.JDDEJJJXF].includes(baseName)){ // 甲供、甲定机械
|
|
|
|
|
|
+ else if (calcTools.inBase(baseName, 'JG_JXF') || calcTools.inBase(baseName, 'JD_JXF')) { // 甲供、甲定机械
|
|
gljT = baseMachineTypes;
|
|
gljT = baseMachineTypes;
|
|
- compT = [gljType.GENERAL_MACHINE];
|
|
|
|
|
|
+ compT = [gljType.GENERAL_MACHINE, gljType.INSTRUMENT, gljType.OTHER_MACHINE_USED]; // 取并集,兼容重庆2018新定额
|
|
}
|
|
}
|
|
- else if ([rationCalcBasesNameMap.JGDESGJJF, rationCalcBasesNameMap.JDDESGJJF].includes(baseName)){ // 甲供、甲定机械(重庆2018新定额)
|
|
|
|
- gljT = baseMachineTypes;
|
|
|
|
- compT = baseMachineTypes_CQ_2018_JX;
|
|
|
|
- }
|
|
|
|
- else if ([rationCalcBasesNameMap.JGZCF, rationCalcBasesNameMap.JDZCF].includes(baseName)){ // 甲供、甲定主材
|
|
|
|
|
|
+ else if (calcTools.inBase(baseName, 'JG_ZCF') || calcTools.inBase(baseName, 'JD_ZCF')) { // 甲供、甲定主材
|
|
gljT = [gljType.MAIN_MATERIAL];
|
|
gljT = [gljType.MAIN_MATERIAL];
|
|
compT = [gljType.MAIN_MATERIAL];
|
|
compT = [gljType.MAIN_MATERIAL];
|
|
}
|
|
}
|
|
- else if ([rationCalcBasesNameMap.JGSBF, rationCalcBasesNameMap.JDSBF].includes(baseName)){ // 甲供、甲定设备
|
|
|
|
|
|
+ else if (calcTools.inBase(baseName, 'JG_SBF') || calcTools.inBase(baseName, 'JD_SBF')) { // 甲供、甲定设备
|
|
gljT = [gljType.EQUIPMENT];
|
|
gljT = [gljType.EQUIPMENT];
|
|
};
|
|
};
|
|
// alert(JSON.stringify(projectGLJ.testGLJs()));
|
|
// alert(JSON.stringify(projectGLJ.testGLJs()));
|
|
@@ -871,39 +896,47 @@ let calcTools = {
|
|
return o.value;
|
|
return o.value;
|
|
}
|
|
}
|
|
};
|
|
};
|
|
|
|
+ },
|
|
|
|
+ inBase(baseName, kindName){
|
|
|
|
+ return rationCalcBasesNameKinds[kindName].includes(baseName);
|
|
}
|
|
}
|
|
};
|
|
};
|
|
|
|
|
|
-let rationCalcBasesNameMap = {
|
|
|
|
- DEJJRGF: '定额基价人工费',
|
|
|
|
- DEJJCLF: '定额基价材料费',
|
|
|
|
- DEJJJXF: '定额基价机械费',
|
|
|
|
- DEJJJSRGF: '定额基价机上人工费',
|
|
|
|
- RGFJC: '人工费价差',
|
|
|
|
- CLFJC: '材料费价差',
|
|
|
|
- JXFJC: '机械费价差',
|
|
|
|
- ZCFJC: '主材费价差',
|
|
|
|
- SBFJC: '设备费价差',
|
|
|
|
- ZCF: '主材费',
|
|
|
|
- SBF: '设备费',
|
|
|
|
- RGGR: '人工工日',
|
|
|
|
- JGDEJJRGF: '甲供定额基价人工费',
|
|
|
|
- JGDEJJCLF: '甲供定额基价材料费',
|
|
|
|
- JGDEJJJXF: '甲供定额基价机械费',
|
|
|
|
- JGZCF: '甲供主材费',
|
|
|
|
- JGSBF: '甲供设备费',
|
|
|
|
- JDDEJJRGF: '甲定定额基价人工费',
|
|
|
|
- JDDEJJCLF: '甲定定额基价材料费',
|
|
|
|
- JDDEJJJXF: '甲定定额基价机械费',
|
|
|
|
- JDZCF: '甲定主材费',
|
|
|
|
- JDSBF: '甲定设备费',
|
|
|
|
- ZGCLF: '暂估材料费',
|
|
|
|
- FBDEJJRGF: '分包定额基价人工费',
|
|
|
|
- FBDEJJCLF: '分包定额基价材料费',
|
|
|
|
- FBDEJJJXF: '分包定额基价机械费',
|
|
|
|
- FBZCF: '分包主材费',
|
|
|
|
- FBSBF: '分包设备费',
|
|
|
|
- FBRGGR: '分包人工工日'
|
|
|
|
|
|
+let rationCalcBasesNameKinds = {
|
|
|
|
+ RGF: ['定额基价人工费', '定额人工费'],
|
|
|
|
+ CLF: ['定额基价材料费', '定额材料费'],
|
|
|
|
+ QTCLF: ['定额其他材料费'],
|
|
|
|
+ JXF: ['定额基价机械费', '定额施工机具使用费'],
|
|
|
|
+ JSRGF: ['定额基价机上人工费'],
|
|
|
|
+ ZCF: ['主材费'],
|
|
|
|
+ SBF: ['设备费'],
|
|
|
|
+ RGGR: ['人工工日'],
|
|
|
|
+ ZGCLF: ['暂估材料费'],
|
|
|
|
+
|
|
|
|
+ JC_RGF: ['人工费价差'],
|
|
|
|
+ JC_CLF: ['材料费价差'],
|
|
|
|
+ JC_JXF: ['机械费价差'],
|
|
|
|
+ JC_ZCF: ['主材费价差'],
|
|
|
|
+ JC_SBF: ['设备费价差'],
|
|
|
|
+
|
|
|
|
+ JG_RGF: ['甲供定额基价人工费', '甲供定额人工费'],
|
|
|
|
+ JG_CLF: ['甲供定额基价材料费', '甲供定额材料费'],
|
|
|
|
+ JG_JXF: ['甲供定额基价机械费', '甲供定额施工机具费'],
|
|
|
|
+ JG_ZCF: ['甲供主材费'],
|
|
|
|
+ JG_SBF: ['甲供设备费'],
|
|
|
|
+
|
|
|
|
+ JD_RGF: ['甲定定额基价人工费', '甲定定额人工费'],
|
|
|
|
+ JD_CLF: ['甲定定额基价材料费', '甲定定额材料费'],
|
|
|
|
+ JD_JXF: ['甲定定额基价机械费', '甲定定额施工机具费'],
|
|
|
|
+ JD_ZCF: ['甲定主材费'],
|
|
|
|
+ JD_SBF: ['甲定设备费'],
|
|
|
|
+
|
|
|
|
+ FB_RGF: ['分包定额基价人工费'],
|
|
|
|
+ FB_CLF: ['分包定额基价材料费'],
|
|
|
|
+ FB_JXF: ['分包定额基价机械费'],
|
|
|
|
+ FB_ZCF: ['分包主材费'],
|
|
|
|
+ FB_SBF: ['分包设备费'],
|
|
|
|
+ FB_RGGR: ['分包人工工日']
|
|
};
|
|
};
|
|
|
|
|
|
let rationCalcBases = {
|
|
let rationCalcBases = {
|
|
@@ -944,34 +977,34 @@ let rationCalcBases = {
|
|
return calcTools.labourDays(node, isTender);
|
|
return calcTools.labourDays(node, isTender);
|
|
},
|
|
},
|
|
'甲供定额基价人工费': function (node, isTender) {
|
|
'甲供定额基价人工费': function (node, isTender) {
|
|
- return calcTools.partASupplyFee(node, rationCalcBasesNameMap.JGDEJJRGF, isTender);
|
|
|
|
|
|
+ return calcTools.partASupplyFee(node, '甲供定额基价人工费', isTender);
|
|
},
|
|
},
|
|
'甲供定额基价材料费': function (node, isTender) {
|
|
'甲供定额基价材料费': function (node, isTender) {
|
|
- return calcTools.partASupplyFee(node, rationCalcBasesNameMap.JGDEJJCLF, isTender);
|
|
|
|
|
|
+ return calcTools.partASupplyFee(node, '甲供定额基价材料费', isTender);
|
|
},
|
|
},
|
|
'甲供定额基价机械费': function (node, isTender) {
|
|
'甲供定额基价机械费': function (node, isTender) {
|
|
- return calcTools.partASupplyFee(node, rationCalcBasesNameMap.JGDEJJJXF, isTender);
|
|
|
|
|
|
+ return calcTools.partASupplyFee(node, '甲供定额基价机械费', isTender);
|
|
},
|
|
},
|
|
'甲供主材费': function (node, isTender) {
|
|
'甲供主材费': function (node, isTender) {
|
|
- return calcTools.partASupplyFee(node, rationCalcBasesNameMap.JGZCF, isTender);
|
|
|
|
|
|
+ return calcTools.partASupplyFee(node, '甲供主材费', isTender);
|
|
},
|
|
},
|
|
'甲供设备费': function (node, isTender) {
|
|
'甲供设备费': function (node, isTender) {
|
|
- return calcTools.partASupplyFee(node, rationCalcBasesNameMap.JGSBF, isTender);
|
|
|
|
|
|
+ return calcTools.partASupplyFee(node, '甲供设备费', isTender);
|
|
},
|
|
},
|
|
'甲定定额基价人工费': function (node, isTender) {
|
|
'甲定定额基价人工费': function (node, isTender) {
|
|
- return calcTools.partASupplyFee(node, rationCalcBasesNameMap.JDDEJJRGF, isTender);
|
|
|
|
|
|
+ return calcTools.partASupplyFee(node, '甲定定额基价人工费', isTender);
|
|
},
|
|
},
|
|
'甲定定额基价材料费': function (node, isTender) {
|
|
'甲定定额基价材料费': function (node, isTender) {
|
|
- return calcTools.partASupplyFee(node, rationCalcBasesNameMap.JDDEJJCLF, isTender);
|
|
|
|
|
|
+ return calcTools.partASupplyFee(node, '甲定定额基价材料费', isTender);
|
|
},
|
|
},
|
|
'甲定定额基价机械费': function (node, isTender) {
|
|
'甲定定额基价机械费': function (node, isTender) {
|
|
- return calcTools.partASupplyFee(node, rationCalcBasesNameMap.JDDEJJJXF, isTender);
|
|
|
|
|
|
+ return calcTools.partASupplyFee(node, '甲定定额基价机械费', isTender);
|
|
},
|
|
},
|
|
'甲定主材费': function (node, isTender) {
|
|
'甲定主材费': function (node, isTender) {
|
|
- return calcTools.partASupplyFee(node, rationCalcBasesNameMap.JDZCF, isTender);
|
|
|
|
|
|
+ return calcTools.partASupplyFee(node, '甲定主材费', isTender);
|
|
},
|
|
},
|
|
'甲定设备费': function (node, isTender) {
|
|
'甲定设备费': function (node, isTender) {
|
|
- return calcTools.partASupplyFee(node, rationCalcBasesNameMap.JDSBF, isTender);
|
|
|
|
|
|
+ return calcTools.partASupplyFee(node, '甲定设备费', isTender);
|
|
},
|
|
},
|
|
'暂估材料费': function (node, isTender) {
|
|
'暂估材料费': function (node, isTender) {
|
|
return calcTools.estimateFee(node, true, isTender);
|
|
return calcTools.estimateFee(node, true, isTender);
|
|
@@ -1088,6 +1121,7 @@ let analyzer = {
|
|
expr = expr.replace(/\[[\u4E00-\u9FA5]+\]/gi, '0');
|
|
expr = expr.replace(/\[[\u4E00-\u9FA5]+\]/gi, '0');
|
|
expr = expr.replace(/@\d+/gi, '0');
|
|
expr = expr.replace(/@\d+/gi, '0');
|
|
expr = expr.replace(/L/gi, '0');
|
|
expr = expr.replace(/L/gi, '0');
|
|
|
|
+ expr = expr.replace(/%/gi, '*0.01');
|
|
if (expr.includes('00'))
|
|
if (expr.includes('00'))
|
|
return false;
|
|
return false;
|
|
|
|
|
|
@@ -1227,6 +1261,7 @@ let analyzer = {
|
|
let val = `$CE.at(${IDArr[i]},false)`;
|
|
let val = `$CE.at(${IDArr[i]},false)`;
|
|
rst = rst.replace(patt, val);
|
|
rst = rst.replace(patt, val);
|
|
};
|
|
};
|
|
|
|
+ rst = rst.replace(/%/g, "*0.01");
|
|
rst = rst.replace(/\[/g, "$CE.base('");
|
|
rst = rst.replace(/\[/g, "$CE.base('");
|
|
rst = rst.replace(/\]/g, "',false)");
|
|
rst = rst.replace(/\]/g, "',false)");
|
|
rst = rst.replace(/L/g, labourCoe);
|
|
rst = rst.replace(/L/g, labourCoe);
|