...
|
...
|
@@ -444,6 +444,24 @@ $(document).on("click", '.couponAvailableChannelStoreList', function () { |
|
|
}
|
|
|
});
|
|
|
|
|
|
|
|
|
/**
|
|
|
* 全选控制
|
|
|
*/
|
|
|
$(document).on("click", "#couponAvailableChannelsSelectAll", function () {
|
|
|
const data = $(document).find('.couponAvailableChannelStoreList,.couponAvailableChannels')
|
|
|
if ($(this).is(':checked')) {
|
|
|
for (var i = 0; i < data.length; i++) {
|
|
|
$(data[i]).prop("checked", true)
|
|
|
}
|
|
|
} else {
|
|
|
for (var i = 0; i < data.length; i++) {
|
|
|
$(data[i]).prop("checked", false)
|
|
|
}
|
|
|
}
|
|
|
});
|
|
|
|
|
|
|
|
|
/**
|
|
|
* 保存
|
|
|
*/
|
...
|
...
|
@@ -473,7 +491,10 @@ $(document).on("click", "#save_brand", function () { |
|
|
}
|
|
|
}
|
|
|
});
|
|
|
// console.log(JSON.stringify(jsonDataChannel))
|
|
|
if (jsonDataChannel.length === 0) {
|
|
|
common.util.__tip('渠道限制不能为空!', 'warning');
|
|
|
return false;
|
|
|
}
|
|
|
couponBean.channel = JSON.stringify(jsonDataChannel)
|
|
|
|
|
|
|
...
|
...
|
|