Commit d3f100d2 by 前端

Merge branch 'v3.4.2-0208' into 'master'

合并V3.4.2 0208

See merge request !35
2 parents 854551fe 9b5e4ec6
......@@ -29,18 +29,22 @@
</el-tabs>
</div>
<div class="btn-group">
<!-- <template v-if="!hideStatus">
<el-button
class="default-blue-btn"
:size="size"
type="default"
@click="visibleImportDialog(true)"
>导入</el-button>
</template> -->
<template v-if="!hideStatus">
<el-button
class="default-blue-btn"
:size="size"
type="default"
@click="handleExport"
>导出</el-button>
</template>
</div>
</div>
</div>
......@@ -895,13 +899,13 @@ export default {
fileName: '',
fileType: ''
},
showTable: false //显示隐藏表格
showTable: false, //显示隐藏表格
hideStatus: false
}
},
mounted () {
this.getCrowdfundingOrderConfig()
this.getCrowdfundingParams()
// this.getCount()
},
......@@ -1335,12 +1339,14 @@ export default {
optionLabel: 'confName',
optionsName: 'marketingStatusList'
}
]
],
hideStatus = false
try {
const res = await this.$apis.common.getCrowdfundingOrderConfig(),
filterTableList = ['customerPhone', 'otherInformation', 'shareStaffName', 'assignName', 'shareStaffPhone', 'verificationDate', 'vinNo', 'afterSaleStatus'],
filterFormList = ['afterSaleStatuses', 'vin', 'shareStaffName', 'shareStaffSource', 'customerPhone', 'shareStaffPhone']
if (res == 1) {
hideStatus = res == 1
if (hideStatus) {
for (let i = 0; i < tableColumns.length; i++) {
if (filterTableList.includes(tableColumns[i].prop)) {
tableColumns.splice(i, 1)
......@@ -1360,7 +1366,9 @@ export default {
this.tableParams.tableColumns = tableColumns
this.searchFormData = searchFormData
this.showTable = true
this.hideStatus = hideStatus
this.getOptionsList('searchFormData')
this.getCrowdfundingParams()
},
getParams () {
var params = JSON.parse(JSON.stringify(this.searchForm))
......@@ -1731,7 +1739,8 @@ export default {
})
})
}
this.$set(this.searchFormData[11], 'optionList', this.$common.utils.deepClone(activityNameList))
const activityNamesIndex = this.searchFormData.findIndex(e => e.name == 'activityNames')
this.$set(this.searchFormData[activityNamesIndex], 'optionList', this.$common.utils.deepClone(activityNameList))
const merchant = await this.$apis.seckillActivity.getCrowdfundingParams({
parameterType: 2
})
......@@ -1744,7 +1753,8 @@ export default {
})
})
}
this.$set(this.searchFormData[3], 'optionList', this.$common.utils.deepClone(merchantNameList))
const merchantNamesIndex = this.searchFormData.findIndex(e => e.name == 'merchantNames')
this.$set(this.searchFormData[merchantNamesIndex], 'optionList', this.$common.utils.deepClone(merchantNameList))
},
async batchRefundOrder () {
......
<!-- 众筹分享弹窗 -->
<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>
<img 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>
<img
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 class="code">
<div class="activity-code">
<div class="code-img">
<img style="width: 146px; height: 146px;" :src="shareForm.qrCodeUrl" />
<img
style="width: 146px; height: 146px;"
:src="shareForm.qrCodeUrl"
/>
</div>
<div>
<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 class="activity-code" style="margin-top: 14px;">
<div
class="activity-code"
style="margin-top: 14px;"
v-if="!hideStatus"
>
<div class="code-img">
<img style="width: 146px; height: 146px;" :src="shareForm.staffLoginQrCodeUrl" />
<img
style="width: 146px; height: 146px;"
:src="shareForm.staffLoginQrCodeUrl"
/>
</div>
<div>
<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>
......@@ -32,18 +67,39 @@
<div class="page-route">
<div>
<span class="share-txt">H5短链接:</span>
<span class="copy" @click="handleSaveTxt(shareForm.linkUrl)">复制</span>
<span class="copy" style="margin-left: 10px;width: 75px;" @click="handleSaveTxt(shareForm.originallinkUrl)">复制群发链接</span>
<span
class="copy"
@click="handleSaveTxt(shareForm.linkUrl)"
>复制</span>
<span
class="copy"
style="margin-left: 10px;width: 75px;"
@click="handleSaveTxt(shareForm.originallinkUrl)"
>复制群发链接</span>
</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>
<span class="share-txt">员工注册码链接:</span>
<span class="copy" @click="handleSaveTxt(shareForm.staffLoginLinkUrl)">复制</span>
<span
class="copy"
@click="handleSaveTxt(shareForm.staffLoginLinkUrl)"
>复制</span>
</div>
<p class="link" style="margin-bottom: 16px;">{{ shareForm.staffLoginLinkUrl }}</p>
<p
class="link"
style="margin-bottom: 16px;"
>{{ shareForm.staffLoginLinkUrl }}</p>
</template>
<div>
<span class="share-txt">活动ID:</span>
<span class="copy" @click="handleSaveTxt(shareForm.id)">复制</span>
<span
class="copy"
@click="handleSaveTxt(shareForm.id)"
>复制</span>
</div>
<p class="link">{{ shareForm.id }}</p>
</div>
......@@ -53,7 +109,7 @@
<script>
export default {
name: 'crowdFundingShare',
data() {
data () {
return {}
},
......@@ -64,14 +120,15 @@ export default {
},
shareForm: {
type: Object,
default: () => {}
}
default: () => { }
},
hideStatus: Boolean
},
mounted() {},
mounted () { },
methods: {
handleSaveImg(url, downloadTxt = '海报') {
handleSaveImg (url, downloadTxt = '海报') {
var alink = document.createElement('a')
alink.href = url
alink.setAttribute('target', '_blank')
......@@ -79,7 +136,7 @@ export default {
alink.click()
alink.remove()
},
handleSaveTxt(txt) {
handleSaveTxt (txt) {
this.$message({
message: '复制成功',
type: 'success',
......@@ -92,7 +149,7 @@ export default {
document.execCommand('Copy')
document.body.removeChild(input)
},
handleShareClose() {
handleShareClose () {
this.$emit('handleShareClose')
}
}
......
......@@ -10,12 +10,14 @@
fn="新增众筹"
mode="el-button"
>新建众筹</GLButton>
<template v-if="!hideStatus">
<el-button
:size="size"
type="default"
class="default-blue-btn"
@click="handleJump"
>订单管理</el-button>
</template>
</div>
<div class="container">
<GLCombiForm
......@@ -103,6 +105,7 @@
:isShareVisible="isShareVisible"
:shareForm="shareForm"
@handleShareClose="handleShareClose"
:hideStatus="hideStatus"
></crowdFundingShare>
</div>
</template>
......@@ -297,7 +300,53 @@ export default {
tableParams: {
listName: 'list',
tableOption: true,
tableColumns: [
tableColumns: []
},
pageConf: { pageSize: 'pageSize', pageNum: 'currentPage', totalCount: 'total' },
baseData: {
statusList: [
{
confId: '1',
confName: '未开始'
},
{
confId: '2',
confName: '进行中'
},
{
confId: '3',
confName: '已结束'
}
]
},
hideStatus: false
}
},
components: {
crowdFundingShare,
singleGltable: GLTable
},
mounted () {
this.getCrowdfundingOrderConfig()
this.getCrowdfundingParams()
this.getOptionsList('searchFormData')
// const {
// $GLBUTTION_PERMISSIONS: { routes = [], routerBase }
// } = this
// console.log(this.$GLBUTTION_PERMISSIONS)
// console.log(this.$GLBUTTION_PERMISSIONS)
// debugger
let test = this.__getRoutes(this)
// console.log(test, 'test')
},
methods: {
async getCrowdfundingOrderConfig () {
let tableColumns = [
// {
// label: '序号',
// // prop: 'activityImg',
......@@ -345,7 +394,7 @@ export default {
{
label: '收款模式',
prop: 'payMentModel',
prop: 'paymentModel',
width: 220,
formatter: cellValue => {
const model = {
......@@ -425,53 +474,19 @@ export default {
}
}
]
},
pageConf: { pageSize: 'pageSize', pageNum: 'currentPage', totalCount: 'total' },
baseData: {
statusList: [
{
confId: '1',
confName: '未开始'
},
{
confId: '2',
confName: '进行中'
},
{
confId: '3',
confName: '已结束'
const res = await this.$apis.common.getCrowdfundingOrderConfig(),
filterTableList = ['paymentModel'],
hideStatus = res == 1
if (hideStatus) {
for (let i = 0; i < tableColumns.length; i++) {
if (filterTableList.includes(tableColumns[i].prop)) {
tableColumns.splice(i, 1)
i--
}
]
},
hideStatus: false
}
},
components: {
crowdFundingShare,
singleGltable: GLTable
},
mounted () {
this.getCrowdfundingOrderConfig()
this.getCrowdfundingParams()
this.getOptionsList('searchFormData')
// const {
// $GLBUTTION_PERMISSIONS: { routes = [], routerBase }
// } = this
// console.log(this.$GLBUTTION_PERMISSIONS)
// console.log(this.$GLBUTTION_PERMISSIONS)
// debugger
let test = this.__getRoutes(this)
// console.log(test, 'test')
},
methods: {
async getCrowdfundingOrderConfig () {
const res = await this.$apis.common.getCrowdfundingOrderConfig()
this.hideStatus = res == 1
}
this.hideStatus = hideStatus
this.tableParams.tableColumns = tableColumns
},
__getRoutes (ctx) {
const {
......
......@@ -1894,7 +1894,8 @@ export default {
{
label: '收款模式',
name: 'paymentModel',
addHtml: 'paymentModel'
addHtml: 'paymentModel',
}
],
//直播配置
......@@ -2021,6 +2022,7 @@ export default {
}
},
mounted () {
this.getCrowdfundingOrderConfig()
this.getLiveList()
this.setMinHeight('.crowd-config')
this.routeInfo = this.$route.query
......@@ -2031,7 +2033,7 @@ export default {
// this.$refs.configEditFormRef.$refs.activityDetailTextBox[0].forbidEdit()
this.isDisabled = this.routeInfo.addOrEdit != 'add'
this.editFormData.map(item => {
if (!['activityName', 'activityImg', 'promotion','orderEndDays'].includes(item.name)) this.changeFormAttr('editFormData', 'isDisabled', [item.label], true)
if (!['activityName', 'activityImg', 'promotion', 'orderEndDays'].includes(item.name)) this.changeFormAttr('editFormData', 'isDisabled', [item.label], true)
})
this.changeFormAttr('configEditFormData', 'isDisabled', ['账户类型', '定金收款账户'], true)
}
......@@ -2109,6 +2111,13 @@ export default {
},
methods: {
async getCrowdfundingOrderConfig () {
const res = await this.$apis.common.getCrowdfundingOrderConfig(),
filterList = ['paymentModel','employeeRegistrationLinkFlag']
this.configEditFormData.map(e =>{
if(filterList.includes(e.name)) e.isHide = res == 1
})
},
changeFormAttr (formName, attrName, labelList, attrValue) {
labelList.forEach(item => {
let idx = this[formName].findIndex(k => k.label == item)
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!