|
|
|
@ -33,15 +33,16 @@ |
|
|
|
|
</image> |
|
|
|
|
<view class="pro_cont paddtop15"> |
|
|
|
|
<view class="flleft font16 fcor333 fontwig6 pro_title"> |
|
|
|
|
剩余库存({{agentList.laveStockCount}}) |
|
|
|
|
剩余库存({{mineproList.laveStockCount}}) |
|
|
|
|
</view> |
|
|
|
|
<view class="pro_price fotrt fcor333 font15 fontwig6"> |
|
|
|
|
总计 {{agentList.surplusCountPrice}} |
|
|
|
|
总计 ¥{{mineproList.surplusCountPrice}} |
|
|
|
|
</view> |
|
|
|
|
</view> |
|
|
|
|
<!-- //循环:class="[index==0?'colorfe':'']" --> |
|
|
|
|
<view v-if="minepros == ''">暂无数据</view> |
|
|
|
|
<view v-for="(mers,index) in minepros" :key="mers.id" class="pro_mok marb10 colore7" @click="jumpAgent(1,mers.couponId)"> |
|
|
|
|
<view v-if="minepros == ''" class="width90">暂无数据</view> |
|
|
|
|
<view v-for="(mers,index) in minepros" :key="mers.id" class="pro_mok marb10 colore7" |
|
|
|
|
@click="jumpAgent(1,mers.couponId,1)"> |
|
|
|
|
<view class="width100 font14 fcor333 fontwig6 fotct paddtop10"> |
|
|
|
|
面额{{mers.salesPrice}} |
|
|
|
|
</view> |
|
|
|
@ -68,15 +69,89 @@ |
|
|
|
|
</image> |
|
|
|
|
<view class="pro_cont paddtop15"> |
|
|
|
|
<view class="flleft font16 fcor333 fontwig6 pro_title"> |
|
|
|
|
已销售({{agentList.soldCount}}) |
|
|
|
|
已销售({{mineproList.soldCount}}) |
|
|
|
|
</view> |
|
|
|
|
<view class="pro_price fotrt fcor333 font15 fontwig6"> |
|
|
|
|
总计 {{agentList.salesCountPrice}} |
|
|
|
|
总计 ¥{{mineproList.salesCountPrice}} |
|
|
|
|
</view> |
|
|
|
|
</view> |
|
|
|
|
<view v-if="minepros == ''">暂无数据</view> |
|
|
|
|
<view v-if="minepros == ''" class="width90">暂无数据</view> |
|
|
|
|
<!-- //循环 --> |
|
|
|
|
<view v-for="(mers,index) in minepros" :key="mers.id" class="pro_mok marb10 colore9" @click="jumpAgent(2,mers.couponId)"> |
|
|
|
|
<view v-for="(mers,index) in minepros" :key="mers.id" class="pro_mok marb10 colore9" |
|
|
|
|
@click="jumpAgent(2,mers.couponId,1)"> |
|
|
|
|
<view class="width100 font14 fcor333 fontwig6 fotct paddtop10"> |
|
|
|
|
面额{{mers.salesPrice}} |
|
|
|
|
</view> |
|
|
|
|
<view class="width100 font14 fcor999 fotct mart10"> |
|
|
|
|
{{mers.salesCount}}张 |
|
|
|
|
</view> |
|
|
|
|
<view class="width100 font15 fcor333 fontwig6 fotct mart10"> |
|
|
|
|
{{mers.salesPrice*mers.salesCount}} |
|
|
|
|
</view> |
|
|
|
|
</view> |
|
|
|
|
</view> |
|
|
|
|
|
|
|
|
|
<!-- 销核码兑换库存 --> |
|
|
|
|
<view class="width100 mart20"> |
|
|
|
|
<view class="width90 mart10 fcor333 font14 fontwig6 height22"> |
|
|
|
|
<view class="promotion_xg flleft"></view> |
|
|
|
|
<view class="promotion_mixg flleft" style="margin-left: -6px;"></view> |
|
|
|
|
<view class="flleft promotoin_text font16" style="margin-top: -2px;">销核码兑换</view> |
|
|
|
|
<view class="promotion_mixg flleft"></view> |
|
|
|
|
<view class="promotion_xg flleft" style="margin-left: -6px;"></view> |
|
|
|
|
</view> |
|
|
|
|
</view> |
|
|
|
|
<view class="promotion_kc width90 mart10"> |
|
|
|
|
<image class="flleft pro_img mart15 margle" :src="imagewxUrl+imgadres"> |
|
|
|
|
</image> |
|
|
|
|
<view class="pro_cont paddtop15"> |
|
|
|
|
<view class="flleft font16 fcor333 fontwig6 pro_title"> |
|
|
|
|
待使用({{codeList.laveStockCount}}) |
|
|
|
|
</view> |
|
|
|
|
<view class="pro_price fotrt fcor333 font15 fontwig6"> |
|
|
|
|
总计 ¥{{codeList.surplusCountPrice}} |
|
|
|
|
</view> |
|
|
|
|
</view> |
|
|
|
|
<!-- //循环:class="[index==0?'colorfe':'']" --> |
|
|
|
|
<view v-if="minepros == ''" class="width90">暂无数据</view> |
|
|
|
|
<view v-for="(mers,index) in checkcodeList" :key="mers.id" class="pro_mok marb10 colore7" |
|
|
|
|
@click="jumpAgent(1,mers.couponId,2)"> |
|
|
|
|
<view class="width100 font14 fcor333 fontwig6 fotct paddtop10"> |
|
|
|
|
面额{{mers.salesPrice}} |
|
|
|
|
</view> |
|
|
|
|
<view class="width100 font14 fcor999 fotct mart10"> |
|
|
|
|
{{mers.stockCount}}张 |
|
|
|
|
</view> |
|
|
|
|
<view class="width100 font15 fcor333 fontwig6 fotct mart10"> |
|
|
|
|
{{mers.salesPrice*mers.stockCount}} |
|
|
|
|
</view> |
|
|
|
|
</view> |
|
|
|
|
</view> |
|
|
|
|
<!-- 销核码兑换销售 --> |
|
|
|
|
<view class="width100 mart20"> |
|
|
|
|
<view class="width90 mart10 fcor333 font14 fontwig6 height22"> |
|
|
|
|
<view class="promotion_xg flleft"></view> |
|
|
|
|
<view class="promotion_mixg flleft" style="margin-left: -6px;"></view> |
|
|
|
|
<view class="flleft promotoin_text font16" style="margin-top: -2px;">销核码统计</view> |
|
|
|
|
<view class="promotion_mixg flleft"></view> |
|
|
|
|
<view class="promotion_xg flleft" style="margin-left: -6px;"></view> |
|
|
|
|
</view> |
|
|
|
|
</view> |
|
|
|
|
<view class="promotion_kc width90 mart10"> |
|
|
|
|
<image class="flleft pro_img mart15 margle" :src="imagewxUrl+imgadres"> |
|
|
|
|
</image> |
|
|
|
|
<view class="pro_cont paddtop15"> |
|
|
|
|
<view class="flleft font16 fcor333 fontwig6 pro_title"> |
|
|
|
|
已使用({{codeList.soldCount}}) |
|
|
|
|
</view> |
|
|
|
|
<view class="pro_price fotrt fcor333 font15 fontwig6"> |
|
|
|
|
总计 ¥{{codeList.salesCountPrice}} |
|
|
|
|
</view> |
|
|
|
|
</view> |
|
|
|
|
<view v-if="minepros == ''" class="width90">暂无数据</view> |
|
|
|
|
<!-- //循环 --> |
|
|
|
|
<view v-for="(mers,index) in checkcodeList" :key="mers.id" class="pro_mok marb10 colore9" |
|
|
|
|
@click="jumpAgent(2,mers.couponId,2)"> |
|
|
|
|
<view class="width100 font14 fcor333 fontwig6 fotct paddtop10"> |
|
|
|
|
面额{{mers.salesPrice}} |
|
|
|
|
</view> |
|
|
|
@ -100,23 +175,36 @@ |
|
|
|
|
export default { |
|
|
|
|
data() { |
|
|
|
|
return { |
|
|
|
|
minepros: [], |
|
|
|
|
imagewxUrl: app.globalData.imageWxImg, |
|
|
|
|
imgadres:'wenj.png', |
|
|
|
|
agentList :[] |
|
|
|
|
imgadres: 'wenj.png', |
|
|
|
|
agentList: [], //总统计 |
|
|
|
|
minepros: [], //分发数据 |
|
|
|
|
mineproList: [], //分发统计 |
|
|
|
|
checkcodeList: [], //销核码数据 |
|
|
|
|
codeList: [] //兑换码统计 |
|
|
|
|
} |
|
|
|
|
}, |
|
|
|
|
|
|
|
|
|
onShow(){ |
|
|
|
|
this.getAgentCount(); |
|
|
|
|
onShow() { |
|
|
|
|
this.getAgentCount(1); |
|
|
|
|
this.getAgentCount(2); |
|
|
|
|
}, |
|
|
|
|
methods: { |
|
|
|
|
//查询代理商信息 |
|
|
|
|
getAgentCount() { |
|
|
|
|
getAgentCount().then(res => { |
|
|
|
|
getAgentCount(item) { |
|
|
|
|
let datas = { |
|
|
|
|
type: item |
|
|
|
|
} |
|
|
|
|
getAgentCount(datas).then(res => { |
|
|
|
|
if (res.return_code == '000000') { |
|
|
|
|
this.agentList = res.return_data; |
|
|
|
|
this.minepros = res.return_data.list |
|
|
|
|
if (item == 1) { |
|
|
|
|
this.minepros = res.return_data.list; |
|
|
|
|
this.mineproList = res.return_data; |
|
|
|
|
} else { |
|
|
|
|
this.checkcodeList = res.return_data.list; |
|
|
|
|
this.codeList = res.return_data |
|
|
|
|
} |
|
|
|
|
} else { |
|
|
|
|
|
|
|
|
|
uni.showToast({ |
|
|
|
@ -127,15 +215,15 @@ |
|
|
|
|
}) |
|
|
|
|
}, |
|
|
|
|
//跳转流水 |
|
|
|
|
jumpRunWater(){ |
|
|
|
|
jumpRunWater() { |
|
|
|
|
uni.navigateTo({ |
|
|
|
|
url:'../runningWater/runningWater' |
|
|
|
|
url: '../runningWater/runningWater' |
|
|
|
|
}) |
|
|
|
|
}, |
|
|
|
|
//跳转代理商卡券 |
|
|
|
|
jumpAgent(item,items) { |
|
|
|
|
jumpAgent(item, items, itemtype) { |
|
|
|
|
uni.navigateTo({ |
|
|
|
|
url: '../agentCoupons/agentCoupons?id='+item +'&couponsId='+ items |
|
|
|
|
url: '../agentCoupons/agentCoupons?id=' + item + '&couponsId=' + items + '&typeid=' + itemtype |
|
|
|
|
}) |
|
|
|
|
}, |
|
|
|
|
toPage(page) { |
|
|
|
|