From e7fee6fc323849ff9d2c274326efcd7fba91d948 Mon Sep 17 00:00:00 2001 From: wangfukang <15630117759@163.com> Date: Fri, 26 Apr 2024 18:04:13 +0800 Subject: [PATCH] 11 --- pages/billing/addUser.vue | 14 ++++---- pages/index/checkShop.vue | 1 - pages/index/home.vue | 53 ++++++++++++----------------- pages/index/index.vue | 30 +++++++++++----- pages/index/order.vue | 3 +- pages/index/orderDetail.vue | 24 ++++++------- pages/index/peopleList.vue | 8 +++-- pages/inventory/AIInventory.vue | 28 +++++---------- pages/inventory/addinventory.vue | 4 +-- pages/inventory/changeGoods1.vue | 12 +++---- pages/inventory/goodsList1.vue | 28 +++++++-------- pages/inventory/inventory.vue | 5 ++- pages/inventory/inventoryDetail.vue | 6 ++-- pages/rebate/rebate.vue | 22 ++++++++++-- pages/rebate/withdrawal.vue | 53 +++++++++++++++++++++++------ 15 files changed, 166 insertions(+), 125 deletions(-) diff --git a/pages/billing/addUser.vue b/pages/billing/addUser.vue index cc0562b..e212f76 100644 --- a/pages/billing/addUser.vue +++ b/pages/billing/addUser.vue @@ -122,16 +122,16 @@ methods: { //获取手机通讯录 getUserPhone() { - console.log("aaaaa") + let that = this; wx.chooseContact({ success: function(res) { - console.log(res) + that.formData.consigneeMobile = res.phoneNumber that.formData.consigneeName = res.displayName }, fail(res) { - console.log(res, '错误回调') + } }) }, @@ -188,11 +188,11 @@ this.openPicker() } else if (res.authSetting['scope.userLocation'] === undefined) { /* 用户未授权时走这里 */ - console.log('没有授权') + this.handleOpenSetting() } else { /* 用户拒绝了授权后走这里 */ - console.log('拒绝了授权 false') + this.handleOpenSetting() } }, @@ -201,7 +201,7 @@ handleOpenSetting() { wx.openSetting({ success: (res) => { - console.log('定位 openSetting', res) + if (res.authSetting["scope.userLocation"]) { this.openPicker() } @@ -224,7 +224,7 @@ } }, fail: function(res) { - console.log(res) + } }); }, diff --git a/pages/index/checkShop.vue b/pages/index/checkShop.vue index cbfc5fa..cc766de 100644 --- a/pages/index/checkShop.vue +++ b/pages/index/checkShop.vue @@ -188,7 +188,6 @@ }, //切换店铺 onActionItemClick(item) { - console.log(item) if(this.type == 'wuliu'){ this.current = item.id this.name = item.companyName diff --git a/pages/index/home.vue b/pages/index/home.vue index d6fabb4..acfe321 100644 --- a/pages/index/home.vue +++ b/pages/index/home.vue @@ -1,33 +1,30 @@ - - + - - \ No newline at end of file + \ No newline at end of file diff --git a/pages/index/index.vue b/pages/index/index.vue index 019e9e2..1ea399d 100644 --- a/pages/index/index.vue +++ b/pages/index/index.vue @@ -222,17 +222,29 @@ } }, onShow() { - this.shopName = uni.getStorageSync('shopName') - this.type = uni.getStorageSync('type') this.getSaleInfo() - wx.getLocation({ - type: 'gcj02', - success(res) { - console.log(res) - } - }) + }, - onLoad() { + onLoad() { + let that = this; + wx.getLocation({ + type: 'gcj02', + success(res) { + + } + }) + uni.getStorage({ + key: 'shopName', + success: function (res) { + that.shopName = res.data + } + }); + uni.getStorage({ + key: 'type', + success: function (res) { + that.type = res.data + } + }); //宣传页 // if(uni.getStorageSync('publicize')){ diff --git a/pages/index/order.vue b/pages/index/order.vue index eaa05ce..fd84432 100644 --- a/pages/index/order.vue +++ b/pages/index/order.vue @@ -124,7 +124,6 @@ //带参数跳转到开单页 goSaleGoods(item) { let dataList = [] - console.log('11',item); if(item.saleDetailDTOList){ for (let i = 0; i < item.saleDetailDTOList.length; i++) { @@ -196,7 +195,7 @@ this.btnStatus = !this.btnStatus }, // checkboxChange(e){ - // console.log(JSON.parse(e.detail.value)) + // }, delItemModal(item) { diff --git a/pages/index/orderDetail.vue b/pages/index/orderDetail.vue index 02c66bd..1cdcfb1 100644 --- a/pages/index/orderDetail.vue +++ b/pages/index/orderDetail.vue @@ -449,7 +449,7 @@ uni.getSystemInfo({ success(res) { that.deviceType = res.osName - console.log('设备类型', res.osName) + } }) }, @@ -704,7 +704,7 @@ } else { that.$emit('onPrint'); } - console.log('查看数据是否正确', that.bufferData) + that.$nextTick(() => { var dataStr = '' for (let m = 0; m < that.bufferData.length; m++) { @@ -730,19 +730,19 @@ characteristicId: uni.getStorageSync('characteristicId'), value: buffer, success(res) { - console.log('打印buffer', buffer) - console.log('writeBLECharacteristicValue success', res) + + }, fail(res) { - console.log('writeBLECharacteristicValue fail', res) + wx.closeBLEConnection({ deviceId: uni.getStorageSync('deviceId'), success(res) { - console.log(res) + } }) if (uni.getStorageSync('deviceId')) { - console.log("111") + that.xierushuju() } else { that.jiantingshebei() @@ -762,11 +762,11 @@ success: function(res) { if (res.confirm) { - console.log('用户点击确定'); + that.goPrint('confirm'); } if(res.cancel){ - console.log('用户点击取消'); + that.goPrint('cancel'); } } @@ -938,11 +938,11 @@ } }) - console.log(returnDat); + returnDat.forEach(function(value, key) { that.zReturnNum -= value }) - console.log('退货', that.zReturnNum) + } }).catch((res) => {}) }) @@ -958,7 +958,7 @@ this.tui.toast(res.message) } }) - console.log('刷新', that.list) + }, checkBoxChange() { if (this.radio1 == 2) { diff --git a/pages/index/peopleList.vue b/pages/index/peopleList.vue index 50d8c0c..f254d7c 100644 --- a/pages/index/peopleList.vue +++ b/pages/index/peopleList.vue @@ -43,7 +43,7 @@ - +