Commit 88866e57 by 李伟康

收款模式更改为可配置

1 parent 44ffc1e0
...@@ -297,7 +297,53 @@ export default { ...@@ -297,7 +297,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',
...@@ -345,7 +391,7 @@ export default { ...@@ -345,7 +391,7 @@ export default {
{ {
label: '收款模式', label: '收款模式',
prop: 'payMentModel', prop: 'paymentModel',
width: 220, width: 220,
formatter: cellValue => { formatter: cellValue => {
const model = { const model = {
...@@ -425,53 +471,19 @@ export default { ...@@ -425,53 +471,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 {
......
...@@ -1894,7 +1894,8 @@ export default { ...@@ -1894,7 +1894,8 @@ export default {
{ {
label: '收款模式', label: '收款模式',
name: 'paymentModel', name: 'paymentModel',
addHtml: 'paymentModel' addHtml: 'paymentModel',
} }
], ],
//直播配置 //直播配置
...@@ -2021,6 +2022,7 @@ export default { ...@@ -2021,6 +2022,7 @@ export default {
} }
}, },
mounted () { mounted () {
this.getCrowdfundingOrderConfig()
this.getLiveList() this.getLiveList()
this.setMinHeight('.crowd-config') this.setMinHeight('.crowd-config')
this.routeInfo = this.$route.query this.routeInfo = this.$route.query
...@@ -2031,7 +2033,7 @@ export default { ...@@ -2031,7 +2033,7 @@ export default {
// this.$refs.configEditFormRef.$refs.activityDetailTextBox[0].forbidEdit() // this.$refs.configEditFormRef.$refs.activityDetailTextBox[0].forbidEdit()
this.isDisabled = this.routeInfo.addOrEdit != 'add' this.isDisabled = this.routeInfo.addOrEdit != 'add'
this.editFormData.map(item => { 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) this.changeFormAttr('configEditFormData', 'isDisabled', ['账户类型', '定金收款账户'], true)
} }
...@@ -2109,6 +2111,10 @@ export default { ...@@ -2109,6 +2111,10 @@ export default {
}, },
methods: { methods: {
async getCrowdfundingOrderConfig () {
const res = await this.$apis.common.getCrowdfundingOrderConfig()
this.configEditFormData.find(item => item.name == 'paymentModel').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!