|
@@ -5775,6 +5775,22 @@ define(['toaster', 'charts', 'ngTable', 'common/services', 'common/directives',
|
|
|
$scope.enterprise = data;
|
|
$scope.enterprise = data;
|
|
|
});
|
|
});
|
|
|
|
|
|
|
|
|
|
+ $scope.isOverDue = function (date) {
|
|
|
|
|
+ if (date) {
|
|
|
|
|
+ var ndate = new Date();
|
|
|
|
|
+ ndate.setHours(23, 59, 59 ,999);
|
|
|
|
|
+ ndate.setDate(ndate.getDate());
|
|
|
|
|
+ var timestamp = Date.parse(ndate);
|
|
|
|
|
+ if (date > timestamp) {
|
|
|
|
|
+ return true;
|
|
|
|
|
+ } else {
|
|
|
|
|
+ return false;
|
|
|
|
|
+ }
|
|
|
|
|
+ } else {
|
|
|
|
|
+ return true;
|
|
|
|
|
+ }
|
|
|
|
|
+ }
|
|
|
|
|
+
|
|
|
// 转客户询价
|
|
// 转客户询价
|
|
|
$scope.transtoInquiry = function (inquiryItem) {
|
|
$scope.transtoInquiry = function (inquiryItem) {
|
|
|
publicInquiry.quotationInfo({id: inquiryItem.id}, function(data) {
|
|
publicInquiry.quotationInfo({id: inquiryItem.id}, function(data) {
|