Browse Source

预定弹窗必选项默认选中第一个

DESKTOP-B78GIPM\admin 2 years ago
parent
commit
f8583b75b2
1 changed files with 4 additions and 1 deletions
  1. 4 1
      src/views/room/modules/schedule/ScheduleRoomForm.vue

+ 4 - 1
src/views/room/modules/schedule/ScheduleRoomForm.vue

@@ -410,7 +410,8 @@ export default {
           warrantType: 1,
           warrantType: 1,
           hourRoomId: "",
           hourRoomId: "",
           breakfastNum: 0,
           breakfastNum: 0,
-          vipCustomerId: ""
+          vipCustomerId: "",
+          customerType: 1,
         },
         },
 
 
         roomIds: [],
         roomIds: [],
@@ -504,6 +505,7 @@ export default {
     }).then((res) => {
     }).then((res) => {
       if (res.success) {
       if (res.success) {
         this.customerSourceList = res.result.records;
         this.customerSourceList = res.result.records;
+        this.model.orderInfo.customerSource = res.result.records[0].id;
       }
       }
     });
     });
     getAction("/business/busMemberCard/list", {
     getAction("/business/busMemberCard/list", {
@@ -522,6 +524,7 @@ export default {
     }).then((res) => {
     }).then((res) => {
       if (res.success) {
       if (res.success) {
         this.bookingdicWayList = res.result.records;
         this.bookingdicWayList = res.result.records;
+        this.model.orderInfo.bookingDicWay = res.result.records[0].id;
       }
       }
     });
     });
     getAction("/business/busSalesPerson/list", {
     getAction("/business/busSalesPerson/list", {