|
|
@@ -14610,20 +14610,24 @@ define(['toaster', 'charts', 'ngTable', 'common/services', 'common/directives',
|
|
|
// 选择
|
|
|
$scope.check = function (data) {
|
|
|
var price = null;
|
|
|
+ var qty = null;
|
|
|
+ var taxRate = null;
|
|
|
if (data.id) {
|
|
|
recentPrice.agreed({prId: data.id}, {}, function(response) {
|
|
|
price = response.price;
|
|
|
+ qty = response.qty;
|
|
|
+ taxRate = response.taxRate;
|
|
|
$scope.order.orderItems.push({
|
|
|
code: data.code,
|
|
|
title: data.title,
|
|
|
spec: data.spec,
|
|
|
unit: data.unit,
|
|
|
- qty: null,
|
|
|
+ qty: qty,
|
|
|
price: price,
|
|
|
remark: null,
|
|
|
delivery: null,
|
|
|
prid: data.id,
|
|
|
- taxrate: $scope.order.rate,
|
|
|
+ taxrate: taxRate,
|
|
|
prodsource: 'seller',
|
|
|
});
|
|
|
});
|
|
|
@@ -16263,20 +16267,24 @@ define(['toaster', 'charts', 'ngTable', 'common/services', 'common/directives',
|
|
|
// 选择
|
|
|
$scope.check = function (data) {
|
|
|
var price = null;
|
|
|
+ var qty = null;
|
|
|
+ var taxRate = null;
|
|
|
if (data.id) {
|
|
|
recentPrice.agreed({prId: data.id}, {}, function(response) {
|
|
|
price = response.price;
|
|
|
+ qty = response.qty;
|
|
|
+ taxRate = response.taxRate;
|
|
|
$scope.order.orderItems.push({
|
|
|
code: data.code,
|
|
|
title: data.title,
|
|
|
spec: data.spec,
|
|
|
unit: data.unit,
|
|
|
- qty: null,
|
|
|
+ qty: qty,
|
|
|
price: price,
|
|
|
remark: null,
|
|
|
delivery: null,
|
|
|
prid: data.id,
|
|
|
- taxrate: $scope.order.rate,
|
|
|
+ taxrate: taxRate,
|
|
|
prodsource: 'seller',
|
|
|
});
|
|
|
});
|