|
|
@@ -107,6 +107,18 @@ INTERFACE_EXPORT = (() => {
|
|
|
|
|
|
const subTypeKeyArr = ['code', 'name', 'specs', 'unit', 'subType']
|
|
|
|
|
|
+ function _getSum(orgSum) {
|
|
|
+ let rst = orgSum;
|
|
|
+ // const isBidInvitation = exportKind === BID_INVITATION; // 是否是招标
|
|
|
+ // const isBidSubmission = exportKind === BID_SUBMISSION; // 是否是投标
|
|
|
+ // const isControl = exportKind === CONTROL; // 是否是控制价
|
|
|
+ //根据导出类型(上面3个),输出实际合计或price
|
|
|
+ if (isBidInvitation) {
|
|
|
+ rst = 0;
|
|
|
+ }
|
|
|
+ return rst;
|
|
|
+ }
|
|
|
+
|
|
|
// 获取人工消耗量
|
|
|
const getLabourQuantity = (node) => {
|
|
|
if (isBidInvitation) {
|
|
|
@@ -500,7 +512,7 @@ INTERFACE_EXPORT = (() => {
|
|
|
{name: '序号', value: hzSeq++ },
|
|
|
{name: '章次', value: getSection(node) },
|
|
|
{name: '名称', value: node.data.name, minLen: 1 },
|
|
|
- {name: '金额', value: getFee(node.data.fees, 'common.tenderTotalFee'), type: TYPE.DECIMAL },
|
|
|
+ {name: '金额', value: _getSum(getFee(node.data.fees, 'common.tenderTotalFee')), type: TYPE.DECIMAL },
|
|
|
{name: '类别', value: getLB(node) },
|
|
|
{name: '备注', value: node.data.remark },
|
|
|
|
|
|
@@ -702,7 +714,7 @@ INTERFACE_EXPORT = (() => {
|
|
|
{ name: '序号', value: jrgSeq++ },
|
|
|
{ name: '名称', value: node.data.name },
|
|
|
{ name: '数据类型', value: getJRGDataType(node) },
|
|
|
- { name: '合价', value: getFee(node.data.fees, 'common.tenderTotalFee'), type: TYPE.DECIMAL},
|
|
|
+ { name: '合价', value: _getSum(getFee(node.data.fees, 'common.tenderTotalFee')), type: TYPE.DECIMAL},
|
|
|
]);
|
|
|
if (node === fixedNode) {
|
|
|
return jrgxxbt;
|
|
|
@@ -713,8 +725,8 @@ INTERFACE_EXPORT = (() => {
|
|
|
{ name: '数据类型', value: getJRGDataType(child) },
|
|
|
{ name: '单位', value: child.data.unit, minLen: 1 },
|
|
|
{ name: '暂定数量', value: child.data.quantity, type: TYPE.DECIMAL },
|
|
|
- { name: '单价', value: getFee(child.data.fees, 'common.tenderUnitFee'), type: TYPE.DECIMAL },
|
|
|
- { name: '合价', value: getFee(child.data.fees, 'common.tenderTotalFee'), type: TYPE.DECIMAL },
|
|
|
+ { name: '单价', value: _getSum(getFee(child.data.fees, 'common.tenderUnitFee')), type: TYPE.DECIMAL },
|
|
|
+ { name: '合价', value: _getSum(getFee(child.data.fees, 'common.tenderTotalFee')), type: TYPE.DECIMAL },
|
|
|
]));
|
|
|
return jrgxxbt;
|
|
|
}
|