|
|
@@ -29,10 +29,20 @@ define(['app/app', 'clipboard', 'QRCode'], function (app, clipboard, QRCode) {
|
|
|
} else {
|
|
|
$scope.tab = 'waitOffer';
|
|
|
}
|
|
|
+ // 更换待报价状态
|
|
|
+ $scope.vendorType = 'all'
|
|
|
+ $scope.onVendorTypeChange = function () {
|
|
|
+ $scope.keyword = '';
|
|
|
+ $scope.startDate = null;
|
|
|
+ $scope.endDate = null;
|
|
|
+ $scope.seekPurchaseTableParams.page(1);
|
|
|
+ $scope.seekPurchaseTableParams.reload();
|
|
|
+ }
|
|
|
seekPurchase.getSeekUrl({}, function(data) {
|
|
|
var seekUrl = data.url;
|
|
|
/*$scope.tab = 'waitOffer';*/
|
|
|
$scope.toogleTab = function (tab) {
|
|
|
+ $scope.vendorType = 'all'
|
|
|
$scope.tab = tab;
|
|
|
$scope.seekPurchaseTableParams = new ngTableParams({
|
|
|
pageNumber: 1,
|
|
|
@@ -61,10 +71,11 @@ define(['app/app', 'clipboard', 'QRCode'], function (app, clipboard, QRCode) {
|
|
|
? $scope.startDate.getTime() : null;
|
|
|
param.endDate = $scope.endDate ? $scope.endDate.getTime()
|
|
|
: null;
|
|
|
+ param.overdue = $scope.vendorType === 'all' ? '' : ($scope.vendorType === 'self' ? '0' : '1')
|
|
|
$http({
|
|
|
method: 'get',
|
|
|
dataType: 'json',
|
|
|
- url: seekUrl + '/inquiry/buyer/list',
|
|
|
+ url: 'http://10.1.51.82:24002' + '/inquiry/buyer/list',
|
|
|
params: param
|
|
|
}).success(function (data) {
|
|
|
params.total(data.totalElements);
|
|
|
@@ -85,10 +96,11 @@ define(['app/app', 'clipboard', 'QRCode'], function (app, clipboard, QRCode) {
|
|
|
? $scope.startDate.getTime() : null;
|
|
|
param.endDate = $scope.endDate ? $scope.endDate.getTime()
|
|
|
: null;
|
|
|
+ param.overdue = $scope.vendorType === 'all' ? '' : ($scope.vendorType === 'self' ? '0' : '1')
|
|
|
$http({
|
|
|
method: 'get',
|
|
|
dataType: 'json',
|
|
|
- url: seekUrl + '/inquiry/buyer/quotations',
|
|
|
+ url: 'http://10.1.51.82:24002' + '/inquiry/buyer/quotations',
|
|
|
params: param
|
|
|
}).success(function (data) {
|
|
|
params.total(data.totalElements);
|