Commit 3bf0912a by 杨北旺

完成接口联调,剩余部分交互

1 parent c7863868
......@@ -5133,7 +5133,8 @@
"ansi-regex": {
"version": "2.1.1",
"bundled": true,
"dev": true
"dev": true,
"optional": true
},
"aproba": {
"version": "1.2.0",
......@@ -5154,12 +5155,14 @@
"balanced-match": {
"version": "1.0.0",
"bundled": true,
"dev": true
"dev": true,
"optional": true
},
"brace-expansion": {
"version": "1.1.11",
"bundled": true,
"dev": true,
"optional": true,
"requires": {
"balanced-match": "^1.0.0",
"concat-map": "0.0.1"
......@@ -5174,17 +5177,20 @@
"code-point-at": {
"version": "1.1.0",
"bundled": true,
"dev": true
"dev": true,
"optional": true
},
"concat-map": {
"version": "0.0.1",
"bundled": true,
"dev": true
"dev": true,
"optional": true
},
"console-control-strings": {
"version": "1.1.0",
"bundled": true,
"dev": true
"dev": true,
"optional": true
},
"core-util-is": {
"version": "1.0.2",
......@@ -5301,7 +5307,8 @@
"inherits": {
"version": "2.0.4",
"bundled": true,
"dev": true
"dev": true,
"optional": true
},
"ini": {
"version": "1.3.5",
......@@ -5313,6 +5320,7 @@
"version": "1.0.0",
"bundled": true,
"dev": true,
"optional": true,
"requires": {
"number-is-nan": "^1.0.0"
}
......@@ -5327,6 +5335,7 @@
"version": "3.0.4",
"bundled": true,
"dev": true,
"optional": true,
"requires": {
"brace-expansion": "^1.1.7"
}
......@@ -5334,12 +5343,14 @@
"minimist": {
"version": "0.0.8",
"bundled": true,
"dev": true
"dev": true,
"optional": true
},
"minipass": {
"version": "2.9.0",
"bundled": true,
"dev": true,
"optional": true,
"requires": {
"safe-buffer": "^5.1.2",
"yallist": "^3.0.0"
......@@ -5358,6 +5369,7 @@
"version": "0.5.1",
"bundled": true,
"dev": true,
"optional": true,
"requires": {
"minimist": "0.0.8"
}
......@@ -5447,7 +5459,8 @@
"number-is-nan": {
"version": "1.0.1",
"bundled": true,
"dev": true
"dev": true,
"optional": true
},
"object-assign": {
"version": "4.1.1",
......@@ -5459,6 +5472,7 @@
"version": "1.4.0",
"bundled": true,
"dev": true,
"optional": true,
"requires": {
"wrappy": "1"
}
......@@ -5544,7 +5558,8 @@
"safe-buffer": {
"version": "5.1.2",
"bundled": true,
"dev": true
"dev": true,
"optional": true
},
"safer-buffer": {
"version": "2.1.2",
......@@ -5580,6 +5595,7 @@
"version": "1.0.2",
"bundled": true,
"dev": true,
"optional": true,
"requires": {
"code-point-at": "^1.0.0",
"is-fullwidth-code-point": "^1.0.0",
......@@ -5599,6 +5615,7 @@
"version": "3.0.1",
"bundled": true,
"dev": true,
"optional": true,
"requires": {
"ansi-regex": "^2.0.0"
}
......@@ -5642,12 +5659,14 @@
"wrappy": {
"version": "1.0.2",
"bundled": true,
"dev": true
"dev": true,
"optional": true
},
"yallist": {
"version": "3.1.1",
"bundled": true,
"dev": true
"dev": true,
"optional": true
}
}
},
......
......@@ -43,7 +43,47 @@ const findCoupons = () => {
}
// 精品礼券升级订单查询
const findupGradeOrder = () => {
let method = 'dj.api.smartcarlife.goodsOrderProfitAllocation.shop.merchant.page'
let method = 'dj.api.smartcarlife.goodsOrderProfitAllocation.shop.merchant.page'
return method
}
// 查看礼券
const checkCoupons = () => {
let method = 'dj.api.smartcarlife.merchant.coupon.page'
return method
}
// 我的分账
const mydivision = () => {
let method = 'dj.smartcarlife.api.shop.order.division.page'
return method
}
// 精品礼券导出
const exportCoupons = () => {
let method = 'dj.api.life.customer.coupon.exportExcelListFor4S'
return method
}
// 精品礼券升级订单导出
const exportUpgrade = () => {
let method = 'dj.api.smartcarlife.goodsOrderProfitAllocation.shop.merchant.export'
return method
}
// 我的分账导出
const exportMydivision = () => {
let method = 'dj.smartcarlife.api.shop.order.division.export'
return method
}
// 获取发券人/转化人列表
const getEmployName = () => {
let method = 'dj.api.life.customer.coupon.distinctColum'
return method
}
// 查看明细
const checkDetail = () => {
let method = 'dj.api.smartcarlife.goodsOrder.detail'
return method
}
// 集团--订单统计
const orderTotalOfJT = () => {
let method = 'dj.api.smartcarlife.orderReport.totalByMerchant'
return method
}
export {
......@@ -56,5 +96,13 @@ export {
couponsTotalByDay,
moneyTotal,
findCoupons,
findupGradeOrder
findupGradeOrder,
checkCoupons,
mydivision,
exportMydivision,
exportUpgrade,
exportCoupons,
getEmployName,
checkDetail,
orderTotalOfJT
}
\ No newline at end of file
......@@ -119,6 +119,18 @@
color: #333333;
}
.h19_title {
font-size: 14px;
font-weight: 500;
color: #666666;
}
.h20_title {
font-size: 12px;
font-weight: 400;
color: #666666;
}
.flex_scb {
display: flex;
align-items: center;
......
<template>
<div class="my-drop-menu">
<div class="left_widget label flex_cc">
<el-dropdown trigger="click">
<el-dropdown trigger="click" @command="onChangeValue">
<div class="h13_title">
{{ leftName }}
<i class="el-icon-caret-bottom el-icon-caret-top"></i>
</div>
<el-dropdown-menu slot="dropdown" class="drop_item">
<el-dropdown-item>黄金糕</el-dropdown-item>
<el-dropdown-item>狮子头</el-dropdown-item>
<el-dropdown-item>螺蛳粉</el-dropdown-item>
<el-dropdown-item v-for="item in options" :key="item.value" :command="item">{{item.label}}</el-dropdown-item>
</el-dropdown-menu>
</el-dropdown>
</div>
......@@ -29,12 +27,18 @@ export default {
props: {
leftName: {
type: String,
default: '下拉菜单'
}
default: '请选择'
},
options:Array
},
mounted() {},
methods: {}
methods: {
onChangeValue(e){
this.leftName = e.label
this.$emit('getValue',e.value)
},
}
}
</script>
<style lang="scss" scoped>
......
......@@ -105,7 +105,7 @@ export default {
},
itemStyle: {
normal: {
color: '#5850FF'
color: '#B3B3FF'
}
},
data: this.getTotal
......@@ -120,7 +120,7 @@ export default {
barWidth: 6,
itemStyle: {
normal: {
color: '#FF6D00'
color: '#7C7CFF'
}
},
data: this.usedTotal
......@@ -135,7 +135,7 @@ export default {
},
itemStyle: {
normal: {
color: '#FDB757'
color: '#5850FF'
}
},
data: this.upgradeTotal
......
<!-- 选择商品弹窗 -->
<template>
<div :id="echartId" class="chart-container"></div>
<div>
<div v-if="!nodata" :id="echartId" class="chart-container"></div>
<div v-else class="chart-container flex_cc h19_title">暂无数据</div>
</div>
</template>
<script>
......@@ -11,7 +14,9 @@ import utils from '../../util/util'
export default {
name: '',
data() {
return {}
return {
nodata: false
}
},
props: {
......@@ -32,7 +37,7 @@ export default {
color: ['#5850FF', '#9191FF', '#CBCBFF'],
tooltip: {
trigger: 'item',
formatter: '{a} <br/>{b} : {c}(张)'
formatter: '{a} <br/>{b}'
},
series: [
{
......@@ -52,7 +57,7 @@ export default {
label: {
show: true,
position: 'left',
formatter: '{b}: {c}(张)',
// formatter: '{b}: {c}(张)',
textStyle: {
fontSize: 14
},
......@@ -71,9 +76,9 @@ export default {
height: 37
},
data: [
{ value: res.getTotal, name: `发券总数` },
{ value: res.usedTotal, name: `核销总数` },
{ value: res.upgradeTotal, name: `转化订单数` }
{ value: res.getTotal || 0, name: `发券总数:${res.getTotal || 0}(张)` },
{ value: res.usedTotal || 0, name: `核销总数:${res.usedTotal || 0}(张)` },
{ value: res.upgradeTotal || 0, name: `转化订单数:${res.upgradeTotal || 0}(笔)` }
]
}
]
......@@ -81,14 +86,15 @@ export default {
option && myChart.setOption(option)
},
// 初始化时间
initTIme(){
initTIme() {
let openInfo = JSON.parse(localStorage.getItem('openInfo'))
let startDate = utils.dateFormat(openInfo.openDate)
// let startDate = utils.dateFormat(openInfo.openDate)
let startDate = '2020-01-01'
let endDate = utils.dateFormat(new Date())
this.couponsChartData(startDate,endDate)
this.couponsChartData(startDate, endDate)
},
// 券统计
couponsChartData(startDate,endDate) {
couponsChartData(startDate, endDate) {
let method = couponsTotal()
let para = {
routerMethod: method,
......@@ -96,6 +102,10 @@ export default {
endDate
}
converterApi(para).then(res => {
if (!res.getTotal && !res.usedTotal && !res.upgradeTotal) {
this.nodata = true
return
}
this.getOptions(res)
})
}
......
......@@ -108,7 +108,6 @@ export default {
reportType:2
}
converterApi(para).then(res => {
this.getOptions(res)
let arr = res || []
if(arr.length){
arr.forEach(item=>{
......@@ -116,6 +115,7 @@ export default {
this.divisionMoney.push(item.divisionMoney)
this.profitMoney.push(item.profitMoney)
})
this.getOptions()
}
})
}
......
import Vue from 'vue'
import { Message, Button, ButtonGroup, Form, FormItem, Input, Radio, RadioGroup, Checkbox, CheckboxGroup, Switch, Select, Option, TimePicker, Col, DatePicker, Tree, Card, Table, TableColumn, Pagination, Loading, Dialog, MessageBox, Upload, Tooltip, Tabs, TabPane, Container, Progress, Timeline, TimelineItem, Dropdown, DropdownMenu } from 'element-ui'
import { Message, Button, ButtonGroup, Form, FormItem, Input, Radio, RadioGroup, Checkbox, CheckboxGroup, Switch, Select, Option, TimePicker, Col, DatePicker, Tree, Card, Table, TableColumn, Pagination, Loading, Dialog, MessageBox, Upload, Tooltip, Tabs, TabPane, Container, Progress, Timeline, TimelineItem, Dropdown, DropdownMenu, Rate } from 'element-ui'
Vue.use(Button)
Vue.use(ButtonGroup)
Vue.use(Form)
......@@ -31,5 +31,6 @@ Vue.use(Timeline)
Vue.use(TimelineItem)
Vue.use(Dropdown)
Vue.use(DropdownMenu)
Vue.use(Rate)
export const message = Message
export const messageBox = MessageBox
\ No newline at end of file
......@@ -4,7 +4,8 @@ import { fetchConfig } from '@/config'
import { GLButton, GLTable } from 'glsx-components' //权限按钮 (根据权限动态创建)
import { getRoutes } from '@/router'
import render from './render'
import 'glsx-components/dist/glsx-components.css'
// import 'glsx-components/dist/glsx-components.css'
import 'glsx-components/src/theme/theme.scss'
let routes = []
let router = null
let instance = null
......
......@@ -22,4 +22,8 @@ function appendZero(int) {
return int
}
}
util.decimal = function(num, fixed) {
let pow = Math.pow(10, fixed)
return Math.round(num * pow) / pow
}
export default util
\ No newline at end of file
<template>
<div class="rule-container">
<div class="top_wrapper">
<div v-if="accountLevel==4" class="rule-container">
<div v-if="!nodata" class="top_wrapper">
<div v-if="updateTime" class="tip_line">
<img class="icon" src="../../assets/notice.png" />
<span class="h10_title">尊敬的客户,您的分账规则于 #{{ updateTime }}#已经变更,新的规则将于 #{{ effectTime }}# 生效,修改人:{{ settleRule1.updatedBy }}。</span>
......@@ -48,6 +48,7 @@
<img class="icon" src="../../assets/down_icon.png" />
</div>
</div>
<div v-if="noList" class="no_data h19_title">暂无数据</div>
</div>
<el-dialog :visible.sync="computeShow" width="50%" :before-close="handleClose">
<div slot="title" class="dialogTitle">分润计算说明</div>
......@@ -118,6 +119,7 @@ export default {
data() {
return {
startDate: '',
endDate: '',
settleRule1: '',
updateTime: null,
effectTime: null,
......@@ -127,22 +129,29 @@ export default {
bankInfo: null,
pageSize: 10,
currentPage: 1,
computeShow: false
computeShow: false,
accountLevel:1,
nodata:false,
noList:false
}
},
mounted() {
// const { session } = this.$globalState
// let merchantId = session.merchantId
this.getRulesDataList()
this.getRuleNote()
const { session } = this.$globalState
let merchantId = session.merchantId
this.merchantId = merchantId
this.accountLevel = session.accountLevel
if (session.accountLevel == 4) {
this.getRulesDataList(merchantId)
this.getRuleNote(merchantId)
}
},
methods: {
// 获取分账规则
getRulesDataList() {
getRulesDataList(merchantId) {
let method = getRulesData()
let para = {
let para = {//44209532
routerMethod: method,
merchantId: 44209532
merchantId
}
converterApi(para).then(res => {
this.bankInfo = res.bankInfo
......@@ -150,6 +159,10 @@ export default {
this.divisionRule2 = res.divisionRule2
this.settleRule1 = res.settleRule1
this.settleRule2 = res.settleRule2
if(!res.bankInfo&&!res.divisionRule1&&!res.divisionRule2&&!res.settleRule1&&!res.settleRule2){
this.nodata = true
return
}
// 广播时间比较:
if (res.divisionRule2 && res.settleRule2) {
let updatedDateTemp1 = res.divisionRule2.updatedDate
......@@ -166,13 +179,19 @@ export default {
})
},
// 获取分账记录
getRuleNote() {
getRuleNote(merchantId) {
let method = getRulesListData()
let para = {
routerMethod: method,
currentPage: this.currentPage,
pageSize: this.pageSize,
merchantId: 44209532
merchantId
}
if (this.startDate) {
para.beginDateStr = this.startDate
}
if (this.endDate) {
para.endDateStr = this.endDate
}
converterApi(para).then(res => {
if (res.list.length) {
......@@ -181,8 +200,10 @@ export default {
return item
})
this.noteList[0].show = true
this.noList = false
} else {
this.noteList = []
this.noList = true
}
})
},
......@@ -191,7 +212,9 @@ export default {
this.noteList[index].show = !item
},
// 查询
toFindNote() {},
toFindNote() {
this.getRuleNote(this.merchantId)
},
// 关闭弹框
handleClose() {
this.computeShow = false
......@@ -390,7 +413,7 @@ export default {
border: 1px solid #ededed;
box-sizing: border-box;
padding: 15px 20px;
>p{
> p {
margin-bottom: 5px;
}
.title1 {
......@@ -409,4 +432,8 @@ export default {
}
}
}
.no_data{
text-align: center;
padding: 20px 0;
}
</style>
\ No newline at end of file
......@@ -2,34 +2,44 @@
<div class="bloc-chart-container">
<div class="mid_line"></div>
<div class="chart_wrapper">
<line-chart echartId="myline"></line-chart>
<line-chart ref="myline" echartId="myline"></line-chart>
</div>
<div class="table-wrapper">
<div class="top_line flex_scb">
<span class="h7_title">2021年8月7日,各门店明细</span>
<span :style="[{'font-size':todayName.length>20?'12px':''}]" class="h7_title">{{ todayName }},各门店明细</span>
<div class="right_wrap flex_scb">
<el-radio size="mini" v-model="radio" label="1">
<el-radio size="mini" v-model="orderByType" :label="1" @change="changeType(1)">
<span class="h15_title">按分账金额排序</span>
</el-radio>
<el-radio size="mini" v-model="radio" label="2">
<el-radio size="mini" v-model="orderByType" :label="2" @change="changeType(2)">
<span class="h15_title">按分润金额排序</span>
</el-radio>
</div>
</div>
<div class="table_widget">
<GLTable ref="table" :hasPage="false" :hasNum="false" :tableData="tableData" :tableParams="tableParams"></GLTable>
<GLTable ref="table" :hasPage="false" :hasNum="false" :tableData="productValueInfo" :tableParams="tableParams"></GLTable>
</div>
</div>
<div v-if="!show" class="openBtn h18_title" @click="showContainer">展开详情</div>
</div>
</template>
<script>
import line from '../../components/service-echart/line.vue'
import { orderTotalOfJT } from '../../api/modules/rules'
import { converterApi } from '../../api/modules/converter'
import utils from '../../util/util'
export default {
name: '',
components: {
'line-chart': line
},
props:{
show:{
type:Boolean,
default:false
}
},
data() {
return {
radio: 0,
......@@ -47,13 +57,57 @@ export default {
prop: 'money'
}
]
}
},
//集团
todayName: '',
orderByType: 1,
productValueInfo: [],
productList: [],
}
},
mounted() {
this.todayName = utils.dateFormat(new Date(), 'YYYY年MM月DD日')
this.today = utils.dateFormat(new Date())
const { session } = this.$globalState
if (session.accountLevel != 4) {
this.orderDataInfoOfJT(this.today,this.today)
}
},
methods: {}
methods: {
showContainer(){
this.show = true
this.$emit('showRanking',true)
},
// 切换radio
changeType(type) {
this.orderByType = type
this.orderDataInfoOfJT(this.curStartTime,this.curEndTime)
},
// 集团统计
orderDataInfoOfJT(start,end) {
let method = orderTotalOfJT()
let para = {
routerMethod: method,
beginDateStr: start,
endDateStr: end,
reportType: 2,
orderByType: this.orderByType //1 分账 2分润
}
converterApi(para).then(res => {
this.productValueInfo = res.map(item=>{
item.money = `${item.profitMoney}/${item.divisionMoney}`
return item
})
this.curStartTime = start
this.curEndTime = end
})
},
// 更换时间折线图
changeTimeForLine(start,end){
this.$refs.myline.couponsChartData(start,end)
this.todayName = `${utils.dateFormat(start,'YYYY年MM月DD日')}至${utils.dateFormat(end,'YYYY年MM月DD日')}`
}
}
}
</script>
<style lang="scss" scoped>
......@@ -93,7 +147,14 @@ export default {
}
}
}
.bloc-chart-container /deep/ .el-table__body-wrapper{
.openBtn {
position: absolute;
left: 50%;
transform: translate(-50%, 0);
bottom: 10px;
cursor: pointer;
}
.bloc-chart-container /deep/ .el-table__body-wrapper {
height: 270px;
overflow-y: scroll;
}
......
......@@ -4,45 +4,45 @@
<div class="find_line">
<div class="cell_item">
<div class="cell_label h13_title">客户姓名</div>
<el-input class="myfindWidth" size="mini" placeholder="请输入" suffix-icon="el-icon-search" v-model="customName"></el-input>
<el-input class="myfindWidth" size="mini" clearable placeholder="请输入" suffix-icon="el-icon-search" v-model="customName"></el-input>
</div>
<div class="cell_item">
<div class="cell_label h13_title">核销状态</div>
<el-select class="myfindWidth" size="mini" v-model="hxstatus" placeholder="请选择">
<el-select class="myfindWidth" clearable size="mini" v-model="hxstatus" placeholder="请选择">
<el-option v-for="item in statusList" :key="item.value" :label="item.label" :value="item.value"></el-option>
</el-select>
</div>
<div class="cell_item">
<div class="cell_label h13_title">领用时间</div>
<el-date-picker class="myfindWidth" size="mini" v-model="dateBetween" type="daterange" range-separator="至" start-placeholder="开始日期" end-placeholder="结束日期"></el-date-picker>
<el-date-picker class="myfindWidth" clearable size="mini" v-model="dateBetween" type="daterange" range-separator="至" start-placeholder="开始日期" end-placeholder="结束日期"></el-date-picker>
</div>
<div class="cell_btn_item">
<el-button size="mini" @click="toshowDialog">查看礼券</el-button>
<el-button size="mini">导出数据</el-button>
<el-button size="mini" @click="toExport">导出数据</el-button>
</div>
</div>
<div style="height: 18px"></div>
<div class="find_line">
<div class="cell_item">
<my-drop-menu leftName="发券人">
<my-drop-menu ref="dropMenu1" :options="employeeNameList" @getValue="changeEmploy">
<div slot="right_con">
<el-select style="width: 190px" class="myfindWidth" size="mini" v-model="hxstatus" placeholder="请选择">
<el-option v-for="item in statusList" :key="item.value" :label="item.label" :value="item.value"></el-option>
<el-select style="width: 190px" clearable class="myfindWidth" size="mini" v-model="employeeName" placeholder="请选择">
<el-option v-for="item in employeeNameData" :key="item" :label="item" :value="item"></el-option>
</el-select>
</div>
</my-drop-menu>
</div>
<div class="cell_item">
<div class="cell_label h13_title">核销时间</div>
<el-date-picker class="myfindWidth" size="mini" v-model="hxdateBetween" type="daterange" range-separator="至" start-placeholder="开始日期" end-placeholder="结束日期"></el-date-picker>
<el-date-picker class="myfindWidth" clearable size="mini" v-model="hxdateBetween" type="daterange" range-separator="至" start-placeholder="开始日期" end-placeholder="结束日期"></el-date-picker>
</div>
<div class="cell_item">
<div class="cell_label h13_title">手机号</div>
<el-input class="myfindWidth" size="mini" placeholder="请输入" suffix-icon="el-icon-search" v-model="phoneNum"></el-input>
<el-input class="myfindWidth" clearable size="mini" placeholder="请输入" suffix-icon="el-icon-search" v-model="phoneNum"></el-input>
</div>
<div class="cell_btn_item">
<el-button class="cell_btn" size="mini">重置</el-button>
<el-button class="cell_btn" size="mini" type="primary">查询</el-button>
<el-button class="cell_btn" size="mini" @click="clearFind">重置</el-button>
<el-button class="cell_btn" size="mini" type="primary" @click="toHandlerFindParam">查询</el-button>
</div>
</div>
</div>
......@@ -51,19 +51,19 @@
</div>
<el-dialog width="60%" :visible.sync="dialogTableVisible">
<div slot="title" class="customTitle">
<div class="title1">共计{{ tableData1.length }}条数据</div>
<div class="title1">共计{{ tabletotal1 }}条数据</div>
<span class="h9_title">门店新车精品礼券由</span>
<span class="title2">专属顾问</span>
<span class="h9_title">进行配置,如需新增详情请联系管理员</span>
</div>
<GLTable ref="table1" :hasPage="false" :hasNum="false" :tableData="tableData1" :tableParams="tableParams1"></GLTable>
<GLTable ref="table1" :tableTotal="tableTotal1" :hasNum="false" :tableData="tableData1" :tableParams="tableParams1" @refreshTable="toOpenCoupons"></GLTable>
</el-dialog>
</div>
</template>
<script>
import myDropMenu from '../../components/down-menu/index.vue'
import {findCoupons} from '../../api/modules/rules'
import { findCoupons, checkCoupons, exportCoupons, getEmployName } from '../../api/modules/rules'
import { converterApi } from '../../api/modules/converter'
import utils from '../../util/util'
export default {
......@@ -120,81 +120,208 @@ export default {
tableColumns: [
{
label: '礼券批次号',
prop: 'roleName'
prop: 'merchantCouponCode'
},
{
label: '礼券名称',
prop: 'roleCode'
prop: 'couponName'
},
{
label: '适用产品',
prop: 'statusName'
prop: 'couponTypeName'
},
{
label: '总数',
prop: 'createdTime'
prop: 'amount'
},
{
label: '余量',
prop: 'updatedTime'
prop: 'remainAmount'
},
{
label: '发放',
prop: 'updatedTime',
prop: 'getAmount',
width: '100px'
},
{
label: '核销',
prop: 'updatedTime'
prop: 'usedAmount'
},
{
label: '配置时间',
prop: 'updatedTime'
prop: 'createdDate'
}
]
},
tableData: [],
tableData1: [],
tableTotal: 0,
tabletotal1: 0,
statusList: [
{
value: '1',
value: 'Y',
label: '已核销'
},
{
value: '2',
label: '未核销'
value: 'N',
label: '待核销'
}
],
employeeNameList: [
{
label: '发券人',
value: '1'
},
{
label: '转化人',
value: '2'
}
],
dialogTableVisible: false
employeeNameData: [],
dialogTableVisible: false,
currentPage1: 1,
pageSize1: 10,
// 查询条件
customName: '',
hxstatus: '',
dateBetween: '',
columType: 0,
hxdateBetween: '',
phoneNum: '',
employeeName:'',
}
},
mounted() {
this.toGetCouponsList()
this.toOpenCoupons()
},
methods: {
getTableData() {},
// 发券人切换
changeEmploy(e) {
this.columType = e
this.getEmployNameList(e)
},
clearFind() {
let params = {}
this.customName = ''
this.hxstatus = ''
this.dateBetween = ''
this.columType = ''
this.hxdateBetween = ''
this.phoneNum = ''
this.employeeName = ''
this.toGetCouponsList(params)
},
// 处理查询条件
toHandlerFindParam() {
let params = {}
if (this.customName) {
//客户姓名
params.customerName = this.customName
}
if (this.hxstatus) {
//核销状态
params['usedFlagList[0]'] = this.hxstatus
}
if (this.dateBetween) {
//领用时间
let startDate = utils.dateFormat(this.dateBetween[0])
let endDate = utils.dateFormat(this.dateBetween[1])
params.startDate = startDate
params.endDate = endDate
}
if (this.columType&&this.employeeName) {
//发券人
params.columType = this.columType
}
if(this.employeeName&&this.columType){
params['employeeNameList[0]'] = this.employeeName
}
if (this.hxdateBetween) {
// 核销时间
let startDate = utils.dateFormat(this.hxdateBetween[0])
let endDate = utils.dateFormat(this.hxdateBetween[1])
params.startUsedTime = startDate
params.endUsedTime = endDate
}
if (this.phoneNum) {
// 手机号
params.customerPhone = this.phoneNum
}
this.toGetCouponsList(params)
},
toshowDialog() {
this.dialogTableVisible = true
},
toGetCouponsList(){
toGetCouponsList(params = {}) {
let method = findCoupons()
let para = {
routerMethod:method,
currentPage:this.$refs.table.page.pageNum,
pageSize:this.$refs.table.page.pageSize,
routerMethod: method,
currentPage: this.$refs.table.page.pageNum,
pageSize: this.$refs.table.page.pageSize,
...params
}
converterApi(para).then(res=>{
this.tableData = res.list.map(item=>{
converterApi(para).then(res => {
this.tableData = res.list.map(item => {
item.createdDate = utils.dateFormat(item.createdDate)
item.usedTime = item.usedTime?utils.dateFormat(item.usedTime):'--'
item.status = item.usedFlag=='Y'?'已核销':'待核销'
item.usedTime = item.usedTime ? utils.dateFormat(item.usedTime) : '--'
item.status = item.usedFlag == 'Y' ? '已核销' : '待核销'
item.sellerName = item.sellerName || '--'
return item
})
this.tableTotal = res.total
this.httpParam = {
currentPage: this.$refs.table.page.pageNum,
pageSize: this.$refs.table.page.pageSize,
...params
}
})
},
toOpenCoupons() {
const { session } = this.$globalState
let merchantId = session.merchantId
let method = checkCoupons()
let para = {
routerMethod: method,
currentPage: this.dialogTableVisible ? this.$refs.table1.page.pageNum : 1,
pageSize: this.dialogTableVisible ? this.$refs.table1.page.pageSize : 10,
merchantId: 44209532
}
converterApi(para).then(res => {
this.tabletotal1 = res.total
this.tableData1 = res.list.map(item => {
item.createdDate = item.createdDate ? utils.dateFormat(item.createdDate) : '--'
item.couponTypeName = item.couponInfo.couponTypeName
return item
})
})
},
toExport() {
let method = exportCoupons()
let para = {
routerMethod: method,
...this.httpParam
}
converterApi(para).then(res => {
let iframe = document.createElement('iframe')
iframe.style.display = "none"
iframe.src = res
document.body.appendChild(iframe)
})
},
// 获取发券人和转化人列表
getEmployNameList(type) {
let method = getEmployName()
let para = {
routerMethod: method,
columType: type,
currentPage: 1,
pageSize: 100
}
converterApi(para).then(res => {
this.employeeNameData = res
})
}
}
}
</script>
......
<template>
<div class="guest-container">
<div v-if="accountLevel == 4" class="guest-container">
<div class="top_tip_title">
<span class="h6_title">客户评价使用场景</span>
<div class="toNext_widget">
......@@ -14,15 +14,15 @@
<div class="box_1 flex-cc">
<span class="h7_title">(累计)评价客户数</span>
<div class="h8_title">
<span>{{messageData.commentCount}}</span>
<span>{{ messageData.commentCount || 0 }}</span>
<span style="margin-left: 5px" class="h7_title">人</span>
</div>
<span class="h9_title">(累计)施工完成客户数:{{messageData.constructedCount}}</span>
<span class="h9_title">(累计)施工完成客户数:{{ messageData.constructedCount || 0 }}</span>
</div>
<div class="box_1 flex-cc">
<span class="h7_title">(累计)好评客户数</span>
<div class="h8_title">
<span>{{messageData.goodCommentCount}}</span>
<span>{{ messageData.goodCommentCount || 0 }}</span>
<span style="margin-left: 5px" class="h7_title">人</span>
</div>
<span style="height: 20px" class="h9_title"></span>
......@@ -55,31 +55,35 @@
<img src="https://img01.glsx.com.cn/weapp/resource/saas/scrm/guest_content.png" />
</div>
</div>
<div style="height:20px"></div>
<div style="height: 20px"></div>
</div>
</template>
<script>
import {guestComTotal} from '../../api/modules/rules'
import { guestComTotal } from '../../api/modules/rules'
import { converterApi } from '../../api/modules/converter'
export default {
name: '',
data() {
return {
messageData:{}
messageData: {},
accountLevel: 4
}
},
mounted() {
created() {
const { session } = this.$globalState
this.accountLevel = session.accountLevel
this.getCompentData()
},
mounted() {},
methods: {
// 获取客户评价
getCompentData(){
getCompentData() {
let method = guestComTotal()
let para = {
routerMethod:method
routerMethod: method
}
converterApi(para).then(res=>{
converterApi(para).then(res => {
this.messageData = res
})
}
......@@ -89,7 +93,7 @@ export default {
<style lang="scss" scoped>
.guest-container {
width: 100%;
// height: calc(100% - 17px);
// height: calc(100% - 17px);
background: #ffffff;
box-shadow: 0px 10px 20px 0px rgba(88, 80, 255, 0.1);
margin-top: 17px;
......@@ -168,8 +172,8 @@ export default {
flex-direction: column;
align-items: center;
justify-content: center;
>span{
margin-bottom: 10px;
> span {
margin-bottom: 10px;
}
}
}
......
......@@ -7,54 +7,58 @@
<p class="h14_title">其他因素导致未分账成功的,在线下对账中查看,统一下个月月初结算上个月订单。</p>
</div>
<div class="tip_btn flex_scb">
<el-button size="mini">线上分账</el-button>
<el-button size="mini" type="primary">线下分账</el-button>
<el-button size="mini" :type="curDivisionType == 2 ? 'primary' : ''" @click="changDivisionType(2)">线上分账</el-button>
<el-button size="mini" :type="curDivisionType == 1 ? 'primary' : ''" @click="changDivisionType(1)">线下分账</el-button>
</div>
</div>
<div class="tip_wrap_line"></div>
<div class="find_wrap">
<div class="find_line">
<div class="cell_item">
<my-drop-menu>
<my-drop-menu :options="timeOptions" :leftName="timeChangeName" @getValue="timeChange">
<div slot="right_con">
<el-date-picker class="myfindWidth" size="mini" v-model="dateBetween" type="daterange" range-separator="至" start-placeholder="开始日期" end-placeholder="结束日期"></el-date-picker>
<el-date-picker class="myfindWidth" size="mini" clearable v-model="timeBetwean" type="daterange" range-separator="至" start-placeholder="开始日期" end-placeholder="结束日期"></el-date-picker>
</div>
</my-drop-menu>
</div>
<div class="cell_item">
<div class="cell_label h13_title">分账状态</div>
<el-select style="width: 166px" class="myfindWidth" size="mini" v-model="hxstatus" placeholder="请选择">
<el-option v-for="item in statusList" :key="item.value" :label="item.label" :value="item.value"></el-option>
<el-select style="width: 166px" class="myfindWidth" clearable size="mini" v-model="divisionTypeStatus" placeholder="请选择">
<el-option v-for="item in disivionOptions" :key="item.value" :label="item.label" :value="item.value"></el-option>
</el-select>
</div>
<div class="cell_item">
<my-drop-menu leftName="主订单编号">
<my-drop-menu :leftName="orderNumName" :options="numOptions" @getValue="changeNOFind">
<div slot="right_con">
<el-input style="width: 166px" class="myfindWidth" size="mini" placeholder="请输入" v-model="orderNum"></el-input>
<el-input style="width: 166px" class="myfindWidth" clearable size="mini" placeholder="请输入" v-model="orderNum"></el-input>
</div>
</my-drop-menu>
</div>
<div class="cell_btn_item" style="width: 180px">
<el-button class="cell_btn_max" size="mini">导出数据</el-button>
<el-button class="cell_btn_max" size="mini" @click="toExport">导出数据</el-button>
</div>
</div>
<div style="height: 18px"></div>
<div class="find_line flex_scb">
<el-input style="width: 286px" size="mini" v-model="goodsName" placeholder="请输入查询的商品名称"></el-input>
<el-input style="width: 286px" size="mini" clearable v-model="goodsName" placeholder="请输入查询的商品名称"></el-input>
<div class="cell_btn_item">
<el-button class="cell_btn" size="mini">重置</el-button>
<el-button class="cell_btn" size="mini" type="primary">查询</el-button>
<el-button class="cell_btn" size="mini" @click="clearFind">重置</el-button>
<el-button class="cell_btn" size="mini" type="primary" @click="handlerParams">查询</el-button>
</div>
</div>
</div>
<div class="table_wrap">
<GLTable ref="table2" :layout="layout" :tableData="tableData" :tableTotal="tableTotal" :pageConf="pageConf" :tableParams="tableParams2" @refreshTable="getTableData"></GLTable>
<GLTable ref="table" :layout="layout" :tableData="tableData" :tableTotal="tableTotal" :pageConf="pageConf" :tableParams="tableParams" @refreshTable="toGetMyDivision"></GLTable>
</div>
</div>
</template>
<script>
import myDropMenu from '../../components/down-menu/index.vue'
import { mydivision, exportMydivision } from '../../api/modules/rules'
import { converterApi } from '../../api/modules/converter'
import utils from '../../util/util'
const divistionStatus = ['待分账', '分账中', '分账成功', '分账失败']
export default {
name: '',
components: {
......@@ -62,19 +66,48 @@ export default {
},
data() {
return {
statusList: [
timeOptions: [
{
value: '1',
label: '已核销'
value: 1,
label: '分账时间'
},
{
value: '2',
label: '未核销'
value: 2,
label: '支付时间'
}
],
timeChangeName: '分账时间',
disivionOptions: [
{
value: 1,
label: '待分账'
},
{
value: 2,
label: '分账中'
},
{
value: 3,
label: '分账成功'
},
{
value: 4,
label: '分账失败'
}
],
numOptions: [
{
value: 1,
label: '主订单编号'
},
{
value: 2,
label: '交易参考号'
}
],
orderNumName: '主订单编号',
layout: 'sizes, prev, pager, next, jumper, ->, total',
pageConf: { pageSize: 'pageSize', pageNum: 'pageNum', totalCount: 'total' },
tableData: [],
tableTotal: 0,
tableParams2: {
tableOption: false,
......@@ -82,62 +115,258 @@ export default {
tableColumns: [
{
label: '主订单编号',
prop: 'roleName'
prop: 'orderCode',
width: '200px'
},
{
label: '子订单编号',
prop: 'roleCode'
prop: 'subOrderCode',
width: '200px'
},
{
label: '客户姓名',
prop: 'statusName'
prop: 'customerName',
width: '110px'
},
{
label: '车架号',
prop: 'createdTime'
prop: 'standNo',
width: '110px'
},
{
label: '分账账户',
prop: 'updatedTime'
prop: 'realityMerchantName',
width: '200px'
},
{
label: '总分账金额(元)',
prop: 'updatedTime'
prop: 'divisionMoney',
width: '110px'
},
{
label: '导流方名称',
prop: 'updatedTime'
prop: 'merchantName',
width: '200px'
},
{
label: '园区店名',
prop: 'updatedTime'
prop: 'sellerMerchantName',
width: '200px'
},
{
label: '分账类型',
prop: 'divisionTypeName',
width: '110px'
},
{
label: '分账状态',
prop: 'updatedTime'
prop: 'divisionStatusName',
width: '110px'
},
{
label: '分账时间',
prop: 'updatedTime'
prop: 'divisionDate',
width: '110px'
},
{
label: '支付时间',
prop: 'updatedTime'
prop: 'successDate',
width: '110px'
},
{
label: '商品编号',
prop: 'updatedTime'
prop: 'upgradeGoodsCommodityCode',
width: '200px'
},
{
label: '商品名称',
prop: 'updatedTime'
prop: 'upgradeGoodsName',
width: '200px'
}
]
}
},
tableParams1: {
tableOption: false,
btnId: new Date().getTime() + parseInt(Math.random() * 1000),
tableColumns: [
{
label: '主订单编号',
prop: 'orderCode',
width: '200px'
},
{
label: '子订单编号',
prop: 'subOrderCode',
width: '200px'
},
{
label: '客户姓名',
prop: 'customerName',
width: '110px'
},
{
label: '车架号',
prop: 'standNo',
width: '110px'
},
{
label: '分账账户',
prop: 'realityMerchantName',
width: '200px'
},
{
label: '总分账金额(元)',
prop: 'divisionMoney',
width: '110px'
},
{
label: '导流方名称',
prop: 'merchantName',
width: '200px'
},
{
label: '园区店名',
prop: 'sellerMerchantName',
width: '200px'
},
{
label: '分账类型',
prop: 'divisionTypeName',
width: '110px'
},
{
label: '支付时间',
prop: 'successDate',
width: '110px'
},
{
label: '商品编号',
prop: 'upgradeGoodsCommodityCode',
width: '200px'
},
{
label: '商品名称',
prop: 'upgradeGoodsName',
width: '200px'
}
]
},
curDivisionType: 2,
tableData: [],
tableParams: {},
// 查询参数
timeChangeType: 1,
timeBetwean: '',
divisionTypeStatus: '',
orderNum: '',
goodsName: ''
}
},
mounted() {},
methods: {}
created() {
this.tableParams = this.tableParams2
},
mounted() {
this.toGetMyDivision()
},
methods: {
changeNOFind(e) {
this.orderNumType = e
this.orderNumName = e == 1 ? '主订单编号' : '交易参考号'
this.orderNum = ''
},
clearFind(){
this.timeBetwean = ''
this.divisionTypeStatus = ''
this.orderNum = ''
this.goodsName = ''
this.toGetMyDivision()
},
handlerParams() {
let params = {}
if (this.timeBetwean) {
let startDate = utils.dateFormat(this.timeBetwean[0])
let endDate = utils.dateFormat(this.timeBetwean[1])
if (this.timeChangeType == 1) {
params.divisionStartDate = startDate
params.divisionEndDate = endDate
} else {
params.successDateStartDate = startDate
params.successDateEndDate = endDate
}
}
if (this.divisionTypeStatus) {
params.divisionStatus = this.divisionTypeStatus
}
//主订单编号---交易参考号
if (this.orderNum) {
if (this.orderNumType == 1) {
params.orderCode = this.orderNum
} else {
params.tradeNo = this.orderNum
}
}
if (this.goodsName) {
params.goodsName = this.goodsName
}
this.toGetMyDivision(params)
},
timeChange(e) {
this.timeChangeType = e
this.timeChangeName = e == 1 ? '分账时间' : '支付时间'
},
changDivisionType(type) {
this.curDivisionType = type
this.tableParams = type == 1 ? this.tableParams1 : this.tableParams2
this.toGetMyDivision()
},
toGetMyDivision(params={}) {
// const { session } = this.$globalState
let method = mydivision()
let para = {
routerMethod: method,
currentPage: this.$refs.table.page.pageNum,
pageSize: this.$refs.table.page.pageSize,
divisionType: this.curDivisionType,
...params
// channelType
}
converterApi(para).then(res => {
res.list.map(item => {
item.sellerMerchantName = item.goodsOrder.sellerMerchantName
item.divisionTypeName = item.divisionType == 1 ? '线下对账' : '线上对账'
item.successDate = item.payOrder.successDate ? utils.dateFormat(item.payOrder.successDate) : '--'
item.divisionDate = item.orderDivision.divisionDate ? utils.dateFormat(item.orderDivision.divisionDate) : '--'
item.upgradeGoodsCommodityCode = item.goodsSubOrder.upgradeGoodsCommodityCode
item.upgradeGoodsName = item.goodsSubOrder.upgradeGoodsName
item.divisionStatusName = divistionStatus[item.orderDivision.divisionStatus - 1]
item.customerName = item.customerName || '--'
item.standNo = item.standNo || '--'
return item
})
this.tableData = res.list
this.tableTotal = res.total
this.httpParam = {
currentPage: this.$refs.table.page.pageNum,
pageSize: this.$refs.table.page.pageSize,
divisionType: this.curDivisionType,
...params
}
})
},
toExport() {
let method = exportMydivision()
let para = {
routerMethod: method,
...this.httpParam
}
converterApi(para).then(res => {
let iframe = document.createElement('iframe')
iframe.style.display = "none"
iframe.src = res
document.body.appendChild(iframe)
})
}
}
}
</script>
<style lang="scss" scoped>
......
......@@ -17,7 +17,7 @@
<div class="line_icon_text">
<div class="icon_num">1</div>
<div class="text">一键转发您门店的精品礼券</div>
<img class="icon" src="../../assets/go_icon.png">
<!-- <img class="icon" src="../../assets/go_icon.png" /> -->
</div>
</div>
<div class="box_wrap margin_2">
......@@ -57,24 +57,24 @@
<div v-if="count == 1" class="text_line_widget margin_4">
<div class="h5_title">
2020年6月份累计收益:
<span class="price">5344</span>
<span class="price">53400</span>
元
</div>
<div class="h5_title">
2020年度累计收益约:
<span class="price">10万</span>
<span class="price">65万</span>
元
</div>
</div>
<div v-if="count == 2" class="text_line_widget margin_4">
<div class="h5_title">
2020年集团累计收益约:
<span class="price">5344</span>
<span class="price">53400</span>
元
</div>
<div class="h5_title">
平均单店收益约:
<span class="price">10万</span>
<span class="price">81万</span>
元
</div>
</div>
......@@ -103,7 +103,17 @@
<el-dialog :visible.sync="videoShow" width="50%" :before-close="handleClose">
<video v-if="videoShow" width="100%" height="100%" controls src="https://img02.glsx.com.cn/scrm/video/pre_video.mp4"></video>
</el-dialog>
<!-- <div class="qrcode_wrap"></div> -->
<div class="qrcode_wrap">
<div class="imag_wrap">
<img src="https://img01.glsx.com.cn/weapp/resource/equity-h5-new/qrcode2.jpg" />
<span class="h18_title">联系电话</span>
<span class="h18_title">189 0000 1234</span>
</div>
<div class="qr_text_wrap flex_cc">
<img src="../../assets/contact_icon.png">
<div class="contact_text">联系我们</div>
</div>
</div>
</div>
</template>
......@@ -114,8 +124,8 @@ export default {
return {
tableHeader1: ['6月新增销量', '转化率', '转化量', '平均客单价', '增值产值', '分店分润'],
tableHeader2: ['门店年度新车销量', '年度转化率', '平均客单价', '门店年度产值', '集团年度产值'],
tableTD1: [100, 50, 20, 30, 40, 60],
tableTD2: [100, 50, 20, 30, 40],
tableTD1: [100, '52%', 52, 2283, 116716, 23400],
tableTD2: [960, '63%', 1350, 816480, 22861440],
videoShow: false
}
},
......@@ -202,10 +212,10 @@ export default {
color: #3a3a3a;
margin: 0 5px;
}
.icon{
width: 16px;
height: 16px;
cursor: pointer;
.icon {
width: 16px;
height: 16px;
cursor: pointer;
}
}
}
......@@ -295,7 +305,48 @@ export default {
right: 0;
bottom: 182px;
width: 201px;
height: 201px;
// height: 201px;
box-sizing: border-box;
padding-top: 10px;
padding-bottom: 12px;
background: #ffffff;
display: flex;
cursor:pointer;
.imag_wrap {
display: flex;
flex-direction: column;
align-items: center;
> img {
width: 124px;
height: 124px;
}
>span{
line-height: 20px;
}
}
.qr_text_wrap {
position: absolute;
top: 0;
right: 20px;
bottom: 0;
width: 52px;
// min-height: 100;
background: #5850ff;
box-shadow: 0px 3px 6px -4px rgba(0, 0, 0, 0.12), 0px 6px 16px 0px rgba(0, 0, 0, 0.08), 0px 9px 28px 8px rgba(0, 0, 0, 0.05);
border-radius: 4px;
flex-direction: column;
>img{
width: 20px;
height: 20px;
margin-bottom: 7px;
}
.contact_text{
width: 14px;
font-size: 14px;
font-weight: 400;
color: #FFFFFF;
line-height: 20px;
}
}
}
</style>
......@@ -54,11 +54,11 @@
</div>
</div>
<template v-if="accountLevel != 4">
<bloc-con></bloc-con>
<bloc-con ref="mybloc" :show="openRankFlag" @showRanking="toOpenRanking"></bloc-con>
</template>
</div>
<template v-if="accountLevel != 4">
<ranking></ranking>
<ranking :show="openRankFlag" @closeRank="toCloseRanking"></ranking>
</template>
<div v-if="showMore" class="box_bg_wrap mini_margin">
<div class="tab_wrap">
......@@ -68,14 +68,24 @@
</div>
</template>
</div>
<template v-if="curTabIndex == 0">
<coupons-order></coupons-order>
</template>
<template v-if="curTabIndex == 1">
<upgrade-order></upgrade-order>
<template v-if="accountLevel == 4">
<template v-if="curTabIndex == 0">
<coupons-order></coupons-order>
</template>
<template v-if="curTabIndex == 1">
<upgrade-order></upgrade-order>
</template>
<template v-if="curTabIndex == 2">
<my-fashionable-order></my-fashionable-order>
</template>
</template>
<template v-if="curTabIndex == 2">
<my-fashionable-order></my-fashionable-order>
<template v-if="accountLevel != 4">
<template v-if="curTabIndex == 0">
<upgrade-order></upgrade-order>
</template>
<template v-if="curTabIndex == 1">
<my-fashionable-order></my-fashionable-order>
</template>
</template>
</div>
</div>
......@@ -124,20 +134,45 @@ export default {
//图表时间
chartStartDate: '',
chartEndDate: '',
openRankFlag: false
}
},
created() {
const { session } = this.$globalState
this.accountLevel = session.accountLevel
if (session.accountLevel != 4) {
this.tabList = ['精品升级订单', '我的分账']
}
},
mounted() {
this.judgeOpen()
},
methods: {
toFindChart(){
let type = this.dateType
if(type=='date'){//按天
this.$refs.myFunnel.couponsChartData(this.chartStartDate,this.chartEndDate)
}else{//按月
let start = this.chartStartDate+'-01'
let end = this.chartEndDate+'-01'
this.$refs.myFunnel.couponsChartData(start,end)
toOpenRanking(e) {
this.openRankFlag = e
},
toCloseRanking(e) {
this.openRankFlag = e
},
toFindChart() {
let type = this.dateType
if (type == 'date') {
//按天
// 漏斗图
this.$refs.myFunnel.couponsChartData(this.chartStartDate, this.chartEndDate)
// 集团折线图+列表
this.$refs.mybloc.changeTimeForLine(this.chartStartDate,this.chartEndDate)
this.$refs.mybloc.orderDataInfoOfJT(this.chartStartDate,this.chartEndDate)
} else {
//按月
let start = this.chartStartDate
let end = this.chartEndDate
// 漏斗图
this.$refs.myFunnel.couponsChartData(start, end)
// 集团折线图+列表
this.$refs.mybloc.changeTimeForLine(start,end)
this.$refs.mybloc.orderDataInfoOfJT(start,end)
}
},
getChartStartTime(e) {
......@@ -162,12 +197,13 @@ export default {
},
// 已开通--订单统计
judgeOpen() {
// let openInfo = JSON.parse(localStorage.getItem('openInfo'))
let openInfo = JSON.parse(localStorage.getItem('openInfo'))
// this.bengintime = utils.dateFormat(openInfo.openDate)
this.bengintime = '2019-01-01'
this.bengintime = '2020-01-01'
this.endtime = utils.dateFormat(new Date())
this.orderDataInfo()
},
// 门店统计
orderDataInfo() {
let method = orderTotal()
let para = {
......
<template>
<div class="rank-container">
<div v-if="show" class="rank-container">
<div class="page_title">门店产值排名</div>
<div class="tipper flex_scb">
<div class="tip_text">
<span>共</span>
<sapn style="color: #5850ff">10</sapn>
<span>家门店开通精品升级业务,平均3单店产值:</span>
<span style="color: #5850ff">¥545406</span>
<sapn style="color: #5850ff">{{ tableData.length }}</sapn>
<span>家门店开通精品升级业务,平均单店产值:</span>
<span style="color: #5850ff">¥{{ pjstoreTotal }}</span>
<span>;高于平均线</span>
<span>(同行此业务的平均产值为:</span>
<span style="color: #5850ff">¥545406</span>
<span style="color: #5850ff">¥{{ productValue }}</span>
<span>)的共</span>
<span style="color: #5850ff; font-size: 16px">3</span>
<span style="color: #5850ff; font-size: 16px">{{ storeNum }}</span>
<span>家</span>
</div>
<div class="tip_rig h15_title">
<!-- <div class="tip_rig h15_title">
查看同行如何提高产值
<i class="el-icon-d-arrow-right"></i>
</div>
</div> -->
</div>
<div class="table_widget">
<el-table :data="tableData" height="350" style="100%" highlight-current-row>
<el-table-column prop="sort" label="排名" align="center" width="120px"></el-table-column>
<el-table-column prop="merchantName" label="门店名称" width="350px" align="center"></el-table-column>
<el-table-column label="总产值">
<!-- <el-table-column prop="sort" label="排名" align="center" width="120px"></el-table-column> -->
<el-table-column label="排名" align="center" type="index" :index="index => index + 1"></el-table-column>
<el-table-column prop="merchantName" label="门店名称" align="center"></el-table-column>
<el-table-column label="总产值" width="500">
<template slot-scope="scope">
<div class="echat_wrap">
<span>{{ scope.row.productNum }}</span>
<div :style="{ width: (100 * scope.row.productNum) / 2000 + '%' }" class="summary-progress-barin"></div>
<span>{{ scope.row.divisionMoney }}</span>
<div :style="{ width: (100 * scope.row.divisionMoney) / custSortMax + '%' }" class="summary-progress-barin"></div>
</div>
</template>
</el-table-column>
</el-table>
</div>
<div class="openBtn h18_title" @click="showContainer">收缩详情</div>
</div>
</template>
<script>
import { orderTotalOfJT } from '../../api/modules/rules'
import { converterApi } from '../../api/modules/converter'
import utils from '../../util/util'
export default {
name: '',
data() {
return {
tableData: []
tableData: [],
pjstoreTotal: 0,
storeNum: 0,
productValue: 0,
custSortMax: 0
}
},
props: {
show: {
type: Boolean,
default: false
}
},
created() {
this.today = utils.dateFormat(new Date())
},
mounted() {
this.test()
this.orderAll()
},
methods: {
test() {
for (let i = 0; i < 10; i++) {
this.tableData.push({
sort: i + 1,
merchantName: '门店' + i,
productNum: 1220 + i
})
orderAll() {
let openInfo = JSON.parse(localStorage.getItem('openInfo'))
this.bengintime = utils.dateFormat(openInfo.openDate)
let method = orderTotalOfJT()
let para = {
routerMethod: method,
beginDateStr: '2020-01-01',
endDateStr: this.today,
reportType: 2,
orderByType: 1 //1 分账 2分润
}
converterApi(para).then(res => {
let arr = res || []
let total = 0
this.tableData = arr
this.custSortMax = 0
this.tableData.forEach(item => {
total = total + parseFloat(item.divisionMoney)
if (item.divisionMoney >= this.custSortMax) {
this.custSortMax = item.divisionMoney
}
})
this.pjstoreTotal = utils.decimal(total / arr.length, 2)
this.storeNum = this.sortNum(arr, this.pjstoreTotal)
})
},
sortNum(arr, total) {
let count = 0
arr.forEach(item => {
if (item.divisionMoney > total) {
count++
}
})
return count
},
showContainer() {
this.show = false
this.$emit('closeRank', false)
}
}
}
......@@ -67,6 +115,14 @@ export default {
background: #ffffff;
box-shadow: 0px 10px 20px 0px rgba(88, 80, 255, 0.1);
margin-top: 10px;
position: relative;
}
.openBtn {
position: absolute;
left: 50%;
transform: translate(-50%, 0);
bottom: 10px;
cursor: pointer;
}
.page_title {
padding: 15px 20px 10px 20px;
......
......@@ -4,7 +4,8 @@
<div class="table_one">
<p class="h7_title">商户名:{{ merchantInfo.name }}</p>
<div class="title_text">
<p class="h7_title">分润计算:扣除手续费(按0.6%的标准)</p>
<p v-if="settle.deductChargeFlag=='Y'" class="h7_title">分润计算:扣除手续费(按0.6%的标准)</p>
<p v-if="settle.deductChargeFlag=='N'" class="h7_title">分润计算:不扣除手续费</p>
<p class="min_text">仅针对POS机收款订单</p>
</div>
</div>
......
......@@ -3,49 +3,73 @@
<div class="find_wrap">
<div class="find_line">
<div class="cell_item">
<my-drop-menu>
<div slot="right_con">
<my-drop-menu :options="payOptionsList" :leftName="payChangeName" @getValue="changePayFind">
<div v-if="payTypeChange == 1" slot="right_con">
<el-date-picker class="myfindWidth" size="mini" v-model="dateBetween" type="daterange" range-separator="至" start-placeholder="开始日期" end-placeholder="结束日期"></el-date-picker>
</div>
<div v-if="payTypeChange == 2" slot="right_con">
<el-select class="myfindWidth" size="mini" clearable v-model="payType" placeholder="请选择">
<el-option v-for="item in payTypesList" :key="item.value" :label="item.label" :value="item.value"></el-option>
</el-select>
</div>
</my-drop-menu>
</div>
<div class="cell_item">
<div class="cell_label h13_title">分账状态</div>
<el-select style="width: 166px" class="myfindWidth" size="mini" v-model="hxstatus" placeholder="请选择">
<el-option v-for="item in statusList" :key="item.value" :label="item.label" :value="item.value"></el-option>
<el-select style="width: 166px" class="myfindWidth" clearable size="mini" v-model="divisionType" placeholder="请选择">
<el-option v-for="item in disivionOptions" :key="item.value" :label="item.label" :value="item.value"></el-option>
</el-select>
</div>
<div class="cell_item">
<my-drop-menu leftName="主订单编号">
<my-drop-menu :leftName="orderNumName" :options="numOptions" @getValue="changeNOFind">
<div slot="right_con">
<el-input style="width: 166px" class="myfindWidth" size="mini" placeholder="请输入" v-model="orderNum"></el-input>
<el-input style="width: 166px" class="myfindWidth" clearable size="mini" placeholder="请输入" v-model="orderNum"></el-input>
</div>
</my-drop-menu>
</div>
<div class="cell_btn_item" style="width: 180px">
<el-button class="cell_btn_max" size="mini">导出数据</el-button>
<el-button class="cell_btn_max" size="mini" @click="toExport">导出数据</el-button>
</div>
</div>
<div style="height: 18px"></div>
<div class="find_line flex_scb">
<el-input style="width: 286px" size="mini" v-model="goodsName" placeholder="请输入查询的商品名称"></el-input>
<el-input style="width: 286px" size="mini" clearable v-model="goodsName" placeholder="请输入查询的商品名称"></el-input>
<div class="cell_btn_item">
<el-button class="cell_btn" size="mini">重置</el-button>
<el-button class="cell_btn" size="mini" type="primary">查询</el-button>
<el-button class="cell_btn" size="mini" @click="clearFind">重置</el-button>
<el-button class="cell_btn" size="mini" type="primary" @click="handleParam">查询</el-button>
</div>
</div>
</div>
<div class="tipper flex_scb">
<div class="tip_text">
<span>共</span>
<sapn style="color: #5850ff">0</sapn>
<span>笔主订单</span>
<span style="color: #5850ff">0</span>
<span>笔子订单</span>
<span>,累计订单支付金额:</span>
<span style="color: #5850ff">¥0</span>
<span>元,累计导流方利润:</span>
<span style="color: #5850ff; font-size: 16px">0</span>
<span>元</span>
</div>
<div class="right_select">
<el-select class="myfindWidth" size="mini" collapse-tags multiple clearable v-model="fieldListData" placeholder="请选择要展示的字段">
<el-option v-for="item in fieldList" :key="item.value" :label="item.label" :value="item.value"></el-option>
</el-select>
</div>
</div>
<div class="table_wrap">
<!-- <GLTable ref="table1" :layout="layout" :tableData="tableData" :tableTotal="tableTotal" :pageConf="pageConf" :tableParams="tableParams" @refreshTable="getTableData"></GLTable> -->
<el-table :data="tableData" style="width: 100%">
<el-table-column label="序号" align="center">
<template slot-scope="scope">
{{scope.$index+1}}
</template>
<el-table id="initTable" :data="tableData" style="width: 100%">
<el-table-column label="序号" align="center" type="index" :index="index => index + (currentPage - 1) * pageSize + 1">
<!-- <template slot-scope="scope">
{{ scope.$index + 1 }}
</template> -->
</el-table-column>
<el-table-column label="订单信息" align="center">
<el-table-column width="200" prop="orderCode" label="支付订单编号" align="center"></el-table-column>
<el-table-column width="200" prop="outTradeNo" align="center" label="交易参考号"></el-table-column>
<el-table-column width="200" prop="tradeNo" align="center" label="交易参考号"></el-table-column>
<el-table-column width="200" prop="upgradeBrandMerchantName" align="center" label="商品名称"></el-table-column>
<el-table-column width="200" prop="upgradeGoodsCommodityCode" align="center" label="商品编号"></el-table-column>
<el-table-column width="110" prop="goodsCost" align="center" label="商品成本"></el-table-column>
......@@ -55,30 +79,176 @@
<el-table-column width="200" prop="sellerName" align="center" label="转化员"></el-table-column>
<el-table-column width="200" prop="employeeName" align="center" label="转销售顾问"></el-table-column>
<el-table-column width="110" prop="paySuccessDate" align="center" label="支付时间"></el-table-column>
<el-table-column width="200" prop="payTypeName" align="center" label="支付方式"></el-table-column>
<el-table-column width="110" prop="actualMoney" align="center" label="支付金额"></el-table-column>
<el-table-column width="110" prop="payTypeName" align="center" label="支付方式"></el-table-column>
<el-table-column width="110" prop="subTotalPrice" align="center" label="支付金额"></el-table-column>
</el-table-column>
<el-table-column label="导流方利润" align="center">
<el-table-column width="110" prop="allocationMoney" align="center" label="总分账金额"></el-table-column>
<el-table-column width="120" prop="shopMerchantName" align="center" label="分润对象"></el-table-column>
<el-table-column width="110" prop="actualIncomeMoney" align="center" label="总分账金额"></el-table-column>
<el-table-column width="200" prop="shopMerchantName" align="center" label="分润对象"></el-table-column>
<el-table-column prop="rule" align="center" label="分润规则"></el-table-column>
<el-table-column width="110" prop="shopProfitMoney" align="center" label="分润金额"></el-table-column>
<el-table-column width="110" prop="divisionTypeName" align="center" label="分账类型"></el-table-column>
</el-table-column>
<el-table-column fixed="right" label="操作" align="center" width="120">
<!-- <el-button size="mini" class="spanbtn">查看明显</el-button> -->
<div class="spanbtn h16_title">查看明显</div>
<template slot-scope="scope">
<div class="spanbtn h16_title" @click="openDetail(scope.row)">查看明细</div>
</template>
</el-table-column>
</el-table>
<el-pagination background @size-change="handleSizeChange" @current-change="handleCurrentChange" :current-page="currentPage" :page-sizes="[10, 20, 30, 40]" :page-size="pageSize" :total="tableTotal" :layout="layout"></el-pagination>
</div>
<el-dialog title="订单详情" :visible.sync="dialogVisible" width="70%">
<div v-if="orderDetail" class="dialog_content">
<div class="wrapper">
<div class="title h18_title">
<div class="title_icon"></div>
<span>订单详情</span>
</div>
<div class="message_wrap flex_scb">
<div class="box_info">
<div class="info_text">
<span>订单单号:</span>
<span class="h19_title">{{ orderDetail.orderCode }}</span>
</div>
<div class="info_text">
<span>交易流水:</span>
<span class="h19_title">{{ orderDetail.payOrder.tradeNo || '--' }}</span>
</div>
</div>
<div class="box_info">
<div class="info_text">
<span>订单状态:</span>
<span v-if="orderDetail.upgradeFlag == 'Y'" class="h19_title">已升级</span>
<span v-else-if="orderDetail.upgradeFlag == 'N'" class="h19_title">未升级</span>
<span v-else class="h19_title">待升级</span>
</div>
<div class="info_text">
<span>支付状态:</span>
<span class="h19_title">{{ orderDetail.payOrder.payStatus == 1 ? '未支付' : '已支付' }}</span>
</div>
</div>
<div class="box_info">
<div class="info_text">
<span>支付方式:</span>
<span class="h19_title">{{ orderDetail.payOrder.payType == 1 ? '线上微信支付' : '线下支付' }}</span>
</div>
<div class="info_text">
<span>收款凭证:</span>
<span class="h19_title">{{ orderDetail.payOrder.outTradeNo || '--' }}</span>
</div>
</div>
</div>
</div>
<div class="wrapper">
<div class="title h18_title">
<div class="title_icon"></div>
<span>用户信息</span>
</div>
<div class="message_wrap flex_scb">
<div class="box_info">
<div class="info_text">
<span>用户姓名:</span>
<span class="h19_title">{{ orderDetail.customer.customerName || '--' }}</span>
</div>
<div class="info_text">
<span>评价:</span>
<span class="h19_title"></span>
</div>
</div>
<div class="box_info">
<div class="info_text">
<span>车架号:</span>
<span class="h19_title">{{ orderDetail.customer.standNo || '--' }}</span>
</div>
<div class="info_text"></div>
</div>
<div class="box_info"></div>
</div>
<div class="comment_wrap">
<div class="comment_line h20_title">
<span>产品与描述相符:</span>
<el-rate disabled :colors="['#5850FF', '#5850FF', '#5850FF']" text-color="#5850FF" :value="orderDetail.comment.customerScore"></el-rate>
<span>{{ orderDetail.comment.customerScore }}</span>
</div>
<div class="comment_line h20_title">
<span>服务态度:</span>
<el-rate disabled :colors="['#5850FF', '#5850FF', '#5850FF']" text-color="#5850FF" :value="orderDetail.comment.serviceScore"></el-rate>
<span>{{ orderDetail.comment.serviceScore }}</span>
</div>
<div class="comment_line nocenter h20_title">
<span>评价:</span>
<div class="textarea_con">{{ orderDetail.comment.customerComment }}</div>
</div>
</div>
</div>
<div class="wrapper">
<div class="title h18_title">
<div class="title_icon"></div>
<span>关联信息</span>
</div>
<div class="message_wrap flex_scb">
<div class="box_info">
<div class="info_text">
<span>流量来源:</span>
<span class="h19_title">{{ orderDetail.merchantName || '--' }}</span>
</div>
<div class="info_text">
<span>转化员:</span>
<span class="h19_title">{{ orderDetail.employeeName || '--' }}</span>
</div>
</div>
<div class="box_info">
<div class="info_text">
<span>推荐人:</span>
<span class="h19_title">{{ orderDetail.name || '--' }}</span>
</div>
<div class="info_text">
<span>门店地址:</span>
<span v-if="orderDetail.yqMerchantInfo" class="h19_title">{{ orderDetail.yqMerchantInfo.address }}</span>
<span v-else class="h19_title">--</span>
</div>
</div>
<div class="box_info">
<div class="info_text">
<span>园区店:</span>
<span class="h19_title">{{ orderDetail.yqMerchantIds || '--' }}</span>
</div>
<div class="info_text"></div>
</div>
</div>
</div>
<div class="wrapper">
<div class="title h18_title">
<div class="title_icon"></div>
<span>订单商品</span>
</div>
<div class="dialog_table_wrap">
<GLTable ref="dialogTable" :hasPage="false" :hasNum="false" :tableData="dialogTableData" :tableParams="dialogTableParams"></GLTable>
</div>
</div>
<div class="wrapper noBorder">
<div class="title h18_title">
<div class="title_icon"></div>
<span>订单进度</span>
</div>
<div class="dialog_table_wrap">
<GLTable ref="dialogTable2" :hasPage="false" :hasNum="false" :tableData="dialogTableData2" :tableParams="dialogTableParams2"></GLTable>
</div>
</div>
</div>
<span slot="footer" class="dialog-footer">
<el-button size="mini" type="primary" @click="dialogVisible = false">返回</el-button>
</span>
</el-dialog>
</div>
</template>
<script>
import myDropMenu from '../../components/down-menu/index.vue'
import { findupGradeOrder } from '../../api/modules/rules'
import { findupGradeOrder, exportUpgrade, checkDetail } from '../../api/modules/rules'
import { converterApi } from '../../api/modules/converter'
import utils from '../../util/util'
const logTypeList = ['预录用户', '用户下单', '用户付款', '完成服务']
export default {
name: '',
components: {
......@@ -86,82 +256,330 @@ export default {
},
data() {
return {
statusList: [
payOptionsList: [
{
value: 1,
label: '支付时间'
},
{
value: 2,
label: '支付方式'
}
],
payChangeName: '支付时间',
payTypesList: [
{
value: 0,
label: '不升级'
},
{
value: 1,
label: '线上支付'
},
{
value: 2,
label: '线下收款'
},
{
value: 3,
label: 'POS机'
}
],
disivionOptions: [
{
value: '1',
label: '已核销'
value: 1,
label: '线下对账'
},
{
value: '2',
label: '未核销'
value: 2,
label: '线上对账'
}
],
numOptions: [
{
value: 1,
label: '主订单编号'
},
{
value: 2,
label: '交易参考号'
}
],
orderNumName: '主订单编号',
layout: 'sizes, prev, pager, next, jumper, ->, total',
pageConf: { pageSize: 'pageSize', pageNum: 'pageNum', totalCount: 'total' },
tableData: [],
tableTotal: 0,
tableParams: {
currentPage: 1,
pageSize: 10,
payTypeChange: 1,
// 查询参数
dateBetween: '',
payType: '',
divisionType: '',
orderNumType: 1,
orderNum: '',
goodsName: '',
dialogVisible: false,
// 弹框表格
dialogTableData: [],
dialogTableData2: [],
dialogTableParams: {
tableOption: false,
btnId: new Date().getTime() + parseInt(Math.random() * 1000),
tableColumns: [
{
label: '领用时间',
prop: 'roleName'
label: '商品ID',
prop: 'codeId'
},
{
label: '客户姓名',
prop: 'roleCode'
label: '商品名称',
prop: 'goodsName'
},
{
label: '手机号',
prop: 'statusName'
label: '商品分类',
prop: 'goodsClass'
},
{
label: '礼券名称',
prop: 'createdTime'
label: '品牌商',
prop: 'plateName'
},
{
label: '发券人',
prop: 'updatedTime'
label: '商品售价',
prop: 'saleprice'
},
{
label: '核销状态',
prop: 'updatedTime',
width: '100px'
label: '质保年限',
prop: 'upgradeWarrantyPeriodName'
},
{
label: '核销人',
prop: 'updatedTime'
label: '数量(件)',
prop: 'number'
},
{
label: '核销时间',
prop: 'updatedTime'
label: '支付金额',
prop: 'totalPrice'
}
]
}
},
dialogTableParams2: {
tableOption: false,
btnId: new Date().getTime() + parseInt(Math.random() * 1000),
tableColumns: [
{
label: '时间',
prop: 'createdDate'
},
{
label: '当前进度',
prop: 'logTypeName'
},
{
label: '关联操作员',
prop: 'userName'
}
]
},
orderDetail: null,
fieldList: [
{
value: 'orderCode',
label: '支付订单编号'
},
{
value: 'tradeNo',
label: '交易参考号'
},
{
value: 'upgradeBrandMerchantName',
label: '商品名称'
},
{
value: 'upgradeGoodsCommodityCode',
label: '商品编号'
},
{
value: 'goodsCost',
label: '商品成本'
},
{
value: 'customerPhone',
label: '客户手机号'
},
{
value: 'sellerName',
label: '转化员'
},
{
value: 'employeeName',
label: '转销售顾问'
},
{
value: 'paySuccessDate',
label: '支付时间'
},
{
value: 'payTypeName',
label: '支付方式'
},
{
value: 'subTotalPrice',
label: '支付金额'
},
{
value: 'actualIncomeMoney',
label: '总分账金额'
},
{
value: 'shopMerchantName',
label: '分润对象'
},
{
value: 'shopProfitMoney',
label: '分润金额'
},
{
value: 'divisionTypeName',
label: '分账类型'
}
],
fieldListData:[]
}
},
mounted() {
this.toGetCouponsList()
},
methods: {
toGetCouponsList() {
// 查看明细
openDetail(item) {
this.getDetailInfo(item.orderCode)
},
clearFind() {
let params = {}
this.dateBetween = ''
this.payType = ''
this.divisionType = ''
this.orderNum = ''
this.goodsName = ''
this.toGetCouponsList(params)
},
handleParam() {
let params = {}
if (this.dateBetween) {
//支付时间
let startDate = utils.dateFormat(this.dateBetween[0])
let endDate = utils.dateFormat(this.dateBetween[1])
params.payStartDateStr = startDate
params.payEndDateStr = endDate
}
if (this.payType) {
//支付方式
params.payType = this.payType
}
if (this.divisionType) {
//分账类型
params.divisionType = this.divisionType
}
if (this.orderNum) {
//主订单编号---交易参考号
if (this.orderNumType == 1) {
params.orderCode = this.orderNum
} else {
params.tradeNo = this.orderNum
}
}
if (this.goodsName) {
params.upgradeGoodsName = this.goodsName
}
this.toGetCouponsList(params)
},
changeNOFind(e) {
this.orderNumType = e
this.orderNumName = e == 1 ? '主订单编号' : '交易参考号'
this.orderNum = ''
},
changePayFind(e) {
this.payTypeChange = e
this.payChangeName = e == 1 ? '支付时间' : '支付方式'
this.dateBetween = ''
this.payType = ''
},
toGetCouponsList(params = {}) {
let method = findupGradeOrder()
let para = {
routerMethod: method,
currentPage: 1,
pageSize: 10
pageNum: this.currentPage,
pageSize: this.pageSize,
...params
}
converterApi(para).then(res => {
console.log(res)
this.tableData = res.list.map((item,index)=>{
let ruleType = item.shopProfitType==1?'毛利':'收入'
this.tableData = res.list.map((item, index) => {
let ruleType = item.shopProfitType == 1 ? '毛利' : '收入'
item.rule = `${ruleType}${item.shopProfitPer}%`
item.divisionTypeName = item.divisionType==1?'线上分账':'线下分账'
item.divisionTypeName = item.divisionType == 1 ? '线上分账' : '线下分账'
item.paySuccessDate = utils.dateFormat(item.paySuccessDate)
item.payTypeName = item.payType==1?'线上微信支付':item.payType==2?'线下收款':'POS机'
item.payTypeName = item.payType == 1 ? '线上微信支付' : item.payType == 2 ? '线下收款' : 'POS机'
return item
})
this.tableTotal = res.total
this.httpParam = {
pageNum: this.currentPage,
pageSize: this.pageSize,
...params
}
})
},
// 每页条数
handleSizeChange(value) {
this.pageSize = value
this.toGetCouponsList()
},
// 页码
handleCurrentChange(value) {
this.currentPage = value
this.toGetCouponsList()
},
toExport() {
let method = exportUpgrade()
let para = {
routerMethod: method,
...this.httpParam
}
converterApi(para).then(res => {
let iframe = document.createElement('iframe')
iframe.style.display = 'none'
iframe.src = res
document.body.appendChild(iframe)
})
},
// 获取明细信息
getDetailInfo(orderCode) {
let method = checkDetail()
let para = {
routerMethod: method,
orderCode
}
converterApi(para).then(res => {
this.orderDetail = res
this.dialogTableData = res.subOrderList || []
this.dialogTableData.map(item => {
item.upgradeWarrantyPeriodName = `${item.upgradeWarrantyPeriod || '--'}` + '年'
// 显示需要判断是否已升级
item.codeId = item.upgradeGoodsCommodityCode || item.baseGoodsCommodityCode
item.goodsName = item.upgradeGoodsName || item.baseGoodsName
item.goodsClass = item.upgradeGoodsTypeName || item.baseGoodsTypeName
item.plateName = item.upgradeBrandMerchantName || item.baseBrandMerchantName
item.saleprice = item.upgradeRetailPrice || item.baseRetailPrice
return item
})
this.dialogTableData2 = res.accessLogs || []
this.dialogTableData2.map(item => {
item.logTypeName = logTypeList[parseInt(item.logType)]
item.createdDate = item.createdDate ? utils.dateFormat(item.createdDate, 'YYYY-MM-DD HH:mm') : '--'
return item
})
this.dialogVisible = true
})
}
}
......@@ -221,11 +639,89 @@ export default {
}
}
}
.tipper {
width: 100%;
box-sizing: border-box;
padding: 15px 20px;
.tip_text {
font-size: 12px;
font-weight: 400;
color: #000000;
display: flex;
align-items: center;
}
.right_select {
width: 286rpx;
overflow: hidden;
}
}
.table_wrap {
padding: 0 15px;
padding-bottom: 10px;
}
.spanbtn{
.spanbtn {
cursor: pointer;
}
.dialog_content {
.wrapper {
width: 100%;
box-sizing: border-box;
padding-bottom: 20px;
border-bottom: 1px solid #e6e6e6;
margin-bottom: 20px;
.title {
display: flex;
align-items: center;
font-weight: bold;
}
.title_icon {
width: 2px;
height: 10px;
background: #5850ff;
margin-right: 5px;
}
.message_wrap {
box-sizing: border-box;
padding-top: 10px;
padding-right: 10px;
.box_info {
width: 33.33%;
overflow: hidden;
> div:first-child {
margin-bottom: 10px;
}
.info_text {
min-height: 17px;
font-size: 12px;
font-weight: bold;
color: #333333;
line-height: 17px;
}
}
}
.comment_wrap {
margin-top: 10px;
.comment_line {
display: flex;
align-items: center;
margin-bottom: 5px;
.textarea_con {
width: 60%;
white-space: pre-wrap;
word-spacing: 2;
}
}
.nocenter {
display: flex;
align-items: flex-start;
}
}
.dialog_table_wrap {
margin-top: 5px;
}
}
.noBorder {
border: none;
}
}
</style>
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!