|
|
|
@ -302,7 +302,10 @@ define(['angular', 'jquery', 'uiRouter', './monitoring/analysis-monitoring'],
|
|
|
|
|
$scope.riskEvent.receive_email_date = new Date();
|
|
|
|
|
// 默认设置邮件回复截止日期为收到邮件的七天后
|
|
|
|
|
var replyDeadline = angular.copy($scope.riskEvent.receive_email_date);
|
|
|
|
|
replyDeadline.setDate(replyDeadline.getDate() + 7);
|
|
|
|
|
if ($scope.riskEvent.order_type == 3)
|
|
|
|
|
replyDeadline.setDate(replyDeadline.getDate() + 3);
|
|
|
|
|
else
|
|
|
|
|
replyDeadline.setDate(replyDeadline.getDate() + 7);
|
|
|
|
|
$scope.riskEvent.reply_email_date = $filter('date')(replyDeadline, 'yyyy-MM-dd');
|
|
|
|
|
|
|
|
|
|
$scope.riskEvent.receive_email_date = $filter('date')($scope.riskEvent.receive_email_date, 'yyyy-MM-dd');
|
|
|
|
|