LAPTOP-FO2T5SIU\35838 6 ay önce
ebeveyn
işleme
5a66a49236

+ 31 - 20
src/views/customerManagement/roomChose/addHouse.vue

@@ -180,29 +180,37 @@ export default {
             const _this = this
             _this.loading = true
             _this.AllData = []
-            const postData = {
-                customerManagementId: val.customerManagementId
-            }
-            // let postData
-            // if (val.roomSelectionInfoId) {
-            //     postData = {
-            //         id: val.roomSelectionInfoId
-            //     }
-            // } else if (val.customerManagementId) {
-            //     postData = {
-            //         customerManagementId: val.customerManagementId
-            //     }
+            // const postData = {
+            //     customerManagementId: val.customerManagementId
             // }
-            this.baseRequest('listAll', postData).then((res) => {
-                if (res.data) {
-                    res.data.forEach(function(item) {
-                        const json = _this.getItemJson(item)
+            let postData
+            if (val.houseId) {
+                postData = {
+                    id: val.houseId
+                }
+                this.baseRoomRequest('getById', postData).then((res) => {
+                    if (res.data) {
+                        const json = _this.getItemJson(res.data)
                         _this.AllData.push(json)
-                    })
+                    }
+                    _this.loading = false
+                }).catch(() => {
+                })
+            } else {
+                postData = {
+                    customerManagementId: val.customerManagementId
                 }
-                _this.loading = false
-            }).catch(() => {
-            })
+                this.baseRequest('listAll', postData).then((res) => {
+                    if (res.data) {
+                        res.data.forEach(function(item) {
+                            const json = _this.getItemJson(item)
+                            _this.AllData.push(json)
+                        })
+                    }
+                    _this.loading = false
+                }).catch(() => {
+                })
+            }
         },
         getItemJson: function(item) {
             item.decorationSituationStr = this.dc_map.DECORATION_SITUATION[item.decorationSituation]
@@ -303,6 +311,9 @@ export default {
         },
         baseCustomerRequest(opUrl, postData) {
             return this.$channel.globeRequest('CustomerManagementController', opUrl, postData, 'project')
+        },
+        baseRoomRequest(opUrl, postData) {
+            return this.$channel.globeRequest('ParkRoomController', opUrl, postData, 'project')
         }
 
     }

+ 1 - 1
src/views/receiveRefundsManagement/intentionalDepositManagement/toDeposit.vue

@@ -249,7 +249,7 @@ export default {
                 customerManagementId: this.form.customerManagementId,
                 groupId: this.form.groupId,
                 discId: this.form.discId,
-                roomSelectionInfoId: this.form.roomSelectionInfoId
+                houseId: this.form.houseId
             }
             // 新vue时调用的方法
             this.$nextTick(() => {

+ 0 - 1
src/views/transactionRecord/collectionRecordIndex.vue

@@ -157,7 +157,6 @@
       :close-on-press-escape="false"
       :close-on-click-modal="false"
       append-to-body
-      @close="handleClose"
     >
       <ncc-submit-index v-if="dialogVisible" ref="nccSubmit" @editClose="handleClose" />
     </el-dialog>

+ 0 - 1
src/views/transactionRecord/convertRecordIndex.vue

@@ -125,7 +125,6 @@
       :close-on-press-escape="false"
       :close-on-click-modal="false"
       append-to-body
-      @close="handleClose"
     >
       <ncc-submit-index v-if="dialogVisible" ref="nccSubmit" @editClose="handleClose" />
     </el-dialog>

+ 0 - 1
src/views/transactionRecord/refundRecordIndex.vue

@@ -128,7 +128,6 @@
       :close-on-press-escape="false"
       :close-on-click-modal="false"
       append-to-body
-      @close="handleClose"
     >
       <ncc-submit-index v-if="dialogVisible" ref="nccSubmit" @editClose="handleClose" />
     </el-dialog>