|
|
@@ -3068,7 +3068,7 @@ define(['toaster', 'charts', 'ngTable', 'common/services', 'common/directives',
|
|
|
|
|
|
$scope.onReplyClick = function (item, inverse) {
|
|
|
if (item.reply) {
|
|
|
- if (!item.reply.qty || item.reply.qty < 0 || item.reply.qty > item.qty) {
|
|
|
+ if (!item.reply.qty || item.reply.qty < 0 /*|| item.reply.qty > item.qty*/) {
|
|
|
toaster.pop('warning', '提示', '请填写有效的回复数量!');
|
|
|
return;
|
|
|
}
|
|
|
@@ -3207,6 +3207,10 @@ define(['toaster', 'charts', 'ngTable', 'common/services', 'common/directives',
|
|
|
var sum = 0;
|
|
|
angular.forEach($scope.order.orderItems, function (item) {
|
|
|
sum += item.qty * item.price;
|
|
|
+ //获取最新回复数
|
|
|
+ PurcOrderItem.getLatestReplyQty({orderItemId: item.id}, null, function (map) {
|
|
|
+ item.latestReplyQty = map.latestReplyQty;
|
|
|
+ });
|
|
|
});
|
|
|
$scope.order.total = sum;
|
|
|
if ($scope.order.display == 1) {//未查看的设为已查看
|