Commit 3cc54456 by 前端

fixed

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