...
|
...
|
@@ -93,6 +93,7 @@ var g = new common.grid({ |
|
|
}},
|
|
|
{display: '吊牌价', name: 'retail_price'},
|
|
|
{display: '销售价', name: 'sales_price'},
|
|
|
{display: '学生价', name: 'student_price'},
|
|
|
{display: 'VIP折扣类型', render: function(item) {
|
|
|
return ENUM.vipType[item.vip_discount_type];
|
|
|
}},
|
...
|
...
|
@@ -165,6 +166,7 @@ $(document).on('click', '.modify-btn', function() { |
|
|
|
|
|
var $wrap = parentTr.next('.product-detail'),
|
|
|
$price = $wrap.find('.sale-price'),
|
|
|
$student_price = $wrap.find('.student-price'),
|
|
|
$select = $wrap.find('.discount-select'),
|
|
|
$vipPrice = $wrap.find('.vip-price'),
|
|
|
$vip3Price = $wrap.find('.vip3-price'),
|
...
|
...
|
@@ -185,6 +187,7 @@ $(document).on('click', '.modify-btn', function() { |
|
|
$price.on('blur', function() {
|
|
|
vipPrice($wrap);
|
|
|
});
|
|
|
|
|
|
$submitBtn.on('click', function() {
|
|
|
if($price.val() != 0){
|
|
|
common.util.__ajax({
|
...
|
...
|
@@ -192,6 +195,7 @@ $(document).on('click', '.modify-btn', function() { |
|
|
data: {
|
|
|
product_skn: skn,
|
|
|
sales_price: $price.val(),
|
|
|
student_price: $student_price.val(),
|
|
|
vip_discount_type: $select.val(),
|
|
|
vip_price: $vipPrice.val(),
|
|
|
vip1_price: $vip1Price.val(),
|
...
|
...
|
@@ -316,6 +320,28 @@ var p = new common.grid({ |
|
|
}
|
|
|
return newPriceHtml + '<div style="color: #999;">' + item.oldProductPriceBo.sales_price + '</div>';
|
|
|
}},
|
|
|
|
|
|
|
|
|
{display: '学生价', render: function(item) {
|
|
|
var newPrice = item.newProductPriceBo,
|
|
|
newPriceHtml = '';
|
|
|
if (newPrice.student_price) {
|
|
|
if (newPrice.student_price < (newPrice.retail_price / 2)) {
|
|
|
newPriceHtml = '<p style="color: red">' + newPrice.student_price + '</p>';
|
|
|
}else{
|
|
|
newPriceHtml = '<p>'+newPrice.student_price+'</p>';
|
|
|
}
|
|
|
} else {
|
|
|
newPriceHtml = '<p>-</p>'
|
|
|
}
|
|
|
if(item.oldProductPriceBo.student_price){
|
|
|
newPriceHtml += '<div style="color: #999;">' + item.oldProductPriceBo.student_price + '</div>';
|
|
|
}else{
|
|
|
newPriceHtml += '<div>-</div>';
|
|
|
}
|
|
|
return newPriceHtml;
|
|
|
}},
|
|
|
|
|
|
{display: 'VIP折扣类型', render: function(item) {
|
|
|
return '<p>'+ENUM.vipType[item.newProductPriceBo.vip_discount_type] + '</p>'+
|
|
|
'<div style="color: #999;">' + ENUM.vipType[item.oldProductPriceBo.vip_discount_type] + '</div>';
|
...
|
...
|
|