|
|
@@ -8033,7 +8033,7 @@ define([ 'toaster', 'charts', 'ngTable', 'common/services', 'service/Purc', 'ser
|
|
|
});
|
|
|
|
|
|
// 获取地址信息
|
|
|
- $http.get('resources/citydata/city.json', {"Accept": "application/json;charset=utf-8", "Accept-Charset":"charset=utf-8"
|
|
|
+ $http.get('resources/citydata/city.json', {"Accept": "application/json;charset=utf-8", "Accept-Charset": "charset=utf-8"
|
|
|
}).then(function(response) {
|
|
|
$scope.provinces = response.data;
|
|
|
});
|
|
|
@@ -8564,9 +8564,9 @@ define([ 'toaster', 'charts', 'ngTable', 'common/services', 'service/Purc', 'ser
|
|
|
|
|
|
// 删除供应商联系人
|
|
|
$scope.deleteById = function(id, index) {
|
|
|
+ $scope.vendorContacts.splice(index, 1);
|
|
|
Vendor.deleteContact({id: id}, {}, function(data) {
|
|
|
toaster.pop('success', '提示', '供应商联系人删除成功');
|
|
|
- $scope.vendorContacts.splice(1, index);
|
|
|
}, function(response) {
|
|
|
toaster.pop('error', '提示', response.data);
|
|
|
});
|