|
|
@@ -95,6 +95,9 @@ INTERFACE_EXPORT = (() => {
|
|
|
|
|
|
// 获取人工单价
|
|
|
const getLabourPrice = () => {
|
|
|
+ if (isBidInvitation) {
|
|
|
+ return 0;
|
|
|
+ }
|
|
|
const glj = curTender.projectGLJ.datas.gljList.find(glj => glj.type === 1);
|
|
|
if (!glj) {
|
|
|
return 0;
|
|
|
@@ -106,6 +109,9 @@ INTERFACE_EXPORT = (() => {
|
|
|
|
|
|
// 获取人工消耗量
|
|
|
const getLabourQuantity = (node) => {
|
|
|
+ if (isBidInvitation) {
|
|
|
+ return 0;
|
|
|
+ }
|
|
|
const quantity = +node.data.quantity || 1;
|
|
|
let total = 0;
|
|
|
const posterity = node.getPosterity();
|
|
|
@@ -129,6 +135,9 @@ INTERFACE_EXPORT = (() => {
|
|
|
mainFee: 0,
|
|
|
assFee: 0,
|
|
|
};
|
|
|
+ if (isBidInvitation) {
|
|
|
+ return rst;
|
|
|
+ }
|
|
|
let quantity = calcTools.isBill(node) ? node.data.quantity : node.data.tenderQuantity;
|
|
|
quantity = +quantity || 1;
|
|
|
const posterity = calcTools.isBill(node) ? node.getPosterity() : [node];
|
|
|
@@ -319,6 +328,13 @@ INTERFACE_EXPORT = (() => {
|
|
|
}
|
|
|
function GongCLQDMX(node) {
|
|
|
const { mainFee, assFee } = getMaterialFee(node);
|
|
|
+ const billDataType = getBillDataType(node);
|
|
|
+ let unitFee = 0;
|
|
|
+ let totalFee = 0;
|
|
|
+ if (!isBidInvitation || billDataType === '21') {
|
|
|
+ unitFee = getFee(node.data.fees, 'common.tenderUnitFee');
|
|
|
+ totalFee = getFee(node.data.fees, 'common.tenderTotalFee');
|
|
|
+ }
|
|
|
const attrs = [
|
|
|
{name: '序号', value: billSeq ++ },
|
|
|
{name: 'GUID', value: node.data.GUID || node.data.ID },
|
|
|
@@ -331,10 +347,10 @@ INTERFACE_EXPORT = (() => {
|
|
|
{name: '子目名称', value: node.data.name, minLen: 1},
|
|
|
{name: '单位', value: node.data.unit},
|
|
|
{name: '数量', value: node.data.quantity, type: TYPE.DECIMAL},
|
|
|
- {name: '单价', value: getFee(node.data.fees, 'common.tenderUnitFee', exportKind), type: TYPE.DECIMAL},
|
|
|
- {name: '合价', value: getFee(node.data.fees, 'common.tenderTotalFee', exportKind), type: TYPE.DECIMAL},
|
|
|
+ {name: '单价', value: unitFee, type: TYPE.DECIMAL},
|
|
|
+ {name: '合价', value: totalFee, type: TYPE.DECIMAL},
|
|
|
{name: '备注', value: node.data.remark },
|
|
|
- {name: '数据类型', value: getBillDataType(node) },
|
|
|
+ {name: '数据类型', value: billDataType },
|
|
|
{name: '人工费', value: getUnitFee(getFee(node.data.fees, 'marketLabour.tenderTotalFee', exportKind), node.data.quantity, 2), type: TYPE.DECIMAL},
|
|
|
{name: '人工单价', value: getLabourPrice(), type: TYPE.DECIMAL},
|
|
|
{name: '人工消耗量', value: getLabourQuantity(node), type: TYPE.DECIMAL},
|