From f837b731f571bb53cee99f9bc22a6f74855f3e6c Mon Sep 17 00:00:00 2001
From: xuxueyang <xuxy@fengyuntec.com>
Date: 星期一, 12 八月 2024 02:43:20 +0800
Subject: [PATCH] add 商品结算测试
---
pages/home/supplier-home.vue | 35 ++++++++++++++++++++++++++++-------
1 files changed, 28 insertions(+), 7 deletions(-)
diff --git a/pages/home/supplier-home.vue b/pages/home/supplier-home.vue
index 7862cbc..3faafc4 100644
--- a/pages/home/supplier-home.vue
+++ b/pages/home/supplier-home.vue
@@ -77,7 +77,7 @@
</view>
</view>
<view class="flex tj-container">
- <view class="tj-each">
+ <view class="tj-each" @click="selftype=='supplier'&&goto('/pages/order/order-delivery?range=today',true)">
<view class="num">
{{tj.orderCountToday||0}}单
</view>
@@ -85,7 +85,7 @@
今日订单数
</view>
</view>
- <view class="tj-each">
+ <view class="tj-each" @click="selftype=='supplier'&&goto('/pages/order/order-delivery?range=yesterday',true)">
<view class="num">
{{tj.orderCountYesterday||0}}单
</view>
@@ -93,7 +93,7 @@
昨日订单数
</view>
</view>
- <view class="tj-each">
+ <view class="tj-each" @click="selftype=='supplier'&&goto('/pages/order/order-delivery?range=month',true)">
<view class="num">
{{tj.orderCountMonth||0}}单
</view>
@@ -106,13 +106,15 @@
<view class="item-container flex m-t-12" style="padding: 34rpx 44rpx;" v-if="selftype=='supplier'">
<view class="rate-view flex1" style="max-width: 140rpx;">
<view class="title">售后率</view>
- <view class="title" style="color: red;">{{(tj.salesRate||0)*100}}%</view>
+ <view class="title" style="color: red;">{{((tj.salesRate||0)*100).toFixed(2)}}%</view>
</view>
- <view class="tj-panel pink flex1" @click="goto('/pages/order/order-delivery?status=ARRIVED',true)">
+ <view class="tj-panel pink flex1"
+ @click="goto('/pages/order/order-delivery?status=PENDING&range=today',true)">
<view class="name">今日待配送</view>
<view class="title">{{tj.deliverCount||0}}单</view>
</view>
- <view class="tj-panel green flex1" @click="goto('/pages/order/order-delivery?status=',true)">
+ <view class="tj-panel green flex1"
+ @click="goto('/pages/order/order-delivery?range=today',true)">
<view class="name green">今日配送汇总</view>
<view class="title">{{tj.deliverTotal||0}}单</view>
</view>
@@ -133,6 +135,14 @@
</view>
<view class="order-desc tg">订单管理</view>
</view>
+ <!-- <view class="nav row margin-tb" v-if="selftype==='supplier'"
+ @click="goto('/sub_pages/supplier/order-manage/order-manage',true)">
+ <view class="img-c">
+ <image class="icon margin-bottom order-icon ddgl"
+ src="/static/images/partner/user/user-icon-ddgl.png" mode="scaleToFill" />
+ </view>
+ <view class="order-desc tg">订单统计</view>
+ </view> -->
<view class="nav row margin-tb"
@click="goto('/sub_pages/supplier/order-settlement/order-settlement',true)">
@@ -239,7 +249,18 @@
},
created() {
//公告
- this.$http.request('get', '/api/pub/announcement/list', {
+ var type = ''
+ // #ifdef PUB_CUSTOMER
+ type = 'customer'
+ // #endif
+ // #ifdef PUB_SUPPLIER
+ type = 'supplier'
+ // #endif
+ // #ifdef PUB_PARTNER
+ type = 'partner'
+ // #endif
+
+ this.$http.request('get', '/api/pub/announcement/list/'+type, {
params: {
size: 5,
status: 'A'
--
Gitblit v1.9.3