|
@@ -15,12 +15,12 @@ let tender_obj={
|
|
|
{headerName: "计量\n单位", headerWidth: 60, dataCode: "unit", hAlign: "center", dataType: "String",spanRows: [2]},
|
|
|
{headerName: "工程量", headerWidth: 70, dataCode: "quantity", hAlign: "right", dataType: "Number",validator:"number",spanRows: [2],getText:'getText.quantity'},
|
|
|
// {headerName: "不调价", headerWidth: 55, dataCode: "is_adjust_price", hAlign: "center", cellType : "checkBox",dataType: "Number",spanRows: [2]},
|
|
|
- {headerName: ["初始报价","综合单价"], headerWidth: 80, dataCode: "feesIndex.common.unitFee", hAlign: "right", dataType: "Number",validator:"number",spanCols : [2,1]},
|
|
|
- {headerName: ["","综合合价"], headerWidth: 80, dataCode: "feesIndex.common.totalFee", hAlign: "right", dataType: "Number",validator:"number",spanCols : [0,1]},
|
|
|
- {headerName: ["目标造价","综合单价"], headerWidth: 80, dataCode: "targetUnitFee", hAlign: "right", dataType: "Number",validator:"number",spanCols : [2,1]},
|
|
|
- {headerName: ["","综合合价"], headerWidth: 80, dataCode: "targetTotalFee", hAlign: "right", dataType: "Number",validator:"number",spanCols : [0,1]},
|
|
|
- {headerName: ["调整后报价","综合单价"], headerWidth: 80, dataCode: "feesIndex.common.tenderUnitFee", hAlign: "right", dataType: "Number",validator:"number",spanCols : [2,1]},
|
|
|
- {headerName: ["","综合合价"], headerWidth: 80, dataCode: "feesIndex.common.tenderTotalFee", hAlign: "right", dataType: "Number",validator:"number",spanCols : [0,1]},
|
|
|
+ {headerName: ["初始报价","综合单价"], headerWidth: 100, dataCode: "feesIndex.common.unitFee", hAlign: "right", dataType: "Number",validator:"number",spanCols : [2,1]},
|
|
|
+ {headerName: ["","综合合价"], headerWidth: 100, dataCode: "feesIndex.common.totalFee", hAlign: "right", dataType: "Number",validator:"number",spanCols : [0,1]},
|
|
|
+ {headerName: ["目标造价","综合单价"], headerWidth: 100, dataCode: "targetUnitFee", hAlign: "right", dataType: "Number",validator:"number",spanCols : [2,1]},
|
|
|
+ {headerName: ["","综合合价"], headerWidth: 100, dataCode: "targetTotalFee", hAlign: "right", dataType: "Number",validator:"number",spanCols : [0,1]},
|
|
|
+ {headerName: ["调整后报价","综合单价"], headerWidth: 100, dataCode: "feesIndex.common.tenderUnitFee", hAlign: "right", dataType: "Number",validator:"number",spanCols : [2,1]},
|
|
|
+ {headerName: ["","综合合价"], headerWidth: 100, dataCode: "feesIndex.common.tenderTotalFee", hAlign: "right", dataType: "Number",validator:"number",spanCols : [0,1]},
|
|
|
{headerName: ["消耗量调整系数","人工"], headerWidth: 80, dataCode: "quantityCoe.labour", hAlign: "right", dataType: "Number",validator:"number",spanCols : [5,1]},
|
|
|
{headerName: ["","材料"], headerWidth: 80, dataCode: "quantityCoe.material", hAlign: "right", dataType: "Number",validator:"number",spanCols : [0,1]},
|
|
|
{headerName: ["","机械"], headerWidth: 80, dataCode: "quantityCoe.machine", hAlign: "right", dataType: "Number",validator:"number",spanCols : [0,1]},
|
|
@@ -224,12 +224,13 @@ let tender_obj={
|
|
|
updateChildrenValue:function (node,dataCode,value,datas,nodes) {
|
|
|
if(node.children.length > 0){
|
|
|
for(let c of node.children){
|
|
|
- if ((dataCode.indexOf("quantityCoe.") != -1) && (c.data.type == rationType.volumePrice || c.data.type == rationType.gljRation))
|
|
|
- value = 0;
|
|
|
- this.updateChildrenValue(c,dataCode,value,datas,nodes);
|
|
|
+ let v = value;
|
|
|
+ if ((dataCode.indexOf("quantityCoe.") != -1) && (calcTools.isVolumePrice(c) || calcTools.isGljRation(c)))
|
|
|
+ v = 0;
|
|
|
+ this.updateChildrenValue(c,dataCode,v,datas,nodes);
|
|
|
let updateData = {type:c.sourceType,data:{'ID' : c.data.ID}};
|
|
|
- updateData.data[dataCode] = value;
|
|
|
- if(dataCode == 'is_adjust_price' && value == 1){
|
|
|
+ updateData.data[dataCode] = v;
|
|
|
+ if(dataCode == 'is_adjust_price' && v == 1){
|
|
|
updateData = this.cleanTenderCoe(updateData,c);
|
|
|
}else if(dataCode.indexOf("Coe")!= -1 && c.data.is_adjust_price == 1){//更新调整系数时忽略不调价的行
|
|
|
continue;
|
|
@@ -393,7 +394,7 @@ let tender_obj={
|
|
|
}
|
|
|
// 量价类,工料机消耗量调整系数不允许输入
|
|
|
let treeNode = me.tenderTree.items[row];
|
|
|
- if (treeNode.data.type == rationType.volumePrice || treeNode.data.type == rationType.gljRation){
|
|
|
+ if (calcTools.isVolumePrice(treeNode) || calcTools.isGljRation(treeNode)){
|
|
|
if ([11,12,13,14,15].includes(col))
|
|
|
return false;
|
|
|
};
|