Commit ccc681ed by 朱继来

调整

parent 16c9be2f
Showing with 4 additions and 4 deletions
......@@ -86,8 +86,8 @@
// 全退
$('.orderServiceForm').find('.select-all').click(function() {
$('.order-service-table').find('tbody tr').each(function() {
var goods_number = $(this).find('.origin-goods-number').html();
var service_goods_number = $(this).find('.service-goods-number').html();
var goods_number = parseInt($(this).find('.origin-goods-number').html());
var service_goods_number = parseInt($(this).find('.service-goods-number').html()) || 0;
var goods_price = $(this).find('.origin-goods-price').html();
var allow_num = (goods_number - service_goods_number) || '';
......@@ -110,7 +110,7 @@
var goods_price = parseFloat($(this).parents('tr').find('.origin-goods-price').html()); // 原订单单价
var goods_number = parseInt($(this).parents('tr').find('.origin-goods-number').html()); // 原订单数量
var service_goods_number = parseInt($(this).parents('tr').find('.service-goods-number').html()); // 已售后数量
var service_goods_number = parseInt($(this).parents('tr').find('.service-goods-number').html()) || 0; // 已售后数量
var origin_amount = goods_price * (goods_number - service_goods_number); // 商品可退金额
if (val > (goods_number - service_goods_number)) {
......@@ -171,7 +171,7 @@
var goods_price = parseFloat($(this).parents('tr').find('.origin-goods-price').html()); // 原订单单价
var goods_number = parseInt($(this).parents('tr').find('.origin-goods-number').html()); // 原订单数量
var service_goods_number = parseInt($(this).parents('tr').find('.service-goods-number').html()); // 已售后数量
var service_goods_number = parseInt($(this).parents('tr').find('.service-goods-number').html()) || 0; // 已售后数量
var origin_amount = goods_price * (goods_number - service_goods_number); // 商品可退金额
var adjust_number = $(this).parents('tr').find('.adjust_number').val();
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment