DESKTOP-B78GIPM\admin %!s(int64=2) %!d(string=hai) anos
pai
achega
41298e2975

+ 1 - 0
src/views/settings/components/pos/modules/PosRegionForm.vue

@@ -105,6 +105,7 @@ export default {
     }).then((res) => {
       if (res.success) {
         this.posTypeList = res.result.records;
+        this.model.posTypeId = this.posTypeList[0].id;
       }
     });
   },

+ 3 - 0
src/views/settings/components/pos/modules/PosTableForm.vue

@@ -182,6 +182,7 @@ export default {
     }).then((res) => {
       if (res.success) {
         this.posTypeList = res.result.records;
+        this.model.posTypeId = this.posTypeList[0].id;
       }
     });
     getAction("/pos/posTableType/list", {
@@ -191,6 +192,7 @@ export default {
     }).then((res) => {
       if (res.success) {
         this.tableTypeList = res.result.records;
+        this.model.posTableTypeId = this.tableTypeList[0].id;
       }
     });
     getAction("/pos/posRegion/list", {
@@ -200,6 +202,7 @@ export default {
     }).then((res) => {
       if (res.success) {
         this.regionList = res.result.records;
+        this.model.posRegionId = this.regionList[0].id;
       }
     });
   },

+ 1 - 0
src/views/settings/components/pos/modules/PosTableTypeForm.vue

@@ -105,6 +105,7 @@ export default {
     }).then((res) => {
       if (res.success) {
         this.posTypeList = res.result.records;
+        this.model.posTypeId = this.posTypeList[0].id;
       }
     });
   },

+ 2 - 0
src/views/settings/components/roomModules/modules/housePriceSchemeForm.vue

@@ -216,6 +216,7 @@
                     if(res.success){
                         if (res.code == 200 && res.result) {
                             this.customerSourceList = res.result;
+                            this.model.guestSource = res.result[0].id;
                         }
                     }
                 }).finally(() => {
@@ -227,6 +228,7 @@
                     if (res.success) {
                         this.guestTypeList = res.result;
                     }
+                    this.model.guestType = res.result[0].value;
                 });
                 //初始化字典 - 客人类型
                 initDictOptions('house_price_zmjr').then((res) => {

+ 3 - 0
src/views/settings/components/roomModules/roomNumSettings/roomNumForm.vue

@@ -157,11 +157,14 @@ export default {
     buildingTree().then((res) => {
       if (res.code == 200) {
         this.buildingTreeData = res.result;
+        console.log(res.result[0].children[0].id);
+        this.model.floorId = res.result[0].children[0].id;
       }
     });
     getAllLayouts().then((res) => {
       if (res.code == 200) {
         this.layouts = res.result.records;
+        this.model.layoutId = this.layouts[0].id;
       }
     });
     var _info = JSON.parse(localStorage.getItem("storeInfo"));