Преглед на файлове

feat: 浙江宁海接口,招标文件专项暂定处理调整

vian преди 4 години
родител
ревизия
a1d3d5d666

+ 19 - 3
web/building_saas/standard_interface/export/zhejiang_ninghai.js

@@ -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},

+ 1 - 0
web/building_saas/standard_interface/import/zhejiang_ninghai.js

@@ -128,6 +128,7 @@ INTERFACE_IMPORT = (() => {
           quantity: getValue(src, ['_数量']),
           remark: getValue(src, ['_备注']),
           appraisalBills: +getValue(src, ['_评审清单']),
+          specialProvisional: getValue(src, ['_数据类型']) === '21' ? '专业工程' : ''
         }));
       }
       // 计日工数据