Kaynağa Gözat

新疆接口

Tony Kang 2 yıl önce
ebeveyn
işleme
d88bf55be8

+ 6 - 0
web/building_saas/main/html/main.html

@@ -2021,6 +2021,12 @@
                             <input type="text" id="certifyInputForGX" class="form-control form-control-sm" placeholder="输入验证码">
                         </div>
                     </div>
+                    <div class="form-group" id="certifyDivForXJ" style="display:none">
+                        <a href="javascript:void(0);"  onclick="window.location = '/public/static/XJ_Prj_Encrypt.zip';">点击下载验证码生成器</a>,解压后双击XJ_Prj_Encrypt.exe,依据提示输入相关信息,点击生成验证码,复制验证码粘到下面窗口即可导出接口文件。
+                        <div class="input-group" >
+                            <input type="text" id="certifyInputForXJ" class="form-control form-control-sm" placeholder="输入验证码">
+                        </div>
+                    </div>
                     <!--招标-->
                     <% if (boqType == 1) { %>
                     <div class="form-group" id="lblTtlDiv">

+ 5 - 3
web/building_saas/main/js/views/project_view.js

@@ -2506,10 +2506,12 @@ let displayLevel = function (nodes, depth, type) {
 
 // 数据接口
 $("#open-export-modal").click(() => {
-  if (COMPILATION_NAME !== '广西养护(2020)') {
-    $('#certifyDivForGX')[0].style.display = "none";
-  } else {
+  if (COMPILATION_NAME === '广西养护(2020)') {
     $('#certifyDivForGX')[0].style.display = "";
+    $('#certifyDivForXJ')[0].style.display = "none";
+  } else {
+    $('#certifyDivForGX')[0].style.display = "none";
+    $('#certifyDivForXJ')[0].style.display = "none";
   }
   CommonHeader.doAfterValidateVersion(
     () => $("#interface-export-modal").modal("show"),

+ 20 - 1
web/building_saas/standard_interface/export/view.js

@@ -43,6 +43,11 @@ const EXPORT_VIEW = (() => {
             throw '请输入验证码。';
           }
         }
+        if (dom.options[dom.selectedIndex].text === '新疆') {
+          if ($('#certifyInputForXJ')[0].value === null || $('#certifyInputForXJ')[0].value.trim() === '') {
+            throw '请输入验证码。';
+          }
+        }
         const checkedDatas = $('#interface-export-modal input[type="checkbox"]:checked');
         if (!checkedDatas.length) {
           throw '请勾选导出文件。';
@@ -113,6 +118,7 @@ $(document).ready(() => {
 function bidAreaSelectChange(dom) {
   if (dom.options[dom.selectedIndex].text === '广西') {
     $('#certifyDivForGX')[0].style.display = "";
+    $('#certifyDivForXJ')[0].style.display = "none";
     $('#certifyInputForGX')[0].value = '';
     let gxDom1 = $('#lblTtlDiv');
     if (gxDom1 && gxDom1.length > 0) {
@@ -122,8 +128,21 @@ function bidAreaSelectChange(dom) {
     if (gxDom2 && gxDom2.length > 0) {
       gxDom2[0].style.display = "none";
     }
+  } else if (dom.options[dom.selectedIndex].text === '新疆') {
+    //certifyDivForXJ
+    $('#certifyDivForXJ')[0].style.display = "";
+    $('#certifyDivForGX')[0].style.display = "none";
+    $('#certifyInputForXJ')[0].value = '';
+    let gxDom1 = $('#lblTtlDiv');
+    if (gxDom1 && gxDom1.length > 0) {
+      gxDom1[0].style.display = "none";
+    }
+    let gxDom2 = $('#bidCtlDiv');
+    if (gxDom2 && gxDom2.length > 0) {
+      gxDom2[0].style.display = "none";
+    }
   } else {
-    //
+    $('#certifyDivForXJ')[0].style.display = "none";
     $('#certifyDivForGX')[0].style.display = "none";
     let gxDom1 = $('#lblTtlDiv');
     if (gxDom1 && gxDom1.length > 0) {