diff --git a/pages/index/addHangOrder.vue b/pages/index/addHangOrder.vue index 20b8215..c161468 100644 --- a/pages/index/addHangOrder.vue +++ b/pages/index/addHangOrder.vue @@ -317,17 +317,28 @@ uni.scanCode({ success: (res) => { this.hangId = item.id - let shopId = res.result.split(',')[1] - if(shopId == uni.getStorageSync('shopId')){ - this.productId = res.result.split(',')[0] - this.toggle('bottom', res.result.split(',')[0]); + if(res.scanType == "QR_CODE"){ //二维码 + + let shopId = res.result.split(',')[1] + if(shopId == uni.getStorageSync('shopId')){ + this.productId = res.result.split(',')[0] + this.toggle('bottom', res.result.split(',')[0]); + if (item.saleDetailDTOList) { + for (let i = 0; i < item.saleDetailDTOList.length; i++) { + this.carList.push(item.saleDetailDTOList[i]) + } + } + }else{ + this.tui.toast('您的店铺中暂无该商品!') + } + }else{ + this.productId = res.result + this.toggle('bottom', res.result); if (item.saleDetailDTOList) { for (let i = 0; i < item.saleDetailDTOList.length; i++) { this.carList.push(item.saleDetailDTOList[i]) } } - }else{ - this.tui.toast('您的店铺中暂无该商品!') } }, diff --git a/pages/index/checkShop.vue b/pages/index/checkShop.vue index 7688f7f..cbfc5fa 100644 --- a/pages/index/checkShop.vue +++ b/pages/index/checkShop.vue @@ -4,16 +4,16 @@ - - + + - {{ this.type=='wuliu'?item.companyName:item.shopName }} - - - + {{ type=='wuliu'?item.companyName:item.shopName }} + + + @@ -75,29 +75,34 @@ }, methods: { ...mapMutations(['setShopIndex']), - submit() { - this.tui.request("/auth/chooseShop", "POST", { - shopId: this.current - }, false, true).then((res) => { - if (res.code == 200) { - uni.setStorageSync('shopName', this.name) - this.tui.toast('切换店铺成功', 2000, true) - setTimeout(() => { - uni.reLaunch({ - url: '/pages/index/index' - }) - }, 200) - } else { - this.tui.toast(res.message) - return - } - }).catch((res) => {}) + submit() { + if(this.type == 'wuliu'){ + this.getWuliuList() + }else{ + this.tui.request("/auth/chooseShop", "POST", { + shopId: this.current + }, false, true).then((res) => { + if (res.code == 200) { + uni.setStorageSync('shopName', this.name) + this.tui.toast('切换店铺成功', 2000, true) + setTimeout(() => { + uni.reLaunch({ + url: '/pages/index/index' + }) + }, 200) + } else { + this.tui.toast(res.message) + return + } + }).catch((res) => {}) + } }, getWuliuList(){ + let that = this; uni.request({ url: this.tui.interfaceUrl() + "/app/logitics/chooseCompany", data: { - companyId: uni.getStorageSync('transCompany') + companyId: this.current }, header: { 'content-type': 'application/x-www-form-urlencoded', @@ -182,9 +187,15 @@ this.shopId = item.shopId }, //切换店铺 - onActionItemClick(item) { - this.current = item.shopId - this.name = item.shopName + onActionItemClick(item) { + console.log(item) + if(this.type == 'wuliu'){ + this.current = item.id + this.name = item.companyName + }else{ + this.current = item.shopId + this.name = item.shopName + } }, onEditSave() { if (!this.shopName) return this.tui.toast('请输入新店铺名称', 2000, ) diff --git a/pages/index/dataStatistics.vue b/pages/index/dataStatistics.vue index fcb36a2..fec37c0 100644 --- a/pages/index/dataStatistics.vue +++ b/pages/index/dataStatistics.vue @@ -10,8 +10,14 @@ 销售总金额 + - 实收总额 + + + 实收总额 + + + @@ -194,4 +200,10 @@ .uni-date{ background: #fff; } + .uni-tooltip-popup{ + width: 180rpx; + } + .u-icon{ + padding: 0 0 0 8px !important; + } \ No newline at end of file diff --git a/pages/index/index.vue b/pages/index/index.vue index 10237b8..228ffec 100644 --- a/pages/index/index.vue +++ b/pages/index/index.vue @@ -38,11 +38,19 @@ 销售总金额 - - - - 今日实收 - + + + + + + + + 今日实收 + + + + + 今日利润 @@ -505,6 +513,9 @@ .status-bar { height: 42px !important; } + .u-icon{ + padding: 0 0 0 8px !important; + } .cmd-nav-bar { height: 90rpx !important; @@ -535,5 +546,8 @@ width: 100%; height: 15rpx; background: #eee; + } + .uni-tooltip-popup{ + width: 180rpx; } \ No newline at end of file diff --git a/pages/index/orderDetail.vue b/pages/index/orderDetail.vue index b5c0289..6dff799 100644 --- a/pages/index/orderDetail.vue +++ b/pages/index/orderDetail.vue @@ -234,7 +234,7 @@ - 贴包单 + 取消订单 {{ !isReturn ? '退货' : '确认退货'}} @@ -256,7 +256,11 @@