水感应经销商端中台更改字段

This commit is contained in:
2023-08-24 13:35:54 +08:00
parent de844a9462
commit e130380d20
2 changed files with 18 additions and 24 deletions

View File

@@ -12,8 +12,8 @@
> >
<chart-card :loading="loading" title="分公司总库存(瓶)" :total="info.middle.total"> <chart-card :loading="loading" title="分公司总库存(瓶)" :total="info.middle.total">
<template slot="footer"> <template slot="footer">
<trend flag="up"> <span slot="term">{{ $t('线上库存') }}</span>{{ info.middle.online_stock }}</trend> <!-- <trend flag="up"> <span slot="term">{{ $t('线上库存') }}</span>{{ info.middle.online_stock }}</trend> -->
<trend flag="down" style="margin-left: 20px;"> <trend flag="down">
<span slot="term">{{ $t('线下库存') }}</span>{{ info.middle.offline_stock }} <span slot="term">{{ $t('线下库存') }}</span>{{ info.middle.offline_stock }}
</trend> </trend>
</template> </template>
@@ -77,16 +77,10 @@
<a-card :bordered="false" title="累计销售数量"> <a-card :bordered="false" title="累计销售数量">
<a-row> <a-row>
<a-col :sm="24" :md="12" :xl="8" :xxl="8" class="mt20"> <a-col :sm="24" :md="12" :xl="8" :xxl="8" class="mt20">
<info title="线上销售数量(瓶)" :value="''+info.sales_quantity.online_all" :bordered="true" /> <info title="累计销售数量(瓶)" :value="''+info.sales_quantity.online_all" :bordered="true" />
</a-col> </a-col>
<a-col :sm="24" :md="12" :xl="8" :xxl="8" class="mt20"> <a-col :sm="24" :md="12" :xl="8" :xxl="8" class="mt20">
<info title="线上售数量(瓶)" :value="''+info.sales_quantity.online_retail" :bordered="true"/> <info title="线上售数量(瓶)" :value="''+info.sales_quantity.online_retail" :bordered="true"/>
</a-col>
<a-col :sm="24" :md="12" :xl="8" :xxl="8" class="mt20">
<info title="线上代理进货数量(瓶)" :value="''+info.sales_quantity.online_agent_in" :bordered="true"/>
</a-col>
<a-col :sm="24" :md="12" :xl="8" :xxl="8" class="mt20">
<info title="线上创客进货数量(瓶)" :value="''+info.sales_quantity.online_maker_in" :bordered="true"/>
</a-col> </a-col>
<a-col :sm="24" :md="12" :xl="8" :xxl="8" class="mt20"> <a-col :sm="24" :md="12" :xl="8" :xxl="8" class="mt20">
<info title="线下出货数量(瓶)" :value="''+info.sales_quantity.offline" /> <info title="线下出货数量(瓶)" :value="''+info.sales_quantity.offline" />
@@ -97,17 +91,14 @@
<a-col :span="24" v-if="info.sales_amount"> <a-col :span="24" v-if="info.sales_amount">
<a-card :bordered="false" title="售卖数据管理"> <a-card :bordered="false" title="售卖数据管理">
<a-row> <a-row>
<a-col :sm="24" :md="12" :xl="6" :xxl="6" class="mt20"> <a-col :sm="24" :md="12" :xl="8" :xxl="8" class="mt20">
<info title="代理进货金额(元)" :value="''+info.sales_amount.online_agent_in" :bordered="true"/> <info title="售卖数据管理总数(元)" :value="''+info.sales_amount.online_agent_all" :bordered="true"/>
</a-col> </a-col>
<a-col :sm="24" :md="12" :xl="6" :xxl="6" class="mt20"> <a-col :sm="24" :md="12" :xl="8" :xxl="8" class="mt20">
<info title="创客进货金额(元)" :value="''+info.sales_amount.online_maker_in" :bordered="true"/>
</a-col>
<a-col :sm="24" :md="12" :xl="6" :xxl="6" class="mt20">
<info title="线上销售金额(元)" :value="''+info.sales_amount.online_sell" :bordered="true"/> <info title="线上销售金额(元)" :value="''+info.sales_amount.online_sell" :bordered="true"/>
</a-col> </a-col>
<a-col :sm="24" :md="12" :xl="6" :xxl="6" class="mt20"> <a-col :sm="24" :md="12" :xl="8" :xxl="8" class="mt20">
<info title="线下销售金额(元)" :value="''+info.sales_amount.offline_sell" /> <info title="线下出货金额总和(元)" :value="''+info.sales_amount.offline_sell" />
</a-col> </a-col>
</a-row> </a-row>
</a-card> </a-card>

View File

@@ -61,12 +61,9 @@
<div>{{ record.name }} {{ record.mobile?'('+record.mobile+')':'--' }}</div> <div>{{ record.name }} {{ record.mobile?'('+record.mobile+')':'--' }}</div>
<div>{{ record.address || '--' }}</div> <div>{{ record.address || '--' }}</div>
</div> </div>
<div slot="number" slot-scope="text, record"> <div slot="number" slot-scope="text, record">{{ record.number }}</div>
{{ record.number }} <a slot="total" slot-scope="text, record">{{ record.total || '0.00' }}</a>
</div> <div slot="channel" slot-scope="text, record">{{ record.channel == 'express' ?'快递':'自提' }}</div>
<div slot="channel" slot-scope="text, record">
{{ record.channel == 'express' ?'快递':'自提' }}
</div>
<div slot="express" slot-scope="text, record"> <div slot="express" slot-scope="text, record">
<div v-if="record.channel === 'express'"> <div v-if="record.channel === 'express'">
{{ record.express.name || '-' }} <div>{{ record.express.express_no || '-' }}</div> {{ record.express.name || '-' }} <div>{{ record.express.express_no || '-' }}</div>
@@ -100,6 +97,12 @@ const columns = [
align: 'center', align: 'center',
width: 120 width: 120
}, },
{
title: '金额',
scopedSlots: { customRender: 'total' },
align: 'center',
width: 120
},
{ {
title: '发货方式', title: '发货方式',
scopedSlots: { customRender: 'channel' }, scopedSlots: { customRender: 'channel' },