...
|
...
|
@@ -239,11 +239,11 @@ g.__e.on("callback", function(obj) { |
|
|
$(document).on("click",".sortadd",function(){
|
|
|
var text=$(this).text();
|
|
|
if(!Bll.validateSort()){
|
|
|
common.util.__tip("请选择完整的分类目录");
|
|
|
common.util.__tip("请选择完整的分类目录","warning");
|
|
|
return;
|
|
|
}
|
|
|
if ($.trim($("#salesPriceStr").val())=="") {
|
|
|
common.util.__tip("请填写销售价");
|
|
|
common.util.__tip("请填写销售价","warning");
|
|
|
return;
|
|
|
}
|
|
|
if(g.__e.validate()){
|
...
|
...
|
@@ -298,9 +298,11 @@ $(document).on("change",".salesPriceStr",function(){ |
|
|
ENUM.goodsSizeList.salePrice=$.trim($(this).val());
|
|
|
});
|
|
|
$(document).on("click",".sortdelete",function(){
|
|
|
var index=$(this).data("index");
|
|
|
[].splice.call(g.__rows,index,1);
|
|
|
g.reload();
|
|
|
common.dialog.confirm("温馨提示","你确定删除吗?",function(){
|
|
|
var index=$(this).data("index");
|
|
|
[].splice.call(g.__rows,index,1);
|
|
|
g.reload();
|
|
|
});
|
|
|
// g.__e.init();
|
|
|
});
|
|
|
$(document).on("change",".factoryCode",function(){
|
...
|
...
|
@@ -425,8 +427,8 @@ e.on("validate",function(){ |
|
|
if(_count>0){
|
|
|
return "同一颜色包含两组相同尺码";
|
|
|
}
|
|
|
if(_count1>0&&common.util.__input("supplierId")){
|
|
|
return "JIT商品条码不能重复";
|
|
|
if(_count1>0){
|
|
|
return "商品条码不能重复";
|
|
|
}
|
|
|
});
|
|
|
e.on("validate",function(){
|
...
|
...
|
@@ -443,9 +445,6 @@ e.on("validate",function(){ |
|
|
|
|
|
|
|
|
$(document).on("click","#btnReview",function(){
|
|
|
console.log(ag.rows);
|
|
|
|
|
|
|
|
|
if(e.validate()){
|
|
|
common.dialog.confirm("温馨提示","<p>你确定提交吗?</p>",function(){
|
|
|
e.submit($("#basicForm").attr("action"),function(option){
|
...
|
...
|
|