|
|
@@ -2042,7 +2042,7 @@ define(['toaster', 'charts', 'ngTable', 'common/services', 'common/directives',
|
|
|
$scope.exportXls = function () {
|
|
|
VendorService.exportXls.get({}, {}, function (data) {
|
|
|
if (data.success){
|
|
|
- window.location.href = window.location.origin + window.location.pathname + 'vendor/customer/xls?keyword='+ ($scope.keywordXls || '');
|
|
|
+ window.location.href = 'vendor/customer/xls?keyword='+ ($scope.keywordXls || '');
|
|
|
}
|
|
|
}, function (response) {
|
|
|
toaster.pop('error', '数据加载失败', response.data);
|
|
|
@@ -2845,7 +2845,7 @@ define(['toaster', 'charts', 'ngTable', 'common/services', 'common/directives',
|
|
|
$scope.exportXls = function () {
|
|
|
PurcOrders.exportXls({}, {}, function (data) {
|
|
|
if (data.success){
|
|
|
- window.location.href = window.location.origin + window.location.pathname + '/sale/orders/purc/xls?_state='+$scope.active+'&searchFilter='+encodeURIComponent(angular.toJson($scope.searchFilterXls));
|
|
|
+ window.location.href = 'sale/orders/purc/xls?_state='+$scope.active+'&searchFilter='+encodeURIComponent(angular.toJson($scope.searchFilterXls));
|
|
|
}
|
|
|
}, function (response) {
|
|
|
toaster.pop('error', '数据加载失败', response.data);
|
|
|
@@ -3273,8 +3273,7 @@ define(['toaster', 'charts', 'ngTable', 'common/services', 'common/directives',
|
|
|
$scope.exportXls = function () {
|
|
|
PurcOrderItem.exportXls({}, {}, function (data) {
|
|
|
if (data.success){
|
|
|
-
|
|
|
- window.location.href = window.location.origin + window.location.pathname + '/sale/orders/xls?_state='+$scope.active+'&searchFilter='+encodeURIComponent(angular.toJson($scope.searchFilterXls));
|
|
|
+ window.location.href = 'sale/orders/xls?_state='+$scope.active+'&searchFilter='+encodeURIComponent(angular.toJson($scope.searchFilterXls));
|
|
|
}
|
|
|
}, function (response) {
|
|
|
toaster.pop('error', '数据加载失败', response.data);
|
|
|
@@ -3560,7 +3559,7 @@ define(['toaster', 'charts', 'ngTable', 'common/services', 'common/directives',
|
|
|
$scope.exportXls = function () {
|
|
|
PurcChange.exportXls({}, {}, function (data) {
|
|
|
if (data.success){
|
|
|
- window.location.href = window.location.origin + window.location.pathname + '/sale/changes/xls?_state='+$scope.active+'&searchFilter='+encodeURIComponent(angular.toJson($scope.searchFilterXls));
|
|
|
+ window.location.href = 'sale/changes/xls?_state='+$scope.active+'&searchFilter='+encodeURIComponent(angular.toJson($scope.searchFilterXls));
|
|
|
}
|
|
|
}, function (response) {
|
|
|
toaster.pop('error', '数据加载失败', response.data);
|
|
|
@@ -3946,7 +3945,7 @@ define(['toaster', 'charts', 'ngTable', 'common/services', 'common/directives',
|
|
|
$scope.exportXls = function () {
|
|
|
PurcInquiry.exportXls({}, {}, function (data) {
|
|
|
if (data.success) {
|
|
|
- window.location.href = window.location.origin + window.location.pathname + '/sale/inquiry/xls?_state='+$scope.active+'&searchFilter='+encodeURIComponent(angular.toJson($scope.searchFilterXls));
|
|
|
+ window.location.href = 'sale/inquiry/xls?_state='+$scope.active+'&searchFilter='+encodeURIComponent(angular.toJson($scope.searchFilterXls));
|
|
|
}
|
|
|
}, function (response) {
|
|
|
toaster.pop('error', '数据加载失败', response.data);
|
|
|
@@ -4918,7 +4917,7 @@ define(['toaster', 'charts', 'ngTable', 'common/services', 'common/directives',
|
|
|
$scope.exportXls = function () {
|
|
|
PurchaseInquiry.exportXls({}, {}, function (data) {
|
|
|
if (data.success){
|
|
|
- window.location.href = window.location.origin + window.location.pathname + '/purc/inquiry/xls?_state='+$scope.active+'&searchFilter='+encodeURIComponent(angular.toJson($scope.searchFilterXls));
|
|
|
+ window.location.href = 'purc/inquiry/xls?_state='+$scope.active+'&searchFilter='+encodeURIComponent(angular.toJson($scope.searchFilterXls));
|
|
|
}
|
|
|
}, function (response) {
|
|
|
toaster.pop('error', '数据加载失败', response.data);
|
|
|
@@ -5743,7 +5742,7 @@ define(['toaster', 'charts', 'ngTable', 'common/services', 'common/directives',
|
|
|
$scope.exportXls = function () {
|
|
|
PurcInquiryMould.exportXls({}, {}, function (data) {
|
|
|
if (data.success){
|
|
|
- window.location.href = window.location.origin + window.location.pathname + '/sale/mould/xls?_state='+$scope.active+'&searchFilter='+encodeURIComponent(angular.toJson($scope.searchFilterXls));
|
|
|
+ window.location.href = 'sale/mould/xls?_state='+$scope.active+'&searchFilter='+encodeURIComponent(angular.toJson($scope.searchFilterXls));
|
|
|
}
|
|
|
}, function (response) {
|
|
|
toaster.pop('error', '数据加载失败', response.data);
|
|
|
@@ -6078,7 +6077,7 @@ define(['toaster', 'charts', 'ngTable', 'common/services', 'common/directives',
|
|
|
$scope.exportXls = function () {
|
|
|
Quotation.exportXls({}, {}, function (data) {
|
|
|
if (data.success){
|
|
|
- window.location.href = window.location.origin + window.location.pathname + '/sale/quotation/xls?_state='+$scope.active+'&searchFilter='+encodeURIComponent(angular.toJson($scope.searchFilterXls));
|
|
|
+ window.location.href = 'sale/quotation/xls?_state='+$scope.active+'&searchFilter='+encodeURIComponent(angular.toJson($scope.searchFilterXls));
|
|
|
}
|
|
|
}, function (response) {
|
|
|
toaster.pop('error', '数据加载失败', response.data);
|
|
|
@@ -6503,6 +6502,9 @@ define(['toaster', 'charts', 'ngTable', 'common/services', 'common/directives',
|
|
|
$scope.isUser = data.isUser;
|
|
|
});
|
|
|
|
|
|
+ // 用来记录已经选择的id
|
|
|
+ $rootScope.ids = [];
|
|
|
+
|
|
|
$scope.active = 'todo';
|
|
|
$scope.currency = Symbol.currency;
|
|
|
$scope.dateZoneText = '不限';
|
|
|
@@ -6564,6 +6566,12 @@ define(['toaster', 'charts', 'ngTable', 'common/services', 'common/directives',
|
|
|
$scope.keywordXls = angular.copy($scope.keyword);//保存当前取值的关键词
|
|
|
$scope.fromDateXls = angular.copy($scope.condition.dateFrom ? $scope.condition.dateFrom.getTime() : null);//保存当前取值的起始日期
|
|
|
$scope.endDateXls = angular.copy($scope.condition.dateTo ? $scope.condition.dateTo.getTime() : null);//保存当前取值的截止日期
|
|
|
+
|
|
|
+ angular.forEach(page.content, function (notice) {
|
|
|
+ if ($rootScope.ids.indexOf(notice.id) > -1) {
|
|
|
+ notice.$selected = true;
|
|
|
+ }
|
|
|
+ });
|
|
|
}
|
|
|
}, function (response) {
|
|
|
$scope.loading = false;
|
|
|
@@ -6699,13 +6707,47 @@ define(['toaster', 'charts', 'ngTable', 'common/services', 'common/directives',
|
|
|
$scope.checkboxes = {
|
|
|
checked: false
|
|
|
};
|
|
|
+ angular.forEach($scope.tableParams.data, function (item) {
|
|
|
+ $scope.checkboxes.checked = false;
|
|
|
+ if($rootScope.ids.in_array(item.id)) {
|
|
|
+ $rootScope.ids.remove(item.id);
|
|
|
+ $scope.checkboxes.checked = true;
|
|
|
+ }
|
|
|
+ });
|
|
|
|
|
|
// 点击勾选全部的复选框
|
|
|
$scope.checkAll = function () {
|
|
|
angular.forEach($scope.tableParams.data, function (item) {
|
|
|
- if (!item.waiting)
|
|
|
+ if (!item.waiting) {
|
|
|
item.$selected = $scope.checkboxes.checked;
|
|
|
+ if(item.$selected) {
|
|
|
+ if(!$rootScope.ids.in_array(item.id)) {
|
|
|
+ $rootScope.ids.push(item.id);
|
|
|
+ }
|
|
|
+ } else {
|
|
|
+ if($rootScope.ids.in_array(item.id)) {
|
|
|
+ $rootScope.ids.remove(item.id);
|
|
|
+ }
|
|
|
+ }
|
|
|
+
|
|
|
+ }
|
|
|
});
|
|
|
+ console.log($rootScope.ids);
|
|
|
+ };
|
|
|
+
|
|
|
+ // 判断数组中是否存在某个对象
|
|
|
+ Array.prototype.S = String.fromCharCode(2);
|
|
|
+ Array.prototype.in_array = function(e) {
|
|
|
+ var r = new RegExp(this.S + e + this.S);
|
|
|
+ return (r.test(this.S + this.join(this.S) + this.S));
|
|
|
+ }
|
|
|
+
|
|
|
+ // 从数组中移除某个对象
|
|
|
+ Array.prototype.remove = function(val) {
|
|
|
+ var index = this.indexOf(val);
|
|
|
+ if (index > -1) {
|
|
|
+ this.splice(index, 1);
|
|
|
+ }
|
|
|
};
|
|
|
|
|
|
// 点击其中一个明细的复选框
|
|
|
@@ -6717,7 +6759,15 @@ define(['toaster', 'charts', 'ngTable', 'common/services', 'common/directives',
|
|
|
return;
|
|
|
}
|
|
|
});
|
|
|
- $scope.checkboxes.checked = result;
|
|
|
+ if(order.$selected) {
|
|
|
+ if(!$rootScope.ids.in_array(order.id)) {
|
|
|
+ $rootScope.ids.push(order.id);
|
|
|
+ }
|
|
|
+ } else {
|
|
|
+ if($rootScope.ids.in_array(order.id)) {
|
|
|
+ $rootScope.ids.remove(order.id);
|
|
|
+ }
|
|
|
+ }
|
|
|
};
|
|
|
|
|
|
// 打开批量发货模态框
|
|
|
@@ -6733,7 +6783,10 @@ define(['toaster', 'charts', 'ngTable', 'common/services', 'common/directives',
|
|
|
},
|
|
|
token: function() {
|
|
|
return $scope.token;
|
|
|
- }
|
|
|
+ },
|
|
|
+ ids: function() {
|
|
|
+ return $rootScope.ids;
|
|
|
+ }
|
|
|
}
|
|
|
});
|
|
|
modalInstance.result.then(function () {
|
|
|
@@ -6820,7 +6873,7 @@ define(['toaster', 'charts', 'ngTable', 'common/services', 'common/directives',
|
|
|
$scope.exportXls = function () {
|
|
|
PurcNotice.exportXls({}, {}, function (data) {
|
|
|
if (data.success){
|
|
|
- window.location.href = window.location.origin + window.location.pathname + '/sale/notice/xls?_state='+$scope.active+
|
|
|
+ window.location.href = 'sale/notice/xls?_state='+$scope.active+
|
|
|
'&keyword='+($scope.keywordXls || '')+'&fromDate='+$scope.fromDateXls+'&endDate='+$scope.endDateXls;
|
|
|
}
|
|
|
}, function (response) {
|
|
|
@@ -6829,8 +6882,13 @@ define(['toaster', 'charts', 'ngTable', 'common/services', 'common/directives',
|
|
|
}
|
|
|
}]);
|
|
|
|
|
|
- app.controller('SaleNoticeSendByBatchCtrl', ['$scope', '$modalInstance', 'Symbol', 'selectedNotices', 'PurcNotice', 'toaster', '$state', '$timeout', 'token', function ($scope, $modalInstance, Symbol, selectedNotices, PurcNotice, toaster, $state, $timeout, token) {
|
|
|
- $scope.notices = angular.copy(selectedNotices);
|
|
|
+ app.controller('SaleNoticeSendByBatchCtrl', ['$scope', '$modalInstance', 'Symbol', 'selectedNotices', 'PurcNotice', 'toaster', '$state', '$timeout', 'token', 'ids', '$rootScope', function ($scope, $modalInstance, Symbol, selectedNotices, PurcNotice, toaster, $state, $timeout, token, ids, $rootScope) {
|
|
|
+ // $scope.notices = angular.copy(selectedNotices);
|
|
|
+ PurcNotice.findByIds({ids : angular.toJson(ids)}, function(data) {
|
|
|
+ $scope.notices = angular.copy(data);
|
|
|
+ }, function(res) {
|
|
|
+ toaster.pop('error', '提示', '发货提醒查询失败');
|
|
|
+ });
|
|
|
$scope.currency = Symbol.currency;//将币别转化为对应的符号
|
|
|
$scope.saleSend = {
|
|
|
code: '',
|
|
|
@@ -6898,21 +6956,19 @@ define(['toaster', 'charts', 'ngTable', 'common/services', 'common/directives',
|
|
|
var num = 1;
|
|
|
var valid = true;
|
|
|
angular.forEach($scope.notices, function (item, key) {
|
|
|
- if (item.$selected) {
|
|
|
- if (a == 0) {//第一次
|
|
|
- $scope.saleSend.currency = item.orderItem.order.currency;
|
|
|
- $scope.saleSend.custUU = item.enUU;
|
|
|
- $scope.saleSend.payments = item.orderItem.order.payments;
|
|
|
- a = 1;
|
|
|
- } else {//其他
|
|
|
- if ($scope.saleSend.currency != item.orderItem.order.currency) valid = false;
|
|
|
- if ($scope.saleSend.custUU != item.enUU) valid = false;
|
|
|
- if ($scope.saleSend.payments != item.orderItem.order.payments) valid = false;
|
|
|
- }
|
|
|
- $scope.saleSend.sendItems.push({
|
|
|
- noticeId: item.id, qty: item.thisSendQty, price: item.orderItem.price, number: num++
|
|
|
- });
|
|
|
+ if (a == 0) {//第一次
|
|
|
+ $scope.saleSend.currency = item.orderItem.order.currency;
|
|
|
+ $scope.saleSend.custUU = item.enUU;
|
|
|
+ $scope.saleSend.payments = item.orderItem.order.payments;
|
|
|
+ a = 1;
|
|
|
+ } else {//其他
|
|
|
+ if ($scope.saleSend.currency != item.orderItem.order.currency) valid = false;
|
|
|
+ if ($scope.saleSend.custUU != item.enUU) valid = false;
|
|
|
+ if ($scope.saleSend.payments != item.orderItem.order.payments) valid = false;
|
|
|
}
|
|
|
+ $scope.saleSend.sendItems.push({
|
|
|
+ noticeId: item.id, qty: item.thisSendQty, price: item.orderItem.price, number: num++
|
|
|
+ });
|
|
|
});
|
|
|
if (!valid) {
|
|
|
toaster.pop('error', '错误', '只有客户一致、币别一致、付款方式一致才能一起发货。');
|
|
|
@@ -7052,7 +7108,7 @@ define(['toaster', 'charts', 'ngTable', 'common/services', 'common/directives',
|
|
|
$scope.exportXls = function () {
|
|
|
SaleSend.exportXls({}, {}, function (data) {
|
|
|
if (data.success){
|
|
|
- window.location.href = window.location.origin + window.location.pathname + '/sale/notice/sends/xls?_state='+$scope.active+'&keyword='+($scope.keywordXls || '')+'&fromDate='+$scope.fromDateXls+'&endDate='+$scope.endDateXls;
|
|
|
+ window.location.href = 'sale/notice/sends/xls?_state='+$scope.active+'&keyword='+($scope.keywordXls || '')+'&fromDate='+$scope.fromDateXls+'&endDate='+$scope.endDateXls;
|
|
|
}
|
|
|
}, function (response) {
|
|
|
toaster.pop('error', '数据加载失败', response.data);
|
|
|
@@ -7791,7 +7847,7 @@ define(['toaster', 'charts', 'ngTable', 'common/services', 'common/directives',
|
|
|
$scope.exportXls = function () {
|
|
|
PurcSample.exportXls({}, {}, function (data) {
|
|
|
if (data.success){
|
|
|
- window.location.href = window.location.origin + window.location.pathname + '/sale/sample/xls?_state='+$scope.active+'&searchFilter='+encodeURIComponent(angular.toJson($scope.searchFilterXls));
|
|
|
+ window.location.href = 'sale/sample/xls?_state='+$scope.active+'&searchFilter='+encodeURIComponent(angular.toJson($scope.searchFilterXls));
|
|
|
}
|
|
|
}, function (response) {
|
|
|
toaster.pop('error', '数据加载失败', response.data);
|
|
|
@@ -7960,7 +8016,7 @@ define(['toaster', 'charts', 'ngTable', 'common/services', 'common/directives',
|
|
|
$scope.exportXls = function () {
|
|
|
PurcApproval.exportXls({}, {}, function (data) {
|
|
|
if (data.success){
|
|
|
- window.location.href = window.location.origin + window.location.pathname + '/sale/sample/approval/xls?_state='+$scope.active+'&keyword='+($scope.keywordXls || "")+'&fromDate='+$scope.fromDateXls+'&endDate='+$scope.endDateXls;
|
|
|
+ window.location.href = 'sale/sample/approval/xls?_state='+$scope.active+'&keyword='+($scope.keywordXls || "")+'&fromDate='+$scope.fromDateXls+'&endDate='+$scope.endDateXls;
|
|
|
}
|
|
|
}, function (response) {
|
|
|
toaster.pop('error', '数据加载失败', response.data);
|
|
|
@@ -8161,7 +8217,7 @@ define(['toaster', 'charts', 'ngTable', 'common/services', 'common/directives',
|
|
|
$scope.exportXls = function () {
|
|
|
PurcAccept.exportXls({}, {}, function (data) {
|
|
|
if (data.success){
|
|
|
- window.location.href = window.location.origin + window.location.pathname + '/sale/accept/xls?_state='+$scope.active+'&searchFilter='+encodeURIComponent(angular.toJson($scope.searchFilterXls));
|
|
|
+ window.location.href = 'sale/accept/xls?_state='+$scope.active+'&searchFilter='+encodeURIComponent(angular.toJson($scope.searchFilterXls));
|
|
|
}
|
|
|
}, function (response) {
|
|
|
toaster.pop('error', '数据加载失败', response.data);
|
|
|
@@ -8307,7 +8363,7 @@ define(['toaster', 'charts', 'ngTable', 'common/services', 'common/directives',
|
|
|
$scope.exportXls = function () {
|
|
|
PurcReturn.exportXls({}, {}, function (data) {
|
|
|
if (data.success){
|
|
|
- window.location.href = window.location.origin + window.location.pathname + '/sale/return/xls?_state='+$scope.active+'&searchFilter='+encodeURIComponent(angular.toJson($scope.searchFilterXls));
|
|
|
+ window.location.href = 'sale/return/xls?_state='+$scope.active+'&searchFilter='+encodeURIComponent(angular.toJson($scope.searchFilterXls));
|
|
|
}
|
|
|
}, function (response) {
|
|
|
toaster.pop('error', '数据加载失败', response.data);
|
|
|
@@ -8446,7 +8502,7 @@ define(['toaster', 'charts', 'ngTable', 'common/services', 'common/directives',
|
|
|
$scope.exportXls = function () {
|
|
|
PurcBadIn.exportXls({}, {}, function (data) {
|
|
|
if (data.success){
|
|
|
- window.location.href = window.location.origin + window.location.pathname + '/sale/badIn/xls?_state='+$scope.active+'&searchFilter='+encodeURIComponent(angular.toJson($scope.searchFilterXls));
|
|
|
+ window.location.href = 'sale/badIn/xls?_state='+$scope.active+'&searchFilter='+encodeURIComponent(angular.toJson($scope.searchFilterXls));
|
|
|
}
|
|
|
}, function (response) {
|
|
|
toaster.pop('error', '数据加载失败', response.data);
|
|
|
@@ -8559,7 +8615,7 @@ define(['toaster', 'charts', 'ngTable', 'common/services', 'common/directives',
|
|
|
$scope.exportXls = function () {
|
|
|
PurcBadOut.exportXls({}, {}, function (data) {
|
|
|
if (data.success){
|
|
|
- window.location.href = window.location.origin + window.location.pathname + '/sale/badOut/xls?_state='+$scope.active+'&searchFilter='+encodeURIComponent(angular.toJson($scope.searchFilterXls));
|
|
|
+ window.location.href = 'sale/badOut/xls?_state='+$scope.active+'&searchFilter='+encodeURIComponent(angular.toJson($scope.searchFilterXls));
|
|
|
}
|
|
|
}, function (response) {
|
|
|
toaster.pop('error', '数据加载失败', response.data);
|
|
|
@@ -8668,7 +8724,7 @@ define(['toaster', 'charts', 'ngTable', 'common/services', 'common/directives',
|
|
|
$scope.exportXls = function () {
|
|
|
PurcMRB.exportXls({}, {}, function (data) {
|
|
|
if (data.success){
|
|
|
- window.location.href = window.location.origin + window.location.pathname + '/sale/MRB/xls?_state='+$scope.active+'&searchFilter='+encodeURIComponent(angular.toJson($scope.searchFilterXls));
|
|
|
+ window.location.href = 'sale/MRB/xls?_state='+$scope.active+'&searchFilter='+encodeURIComponent(angular.toJson($scope.searchFilterXls));
|
|
|
}
|
|
|
}, function (response) {
|
|
|
toaster.pop('error', '数据加载失败', response.data);
|
|
|
@@ -9349,7 +9405,7 @@ define(['toaster', 'charts', 'ngTable', 'common/services', 'common/directives',
|
|
|
$scope.exportXls = function () {
|
|
|
FaApBill.exportXls({}, {}, function (data) {
|
|
|
if (data.success){
|
|
|
- window.location.href = window.location.origin + window.location.pathname + '/sale/apBill/xls?_state='+$scope.active+'&keyword='+($scope.keywordXls || "")+'&fromDate='+$scope.fromDateXls+'&endDate='+$scope.endDateXls;
|
|
|
+ window.location.href = 'sale/apBill/xls?_state='+$scope.active+'&keyword='+($scope.keywordXls || "")+'&fromDate='+$scope.fromDateXls+'&endDate='+$scope.endDateXls;
|
|
|
}
|
|
|
}, function (response) {
|
|
|
toaster.pop('error', '数据加载失败', response.data);
|
|
|
@@ -9698,7 +9754,7 @@ define(['toaster', 'charts', 'ngTable', 'common/services', 'common/directives',
|
|
|
$scope.exportXls = function () {
|
|
|
FaApCheck.exportXls({}, {}, function (data) {
|
|
|
if (data.success){
|
|
|
- window.location.href = window.location.origin + window.location.pathname + '/sale/apCheck/xls/list?_state='+$scope.active+'&searchFilter='+encodeURIComponent(angular.toJson($scope.searchFilterXls));
|
|
|
+ window.location.href = 'sale/apCheck/xls/list?_state='+$scope.active+'&searchFilter='+encodeURIComponent(angular.toJson($scope.searchFilterXls));
|
|
|
}
|
|
|
}, function (response) {
|
|
|
toaster.pop('error', '数据加载失败', response.data);
|
|
|
@@ -11796,7 +11852,7 @@ define(['toaster', 'charts', 'ngTable', 'common/services', 'common/directives',
|
|
|
$scope.exportXls = function () {
|
|
|
MakeOrder.exportXls({}, {}, function (data) {
|
|
|
if (data.success){
|
|
|
- window.location.href = window.location.origin + window.location.pathname + '/make/orders/xls?_state='+$scope.active+'&searchFilter='+encodeURIComponent(angular.toJson($scope.searchFilterXls));
|
|
|
+ window.location.href = 'make/orders/xls?_state='+$scope.active+'&searchFilter='+encodeURIComponent(angular.toJson($scope.searchFilterXls));
|
|
|
}
|
|
|
}, function (response) {
|
|
|
toaster.pop('error', '数据加载失败', response.data);
|
|
|
@@ -12001,7 +12057,7 @@ define(['toaster', 'charts', 'ngTable', 'common/services', 'common/directives',
|
|
|
$scope.exportXls = function () {
|
|
|
MakeAccept.exportXls({}, {}, function (data) {
|
|
|
if (data.success){
|
|
|
- window.location.href = window.location.origin + window.location.pathname + '/make/accept/xls?_state='+$scope.active+'&keyword='+($scope.keywordXls || "")+'&fromDate='+$scope.fromDateXls+'&endDate='+$scope.endDateXls;
|
|
|
+ window.location.href = 'make/accept/xls?_state='+$scope.active+'&keyword='+($scope.keywordXls || "")+'&fromDate='+$scope.fromDateXls+'&endDate='+$scope.endDateXls;
|
|
|
}
|
|
|
}, function (response) {
|
|
|
toaster.pop('error', '数据加载失败', response.data);
|
|
|
@@ -12122,7 +12178,7 @@ define(['toaster', 'charts', 'ngTable', 'common/services', 'common/directives',
|
|
|
$scope.exportXls = function () {
|
|
|
MakeReturn.exportXls({}, {}, function (data) {
|
|
|
if (data.success){
|
|
|
- window.location.href = window.location.origin + window.location.pathname + '/make/return/xls?_state='+$scope.active+'&keyword='+($scope.keywordXls || "")+'&fromDate='+$scope.fromDateXls+'&endDate='+$scope.endDateXls;
|
|
|
+ window.location.href = 'make/return/xls?_state='+$scope.active+'&keyword='+($scope.keywordXls || "")+'&fromDate='+$scope.fromDateXls+'&endDate='+$scope.endDateXls;
|
|
|
}
|
|
|
}, function (response) {
|
|
|
toaster.pop('error', '数据加载失败', response.data);
|
|
|
@@ -12265,7 +12321,7 @@ define(['toaster', 'charts', 'ngTable', 'common/services', 'common/directives',
|
|
|
$scope.exportXls = function () {
|
|
|
MakeChange.exportXls({}, {}, function (data) {
|
|
|
if (data.success){
|
|
|
- window.location.href = window.location.origin + window.location.pathname + '/make/changes/xls?_state='+$scope.active+'&searchFilter='+encodeURIComponent(angular.toJson($scope.searchFilterXls));
|
|
|
+ window.location.href = 'make/changes/xls?_state='+$scope.active+'&searchFilter='+encodeURIComponent(angular.toJson($scope.searchFilterXls));
|
|
|
}
|
|
|
}, function (response) {
|
|
|
toaster.pop('error', '数据加载失败', response.data);
|
|
|
@@ -12440,7 +12496,7 @@ define(['toaster', 'charts', 'ngTable', 'common/services', 'common/directives',
|
|
|
$scope.exportXls = function () {
|
|
|
MakeOutOrder.exportXls({}, {}, function (data) {
|
|
|
if (data.success){
|
|
|
- window.location.href = window.location.origin + window.location.pathname + '/make/outorders/xls?_state='+$scope.active+'&searchFilter='+encodeURIComponent(angular.toJson($scope.searchFilterXls));
|
|
|
+ window.location.href = 'make/outorders/xls?_state='+$scope.active+'&searchFilter='+encodeURIComponent(angular.toJson($scope.searchFilterXls));
|
|
|
}
|
|
|
}, function (response) {
|
|
|
toaster.pop('error', '数据加载失败', response.data);
|
|
|
@@ -12927,7 +12983,7 @@ define(['toaster', 'charts', 'ngTable', 'common/services', 'common/directives',
|
|
|
$scope.exportXls = function () {
|
|
|
GetProductInfo.exportXls({},{}, function (data) {
|
|
|
if (data.success) {
|
|
|
- window.location.href = window.location.origin + window.location.pathname + '/product/baseInfo/xls?_state='+$scope.active+'&keyword='+ ($scope.keywordXls || "");
|
|
|
+ window.location.href = 'product/baseInfo/xls?_state='+$scope.active+'&keyword='+ ($scope.keywordXls || "");
|
|
|
}
|
|
|
}, function (response) {
|
|
|
toaster.pop('error', '数据加载失败', response.data);
|
|
|
@@ -21437,7 +21493,7 @@ define(['toaster', 'charts', 'ngTable', 'common/services', 'common/directives',
|
|
|
$scope.exportXls = function () {
|
|
|
PurcProduct.exportXls({}, {}, function (data) {
|
|
|
if (data.success){
|
|
|
- window.location.href = window.location.origin + window.location.pathname + '/purcProduct/xls?_state='+$scope.active+'&keyword='+ ($scope.keywordXls || "");
|
|
|
+ window.location.href = 'purcProduct/xls?_state='+$scope.active+'&keyword='+ ($scope.keywordXls || "");
|
|
|
}
|
|
|
}, function (response) {
|
|
|
toaster.pop('error', '数据加载失败', response.data);
|