Commit bbe32f96 by 李伟康

提交代码

1 parent 3e11edd1
......@@ -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 {
orderCode: '',
orderStatuses: [],
afterSaleStatuses: [],
merchantName: '',
merchantNames: [],
customerName: '',
createDate: [],
orderSource: '4',
......@@ -471,7 +471,7 @@ export default {
vin: '',
shareStaffName: '',
shareStaffType: '',
activityName: '',
activityNames: [],
goodsName: '',
requestSource: '0'
},
......@@ -555,10 +555,9 @@ export default {
this.oldVal.afterSaleStatuses = this.$common.utils.deepClone(this.searchForm.afterSaleStatuses)
}
},
/*******改👇 */
{
label: '门店',
name: 'merchantName',
name: 'merchantNames',
type: 'select',
labelWidth: 56,
multiple: true,
......@@ -630,10 +629,9 @@ export default {
optionLabel: 'confName',
optionsName: 'shareStaffSourceList'
},
/*******改👇 */
{
label: '活动名称',
name: 'activityName',
name: 'activityNames',
labelWidth: 56,
type: 'select',
multiple: true,
......@@ -643,7 +641,7 @@ export default {
noFilter: false,
optionList: [],
optionId: 'confId',
optionLabel: 'confName',
optionLabel: 'confName'
},
{
label: '商品名称',
......@@ -1175,6 +1173,7 @@ export default {
},
mounted () {
this.getCrowdfundingParams()
// this.getCount()
this.getOptionsList('searchFormData')
},
......@@ -1528,6 +1527,35 @@ export default {
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>
......@@ -1649,4 +1677,7 @@ export default {
margin: 0 8px 0 0 !important;
}
}
.el-select .el-tag {
max-width: 65% !important;
}
</style>
......@@ -123,16 +123,16 @@ export default {
isShareVisible: false,
shareForm: {},
searchForm: {
activityName: '',
activityStatus: ''
activityNames: [],
activityStatus: '',
merchantNames: []
},
tableSearchForm: {},
// 搜索
searchFormData: [
/*******改👇 */
{
label: '活动名称',
name: 'activityName',
name: 'activityNames',
type: 'select',
width: '215px',
multiple: true,
......@@ -154,10 +154,9 @@ export default {
optionLabel: 'confName',
optionsName: 'statusList'
},
/*******改👇 */
{
label: '门店',
name: 'merchantName',
name: 'merchantNames',
type: 'select',
width: '215px',
multiple: true,
......@@ -427,7 +426,7 @@ export default {
statusList: [
{
confId: '1',
confName: '未开始 '
confName: '未开始'
},
{
confId: '2',
......@@ -448,7 +447,11 @@ export default {
},
mounted () {
this.getCrowdfundingParams()
this.getOptionsList('searchFormData')
// const {
// $GLBUTTION_PERMISSIONS: { routes = [], routerBase }
// } = this
......@@ -654,9 +657,43 @@ export default {
setTableFinishFun () {
//接收到的数据为空
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>
<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!