|
@@ -214,35 +214,36 @@ export default {
|
214
|
214
|
canEdit: Boolean,
|
215
|
215
|
item: Object,
|
216
|
216
|
bidId: Number,
|
217
|
|
- updateItem: Function,
|
218
|
|
- isLoggedIn: Log.isLoggedIn()
|
|
217
|
+ updateItem: Function
|
219
|
218
|
},
|
220
|
219
|
data() {
|
221
|
220
|
return {
|
222
|
221
|
isDecline: false,
|
223
|
222
|
isSaved: false,
|
224
|
223
|
message: "",
|
225
|
|
- isInfo: true
|
|
224
|
+ isInfo: true,
|
|
225
|
+ isLoggedIn: Log.isLoggedIn()
|
226
|
226
|
};
|
227
|
227
|
},
|
228
|
228
|
methods: {
|
229
|
229
|
...mapActions("bid", ["getBid", "saveBid", "acceptBid", "declineBid"]),
|
230
|
230
|
SendOffer() {
|
231
|
|
- this.getBid(0);
|
232
|
|
- this.bidItem.id = 0;
|
233
|
|
- this.bidItem.amount = this.item.offer;
|
234
|
|
- this.bidItem.comment = this.item.comment;
|
235
|
|
- if (this.isProperty) {
|
236
|
|
- this.bidItem.propertyId = this.item.id;
|
237
|
|
- } else {
|
238
|
|
- this.bidItem.timeshareWeekId = this.item.id;
|
239
|
|
- }
|
240
|
|
- this.saveBid(this.bidItem);
|
|
231
|
+ alert("Under Development");
|
|
232
|
+ // this.getBid(0);
|
|
233
|
+ // this.bidItem.id = 0;
|
|
234
|
+ // this.bidItem.amount = this.item.offer;
|
|
235
|
+ // this.bidItem.comment = this.item.comment;
|
|
236
|
+ // if (this.isProperty) {
|
|
237
|
+ // this.bidItem.propertyId = this.item.id;
|
|
238
|
+ // } else {
|
|
239
|
+ // this.bidItem.timeshareWeekId = this.item.id;
|
|
240
|
+ // }
|
|
241
|
+ // this.saveBid(this.bidItem);
|
241
|
242
|
|
242
|
|
- this.item = [];
|
243
|
|
- this.isSaved = true;
|
244
|
|
- this.message = "Offer was submitted.";
|
245
|
|
- this.isInfo = true;
|
|
243
|
+ // this.item = [];
|
|
244
|
+ // this.isSaved = true;
|
|
245
|
+ // this.message = "Offer was submitted.";
|
|
246
|
+ // this.isInfo = true;
|
246
|
247
|
},
|
247
|
248
|
Accept() {
|
248
|
249
|
this.acceptBid(this.item.id);
|