Commit a5be9559 by 李伟康

Merge branch 'master' into v3.5.0

2 parents fb046a46 5de550a1
...@@ -1023,8 +1023,8 @@ export default { ...@@ -1023,8 +1023,8 @@ export default {
] ]
try { try {
const res = await this.$apis.common.getCrowdfundingOrderConfig(), const res = await this.$apis.common.getCrowdfundingOrderConfig(),
filterTableList = ['customerPhone', 'otherInformation', 'shareStaffName', 'assignName', 'shareStaffPhone', 'verificationDate', 'vinNo', 'afterSaleStatus'], filterTableList = ['customerPhone', 'otherInformation', 'assignName', 'shareStaffPhone', 'verificationDate', 'vinNo', 'afterSaleStatus'],
filterFormList = ['afterSaleStatuses', 'vin', 'shareStaffName', 'shareStaffSource', 'customerPhone', 'shareStaffPhone'] filterFormList = ['afterSaleStatuses', 'vin', 'shareStaffSource', 'customerPhone', 'shareStaffPhone']
if (res == 1) { if (res == 1) {
for (let i = 0; i < tableColumns.length; i++) { for (let i = 0; i < tableColumns.length; i++) {
if (filterTableList.includes(tableColumns[i].prop)) { if (filterTableList.includes(tableColumns[i].prop)) {
......
...@@ -227,7 +227,7 @@ export default { ...@@ -227,7 +227,7 @@ export default {
const res = await this.$apis.common.getCrowdfundingOrderConfig() const res = await this.$apis.common.getCrowdfundingOrderConfig()
let hideStatus = res == 1 let hideStatus = res == 1
if (hideStatus) { if (hideStatus) {
const filterFormList = ['customerPhone', 'shareStaffName', 'shareStaffTypeName', 'vin', 'shipAddress'] const filterFormList = ['customerPhone', 'shareStaffTypeName', 'vin', 'shipAddress']
for (let i = 0; i < detailFormData.length; i++) { for (let i = 0; i < detailFormData.length; i++) {
if (filterFormList.includes(detailFormData[i].name)) { if (filterFormList.includes(detailFormData[i].name)) {
detailFormData.splice(i, 1) detailFormData.splice(i, 1)
......
<!-- 众筹分享弹窗 --> <!-- 众筹分享弹窗 -->
<template> <template>
<GLDialog title="分享" mode="mid" okText="关闭" :visible.sync="isShareVisible" :before-close="handleShareClose" :hasFooter="false"> <GLDialog
title="分享"
mode="mid"
okText="关闭"
:visible.sync="isShareVisible"
:before-close="handleShareClose"
:hasFooter="false"
>
<div class="share-dialog"> <div class="share-dialog">
<div> <div>
<img style="width: 220px; height: 310px;" :src="shareForm.posterUrl" /> <img
<el-button style="display: block;margin-top: 12px;margin-left: 65px;" :size="size" type="primary" @click="handleSaveImg(shareForm.posterUrl)">下载海报</el-button> style="width: 220px; height: 310px;"
:src="shareForm.posterUrl"
/>
<el-button
style="display: block;margin-top: 12px;margin-left: 65px;"
:size="size"
type="primary"
@click="handleSaveImg(shareForm.posterUrl)"
>下载海报</el-button>
</div> </div>
<div> <div>
<div class="code"> <div class="code">
<div class="activity-code"> <div class="activity-code">
<div class="code-img"> <div class="code-img">
<img style="width: 146px; height: 146px;" :src="shareForm.qrCodeUrl" /> <img
style="width: 146px; height: 146px;"
:src="shareForm.qrCodeUrl"
/>
</div> </div>
<div> <div>
<p class="code-text">活动二维码</p> <p class="code-text">活动二维码</p>
<el-button style="margin-top: 17px;" :size="size" type="primary" @click="handleSaveImg(shareForm.qrCodeUrl, '活动二维码')">下载二维码</el-button> <el-button
style="margin-top: 17px;"
:size="size"
type="primary"
@click="handleSaveImg(shareForm.qrCodeUrl, '活动二维码')"
>下载二维码</el-button>
</div> </div>
</div> </div>
<div class="activity-code" style="margin-top: 14px;"> <div
class="activity-code"
style="margin-top: 14px;"
v-if="!hideStatus"
>
<div class="code-img"> <div class="code-img">
<img style="width: 146px; height: 146px;" :src="shareForm.staffLoginQrCodeUrl" /> <img
style="width: 146px; height: 146px;"
:src="shareForm.staffLoginQrCodeUrl"
/>
</div> </div>
<div> <div>
<p class="code-text">员工注册码</p> <p class="code-text">员工注册码</p>
<el-button style="margin-top: 17px;" :size="size" type="primary" @click="handleSaveImg(shareForm.staffLoginQrCodeUrl, '员工注册码')">下载注册码</el-button> <el-button
style="margin-top: 17px;"
:size="size"
type="primary"
@click="handleSaveImg(shareForm.staffLoginQrCodeUrl, '员工注册码')"
>下载注册码</el-button>
</div> </div>
</div> </div>
</div> </div>
...@@ -32,18 +67,39 @@ ...@@ -32,18 +67,39 @@
<div class="page-route"> <div class="page-route">
<div> <div>
<span class="share-txt">H5短链接:</span> <span class="share-txt">H5短链接:</span>
<span class="copy" @click="handleSaveTxt(shareForm.linkUrl)">复制</span> <span
<span class="copy" style="margin-left: 10px;width: 75px;" @click="handleSaveTxt(shareForm.originallinkUrl)">复制群发链接</span> class="copy"
@click="handleSaveTxt(shareForm.linkUrl)"
>复制</span>
<span
class="copy"
style="margin-left: 10px;width: 75px;"
@click="handleSaveTxt(shareForm.originallinkUrl)"
>复制群发链接</span>
</div> </div>
<p class="link" style="margin-bottom: 16px;">{{ shareForm.linkUrl }}</p> <p
class="link"
style="margin-bottom: 16px;"
>{{ shareForm.linkUrl }}</p>
<template v-if="!hideStatus">
<div> <div>
<span class="share-txt">员工注册码链接:</span> <span class="share-txt">员工注册码链接:</span>
<span class="copy" @click="handleSaveTxt(shareForm.staffLoginLinkUrl)">复制</span> <span
class="copy"
@click="handleSaveTxt(shareForm.staffLoginLinkUrl)"
>复制</span>
</div> </div>
<p class="link" style="margin-bottom: 16px;">{{ shareForm.staffLoginLinkUrl }}</p> <p
class="link"
style="margin-bottom: 16px;"
>{{ shareForm.staffLoginLinkUrl }}</p>
</template>
<div> <div>
<span class="share-txt">活动ID:</span> <span class="share-txt">活动ID:</span>
<span class="copy" @click="handleSaveTxt(shareForm.id)">复制</span> <span
class="copy"
@click="handleSaveTxt(shareForm.id)"
>复制</span>
</div> </div>
<p class="link">{{ shareForm.id }}</p> <p class="link">{{ shareForm.id }}</p>
</div> </div>
...@@ -53,7 +109,7 @@ ...@@ -53,7 +109,7 @@
<script> <script>
export default { export default {
name: 'crowdFundingShare', name: 'crowdFundingShare',
data() { data () {
return {} return {}
}, },
...@@ -68,10 +124,10 @@ export default { ...@@ -68,10 +124,10 @@ export default {
} }
}, },
mounted() { }, mounted () { },
methods: { methods: {
handleSaveImg(url, downloadTxt = '海报') { handleSaveImg (url, downloadTxt = '海报') {
var alink = document.createElement('a') var alink = document.createElement('a')
alink.href = url alink.href = url
alink.setAttribute('target', '_blank') alink.setAttribute('target', '_blank')
...@@ -79,7 +135,7 @@ export default { ...@@ -79,7 +135,7 @@ export default {
alink.click() alink.click()
alink.remove() alink.remove()
}, },
handleSaveTxt(txt) { handleSaveTxt (txt) {
this.$message({ this.$message({
message: '复制成功', message: '复制成功',
type: 'success', type: 'success',
...@@ -92,7 +148,7 @@ export default { ...@@ -92,7 +148,7 @@ export default {
document.execCommand('Copy') document.execCommand('Copy')
document.body.removeChild(input) document.body.removeChild(input)
}, },
handleShareClose() { handleShareClose () {
this.$emit('handleShareClose') this.$emit('handleShareClose')
} }
} }
...@@ -104,13 +160,13 @@ export default { ...@@ -104,13 +160,13 @@ export default {
} }
.share-dialog .code { .share-dialog .code {
height: 310px; height: 310px;
border-left: 1px dashed #DCDFE6; border-left: 1px dashed #dcdfe6;
margin-left: 20px; margin-left: 20px;
} }
.share-dialog .code .code-img { .share-dialog .code .code-img {
width: 146px; width: 146px;
height: 146px; height: 146px;
border: 1px solid #E8E8EA; border: 1px solid #e8e8ea;
margin-left: 20px; margin-left: 20px;
margin-right: 36px; margin-right: 36px;
} }
...@@ -125,14 +181,14 @@ export default { ...@@ -125,14 +181,14 @@ export default {
} }
.page-route { .page-route {
margin-top: 20px; margin-top: 20px;
background: #F4F6FC; background: #f4f6fc;
padding: 20px; padding: 20px;
} }
.page-route .link { .page-route .link {
width: 492px; width: 492px;
font-family: PingFangSC-Medium; font-family: PingFangSC-Medium;
font-size: 14px; font-size: 14px;
color: #5850FF; color: #5850ff;
line-height: 20px; line-height: 20px;
} }
.page-route .share-txt { .page-route .share-txt {
...@@ -143,11 +199,11 @@ export default { ...@@ -143,11 +199,11 @@ export default {
.page-route .copy { .page-route .copy {
width: 40px; width: 40px;
height: 20px; height: 20px;
background: #5850FF; background: #5850ff;
border-radius: 2px; border-radius: 2px;
font-family: PingFangSC-Regular; font-family: PingFangSC-Regular;
font-size: 12px; font-size: 12px;
color: #FFFFFF; color: #ffffff;
display: inline-block; display: inline-block;
line-height: 20px; line-height: 20px;
text-align: center; text-align: center;
......
...@@ -115,6 +115,7 @@ ...@@ -115,6 +115,7 @@
:isShareVisible="isShareVisible" :isShareVisible="isShareVisible"
:shareForm="shareForm" :shareForm="shareForm"
@handleShareClose="handleShareClose" @handleShareClose="handleShareClose"
:hideStatus="hideStatus"
></crowdFundingShare> ></crowdFundingShare>
</div> </div>
</template> </template>
...@@ -291,13 +292,50 @@ export default { ...@@ -291,13 +292,50 @@ export default {
tableParams: { tableParams: {
listName: 'list', listName: 'list',
tableOption: true, tableOption: true,
tableColumns: [ tableColumns: []
},
pageConf: { pageSize: 'pageSize', pageNum: 'currentPage', totalCount: 'total' },
baseData: {
statusList: [
{ {
label: '活动名称', confId: '1',
prop: 'activityName', confName: '未开始 '
width: 220 },
{
confId: '2',
confName: '进行中'
}, },
{ {
confId: '3',
confName: '已结束'
}
]
},
hideStatus: false
}
},
components: {
crowdFundingShare,
singleGltable: GLTable
},
mounted () {
this.getCrowdfundingOrderConfig()
this.getOptionsList('searchFormData')
},
methods: {
async getCrowdfundingOrderConfig () {
let tableColumns = [
// {
// label: '序号',
// // prop: 'activityImg',
// addHtml: 'tableNum',
// fixed: 'left',
// width: 70
// },
{
label: '浏览量(次)', label: '浏览量(次)',
prop: 'viewAmount', prop: 'viewAmount',
addHtml: 'linkText', addHtml: 'linkText',
...@@ -318,6 +356,12 @@ export default { ...@@ -318,6 +356,12 @@ export default {
prop: 'saleAmount' prop: 'saleAmount'
}, },
{ {
label: '活动名称',
prop: 'activityName',
width: 220,
fixed: 'left'
},
{
label: '门店', label: '门店',
prop: 'merchantName', prop: 'merchantName',
width: 220, width: 220,
...@@ -328,9 +372,10 @@ export default { ...@@ -328,9 +372,10 @@ export default {
prop: 'activityImg', prop: 'activityImg',
addHtml: 'activityImg' addHtml: 'activityImg'
}, },
{ {
label: '收款模式', label: '收款模式',
prop: 'payMentModel', prop: 'paymentModel',
width: 220, width: 220,
formatter: cellValue => { formatter: cellValue => {
const model = { const model = {
...@@ -365,18 +410,33 @@ export default { ...@@ -365,18 +410,33 @@ export default {
} }
}, },
{ {
label: '秒杀价/元', label: '退单数',
prop: 'activityPrice', prop: 'chargebackNumber'
},
{
label: '核销数',
prop: 'verificationNumber'
},
{
label: '定金(元)',
name: 'activityPrice', name: 'activityPrice',
width: 140, width: 140,
addHtml: 'joinText' formatter: cellValue => {
return (cellValue.activityPrice / 100).toFixed(2)
}
},
{
label: '众筹价(元)',
name: 'crowdFundingPrice',
width: 140,
formatter: cellValue => {
return (cellValue.crowdFundingPrice / 100).toFixed(2)
}
}, },
{ {
label: '库存', label: '库存',
prop: 'goodsStock', prop: 'goodsStock',
width: 110, width: 110
addHtml: 'joinText'
}, },
{ {
label: '创建日期', label: '创建日期',
...@@ -395,42 +455,19 @@ export default { ...@@ -395,42 +455,19 @@ export default {
} }
} }
] ]
}, const res = await this.$apis.common.getCrowdfundingOrderConfig(),
pageConf: { pageSize: 'pageSize', pageNum: 'currentPage', totalCount: 'total' }, filterTableList = ['paymentModel'],
baseData: { hideStatus = res == 1
statusList: [ if (hideStatus) {
{ for (let i = 0; i < tableColumns.length; i++) {
confId: '1', if (filterTableList.includes(tableColumns[i].prop)) {
confName: '未开始 ' tableColumns.splice(i, 1)
}, i--
{
confId: '2',
confName: '进行中'
},
{
confId: '3',
confName: '已结束'
} }
]
},
hideStatus: false
} }
}, }
this.hideStatus = hideStatus
components: { this.tableParams.tableColumns = tableColumns
crowdFundingShare,
singleGltable: GLTable
},
mounted () {
this.getCrowdfundingOrderConfig()
this.getOptionsList('searchFormData')
},
methods: {
async getCrowdfundingOrderConfig () {
const res = await this.$apis.common.getCrowdfundingOrderConfig()
this.hideStatus = res == 1
}, },
getParams () { getParams () {
var params = JSON.parse(JSON.stringify(this.searchForm)) var params = JSON.parse(JSON.stringify(this.searchForm))
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!