|
|
@@ -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 + '/vendor/customer/xls?keyword='+ ($scope.keywordXls || '');
|
|
|
+ window.location.href = window.location.origin + window.location.pathname + '/vendor/customer/xls?keyword='+ ($scope.keywordXls || '');
|
|
|
}
|
|
|
}, function (response) {
|
|
|
toaster.pop('error', '数据加载失败', response.data);
|
|
|
@@ -2842,7 +2842,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 + '/sale/orders/purc/xls?_state='+$scope.active+'&searchFilter='+angular.toJson($scope.searchFilterXls);
|
|
|
+ window.location.href = window.location.origin + window.location.pathname + '/sale/orders/purc/xls?_state='+$scope.active+'&searchFilter='+angular.toJson($scope.searchFilterXls);
|
|
|
}
|
|
|
}, function (response) {
|
|
|
toaster.pop('error', '数据加载失败', response.data);
|
|
|
@@ -3269,7 +3269,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 + '/sale/orders/xls?_state='+$scope.active+'&searchFilter='+angular.toJson($scope.searchFilterXls);
|
|
|
+ window.location.href = window.location.origin + window.location.pathname + '/sale/orders/xls?_state='+$scope.active+'&searchFilter='+angular.toJson($scope.searchFilterXls);
|
|
|
}
|
|
|
}, function (response) {
|
|
|
toaster.pop('error', '数据加载失败', response.data);
|
|
|
@@ -3553,7 +3553,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 + '/sale/changes/xls?_state='+$scope.active+'&searchFilter='+angular.toJson($scope.searchFilterXls);
|
|
|
+ window.location.href = window.location.origin + window.location.pathname + '/sale/changes/xls?_state='+$scope.active+'&searchFilter='+angular.toJson($scope.searchFilterXls);
|
|
|
}
|
|
|
}, function (response) {
|
|
|
toaster.pop('error', '数据加载失败', response.data);
|
|
|
@@ -3939,7 +3939,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 + '/sale/inquiry/xls?_state='+$scope.active+'&searchFilter='+angular.toJson($scope.searchFilterXls);
|
|
|
+ window.location.href = window.location.origin + window.location.pathname + '/sale/inquiry/xls?_state='+$scope.active+'&searchFilter='+angular.toJson($scope.searchFilterXls);
|
|
|
}
|
|
|
}, function (response) {
|
|
|
toaster.pop('error', '数据加载失败', response.data);
|
|
|
@@ -4911,7 +4911,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 + '/purc/inquiry/xls?_state='+$scope.active+'&searchFilter='+angular.toJson($scope.searchFilterXls);
|
|
|
+ window.location.href = window.location.origin + window.location.pathname + '/purc/inquiry/xls?_state='+$scope.active+'&searchFilter='+angular.toJson($scope.searchFilterXls);
|
|
|
}
|
|
|
}, function (response) {
|
|
|
toaster.pop('error', '数据加载失败', response.data);
|
|
|
@@ -5736,7 +5736,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 + '/sale/mould/xls?_state='+$scope.active+'&searchFilter='+angular.toJson($scope.searchFilterXls);
|
|
|
+ window.location.href = window.location.origin + window.location.pathname + '/sale/mould/xls?_state='+$scope.active+'&searchFilter='+angular.toJson($scope.searchFilterXls);
|
|
|
}
|
|
|
}, function (response) {
|
|
|
toaster.pop('error', '数据加载失败', response.data);
|
|
|
@@ -6071,7 +6071,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 + '/sale/quotation/xls?_state='+$scope.active+'&searchFilter='+angular.toJson($scope.searchFilterXls);
|
|
|
+ window.location.href = window.location.origin + window.location.pathname + '/sale/quotation/xls?_state='+$scope.active+'&searchFilter='+angular.toJson($scope.searchFilterXls);
|
|
|
}
|
|
|
}, function (response) {
|
|
|
toaster.pop('error', '数据加载失败', response.data);
|
|
|
@@ -6813,7 +6813,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 + '/sale/notice/xls?_state='+$scope.active+
|
|
|
+ window.location.href = window.location.origin + window.location.pathname + '/sale/notice/xls?_state='+$scope.active+
|
|
|
'&keyword='+($scope.keywordXls || '')+'&fromDate='+$scope.fromDateXls+'&endDate='+$scope.endDateXls;
|
|
|
}
|
|
|
}, function (response) {
|
|
|
@@ -7043,7 +7043,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 + '/sale/notice/sends/xls?_state='+$scope.active+'&keyword='+($scope.keywordXls || '')+'&fromDate='+$scope.fromDateXls+'&endDate='+$scope.endDateXls;
|
|
|
+ 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;
|
|
|
}
|
|
|
}, function (response) {
|
|
|
toaster.pop('error', '数据加载失败', response.data);
|
|
|
@@ -7780,7 +7780,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 + '/sale/sample/xls?_state='+$scope.active+'&searchFilter='+angular.toJson($scope.searchFilterXls);
|
|
|
+ window.location.href = window.location.origin + window.location.pathname + '/sale/sample/xls?_state='+$scope.active+'&searchFilter='+angular.toJson($scope.searchFilterXls);
|
|
|
}
|
|
|
}, function (response) {
|
|
|
toaster.pop('error', '数据加载失败', response.data);
|
|
|
@@ -7949,7 +7949,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 + '/sale/sample/approval/xls?_state='+$scope.active+'&keyword='+($scope.keywordXls || "")+'&fromDate='+$scope.fromDateXls+'&endDate='+$scope.endDateXls;
|
|
|
+ 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;
|
|
|
}
|
|
|
}, function (response) {
|
|
|
toaster.pop('error', '数据加载失败', response.data);
|
|
|
@@ -8150,7 +8150,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 + '/sale/accept/xls?_state='+$scope.active+'&searchFilter='+angular.toJson($scope.searchFilterXls);
|
|
|
+ window.location.href = window.location.origin + window.location.pathname + '/sale/accept/xls?_state='+$scope.active+'&searchFilter='+angular.toJson($scope.searchFilterXls);
|
|
|
}
|
|
|
}, function (response) {
|
|
|
toaster.pop('error', '数据加载失败', response.data);
|
|
|
@@ -8296,7 +8296,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 + '/sale/return/xls?_state='+$scope.active+'&searchFilter='+angular.toJson($scope.searchFilterXls);
|
|
|
+ window.location.href = window.location.origin + window.location.pathname + '/sale/return/xls?_state='+$scope.active+'&searchFilter='+angular.toJson($scope.searchFilterXls);
|
|
|
}
|
|
|
}, function (response) {
|
|
|
toaster.pop('error', '数据加载失败', response.data);
|
|
|
@@ -8435,7 +8435,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 + '/sale/badIn/xls?_state='+$scope.active+'&searchFilter='+angular.toJson($scope.searchFilterXls);
|
|
|
+ window.location.href = window.location.origin + window.location.pathname + '/sale/badIn/xls?_state='+$scope.active+'&searchFilter='+angular.toJson($scope.searchFilterXls);
|
|
|
}
|
|
|
}, function (response) {
|
|
|
toaster.pop('error', '数据加载失败', response.data);
|
|
|
@@ -8548,7 +8548,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 + '/sale/badOut/xls?_state='+$scope.active+'&searchFilter='+angular.toJson($scope.searchFilterXls);
|
|
|
+ window.location.href = window.location.origin + window.location.pathname + '/sale/badOut/xls?_state='+$scope.active+'&searchFilter='+angular.toJson($scope.searchFilterXls);
|
|
|
}
|
|
|
}, function (response) {
|
|
|
toaster.pop('error', '数据加载失败', response.data);
|
|
|
@@ -8657,7 +8657,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 + '/sale/MRB/xls?_state='+$scope.active+'&searchFilter='+angular.toJson($scope.searchFilterXls);
|
|
|
+ window.location.href = window.location.origin + window.location.pathname + '/sale/MRB/xls?_state='+$scope.active+'&searchFilter='+angular.toJson($scope.searchFilterXls);
|
|
|
}
|
|
|
}, function (response) {
|
|
|
toaster.pop('error', '数据加载失败', response.data);
|
|
|
@@ -9338,7 +9338,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 + '/sale/apBill/xls?_state='+$scope.active+'&keyword='+($scope.keywordXls || "")+'&fromDate='+$scope.fromDateXls+'&endDate='+$scope.endDateXls;
|
|
|
+ window.location.href = window.location.origin + window.location.pathname + '/sale/apBill/xls?_state='+$scope.active+'&keyword='+($scope.keywordXls || "")+'&fromDate='+$scope.fromDateXls+'&endDate='+$scope.endDateXls;
|
|
|
}
|
|
|
}, function (response) {
|
|
|
toaster.pop('error', '数据加载失败', response.data);
|
|
|
@@ -9685,7 +9685,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 + '/sale/apCheck/xls/list?_state='+$scope.active+'&searchFilter='+angular.toJson($scope.searchFilterXls);
|
|
|
+ window.location.href = window.location.origin + window.location.pathname + '/sale/apCheck/xls/list?_state='+$scope.active+'&searchFilter='+angular.toJson($scope.searchFilterXls);
|
|
|
}
|
|
|
}, function (response) {
|
|
|
toaster.pop('error', '数据加载失败', response.data);
|
|
|
@@ -11783,7 +11783,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 + '/make/orders/xls?_state='+$scope.active+'&searchFilter='+angular.toJson($scope.searchFilterXls);
|
|
|
+ window.location.href = window.location.origin + window.location.pathname + '/make/orders/xls?_state='+$scope.active+'&searchFilter='+angular.toJson($scope.searchFilterXls);
|
|
|
}
|
|
|
}, function (response) {
|
|
|
toaster.pop('error', '数据加载失败', response.data);
|
|
|
@@ -11988,7 +11988,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 + '/make/accept/xls?_state='+$scope.active+'&keyword='+($scope.keywordXls || "")+'&fromDate='+$scope.fromDateXls+'&endDate='+$scope.endDateXls;
|
|
|
+ window.location.href = window.location.origin + window.location.pathname + '/make/accept/xls?_state='+$scope.active+'&keyword='+($scope.keywordXls || "")+'&fromDate='+$scope.fromDateXls+'&endDate='+$scope.endDateXls;
|
|
|
}
|
|
|
}, function (response) {
|
|
|
toaster.pop('error', '数据加载失败', response.data);
|
|
|
@@ -12109,7 +12109,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 + '/make/return/xls?_state='+$scope.active+'&keyword='+($scope.keywordXls || "")+'&fromDate='+$scope.fromDateXls+'&endDate='+$scope.endDateXls;
|
|
|
+ window.location.href = window.location.origin + window.location.pathname + '/make/return/xls?_state='+$scope.active+'&keyword='+($scope.keywordXls || "")+'&fromDate='+$scope.fromDateXls+'&endDate='+$scope.endDateXls;
|
|
|
}
|
|
|
}, function (response) {
|
|
|
toaster.pop('error', '数据加载失败', response.data);
|
|
|
@@ -12252,7 +12252,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 + '/make/changes/xls?_state='+$scope.active+'&searchFilter='+angular.toJson($scope.searchFilterXls);
|
|
|
+ window.location.href = window.location.origin + window.location.pathname + '/make/changes/xls?_state='+$scope.active+'&searchFilter='+angular.toJson($scope.searchFilterXls);
|
|
|
}
|
|
|
}, function (response) {
|
|
|
toaster.pop('error', '数据加载失败', response.data);
|
|
|
@@ -12427,7 +12427,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 + '/make/outorders/xls?_state='+$scope.active+'&searchFilter='+angular.toJson($scope.searchFilterXls);
|
|
|
+ window.location.href = window.location.origin + window.location.pathname + '/make/outorders/xls?_state='+$scope.active+'&searchFilter='+angular.toJson($scope.searchFilterXls);
|
|
|
}
|
|
|
}, function (response) {
|
|
|
toaster.pop('error', '数据加载失败', response.data);
|
|
|
@@ -12914,7 +12914,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 + '/product/baseInfo/xls?_state='+$scope.active+'&keyword='+ ($scope.keywordXls || "");
|
|
|
+ window.location.href = window.location.origin + window.location.pathname + '/product/baseInfo/xls?_state='+$scope.active+'&keyword='+ ($scope.keywordXls || "");
|
|
|
}
|
|
|
}, function (response) {
|
|
|
toaster.pop('error', '数据加载失败', response.data);
|
|
|
@@ -21422,7 +21422,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 + '/purcProduct/xls?_state='+$scope.active+'&keyword='+ ($scope.keywordXls || "");
|
|
|
+ window.location.href = window.location.origin + window.location.pathname + '/purcProduct/xls?_state='+$scope.active+'&keyword='+ ($scope.keywordXls || "");
|
|
|
}
|
|
|
}, function (response) {
|
|
|
toaster.pop('error', '数据加载失败', response.data);
|