|
|
@@ -4900,7 +4900,7 @@ define(['toaster', 'charts', 'ngTable', 'common/services', 'common/directives',
|
|
|
toaster.pop('success', '提示', data.success);
|
|
|
$timeout(function () {
|
|
|
$rootScope.active = 'done';
|
|
|
- window.location.hash = "#/purc/inquiry_unapply";
|
|
|
+ window.location.hash = "#/baseInfo/inquiryList";
|
|
|
}, 500);
|
|
|
}
|
|
|
if (data.error) {
|
|
|
@@ -5597,22 +5597,26 @@ define(['toaster', 'charts', 'ngTable', 'common/services', 'common/directives',
|
|
|
|
|
|
// 转客户询价
|
|
|
$scope.transtoInquiry = function (inquiryItem) {
|
|
|
- var modalInstance = $modal.open({
|
|
|
- templateUrl: 'static/tpl/index/baseInfo/modal/quotation_modal.html',
|
|
|
- controller: 'QuoteCtrl',
|
|
|
- size: 'lg',
|
|
|
- resolve: {
|
|
|
- inquiryItem: function () {
|
|
|
- return inquiryItem
|
|
|
+ if ($scope.currentEn.uu == inquiryItem.inquiry.enUU) {
|
|
|
+ toaster.pop('warning', '不能对自己企业报价');
|
|
|
+ } else {
|
|
|
+ var modalInstance = $modal.open({
|
|
|
+ templateUrl: 'static/tpl/index/baseInfo/modal/quotation_modal.html',
|
|
|
+ controller: 'QuoteCtrl',
|
|
|
+ size: 'lg',
|
|
|
+ resolve: {
|
|
|
+ inquiryItem: function () {
|
|
|
+ return inquiryItem
|
|
|
+ }
|
|
|
}
|
|
|
- }
|
|
|
- });
|
|
|
+ });
|
|
|
|
|
|
- modalInstance.result.then(function (data) {
|
|
|
- $scope.tableParams.reload();
|
|
|
- }, function () {
|
|
|
+ modalInstance.result.then(function (data) {
|
|
|
+ $scope.tableParams.reload();
|
|
|
+ }, function () {
|
|
|
|
|
|
- });
|
|
|
+ });
|
|
|
+ }
|
|
|
}
|
|
|
|
|
|
// 跳转到我的报价列表
|