|
|
@@ -5601,27 +5601,21 @@ define(['toaster', 'charts', 'ngTable', 'common/services', 'common/directives',
|
|
|
|
|
|
// 转客户询价
|
|
|
$scope.transtoInquiry = function (inquiryItem) {
|
|
|
- publicInquiry.quotationInfo({id: inquiryItem.id}, function(data) {
|
|
|
- if (data.inquiryItem) { //存在已报价的就不进行报价操作
|
|
|
- toaster.pop('error', '该询价单已已经报价');
|
|
|
- } else {
|
|
|
- var modalInstance = $modal.open({
|
|
|
- templateUrl: 'static/tpl/index/baseInfo/modal/quotation_modal.html',
|
|
|
- controller: 'QuoteCtrl',
|
|
|
- size: 'lg',
|
|
|
- resolve: {
|
|
|
- inquiryItem: function () {
|
|
|
- return inquiryItem
|
|
|
- }
|
|
|
- }
|
|
|
- });
|
|
|
+ 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 () {
|
|
|
|
|
|
- });
|
|
|
- }
|
|
|
});
|
|
|
}
|
|
|
|