|
|
@@ -657,7 +657,7 @@ const XMLStandard = (function () {
|
|
|
{name: '费率', value: source.feeRate, type: TYPE.DECIMAL},
|
|
|
{name: '金额', value: source.commonTotalFee, type: TYPE.NUM2, required: true},
|
|
|
{name: '不计入合价标志', value: false, type: TYPE.BOOL},
|
|
|
- {name: '招标人标志', value: true, type: TYPE.BOOL},
|
|
|
+ {name: '招标人标志', value: false, type: TYPE.BOOL},
|
|
|
{name: '备注', value: source.remark, maxLen: 255}
|
|
|
];
|
|
|
element.call(this, '其他列项', attrs);
|
|
|
@@ -694,16 +694,16 @@ const XMLStandard = (function () {
|
|
|
{name: '单位', value: source.unit, minLen: 1, maxLen: 20, whiteSpace: WHITE_SPACE.COLLAPSE, required: true},
|
|
|
{name: '原始代码', value: source.orgCode, minLen: 1, maxLen: 20, whiteSpace: WHITE_SPACE.COLLAPSE},
|
|
|
{name: '费用类别', value: source.feeType, enumeration: ['1', '2', '3', '4'], required: true},
|
|
|
- {name: '配比类别', value: '', type: TYPE.INT}, //todo
|
|
|
- {name: '主要材料类别', value: '', type: TYPE.INT}, //todo
|
|
|
- {name: '主要材料单位系数', value: '', type: TYPE.DECIMAL}, //todo
|
|
|
- {name: '材料耗用类型', value: '', type: TYPE.INT, required: true}, //todo
|
|
|
- {name: '供货方式', value: '', type: TYPE.INT}, //todo
|
|
|
+ {name: '配比类别', value: source.ratioType, type: TYPE.INT},
|
|
|
+ {name: '主要材料类别', value: source.mainMaterialType, type: TYPE.INT},
|
|
|
+ {name: '主要材料单位系数', value: source.materialCoe, type: TYPE.DECIMAL},
|
|
|
+ {name: '材料耗用类型', value: 0, type: TYPE.INT, required: true},
|
|
|
+ {name: '供货方式', value: source.supply, type: TYPE.INT}, //todo
|
|
|
{name: '暂估材料标志', value: !!source.is_evaluate, type: TYPE.BOOL},
|
|
|
{name: '不计税设备标志', value: !!source.is_adjust_price, type: TYPE.BOOL, required: true}, //todo
|
|
|
{name: '单价不从明细汇总标志', value: !!source.excludeRatio, type: TYPE.BOOL}, //todo
|
|
|
{name: '定额价', value: source.basePrice, type: TYPE.DECIMAL, required: true},
|
|
|
- {name: '定额价调整', value: '', type: TYPE.DECIMAL, required: true}, //todo
|
|
|
+ {name: '定额价调整', value: source.adjPrice, type: TYPE.DECIMAL, required: true}, //todo
|
|
|
{name: '市场价', value: source.marketPrice, type: TYPE.DECIMAL, required: true},
|
|
|
{name: '数量', value: source.quantity, type: TYPE.DECIMAL, required: true},
|
|
|
{name: '产地', value: source.originPlace, maxLen: 255},
|
|
|
@@ -1657,9 +1657,30 @@ const XMLStandard = (function () {
|
|
|
//计算总消耗量
|
|
|
gljUtil.calcProjectGLJQuantity(detail.projectGLJ.datas,
|
|
|
detail.ration_glj.datas, detail.Ration.datas, detail.Bills.datas, curPMData.tender.property.decimal.glj.quantity, _, scMathUtil);
|
|
|
+ //类型-配比类别映射
|
|
|
+ let ratioMapping = {
|
|
|
+ '202': '1', //为“混凝土”时,取“1”;
|
|
|
+ '205': '2', //为“商品混凝土”时,取“2”;
|
|
|
+ '203': '3', //为“砂浆”时,取“3”;
|
|
|
+ '206': '4', //为“商品砂浆”时,取“4”;
|
|
|
+ '204': '5' //为“配合比”时,取“5”
|
|
|
+ };
|
|
|
+ //三材类别-主要材料类别映射 三材类型:钢材1、钢筋2、木材3、水泥4、商品砼5、商品砂浆6
|
|
|
+ let mainMaterialMapping = {
|
|
|
+ '1': '100', //为“钢材”、“钢筋”时,取“100”;
|
|
|
+ '2': '100',
|
|
|
+ '4': '200', //为“水泥”时,取“200”;
|
|
|
+ '3': '300', //为“木材”时,取“300”;
|
|
|
+ '5': '400', //为“商品砼”、商品砂浆”时,取“400”。
|
|
|
+ '6': '400'
|
|
|
+ };
|
|
|
for (let glj of allGljs) {
|
|
|
+ //gljUtil.getAdjustPrice(glj,proGLJ.datas,calcOptions,labourCoeDatas,decimalObj,isRadio,_,scMathUtil);
|
|
|
let price = gljUtil.getGLJPrice(glj, detail.projectGLJ.datas,
|
|
|
curPMData.tender.property.calcOptions, detail.labourCoe.datas, curPMData.tender.property.decimal, false, _, scMathUtil);
|
|
|
+ //调整价
|
|
|
+ let adjPrice = gljUtil.getAdjustPrice(glj, detail.projectGLJ.datas,
|
|
|
+ curPMData.tender.property.calcOptions, detail.labourCoe.datas, curPMData.tender.property.decimal, false, _, scMathUtil);
|
|
|
//获取人材机费用类别: 1=人工费 2=材料费 3=机械费 4=未计价费
|
|
|
let feeType = glj.type.toString()[0];
|
|
|
if (feeType && !['1', '2', '3'].includes(feeType)) {
|
|
|
@@ -1668,12 +1689,18 @@ const XMLStandard = (function () {
|
|
|
let gljSource = {
|
|
|
code: glj.code,
|
|
|
name: glj.name,
|
|
|
- feeType: feeType,
|
|
|
spec: glj.spec,
|
|
|
unit: glj.unit,
|
|
|
orgCode: glj.original_code,
|
|
|
+ feeType: feeType,
|
|
|
+ ratioType: ratioMapping[glj.type],
|
|
|
+ mainMaterialType: mainMaterialMapping[glj.materialType],
|
|
|
+ materialCoe: glj.materialCoe,
|
|
|
+ supply: glj.supply === 2 ? 2 : 1, //供货方式为“完全甲供”,取“2”;否则取“1”。
|
|
|
is_evaluate: glj.is_evaluate,
|
|
|
+ notFromDetail: !glj.ratio_data.length, //单价不从明细汇总标志,如果有配比组成,取“false”;否则取“true”。
|
|
|
basePrice: price.base,
|
|
|
+ adjPrice: adjPrice,
|
|
|
marketPrice: price.marketPrice,
|
|
|
quantity: glj.quantity,
|
|
|
originPlace: glj.originPlace,
|