|
|
@@ -72,7 +72,7 @@ define(['app/app'], function(app) {
|
|
|
// 查找付款企业
|
|
|
$scope.dbfindPayCompany = function (deputyuu) {
|
|
|
var modalInstance = $modal.open({
|
|
|
- templateUrl: 'static/tpl/index/purc/modal/payCompany.html',
|
|
|
+ templateUrl: 'static/view/usercenter/b2b/modal/payCompany.html',
|
|
|
controller: 'DbfindDeputyPayCompanyCtrl',
|
|
|
resolve: {
|
|
|
deputyuu: function () {
|
|
|
@@ -393,4 +393,20 @@ define(['app/app'], function(app) {
|
|
|
});
|
|
|
}
|
|
|
}]);
|
|
|
+ // 代采企业付款企业
|
|
|
+ app.register.controller('DbfindDeputyPayCompanyCtrl', ['$scope', 'toaster', '$upload', '$modalInstance', 'deputyuu', 'B2bDeputyOrder', 'BaseService', 'ngTableParams', function ($scope, toaster, $upload, $modalInstance, deputyuu, DeputyOrder, BaseService, ngTableParams) {
|
|
|
+ DeputyOrder.paycompanies({enuu: deputyuu}, {}, function (data) {
|
|
|
+ $scope.paycompanies = data;
|
|
|
+ }, function (response) {
|
|
|
+ toaster.pop('error', '提示', response.data);
|
|
|
+ });
|
|
|
+
|
|
|
+ $scope.cancel = function () {
|
|
|
+ $modalInstance.dismiss();
|
|
|
+ };
|
|
|
+
|
|
|
+ $scope.select = function (company) { // 直接选择
|
|
|
+ $modalInstance.close(company);
|
|
|
+ }
|
|
|
+ }]);
|
|
|
})
|