Commit bbe32f96 by 李伟康

提交代码

1 parent 3e11edd1
...@@ -269,4 +269,14 @@ const liveroomOverview = params => { ...@@ -269,4 +269,14 @@ const liveroomOverview = params => {
}) })
} }
export default { getPayListApi, liveroomDetailexport, liveroomDetailpage, liveroomOverview, getActivityPageApi, getCrowdfundListApi, exportCrowdfundApi, getBrowseListApi, exportBrowseApi, toggleStatusApi, deleteActivityApi, topActivityApi, getSharedApi, addOrUpdateActivityApi, getActivityDetailApi, getCrowdSharedApi, getLiveListApi, getRankListApi, exportRankListApi, getDataBoardApi, getVisitorListApi, getSharedListApi, getDailyOrderQuantityStatistics, exportDailyOrderQuantityStatistics } /**获取众筹活动名称&门店 */
const getCrowdfundingParams = params => {
params.method = 'scrm.api.shopmall.crowdfunding.activity.parameter.list'
return http({
url: 'rop-scrm-shopmall/router',
method: 'POST',
data: params,
sign: true
})
}
export default { getPayListApi, liveroomDetailexport, liveroomDetailpage, liveroomOverview, getActivityPageApi, getCrowdfundListApi, exportCrowdfundApi, getBrowseListApi, exportBrowseApi, toggleStatusApi, deleteActivityApi, topActivityApi, getSharedApi, addOrUpdateActivityApi, getActivityDetailApi, getCrowdSharedApi, getLiveListApi, getRankListApi, exportRankListApi, getDataBoardApi, getVisitorListApi, getSharedListApi, getDailyOrderQuantityStatistics, exportDailyOrderQuantityStatistics, getCrowdfundingParams }
...@@ -462,7 +462,7 @@ export default { ...@@ -462,7 +462,7 @@ export default {
orderCode: '', orderCode: '',
orderStatuses: [], orderStatuses: [],
afterSaleStatuses: [], afterSaleStatuses: [],
merchantName: '', merchantNames: [],
customerName: '', customerName: '',
createDate: [], createDate: [],
orderSource: '4', orderSource: '4',
...@@ -471,7 +471,7 @@ export default { ...@@ -471,7 +471,7 @@ export default {
vin: '', vin: '',
shareStaffName: '', shareStaffName: '',
shareStaffType: '', shareStaffType: '',
activityName: '', activityNames: [],
goodsName: '', goodsName: '',
requestSource: '0' requestSource: '0'
}, },
...@@ -555,10 +555,9 @@ export default { ...@@ -555,10 +555,9 @@ export default {
this.oldVal.afterSaleStatuses = this.$common.utils.deepClone(this.searchForm.afterSaleStatuses) this.oldVal.afterSaleStatuses = this.$common.utils.deepClone(this.searchForm.afterSaleStatuses)
} }
}, },
/*******改👇 */
{ {
label: '门店', label: '门店',
name: 'merchantName', name: 'merchantNames',
type: 'select', type: 'select',
labelWidth: 56, labelWidth: 56,
multiple: true, multiple: true,
...@@ -630,10 +629,9 @@ export default { ...@@ -630,10 +629,9 @@ export default {
optionLabel: 'confName', optionLabel: 'confName',
optionsName: 'shareStaffSourceList' optionsName: 'shareStaffSourceList'
}, },
/*******改👇 */
{ {
label: '活动名称', label: '活动名称',
name: 'activityName', name: 'activityNames',
labelWidth: 56, labelWidth: 56,
type: 'select', type: 'select',
multiple: true, multiple: true,
...@@ -643,7 +641,7 @@ export default { ...@@ -643,7 +641,7 @@ export default {
noFilter: false, noFilter: false,
optionList: [], optionList: [],
optionId: 'confId', optionId: 'confId',
optionLabel: 'confName', optionLabel: 'confName'
}, },
{ {
label: '商品名称', label: '商品名称',
...@@ -1175,6 +1173,7 @@ export default { ...@@ -1175,6 +1173,7 @@ export default {
}, },
mounted () { mounted () {
this.getCrowdfundingParams()
// this.getCount() // this.getCount()
this.getOptionsList('searchFormData') this.getOptionsList('searchFormData')
}, },
...@@ -1528,6 +1527,35 @@ export default { ...@@ -1528,6 +1527,35 @@ export default {
this.selectList = selectList.filter(e => e.orderCode) this.selectList = selectList.filter(e => e.orderCode)
}, },
async getCrowdfundingParams () {
/**参数类型 1:众筹活动名称(返回类型String),2:众筹活动门店 */
const activity = await this.$apis.seckillActivity.getCrowdfundingParams({
parameterType: 1
})
let activityNameList = []
if (activity?.parameters && activity.parameters.length) {
activity.parameters.map(e => {
activityNameList.push({
confId: e,
confName: e
})
})
}
this.$set(this.searchFormData[11], 'optionList', this.$common.utils.deepClone(activityNameList))
const merchant = await this.$apis.seckillActivity.getCrowdfundingParams({
parameterType: 2
})
let merchantNameList = []
if (merchant?.parameters && merchant.parameters.length) {
merchant.parameters.map(e => {
merchantNameList.push({
confId: e,
confName: e
})
})
}
this.$set(this.searchFormData[3], 'optionList', this.$common.utils.deepClone(merchantNameList))
}
} }
} }
</script> </script>
...@@ -1649,4 +1677,7 @@ export default { ...@@ -1649,4 +1677,7 @@ export default {
margin: 0 8px 0 0 !important; margin: 0 8px 0 0 !important;
} }
} }
.el-select .el-tag {
max-width: 65% !important;
}
</style> </style>
...@@ -123,16 +123,16 @@ export default { ...@@ -123,16 +123,16 @@ export default {
isShareVisible: false, isShareVisible: false,
shareForm: {}, shareForm: {},
searchForm: { searchForm: {
activityName: '', activityNames: [],
activityStatus: '' activityStatus: '',
merchantNames: []
}, },
tableSearchForm: {}, tableSearchForm: {},
// 搜索 // 搜索
searchFormData: [ searchFormData: [
/*******改👇 */
{ {
label: '活动名称', label: '活动名称',
name: 'activityName', name: 'activityNames',
type: 'select', type: 'select',
width: '215px', width: '215px',
multiple: true, multiple: true,
...@@ -154,10 +154,9 @@ export default { ...@@ -154,10 +154,9 @@ export default {
optionLabel: 'confName', optionLabel: 'confName',
optionsName: 'statusList' optionsName: 'statusList'
}, },
/*******改👇 */
{ {
label: '门店', label: '门店',
name: 'merchantName', name: 'merchantNames',
type: 'select', type: 'select',
width: '215px', width: '215px',
multiple: true, multiple: true,
...@@ -427,7 +426,7 @@ export default { ...@@ -427,7 +426,7 @@ export default {
statusList: [ statusList: [
{ {
confId: '1', confId: '1',
confName: '未开始 ' confName: '未开始'
}, },
{ {
confId: '2', confId: '2',
...@@ -448,7 +447,11 @@ export default { ...@@ -448,7 +447,11 @@ export default {
}, },
mounted () { mounted () {
this.getCrowdfundingParams()
this.getOptionsList('searchFormData') this.getOptionsList('searchFormData')
// const { // const {
// $GLBUTTION_PERMISSIONS: { routes = [], routerBase } // $GLBUTTION_PERMISSIONS: { routes = [], routerBase }
// } = this // } = this
...@@ -654,9 +657,43 @@ export default { ...@@ -654,9 +657,43 @@ export default {
setTableFinishFun () { setTableFinishFun () {
//接收到的数据为空 //接收到的数据为空
this.$refs.activity.data.length ? (this.$refs.activity.tableHeightValues = '') : this.$refs.activity.setTableHeightFun() this.$refs.activity.data.length ? (this.$refs.activity.tableHeightValues = '') : this.$refs.activity.setTableHeightFun()
},
async getCrowdfundingParams () {
/**参数类型 1:众筹活动名称(返回类型String),2:众筹活动门店 */
const activity = await this.$apis.seckillActivity.getCrowdfundingParams({
parameterType: 1
})
let activityNameList = []
if (activity?.parameters && activity.parameters.length) {
activity.parameters.map(e => {
activityNameList.push({
confId: e,
confName: e
})
})
}
this.$set(this.searchFormData[0], 'optionList', this.$common.utils.deepClone(activityNameList))
const merchant = await this.$apis.seckillActivity.getCrowdfundingParams({
parameterType: 2
})
let merchantNameList = []
if (merchant?.parameters && merchant.parameters.length) {
merchant.parameters.map(e => {
merchantNameList.push({
confId: e,
confName: e
})
})
}
this.$set(this.searchFormData[2], 'optionList', this.$common.utils.deepClone(merchantNameList))
} }
} }
} }
</script> </script>
<style scoped></style> <style scoped>
.el-select .el-tag {
max-width: 65% !important;
}
</style>
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!