...
|
...
|
@@ -251,12 +251,13 @@ |
|
|
var scopeJson = {};
|
|
|
var productScopeType = $("#promotionEditForm #productScopeType").combobox("getValue");
|
|
|
var scopeValue = $("#promotionEditForm #limitValues").val();
|
|
|
if(productScopeType == 2 && scopeValue == "" ){
|
|
|
$.messager.alert("提示", "请输入商品池id!", "error");
|
|
|
var limitType =$("#promotionEditForm #limitType").combobox("getValue");
|
|
|
if(productScopeType == 2 && (scopeValue == "" || limitType == "")){
|
|
|
$.messager.alert("提示", "请输入商品池限制条件", "error");
|
|
|
return false;
|
|
|
}
|
|
|
scopeJson["productScopeType"] = productScopeType;
|
|
|
scopeJson["limitType"] = $("#promotionEditForm #limitType").combobox("getValue");
|
|
|
scopeJson["limitType"] = limitType;
|
|
|
scopeJson["scopeValue"] = scopeValue;
|
|
|
productScope = JSON.stringify(scopeJson);
|
|
|
|
...
|
...
|
|