Ver código fonte

Bid - Deactivated for now.

master
George Williams 5 anos atrás
pai
commit
5a806b2175
1 arquivos alterados com 18 adições e 17 exclusões
  1. 18
    17
      src/components/processFlow/makeOffer.vue

+ 18
- 17
src/components/processFlow/makeOffer.vue Ver arquivo

214
     canEdit: Boolean,
214
     canEdit: Boolean,
215
     item: Object,
215
     item: Object,
216
     bidId: Number,
216
     bidId: Number,
217
-    updateItem: Function,
218
-    isLoggedIn: Log.isLoggedIn()
217
+    updateItem: Function
219
   },
218
   },
220
   data() {
219
   data() {
221
     return {
220
     return {
222
       isDecline: false,
221
       isDecline: false,
223
       isSaved: false,
222
       isSaved: false,
224
       message: "",
223
       message: "",
225
-      isInfo: true
224
+      isInfo: true,
225
+      isLoggedIn: Log.isLoggedIn()
226
     };
226
     };
227
   },
227
   },
228
   methods: {
228
   methods: {
229
     ...mapActions("bid", ["getBid", "saveBid", "acceptBid", "declineBid"]),
229
     ...mapActions("bid", ["getBid", "saveBid", "acceptBid", "declineBid"]),
230
     SendOffer() {
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
     Accept() {
248
     Accept() {
248
       this.acceptBid(this.item.id);
249
       this.acceptBid(this.item.id);

Carregando…
Cancelar
Salvar