...
|
...
|
@@ -41,7 +41,9 @@ var Bll={ |
|
|
},
|
|
|
productNameArr:['','',''],
|
|
|
setProductName:function(){
|
|
|
$("#productName").val(Bll.productNameArr.join("-"));
|
|
|
if(!param){
|
|
|
$("#productName").val(Bll.productNameArr.join(""));
|
|
|
}
|
|
|
}
|
|
|
}
|
|
|
|
...
|
...
|
@@ -286,21 +288,26 @@ e.on("validate",function(){ |
|
|
if((+$("#salesPriceStr").val())>(+$("#retailPriceStr").val())){
|
|
|
return "销售价应该限定小于等于吊牌价";
|
|
|
}
|
|
|
})
|
|
|
});
|
|
|
//
|
|
|
|
|
|
$(document).on("click","#btnReview",function(){
|
|
|
|
|
|
if(e.validate()){
|
|
|
common.dialog.confirm("温馨提示","<p>若是JIT商品,请务必选择供应商!</p><p>你确定提交吗?</p>",function(){
|
|
|
e.submit($("#basicForm").attr("action"),function(option){
|
|
|
var select=tabTree.getAddress();
|
|
|
|
|
|
option.data.supplierId=common.util.__input("supplierId")?$("#supplierId").val():"0";
|
|
|
option.data.shopId=common.util.__input("shopId")?$("#shopId").val():"0";
|
|
|
|
|
|
option.data.productSkn=param?param[2]:"";
|
|
|
option.data.maxSortId=select[0]?select[0].id:"";
|
|
|
option.data.middleSortId=select[1]?select[1].id:"";
|
|
|
option.data.smallSortId=select[2]?select[2].id:"";
|
|
|
|
|
|
option.data.shopId=$("#shopId").val();
|
|
|
// option.data.shopId=$("#shopId").val();
|
|
|
option.data.brandId=$("#brandId").val();
|
|
|
option.data.supplierId=$("#supplierId").val();
|
|
|
|
|
|
option.data.isAuditing=RESPONSEDATA.isAuditing?RESPONSEDATA.isAuditing:"";
|
|
|
|
...
|
...
|
@@ -324,5 +331,8 @@ $(document).on("click","#btnReview",function(){ |
|
|
e.$tip(res.message);
|
|
|
}
|
|
|
});
|
|
|
})
|
|
|
}
|
|
|
|
|
|
return false;
|
|
|
}); |
...
|
...
|
|