Commit 7f96bd09 by Jansa Jose

dc

parent 6472a2ef
...@@ -618,7 +618,7 @@ ...@@ -618,7 +618,7 @@
</div> </div>
<div class="row"> <div class="row">
<div class="col-md-6"> <div class="col-md-6">
<input placeholder="LAST MAINTENANCE DATE" type="" bsDatepicker name="dob" [ngModel]="" (ngModelChange)="get_newdate($event)"> <input placeholder="LAST MAINTENANCE DATE" type="" bsDatepicker name="dob" [ngModel]="(wizardData && wizardData.vechile_info && wizardData.vechile_info.lastMaintanceDate)?wizardData.vechile_info.lastMaintanceDate:''" (ngModelChange)="get_newdate($event)">
</div> </div>
<div class="col-md-6"> <div class="col-md-6">
<input placeholder="APPROX VEHICLE MILEAGE" type="" [ngModel]="testMilage" (ngModelChange)="get_newmilage($event)"> <input placeholder="APPROX VEHICLE MILEAGE" type="" [ngModel]="testMilage" (ngModelChange)="get_newmilage($event)">
...@@ -822,12 +822,10 @@ ...@@ -822,12 +822,10 @@
</div> </div>
</div> </div>
</div> </div>
<!-- QUOTES-MODAL-ENDS--> <!-- QUOTES-MODAL-ENDS-->
<!-- <button class="add_btn" data-toggle="modal" data-target="#success">Show Success</button> -->
<!-- BOOKING-SUCCESS-MODAL-STARTS --> <!-- BOOKING-SUCCESS-MODAL-STARTS -->
<div class="modal" id="success"> <div class="modal" id="success">
<div class="modal-dialog modal-full"> <div class="modal-dialog modal-full">
<div class="modal-content login_modal_wrapper"> <div class="modal-content login_modal_wrapper">
...@@ -835,6 +833,4 @@ ...@@ -835,6 +833,4 @@
</div> </div>
</div> </div>
</div> </div>
<!-- BOOKING-SUCCESS-MODAL-ENDS --> <!-- BOOKING-SUCCESS-MODAL-ENDS -->
...@@ -281,7 +281,6 @@ export class DashboardComponent implements OnInit { ...@@ -281,7 +281,6 @@ export class DashboardComponent implements OnInit {
this.cfautocomplete.addListener("place_changed", () => { this.cfautocomplete.addListener("place_changed", () => {
this.ngZone.run(() => { this.ngZone.run(() => {
let places: google.maps.places.PlaceResult = this.cfautocomplete.getPlace(); let places: google.maps.places.PlaceResult = this.cfautocomplete.getPlace();
console.log(places);
if (places == undefined || places == null || places === undefined || places === null || if (places == undefined || places == null || places === undefined || places === null ||
places.geometry == undefined || places.geometry == null || places.geometry === undefined || places.geometry === null || places.geometry == undefined || places.geometry == null || places.geometry === undefined || places.geometry === null ||
places.formatted_address == undefined || places.formatted_address == null || places.formatted_address === undefined || places.formatted_address === null) { places.formatted_address == undefined || places.formatted_address == null || places.formatted_address === undefined || places.formatted_address === null) {
...@@ -294,7 +293,6 @@ export class DashboardComponent implements OnInit { ...@@ -294,7 +293,6 @@ export class DashboardComponent implements OnInit {
'pickup_lat':places.geometry.location.lat(), 'pickup_lat':places.geometry.location.lat(),
'pickup_lng':places.geometry.location.lng() 'pickup_lng':places.geometry.location.lng()
}; };
console.log(this.wizardData);
this.googlesearchLocError = false; this.googlesearchLocError = false;
this.lat = places.geometry.location.lat(); this.lat = places.geometry.location.lat();
this.lng = places.geometry.location.lng(); this.lng = places.geometry.location.lng();
...@@ -532,10 +530,13 @@ export class DashboardComponent implements OnInit { ...@@ -532,10 +530,13 @@ export class DashboardComponent implements OnInit {
'maker':vehData.car_maker, 'maker':vehData.car_maker,
'modelName':vehData.car_model, 'modelName':vehData.car_model,
'modelYear':vehData.car_model_year, 'modelYear':vehData.car_model_year,
'maintanenceInterval':vehData.maintanence_interval} 'maintanenceInterval':vehData.maintanence_interval,
console.log(thisObj.wizardData['vechile_info']); 'lastMaintanceDate':vehData.last_maintenance_date
};
thisObj.wizardData['customer_vehicle_id'] = vehData.customer_veh_id;
} }
}); });
this.getIssueData(); this.getIssueData();
} }
...@@ -639,7 +640,6 @@ export class DashboardComponent implements OnInit { ...@@ -639,7 +640,6 @@ export class DashboardComponent implements OnInit {
thisObj.selectedIssues.forEach(function (selIssues) { thisObj.selectedIssues.forEach(function (selIssues) {
selSubIssues.push(selIssues.sub_issue_id); selSubIssues.push(selIssues.sub_issue_id);
}); });
console.log(this.wizardData)
let searchData = {'pickup_data':this.wizardData.pickup_data,'sub_issues':selSubIssues} let searchData = {'pickup_data':this.wizardData.pickup_data,'sub_issues':selSubIssues}
this.webService.post_data('getNearByMechanics',searchData).subscribe(response => { this.webService.post_data('getNearByMechanics',searchData).subscribe(response => {
if(response.status == '1'){ if(response.status == '1'){
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment