|
|
@@ -12744,13 +12744,8 @@ define([ 'toaster', 'charts', 'ngTable', 'common/services', 'common/directives',
|
|
|
// 代采企业列表
|
|
|
DeputyOrder.deputyEnterprise({}, function(data) {
|
|
|
$scope.deputyEnterprises = data;
|
|
|
+ $scope.deOrder.deputyname = $scope.deputyEnterprises[0].deputyenname;
|
|
|
$scope.deOrder.deputyuu = $scope.deputyEnterprises[0].deputyenuu;
|
|
|
- // 费率
|
|
|
- DeputyOrder.vendorRate( {enuu: $scope.deOrder.deputyuu}, {}, function(data) {
|
|
|
- $scope.rate = data;
|
|
|
- }, function(response){
|
|
|
-
|
|
|
- });
|
|
|
});
|
|
|
|
|
|
// 更新名称时后台更改uu号
|
|
|
@@ -12758,8 +12753,8 @@ define([ 'toaster', 'charts', 'ngTable', 'common/services', 'common/directives',
|
|
|
DeputyOrder.deputyEnterprise({}, function(data) {
|
|
|
$scope.deputyEn = data;
|
|
|
angular.forEach($scope.deputyEn, function(en) {
|
|
|
- if(deputyname == en.deputyname) {
|
|
|
- $scope.deputyuu = en.deputyuu;
|
|
|
+ if(deputyname == en.deputyenname) {
|
|
|
+ $scope.deputyuu = en.deputyenuu;
|
|
|
}
|
|
|
});
|
|
|
});
|
|
|
@@ -13220,13 +13215,8 @@ define([ 'toaster', 'charts', 'ngTable', 'common/services', 'common/directives',
|
|
|
// 代采企业列表
|
|
|
DeputyOrder.deputyEnterprise({}, function(data) {
|
|
|
$scope.deputyEnterprises = data;
|
|
|
+ $scope.deOrder.deputyname = $scope.deputyEnterprises[0].deputyenname;
|
|
|
$scope.deOrder.deputyuu = $scope.deputyEnterprises[0].deputyenuu;
|
|
|
- // 费率
|
|
|
- DeputyOrder.vendorRate( {enuu: $scope.deOrder.deputyuu}, {}, function(data) {
|
|
|
- $scope.rate = data;
|
|
|
- }, function(response){
|
|
|
-
|
|
|
- });
|
|
|
});
|
|
|
|
|
|
// 更新代采企业时更新费率
|
|
|
@@ -13234,8 +13224,8 @@ define([ 'toaster', 'charts', 'ngTable', 'common/services', 'common/directives',
|
|
|
DeputyOrder.deputyEnterprise({}, function(data) {
|
|
|
$scope.deputyEn = data;
|
|
|
angular.forEach($scope.deputyEn, function(en) {
|
|
|
- if(deputyname == en.deputyname) {
|
|
|
- $scope.deputyuu = en.deputyuu;
|
|
|
+ if(deputyname == en.deputyenname) {
|
|
|
+ $scope.deputyuu = en.deputyenuu;
|
|
|
}
|
|
|
});
|
|
|
});
|