...
|
...
|
@@ -115,42 +115,32 @@ $(document).ready(function(){ |
|
|
});
|
|
|
|
|
|
function initInfo(basicInfo) {
|
|
|
$("#ageLevel").val(basicInfo.ageLevel);
|
|
|
$("#seasons").val(basicInfo.seasons);
|
|
|
$("#gender").val(basicInfo.gender);
|
|
|
$("#grade").val(basicInfo.grade);
|
|
|
$("#grade").val(basicInfo.grade||'0');
|
|
|
$("#isLimited").val(basicInfo.isLimited);
|
|
|
$("#isOutlets").val(basicInfo.isOutLets);
|
|
|
|
|
|
var ageLevel=basicInfo.ageLevel;
|
|
|
$(":checkbox[name=ageLevel]").each(function(){
|
|
|
if(ageLevel.indexOf($(this).val())>-1){
|
|
|
$(this).prop("checked",true)
|
|
|
}
|
|
|
});
|
|
|
|
|
|
$(":checkbox[name=seasons]").each(function(){
|
|
|
if(basicInfo.seasons.indexOf($(this).val())>-1){
|
|
|
$(this).prop("checked",true)
|
|
|
}
|
|
|
});
|
|
|
$(":radio[name=gender]").each(function(){
|
|
|
if(basicInfo.gender.indexOf($(this).val())>-1){
|
|
|
if(basicInfo.seasons!=null&&basicInfo.seasons!=undefined&&basicInfo.seasons!=''&&
|
|
|
basicInfo.seasons.indexOf($(this).val())>-1){
|
|
|
$(this).prop("checked",true)
|
|
|
}
|
|
|
});
|
|
|
$(":radio[name=grade]").each(function(){
|
|
|
if(basicInfo.grade.indexOf($(this).val())>-1){
|
|
|
if(basicInfo.grade!=null&&basicInfo.grade!=undefined&&basicInfo.grade!=''&&
|
|
|
basicInfo.grade.indexOf($(this).val())>-1){
|
|
|
$(this).prop("checked",true)
|
|
|
}
|
|
|
});
|
|
|
$(":radio[name=isLimited]").each(function(){
|
|
|
if(basicInfo.isLimited.indexOf($(this).val())>-1){
|
|
|
if(basicInfo.isLimited!=null&&basicInfo.isLimited!=undefined&&basicInfo.isLimited!=''&&
|
|
|
basicInfo.isLimited.indexOf($(this).val())>-1){
|
|
|
$(this).prop("checked",true)
|
|
|
}
|
|
|
});
|
|
|
$(":radio[name=isOutLets]").each(function(){
|
|
|
if(basicInfo.isOutLets.indexOf($(this).val())>-1){
|
|
|
if(basicInfo.isOutLets!=null&&basicInfo.isOutLets!=undefined&&basicInfo.isOutLets!=''&&
|
|
|
basicInfo.isOutLets.indexOf($(this).val())>-1){
|
|
|
$(this).prop("checked",true)
|
|
|
}
|
|
|
});
|
...
|
...
|
@@ -177,11 +167,6 @@ var suppledTable = new common.grid({ |
|
|
render: function(item) {
|
|
|
return item.factoryCode;
|
|
|
}
|
|
|
}, {
|
|
|
display: '能否补货',
|
|
|
render: function(item) {
|
|
|
return ENUM.isSuppled[item.isSuppled];
|
|
|
}
|
|
|
}]
|
|
|
});
|
|
|
suppledTable.init(NETSALEDATA.goodsList, 'goodsSizeList')
|
...
|
...
|
@@ -218,22 +203,6 @@ common.util.__ajax({ |
|
|
}, true);
|
|
|
$('#product-ext').html(common.util.__template2($('#productExtBoTemp').html(), productExtBo));
|
|
|
|
|
|
$(document).on("change", ":checkbox[name=ageLevel]", function () {
|
|
|
var value = $(this).val();
|
|
|
var c = $(":checkbox[name=ageLevel]");
|
|
|
if ($(this).is(":checked")) {
|
|
|
if (value == 1) {
|
|
|
c.slice(1, 5).prop("checked", false);
|
|
|
} else {
|
|
|
c.eq(0).prop("checked", false);
|
|
|
}
|
|
|
}
|
|
|
var arr = [];
|
|
|
$(":checked[name=ageLevel]").each(function () {
|
|
|
arr.push($(this).val())
|
|
|
});
|
|
|
$("#ageLevel").val(arr.join('|'));
|
|
|
});
|
|
|
|
|
|
$(document).on("change",":checkbox[name=seasons]",function(){
|
|
|
var value=$(this).val();
|
...
|
...
|
@@ -252,9 +221,6 @@ $(document).on("change",":checkbox[name=seasons]",function(){ |
|
|
$("#seasons").val(arr.join(','));
|
|
|
});
|
|
|
|
|
|
$(document).on("change",":radio[name=gender]",function(){
|
|
|
$("#gender").val($(this).val());
|
|
|
});
|
|
|
$(document).on("change",":radio[name=isOutLets]",function(){
|
|
|
$("#isOutlets").val($(this).val());
|
|
|
});
|
...
|
...
|
@@ -299,8 +265,6 @@ GOLABDATA.on("LYbasicInfo", function () { |
|
|
data.productSkn = $('#productSkn').val();
|
|
|
data.sellChannels = data.sellChannels.split('|').join(',');
|
|
|
data.shopIds = data.shopIds ? data.shopIds.split('|').join(',') : '';
|
|
|
data.ageLevel = common.util.__input('ageLevel');
|
|
|
data.gender = common.util.__input('gender');
|
|
|
data.grade = common.util.__input('grade')||'0';
|
|
|
data.isLimited = common.util.__input('isLimited')||'N';
|
|
|
data.isOutlets =$('#isOutlets').val()||'N';
|
...
|
...
|
|