Commit 2589efda by yy

end

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