|
|
@@ -14,6 +14,7 @@ define(['app/app'], function(app) {
|
|
|
var getService = function () {
|
|
|
return $scope.searchMethod ? PurcProduct : PurcProductNewest;
|
|
|
};
|
|
|
+ $rootScope.active = 'buyer_tender'
|
|
|
|
|
|
// 物料信息
|
|
|
$scope.tableParams = new ngTableParams({
|
|
|
@@ -43,6 +44,10 @@ define(['app/app'], function(app) {
|
|
|
}
|
|
|
});
|
|
|
|
|
|
+ $scope.downFile = function(id) {
|
|
|
+ window.location.href = BaseService.getB2bUrl() + '/file/'+ id
|
|
|
+ }
|
|
|
+
|
|
|
// 搜索框回车
|
|
|
$scope.onSearch = function (keyword) {
|
|
|
// 每次搜索重置获取数据方法
|
|
|
@@ -468,7 +473,7 @@ define(['app/app'], function(app) {
|
|
|
$scope.upload = function (myFile) { // 上传附件
|
|
|
var file = $scope.myFile, file = file && file.length > 0 ? file : null;
|
|
|
$upload.upload({
|
|
|
- url: 'tender/addTenderAttach',
|
|
|
+ url: BaseService.getB2bUrl() + '/tender/addTenderAttach',
|
|
|
file: file,
|
|
|
method: 'POST'
|
|
|
}).success(function (attach) {
|
|
|
@@ -913,13 +918,13 @@ define(['app/app'], function(app) {
|
|
|
/**
|
|
|
* 招标单批量导入
|
|
|
*/
|
|
|
- app.register.controller('PurcTenderUploadCtrl', ['$scope', 'toaster', '$upload', '$modalInstance', function ($scope, toaster, $upload, $modalInstance) {
|
|
|
+ app.register.controller('PurcTenderUploadCtrl', ['BaseService', '$scope', 'toaster', '$upload', '$modalInstance', function (BaseService, $scope, toaster, $upload, $modalInstance) {
|
|
|
// 通过excel批量上传物料
|
|
|
$scope.result = null;
|
|
|
$scope.upload = function () {
|
|
|
var file = $scope.myFiles[0];
|
|
|
$upload.upload({
|
|
|
- url: 'tender/release/excel',
|
|
|
+ url: BaseService.getB2bUrl() + '/tender/release/excel',
|
|
|
file: file,
|
|
|
method: 'POST'
|
|
|
}).success(function (data) {
|
|
|
@@ -947,7 +952,7 @@ define(['app/app'], function(app) {
|
|
|
|
|
|
// 下载模板
|
|
|
$scope.download = function () {
|
|
|
- window.location.href = 'tender/upload/template';
|
|
|
+ window.location.href = BaseService.getB2bUrl() + '/tender/upload/template';
|
|
|
};
|
|
|
|
|
|
$scope.enSure = function () {
|