Przeglądaj źródła

feat: 安徽池州导出电子标调整

Tony Kang 6 miesięcy temu
rodzic
commit
07045eec69

BIN
public/static/AH_CZ_Prj_Encrypt.zip


+ 8 - 2
web/building_saas/main/html/main.html

@@ -2006,11 +2006,11 @@
                         <label class="mb-0 pr-0 col-2 col-form-label col-form-label-sm">地区选择</label>
                         <div class="col-6 row">
                             <div class="col-6 pr-0">
-                                <select class="form-control  form-control-sm" id="export-parent-area" onchange="bidAreaSelectChange(this)">
+                                <select class="form-control  form-control-sm" id="export-parent-area">
                                 </select>
                             </div>
                             <div class="col-6 pr-0">
-                                <select class="form-control  form-control-sm" id="export-sub-area">
+                                <select class="form-control  form-control-sm" id="export-sub-area"  onchange="bidAreaSelectChange(this)">
                                 </select>
                             </div>
                         </div>
@@ -2027,6 +2027,12 @@
                             <input type="text" id="certifyInputForXJ" class="form-control form-control-sm" placeholder="输入验证码">
                         </div>
                     </div>
+                    <div class="form-group" id="certifyDivForAH_CZ" style="display:none">
+                        <a href="javascript:void(0);"  onclick="window.location = '/public/static/AH_CZ_Prj_Encrypt.zip';">点击下载验证码生成器</a>,解压后双击AH_CZ_Prj_Encrypt.exe,依据提示输入相关信息,点击生成验证码,复制验证码粘到下面窗口即可导出接口文件。
+                        <div class="input-group" >
+                            <input type="text" id="certifyInputForAH_CZ" class="form-control form-control-sm" placeholder="输入验证码">
+                        </div>
+                    </div>
                     <!--招标-->
                     <% if (boqType == 1) { %>
                     <div class="form-group" id="lblTtlDiv">

+ 6 - 0
web/building_saas/main/js/views/project_view.js

@@ -2509,9 +2509,15 @@ $("#open-export-modal").click(() => {
   if (COMPILATION_NAME === '广西养护(2020)') {
     $('#certifyDivForGX')[0].style.display = "";
     $('#certifyDivForXJ')[0].style.display = "none";
+    $('#certifyDivForAH_CZ')[0].style.display = "none";
+  } else if (COMPILATION_NAME === '安徽养护(2018)') {
+    $('#certifyDivForGX')[0].style.display = "none";
+    $('#certifyDivForXJ')[0].style.display = "none";
+    $('#certifyDivForAH_CZ')[0].style.display = "none";
   } else {
     $('#certifyDivForGX')[0].style.display = "none";
     $('#certifyDivForXJ')[0].style.display = "none";
+    $('#certifyDivForAH_CZ')[0].style.display = "none";
   }
   CommonHeader.doAfterValidateVersion(
     () => $("#interface-export-modal").modal("show"),

+ 3 - 1
web/building_saas/standard_interface/export/anhui_chizhou.js

@@ -223,7 +223,9 @@ INTERFACE_EXPORT = (() => {
                 { name: '造价软件品牌', value: '纵横公路云造价' },
                 { name: '造价软件版本', value: "Ver" + VERSION },
                 { name: '造价软件加密锁编号', value: userID },
-                { name: '计算机硬件信息', value: cpuId + diskId + macId }
+                { name: '计算机硬件信息', value: cpuId + diskId + macId },
+                { name: '软件公司识别码', value: $('#certifyInputForAH_CZ')[0].value },
+                // 
             ];
             Element.call(this, '投标信息', attrs);
         }

+ 22 - 0
web/building_saas/standard_interface/export/view.js

@@ -54,6 +54,11 @@ const EXPORT_VIEW = (() => {
         }
         const parentArea = $('#export-parent-area').val();
         const subArea = $('#export-sub-area').val();
+        if (subArea === '池州') {
+          if ($('#certifyInputForAH_CZ')[0].value === null || $('#certifyInputForAH_CZ')[0].value.trim() === '') {
+            throw '请输入验证码。';
+          }
+        }
         if (!parentArea || !subArea) {
           throw '请选择有效地区。';
         }
@@ -116,9 +121,11 @@ $(document).ready(() => {
 })
 
 function bidAreaSelectChange(dom) {
+  // const subArea = $('#export-sub-area').val();
   if (dom.options[dom.selectedIndex].text === '广西') {
     $('#certifyDivForGX')[0].style.display = "";
     $('#certifyDivForXJ')[0].style.display = "none";
+    $('#certifyDivForAH_CZ')[0].style.display = "none";
     $('#certifyInputForGX')[0].value = '';
     let gxDom1 = $('#lblTtlDiv');
     if (gxDom1 && gxDom1.length > 0) {
@@ -128,10 +135,25 @@ function bidAreaSelectChange(dom) {
     if (gxDom2 && gxDom2.length > 0) {
       gxDom2[0].style.display = "none";
     }
+  } else if (dom.options[dom.selectedIndex].text === '池州') {
+    $('#certifyDivForXJ')[0].style.display = "none";
+    $('#certifyDivForGX')[0].style.display = "none";
+    $('#certifyDivForAH_CZ')[0].style.display = "";
+    $('#certifyInputForAH_CZ')[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 if (dom.options[dom.selectedIndex].text === '新疆') {
     //certifyDivForXJ
     $('#certifyDivForXJ')[0].style.display = "";
     $('#certifyDivForGX')[0].style.display = "none";
+    $('#certifyDivForAH_CZ')[0].style.display = "none";
     $('#certifyInputForXJ')[0].value = '';
     let gxDom1 = $('#lblTtlDiv');
     if (gxDom1 && gxDom1.length > 0) {