Pārlūkot izejas kodu

Merge branch 'master' of http://192.168.1.41:3000/SmartCost/YangHuCost

chenshilong 3 gadi atpakaļ
vecāks
revīzija
346212d789

+ 10 - 6
modules/main/facade/project_facade.js

@@ -349,15 +349,19 @@ function getReportData(nameList, items, prjTypeNames, compilationScopes, decimal
     let totalExp = item.calcBase;
     if (totalExp.indexOf('@') == -1) return;
     if (isProgressiveType && progressiveInterval) { //有累进的要重新计算总金额和技术经济综合指标
+      let hasReplace = false;
       for (let t of datas) {
+        if (totalExp.includes(t.ID)) hasReplace = true; // 强壮性处理:控制提前计算问题(ID在datas中找不到)
         totalExp = totalExp.replace(t.ID, t.billsTtlPrice + "");
       }
-      totalExp = totalExp.replace(/@/g, "");
-      //还有其他符号(如%)
-      totalExp = totalExp.replace(/%/g, " / 100 ");
-      let nTotal = eval(totalExp);
-      item.billsTtlPrice = scMathUtil.roundForObj(nTotal, decimal.bills.totalPrice);
-      item['技术经济综合指标'] = (item.billsTtlAmt && parseFloat(item.billsTtlAmt) !== 0) ? scMathUtil.roundForObj(item.billsTtlPrice / item.billsTtlAmt, 2) : scMathUtil.roundForObj(item.billsTtlPrice, 2);
+      if (hasReplace) {
+        totalExp = totalExp.replace(/@/g, "");
+        //还有其他符号(如%)
+        totalExp = totalExp.replace(/%/g, " / 100 ");
+        let nTotal = eval(totalExp);
+        item.billsTtlPrice = scMathUtil.roundForObj(nTotal, decimal.bills.totalPrice);
+        item['技术经济综合指标'] = (item.billsTtlAmt && parseFloat(item.billsTtlAmt) !== 0) ? scMathUtil.roundForObj(item.billsTtlPrice / item.billsTtlAmt, 2) : scMathUtil.roundForObj(item.billsTtlPrice, 2);
+      }
     }
   }
 

+ 9 - 1
web/building_saas/pm/js/pm_newMain.js

@@ -2092,7 +2092,15 @@ $(document).ready(function() {
         let selected = projTreeObj.tree.selected;
         let projs = getProjs(selected);
         setProjOptions(projs, selected);
-        $('#val-type-group').show();
+        if (selected.data.valuationType === '工程量清单') {
+            $('#val-type-group').hide();
+        } else {
+            if (selected.data.property.hasOwnProperty('valuationType')) {
+                $('#val-type-group').hide();
+            } else {
+                $('#val-type-group').show();
+            }
+        }
         const firstProj = selected && selected.data.projType === projectType.project ? selected: projs[0];
         const firstProjID = firstProj && firstProj.data.ID || null;
         handleTenderValuationTypeViewState(firstProjID);

+ 6 - 1
web/building_saas/standard_interface/export/anhui_maanshan.js

@@ -70,7 +70,7 @@ INTERFACE_EXPORT = (() => {
         { name: 'Jsdw', value: getValueByKey(information, 'constructingUnits') }, // 建设单位
         { name: 'Czzt', value: czzt[exportKind] }, // 操作状态:招标、投标、招标控制,即导出接口时,所选的文件类型
         { name: 'Jsfs', value: taxModeMap[getValueByKey(information, 'taxMode')] || '1', type: TYPE.INT }, // 计税方式,默认1。1=一般计税 2=简易计税
-        { name: 'Version', value: ['淮北', '铜陵', '亳州', '六安', '张掖', '安庆'].includes(subArea) ? '1.1' : '1.0' },
+        { name: 'Version', value: ['淮北', '铜陵', '亳州', '六安', '张掖', '安庆', '淮南'].includes(subArea) ? '1.1' : '1.0' },
       ];
       Element.call(this, 'JingJiBiao', attrs);
     }
@@ -234,6 +234,11 @@ INTERFACE_EXPORT = (() => {
           { name: 'TbrNssbh', value: '' }, // 投标人纳税识别号
           { name: 'TbrDbSfzh', value: '' }, // 投标人法定代表或其授权人身份证号
         ],
+        '淮南': [
+          { name: 'ZbrNssbh', value: '' }, // 招标人纳税识别号
+          { name: 'TbrNssbh', value: '' }, // 投标人纳税识别号
+          { name: 'TbrDbSfzh', value: '' }, // 投标人法定代表或其授权人身份证号
+        ],
       };
       if (extraMap[subArea]) {
         attrs.push(...extraMap[subArea]);