浏览代码

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

DESKTOP-B78GIPM\admin 2 年之前
父节点
当前提交
f8583b75b2
共有 1 个文件被更改,包括 4 次插入1 次删除
  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,
           hourRoomId: "",
           breakfastNum: 0,
-          vipCustomerId: ""
+          vipCustomerId: "",
+          customerType: 1,
         },
 
         roomIds: [],
@@ -504,6 +505,7 @@ export default {
     }).then((res) => {
       if (res.success) {
         this.customerSourceList = res.result.records;
+        this.model.orderInfo.customerSource = res.result.records[0].id;
       }
     });
     getAction("/business/busMemberCard/list", {
@@ -522,6 +524,7 @@ export default {
     }).then((res) => {
       if (res.success) {
         this.bookingdicWayList = res.result.records;
+        this.model.orderInfo.bookingDicWay = res.result.records[0].id;
       }
     });
     getAction("/business/busSalesPerson/list", {