Răsfoiți Sursa

fix:招标搜索信息类型二级分类全选只传一级分类文案

tsz 3 ani în urmă
părinte
comite
2a1c728a05
1 a modificat fișierele cu 19 adăugiri și 1 ștergeri
  1. 19 1
      src/web/staticres/js/superSearch.js

+ 19 - 1
src/web/staticres/js/superSearch.js

@@ -847,7 +847,25 @@ function beforeSubmit(n){
 				}
 				selectSubTypes += thisText;
 			}
-
+		});
+    // 信息类型二级分类全选只传一级分类文案
+    $(".info-content .parent-node").each(function(){
+			if($(this).attr("id") == "whole"||$(this).attr("id") == "infoBtn"){
+				return true;
+			}
+			var thisHaveClass = $(this).hasClass("active");
+      let thisText = $(this).text()
+			if (thisHaveClass){
+        if(thisText == '招标预告') {
+          selectSubTypes = selectSubTypes.replace(/预告,预审,预审结果,论证意见,需求公示/, "招标预告")
+        } else if(thisText == '招标公告') {
+          selectSubTypes = selectSubTypes.replace(/招标,邀标,询价,竞谈,单一,竞价,变更/, "招标公告")
+        } else if(thisText == '招标结果') {
+          selectSubTypes = selectSubTypes.replace(/中标,成交,废标,流标/, "招标结果")
+        } else if(thisText == '招标信用信息') {
+          selectSubTypes = selectSubTypes.replace(/合同,验收,违规/, "招标信用信息")
+        }
+			}
 		});
 		$("#zbSeatchT [name='subtype']").val(selectSubTypes);
 		//行业