seimin 9 months ago
parent
commit
80f20235e3

+ 1 - 1
assets/views/newOrderSupplement.html

@@ -13,7 +13,7 @@
13 13
     <div class="newOrder_content" style="width: 100%">
14 14
       <div class="centerList" style="height: 250px;">
15 15
         <div class="body clearfix">
16
-          <div class="c_item c_item_value_textarea clearfix">
16
+          <div class="c_item c_item_value_textarea clearfix" ng-if="categorySelect.hasSimple != 1">
17 17
             <label><span class="colorRed">*</span>处理方案:</label>
18 18
             <textarea
19 19
               class="c_item_value"

+ 15 - 13
bower_components/angular-bootstrap/ui-bootstrap-tpls.js

@@ -2021,17 +2021,17 @@ angular.module('ui.bootstrap.datepicker', ['ui.bootstrap.dateparser', 'ui.bootst
2021 2021
                     scope.hours = (new Date(Date.parse(scope.$parent.model[scope.$parent.options.key]))).getHours();
2022 2022
                     scope.minutes = (new Date(Date.parse(scope.$parent.model[scope.$parent.options.key]))).getMinutes();
2023 2023
                 }else if(scope.$parent.incidentModel && scope.$parent.incidentModel.yyTime){
2024
-                    scope.hours = scope.$parent.incidentModel.yyTime.getHours();
2025
-                    scope.minutes = scope.$parent.incidentModel.yyTime.getMinutes();
2024
+                    scope.hours = (new Date(Date.parse(scope.$parent.incidentModel.yyTime))).getHours();
2025
+                    scope.minutes = (new Date(Date.parse(scope.$parent.incidentModel.yyTime))).getMinutes();
2026 2026
                 }else if(scope.$parent.incidentModel && scope.$parent.incidentModel.acceptDate && scope.$parent.endOpen){
2027
-                    scope.hours = scope.$parent.incidentModel.acceptDate.getHours();
2028
-                    scope.minutes = scope.$parent.incidentModel.acceptDate.getMinutes();
2027
+                    scope.hours = (new Date(Date.parse(scope.$parent.incidentModel.acceptDate))).getHours();
2028
+                    scope.minutes = (new Date(Date.parse(scope.$parent.incidentModel.acceptDate))).getMinutes();
2029 2029
                 }else if(scope.$parent.incidentModel && scope.$parent.incidentModel.responseHandleTime && scope.$parent.endOpen1){
2030
-                    scope.hours = scope.$parent.incidentModel.responseHandleTime.getHours();
2031
-                    scope.minutes = scope.$parent.incidentModel.responseHandleTime.getMinutes();
2030
+                    scope.hours = (new Date(Date.parse(scope.$parent.incidentModel.responseHandleTime))).getHours();
2031
+                    scope.minutes = (new Date(Date.parse(scope.$parent.incidentModel.responseHandleTime))).getMinutes();
2032 2032
                 }else if(scope.$parent.incidentModel && scope.$parent.incidentModel.handleTime && scope.$parent.endOpen2){
2033
-                    scope.hours = scope.$parent.incidentModel.handleTime.getHours();
2034
-                    scope.minutes = scope.$parent.incidentModel.handleTime.getMinutes();
2033
+                    scope.hours = (new Date(Date.parse(scope.$parent.incidentModel.handleTime))).getHours();
2034
+                    scope.minutes = (new Date(Date.parse(scope.$parent.incidentModel.handleTime))).getMinutes();
2035 2035
                 }
2036 2036
                 scope.incrementHours = function() {
2037 2037
                     addMinutes(1 * 60);
@@ -2052,16 +2052,18 @@ angular.module('ui.bootstrap.datepicker', ['ui.bootstrap.dateparser', 'ui.bootst
2052 2052
                 };
2053 2053
                 scope.updateHours = function(dates) { //手动填写时
2054 2054
                     //  scope.hours =(new Date(new Date(new Date(Date.parse(scope.$parent.model[scope.$parent.options.key]))).setHours( minutes))).getHours();
2055
+                    var hours = scope.hours = (new Date(Date.parse(dates))).getHours();
2056
+                    var minutes = scope.minutes = (new Date(Date.parse(dates))).getMinutes();
2055 2057
                     if(scope.$parent.model){
2056
-                        scope.$parent.model[scope.$parent.options.key] = moment(new Date(dates)).startOf('minute').format('YYYY-MM-DD HH:mm:ss');
2058
+                        scope.$parent.model[scope.$parent.options.key] = moment(new Date(dates)).format('YYYY-MM-DD HH:mm:ss');
2057 2059
                     }else if(scope.$parent.incidentModel && scope.$parent.incidentModel.yyTime){
2058
-                        scope.$parent.incidentModel.yyTime = moment(new Date(dates)).startOf('minute').format('YYYY-MM-DD HH:mm:ss');
2060
+                        scope.$parent.incidentModel.yyTime = moment((new Date(Date.parse(scope.$parent.incidentModel.yyTime))).setHours(hours, minutes)).startOf('minute').format('YYYY-MM-DD HH:mm:ss');
2059 2061
                     }else if(scope.$parent.incidentModel && scope.$parent.incidentModel.acceptDate && scope.$parent.endOpen){
2060
-                        scope.$parent.incidentModel.acceptDate = moment(new Date(dates)).startOf('minute').format('YYYY-MM-DD HH:mm:ss');
2062
+                        scope.$parent.incidentModel.acceptDate = moment((new Date(Date.parse(scope.$parent.incidentModel.acceptDate))).setHours(hours, minutes)).startOf('minute').format('YYYY-MM-DD HH:mm:ss');
2061 2063
                     }else if(scope.$parent.incidentModel && scope.$parent.incidentModel.responseHandleTime && scope.$parent.endOpen1){
2062
-                        scope.$parent.incidentModel.responseHandleTime = moment(new Date(dates)).startOf('minute').format('YYYY-MM-DD HH:mm:ss');
2064
+                        scope.$parent.incidentModel.responseHandleTime = moment((new Date(Date.parse(scope.$parent.incidentModel.responseHandleTime))).setHours(hours, minutes)).startOf('minute').format('YYYY-MM-DD HH:mm:ss');
2063 2065
                     }else if(scope.$parent.incidentModel && scope.$parent.incidentModel.handleTime && scope.$parent.endOpen2){
2064
-                        scope.$parent.incidentModel.handleTime = moment(new Date(dates)).startOf('minute').format('YYYY-MM-DD HH:mm:ss');
2066
+                        scope.$parent.incidentModel.handleTime = moment((new Date(Date.parse(scope.$parent.incidentModel.handleTime))).setHours(hours, minutes)).startOf('minute').format('YYYY-MM-DD HH:mm:ss');
2065 2067
                     }
2066 2068
                 }
2067 2069
             }