|
|
@@ -3000,11 +3000,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.getHistory = function(item) {
|
|
|
if(!item.history) {
|
|
|
PurcInquiry.getHistory({itemId: item.id}, function(data){
|
|
|
@@ -4619,6 +4625,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();
|
|
|
}
|
|
|
@@ -4868,6 +4880,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();
|
|
|
}
|
|
|
@@ -5339,11 +5357,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.autoCode = function(notice){
|
|
|
notice.send.code = $filter('date')(new Date(), 'yyMMddHHmmss-sss');
|