|
@@ -9635,6 +9635,7 @@ define(['toaster', 'charts', 'ngTable', 'common/services', 'common/directives',
|
|
|
AccountEnterprise.get({}, function (data) {
|
|
AccountEnterprise.get({}, function (data) {
|
|
|
$scope.loading = false;
|
|
$scope.loading = false;
|
|
|
$scope.enterprise = data;
|
|
$scope.enterprise = data;
|
|
|
|
|
+ $scope.tags = data.tags.split(','); // 将逗号分隔的标签字符串转换成数组,便于操作
|
|
|
|
|
|
|
|
// 获取付款企业信息
|
|
// 获取付款企业信息
|
|
|
DeputyOrder.paycompanies({enuu: $scope.enterprise.uu}, {}, function (data) {
|
|
DeputyOrder.paycompanies({enuu: $scope.enterprise.uu}, {}, function (data) {
|
|
@@ -9669,6 +9670,7 @@ define(['toaster', 'charts', 'ngTable', 'common/services', 'common/directives',
|
|
|
// 更新企业信息
|
|
// 更新企业信息
|
|
|
$scope.updateDetailInfo = function () {
|
|
$scope.updateDetailInfo = function () {
|
|
|
$scope.loading = true;
|
|
$scope.loading = true;
|
|
|
|
|
+ $scope.enterprise.tags = $scope.tags.join(','); // 将标签数组转换成逗号分隔的字符串,便于储存
|
|
|
AccountEnterprise.save($scope.enterprise, function () {
|
|
AccountEnterprise.save($scope.enterprise, function () {
|
|
|
$scope.loading = false;
|
|
$scope.loading = false;
|
|
|
$scope.connectionEditing = false;
|
|
$scope.connectionEditing = false;
|
|
@@ -9863,6 +9865,16 @@ define(['toaster', 'charts', 'ngTable', 'common/services', 'common/directives',
|
|
|
});
|
|
});
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
|
|
+ $scope.addTag = function () {
|
|
|
|
|
+ if ($scope.tags.indexOf($scope.tag) == -1){
|
|
|
|
|
+ $scope.tags.push($scope.tag);
|
|
|
|
|
+ }
|
|
|
|
|
+ $scope.tag = '';
|
|
|
|
|
+ }
|
|
|
|
|
+
|
|
|
|
|
+ $scope.removeTag = function (tag) {
|
|
|
|
|
+ removeByValue($scope.tags, tag);
|
|
|
|
|
+ }
|
|
|
}]);
|
|
}]);
|
|
|
|
|
|
|
|
// 编辑收货地址
|
|
// 编辑收货地址
|