Procházet zdrojové kódy

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

Tony Kang před 2 roky
rodič
revize
e1578213f9

+ 1 - 1
web/building_saas/main/html/main.html

@@ -1100,7 +1100,7 @@
                           子目单价取费(正算):清单综合合价=∑子目综合合价
                         </label>
                       </div>
-                      <div class="form-check" style="display:none">
+                      <div class="form-check" style="display: none;">
                         <label class="form-check-label">
                           <input class="form-check-input" name="calcFlag" id="billsPrice" value="3" type="radio">
                           清单单价取费

+ 8 - 4
web/over_write/js/chongqing_2018_import.js

@@ -211,7 +211,7 @@ const importXML = (() => {
                 gljSummary: loadGljSummary(src),
                 differentiaSummary: loadDifferentiaSummary(src),//承包人材料差额法表
                 exponentialSummary: loadExponentialSummary(src),//承包人材料指数法表
-                evalBidSummary:   loadEvalBidSummary(src),    //评标材料表
+                evalBidSummary: loadEvalBidSummary(src),    //评标材料表
                 evalSummary: loadEvalSummary(src) // 暂估价材料表
             };
         });
@@ -741,6 +741,10 @@ const importXML = (() => {
             '电(机械用)': { type: 305, shortName: '动' },
             '机上人工': { type: 303, shortName: '机人' },
         };
+        // 特殊处理机上人工(鹏业有的机上人工输出的feeType是1)
+        if (/机上人工/.test(name)) {
+            return { type: 303, shortName: '机人' };
+        }
         // 人、机不需要匹配配比类别
         if (feeType === '1') {
             return { type: 1, shortName: '人' };
@@ -785,7 +789,7 @@ const importXML = (() => {
             const orgCode = match ? match[0] : sourceCode;
             let gljData = {
                 customCode: code,   //处理自定义的代码 (有的公司定额人材机代码、人材机代码是用自动生成的代码)
-                code: sourceCode,
+                code: code.includes(sourceCode) ? code : sourceCode, // 如果自定义代码里包含了原始编码,则编码取自定义编码
                 original_code: orgCode,
                 name: getValue(gljSrc, ['_名称']),
                 specs: getValue(gljSrc, ['_规格']),
@@ -1449,12 +1453,12 @@ const importXML = (() => {
             handleContractorList();
             // 处理评标材料
             handleGLJRelatedList(tenderData.evalBidSummary, rst.bidEvaluationList, 'is_eval_material');
-            // 处理暂估价材料
-            handleGLJRelatedList(tenderData.evalSummary, rst.evaluationList, 'is_evaluate');
             //处理定额数据
             //获取含有定额数据的清单
             handleRation(billsData);
         }
+        // 处理暂估价材料:变更 :导入招标
+        handleGLJRelatedList(tenderData.evalSummary, rst.evaluationList, 'is_evaluate');
         // 处理与项目人材机关联的承包人材料
         function handleContractorList() {
             const contractorType = getAdjustType(tenderData);

+ 2 - 1
web/users/html/index.html

@@ -23,7 +23,8 @@
                <div class="collapse navbar-collapse" id="navbarLexar">
                <ul class="navbar-nav ml-auto">
                      <li class="nav-item active">
-                        <a class="btn btn-danger my-3" href="/login">登录软件</a>
+                        <a class="btn btn-danger my-3" href="https://zhyun.smartcost.com.cn/login">登录广东版本</a>
+                        <a class="btn btn-danger my-3" href="/login">登录其他省份版本</a>
                      </li>
                   </ul>
                </div>