Commit 2d88a807 by chenwq

```

feat(withdraw): 更新门店筛选功能支持多选

- 将 merchantName 改为 merchantIds 数组形式支持多选
- 更新下拉选择组件配置,添加 multiple 和 isClear 属性
- 修改商户列表数据结构,增加 nameWithId 字段显示名称和ID
- 调整表格列宽设置,优化门店名称显示格式
- 修复门店筛选相关字段的数据绑定问题
```
1 parent fa4bee31
......@@ -283,7 +283,7 @@ export default {
customerPhone: '',
status: '',
channelList: [],
merchantName: '',
merchantIds: [],
transferType: '',
mode: '',
withdrawalSource: '',
......@@ -377,12 +377,14 @@ export default {
},
{
label: '所属门店',
name: 'merchantName',
name: 'merchantIds',
type: 'select',
optionList: [],
optionId: 'merchantName',
optionLabel: 'merchantName',
optionsName: 'merchantList'
optionId: 'id',
optionLabel: 'nameWithId',
optionsName: 'merchantList',
multiple: true,
isClear: true
},
{
label: '到账时间',
......@@ -564,17 +566,18 @@ export default {
label: '手动标签',
prop: 'manualTagPath',
line: 1,
minWidth: 180
width: 180
},
{
label: '主营品牌',
prop: 'mainBrandName',
line: 1,
minWidth: 140
width: 180
},
{
label: '省份',
prop: 'provinceName',
line: 1,
width: 120
},
{
......@@ -601,7 +604,10 @@ export default {
label: '所属门店',
prop: 'merchantName',
line: 1,
width: 150
width: 220,
formatter: cellValue => {
return cellValue.merchantName ? (cellValue.merchantName + '(' + cellValue.merchantId + ')') : '--'
}
},
{
label: '平台方',
......@@ -1219,12 +1225,15 @@ export default {
},
getMerchantList() {
this.$apis.withdraw.getMerchantList({}).then(res => {
this.baseData.merchantList = res.map(item => {
return {
merchantName: item
}
})
this.$utils.getOptionsList(this, 'showFormData', false, 'merchantName')
this.baseData.merchantList = Array.isArray(res)
? res.map(item => {
return {
...item,
nameWithId: `${item.name}(${item.id})`
}
})
: []
this.$utils.getOptionsList(this, 'showFormData', false, 'merchantIds')
})
},
getBrandList() {
......@@ -1308,7 +1317,7 @@ export default {
customerPhone: '',
status: '',
channelList: [],
merchantName: '',
merchantIds: [],
mode: '',
withdrawalSource: '',
channelProvider: '',
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!