diff --git a/pages/index/index.vue b/pages/index/index.vue index 80d6e15..6664475 100644 --- a/pages/index/index.vue +++ b/pages/index/index.vue @@ -30,6 +30,14 @@ + + + {{daipeisongjiedan}} + + + 待配送接单 + + {{daichucan}} @@ -109,15 +117,11 @@ 今日实时数据 - - 更多 - - - {{shopData.orderRevenueAndCount == undefined ?0:shopData.orderRevenueAndCount.count}} + {{shopData.orderRevenueAndCount ?shopData.orderRevenueAndCount.count:0}} 今日订单 @@ -125,12 +129,28 @@ - {{shopData.orderRevenueAndCount == undefined ?0:shopData.orderRevenueAndCount.amount == undefined ?0:shopData.orderRevenueAndCount.amount}} + {{shopData.orderRevenueAndCount?shopData.orderRevenueAndCount.amount:0}} 营业额 + + + {{shopData.orderRevenueAndCount?shopData.orderRevenueAndCount.afterSaleCount:0}} + + + 退/售后笔数 + + + + + {{shopData.orderRevenueAndCount?shopData.orderRevenueAndCount.afterSaleAmount:0}} + + + 退/售后金额 + + @@ -194,8 +214,16 @@ 打印设置 + + + + + + 退款售后记录 + + - + @@ -229,6 +257,7 @@ data() { return { width: 0, + daipeisongjiedan:0, currentIndex: 0, businessStatus: 1, shop: {}, @@ -265,10 +294,26 @@ }); this.getData() this.getBusinessStatus() + this.getShopTakeaway() if (!uni.getStorageSync('area')) { this.checkArea() } }, + getShopTakeaway(){ + this.NB.sendRequest("/app/shoptakeaway/getByShopId", { + shopId: uni.getStorageSync('shopId') + }, false, 'get', 'application/x-www-form-urlencoded').then((res) => { + if (res.code == 200) { + uni.setStorageSync('shopTakeaway',res.result) + } else { + uni.showToast({ + title: res.message, + icon: 'none' + }) + } + + }) + }, checkArea() { this.NB.sendRequest("/auth/getShopByUser", {}, false, 'post', 'application/x-www-form-urlencoded').then(( res) => { @@ -346,6 +391,7 @@ }, goDetail(type, index) { + let url = '' switch (type) { case 'tj': @@ -376,13 +422,14 @@ url = '/pages/shop/shopOrderList' break; case 'tui': - uni.navigateTo({ - url: '/pages/shop/shopReturnOrder?type=shop' - }) + url = '/pages/shop/shopReturnOrder?type=shop' break; case 'zd': url = '/pages/shop/shopBill' break; + case 'shjl': + url = '/pages/shop/afterService?type=shop&mode=record' + break; case 'pj': let item = { shopScore: uni.getStorageSync('shopScore'), @@ -404,10 +451,16 @@ this.daisongda = 0 this.daiquhuo = 0 this.daixiaofei = 0 + this.daipeisongjiedan = 0 this.daichucan = 0 }, getData() { let that = this; + this.daixiaofei = 0 + this.daipeisongjiedan = 0 + this.daichucan = 0 + this.daiquhuo = 0 + this.daisongda = 0 that.NB.sendRequest("/mall/order/countByShop/" + uni.getStorageSync('shopId'), {}, false, 'GET', 'application/x-www-form-urlencoded').then((res) => { if (res.code == 200) { @@ -498,7 +551,6 @@ this.indexInit() break; case 1: - that.$refs.deLivery.init(type) break; case 2: @@ -608,7 +660,8 @@ } .data22 { - flex: 1; + width:25%; + } .data222 { @@ -616,7 +669,10 @@ font-weight: 700; padding-bottom: 20rpx; } - + .data333 { + color: #415c56; + font-size: 28rpx; + } .menu2 { display: flex; flex-wrap: wrap; @@ -640,6 +696,7 @@ .menu44 { height: 40rpx; line-height: 40rpx; + font-size:28rpx; } .popup-area-content { diff --git a/pages/login/login.vue b/pages/login/login.vue index 6b54a4c..3427068 100644 --- a/pages/login/login.vue +++ b/pages/login/login.vue @@ -316,7 +316,7 @@ //多店铺的时候点击选择需要登录的店铺 checkShop(item) { let that = this; - + console.log('看看--------------',item) uni.getSystemInfo({ success: function (res1) { that.NB.sendRequest('/auth/chooseShop', { @@ -324,6 +324,7 @@ deviceId:res1.deviceId }, true, 'POST', 'application/x-www-form-urlencoded').then(res => { if (res.code == 200) { + console.log('看看--------------',res.result) uni.setStorageSync('type',item.type) uni.setStorageSync('warehouseKeeperFlag',item.warehouseKeeperFlag) uni.setStorageSync('shopId',item.shop.id) diff --git a/pages/shop/addGoods.vue b/pages/shop/addGoods.vue index a3df6d5..a7d7561 100644 --- a/pages/shop/addGoods.vue +++ b/pages/shop/addGoods.vue @@ -95,7 +95,7 @@ - + 是 diff --git a/pages/shop/attributeList.vue b/pages/shop/attributeList.vue index b60c765..52a4531 100644 --- a/pages/shop/attributeList.vue +++ b/pages/shop/attributeList.vue @@ -18,7 +18,8 @@
  • {{item.attributeName}} - + +
  • @@ -26,27 +27,20 @@
    - - - - - - + 编辑属性 - + - - 属性名称: + + 属性名称 - - 删除 - 确认 + + 删除 + 确认 - + 新增属性 - + - - + + 属性名称 + +