|
|
@@ -12747,13 +12747,15 @@ define([ 'toaster', 'charts', 'ngTable', 'common/services', 'common/directives',
|
|
|
});
|
|
|
});
|
|
|
|
|
|
- // 更新代采企业时更新费率
|
|
|
- $scope.change = function(deputyuu) {
|
|
|
- // 费率
|
|
|
- DeputyOrder.vendorRate( {enuu: deputyuu}, {}, function(data) {
|
|
|
- $scope.rate = data;
|
|
|
- }, function(response){
|
|
|
-
|
|
|
+ // 更新名称时后台更改uu号
|
|
|
+ $scope.change = function(deputyname) {
|
|
|
+ DeputyOrder.deputyEnterprise({}, function(data) {
|
|
|
+ $scope.deputyEn = data;
|
|
|
+ angular.forEach($scope.deputyEn, function(en) {
|
|
|
+ if(deputyname == en.deputyname) {
|
|
|
+ $scope.deputyuu = en.deputyuu;
|
|
|
+ }
|
|
|
+ });
|
|
|
});
|
|
|
}
|
|
|
|
|
|
@@ -13222,12 +13224,14 @@ define([ 'toaster', 'charts', 'ngTable', 'common/services', 'common/directives',
|
|
|
});
|
|
|
|
|
|
// 更新代采企业时更新费率
|
|
|
- $scope.change = function(deputyuu) {
|
|
|
- // 费率
|
|
|
- DeputyOrder.vendorRate( {enuu: deputyuu}, {}, function(data) {
|
|
|
- $scope.rate = data;
|
|
|
- }, function(response){
|
|
|
-
|
|
|
+ $scope.change = function(deputyname) {
|
|
|
+ DeputyOrder.deputyEnterprise({}, function(data) {
|
|
|
+ $scope.deputyEn = data;
|
|
|
+ angular.forEach($scope.deputyEn, function(en) {
|
|
|
+ if(deputyname == en.deputyname) {
|
|
|
+ $scope.deputyuu = en.deputyuu;
|
|
|
+ }
|
|
|
+ });
|
|
|
});
|
|
|
}
|
|
|
|