...
|
...
|
@@ -382,31 +382,8 @@ $('#export-btn').on('click', function() { |
|
|
window.open("/ajax/down?queryConf=" + JSON.stringify(data) + "&type=netSale");
|
|
|
});
|
|
|
|
|
|
//单个sku,skc上下架
|
|
|
$('#basicTable').on('click', '.shelve-btn', function() {
|
|
|
var that = this,
|
|
|
skn = $(this).data('skn'),
|
|
|
shelveModalHtml = '',
|
|
|
shelveLayer = null;
|
|
|
|
|
|
$(that).addClass('disabled');
|
|
|
|
|
|
common.util.__ajax({
|
|
|
url: '/goods/netsale/getdata',
|
|
|
data: {
|
|
|
param: skn
|
|
|
}
|
|
|
}, function(res) {
|
|
|
shelveModalHtml = common.util.__template($('#template').html(), res.data.baseProductInfo.baseProduct);
|
|
|
shelveLayer = common.dialog.open({
|
|
|
title: '上/下架',
|
|
|
width: 900,
|
|
|
content: shelveModalHtml
|
|
|
});
|
|
|
|
|
|
$(that).removeClass('disabled');
|
|
|
|
|
|
var shelveTable = new common.grid({
|
|
|
//sku skc上架表格
|
|
|
var shelveTable = new common.grid({
|
|
|
el: "#shelve-table",
|
|
|
secondIndex: 2,
|
|
|
columns: [{
|
...
|
...
|
@@ -453,7 +430,32 @@ $('#basicTable').on('click', '.shelve-btn', function() { |
|
|
}
|
|
|
}
|
|
|
}]
|
|
|
});
|
|
|
|
|
|
//单个sku,skc上下架
|
|
|
$('#basicTable').on('click', '.shelve-btn', function() {
|
|
|
var that = this,
|
|
|
skn = $(this).data('skn'),
|
|
|
shelveModalHtml = '',
|
|
|
shelveLayer = null;
|
|
|
|
|
|
$(that).addClass('disabled');
|
|
|
|
|
|
common.util.__ajax({
|
|
|
url: '/goods/netsale/getdata',
|
|
|
data: {
|
|
|
param: skn
|
|
|
}
|
|
|
}, function(res) {
|
|
|
shelveModalHtml = common.util.__template($('#template').html(), res.data.baseProductInfo.baseProduct);
|
|
|
shelveLayer = common.dialog.open({
|
|
|
title: '上/下架',
|
|
|
width: 900,
|
|
|
content: shelveModalHtml
|
|
|
});
|
|
|
|
|
|
$(that).removeClass('disabled');
|
|
|
|
|
|
shelveTable.init(res.data.goodsList, 'goodsSizeList');
|
|
|
|
|
|
$('#shelve-table').on('click', '.btn', function() {
|
...
|
...
|
|