Commit 6071c7d2 by 张立顺

功能联调完成

1 parent 1c29a0eb
......@@ -70,6 +70,27 @@ export function setMerchantOutputValueTarget(data) {
// return request(data)
}
// 单店信息模板导出
export function merchantOutputValueTargetExport(data) {
data.method = `${path2}workbench.merchantOutputValueTargetExport`
return request(data, "post")
// return request(data)
}
// 单店信息模板填写后导入
export function merchantOutputValueTargetImport(data) {
data.method = `${path2}workbench.merchantOutputValueTargetImport`
// return request(data, "post")
return request(data, "post", ["file"])
// return request(data)
}
// 单店信息督导和员工查询
export function findMerchantStaffList(data) {
data.method = `${path2}workbench.findMerchantStaffList`
// return request(data, "post")
return request(data)
}
// 隐私协议标题查询
export function getPrivacyAgreement(data) {
data.method = `${path2}privacyAgreement.getTitleByModule`
......
<template>
<d2-dialog :title="'编辑单店信息'" :is-visible="outputVisible" :width="'900px'" @closeDialog="handleImport"
@confirmDialog="handleConfirmImport">
<slot>
<div class="searchWrap">
<el-col :span="11">
<el-date-picker v-model="search.targetDate" :clearable="false" type="month" format="yyyy 年 MM 月"
@change="getList" value-format="yyyy-MM" :picker-options="pickerOptions" placeholder="选择月" />
</el-col>
<el-col :span="9">
<el-input v-model="search.keyword" clearable placeholder="输入门店名称搜索" />
</el-col>
<el-col :span="4" class="btnContainer">
<el-button type="primary" @click="getList" class="searchBtn">
搜索
</el-button>
<el-button size="small" @click="handleReset">
重置
</el-button>
</el-col>
<!-- <div class="searchInput">
</div> -->
</div>
<div class="yqdTableContainer">
<!-- border -->
<el-table :data="tableData" stripe max-height="450" :header-cell-style="rowClass" style="width: 100%">
<el-table-column label="序号" type="index" width="50" />
<!-- <el-table-column prop="yqMerchantName" label="园区店列表" width="200" /> -->
<el-table-column prop="merchantName" label="门店列表" width="200" />
<!-- <el-table-column prop="outputValue"
label="门店列表">
</el-table-column> -->
<!-- width="260" -->
<el-table-column prop="outputValue" label="场景在营" width="220">
<template slot-scope="scope">
<el-select v-model="scope.row['businessScene']" class="select" multiple collapse-tags placeholder="请选择">
<el-option v-for="item in sceneCodeList" :key="item.confId" :label="item.confValue" :value="item.confId">
</el-option>
</el-select>
</template>
</el-table-column>
<div>
<d2-dialog :title="'编辑单店信息'" :is-visible="outputVisible" :width="'1150px'" @closeDialog="handleClose"
@confirmDialog="handleConfirm">
<slot>
<div class="searchWrap">
<el-col :span="9">
<el-date-picker v-model="search.targetDate" :clearable="false" type="month" format="yyyy 年 MM 月"
@change="handleSearch" value-format="yyyy-MM" :picker-options="pickerOptions" placeholder="选择月" />
</el-col>
<el-col :span="9">
<el-input v-model="search.keyword" clearable placeholder="输入门店名称搜索" />
</el-col>
<el-col :span="6" class="btnContainer">
<el-button type="primary" size="small" @click="handleSearch" class="searchBtn">
搜索
</el-button>
<el-button size="small" @click="handleReset">
重置
</el-button>
<el-button size="small" @click="() => fileVisible = true">
导入
</el-button>
</el-col>
</div>
<div class="yqdTableContainer">
<el-table :data="tableData" stripe max-height="450" :header-cell-style="rowClass" style="width: 100%">
<el-table-column label="序号" type="index" width="50" />
<el-table-column prop="merchantName" label="门店列表" width="200" />
<el-table-column prop="outputValue" label="场景在营" width="210">
<template slot-scope="scope">
<el-select v-model="scope.row['businessScene']" class="select" multiple collapse-tags placeholder="请选择">
<el-option v-for="item in sceneCodeList" :key="item.confId" :label="item.confValue"
:value="item.confId">
</el-option>
</el-select>
</template>
</el-table-column>
<el-table-column prop="outputValue" label="部署状态" width="210">
<template slot-scope="scope">
<el-select v-model="scope.row['deployScene']" class="select" multiple collapse-tags placeholder="请选择">
<el-option v-for="item in sceneCodeList" :key="item.confId" :label="item.confValue"
:value="item.confId">
</el-option>
</el-select>
</template>
</el-table-column>
<el-table-column prop="outputValue" label="区域督导" width="150">
<template slot-scope="scope">
<!-- multiple -->
<el-select value-key="userId" v-model="scope.row['areaSupervision']" class="select" collapse-tags
placeholder="请选择">
<el-option v-for="item in supervisionOptionsList" :key="item.userId" :label="item.userName"
:value="item">
</el-option>
</el-select>
</template>
</el-table-column>
<el-table-column prop="outputValue" label="驻店负责人" width="150">
<template slot-scope="scope">
<el-select value-key="userId" v-model="scope.row['residentManager']" class="select"
@focus="getSelectList(scope.row, scope.$index,)" collapse-tags placeholder="请选择">
<el-option v-for="item in scope.row['residentManagerOptionsList']" :key="item.userId"
:label="item.userName" :value="item">
</el-option>
</el-select>
</template>
</el-table-column>
<el-table-column prop="outputValue" label="产值目标" width="150">
<template slot-scope="scope">
<!-- <div>slot-scope="scope"</div> &&item.isEdit-->
<span v-if="!scope.row['isEdit']">{{ scope.row['outputValue'] }}</span>
<!-- @input="input($event,item)" -->
<el-input v-else style="width: 140px" @input="handleInput($event, scope)"
v-model="scope.row['outputValue']" placeholder="" />
</template>
</el-table-column>
</el-table>
<el-pagination v-if="hasPage" background @size-change="handleSizeChange" @current-change="handleCurrentChange"
:current-page="page.currentPage" :page-sizes="[10, 20, 30, 40]" :page-size="page.pageSize" :total="tableTotal"
:layout="layout" />
<div class="tips">
产值目标填写后不支持修改,请谨慎输入。
<!-- 填写后不支持修改,请谨慎输入。 -->
</div>
</div>
</slot>
<el-table-column prop="outputValue" label="部署状态" width="220">
<template slot-scope="scope">
<el-select v-model="scope.row['deployScene']" class="select" multiple collapse-tags placeholder="请选择">
<el-option v-for="item in sceneCodeList" :key="item.confId" :label="item.confValue" :value="item.confId">
</el-option>
</el-select>
</template>
</el-table-column>
<el-table-column prop="outputValue" label="产值目标">
<template slot-scope="scope">
<!-- <div>slot-scope="scope"</div> &&item.isEdit-->
<span v-if="!scope.row['isEdit']">{{ scope.row['outputValue'] }}</span>
<!-- @input="input($event,item)" -->
<el-input v-else style="width: 140px" @input="handleInput($event, scope)" v-model="scope.row['outputValue']"
placeholder="" />
<!-- <div></div> -->
</template>
</el-table-column>
</el-table>
<div class="tips">
产值目标填写后不支持修改,请谨慎输入。
<!-- 填写后不支持修改,请谨慎输入。 -->
</d2-dialog>
<!-- 导入对账单 -->
<d2-dialog :title="'上传文件'" :is-visible="fileVisible" @closeDialog="handleImport" @confirmDialog="handleConfirmImport"
width="600px">
<slot>
<div>
<el-form :model="fileForm" :rules="fileRules" ref="fileRuleForm" label-width="120px">
<el-form-item label="导入文件:" prop="fileName">
<el-col :span="16">
<el-input readonly v-model="fileForm.fileName" />
</el-col>
<el-col :span="4" class="m-l-md">
<el-button class="import-btn">
导入文件
<input type="file" id="fileUpload" class="import-input"
accept="application/vnd.openxmlformats-officedocument.spreadsheetml.sheet"
@change="importFile($event)" />
<!-- href="https://img01.glsx.com.cn/weapp/resource/saas/scrm/xlsx/对账单模版.xlsx" -->
<el-link type="primary" class="import-template" @click="downLoadTemplate" icon="el-icon-link">
模版下载
</el-link>
</el-button>
</el-col>
</el-form-item>
</el-form>
<span v-show="showNum">
<div class="upload-statistics">
<div class="quantity">
<div class="success">{{ importNum.successCount }}</div>
<div>有效数据</div>
</div>
<div class="line"></div>
<div class="quantity">
<div class="err">{{ importNum.failCount }}</div>
<div>异常数据</div>
</div>
</div>
<div class="abnormal">
<p>数据异常的可能原因:</p>
<p class="color-33">
1. 订单编号不匹配
</p>
</div>
</span>
</div>
</div>
</slot>
</d2-dialog>
</slot>
</d2-dialog>
</div>
</template>
<script>
import { limitPrice } from '@/common/format'
import { sceneCodeList } from '@/common/constants'
import { downLoadFile } from '@/common/util'
// import moment from 'moment'
// import orderManage from "@api/orderManage"
import dayjs from 'dayjs'
import { getMerchantOutputValueTarget, setMerchantOutputValueTarget } from '@api/index'
import { merchantOutputValueTargetExport, merchantOutputValueTargetImport, getMerchantOutputValueTarget, setMerchantOutputValueTarget, findMerchantStaffList } from '@api/index'
export default {
props: {
isShow: {
......@@ -85,6 +154,16 @@ export default {
},
data() {
return {
fileVisible: false,
showNum: false,
importNum: {
succNum: 0,
failNum: 0
},
fileForm: {},
fileRules: {
fileName: [{ required: true, message: "请上传文件", trigger: "change" }]
},
pickerOptions: {
disabledDate: (time) => {
const maxMonth = dayjs().subtract(-1, 'months').endOf('month')
......@@ -102,8 +181,17 @@ export default {
targetDate: ''
},
tableData: [],
value2: [],
sceneCodeList
sceneCodeList,
supervisionOptionsList: [],
tableTotal: 10,
// 页码
page: {
pageSize: 10,
currentPage: 1
},
hasPage: true,
// 分页组件配置
layout: 'sizes,total,->,prev,pager,next,jumper'
// outputVisible: true
}
},
......@@ -121,29 +209,206 @@ export default {
// console.log(this.nowMonth)
this.search.targetDate = this.nowMonth
this.getList()
this.getOptionsList()
// console.log(moment().subtract(-1, 'months').endOf('month').format('YYYY-MM-DD'))
// console.log(moment().subtract(5, 'months').startOf('month').format('YYYY-MM-DD'))
},
methods: {
getSelectList(item, index) {
console.log(item, index, 'item')
if (item.remote) return false
const { merchantId } = item
findMerchantStaffList({ merchantId }).then((result) => {
console.log('residentManagerOptionsList', result)
// 督导
// this.tableData
const optionsList = result.map((item) => {
return {
userType: 2,
userId: item.uuid,
userName: item.staffName,
userNum: item.staffPhone
}
})
this.$set(this.tableData[index], 'residentManagerOptionsList', optionsList)
this.$set(this.tableData[index], 'remote', true)
console.log(this.tableData[index])
// this.supervisionOptionsList = result.map((item) => {
// return {
// userType: 1,
// userId: item.uuid,
// userName: item.staffName,
// userNum: item.staffPhone
// }
// })
})
},
getOptionsList() {
findMerchantStaffList({ merchantId: -1 }).then((result) => {
console.log('findMerchantStaffList', result)
// 督导
// if (merchantId == -1) {
this.supervisionOptionsList = result.map((item) => {
return {
userType: 1,
userId: item.uuid,
userName: item.staffName,
userNum: item.staffPhone
}
})
// }
})
},
downLoadTemplate() {
merchantOutputValueTargetExport({ targetDate: this.search.targetDate }).then((result) => {
console.log(result, 'result')
// const { data } = result
result && downLoadFile(result)
})
},
// 上传文件,转码为base64
importFile(e) {
const size = e.target.files[0].size / 1024 / 1024
console.log(e)
if (size < 9) {
this.$set(this.fileForm, "fileName", e.target.files[0].name)
// // 转码base64
const reader = new FileReader()
reader.readAsDataURL(e.target.files[0])
reader.onload = (event) => {
const imgFile = event.target.result
const arrBase64 = imgFile.split(",")
this.fileInfo =
e.target.files[0].name.split(".")[1] + "@" + arrBase64[1]
// orderManage.pictureUpload({ file: this.fileInfo }).then((res) => {
// if (res) {
// this.fileForm.fileUrl = res
// }
// // const refName = "file" + row.id
// // const refName = "file"
// e.target.value = ""
// // this.$refs[refName].value = ""
// })
document.getElementById("fileUpload").value = ""
}
} else {
this.notice.errorTips("上传文件不可超过9M")
}
},
handleImport() {
this.fileVisible = !this.fileVisible
this.$refs.fileRuleForm && this.$refs.fileRuleForm.resetFields()
},
handleConfirmImport() {
this.$refs.fileRuleForm.validate((valid) => {
if (valid) {
// var params = {
// fileUrl: this.fileForm.fileUrl
// }
merchantOutputValueTargetImport({ file: this.fileInfo }).then((result) => {
console.log(result, 'result')
const { url, dataList } = result
console.log(url, 'url')
if (url) {
// this.$message.error('上传失败')
this.$message.error('上传失败')
downLoadFile(url)
}
if (dataList) {
this.$message.success('上传成功')
this.fileVisible = false
this.hasPage = false
// const listFilter = result.list
this.tableData = dataList.map((item) => {
item.dataMonth = this.search.targetDate
item.isEdit = true
item.areaSupervision = item.areaSupervision || {}
item.residentManager = item.residentManager || {}
// item.residentManagerOptionsList = item.residentManager?{}
if (item.residentManager) {
item.residentManagerOptionsList = [{
userId: item.residentManager.userId,
userName: item.residentManager.userName,
userNum: item.residentManager.userNum,
userType: item.residentManager.userType
}]
} else {
item.residentManagerOptionsList = []
}
return item
})
// this.tableTotal = result.total
}
})
// .catch((err) => {
// })
// orderManage.orderEndExportApi(params).then((res) => {
// if (res) {
// this.showNum = true
// this.importNum = {
// successCount: res.successCount,
// failCount: res.failCount
// }
// this.$message.success('上传成功')
// // this.handleImport()
// }
// })
}
})
},
// 每页条数
handleSizeChange(value) {
this.page.pageSize = value
this.getListApi ? this.refreshTable(false) : this.$emit('refreshTable', this.page)
},
// 页码
handleCurrentChange(value) {
this.page.currentPage = value
this.getListApi ? this.refreshTable(false) : this.$emit('refreshTable', this.page)
},
handleReset() {
this.search.targetDate = this.nowMonth
this.search.keyword = ''
this.getList()
},
handleSearch() {
this.hasPage = true
this.page.currentPage = 1
},
getList() {
getMerchantOutputValueTarget(this.search).then((result) => {
const params = {
...this.search,
...this.page
}
getMerchantOutputValueTarget(params).then((result) => {
console.log(result, 'result')
const monthCheck = [this.nowMonth, this.nextMonth].includes(this.search.targetDate)
// console.log(monthCheck)
// 处理值能否编辑的问题
const listFilter = result
const listFilter = result.list
// 要单月或者下月并且值为0才可以编辑
this.tableData = listFilter.map((item) => {
item.dataMonth = this.search.targetDate
item.isEdit = monthCheck && !item.outputValue
item.areaSupervision = item.areaSupervision || {}
item.residentManager = item.residentManager || {}
// item.residentManagerOptionsList = item.residentManager?{}
if (item.residentManager) {
item.residentManagerOptionsList = [{
userId: item.residentManager.userId,
userName: item.residentManager.userName,
userNum: item.residentManager.userNum,
userType: item.residentManager.userType
}]
} else {
item.residentManagerOptionsList = []
}
return item
})
// console.log(result)
this.tableData = result
this.tableTotal = result.total
// console.log(this.tableData)
}).catch((err) => {
console.log(err)
......@@ -164,7 +429,7 @@ export default {
// console.log(rowIndex) // 表头行标号为0
return 'background:#F4F6FC'
},
async handleConfirmImport() {
async handleConfirm() {
let filterList = this.tableData.filter((item) => {
// 删除无需字段 避免后台类型报错
// delete item.createdDate
......@@ -182,9 +447,12 @@ export default {
outputValue: item.outputValue,
deployScene: item.deployScene,
businessScene: item.businessScene,
dataMonth: item.dataMonth
dataMonth: item.dataMonth,
areaSupervision: item.areaSupervision,
residentManager: item.residentManager
}
})
console.log(filterList, 'filterList')
if (filterList.length) {
// console.log('请求修改')
// const result =
......@@ -195,9 +463,14 @@ export default {
// else {
// console.log('没有能修改的')
// }
this.handleImport()
this.$notify({
type: 'success',
title: '保存成功'
})
// this.$notify.successTips('保存成功')
this.handleClose()
},
handleImport() {
handleClose() {
this.outputVisible = false
}
}
......@@ -222,10 +495,10 @@ export default {
padding-right: 10px;
}
.searchBtn {
font-size: 12px;
padding: 8px 10px;
}
// .searchBtn {
// font-size: 12px;
// padding: 8px 10px;
// }
}
::v-deep.yqdTableContainer {
......@@ -257,4 +530,84 @@ export default {
text-align: right;
color: #f46967;
}
.list-tips {
background: #e4e3ff;
border-radius: 4px;
border: none;
display: flex;
align-items: center;
font-size: 14px;
color: rgba(0, 0, 0, 0.65);
padding: 10px 16px;
height: 20px;
line-height: 20px;
}
.m-t-94 {
margin-top: 94px;
}
.upload-wrap {
display: flex;
}
.import-btn {
position: relative;
}
.import-input {
opacity: 0;
position: absolute;
right: 0;
top: 0;
width: 98px;
height: 36px;
cursor: pointer;
font-size: 0;
}
.import-template {
position: absolute;
height: 20px;
top: 50px;
left: 0;
}
.m-l-md {
margin-left: 20px;
}
.upload-statistics {
display: flex;
align-items: center;
justify-content: space-between;
margin: 30px 70px;
.quantity {
font-size: 14px;
color: #333333;
text-align: center;
.success {
font-size: 26px;
color: #2cca74;
text-align: center;
margin-bottom: 4px;
}
.err {
font-size: 26px;
color: #eb4e4e;
text-align: center;
margin-bottom: 4px;
}
}
.line {
width: 1px;
height: 56px;
background: #e8e8ea;
}
}
</style>
......@@ -2,51 +2,19 @@
<template>
<div class="indexPage">
<reportDownloads v-if="curBtnsInfo" />
<!-- <el-row>
<el-col :span="24">
<el-card :body-style="{ padding: '16px' }">
<div class="reportContainer box-card">
<div class="reportTips">数据日报{{reportDay}}已生成</div>
<div class="selectContainer">
<div>选择日期</div>
<div class="daySelect">
<el-date-picker v-model="dateValue"
type="date"
:picker-options="pickerOptions"
format="yyyy 年 MM 月 dd 日"
placeholder="选择日期">
</el-date-picker>
</div>
<el-button type="primary"
class="exportBtn">导出日报</el-button>
</div>
<div class="inputTargetBtn"
@click="outputVisible = true"><i class="el-icon-edit"></i>输入单店产值目标</div>
</div>
</el-card>
</el-col>
</el-row> -->
<el-row>
<el-col :span="24">
<el-card class="box-card">
<div slot="header"
class="clearfix">
<div slot="header" class="clearfix">
<span>工作台总览</span>
<el-select v-model="id"
@change="idChange"
v-show="isBeSuper"
size="mini"
style="float:right;">
<el-option v-for="(item, index) in parkServiceList"
:key="index"
:value="+accountType === 7 ? item.yqMerchantId : item.merchantId"
:label="+accountType === 7 ? item.yqMerchantName : item.merchantName" />
<el-select v-model="id" @change="idChange" v-show="isBeSuper" size="mini" style="float:right;">
<el-option v-for="(item, index) in parkServiceList" :key="index"
:value="+accountType === 7 ? item.yqMerchantId : item.merchantId"
:label="+accountType === 7 ? item.yqMerchantName : item.merchantName" />
</el-select>
</div>
<div style="text-align: right;">
<el-radio-group v-model="totalType"
type="info"
size="mini">
<el-radio-group v-model="totalType" type="info" size="mini">
<el-radio-button label="today">
今日
</el-radio-button>
......@@ -58,11 +26,8 @@
</el-radio-button>
</el-radio-group>
</div>
<el-row :gutter="40"
class="row_one">
<el-col v-if="+accountType !== 7"
:span="8"
style="border-right: 1px solid #E7EAEC; ">
<el-row :gutter="40" class="row_one">
<el-col v-if="+accountType !== 7" :span="8" style="border-right: 1px solid #E7EAEC; ">
<div class="top_card">
<div class="top_card_title">
今日待预约
......@@ -84,8 +49,7 @@
<div class="top_card_main top_card_main_multi">
<div class="top_card_md">
<span class="top_card_md_left">客户数(人)</span>
<span
class="top_card_md_right top_card_second">{{ totalData.totalCustomerNums }}</span>
<span class="top_card_md_right top_card_second">{{ totalData.totalCustomerNums }}</span>
</div>
<div class="top_card_bm">
<span class="top_card_bm_left">转化率</span>
......@@ -102,8 +66,7 @@
<div class="top_card_main top_card_main_multi">
<div class="top_card_md">
<span class="top_card_md_left">已成交订单数(单)</span>
<span
class="top_card_md_right top_card_third">{{ totalData.totalOrderCounts }}</span>
<span class="top_card_md_right top_card_third">{{ totalData.totalOrderCounts }}</span>
</div>
<div class="top_card_bm">
<span class="top_card_bm_left">成交总额</span>
......@@ -120,8 +83,7 @@
<div class="top_card_main top_card_main_multi">
<div class="top_card_md">
<span class="top_card_md_left">流水额(元)</span>
<span
class="top_card_md_right top_card_fourth">{{ totalData.totalFlowsMoney }}</span>
<span class="top_card_md_right top_card_fourth">{{ totalData.totalFlowsMoney }}</span>
</div>
<div class="top_card_bm">
<span class="top_card_bm_left">毛利</span>
......@@ -136,20 +98,14 @@
</el-card>
</el-col>
</el-row>
<!-- <div class="ad_wrap">
<img class="ad_img" src="http://img01.glsx.com.cn/image/head.png" alt="">
</div> -->
<el-row>
<el-col :span="24">
<el-card class="box-card">
<div slot="header"
class="clearfix">
<div slot="header" class="clearfix">
<span>客户报表视图</span>
</div>
<div>
<el-radio-group v-model="customerType"
type="info"
size="mini">
<el-radio-group v-model="customerType" type="info" size="mini">
<el-radio-button label="today">
今日
</el-radio-button>
......@@ -161,8 +117,7 @@
</el-radio-button>
</el-radio-group>
</div>
<el-row :gutter="40"
class="row_one">
<el-row :gutter="40" class="row_one">
<el-col :span="16">
<el-row :gutter="20">
<el-col :span="8">
......@@ -172,15 +127,11 @@
</div>
<div class="top_card_main top_card_main_multi">
<div class="top_card_md">
<span
class="top_card_md_right top_card_primary">{{ customerData.totalCustomerNums }}</span>
<span class="top_card_md_right top_card_primary">{{ customerData.totalCustomerNums }}</span>
</div>
<div class="top_card_bm"
v-show="customerType==='today'">
<span
class="top_card_bm_left">周同比:{{ $$(customerData,'onWeekCustomerNums') }}%</span>
<span
class="top_card_bm_right customer">日环比:{{ customerData.onDayCustomerNums }}%</span>
<div class="top_card_bm" v-show="customerType === 'today'">
<span class="top_card_bm_left">周同比:{{ $$(customerData, 'onWeekCustomerNums') }}%</span>
<span class="top_card_bm_right customer">日环比:{{ customerData.onDayCustomerNums }}%</span>
</div>
<div class="top_card_bm">
<span class="top_card_bm_left">日均新增客户(人)</span>
......@@ -196,14 +147,11 @@
</div>
<div class="top_card_main top_card_main_multi">
<div class="top_card_md">
<span
class="top_card_md_right top_card_second">{{ customerData.totalToShop }}</span>
<span class="top_card_md_right top_card_second">{{ customerData.totalToShop }}</span>
</div>
<div class="top_card_bm"
v-show="customerType==='today'">
<div class="top_card_bm" v-show="customerType === 'today'">
<span class="top_card_bm_left">周同比:{{ customerData.onWeekToShop }}%</span>
<span
class="top_card_bm_right customer">日环比:{{ customerData.onDayToShop }}%</span>
<span class="top_card_bm_right customer">日环比:{{ customerData.onDayToShop }}%</span>
</div>
<div class="top_card_bm">
<span class="top_card_bm_left">日均到店数(人)</span>
......@@ -219,28 +167,22 @@
</div>
<div class="top_card_main top_card_main_multi">
<div class="top_card_md">
<span
class="top_card_md_right top_card_third">{{ customerData.upgradeTransfer }}%</span>
<span class="top_card_md_right top_card_third">{{ customerData.upgradeTransfer }}%</span>
</div>
<div class="top_card_bm"
v-show="customerType==='today'">
<span
class="top_card_bm_left">周同比:{{ customerData.onWeekUpgradeTransfer }}%</span>
<span
class="top_card_bm_right customer">日环比:{{ customerData.onDayUpgradeTransfer }}%</span>
<div class="top_card_bm" v-show="customerType === 'today'">
<span class="top_card_bm_left">周同比:{{ customerData.onWeekUpgradeTransfer }}%</span>
<span class="top_card_bm_right customer">日环比:{{ customerData.onDayUpgradeTransfer }}%</span>
</div>
<div class="top_card_bm">
<span class="top_card_bm_left">日均转化率(比)</span>
<span
class="top_card_bm_right">{{ customerData.perDayUpgradeTransfer }}%</span>
<span class="top_card_bm_right">{{ customerData.perDayUpgradeTransfer }}%</span>
</div>
</div>
</div>
</el-col>
</el-row>
</el-col>
<el-col :span="8"
style="border-left: 1px solid #E7EAEC; ">
<el-col :span="8" style="border-left: 1px solid #E7EAEC; ">
<h4 class="funnel_title">
转化漏斗模型:
</h4>
......@@ -259,8 +201,7 @@
{{ transferData.upgradeTransfer }}%
</p>
</div>
<div id="funnelChart"
style="height: 180px" />
<div id="funnelChart" style="height: 180px" />
</div>
</el-col>
</el-row>
......@@ -270,13 +211,11 @@
<el-row>
<el-col :span="24">
<el-card class="box-card">
<div slot="header"
class="clearfix">
<div slot="header" class="clearfix">
<span>客户转化数据</span>
</div>
<div>
<div id="customTransChart"
style="height: 330px" />
<div id="customTransChart" style="height: 330px" />
</div>
</el-card>
</el-col>
......@@ -284,28 +223,22 @@
<el-row :gutter="15">
<el-col :span="10">
<el-card class="box-card">
<div slot="header"
class="clearfix">
<div slot="header" class="clearfix">
<span>4s门店客流量</span>
</div>
<div>
<div id="storeFlowChart"
style="height: 330px" />
<div id="storeFlowChart" style="height: 330px" />
</div>
</el-card>
</el-col>
<el-col :span="14">
<el-card class="box-card">
<div slot="header"
class="clearfix">
<div slot="header" class="clearfix">
<span>订单数据</span>
</div>
<div>
<div id="orderChart"
style="height: 330px"
v-show="false" />
<div id="orderProductChart"
style="height: 330px" />
<div id="orderChart" style="height: 330px" v-show="false" />
<div id="orderProductChart" style="height: 330px" />
</div>
</el-card>
</el-col>
......@@ -313,27 +246,22 @@
<el-row :gutter="15">
<el-col :span="14">
<el-card class="box-card">
<div slot="header"
class="clearfix">
<div slot="header" class="clearfix">
<span>收入明细及利润</span>
</div>
<div>
<div id="incomeFlowChart"
style="height: 330px" />
<div id="incomeFlowChart" style="height: 330px" />
</div>
</el-card>
</el-col>
<el-col :span="10">
<el-card class="box-card">
<div slot="header"
class="clearfix">
<div slot="header" class="clearfix">
<span>累计毛利产品占比</span>
</div>
<div>
<div style="text-align: right;">
<el-radio-group v-model="productType"
type="info"
size="mini">
<el-radio-group v-model="productType" type="info" size="mini">
<el-radio-button label="thisMonth">
本月
</el-radio-button>
......@@ -345,8 +273,7 @@
</el-radio-button>
</el-radio-group>
</div>
<div id="incomeProductChart"
style="height: 302px" />
<div id="incomeProductChart" style="height: 302px" />
</div>
</el-card>
</el-col>
......@@ -441,12 +368,6 @@ export default {
}
},
mounted() {
// console.log(this.$store)
// console.log(this.$store.getters['d2admin/auth/curBtns'])
// console.log(this.$store.getters)
// console.log(this.$store.getters['d2admin/auth/curBtns'])
// let reportDay = moment().subtract(1, 'day').format('YYYY年MM月DD日')
// console.log(moment().subtract(1, 'day').format('YYYY年MM月DD日'))
this.getUserId().then(() => {
this.init()
})
......@@ -825,12 +746,15 @@ export default {
overflow-y: auto;
overflow-x: hidden;
min-width: 1150px;
& > .el-row {
&>.el-row {
margin-bottom: 20px;
}
.d2-container-full__body {
background-color: transparent !important;
}
.row_one {
.el-col {
//padding: 15px 0;
......@@ -844,20 +768,24 @@ export default {
border: 1px solid #f1f1f1;
border-radius: 5px;
border-radius: 5px;
.top_card_title {
font-size: 16px;
color: #666;
}
.top_card_main {
height: 100px;
display: flex;
align-items: center;
justify-content: center;
.red {
color: red;
}
.top_card_main_unit {
}
.top_card_main_unit {}
.top_card_main_count {
color: #0947c6;
font-size: 30px;
......@@ -876,17 +804,22 @@ export default {
width: 100%;
padding-top: 20px;
justify-content: space-between;
.top_card_md_right {
font-size: 30px;
&.top_card_primary {
color: #0947c6;
}
&.top_card_second {
color: #ffaa00;
}
&.top_card_third {
color: #f46967;
}
&.top_card_fourth {
color: #82c239;
}
......@@ -898,8 +831,10 @@ export default {
align-items: center;
width: 100%;
justify-content: space-between;
.top_card_bm_right {
font-size: 16px;
&.customer {
font-size: 12px;
}
......@@ -908,17 +843,21 @@ export default {
}
}
}
.funnel_wrap {
display: flex;
max-width: 300px;
margin: 0 auto;
.funnel_info {
margin: 30px 15px 0 0;
padding-top: 20px;
& > p {
&>p {
margin: 8px 0;
}
}
.funnel_label {
color: #999;
font-size: 12px;
......@@ -928,20 +867,24 @@ export default {
margin: 0 0 10px;
color: #0947c6;
}
#funnelChart {
flex: 1;
}
}
.funnel_title {
position: absolute;
top: -10px;
color: #0947c6;
}
}
.ad_wrap {
text-align: center;
margin-bottom: 20px;
font-size: 0;
.ad_img {
max-width: 100%;
}
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!