|
@@ -259,24 +259,29 @@
|
|
|
<hr>
|
|
|
<div class="form-group">
|
|
|
<label class="col-sm-2 control-label">预算限制</label>
|
|
|
- <div class="col-sm-3">
|
|
|
+ <div class="col-sm-2">
|
|
|
<input class="form-control" type="text" id="s_budget_min"
|
|
|
placeholder="单位:元/大于" onkeyup="limitNum(this)">
|
|
|
</div>
|
|
|
- <label class="col-sm-2" style="text-align: center">___ ___</label>
|
|
|
- <div class="col-sm-3">
|
|
|
+ <label class="col-sm-1" style="text-align: center">___ ___</label>
|
|
|
+ <div class="col-sm-2">
|
|
|
<input class="form-control" type="text" id="s_budget_max"
|
|
|
placeholder="单位:元/小于" onkeyup="limitNum(this)">
|
|
|
</div>
|
|
|
+ <label class="col-sm-2 control-label">预算不存在</label>
|
|
|
+ <div class="col-sm-1">
|
|
|
+ <input style="margin-top: 10px;" type="checkbox" id="budgetExist">
|
|
|
+ </div>
|
|
|
+
|
|
|
</div>
|
|
|
<div class="form-group">
|
|
|
<label class="col-sm-2 control-label">中标金额限制</label>
|
|
|
- <div class="col-sm-3" id="bidamountDiv">
|
|
|
+ <div class="col-sm-2" id="bidamountDiv">
|
|
|
<input class="form-control" type="text" id="s_bidamount_min"
|
|
|
placeholder="单位:元/大于" onkeyup="limitNum(this)">
|
|
|
</div>
|
|
|
- <label class="col-sm-2" style="text-align: center">___ ___</label>
|
|
|
- <div class="col-sm-3">
|
|
|
+ <label class="col-sm-1" style="text-align: center">___ ___</label>
|
|
|
+ <div class="col-sm-2">
|
|
|
<input class="form-control" type="text" id="s_bidamount_max"
|
|
|
placeholder="单位:元/小于" onkeyup="limitNum(this)">
|
|
|
</div>
|
|
@@ -428,6 +433,7 @@
|
|
|
var buyerClass = {{.T.buyerClass}};
|
|
|
var buyerClassMap = {{.T.buyerClassMap}};
|
|
|
var scopeClass = {{.T.scopeClass}};
|
|
|
+ var budgetfieldexist = {{.T.i_budgetfieldexist}}
|
|
|
|
|
|
var matchCode = []; //匹配方式code
|
|
|
var matchName = []; //匹配名字
|
|
@@ -571,6 +577,9 @@
|
|
|
$("#infoType").selectpicker("refresh");
|
|
|
$("#existFieldSelect").selectpicker("refresh");
|
|
|
|
|
|
+ if (dataMap.i_budgetfieldexist === 1) {
|
|
|
+ $("#budgetExist").attr("checked", true)
|
|
|
+ }
|
|
|
//匹配方式
|
|
|
var btnMatchHtml1 = "";
|
|
|
var btnMatchHtml2 = "";
|
|
@@ -883,38 +892,25 @@
|
|
|
matchName.length = 0;
|
|
|
if (val == 0) {
|
|
|
s_matchkey_str = dataMap["s_globaladdkeymatch"]
|
|
|
-
|
|
|
} else if (val == 1) {
|
|
|
s_matchkey_str = dataMap["s_globalnotkeymatch"]
|
|
|
-
|
|
|
} else if (val == 13) {
|
|
|
s_matchkey_str = dataMap["s_globalclearkeymatch"]
|
|
|
-
|
|
|
}
|
|
|
-
|
|
|
if (s_matchkey_str) {
|
|
|
-
|
|
|
s_matchkey_list = s_matchkey_str.split(",")
|
|
|
-
|
|
|
for (index_ in s_matchkey_list) {
|
|
|
-
|
|
|
//定位button 添加属性
|
|
|
$("#btnGroupMatch").find("input").each(function () {
|
|
|
-
|
|
|
-
|
|
|
if ($(this).attr("code") == s_matchkey_list[index_]) {
|
|
|
if (matchCode.indexOf(s_matchkey_list[index_]) == -1) {
|
|
|
$(this).addClass("active-btn-match");
|
|
|
-
|
|
|
matchCode.push($(this).attr("code"));
|
|
|
matchName.push($(this).val())
|
|
|
}
|
|
|
}
|
|
|
-
|
|
|
});
|
|
|
$("#btnGroupMatch2").find("input").each(function () {
|
|
|
-
|
|
|
-
|
|
|
if ($(this).attr("code") == s_matchkey_list[index_]) {
|
|
|
if (matchCode.indexOf(s_matchkey_list[index_]) == -1) {
|
|
|
$(this).addClass("active-btn-match");
|
|
@@ -923,11 +919,8 @@
|
|
|
matchName.push($(this).val())
|
|
|
}
|
|
|
}
|
|
|
-
|
|
|
});
|
|
|
-
|
|
|
}
|
|
|
-
|
|
|
}
|
|
|
$('#modal-select-match').modal("show");
|
|
|
} else {
|
|
@@ -939,114 +932,79 @@
|
|
|
if (s_matchkey_str) {
|
|
|
s_matchkey_list = s_matchkey_str.split(",")
|
|
|
for (index_ in s_matchkey_list) {
|
|
|
-
|
|
|
//定位button 添加属性
|
|
|
$("#btnGroupMatch").find("input").each(function () {
|
|
|
if ($(this).attr("code") == s_matchkey_list[index_]) {
|
|
|
if (matchCode.indexOf(s_matchkey_list[index_]) == -1) {
|
|
|
$(this).addClass("active-btn-match");
|
|
|
-
|
|
|
matchCode.push($(this).attr("code"));
|
|
|
matchName.push($(this).val())
|
|
|
}
|
|
|
}
|
|
|
-
|
|
|
});
|
|
|
|
|
|
$("#btnGroupMatch2").find("input").each(function () {
|
|
|
if ($(this).attr("code") == s_matchkey_list[index_]) {
|
|
|
if (matchCode.indexOf(s_matchkey_list[index_]) == -1) {
|
|
|
$(this).addClass("active-btn-match");
|
|
|
-
|
|
|
matchCode.push($(this).attr("code"));
|
|
|
matchName.push($(this).val())
|
|
|
}
|
|
|
}
|
|
|
-
|
|
|
});
|
|
|
-
|
|
|
-
|
|
|
}
|
|
|
-
|
|
|
}
|
|
|
-
|
|
|
-
|
|
|
} else if (val == 6) {
|
|
|
s_matchkey_str = o_rules[selectIndex[0] - 1]["s_addkeymatch"]
|
|
|
if (s_matchkey_str) {
|
|
|
-
|
|
|
s_matchkey_list = s_matchkey_str.split(",")
|
|
|
-
|
|
|
for (index_ in s_matchkey_list) {
|
|
|
-
|
|
|
//定位button 添加属性
|
|
|
$("#btnGroupMatch").find("input").each(function () {
|
|
|
-
|
|
|
-
|
|
|
if ($(this).attr("code") == s_matchkey_list[index_]) {
|
|
|
if (matchCode.indexOf(s_matchkey_list[index_]) == -1) {
|
|
|
$(this).addClass("active-btn-match");
|
|
|
-
|
|
|
matchCode.push($(this).attr("code"));
|
|
|
matchName.push($(this).val())
|
|
|
}
|
|
|
}
|
|
|
-
|
|
|
});
|
|
|
$("#btnGroupMatch2").find("input").each(function () {
|
|
|
-
|
|
|
-
|
|
|
if ($(this).attr("code") == s_matchkey_list[index_]) {
|
|
|
if (matchCode.indexOf(s_matchkey_list[index_]) == -1) {
|
|
|
$(this).addClass("active-btn-match");
|
|
|
-
|
|
|
matchCode.push($(this).attr("code"));
|
|
|
matchName.push($(this).val())
|
|
|
}
|
|
|
}
|
|
|
-
|
|
|
});
|
|
|
-
|
|
|
}
|
|
|
-
|
|
|
}
|
|
|
-
|
|
|
-
|
|
|
} else if (val == 8) {
|
|
|
s_matchkey_str = o_rules[selectIndex[0] - 1]["s_notkeymatch"]
|
|
|
if (s_matchkey_str) {
|
|
|
-
|
|
|
s_matchkey_list = s_matchkey_str.split(",")
|
|
|
-
|
|
|
for (index_ in s_matchkey_list) {
|
|
|
//定位button 添加属性
|
|
|
$("#btnGroupMatch").find("input").each(function () {
|
|
|
-
|
|
|
-
|
|
|
if ($(this).attr("code") == s_matchkey_list[index_]) {
|
|
|
if (matchCode.indexOf(s_matchkey_list[index_]) == -1) {
|
|
|
$(this).addClass("active-btn-match");
|
|
|
-
|
|
|
matchCode.push($(this).attr("code"));
|
|
|
matchName.push($(this).val())
|
|
|
}
|
|
|
}
|
|
|
-
|
|
|
});
|
|
|
$("#btnGroupMatch2").find("input").each(function () {
|
|
|
if ($(this).attr("code") == s_matchkey_list[index_]) {
|
|
|
if (matchCode.indexOf(s_matchkey_list[index_]) == -1) {
|
|
|
$(this).addClass("active-btn-match");
|
|
|
-
|
|
|
matchCode.push($(this).attr("code"));
|
|
|
matchName.push($(this).val())
|
|
|
}
|
|
|
}
|
|
|
-
|
|
|
});
|
|
|
-
|
|
|
}
|
|
|
-
|
|
|
}
|
|
|
}
|
|
|
$('#modal-select-match').modal("show");
|
|
@@ -1625,6 +1583,16 @@
|
|
|
budget = budget + ",小于" + $('#s_budget_max').val()
|
|
|
}
|
|
|
}
|
|
|
+
|
|
|
+ if (budget !== "") {
|
|
|
+ if ($('#budgetExist').prop('checked')) {
|
|
|
+ dataMap["i_budgetfieldexist"] = 1
|
|
|
+ } else {
|
|
|
+ dataMap["i_budgetfieldexist"] = 0
|
|
|
+ }
|
|
|
+ } else {
|
|
|
+ dataMap["i_budgetfieldexist"] = 0
|
|
|
+ }
|
|
|
dataMap["s_budgetlimit"] = budget;
|
|
|
var bidamount = "";
|
|
|
if ($('#s_bidamount_min').val() != "") {
|