...
|
...
|
@@ -121,9 +121,6 @@ var g = new common.grid({ |
|
|
display: '银卡',
|
|
|
name: 'vip1_price'
|
|
|
}, {
|
|
|
display: '返币金额',
|
|
|
name: 'return_coin'
|
|
|
}, {
|
|
|
display: '操作信息',
|
|
|
name: 'operateInfo',
|
|
|
render: function(item) {
|
...
|
...
|
@@ -232,7 +229,6 @@ $('#basicTable').on('click', '.modify-btn', function() { |
|
|
product_skn: skn,
|
|
|
sales_price: $price.val(),
|
|
|
vip_discount_type: $select.val(),
|
|
|
return_coin: $wrap.find('.return-coin').val(),
|
|
|
vip_price: $vipPrice.val(),
|
|
|
vip1_price: $vip1Price.val(),
|
|
|
vip2_price: $vip2Price.val(),
|
...
|
...
|
@@ -313,13 +309,9 @@ common.edit.ajaxfileupload("#upload-input", { |
|
|
} else {
|
|
|
common.util.__tip(response.message, 'warning');
|
|
|
}
|
|
|
|
|
|
|
|
|
}
|
|
|
});
|
|
|
|
|
|
|
|
|
|
|
|
var isFirst = false,
|
|
|
tableHtml = '';
|
|
|
var p = new common.grid({
|
...
|
...
|
@@ -406,11 +398,6 @@ var p = new common.grid({ |
|
|
return newPriceHtml + '<p style="color: #ccc;">' + item.oldProductPriceBo.vip2_price + '</p>';
|
|
|
}
|
|
|
}, {
|
|
|
display: '返币金额',
|
|
|
render: function(item) {
|
|
|
return item.newProductPriceBo.return_coin + '<p style="color: #ccc;">' + item.oldProductPriceBo.return_coin + '</p>';
|
|
|
}
|
|
|
}, {
|
|
|
display: '操作',
|
|
|
render: function(item) {
|
|
|
return '<a class="btn btn-info delete-btn" data-index="' + item.__index + '" href="javascript:;">删除</a>';
|
...
|
...
|
@@ -425,17 +412,13 @@ $('#delete-all').on('click', function() { |
|
|
successList.length = 0;
|
|
|
})
|
|
|
|
|
|
|
|
|
//批量变价列表单个删除
|
|
|
$('#priceTable').on('click', '.delete-btn', function() {
|
|
|
//var index = p.rows[$(this).data('index')];
|
|
|
successList.splice($(this).data('index'), 1);
|
|
|
p.reload();
|
|
|
// console.log(p.rows);
|
|
|
|
|
|
});
|
|
|
|
|
|
|
|
|
//确定变价
|
|
|
var path = ''; //确定变价后返回的excel名
|
|
|
$('#sure-change').on('click', function() {
|
...
|
...
|
@@ -451,14 +434,6 @@ $('#sure-change').on('click', function() { |
|
|
arr.push(value.newProductPriceBo);
|
|
|
});
|
|
|
|
|
|
// var count=Math.ceil(arr.length/200);
|
|
|
// for(var i=0;i<count;i++){
|
|
|
// item=arr.slice(i*200,(i+1)*200);
|
|
|
// }
|
|
|
// while(item=arr.slice(2,4)){
|
|
|
|
|
|
// }
|
|
|
|
|
|
data = JSON.stringify(arr);
|
|
|
console.log(data);
|
|
|
common.util.__ajax({
|
...
|
...
|
@@ -472,7 +447,6 @@ $('#sure-change').on('click', function() { |
|
|
path = res.data;
|
|
|
successList.length = 0;
|
|
|
});
|
|
|
|
|
|
});
|
|
|
|
|
|
$('#download-btn').on('click', function() {
|
...
|
...
|
|