|
@@ -8,14 +8,14 @@ materialCalcObj = {
|
|
|
materialDatas:[],
|
|
materialDatas:[],
|
|
|
materialSetting:{
|
|
materialSetting:{
|
|
|
header:[
|
|
header:[
|
|
|
- {headerName: "编号", headerWidth: 80, dataCode: "code", dataType: "String"},
|
|
|
|
|
- {headerName: "名称", headerWidth: 100, dataCode: "name", dataType: "String"},
|
|
|
|
|
- {headerName: "预算价", headerWidth: 70, dataCode: "marketPrice", hAlign: "right", dataType: "Number",validator:"number"},
|
|
|
|
|
- {headerName: "供应地点", headerWidth: 100, dataCode: "supplyLocation", hAlign: "left", dataType: "String"},
|
|
|
|
|
|
|
+ {headerName: "编号", headerWidth: 70, dataCode: "code", dataType: "String"},
|
|
|
|
|
+ {headerName: "名称", headerWidth: 105, dataCode: "name", dataType: "String"},
|
|
|
|
|
+ {headerName: "预算价", headerWidth: 60, dataCode: "marketPrice", hAlign: "right", dataType: "Number",validator:"number"},
|
|
|
|
|
+ {headerName: "供应地点", headerWidth: 75, dataCode: "supplyLocation", hAlign: "left", dataType: "String"},
|
|
|
{headerName: "原价", headerWidth: 60, dataCode: "originalPrice", hAlign: "right", dataType: "String"},
|
|
{headerName: "原价", headerWidth: 60, dataCode: "originalPrice", hAlign: "right", dataType: "String"},
|
|
|
{headerName: "单位运费", headerWidth: 60, dataCode: "unitFreight", hAlign: "right", dataType: "Number",validator:"number"},//,decimalField:'glj.unitPrice'
|
|
{headerName: "单位运费", headerWidth: 60, dataCode: "unitFreight", hAlign: "right", dataType: "Number",validator:"number"},//,decimalField:'glj.unitPrice'
|
|
|
- {headerName: "单位毛重(吨)", headerWidth: 60, dataCode: "grossWeightCoe_n", hAlign: "right", dataType: "Number"},//,decimalField:"glj.unitPrice"
|
|
|
|
|
- {headerName: "装卸总次数", headerWidth: 60, dataCode: "totalLoadingTimes", hAlign: "right", dataType: "Number",validator:"number"},//,decimalField:"glj.unitPrice"
|
|
|
|
|
|
|
+ {headerName: "单位毛重(吨)", headerWidth: 65, dataCode: "grossWeightCoe_n", hAlign: "right", dataType: "Number"},//,decimalField:"glj.unitPrice"
|
|
|
|
|
+ {headerName: "装卸总次数", headerWidth: 53, dataCode: "totalLoadingTimes", hAlign: "right", dataType: "Number",validator:"number"},//,decimalField:"glj.unitPrice"
|
|
|
{headerName: "每增加一次装卸损耗率", headerWidth: 80, dataCode: "handlingLossRate_n", hAlign: "right", dataType: "Number",validator:"number"},
|
|
{headerName: "每增加一次装卸损耗率", headerWidth: 80, dataCode: "handlingLossRate_n", hAlign: "right", dataType: "Number",validator:"number"},
|
|
|
{headerName: "场外运输损耗率", headerWidth: 60, dataCode: "offSiteTransportLossRate_n", hAlign: "right", dataType: "Number"},//,decimalField:"glj.unitPrice"
|
|
{headerName: "场外运输损耗率", headerWidth: 60, dataCode: "offSiteTransportLossRate_n", hAlign: "right", dataType: "Number"},//,decimalField:"glj.unitPrice"
|
|
|
{headerName: "场外运输损耗", headerWidth: 60, dataCode: "offSiteTransportLoss", hAlign: "right", dataType: "Number"},//,decimalField:"glj.unitPrice"
|
|
{headerName: "场外运输损耗", headerWidth: 60, dataCode: "offSiteTransportLoss", hAlign: "right", dataType: "Number"},//,decimalField:"glj.unitPrice"
|
|
@@ -25,6 +25,7 @@ materialCalcObj = {
|
|
|
],
|
|
],
|
|
|
view: {
|
|
view: {
|
|
|
lockColumns: ["code","name","marketPrice",'offSiteTransportLoss','purchaseStorage'],
|
|
lockColumns: ["code","name","marketPrice",'offSiteTransportLoss','purchaseStorage'],
|
|
|
|
|
+ rowHeaderWidth:25,
|
|
|
colHeaderHeight:36
|
|
colHeaderHeight:36
|
|
|
}
|
|
}
|
|
|
},
|
|
},
|
|
@@ -35,21 +36,22 @@ materialCalcObj = {
|
|
|
userFreightList:[],
|
|
userFreightList:[],
|
|
|
freightSetting:{
|
|
freightSetting:{
|
|
|
header:[
|
|
header:[
|
|
|
- {headerName: "起讫地点", headerWidth: 80, dataCode: "start", dataType: "String"},
|
|
|
|
|
- {headerName: "运输工具", headerWidth: 80, dataCode: "conveyance", dataType: "String"},
|
|
|
|
|
- {headerName: "单位运价", headerWidth: 60, dataCode: "unitFreight", hAlign: "right", dataType: "Number",validator:"number"},
|
|
|
|
|
- {headerName: "km运距", headerWidth: 60, dataCode: "kmDistance", hAlign: "right", dataType: "String",validator:"number"},
|
|
|
|
|
- {headerName: "装卸费\n单价", headerWidth: 60, dataCode: "unitLoadingFee", hAlign: "right", dataType: "String",validator:"number"},
|
|
|
|
|
- {headerName: "装卸\n次数", headerWidth: 60, dataCode: "loadingTimes", hAlign: "right", dataType: "Number",validator:"number"},//,decimalField:'glj.unitPrice'
|
|
|
|
|
- {headerName: "其它\n费用", headerWidth: 60, dataCode: "otherFee", hAlign: "right", dataType: "Number",validator:"number"},//,decimalField:"glj.unitPrice"
|
|
|
|
|
- {headerName: "运价增\n加率(%)", headerWidth: 60, dataCode: "freightIncreaseRate", hAlign: "right", dataType: "Number",validator:"number"},//,decimalField:"glj.unitPrice"
|
|
|
|
|
- {headerName: "加权\n系数", headerWidth: 60, dataCode: "weightCoe", hAlign: "right", dataType: "Number",validator:"number"},
|
|
|
|
|
|
|
+ {headerName: "起讫地点", headerWidth: 85, dataCode: "start", dataType: "String"},
|
|
|
|
|
+ {headerName: "运输工具", headerWidth: 65, dataCode: "conveyance", dataType: "String"},
|
|
|
|
|
+ {headerName: "材料类型", headerWidth: 65, dataCode: "materialType", visible: false,dataType: "String",cellType:"comboBox",options:["","地方材料","外购材料","沥青、燃料等"]},
|
|
|
|
|
+ {headerName: "单位运价", headerWidth: 65, dataCode: "unitFreight", hAlign: "right", dataType: "Number",validator:"number"},
|
|
|
|
|
+ {headerName: "km运距", headerWidth: 55, dataCode: "kmDistance", hAlign: "right", dataType: "String",validator:"number"},
|
|
|
|
|
+ {headerName: "装卸费\n单价", headerWidth: 53, dataCode: "unitLoadingFee", hAlign: "right", dataType: "String",validator:"number"},
|
|
|
|
|
+ {headerName: "装卸\n次数", headerWidth: 41, dataCode: "loadingTimes", hAlign: "right", dataType: "Number",validator:"number"},//,decimalField:'glj.unitPrice'
|
|
|
|
|
+ {headerName: "其它\n费用", headerWidth: 41, dataCode: "otherFee", hAlign: "right", dataType: "Number",validator:"number"},//,decimalField:"glj.unitPrice"
|
|
|
|
|
+ {headerName: "运价增\n加率(%)", headerWidth: 55, dataCode: "freightIncreaseRate", hAlign: "right", dataType: "Number",validator:"number"},//,decimalField:"glj.unitPrice"
|
|
|
|
|
+ {headerName: "加权\n系数", headerWidth: 41, dataCode: "weightCoe", hAlign: "right", dataType: "Number",validator:"number"},
|
|
|
{headerName: "计算式", headerWidth: 170, dataCode: "exp", hAlign: "left", dataType: "Number",getText:'forExp'},//,decimalField:"glj.unitPrice"
|
|
{headerName: "计算式", headerWidth: 170, dataCode: "exp", hAlign: "left", dataType: "Number",getText:'forExp'},//,decimalField:"glj.unitPrice"
|
|
|
- {headerName: "计算方式", headerWidth: 80, dataCode: "calcType",visible: false, dataType: "String",cellType:"comboBox",options:["全国","内蒙古"]},
|
|
|
|
|
- {headerName: "材料类型", headerWidth: 80, dataCode: "materialType", visible: false,dataType: "String",cellType:"comboBox",options:["","地方材料","外购材料","沥青、燃料等"]}
|
|
|
|
|
|
|
+ {headerName: "计算方式", headerWidth: 80, dataCode: "calcType",visible: false, dataType: "String",cellType:"comboBox",options:["全国","内蒙古"]}
|
|
|
],
|
|
],
|
|
|
view: {
|
|
view: {
|
|
|
lockColumns: ["exp"],
|
|
lockColumns: ["exp"],
|
|
|
|
|
+ rowHeaderWidth:25,
|
|
|
colHeaderHeight:36
|
|
colHeaderHeight:36
|
|
|
},
|
|
},
|
|
|
getText:{
|
|
getText:{
|
|
@@ -78,6 +80,7 @@ materialCalcObj = {
|
|
|
],
|
|
],
|
|
|
view: {
|
|
view: {
|
|
|
lockColumns: [],
|
|
lockColumns: [],
|
|
|
|
|
+ rowHeaderWidth:25,
|
|
|
colHeaderHeight:36
|
|
colHeaderHeight:36
|
|
|
}
|
|
}
|
|
|
},
|
|
},
|
|
@@ -93,10 +96,11 @@ materialCalcObj = {
|
|
|
{headerName: "名称", headerWidth: 160, dataCode: "name", dataType: "String"},
|
|
{headerName: "名称", headerWidth: 160, dataCode: "name", dataType: "String"},
|
|
|
{headerName: "单位", headerWidth: 100, dataCode: "unit", dataType: "String"},
|
|
{headerName: "单位", headerWidth: 100, dataCode: "unit", dataType: "String"},
|
|
|
{headerName: "数量", headerWidth: 100, dataCode: "quantity", dataType: "String",hAlign: "right",validator:"number"},
|
|
{headerName: "数量", headerWidth: 100, dataCode: "quantity", dataType: "String",hAlign: "right",validator:"number"},
|
|
|
- {headerName: "高原取费类别", headerWidth: 100, dataCode: "feeType", dataType: "String",visible: false,cellType:"comboBox",options:[]}
|
|
|
|
|
|
|
+ {headerName: "高原取费类别", headerWidth: 100, dataCode: "feeType", dataType: "String",visible: false,cellType:"comboBox",options:[],maxDropDownItems:5}
|
|
|
],
|
|
],
|
|
|
view: {
|
|
view: {
|
|
|
lockColumns: ["unit"],
|
|
lockColumns: ["unit"],
|
|
|
|
|
+ rowHeaderWidth:25,
|
|
|
colHeaderHeight:36
|
|
colHeaderHeight:36
|
|
|
}
|
|
}
|
|
|
|
|
|
|
@@ -639,7 +643,8 @@ materialCalcObj = {
|
|
|
return;
|
|
return;
|
|
|
}
|
|
}
|
|
|
if(dataCode == 'coe'||dataCode == 'supplyPrice'){
|
|
if(dataCode == 'coe'||dataCode == 'supplyPrice'){
|
|
|
- value = value?scMathUtil.roundForObj(value,getDecimal("glj.unitPrice"))+'':'0'//4舍五入加默认为0
|
|
|
|
|
|
|
+ let decimal = dataCode == 'supplyPrice'?getDecimal("glj.unitPriceHasMix"):getDecimal("glj.unitPrice");
|
|
|
|
|
+ value = value?scMathUtil.roundForObj(value,decimal)+'':'0'//4舍五入加默认为0
|
|
|
}
|
|
}
|
|
|
if(args.row >= me.priceDatas.length){//新增
|
|
if(args.row >= me.priceDatas.length){//新增
|
|
|
let newData = {
|
|
let newData = {
|
|
@@ -941,6 +946,7 @@ $(function () {
|
|
|
me.updateMaterialRationAss($(this).val(),$(this));
|
|
me.updateMaterialRationAss($(this).val(),$(this));
|
|
|
});
|
|
});
|
|
|
$('#calcCoeDiv').on('show.bs.modal', function () {
|
|
$('#calcCoeDiv').on('show.bs.modal', function () {
|
|
|
|
|
+ if(materialCalcObj.getAssistProductionLabel) $("#assistProductionLabel").text(materialCalcObj.getAssistProductionLabel);
|
|
|
$("#assistProductionFeeRate").val(scMathUtil.roundForObj(projectObj.project.projectGLJ.datas.constData.assistProductionFeeRate,getDecimal("feeRate")));
|
|
$("#assistProductionFeeRate").val(scMathUtil.roundForObj(projectObj.project.projectGLJ.datas.constData.assistProductionFeeRate,getDecimal("feeRate")));
|
|
|
})
|
|
})
|
|
|
$("#calcCoeConfirm").click(function () {
|
|
$("#calcCoeConfirm").click(function () {
|