Commit 44e496b1 by 李伟康

Merge branch 'master' into v3.5.0-0227

2 parents 29b20f31 d3f100d2
...@@ -29,18 +29,22 @@ ...@@ -29,18 +29,22 @@
</el-tabs> </el-tabs>
</div> </div>
<div class="btn-group"> <div class="btn-group">
<!-- <template v-if="!hideStatus">
<el-button <el-button
class="default-blue-btn" class="default-blue-btn"
:size="size" :size="size"
type="default" type="default"
@click="visibleImportDialog(true)" @click="visibleImportDialog(true)"
>导入</el-button> >导入</el-button>
</template> -->
<template v-if="!hideStatus">
<el-button <el-button
class="default-blue-btn" class="default-blue-btn"
:size="size" :size="size"
type="default" type="default"
@click="handleExport" @click="handleExport"
>导出</el-button> >导出</el-button>
</template>
</div> </div>
</div> </div>
</div> </div>
...@@ -895,13 +899,13 @@ export default { ...@@ -895,13 +899,13 @@ export default {
fileName: '', fileName: '',
fileType: '' fileType: ''
}, },
showTable: false //显示隐藏表格 showTable: false, //显示隐藏表格
hideStatus: false
} }
}, },
mounted () { mounted () {
this.getCrowdfundingOrderConfig() this.getCrowdfundingOrderConfig()
this.getCrowdfundingParams()
// this.getCount() // this.getCount()
}, },
...@@ -1335,12 +1339,14 @@ export default { ...@@ -1335,12 +1339,14 @@ export default {
optionLabel: 'confName', optionLabel: 'confName',
optionsName: 'marketingStatusList' optionsName: 'marketingStatusList'
} }
] ],
hideStatus = false
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', 'shareStaffName', 'assignName', 'shareStaffPhone', 'verificationDate', 'vinNo', 'afterSaleStatus'],
filterFormList = ['afterSaleStatuses', 'vin', 'shareStaffName', 'shareStaffSource', 'customerPhone', 'shareStaffPhone'] filterFormList = ['afterSaleStatuses', 'vin', 'shareStaffName', 'shareStaffSource', 'customerPhone', 'shareStaffPhone']
if (res == 1) { hideStatus = res == 1
if (hideStatus) {
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)) {
tableColumns.splice(i, 1) tableColumns.splice(i, 1)
...@@ -1360,7 +1366,9 @@ export default { ...@@ -1360,7 +1366,9 @@ export default {
this.tableParams.tableColumns = tableColumns this.tableParams.tableColumns = tableColumns
this.searchFormData = searchFormData this.searchFormData = searchFormData
this.showTable = true this.showTable = true
this.hideStatus = hideStatus
this.getOptionsList('searchFormData') this.getOptionsList('searchFormData')
this.getCrowdfundingParams()
}, },
getParams () { getParams () {
var params = JSON.parse(JSON.stringify(this.searchForm)) var params = JSON.parse(JSON.stringify(this.searchForm))
...@@ -1731,7 +1739,8 @@ export default { ...@@ -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({ const merchant = await this.$apis.seckillActivity.getCrowdfundingParams({
parameterType: 2 parameterType: 2
}) })
...@@ -1744,7 +1753,8 @@ export default { ...@@ -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 () { async batchRefundOrder () {
......
<!-- 众筹分享弹窗 --> <!-- 众筹分享弹窗 -->
<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 {}
}, },
...@@ -64,14 +120,15 @@ export default { ...@@ -64,14 +120,15 @@ export default {
}, },
shareForm: { shareForm: {
type: Object, type: Object,
default: () => {} default: () => { }
} },
hideStatus: Boolean
}, },
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 +136,7 @@ export default { ...@@ -79,7 +136,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 +149,7 @@ export default { ...@@ -92,7 +149,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')
} }
} }
......
...@@ -10,12 +10,14 @@ ...@@ -10,12 +10,14 @@
fn="新增众筹" fn="新增众筹"
mode="el-button" mode="el-button"
>新建众筹</GLButton> >新建众筹</GLButton>
<template v-if="!hideStatus">
<el-button <el-button
:size="size" :size="size"
type="default" type="default"
class="default-blue-btn" class="default-blue-btn"
@click="handleJump" @click="handleJump"
>订单管理</el-button> >订单管理</el-button>
</template>
</div> </div>
<div class="container"> <div class="container">
<GLCombiForm <GLCombiForm
...@@ -115,6 +117,7 @@ ...@@ -115,6 +117,7 @@
:isShareVisible="isShareVisible" :isShareVisible="isShareVisible"
:shareForm="shareForm" :shareForm="shareForm"
@handleShareClose="handleShareClose" @handleShareClose="handleShareClose"
:hideStatus="hideStatus"
></crowdFundingShare> ></crowdFundingShare>
</div> </div>
</template> </template>
...@@ -308,7 +311,53 @@ export default { ...@@ -308,7 +311,53 @@ export default {
tableParams: { tableParams: {
listName: 'list', listName: 'list',
tableOption: true, 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: '序号', // label: '序号',
// // prop: 'activityImg', // // prop: 'activityImg',
...@@ -356,7 +405,7 @@ export default { ...@@ -356,7 +405,7 @@ export default {
{ {
label: '收款模式', label: '收款模式',
prop: 'payMentModel', prop: 'paymentModel',
width: 220, width: 220,
formatter: cellValue => { formatter: cellValue => {
const model = { const model = {
...@@ -399,22 +448,25 @@ export default { ...@@ -399,22 +448,25 @@ export default {
prop: 'verificationNumber' prop: 'verificationNumber'
}, },
{ {
label: '定金/元', label: '定金(元)',
prop: 'activityPrice', name: 'activityPrice',
width: 140, width: 140,
addHtml: 'joinText' formatter: cellValue => {
return (cellValue.activityPrice / 100).toFixed(2)
}
}, },
{ {
label: '众筹价/元', label: '众筹价(元)',
prop: 'crowdFundingPrice', name: 'crowdFundingPrice',
width: 140, width: 140,
addHtml: 'joinText' formatter: cellValue => {
return (cellValue.crowdFundingPrice / 100).toFixed(2)
}
}, },
{ {
label: '库存', label: '库存',
prop: 'goodsStock', prop: 'goodsStock',
width: 110, width: 110
addHtml: 'joinText'
}, },
{ {
label: '创建日期', label: '创建日期',
...@@ -433,53 +485,19 @@ export default { ...@@ -433,53 +485,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.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
}, },
__getRoutes (ctx) { __getRoutes (ctx) {
const { const {
......
...@@ -2033,7 +2033,8 @@ export default { ...@@ -2033,7 +2033,8 @@ export default {
{ {
label: '收款模式', label: '收款模式',
name: 'paymentModel', name: 'paymentModel',
addHtml: 'paymentModel' addHtml: 'paymentModel',
}, },
{ {
label: '常态化模式', label: '常态化模式',
...@@ -2222,6 +2223,7 @@ export default { ...@@ -2222,6 +2223,7 @@ export default {
} }
}, },
mounted () { mounted () {
this.getCrowdfundingOrderConfig()
this.getLiveList() this.getLiveList()
this.getVideoList() this.getVideoList()
this.setMinHeight('.crowd-config') this.setMinHeight('.crowd-config')
...@@ -2308,6 +2310,13 @@ export default { ...@@ -2308,6 +2310,13 @@ export default {
}, },
methods: { 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) { changeFormAttr (formName, attrName, labelList, attrValue) {
labelList.forEach(item => { labelList.forEach(item => {
let idx = this[formName].findIndex(k => k.label == 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!