Authored by 匡佳华

促销活动update

... ... @@ -52,7 +52,7 @@
<input class="easyui-combobox" id="productScopeType" name="productScopeType" data-options="required:true" style="width: 200px;"/>
</td>
<td id="limitTypeTr" hidden>
<input class="easyui-combobox" id="limitType" name="limitType" style="width: 200px;" data-options="required:true" />
<input class="easyui-combobox" id="limitType" name="limitType" style="width: 200px;" />
</td>
<td id="limitValuesTr" hidden>
<input class="easyui-numberbox" id="limitValues" name="limitValues" style="width: 280px;" />
... ...
... ... @@ -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);
... ...