|
@@ -794,7 +794,7 @@ const XMLStandard = (function () {
|
|
|
function DifferentiaGljDetail(adjustType, source) {
|
|
function DifferentiaGljDetail(adjustType, source) {
|
|
|
let attrs = [
|
|
let attrs = [
|
|
|
//getGljCode(source.id)
|
|
//getGljCode(source.id)
|
|
|
- {name: '关联材料号', value: exportKind === _config.EXPORT_KIND.Tender ? source.relCode : '', minLen: 1, maxLen: 20, whiteSpace: _config.WHITE_SPACE.COLLAPSE, required: true},
|
|
|
|
|
|
|
+ {name: '关联材料号', value: source.relCode, minLen: 1, maxLen: 20, whiteSpace: _config.WHITE_SPACE.COLLAPSE, required: true},
|
|
|
{name: '名称', value: source.name, minLen: 1, maxLen: 255, whiteSpace: _config.WHITE_SPACE.COLLAPSE, required: true},
|
|
{name: '名称', value: source.name, minLen: 1, maxLen: 255, whiteSpace: _config.WHITE_SPACE.COLLAPSE, required: true},
|
|
|
{name: '规格', value: source.specs, maxLen: 255, whiteSpace: _config.WHITE_SPACE.COLLAPSE},
|
|
{name: '规格', value: source.specs, maxLen: 255, whiteSpace: _config.WHITE_SPACE.COLLAPSE},
|
|
|
{name: '单位', value: source.unit, minLen: 1, maxLen: 20, whiteSpace: _config.WHITE_SPACE.COLLAPSE, required: true},
|
|
{name: '单位', value: source.unit, minLen: 1, maxLen: 20, whiteSpace: _config.WHITE_SPACE.COLLAPSE, required: true},
|
|
@@ -821,7 +821,7 @@ const XMLStandard = (function () {
|
|
|
function ExponentialGljDetail(adjustType, source) {
|
|
function ExponentialGljDetail(adjustType, source) {
|
|
|
let attrs = [
|
|
let attrs = [
|
|
|
// getGljCode(source.id)
|
|
// getGljCode(source.id)
|
|
|
- {name: '关联材料号', value: exportKind === _config.EXPORT_KIND.Tender ? source.relCode : '', minLen: 1, maxLen: 20, whiteSpace: _config.WHITE_SPACE.COLLAPSE, required: true},
|
|
|
|
|
|
|
+ {name: '关联材料号', value: source.relCode, minLen: 1, maxLen: 20, whiteSpace: _config.WHITE_SPACE.COLLAPSE, required: true},
|
|
|
{name: '名称', value: source.name, minLen: 1, maxLen: 255, whiteSpace: _config.WHITE_SPACE.COLLAPSE, required: true},
|
|
{name: '名称', value: source.name, minLen: 1, maxLen: 255, whiteSpace: _config.WHITE_SPACE.COLLAPSE, required: true},
|
|
|
{name: '规格', value: source.specs, maxLen: 255, whiteSpace: _config.WHITE_SPACE.COLLAPSE},
|
|
{name: '规格', value: source.specs, maxLen: 255, whiteSpace: _config.WHITE_SPACE.COLLAPSE},
|
|
|
{name: '变值权重B', value: adjustType === _config.ADJUST_TYPE.coe ? source.varWeight : '0', type: _config.TYPE.DECIMAL, required: true},
|
|
{name: '变值权重B', value: adjustType === _config.ADJUST_TYPE.coe ? source.varWeight : '0', type: _config.TYPE.DECIMAL, required: true},
|
|
@@ -894,7 +894,7 @@ const XMLStandard = (function () {
|
|
|
function MaterialDetail(source) {
|
|
function MaterialDetail(source) {
|
|
|
let attrs = [
|
|
let attrs = [
|
|
|
{name: '序号', value: source.seq, minLen: 1, maxLen: 20, whiteSpace: _config.WHITE_SPACE.COLLAPSE, required: true},
|
|
{name: '序号', value: source.seq, minLen: 1, maxLen: 20, whiteSpace: _config.WHITE_SPACE.COLLAPSE, required: true},
|
|
|
- {name: '关联材料号', value: exportKind === _config.EXPORT_KIND.Tender ? source.relCode : '', minLen: 1, maxLen: 20, whiteSpace: _config.WHITE_SPACE.COLLAPSE},
|
|
|
|
|
|
|
+ {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.name, minLen: 1, maxLen: 255, whiteSpace: _config.WHITE_SPACE.COLLAPSE, required: true},
|
|
|
{name: '规格型号', value: source.specs, maxLen: 255},
|
|
{name: '规格型号', value: source.specs, maxLen: 255},
|
|
|
{name: '计量单位', value: source.unit, minLen: 1, maxLen: 20, whiteSpace: _config.WHITE_SPACE.COLLAPSE, required: true},
|
|
{name: '计量单位', value: source.unit, minLen: 1, maxLen: 20, whiteSpace: _config.WHITE_SPACE.COLLAPSE, required: true},
|
|
@@ -1904,10 +1904,7 @@ const XMLStandard = (function () {
|
|
|
* */
|
|
* */
|
|
|
function loadGlj(appraisalSummary, detail) {
|
|
function loadGlj(appraisalSummary, detail) {
|
|
|
let gljList = detail.projectGLJ.datas.gljList;
|
|
let gljList = detail.projectGLJ.datas.gljList;
|
|
|
- let evalBidSeq = 1, //评标序号
|
|
|
|
|
- evalEstSeq = 1; //暂估序号
|
|
|
|
|
// 人材机提取数据映射 id-数据映射
|
|
// 人材机提取数据映射 id-数据映射
|
|
|
- const allGLJMapping = {};
|
|
|
|
|
if (gljList.length > 0) {
|
|
if (gljList.length > 0) {
|
|
|
//创建人材机汇总节点
|
|
//创建人材机汇总节点
|
|
|
let gljSummary = new GljSummary();
|
|
let gljSummary = new GljSummary();
|
|
@@ -1983,7 +1980,6 @@ const XMLStandard = (function () {
|
|
|
brand: glj.brand,
|
|
brand: glj.brand,
|
|
|
remark: glj.remark
|
|
remark: glj.remark
|
|
|
};
|
|
};
|
|
|
- allGLJMapping[glj.id] = gljSource;
|
|
|
|
|
let gljEle = new Glj(gljSource);
|
|
let gljEle = new Glj(gljSource);
|
|
|
//人材机代码唯一
|
|
//人材机代码唯一
|
|
|
_util.checkUnique(curTenderEle.constraints.gljCode, gljSource.code, '人材机代码', gljSource.orgCode);
|
|
_util.checkUnique(curTenderEle.constraints.gljCode, gljSource.code, '人材机代码', gljSource.orgCode);
|
|
@@ -2006,7 +2002,7 @@ const XMLStandard = (function () {
|
|
|
gljSummary.children.push(gljEle);
|
|
gljSummary.children.push(gljEle);
|
|
|
}
|
|
}
|
|
|
// 评标材料
|
|
// 评标材料
|
|
|
- const bidEvaluationDetail = loadMaterialDetail(detail.bid_evaluation_list.datas);
|
|
|
|
|
|
|
+ const bidEvaluationDetail = loadMaterialDetail(configMaterialObj.getBidMaterialDatas());
|
|
|
evalBidMaterial.children.push(...bidEvaluationDetail);
|
|
evalBidMaterial.children.push(...bidEvaluationDetail);
|
|
|
// 给建设项目下的评审材料汇总设置明细数据 //code name specs unit marketPrice
|
|
// 给建设项目下的评审材料汇总设置明细数据 //code name specs unit marketPrice
|
|
|
const appraisalSummaryDetail = bidEvaluationDetail.map(ele => {
|
|
const appraisalSummaryDetail = bidEvaluationDetail.map(ele => {
|
|
@@ -2022,38 +2018,15 @@ const XMLStandard = (function () {
|
|
|
});
|
|
});
|
|
|
appraisalSummary.children.push(...appraisalSummaryDetail);
|
|
appraisalSummary.children.push(...appraisalSummaryDetail);
|
|
|
// 暂估材料
|
|
// 暂估材料
|
|
|
- const evaluationDetail = loadMaterialDetail(detail.evaluate_list.datas);
|
|
|
|
|
|
|
+ const evaluationDetail = loadMaterialDetail(configMaterialObj.getEvaluateMaterialDatas());
|
|
|
evalEstimateMaterial.children.push(...evaluationDetail);
|
|
evalEstimateMaterial.children.push(...evaluationDetail);
|
|
|
return {gljSummary, evalBidMaterial, evalEstimateMaterial};
|
|
return {gljSummary, evalBidMaterial, evalEstimateMaterial};
|
|
|
}
|
|
}
|
|
|
// 加载材料明细
|
|
// 加载材料明细
|
|
|
- // todo configMaterialObj.getEvaluateMaterialDatas
|
|
|
|
|
function loadMaterialDetail(datas) {
|
|
function loadMaterialDetail(datas) {
|
|
|
return datas.map(data => {
|
|
return datas.map(data => {
|
|
|
- const relGLJSrc = allGLJMapping[data.projectGLJID];
|
|
|
|
|
- const quantity = relGLJSrc ? relGLJSrc.quantity : data.quantity;
|
|
|
|
|
- const marketPrice = relGLJSrc ? relGLJSrc.marketPrice : data.marketPrice;
|
|
|
|
|
- const originPlace = relGLJSrc ? relGLJSrc.originPlace : '';
|
|
|
|
|
- const vender = relGLJSrc ? relGLJSrc.vender : '';
|
|
|
|
|
- const brand = relGLJSrc ? relGLJSrc.brand : '';
|
|
|
|
|
- const qualityGrace = relGLJSrc ? relGLJSrc.qualityGrace : '';
|
|
|
|
|
- const src = {
|
|
|
|
|
- seq: data.seq,
|
|
|
|
|
- relCode: relGLJSrc ? relGLJSrc.code : '',
|
|
|
|
|
- name: data.name,
|
|
|
|
|
- specs: data.specs,
|
|
|
|
|
- unit: data.unit,
|
|
|
|
|
- quantity: quantity,
|
|
|
|
|
- marketPrice: marketPrice,
|
|
|
|
|
- totalPrice: scMathUtil.roundForObj(quantity * marketPrice, detail.projectInfo.property.decimal.bills.totalPrice),
|
|
|
|
|
- originPlace: originPlace,
|
|
|
|
|
- vender: vender,
|
|
|
|
|
- brand: brand,
|
|
|
|
|
- qualityGrace: qualityGrace,
|
|
|
|
|
- remark: data.remark
|
|
|
|
|
- };
|
|
|
|
|
- _util.checkUnique(curTenderEle.constraints.detailCode, src.relCode, '材料明细关联材料号', src.relCode);
|
|
|
|
|
- return new MaterialDetail(src);
|
|
|
|
|
|
|
+ _util.checkUnique(curTenderEle.constraints.detailCode, data.code, '材料明细关联材料号', data.code);
|
|
|
|
|
+ return new MaterialDetail(data);
|
|
|
});
|
|
});
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|