|
@@ -217,10 +217,7 @@
|
217
|
217
|
<div class="validation"></div>
|
218
|
218
|
</div>
|
219
|
219
|
<div class="form-group col-md-6 mt-2">
|
220
|
|
- <label v-if="week.askingPrice > 0" for="tsaPrice" class="uniSelectLabel"
|
221
|
|
- >ASKING PRICE</label
|
222
|
|
- >
|
223
|
|
- <float-label label="ASKING PRICE">
|
|
220
|
+ <float-label label="ASKING PRICE" fixed>
|
224
|
221
|
<currency-input
|
225
|
222
|
onclick="this.setSelectionRange(0, this.value.length)"
|
226
|
223
|
name="tsaPrice"
|
|
@@ -664,7 +661,11 @@ export default {
|
664
|
661
|
}
|
665
|
662
|
this.weekParam.arrivalDate = new Date(this.dateParam).toISOString().substring(0, 10);
|
666
|
663
|
this.weekParam.departureDate = new Date(this.depDateParam).toISOString().substring(0, 10);
|
667
|
|
- this.weekParam.pulbishedDate = new Date(this.pubDateParam).toISOString().substring(0, 19);
|
|
664
|
+ console.log(this.pubDateParam);
|
|
665
|
+ if (this.pubDateParam) {
|
|
666
|
+ this.weekParam.pulbishedDate = new Date(this.pubDateParam).toISOString().substring(0, 19);
|
|
667
|
+ }
|
|
668
|
+
|
668
|
669
|
//this.weekParam.regionId = this.weekParam.region.id;
|
669
|
670
|
this.weekParam.agentId = this.week.agentId;
|
670
|
671
|
//this.weekParam.bankedWith = this.week.bankedWith;
|
|
@@ -681,7 +682,7 @@ export default {
|
681
|
682
|
delete this.weekParam.owner.howMarried;
|
682
|
683
|
delete this.weekParam.cellNumber;
|
683
|
684
|
//console.log(JSON.stringify(this.weekParam));
|
684
|
|
- //console.log(this.weekParam);
|
|
685
|
+ console.log(this.weekParam);
|
685
|
686
|
this.editSave(this.weekParam).then(() => {
|
686
|
687
|
this.backToListView();
|
687
|
688
|
});
|