|
|
@@ -320,7 +320,8 @@ const XMLStandard = (function () {
|
|
|
otherItemNo: [], //其他列项序号
|
|
|
feeItemNo: [], //费用项序号
|
|
|
mainBillsCode: [], //主要清单明细项目编码 (标准文件中constraint中没有定义此唯一性,但是主要清单明细的备注那里说明了,这里处理一下)
|
|
|
- appraisalDetailCode: [], //评审材料明细代码唯一(标准文件中constraint中没有定义此唯一性,但是评审材料明细的备注里说明了)
|
|
|
+ appraisalDetailCode: [], //评审材料明细代码唯一(标准文件中constraint中没有定义此唯一性,但是评审材料明细的备注里说明了)
|
|
|
+ detailCode: [] //材料明细代码唯一(标材料表 暂估价材料评表中)
|
|
|
};
|
|
|
XML_EXPORT_BASE.Element.call(this, '单位工程', attrs);
|
|
|
}
|
|
|
@@ -883,9 +884,9 @@ const XMLStandard = (function () {
|
|
|
XML_EXPORT_BASE.Element.call(this, '暂估价材料表', []);
|
|
|
}
|
|
|
//材料明细定义
|
|
|
- function MaterialDetail(source) {
|
|
|
+ function MaterialDetail(parentName, source) {
|
|
|
let attrs = [
|
|
|
- {name: '序号', value: source.serialNo, minLen: 1, maxLen: 20, whiteSpace: _config.WHITE_SPACE.COLLAPSE, required: true},
|
|
|
+ {name: '序号', value: parentName === 'evalEstimateMaterial' ? source.orgCode : source.serialNo, minLen: 1, maxLen: 20, whiteSpace: _config.WHITE_SPACE.COLLAPSE, required: true},
|
|
|
{name: '关联材料号', value: source.code, minLen: 1, maxLen: 20, whiteSpace: _config.WHITE_SPACE.COLLAPSE},
|
|
|
{name: '材料名称', value: source.name, minLen: 1, maxLen: 255, whiteSpace: _config.WHITE_SPACE.COLLAPSE, required: true},
|
|
|
{name: '规格型号', value: source.specs, maxLen: 255},
|
|
|
@@ -1976,14 +1977,16 @@ const XMLStandard = (function () {
|
|
|
//评标和暂估材料表下的材料明细中的人材机代码,要求单位工程内唯一,由于人材机汇总也有这个限制,所以这里不再处理
|
|
|
if (glj.is_eval_material) { //评标
|
|
|
gljSource.serialNo = evalBidSeq++;
|
|
|
- evalBidMaterial.children.push(new MaterialDetail(gljSource));
|
|
|
+ evalBidMaterial.children.push(new MaterialDetail('evalBidMaterial', gljSource));
|
|
|
//给建设项目下的评审材料汇总设置明细数据,这里需要检测代码(编号)唯一性,因为是汇总所有单位工程的,要求所有单位工程内评审材料代码唯一
|
|
|
appraisalSummary.children.push(new AppraisalDetail(gljSource));
|
|
|
- _util.checkUnique(curTenderEle.constraints.appraisalDetailCode, gljSource.code, '评审材料明细代码', gljSource.orgCode);
|
|
|
+ //_util.checkUnique(curTenderEle.constraints.appraisalDetailCode, gljSource.code, '评审材料明细代码', gljSource.orgCode);
|
|
|
+ _util.checkUnique(curTenderEle.constraints.detailCode, gljSource.code, '材料明细关联材料号', gljSource.orgCode);
|
|
|
}
|
|
|
if (glj.is_evaluate) { //暂估
|
|
|
gljSource.serialNo = evalEstSeq++;
|
|
|
- evalEstimateMaterial.children.push(new MaterialDetail(gljSource));
|
|
|
+ evalEstimateMaterial.children.push(new MaterialDetail('evalEstimateMaterial', gljSource));
|
|
|
+ _util.checkUnique(curTenderEle.constraints.detailCode, gljSource.code, '材料明细关联材料号', gljSource.orgCode);
|
|
|
}
|
|
|
}
|
|
|
return {gljSummary, evalBidMaterial, evalEstimateMaterial};
|