商品权证管理新增数据统计

This commit is contained in:
唐明明
2021-11-05 18:07:10 +08:00
parent 786419212f
commit 33098708f2
5 changed files with 318 additions and 224 deletions

View File

@@ -2,10 +2,10 @@
<view class="content"> <view class="content">
<!-- 分类 --> <!-- 分类 -->
<view class="tabs"> <view class="tabs">
<view class="item" :class="{'show': status == '0'}" @click="onTabs('0')">已发布</view> <view class="item" :class="{'show': status == '0'}" @click="onTabs('0')">已发布({{count[0]}})</view>
<view class="item" :class="{'show': status == '1'}" @click="onTabs('1')">待认证</view> <view class="item" :class="{'show': status == '1'}" @click="onTabs('1')">待认证({{count[1]}})</view>
<view class="item" :class="{'show': status == '2'}" @click="onTabs('2')">审核中</view> <view class="item" :class="{'show': status == '2'}" @click="onTabs('2')">审核中({{count[2]}})</view>
<view class="item" :class="{'show': status == '3'}" @click="onTabs('3')">已驳回</view> <view class="item" :class="{'show': status == '3'}" @click="onTabs('3')">已驳回({{count[3]}})</view>
</view> </view>
<!-- 优选商品 --> <!-- 优选商品 -->
<goodsList :list="goods" priceType="CNY" :status='status' toast="暂无产品权证" notag='has'> <goodsList :list="goods" priceType="CNY" :status='status' toast="暂无产品权证" notag='has'>
@@ -59,14 +59,15 @@
}, },
data() { data() {
return { return {
count : [],
status : 0, status : 0,
goods : [], goods : [],
pages : {}, pages : {},
itemGoods : {}, itemGoods : {},
stock : 1, stock : 1,
stockType : '', stockType : '',
page:1, page :1,
has_more :true, has_more :true,
}; };
}, },
onLoad() { onLoad() {
@@ -107,9 +108,14 @@
status: this.status, status: this.status,
page:this.page page:this.page
}).then(res => { }).then(res => {
this.goods = this.goods.concat(res.data) let countArr = new Array
this.pages = res.page for(let key in res.count){
this.has_more = res.page.has_more countArr.push(key)
}
this.count = res.count
this.goods = this.goods.concat(res.list.data)
this.pages = res.list.page
this.has_more = res.list.page.has_more
uni.setStorageSync('refresh',false) uni.setStorageSync('refresh',false)
}).catch(err => { }).catch(err => {
uni.showToast({ uni.showToast({

View File

@@ -183,6 +183,14 @@
<image class="tool-label-img" src="/static/user/userTool-01.png" mode=""></image> <image class="tool-label-img" src="/static/user/userTool-01.png" mode=""></image>
<view class="tool-label-name">优惠券管理</view> <view class="tool-label-name">优惠券管理</view>
</view> </view>
<view class="tool-label" v-if="permission.manageCoupons" @click="$Router.push({name: ''})">
<image class="tool-label-img" src="/static/user/userTool-07.png" mode=""></image>
<view class="tool-label-name">退换货管理</view>
</view>
<view class="tool-label" v-if="permission.manageCoupons" @click="$Router.push({name: ''})">
<image class="tool-label-img" src="/static/user/userTool-08.png" mode=""></image>
<view class="tool-label-name">发货单管理</view>
</view>
<view class="tool-label" @click="$Router.push({name: 'instrumentSpread'})"> <view class="tool-label" @click="$Router.push({name: 'instrumentSpread'})">
<image class="tool-label-img" src="/static/user/userTool-02.png" mode=""></image> <image class="tool-label-img" src="/static/user/userTool-02.png" mode=""></image>
<view class="tool-label-name">营销推广码</view> <view class="tool-label-name">营销推广码</view>

BIN
static/user/userTool-07.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.1 KiB

BIN
static/user/userTool-08.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 975 B

File diff suppressed because one or more lines are too long