Explorar el Código

删除debugger

覃浩 hace 2 años
padre
commit
2ec68be382
Se han modificado 32 ficheros con 90 adiciones y 71 borrados
  1. 1 1
      src/components/layouts/TabLayout.vue
  2. 1 1
      src/mixins/JeecgListMixin.js
  3. 1 1
      src/views/fangwu/tabList/maintenanceRecords.vue
  4. 1 1
      src/views/markets/modules/agreementUnit/agreementAccount.vue
  5. 1 1
      src/views/pos/modules/goodStock/goodsForm.vue
  6. 1 1
      src/views/pos/tablediandangallery.vue
  7. 1 1
      src/views/room/calendarfangtai.vue
  8. 47 28
      src/views/room/fangtailive.vue
  9. 1 1
      src/views/room/guestorders.vue
  10. 2 2
      src/views/room/leasegoods.vue
  11. 1 1
      src/views/room/membermessage.vue
  12. 8 8
      src/views/room/modules/checkIn/BillRoomForm.vue
  13. 3 3
      src/views/room/modules/checkIn/BillRoomInfo.vue
  14. 1 1
      src/views/room/modules/checkIn/EditCustomerTypeForm.vue
  15. 1 1
      src/views/room/modules/checkIn/Payment.vue
  16. 1 1
      src/views/room/modules/checkIn/PaymentModal.vue
  17. 1 1
      src/views/room/modules/checkIn/RefundModal.vue
  18. 1 1
      src/views/room/modules/checkIn/SelectRoomForm.vue
  19. 1 1
      src/views/room/modules/checkIn/batchCardDetailCopy.vue
  20. 1 1
      src/views/room/modules/checkIn/liveBatchCardForm.vue
  21. 1 1
      src/views/room/modules/checkIn/liveBatchCardModal.vue
  22. 1 1
      src/views/room/modules/fangtaiModal/continuedModal/continuedForm.vue
  23. 2 2
      src/views/room/modules/fangtaiModal/exchangeHouses/exchangeHousesForm.vue
  24. 1 1
      src/views/room/modules/membergoodsmanage/BusMemberGoodsManageForm.vue
  25. 1 1
      src/views/settings/components/roomModules/goodStock/goodsForm.vue
  26. 1 1
      src/views/settings/components/roomModules/moreSet/commodity.vue
  27. 1 1
      src/views/settings/components/roomModules/moreSet/goodImg.vue
  28. 2 2
      src/views/settings/components/roomModules/roomGen.vue
  29. 1 1
      src/views/settings/components/roomModules/roomLayoutDetailForm/roomLayoutImage.vue
  30. 1 1
      src/views/stock/goodsModal/goodStock/goodsForm.vue
  31. 1 1
      src/views/stock/goodsModal/goodType/stockTypeForm.vue
  32. 1 1
      src/views/stock/modules/SupplierInGoods.vue

+ 1 - 1
src/components/layouts/TabLayout.vue

@@ -231,7 +231,7 @@
           this.$message.warning('这是最后一页,不能再关闭了啦')
           return
         }
-        debugger
+        
         console.log("this.pageList ",this.pageList );
         let removeRoute = this.pageList.filter(item => item.fullPath == key)
         this.pageList = this.pageList.filter(item => item.fullPath !== key)

+ 1 - 1
src/mixins/JeecgListMixin.js

@@ -84,7 +84,7 @@ export const JeecgListMixin = {
         this.ipagination.current = 1;
       }
       var params = this.getQueryParams();//查询条件
-      // debugger
+      // 
       this.loading = true;
       await getAction(this.url.list, params).then((res) => {
         console.log(res);

+ 1 - 1
src/views/fangwu/tabList/maintenanceRecords.vue

@@ -173,7 +173,7 @@ export default {
             }
         });
         // HousekeepingApi.getAllData().then(res=>{
-        //     debugger
+        //     
         //     console.log(res);
         // })
     },

+ 1 - 1
src/views/markets/modules/agreementUnit/agreementAccount.vue

@@ -503,7 +503,7 @@ export default {
             })
         },
         getAccount(){
-          debugger
+          
             console.log(this.queryParam)
             var that = this;
             getAction(this.url.queryAgreementAccount, {

+ 1 - 1
src/views/pos/modules/goodStock/goodsForm.vue

@@ -199,7 +199,7 @@ export default {
     onChange(e) {
       console.log(e);
       this.model.goodType = e[e.length - 1];
-      debugger
+      
       console.log(this.model.goodType);
     },
     handleChange(e, options) {

+ 1 - 1
src/views/pos/tablediandangallery.vue

@@ -511,7 +511,7 @@ export default {
           },
         });
       } else {
-        debugger
+        
         console.log(this.selectTable)
         this.$emit('retId', this.selectTable.id, this.selectTable.state,this.selectTable.name)
         // this.$router.push({

+ 1 - 1
src/views/room/calendarfangtai.vue

@@ -743,7 +743,7 @@ export default {
 
     },
     countRooms() {
-      debugger
+      
       let countObjs = []
       this.columnsCount = []
       console.log(this.roomCount, 'roomCount')

+ 47 - 28
src/views/room/fangtailive.vue

@@ -1150,7 +1150,11 @@ export default {
       // 房间类型
       checkedCestList: [],
       // 房间信息暂存数据
-      rouseinfoRoomList:[]
+      rouseinfoRoomList:[],
+      // 老房态数据
+      oldRoomStatusList: [],
+      // 老来源数据
+      oldCustomerSourceList: []
     }
   },
   watch: {
@@ -1250,6 +1254,9 @@ export default {
           list.push({ label: item.itemText, value: item.id })
         })
         this.customerSourceList = list
+        this.oldCustomerSourceList = list
+        console.log(this.customerSourceList);
+        console.log(this.oldCustomerSourceList);
       }
     })
     getAction('/rooms/cesRoomLayout/list', {
@@ -1279,6 +1286,7 @@ export default {
           list.push({ label: item.title, value: item.value })
         })
         this.roomStatusList = list
+        this.oldRoomStatusList = list
       }
     })
     this.loadData()
@@ -1612,7 +1620,7 @@ export default {
         this.$message.warning(e.message)
         return
       }
-      // debugger
+      // 
       this.$refs.ModalBillRoomForm.addList(selectRoom, e.key)
       this.$refs.ModalBillRoomForm.title =
         e.key == '1' ? '散客入住登记' : '团队入住登记'
@@ -2363,11 +2371,14 @@ export default {
         }
       })
     },
-    // 处理房态数据代码
+    // 处理房态数
     houseStateNumbers() {
-      if(this.isNumber) {
-        return
-      }
+      // if(this.isNumber) {
+      //   return
+      // }
+      // console.log(this.roomStatusList);
+      // console.log(this.oldRoomStatusList);
+      this.roomStatusList = this.oldRoomStatusList
       // 处理房态数据
       var tempGreen = 0
       var tempBlack = 0
@@ -2426,6 +2437,32 @@ export default {
       })
       this.roomStatusList = templist
     },
+    // 处理来源数字
+    handleSourceFigure() {
+      this.roomList.forEach(item => {
+        item.rooms.forEach(cust => {
+          if (cust.livingData.livingOrder !== null) {
+            this.screeningQuantity(cust.livingData.livingOrder.customerSource)
+          }
+          if (cust.bookingData.bookingOrder !== null) {
+            this.screeningQuantity(cust.bookingData.bookingOrder.customerSource)
+          }
+        })
+      })
+      console.log(this.customerSourceList);
+      this.customerSourceList.forEach(item => {
+        // if(this.isNumber) {
+        //   return
+        // }
+        if ('figure' in item) {
+          let tempindex = this.customerSourceList.findIndex(index => index == item)
+          this.customerSourceList.splice(tempindex,1,{label: item.label + item.figure,value: item.value})
+        } else {
+          let tempindex = this.customerSourceList.findIndex(index => index == item)
+          this.customerSourceList.splice(tempindex,1,{label: item.label + 0,value: item.value})
+        }
+      })
+    },
     modalBillRoomFormOk(e) {
       this.loadData()
       console.log('e', e)
@@ -2490,29 +2527,11 @@ export default {
           // 处理房态
           this.houseStateNumbers()
           // 处理来源
-          this.roomList.forEach(item => {
-            item.rooms.forEach(cust => {
-              if (cust.livingData.livingOrder !== null) {
-                this.screeningQuantity(cust.livingData.livingOrder.customerSource)
-              }
-              if (cust.bookingData.bookingOrder !== null) {
-                this.screeningQuantity(cust.bookingData.bookingOrder.customerSource)
-              }
-            })
-          })
-          this.customerSourceList.forEach(item => {
-            if(this.isNumber) {
-              return
-            }
-            if ('figure' in item) {
-              let tempindex = this.customerSourceList.findIndex(index => index == item)
-              this.customerSourceList.splice(tempindex,1,{label: item.label + item.figure,value: item.value})
-            } else {
-              let tempindex = this.customerSourceList.findIndex(index => index == item)
-              this.customerSourceList.splice(tempindex,1,{label: item.label + 0,value: item.value})
-            }
-          })
           console.log(this.customerSourceList);
+          console.log(this.oldCustomerSourceList);
+          this.customerSourceList = this.oldCustomerSourceList
+          
+          this.handleSourceFigure()
           
           // 处理房型
           this.roomList.forEach(item => {

+ 1 - 1
src/views/room/guestorders.vue

@@ -317,7 +317,7 @@ export default {
         });
       } else {
         // 入住单
-        debugger
+        
         console.log(record)
         this.$refs.ModalBillRoomInfo.add(record.bookingOrderId, 1, null, record.id);
         this.$refs.ModalBillRoomInfo.title = "账单";

+ 2 - 2
src/views/room/leasegoods.vue

@@ -345,7 +345,7 @@ export default {
     },
     handleChange(value, key, column) {
       console.log('fff', value, key, column)
-      debugger
+      
       const newData = [...this.dataSource]
       const target = newData.find(item => key === item.id)
       if (target) {
@@ -520,7 +520,7 @@ export default {
       let find = this.roomsList.find(
         (t) => t.livingOrderId === id
       )
-      debugger
+      
       let roomId = find.roomId
       this.dataSource.push({
         id: 9999,

+ 1 - 1
src/views/room/membermessage.vue

@@ -393,7 +393,7 @@ export default {
       console.log(target.remindDate)
       if (target.remindDate != null) {
         target.remindDate = moment(target.remindDate).format('YYYY-MM-DD HH:mm:ss')
-        debugger
+        
       }
       if (target.validDate != null) {
         target.validDate = moment(target.validDate).format('YYYY-MM-DD HH:mm:ss')

+ 8 - 8
src/views/room/modules/checkIn/BillRoomForm.vue

@@ -1341,7 +1341,7 @@ export default {
       }
     },
     'model.orderInfo.bookingType'(val, old) {
-      debugger
+      
       if (val) {
         this.model.orderInfo.dayCount = this.daysBetween(this.model.orderInfo.arrivalTime2, this.model.orderInfo.dueOutTime2)
       }
@@ -1434,7 +1434,7 @@ export default {
       }
     },
     paymentSplit(value) {
-      debugger
+      
       if (this.loadRemenmberPayState) {
         console.log(1111111, this.loadRemenmberPayState)
         if (!value) {
@@ -1580,7 +1580,7 @@ export default {
     //
     // getAction('/business/busHousePriceSchemeLayout/list?hotelId=' + this.model.hotelId, {}
     // ).then((res) => {
-    //   debugger
+    //   
     //   if (res.success) {
     //     this.housePriceSchemeList = res.result;
     //   }
@@ -1911,7 +1911,7 @@ export default {
         var payType = this.payTypeList[0]
         let plusDeposit = this.bookingPaidMoney
         console.log(this.model.roomPrices)
-        debugger
+        
         this.model.roomPrices.forEach((item) => {
           // 未支付的押金扣减掉预约支付的押金
           var money = item.roomFee
@@ -1987,7 +1987,7 @@ export default {
               }
             }
           } else {
-            debugger
+            
             var find = orderFees.find(
                 (t) => t.subjectType == 2 && t.roomId == this.model.roomIds[0].id
             )
@@ -2523,7 +2523,7 @@ export default {
         if (item.bookingYj) {
           continue
         }
-        debugger
+        
         if (item.editPrice && item.editPrice.length > 0) {
           item.editPrice.forEach((p) => {
             money += p
@@ -2789,7 +2789,7 @@ export default {
       }
       console.log(orderInfo)
       console.log(this.modelDefault)
-      debugger
+      
       if (this.modelDefault.roomIds.length > 0) {
         this.edit(this.modelDefault)
       }
@@ -2799,7 +2799,7 @@ export default {
       this.activeKey = record.roomIds[0].id
       this.visible = true
       this.model = Object.assign({}, record)
-      debugger
+      
       console.log('this.model', this.model)
       if (this.model.roomIds && this.model.roomIds.length > 0) {
         this.roomIdsIndexId = this.model.roomIds[0].id

+ 3 - 3
src/views/room/modules/checkIn/BillRoomInfo.vue

@@ -1539,7 +1539,7 @@ export default {
       this.$refs.modalPaymentForm.showYinshou = false
     },
     tabChange(e) {
-      // debugger
+      // 
       console.log(e)
       this.selectRoomId = e
       if (e == '1') {
@@ -1573,7 +1573,7 @@ export default {
       var msg = ''
       if (text == 1) {
         msg = '押金'
-        // debugger
+        // 
         if (record.remark != null && record.remark != '') {
           msg = record.remark
         }
@@ -1759,7 +1759,7 @@ export default {
       getAction('/business/busOrderFee/strike-balance-page', { bookingOrderId: this.model.orderInfo.id })
           .then(res => {
             if (res.success) {
-              // debugger
+              // 
               if (res.result && res.result.records.length > 0) {
                 // 未支付的费用账单,oldfeesList用于存放所有费用账单,feesList为当前房间账单
                 this.strikeList = res.result.records

+ 1 - 1
src/views/room/modules/checkIn/EditCustomerTypeForm.vue

@@ -304,7 +304,7 @@ export default {
     chnageCustomerType(value) {
       if (value === 1 && value === 4) {
         console.log(value)
-        debugger
+        
         this.model.vipCustomerId = null
         this.model.contractTeamProtocolId = null
         this.model.contractTeamProtocolName = null

+ 1 - 1
src/views/room/modules/checkIn/Payment.vue

@@ -517,7 +517,7 @@ export default {
           var fees = []
           console.log(this.model)
           console.log(this.model.subjectType)
-          debugger
+          
           if (this.model.coupon) {
             fees.push({
               feeType: this.model.feeType,

+ 1 - 1
src/views/room/modules/checkIn/PaymentModal.vue

@@ -52,7 +52,7 @@ export default {
       this.visible = false;
     },
     handleOk() {
-      debugger
+      
       this.$refs.realForm.submitForm();
     },
     submitCallback(e) {

+ 1 - 1
src/views/room/modules/checkIn/RefundModal.vue

@@ -163,7 +163,7 @@ export default {
       }
       this.feeList.forEach(e => {
         console.log(e.prerefund)
-        debugger
+        
         if (e.prerefund === 0 || e.prerefund === null) { return }
         let refundFee = {
           id: e.id,

+ 1 - 1
src/views/room/modules/checkIn/SelectRoomForm.vue

@@ -311,7 +311,7 @@ export default {
             console.log('e', e)
             var list = JSON.parse(JSON.stringify(this.oldroomList))
             console.log(list)
-            debugger
+            
             if (this.checkLayoutList.length > 0) {
               list = list.reduce((acc, curr) => {
                     const floorRooms = curr.floorRooms.filter((room) =>

+ 1 - 1
src/views/room/modules/checkIn/batchCardDetailCopy.vue

@@ -159,7 +159,7 @@ export default {
             console.log(index)
             if (index !== -1) {
               this.roomList[index].iscard = true
-              // debugger
+              // 
               if (this.isChecked) {
                 if (index < this.roomList.length - 1) {
                   this.selectedRowKeys = [this.roomList[index + 1].id]

+ 1 - 1
src/views/room/modules/checkIn/liveBatchCardForm.vue

@@ -474,7 +474,7 @@ export default {
         })
       })
       console.log(findRoom)
-      debugger
+      
       if (findRoom.length === 0) {
         this.$message.warning('未找到房间:' + this.roomNum)
       } else {

+ 1 - 1
src/views/room/modules/checkIn/liveBatchCardModal.vue

@@ -56,7 +56,7 @@ export default {
     },
     submitCallback(e) {
       console.log("e", e);
-      debugger
+      
       this.$emit("ok", e);
       this.visible = false;
     },

+ 1 - 1
src/views/room/modules/fangtaiModal/continuedModal/continuedForm.vue

@@ -389,7 +389,7 @@ export default {
       const diffDays = (secondDate - firstDate) / oneDay;
       this.isAddDate = diffDays >= 0;
       if (Math.round(diffDays) <= 0) {
-        debugger
+        
         this.PriceData = []
       }
       return Math.round(diffDays);

+ 2 - 2
src/views/room/modules/fangtaiModal/exchangeHouses/exchangeHousesForm.vue

@@ -455,7 +455,7 @@ export default {
             })
         },
         roomSchemeChange(e) {
-          debugger
+          
           console.log(this.oldTimeData)
           if (this.roomScheme === 1) {
             this.timeData = JSON.parse(JSON.stringify(this.oldTimeData))
@@ -545,7 +545,7 @@ export default {
             this.edit(this.modelDefault)
         },
         edit(record) {
-          debugger
+          
           console.log(record)
             this.tableData = [{
               roomName: record.roomInfo.name,

+ 1 - 1
src/views/room/modules/membergoodsmanage/BusMemberGoodsManageForm.vue

@@ -221,7 +221,7 @@ export default {
     }
     //备份model原始值
     this.modelDefault = JSON.parse(JSON.stringify(this.model));
-    debugger
+    
     getAction("/rooms/cesRooms/list", {
       pageNo: 1,
       pageSize: 100,

+ 1 - 1
src/views/settings/components/roomModules/goodStock/goodsForm.vue

@@ -279,7 +279,7 @@ export default {
         submitForm() {
             const that = this;
             // 触发表单验证
-            debugger
+            
             this.$refs.form.validate((valid) => {
                 if (valid) {
                     that.confirmLoading = true;

+ 1 - 1
src/views/settings/components/roomModules/moreSet/commodity.vue

@@ -219,7 +219,7 @@ export default {
         submitForm() {
             const that = this;
             // 触发表单验证
-            debugger
+            
             this.$refs.form.validate((valid) => {
                 if (valid) {
                     that.confirmLoading = true;

+ 1 - 1
src/views/settings/components/roomModules/moreSet/goodImg.vue

@@ -164,7 +164,7 @@ export default {
     submitForm() {
       const that = this;
       // 触发表单验证
-      debugger;
+      ;
       this.$refs.form.validate((valid) => {
         if (valid) {
           that.confirmLoading = true;

+ 2 - 2
src/views/settings/components/roomModules/roomGen.vue

@@ -281,7 +281,7 @@ export default {
       this.$set(this.layouts[idx], "rooms", origItems);
     },
     onDrag(e) {
-      debugger;
+      ;
     },
     onRoomSelect(index, subIndex) {
       this.$set(this.roomTree[index].children[subIndex], "checked", true);
@@ -290,7 +290,7 @@ export default {
       this.step = 1
     },
     save() {
-      debugger
+      
       let result = [];
       let param = {
         hotelId: null,

+ 1 - 1
src/views/settings/components/roomModules/roomLayoutDetailForm/roomLayoutImage.vue

@@ -51,7 +51,7 @@ export default {
                 if (valid) {
                     let data = JSON.parse(JSON.stringify(this.model))
                     that.confirmLoading = true;
-                    // debugger
+                    // 
                     console.log('datadatadatadata',data);
                     if (data.url) {
                         editGood({

+ 1 - 1
src/views/stock/goodsModal/goodStock/goodsForm.vue

@@ -317,7 +317,7 @@ export default {
         submitForm() {
             const that = this;
             // 触发表单验证
-            debugger
+            
             this.$refs.form.validate((valid) => {
                 if (valid) {
                     that.confirmLoading = true;

+ 1 - 1
src/views/stock/goodsModal/goodType/stockTypeForm.vue

@@ -268,7 +268,7 @@ export default {
         submitForm() {
             const that = this;
             // 触发表单验证
-            debugger
+            
             this.$refs.form.validate((valid) => {
                 if (valid) {
                     that.confirmLoading = true;

+ 1 - 1
src/views/stock/modules/SupplierInGoods.vue

@@ -178,7 +178,7 @@ export default {
             if (res.success) {
               this.$message.success(res.message);
               this.$emit('ok')
-              debugger
+              
 
             } else {
               this.$message.warning(res.message);