...
|
...
|
@@ -506,10 +506,10 @@ |
|
|
}
|
|
|
});
|
|
|
|
|
|
$(document).on('click', '.group-size input', function() {
|
|
|
$(document).on('click', '.group-size input', function(item) {
|
|
|
var colorName = goodsName = '';
|
|
|
|
|
|
if (that.productId) {
|
|
|
if (that.productId && $(item).attr('exist') == 'true') {
|
|
|
$.messager.alert('操作提示', '尺码不可修改!');
|
|
|
return false;
|
|
|
}
|
...
|
...
|
@@ -585,6 +585,12 @@ |
|
|
} else {
|
|
|
editImage = 1;
|
|
|
}
|
|
|
|
|
|
$('.group-size input:checked').each(function(index, item) {
|
|
|
if ($(item).attr('exist') != 'true') {
|
|
|
sizeIdList.push(+$(item).val());
|
|
|
}
|
|
|
});
|
|
|
} else {
|
|
|
editImage = 1;
|
|
|
$('.group-size input:checked').each(function(index, item) {
|
...
|
...
|
@@ -661,6 +667,7 @@ |
|
|
return false;
|
|
|
}
|
|
|
} else {
|
|
|
ajaxData.sizeIdList = sizeIdList;
|
|
|
ajaxData.id = that.detailData.id;
|
|
|
ajaxData.goodsId = that.detailData.goodsId;
|
|
|
}
|
...
|
...
|
@@ -764,7 +771,7 @@ |
|
|
}); */
|
|
|
for ( var i = 0; i <that.detailData.sizeIdList.length; i++){
|
|
|
item = that.detailData.sizeIdList[i];
|
|
|
$('.group-size label[data-id=' + item + '] input').attr('checked','true');
|
|
|
$('.group-size label[data-id=' + item + '] input').attr('checked','true').attr('exist','true');
|
|
|
that.colorSizeTableData.rows.push({
|
|
|
colorName: $('.group-color li[data-id='+that.detailData.colorId+']').text(),
|
|
|
goodsName: that.detailData.goodsName,
|
...
|
...
|
|