|
|
@@ -976,6 +976,18 @@ INTERFACE_EXPORT = (() => {
|
|
|
return rst;
|
|
|
}
|
|
|
|
|
|
+ function _getStrValueByExportKind(orgStr) {
|
|
|
+ let rst = orgStr;
|
|
|
+ // const isBidInvitation = exportKind === BID_INVITATION; // 是否是招标
|
|
|
+ // const isBidSubmission = exportKind === BID_SUBMISSION; // 是否是投标
|
|
|
+ // const isControl = exportKind === CONTROL; // 是否是控制价
|
|
|
+ //根据导出类型(上面3个),输出实际合计或price
|
|
|
+ if (isBidInvitation) {
|
|
|
+ rst = '';
|
|
|
+ }
|
|
|
+ return rst;
|
|
|
+ }
|
|
|
+
|
|
|
function quoteSummary(tenderProject) {
|
|
|
let quoteSummaryItem = new emptyElement('QuoteSummary');
|
|
|
// let attrs = [];
|
|
|
@@ -1534,9 +1546,9 @@ INTERFACE_EXPORT = (() => {
|
|
|
{name: 'LaborUnitPrice', value: 0},
|
|
|
{name: 'LaborUnitTotal', value: 0},
|
|
|
// {name: 'MainMaterialConsume', value: scMathUtil.roundForObj(showQty, decimalObj.glj.quantity)},
|
|
|
- {name: 'MainMaterialConsume', value: 0},
|
|
|
+ {name: 'MainMaterialConsume', value: _getNumValueByExportKind(scMathUtil.roundForObj(showQty, decimalObj.glj.quantity))},
|
|
|
// {name: 'MainMaterialUnit', value: gljItem.mainMaterialUnit},
|
|
|
- {name: 'MainMaterialUnit', value: ''},
|
|
|
+ {name: 'MainMaterialUnit', value: _getStrValueByExportKind(gljItem.mainMaterialUnit)},
|
|
|
{name: 'MainMaterialUnitPrice', value: _getNumValueByExportKind(scMathUtil.roundForObj(gljItem.mainMaterialUnitPrice, decimalObj.glj.unitPrice))},
|
|
|
{name: 'MainMaterialTotal', value: _getNumValueByExportKind(scMathUtil.roundForObj(showQty * gljItem.mainMaterialUnitPrice, decimalObj.glj.unitPrice))},
|
|
|
{name: 'AuxiliaryMaterialFee', value: 0},
|