Commit 2d88a807 by chenwq

```

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

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