Browse Source

委外单的回复交期不能小于当前日期

git-svn-id: svn+ssh://10.10.101.21/source/platform/platform-b2b@8709 f3bf4e98-0cf0-11e4-a00c-a99a8b9d557d
hejq 9 years ago
parent
commit
4168a4b90b

+ 1 - 0
src/main/webapp/resources/js/index/app.js

@@ -8693,6 +8693,7 @@ define([ 'toaster', 'charts', 'ngTable', 'common/services', 'common/directives',
 		$scope.active = 'todo';
 		$scope.dateZoneText = '不限';
 		$scope.condition = {dateZone: -1};
+		$scope.nowdate = new Date();
 		$scope.changeDateZone = function(zone) {
 			$scope.condition.dateZone = zone;
 			$scope.dateZoneText = typeof zone == 'undefined' ? '半年前' : (zone == -1 ? '不限' : (zone == 1 ? '一个月内' : '半年内'));

+ 1 - 1
src/main/webapp/resources/tpl/index/make/order.html

@@ -319,7 +319,7 @@
 					<input type="text" ng-model="order.reply.delivery"
 						class="form-control" placeholder="回复交期"
 						datepicker-popup="yyyy-MM-dd" is-open="order.$opened"
-						min-date="order.date" ng-required="true" current-text="今天"
+						min-date="nowdate" ng-required="true" current-text="今天"
 						clear-text="清除" close-text="关闭"
 						datepicker-options="{formatDayTitle: 'yyyy年M月', formatMonth: 'M月', showWeeks: false}"
 						ng-focus="openDatePicker($event, order, '$opened')"> <span