|
|
@@ -2298,11 +2298,17 @@ define([ 'toaster', 'charts', 'ngTable', 'common/services', 'common/directives',
|
|
|
$event.preventDefault();
|
|
|
$event.stopPropagation();
|
|
|
item[openParam] = !item[openParam];
|
|
|
+ };
|
|
|
+
|
|
|
+ $scope.openFilterDatePicker = function($event, item, openParam) {
|
|
|
+ $event.preventDefault();
|
|
|
+ $event.stopPropagation();
|
|
|
+ item[openParam] = !item[openParam];
|
|
|
if($scope.condition.dateFrom && $scope.condition.dateTo && !item[openParam]){
|
|
|
$scope.tableParams.reload();
|
|
|
}
|
|
|
};
|
|
|
-
|
|
|
+
|
|
|
$scope.parseDate = function(dateStr) {
|
|
|
if(dateStr)
|
|
|
return Date.parse(dateStr, 'yyyy-MM-dd');
|
|
|
@@ -2525,6 +2531,12 @@ define([ 'toaster', 'charts', 'ngTable', 'common/services', 'common/directives',
|
|
|
$scope.openDatePicker = function($event, item, openParam) {
|
|
|
$event.preventDefault();
|
|
|
$event.stopPropagation();
|
|
|
+ item[openParam] = !item[openParam];
|
|
|
+ };
|
|
|
+
|
|
|
+ $scope.openFilterDatePicker = function($event, item, openParam) {
|
|
|
+ $event.preventDefault();
|
|
|
+ $event.stopPropagation();
|
|
|
item[openParam] = !item[openParam];
|
|
|
if($scope.condition.dateFrom && $scope.condition.dateTo && !item[openParam]){
|
|
|
$scope.tableParams.reload();
|
|
|
@@ -2828,11 +2840,17 @@ define([ 'toaster', 'charts', 'ngTable', 'common/services', 'common/directives',
|
|
|
$event.preventDefault();
|
|
|
$event.stopPropagation();
|
|
|
item[openParam] = !item[openParam];
|
|
|
+ };
|
|
|
+
|
|
|
+ $scope.openFilterDatePicker = function($event, item, openParam) {
|
|
|
+ $event.preventDefault();
|
|
|
+ $event.stopPropagation();
|
|
|
+ item[openParam] = !item[openParam];
|
|
|
if($scope.condition.dateFrom && $scope.condition.dateTo && !item[openParam]){
|
|
|
$scope.tableParams.reload();
|
|
|
}
|
|
|
};
|
|
|
-
|
|
|
+
|
|
|
$scope.onReplyClick = function(change) {
|
|
|
if(change.$agreed) {
|
|
|
var reply = {id: change.id, agreed: Number(change.$agreed), replyRemark: change.replyRemark};
|
|
|
@@ -3876,11 +3894,17 @@ define([ 'toaster', 'charts', 'ngTable', 'common/services', 'common/directives',
|
|
|
$event.preventDefault();
|
|
|
$event.stopPropagation();
|
|
|
item[openParam] = !item[openParam];
|
|
|
+ };
|
|
|
+
|
|
|
+ $scope.openFilterDatePicker = function($event, item, openParam) {
|
|
|
+ $event.preventDefault();
|
|
|
+ $event.stopPropagation();
|
|
|
+ item[openParam] = !item[openParam];
|
|
|
if($scope.condition.dateFrom && $scope.condition.dateTo && !item[openParam]){
|
|
|
$scope.tableParams.reload();
|
|
|
}
|
|
|
};
|
|
|
-
|
|
|
+
|
|
|
// 搜索框回车
|
|
|
$scope.onSearch = function() {
|
|
|
$scope.tableParams.page(1);
|
|
|
@@ -5667,11 +5691,17 @@ define([ 'toaster', 'charts', 'ngTable', 'common/services', 'common/directives',
|
|
|
$event.preventDefault();
|
|
|
$event.stopPropagation();
|
|
|
item[openParam] = !item[openParam];
|
|
|
+ };
|
|
|
+
|
|
|
+ $scope.openFilterDatePicker = function($event, item, openParam) {
|
|
|
+ $event.preventDefault();
|
|
|
+ $event.stopPropagation();
|
|
|
+ item[openParam] = !item[openParam];
|
|
|
if($scope.condition.dateFrom && $scope.condition.dateTo && !item[openParam]){
|
|
|
$scope.tableParams.reload();
|
|
|
}
|
|
|
};
|
|
|
-
|
|
|
+
|
|
|
// 搜索框回车
|
|
|
$scope.onSearch = function() {
|
|
|
$scope.tableParams.page(1);
|
|
|
@@ -6297,11 +6327,17 @@ define([ 'toaster', 'charts', 'ngTable', 'common/services', 'common/directives',
|
|
|
$event.preventDefault();
|
|
|
$event.stopPropagation();
|
|
|
item[openParam] = !item[openParam];
|
|
|
+ };
|
|
|
+
|
|
|
+ $scope.openFilterDatePicker = function($event, item, openParam) {
|
|
|
+ $event.preventDefault();
|
|
|
+ $event.stopPropagation();
|
|
|
+ item[openParam] = !item[openParam];
|
|
|
if($scope.condition.dateFrom && $scope.condition.dateTo && !item[openParam]){
|
|
|
$scope.tableParams.reload();
|
|
|
}
|
|
|
};
|
|
|
-
|
|
|
+
|
|
|
$scope.openSend = function(index, sample) {
|
|
|
var modalInstance = $modal.open({
|
|
|
animation: true,
|
|
|
@@ -6468,11 +6504,17 @@ define([ 'toaster', 'charts', 'ngTable', 'common/services', 'common/directives',
|
|
|
$event.preventDefault();
|
|
|
$event.stopPropagation();
|
|
|
item[openParam] = !item[openParam];
|
|
|
+ };
|
|
|
+
|
|
|
+ $scope.openFilterDatePicker = function($event, item, openParam) {
|
|
|
+ $event.preventDefault();
|
|
|
+ $event.stopPropagation();
|
|
|
+ item[openParam] = !item[openParam];
|
|
|
if($scope.condition.dateFrom && $scope.condition.dateTo && !item[openParam]){
|
|
|
$scope.tableParams.reload();
|
|
|
}
|
|
|
};
|
|
|
-
|
|
|
+
|
|
|
$scope.parseDate = function(dateStr) {
|
|
|
if(dateStr)
|
|
|
return Date.parse(dateStr, 'yyyy-MM-dd');
|
|
|
@@ -6649,11 +6691,17 @@ define([ 'toaster', 'charts', 'ngTable', 'common/services', 'common/directives',
|
|
|
$event.preventDefault();
|
|
|
$event.stopPropagation();
|
|
|
item[openParam] = !item[openParam];
|
|
|
+ };
|
|
|
+
|
|
|
+ $scope.openFilterDatePicker = function($event, item, openParam) {
|
|
|
+ $event.preventDefault();
|
|
|
+ $event.stopPropagation();
|
|
|
+ item[openParam] = !item[openParam];
|
|
|
if($scope.condition.dateFrom && $scope.condition.dateTo && !item[openParam]){
|
|
|
$scope.tableParams.reload();
|
|
|
}
|
|
|
};
|
|
|
-
|
|
|
+
|
|
|
$scope.parseDate = function(dateStr) {
|
|
|
if(dateStr)
|
|
|
return Date.parse(dateStr, 'yyyy-MM-dd');
|
|
|
@@ -6782,11 +6830,17 @@ define([ 'toaster', 'charts', 'ngTable', 'common/services', 'common/directives',
|
|
|
$event.preventDefault();
|
|
|
$event.stopPropagation();
|
|
|
item[openParam] = !item[openParam];
|
|
|
+ };
|
|
|
+
|
|
|
+ $scope.openFilterDatePicker = function($event, item, openParam) {
|
|
|
+ $event.preventDefault();
|
|
|
+ $event.stopPropagation();
|
|
|
+ item[openParam] = !item[openParam];
|
|
|
if($scope.condition.dateFrom && $scope.condition.dateTo && !item[openParam]){
|
|
|
$scope.tableParams.reload();
|
|
|
}
|
|
|
};
|
|
|
-
|
|
|
+
|
|
|
// 搜索框回车
|
|
|
$scope.onSearch = function() {
|
|
|
$scope.tableParams.page(1);
|
|
|
@@ -6896,11 +6950,17 @@ define([ 'toaster', 'charts', 'ngTable', 'common/services', 'common/directives',
|
|
|
$event.preventDefault();
|
|
|
$event.stopPropagation();
|
|
|
item[openParam] = !item[openParam];
|
|
|
+ };
|
|
|
+
|
|
|
+ $scope.openFilterDatePicker = function($event, item, openParam) {
|
|
|
+ $event.preventDefault();
|
|
|
+ $event.stopPropagation();
|
|
|
+ item[openParam] = !item[openParam];
|
|
|
if($scope.condition.dateFrom && $scope.condition.dateTo && !item[openParam]){
|
|
|
$scope.tableParams.reload();
|
|
|
}
|
|
|
};
|
|
|
-
|
|
|
+
|
|
|
// 搜索框回车
|
|
|
$scope.onSearch = function(keyword) {
|
|
|
$scope.keyword = keyword;
|
|
|
@@ -6990,11 +7050,17 @@ define([ 'toaster', 'charts', 'ngTable', 'common/services', 'common/directives',
|
|
|
$event.preventDefault();
|
|
|
$event.stopPropagation();
|
|
|
item[openParam] = !item[openParam];
|
|
|
+ };
|
|
|
+
|
|
|
+ $scope.openFilterDatePicker = function($event, item, openParam) {
|
|
|
+ $event.preventDefault();
|
|
|
+ $event.stopPropagation();
|
|
|
+ item[openParam] = !item[openParam];
|
|
|
if($scope.condition.dateFrom && $scope.condition.dateTo && !item[openParam]){
|
|
|
$scope.tableParams.reload();
|
|
|
}
|
|
|
};
|
|
|
-
|
|
|
+
|
|
|
// 搜索框回车
|
|
|
$scope.onSearch = function() {
|
|
|
$scope.tableParams.page(1);
|
|
|
@@ -7083,11 +7149,17 @@ define([ 'toaster', 'charts', 'ngTable', 'common/services', 'common/directives',
|
|
|
$event.preventDefault();
|
|
|
$event.stopPropagation();
|
|
|
item[openParam] = !item[openParam];
|
|
|
+ };
|
|
|
+
|
|
|
+ $scope.openFilterDatePicker = function($event, item, openParam) {
|
|
|
+ $event.preventDefault();
|
|
|
+ $event.stopPropagation();
|
|
|
+ item[openParam] = !item[openParam];
|
|
|
if($scope.condition.dateFrom && $scope.condition.dateTo && !item[openParam]){
|
|
|
$scope.tableParams.reload();
|
|
|
}
|
|
|
};
|
|
|
-
|
|
|
+
|
|
|
// 搜索框回车
|
|
|
$scope.onSearch = function() {
|
|
|
$scope.tableParams.page(1);
|
|
|
@@ -7174,11 +7246,17 @@ define([ 'toaster', 'charts', 'ngTable', 'common/services', 'common/directives',
|
|
|
$event.preventDefault();
|
|
|
$event.stopPropagation();
|
|
|
item[openParam] = !item[openParam];
|
|
|
+ };
|
|
|
+
|
|
|
+ $scope.openFilterDatePicker = function($event, item, openParam) {
|
|
|
+ $event.preventDefault();
|
|
|
+ $event.stopPropagation();
|
|
|
+ item[openParam] = !item[openParam];
|
|
|
if($scope.condition.dateFrom && $scope.condition.dateTo && !item[openParam]){
|
|
|
$scope.tableParams.reload();
|
|
|
}
|
|
|
};
|
|
|
-
|
|
|
+
|
|
|
$scope.parseDate = function(dateStr) {
|
|
|
if(dateStr)
|
|
|
return Date.parse(dateStr, 'yyyy-MM-dd');
|
|
|
@@ -7291,11 +7369,17 @@ define([ 'toaster', 'charts', 'ngTable', 'common/services', 'common/directives',
|
|
|
$event.preventDefault();
|
|
|
$event.stopPropagation();
|
|
|
item[openParam] = !item[openParam];
|
|
|
+ };
|
|
|
+
|
|
|
+ $scope.openFilterDatePicker = function($event, item, openParam) {
|
|
|
+ $event.preventDefault();
|
|
|
+ $event.stopPropagation();
|
|
|
+ item[openParam] = !item[openParam];
|
|
|
if($scope.condition.dateFrom && $scope.condition.dateTo && !item[openParam]){
|
|
|
$scope.tableParams.reload();
|
|
|
}
|
|
|
};
|
|
|
-
|
|
|
+
|
|
|
// 计算单据的商品总数
|
|
|
$scope.getTotalProd = function(check) {
|
|
|
var total = 0;
|
|
|
@@ -7440,11 +7524,17 @@ define([ 'toaster', 'charts', 'ngTable', 'common/services', 'common/directives',
|
|
|
$event.preventDefault();
|
|
|
$event.stopPropagation();
|
|
|
item[openParam] = !item[openParam];
|
|
|
+ };
|
|
|
+
|
|
|
+ $scope.openFilterDatePicker = function($event, item, openParam) {
|
|
|
+ $event.preventDefault();
|
|
|
+ $event.stopPropagation();
|
|
|
+ item[openParam] = !item[openParam];
|
|
|
if($scope.condition.dateFrom && $scope.condition.dateTo && !item[openParam]){
|
|
|
$scope.tableParams.reload();
|
|
|
}
|
|
|
};
|
|
|
-
|
|
|
+
|
|
|
// 计算单据的商品总数
|
|
|
$scope.getTotalProd = function(check) {
|
|
|
var total = 0;
|
|
|
@@ -9515,6 +9605,12 @@ define([ 'toaster', 'charts', 'ngTable', 'common/services', 'common/directives',
|
|
|
$event.preventDefault();
|
|
|
$event.stopPropagation();
|
|
|
item[openParam] = !item[openParam];
|
|
|
+ };
|
|
|
+
|
|
|
+ $scope.openFilterDatePicker = function ($event, item, openParam) {
|
|
|
+ $event.preventDefault();
|
|
|
+ $event.stopPropagation();
|
|
|
+ item[openParam] = !item[openParam];
|
|
|
if ($scope.condition.dateFrom && $scope.condition.dateTo && !item[openParam]) {
|
|
|
$scope.tableParams.reload();
|
|
|
}
|
|
|
@@ -9755,11 +9851,17 @@ define([ 'toaster', 'charts', 'ngTable', 'common/services', 'common/directives',
|
|
|
$event.preventDefault();
|
|
|
$event.stopPropagation();
|
|
|
item[openParam] = !item[openParam];
|
|
|
+ };
|
|
|
+
|
|
|
+ $scope.openFilterDatePicker = function($event, item, openParam) {
|
|
|
+ $event.preventDefault();
|
|
|
+ $event.stopPropagation();
|
|
|
+ item[openParam] = !item[openParam];
|
|
|
if($scope.condition.dateFrom && $scope.condition.dateTo && !item[openParam]){
|
|
|
$scope.tableParams.reload();
|
|
|
}
|
|
|
};
|
|
|
-
|
|
|
+
|
|
|
// 搜索框回车
|
|
|
$scope.onSearch = function() {
|
|
|
$scope.tableParams.page(1);
|
|
|
@@ -9854,11 +9956,17 @@ define([ 'toaster', 'charts', 'ngTable', 'common/services', 'common/directives',
|
|
|
$event.preventDefault();
|
|
|
$event.stopPropagation();
|
|
|
item[openParam] = !item[openParam];
|
|
|
+ };
|
|
|
+
|
|
|
+ $scope.openFilterDatePicker = function($event, item, openParam) {
|
|
|
+ $event.preventDefault();
|
|
|
+ $event.stopPropagation();
|
|
|
+ item[openParam] = !item[openParam];
|
|
|
if($scope.condition.dateFrom && $scope.condition.dateTo && !item[openParam]){
|
|
|
$scope.tableParams.reload();
|
|
|
}
|
|
|
};
|
|
|
-
|
|
|
+
|
|
|
// 搜索框回车
|
|
|
$scope.onSearch = function() {
|
|
|
$scope.tableParams.page(1);
|
|
|
@@ -9951,11 +10059,17 @@ define([ 'toaster', 'charts', 'ngTable', 'common/services', 'common/directives',
|
|
|
$event.preventDefault();
|
|
|
$event.stopPropagation();
|
|
|
item[openParam] = !item[openParam];
|
|
|
+ };
|
|
|
+
|
|
|
+ $scope.openFilterDatePicker = function($event, item, openParam) {
|
|
|
+ $event.preventDefault();
|
|
|
+ $event.stopPropagation();
|
|
|
+ item[openParam] = !item[openParam];
|
|
|
if($scope.condition.dateFrom && $scope.condition.dateTo && !item[openParam]){
|
|
|
$scope.tableParams.reload();
|
|
|
}
|
|
|
};
|
|
|
-
|
|
|
+
|
|
|
// 打开回复
|
|
|
$scope.openReply = function(change) {
|
|
|
change.$editing = true;
|
|
|
@@ -10100,11 +10214,17 @@ define([ 'toaster', 'charts', 'ngTable', 'common/services', 'common/directives',
|
|
|
$event.preventDefault();
|
|
|
$event.stopPropagation();
|
|
|
item[openParam] = !item[openParam];
|
|
|
+ };
|
|
|
+
|
|
|
+ $scope.openFilterDatePicker = function($event, item, openParam) {
|
|
|
+ $event.preventDefault();
|
|
|
+ $event.stopPropagation();
|
|
|
+ item[openParam] = !item[openParam];
|
|
|
if($scope.condition.dateFrom && $scope.condition.dateTo && !item[openParam]){
|
|
|
$scope.tableParams.reload();
|
|
|
}
|
|
|
};
|
|
|
-
|
|
|
+
|
|
|
// 打开回复
|
|
|
$scope.openReply = function(change) {
|
|
|
change.$editing = true;
|
|
|
@@ -13095,6 +13215,12 @@ define([ 'toaster', 'charts', 'ngTable', 'common/services', 'common/directives',
|
|
|
$event.preventDefault();
|
|
|
$event.stopPropagation();
|
|
|
item[openParam] = !item[openParam];
|
|
|
+ };
|
|
|
+
|
|
|
+ $scope.openFilterDatePicker = function($event, item, openParam) {
|
|
|
+ $event.preventDefault();
|
|
|
+ $event.stopPropagation();
|
|
|
+ item[openParam] = !item[openParam];
|
|
|
if($scope.condition.dateFrom && $scope.condition.dateTo && !item[openParam]){
|
|
|
$scope.tableParams.reload();
|
|
|
}
|
|
|
@@ -14139,6 +14265,12 @@ define([ 'toaster', 'charts', 'ngTable', 'common/services', 'common/directives',
|
|
|
$event.preventDefault();
|
|
|
$event.stopPropagation();
|
|
|
item[openParam] = !item[openParam];
|
|
|
+ };
|
|
|
+
|
|
|
+ $scope.openFilterDatePicker = function($event, item, openParam) {
|
|
|
+ $event.preventDefault();
|
|
|
+ $event.stopPropagation();
|
|
|
+ item[openParam] = !item[openParam];
|
|
|
if($scope.condition.dateFrom && $scope.condition.dateTo && !item[openParam]){
|
|
|
$scope.tableParams.reload();
|
|
|
}
|
|
|
@@ -15345,6 +15477,12 @@ define([ 'toaster', 'charts', 'ngTable', 'common/services', 'common/directives',
|
|
|
$event.preventDefault();
|
|
|
$event.stopPropagation();
|
|
|
item[openParam] = !item[openParam];
|
|
|
+ };
|
|
|
+
|
|
|
+ $scope.openFilterDatePicker = function($event, item, openParam) {
|
|
|
+ $event.preventDefault();
|
|
|
+ $event.stopPropagation();
|
|
|
+ item[openParam] = !item[openParam];
|
|
|
if($scope.condition.dateFrom && $scope.condition.dateTo && !item[openParam]){
|
|
|
$scope.tableParams.reload();
|
|
|
}
|