Commit 3cc54456 by 前端

fixed

1 parent aa641463
......@@ -4,7 +4,7 @@
* @Author: limin
* @Date: 2021-08-13 14:12:11
* @LastEditors: 前端 qianduan01@didihu.com.cn
* @LastEditTime: 2022-12-23 13:54:02
* @LastEditTime: 2022-12-28 16:26:01
* @FilePath: \scrm\scrm-sub-blog\src\main.js
*/
import Vue from 'vue'
......
......@@ -5,11 +5,11 @@
<div class="flex-space-between m-b-10 w-100-percent">
<div class="table-title">
已累计
<template v-if="browseObj.browseType != 2">
<template v-if="browseObj.type != 2">
浏览
</template>
<span>{{ browseCount || 0 }}</span>
{{ browseObj.browseType == 2 ? '位访客' : '次' }}
{{ browseObj.type == 2 ? '位访客' : '次' }}
</div>
<el-button :size="size" class="default-blue-btn" type="default" @click="handleExport">导出</el-button>
</div>
......@@ -98,7 +98,8 @@ export default {
{
label: '微信昵称',
prop: 'customerName',
addHtml: 'customerName'
addHtml: 'customerName',
width: 150
},
{
label: '手机号',
......
......@@ -147,7 +147,15 @@ export default {
tableColumns: [
{
label: '名称',
prop: 'couponName'
prop: 'couponName',
width: 180
},
{
label: '预估成本/元',
prop: 'anticipatedCost',
formatter: cellValue => {
return (cellValue.anticipatedCost / 100).toFixed(2)
}
},
{
label: '有效期',
......@@ -160,20 +168,8 @@ export default {
addHtml: 'useType'
},
{
label: '适用范围',
name: 'scopeApplication',
formatter: cellValue => {
var scopeApplication = '-'
if (cellValue.scopeApplication) {
scopeApplication = this.scopeApplication.find(item => item.confId == cellValue.scopeApplication).confName
}
return scopeApplication
}
},
{
label: '剩余库存',
prop: 'stock',
addHtml: 'stock'
prop: 'residueAmount'
}
]
}
......
......@@ -51,7 +51,7 @@
</GLTable>
</div>
</div>
<GLDialog width="1158px" bigTitle="详情" :hasFooter="false" :visible.sync="dialogVisible" mode="big">
<GLDialog width="1158px" :bigTitle="activityName" :hasFooter="false" :visible.sync="dialogVisible" mode="big">
<browse-list ref="recordForm" v-if="dialogVisible" :browseObj="browseObj" :browseCount="browseCount" :statDate="searchForm.statDate"></browse-list>
</GLDialog>
</div>
......@@ -82,6 +82,7 @@ export default {
data() {
return {
dialogVisible: false,
activityName: '',
url,
browseObj: {},
browseCount: 0,
......@@ -184,6 +185,7 @@ export default {
},
created() {
this.activityId = this.$route.query.activityId
this.activityName = this.$route.query.activityName
this.getDataBoardApi()
},
mounted() {
......@@ -275,6 +277,9 @@ export default {
}
</script>
<style lang="scss" scoped>
.table-popover-img {
width: 160px;
}
.data-board {
&-box {
background: #ffffff;
......
......@@ -48,7 +48,7 @@
</div>
</template>
<script>
import { orderStatus, businessType, subscribe } from '@/common/constant'
import { orderStatus, businessType, subscribe, downloadIamge } from '@/common/constant'
import url from '@/assets/empty.png'
export default {
name: 'LiveIndex',
......@@ -160,7 +160,10 @@ export default {
},
{
label: '销售价格',
prop: 'activityPrice'
prop: 'activityPrice',
formatter: cellValue => {
return cellValue.activityPrice / 100
}
},
{
label: '库存',
......@@ -373,7 +376,8 @@ export default {
this.$router.push({
path: '/activityLink/dataBoard',
query: {
activityId: row.id
activityId: row.id,
activityName: row.activityName
}
})
},
......@@ -456,6 +460,10 @@ export default {
})
this.$refs.classifyRef.data.length ? (this.$refs.classifyRef.tableHeightValues = '') : this.$refs.classifyRef.setTableHeightFun()
},
handleCancelConfirm() {
downloadIamge(this.qrCodeUrl)
this.isQrcodeVisible = false
},
handleSearch() {
this.$refs.classifyRef.refreshTable()
},
......
......@@ -515,15 +515,15 @@ export default {
{
label: '业务场景',
prop: 'businessType',
width: 120
// formatter: cellValue => {
// let type = cellValue.businessType
// if (type) {
// return businessType.find(item => item.optionId == type).optionLabel
// } else {
// return '-'
// }
// }
width: 120,
formatter: cellValue => {
let type = cellValue.businessType
if (type) {
return businessType.find(item => item.optionId == type).optionLabel
} else {
return '-'
}
}
},
{
label: '支付金额/元',
......
......@@ -57,14 +57,22 @@ export default {
name: 'outTradeNo'
},
{
label: '订单时间',
label: '支付日期',
name: 'createdDateStr'
},
{
label: '手机号码',
label: '客户手机号码',
name: 'customerPhone'
},
{
label: '客户姓名',
name: 'customerName'
},
{
label: '客户微信昵称',
name: 'weChatName'
},
{
label: '推荐人',
name: 'shareStaffName'
},
......@@ -73,7 +81,7 @@ export default {
name: 'shareStaffTypeName'
},
{
label: '门店信息',
label: '商户名称',
name: 'merchantName'
},
{
......@@ -81,41 +89,20 @@ export default {
name: 'customerName'
},
{
label: '分润比例',
name: 'takeFee',
suffix: '%'
},
{
label: '订单类型',
name: 'orderSourceName'
},
{
label: '订单状态',
name: 'orderStatusName'
},
{
label: '支付定金',
label: '支付金额',
name: 'payPrice'
},
{
label: '尾款',
name: 'crowdFundingPrice'
},
{
label: '发货地址',
name: 'shipAddress'
},
{
label: '微信名称',
name: 'weChatName'
},
{
label: '活动名称',
label: '链接名称',
name: 'activityName'
},
{
label: '商品名称',
name: 'goodsName'
label: '其他信息',
name: 'otherInformation'
}
],
// 售后信息
......@@ -196,7 +183,7 @@ export default {
this.getInfo()
},
methods: {
formToRow(formName, numOfRow = 3) {
formToRow(formName, numOfRow = 2) {
var rowNum = Math.ceil(this[formName].length / numOfRow)
for (var i = 0; i < rowNum; i++) {
for (var j = 0; j < numOfRow; j++) {
......@@ -283,7 +270,7 @@ export default {
padding: 0 0 0 20px;
}
.row-item {
width: 33%;
width: 45%;
margin: 0;
}
}
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!