Commit 2589efda by yy

end

1 parent 983b297a
......@@ -244,7 +244,7 @@ const shopmallExport = params => {
//获取精品列表
const boutiquecoupon = params => {
params.method = 'scrm.api.boutiquecoupon.rop.router'
params.routerMethod = 'dj.api.smartcarlife.goodsOrderProfitAllocation.shop.merchant.count'
params.routerMethod = 'dj.api.smartcarlife.goodsOrderProfitAllocation.shop.merchant.page'
return http({
url: '/rop-scrm-boutiquecoupon/router',
method: 'POST',
......
......@@ -18,6 +18,19 @@ util.getBeforeDate = function (sign = '-') {
var s = day.getFullYear() + sign + month + sign + date;
return s;
}
util.getTimeFomat = function (time,sign = '-') {
let day = new Date(time);
let month = day.getMonth() + 1;
let date = day.getDate();
let hour = day.getHours();
let mm = day.getMinutes()
if (month < 10) month = '0' + month;
if (date < 10) date = '0' + date;
if (hour < 10) hour = '0' + hour;
if (mm < 10) mm = '0' + mm;
var s = day.getFullYear() + sign + month + sign + date + ' ' + hour + ':' + mm;
return s;
}
util.getBetweenDate = function (day, num, str = '-') {
var today = new Date(day);
var nowTime = today.getTime();
......
......@@ -218,8 +218,8 @@ export default {
this.loading = true
this.$apis.home.getCustomer(params).then(res => {
this.loading = false
this.tableData = res.data
this.tableTotal = res.count
this.tableData = res.list
this.tableTotal = res.total
})
},
init() {
......
......@@ -21,7 +21,7 @@
</el-popover>
</div>
<div class="summary-item-total">
<div @click="handleEmpDetail(summaryTime, summaryTime)">
<div >
{{ totalNewCustomerCount }}
<span>人</span>
</div>
......@@ -49,7 +49,7 @@
</el-popover>
</div>
<div class="summary-item-total">
<div @click="handleEmpDetail(summaryTime, summaryTime, 1)">
<div>
{{ totalNewEntmicroCount }}
<span>人</span>
</div>
......@@ -77,7 +77,7 @@
</el-popover>
</div>
<div class="summary-item-total">
<div @click="handleEmpDetail(summaryTime, summaryTime, null, summaryTime)">
<div>
{{ todayEntmicroLoseCount }}
<span>人</span>
</div>
......@@ -107,7 +107,7 @@
<div class="summary-item-total">
<div>
{{ currentDayTotalOutputValue }}
<span>¥</span>
<span>元</span>
</div>
<div class="summary-radio" :class="{ 'radio-green': dayRadio > 0, 'radio-red': dayRadio < 0 }">
日环比:
......@@ -623,6 +623,9 @@ export default {
display: flex;
justify-content: space-between;
align-items: flex-end;
.custom-detail {
cursor: pointer;
}
.summary-radio {
border-radius: 2px;
color: #666666;
......
......@@ -58,7 +58,7 @@
</el-popover>
</div>
<div class="summary-item-total">
<div @click="handleShopDetail(summaryTimeFomat)">
<div @click="handleShopDetail(summaryTimeFomat)" class="custom-detail">
{{ '¥ ' + outputEchartData.currentDayShopmallTotalOutputValue }}
<span></span>
</div>
......@@ -78,7 +78,7 @@
</el-popover>
</div>
<div class="summary-item-total">
<div @click="handleEquityDetail(summaryTimeFomat)">
<div @click="handleEquityDetail(summaryTimeFomat)" class="custom-detail">
{{ '¥ ' + outputEchartData.currentDayEquityTotalOutputValue }}
<span></span>
</div>
......@@ -99,7 +99,7 @@
</div>
<template v-if="isOpenSmartcarlife">
<div class="summary-item-total">
<div @click="handleUpDetail(summaryTimeFomat)">
<div @click="handleUpDetail(summaryTimeFomat)" class="custom-detail">
{{ '¥ ' + outputEchartData.currentDayBoutiqueUpgradeTotalOutputValue }}
<span></span>
</div>
......@@ -372,6 +372,9 @@ export default {
display: flex;
justify-content: space-between;
align-items: flex-end;
.custom-detail {
cursor: pointer;
}
span {
font-size: 14px;
}
......
......@@ -141,14 +141,15 @@ export default {
pageSize: this.$refs.tableEmp.page.pageSize,
currentPage: this.$refs.tableEmp.page.pageNum,
orderType: 1,
orderStatus: [2,3],
startTime: this.startTime + ' 00:00:00',
endTime: this.endTime + ' 23:59:59'
}
this.loading = true
this.$apis.home.equityInfo(params).then(res => {
this.loading = false
this.tableData = res.data
this.tableTotal = res.count
this.tableData = res.list
this.tableTotal = res.total
})
},
//导出
......@@ -156,6 +157,7 @@ export default {
var params = {
...JSON.parse(JSON.stringify(this.tableSearchForm)),
merchantId: this.$globalState.session.merchantId,
orderStatus: [2,3],
orderType: 1,
startTime: this.startTime + ' 00:00:00',
endTime: this.endTime + ' 23:59:59'
......
......@@ -74,11 +74,11 @@ const orderStatusList = [
},
{
confId: 21,
confName: '待核销'
confName: '待收货(待核销)'
},
{
confId: 22,
confName: '已核销'
confName: '已收货(已核销)'
}
]
import { utils } from 'glsx-common'
......@@ -133,7 +133,10 @@ export default {
},
{
label: '订单支付时间',
prop: 'payDate'
prop: 'payDate',
formatter: cellValue => {
return util.getTimeFomat(cellValue.payDate)
}
},
{
label: '订单支付金额',
......@@ -171,7 +174,8 @@ export default {
pageSize: this.$refs.tableEmp.page.pageSize,
currentPage: this.$refs.tableEmp.page.pageNum,
createdStartDateStr: this.startTime + ' 00:00:00',
createdEndDateStr: this.endTime + ' 23:59:59'
createdEndDateStr: this.endTime + ' 23:59:59',
orderStatuses: [2,4,5,6,7,8,9]
}
this.loading = true
this.$apis.home.shopmallPage(params).then(res => {
......@@ -184,7 +188,8 @@ export default {
var params = {
...JSON.parse(JSON.stringify(this.tableSearchForm)),
createdStartDateStr: this.startTime + ' 00:00:00',
createdEndDateStr: this.endTime + ' 23:59:59'
createdEndDateStr: this.endTime + ' 23:59:59',
orderStatuses: [2,4,5,6,7,8,9]
}
this.loading = true
this.$apis.home.shopmallExport(params).then(res => {
......
<template>
<div class="square-main" v-loading="loading">
<el-dialog
title="当日新增商城产值"
title="当日新增精品升级产值"
:visible.sync="dialogVisible"
width="70%"
:before-close="handleClose"
......@@ -27,11 +27,7 @@
<GLTable
ref="tableEmp"
class="table-img"
:getListApi="getListApi"
:searchForm="tableSearchForm"
:tableParams="tableParams"
:pageConf="pageConf"
:beforeSearchFn="beforeSearchFn"
:tableData="tableData" :tableTotal="tableTotal" :pageConf="pageConf" :tableParams="tableParams" @refreshTable="handleSearch" @selectionTable="selectionTable"
>
<template slot="goodsImage" slot-scope="scope">
<img class="img-60" :src="scope.scope.goodsImage" />
......@@ -45,6 +41,33 @@
</template>
<script>
const orderStatusList = [
// 2: '待收货',
// 3: '已完成',
// 4: '售后中',
// 5: '退款失败',
// 6: '已经退款',
{
confId: 1,
confName: '正常'
},
{
confId: 2,
confName: '异常'
},
{
confId: 3,
confName: '正常测试'
},
{
confId: 4,
confName: '异常测试'
},
{
confId: 5,
confName: '未收款'
}
]
import { utils } from "glsx-common";
import util from "@/utils/util";
export default {
......@@ -90,19 +113,25 @@ export default {
},
{
label: '商品/套餐名称',
prop: 'addTime'
prop: 'upgradeGoodsName'
},
{
label: '订单支付时间',
prop: 'paySuccessDate'
prop: 'paySuccessDate',
formatter: cellValue => {
return util.getTimeFomat(cellValue.paySuccessDate)
}
},
{
label: '订单支付金额',
prop: 'subTotalPrice'
label: '分账金额',
prop: 'shopProfitMoney'
},
{
label: '订单状态',
prop: 'addTime'
prop: 'addTime',
formatter: cellValue => {
return orderStatusList.find(item => item.confId == cellValue.orderType).confName
}
},
],
},
......@@ -127,22 +156,24 @@ export default {
var params = {
...JSON.parse(JSON.stringify(this.tableSearchForm)),
pageSize: this.$refs.tableEmp.page.pageSize,
currentPage: this.$refs.tableEmp.page.pageNum,
createdStartDateStr: this.startTime + " 00:00:00",
createdEndDateStr: this.endTime + " 23:59:59",
pageNum: this.$refs.tableEmp.page.pageNum,
payStartDateStr: this.startTime + " 00:00:00",
payEndDateStr: this.endTime + " 23:59:59",
orderType: 1
};
this.loading = true;
this.$apis.home.boutiquecoupon(params).then((res) => {
this.loading = false;
this.tableData = res.data;
this.tableTotal = res.count;
this.tableData = res.list;
this.tableTotal = res.total;
});
},
handleExport() {
var params = {
...JSON.parse(JSON.stringify(this.tableSearchForm)),
createdStartDateStr: this.startTime + " 00:00:00",
createdEndDateStr: this.endTime + " 23:59:59",
payStartDateStr: this.startTime + " 00:00:00",
payEndDateStr: this.endTime + " 23:59:59",
orderType: 1
};
this.loading = true;
this.$apis.home.boutiquecouponExport(params).then((res) => {
......
......@@ -9,11 +9,11 @@
</el-popover>
</div>
<div class="summary-item-total">
<div @click="handleEmpDetail('当日新增客户数', summaryTime, summaryTime)" v-if="this.$globalState.session.accountLevel != 4">
<div @click="handleEmpDetail('当日新增客户数', summaryTime, summaryTime)" v-if="this.$globalState.session.accountLevel == 4" class="custom-detail">
{{ newCustomerCount }}
<span>人</span>
</div>
<div v-if="this.$globalState.session.accountLevel == 4">
<div v-if="this.$globalState.session.accountLevel != 4">
{{ newCustomerCount }}
<span>人</span>
</div>
......@@ -37,7 +37,11 @@
</el-popover>
</div>
<div class="summary-item-total">
<div @click="handleEmpDetail('当日新增已加企微客户总数', summaryTime, summaryTime, 1)">
<div @click="handleEmpDetail('当日新增已加企微客户总数', summaryTime, summaryTime, 1)" class="custom-detail" v-if="this.$globalState.session.accountLevel == 4">
{{ newEntmicroCount }}
<span>人</span>
</div>
<div v-if="this.$globalState.session.accountLevel != 4">
{{ newEntmicroCount }}
<span>人</span>
</div>
......@@ -61,7 +65,11 @@
</el-popover>
</div>
<div class="summary-item-total">
<div @click="handleEmpGroupDetail(summaryTime)">
<div @click="handleEmpGroupDetail(summaryTime)" class="custom-detail" v-if="this.$globalState.session.accountLevel == 4">
{{ todayAddPackmenberCount }}
<span>人</span>
</div>
<div v-if="this.$globalState.session.accountLevel != 4">
{{ todayAddPackmenberCount }}
<span>人</span>
</div>
......@@ -85,7 +93,11 @@
</el-popover>
</div>
<div class="summary-item-total">
<div @click="handleEmpDetail('当日企微流失客户数', summaryTime, summaryTime, null, summaryTime)">
<div @click="handleEmpDetail('当日企微流失客户数', summaryTime, summaryTime, 0, summaryTime)" class="custom-detail" v-if="this.$globalState.session.accountLevel == 4">
{{ todayEntmicroLoseCount }}
<span>人</span>
</div>
<div v-if="this.$globalState.session.accountLevel != 4">
{{ todayEntmicroLoseCount }}
<span>人</span>
</div>
......@@ -109,7 +121,11 @@
</el-popover>
</div>
<div class="summary-item-total">
<div @click="handleEmpDetail('累计未加企微客户数', null, summaryTime, 0)">
<div @click="handleEmpDetail('累计未加企微客户数', null, summaryTime, 0)" class="custom-detail" v-if="this.$globalState.session.accountLevel == 4">
{{ notAddEntmicroCount }}
<span>人</span>
</div>
<div v-if="this.$globalState.session.accountLevel != 4">
{{ notAddEntmicroCount }}
<span>人</span>
</div>
......@@ -228,6 +244,10 @@ export default {
this.packmenberCount = res.packmenberCount
this.todayAddPackmenberCount = res.todayAddPackmenberCount
this.entmicroCountRadio = res.entmicroCountRadio
this.groupCustCountDayToDayRadio = res.groupCustCountDayToDayRadio
this.lostCountDayToDayRadio = res.lostCountDayToDayRadio
this.entmicroCountDayToDayRadio = res.entmicroCountDayToDayRadio
this.totalCountDayToDayRadio = res.totalCountDayToDayRadio
this.$emit('getEntmicroRadio', this.entmicroCountRadio)
})
},
......@@ -413,6 +433,9 @@ export default {
display: flex;
justify-content: space-between;
align-items: flex-end;
.custom-detail {
cursor: pointer;
}
.summary-radio {
// background: rgba(127, 204, 162, 0.1);
border-radius: 2px;
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!