|
|
@@ -5349,7 +5349,7 @@ define(['toaster', 'charts', 'ngTable', 'common/services', 'common/directives',
|
|
|
}]);
|
|
|
|
|
|
// 公共询价列表
|
|
|
- app.controller('PublicInquiryListCtrl', ['$scope', '$stateParams', 'PurchaseInquiry', '$filter', 'toaster', 'BaseService', 'ngTableParams', 'PurcInquiry', 'publicInquiry', 'publicInquiryList', '$modal', function ($scope, $stateParams, PurchaseInquiry, $filter, toaster, BaseService, ngTableParams, PurcInquiry, publicInquiry, publicInquiryList, $modal) {
|
|
|
+ app.controller('PublicInquiryListCtrl', ['$scope', '$stateParams', 'PurchaseInquiry', '$filter', 'toaster', 'BaseService', 'ngTableParams', 'PurcInquiry', 'publicInquiry', 'publicInquiryList', '$modal', '$http', function ($scope, $stateParams, PurchaseInquiry, $filter, toaster, BaseService, ngTableParams, PurcInquiry, publicInquiry, publicInquiryList, $modal, $http) {
|
|
|
BaseService.scrollBackToTop();
|
|
|
/**
|
|
|
* 改变单据日期范围
|
|
|
@@ -5514,8 +5514,12 @@ define(['toaster', 'charts', 'ngTable', 'common/services', 'common/directives',
|
|
|
}
|
|
|
});
|
|
|
|
|
|
- $scope.toDetail = function (id) {
|
|
|
- window.location.hash = '#/baseInfo/inquiryList/' + id;
|
|
|
+ $scope.toDetail = function (item) {
|
|
|
+ if (item.quoted == 0) {
|
|
|
+ window.location.hash = '#/baseInfo/inquiryList/' + item.id;
|
|
|
+ } else {
|
|
|
+ window.open("#/sale/pubinquiry/" + item.quteId);
|
|
|
+ }
|
|
|
};
|
|
|
|
|
|
// 搜索框回车
|
|
|
@@ -5523,13 +5527,25 @@ define(['toaster', 'charts', 'ngTable', 'common/services', 'common/directives',
|
|
|
$scope.tableParams.page(1);
|
|
|
$scope.tableParams.reload();
|
|
|
};
|
|
|
- // 得到消息
|
|
|
+ //得到消息
|
|
|
PurcInquiry.getMessage({}, function (data) {
|
|
|
$scope.message = data;
|
|
|
}, function (response) {
|
|
|
|
|
|
});
|
|
|
|
|
|
+ /*$http({
|
|
|
+ method: 'GET',
|
|
|
+ dataType: 'JSON',
|
|
|
+ url: 'http://192.168.253.12:24000/inquiry/public/messageList',
|
|
|
+ async : false,
|
|
|
+ params: {enuu:10041559, size: 10},
|
|
|
+ }).success(function(data) {
|
|
|
+ console.log(data)
|
|
|
+ }).error(function() {
|
|
|
+ console.log('error')
|
|
|
+ });*/
|
|
|
+
|
|
|
// 转客户询价
|
|
|
$scope.transtoInquiry = function (inquiryItem) {
|
|
|
publicInquiry.quotationInfo({id: inquiryItem.id}, function(data) {
|