Commit fa4bee31 by chenwq

```

feat(withdraw): 新增积分提现主营品牌和省份列表功能

- 添加 getBrandList 接口用于获取可选主营品牌列表
- 添加 getProvinceList 接口用于获取可选省份列表
- 在 withdraw API 模块中导出新增接口
- 在提现列表页面添加主营品牌、省份、限制门店、手动标签等搜索条件
- 增加相应的表格列显示:限制门店、手动标签、主营品牌、省份
- 实现手动标签级联选择器功能
- 调整 dialog 组件的 z-index 属性配置
```
1 parent f85c620e
...@@ -53,6 +53,27 @@ const saveTag = params => { ...@@ -53,6 +53,27 @@ const saveTag = params => {
sign: true sign: true
}) })
} }
// 积分提现获取可选主营品牌列表
const getBrandList = params => {
params.method = `scrm.api.shopmall.integral.transfer.out.options.brand.list`
return http({
url: 'rop-scrm-shopmall/router',
method: 'POST',
data: params,
sign: true
})
}
// 积分提现获取可选省份列表
const getProvinceList = params => {
params.method = `scrm.api.shopmall.integral.transfer.out.options.province.list`
return http({
url: 'rop-scrm-shopmall/router',
method: 'POST',
data: params,
sign: true
})
}
//付款渠道树形接口 //付款渠道树形接口
const getChannelTree = params => { const getChannelTree = params => {
params.method = `scrm.api.shopmall.integral.transfer.channel.config.tree` params.method = `scrm.api.shopmall.integral.transfer.channel.config.tree`
...@@ -403,4 +424,4 @@ const getAdmin = (params={}) => { ...@@ -403,4 +424,4 @@ const getAdmin = (params={}) => {
sign: true sign: true
}) })
} }
export default {getListPayLevy,getListPaymentEntity,getChannelList,getChannelTree,payApprovalAgain,getChannelAccount,approvalDetail,removeApproval,getPaymentEntityList,applyApprovalOA,getApprovalLog,getApprovalPage,generateBatchCount, integralorderBatch,getPayAmount,getAllPayAmount, integralAllOut, integralAllpay, getList, bindTag, deleteTag, getTagTree, saveTag, getAdmin, orderExport, integralpay, integralApprove, integralOut, getSms, getMerchantList, getDetails, uploadXlsx, handleSaveImport, getBalance, getSettleAmount,getChannel ,checkRecordsTransferType} export default {getListPayLevy,getListPaymentEntity,getChannelList,getChannelTree,payApprovalAgain,getChannelAccount,approvalDetail,removeApproval,getPaymentEntityList,applyApprovalOA,getApprovalLog,getApprovalPage,generateBatchCount, integralorderBatch,getPayAmount,getAllPayAmount, integralAllOut, integralAllpay, getList, bindTag, deleteTag, getTagTree, saveTag, getBrandList, getProvinceList, getAdmin, orderExport, integralpay, integralApprove, integralOut, getSms, getMerchantList, getDetails, uploadXlsx, handleSaveImport, getBalance, getSettleAmount,getChannel ,checkRecordsTransferType}
<template> <template>
<GLDialog class="gl-form-page gl-form-min tag-form-dialog" :title="dialogTitle" mode="mid" :visible.sync="isVisible" :close-on-click-modal="false" :before-close="handleClose" append-to-body :z-index="3000"> <GLDialog class="gl-form-page gl-form-min tag-form-dialog" :title="dialogTitle" mode="mid" :visible.sync="isVisible" :close-on-click-modal="false" :before-close="handleClose" append-to-body>
<glsx-combi-form ref="tagFormRef" formRef="tagChildRef" defaultWidth="432px" :formObj="tagForm" :formData="tagFormData" :formRules="tagRule"></glsx-combi-form> <glsx-combi-form ref="tagFormRef" formRef="tagChildRef" defaultWidth="432px" :formObj="tagForm" :formData="tagFormData" :formRules="tagRule"></glsx-combi-form>
<span slot="footer" class="dialog-footer"> <span slot="footer" class="dialog-footer">
<el-button plain size="small" class="btn-three" @click="handleClose">取消</el-button> <el-button plain size="small" class="btn-three" @click="handleClose">取消</el-button>
......
...@@ -6,6 +6,9 @@ ...@@ -6,6 +6,9 @@
<template slot="channel"> <template slot="channel">
<el-cascader :options="baseData.channelList" :props="props" style="width: 100%" v-model="searchForm.channelList" :placeholder="'请选择'" filterable @change="selectAddAttr($event, 'searchForm')"></el-cascader> <el-cascader :options="baseData.channelList" :props="props" style="width: 100%" v-model="searchForm.channelList" :placeholder="'请选择'" filterable @change="selectAddAttr($event, 'searchForm')"></el-cascader>
</template> </template>
<template slot="manualTag">
<el-cascader v-model="searchForm.transferOutTagIdPath" :options="baseData.manualTagList" :props="manualTagProps" style="width: 100%" placeholder="请选择手动标签项" separator=" / " clearable filterable @change="handleManualTagChange"></el-cascader>
</template>
</GLCombiForm> </GLCombiForm>
<div class="statistics"> <div class="statistics">
<div class="title">累计结算金额</div> <div class="title">累计结算金额</div>
...@@ -243,6 +246,13 @@ export default { ...@@ -243,6 +246,13 @@ export default {
label: 'name', label: 'name',
children: 'child' children: 'child'
}, },
manualTagProps: {
value: 'id',
label: 'name',
children: 'children',
checkStrictly: true,
emitPath: true
},
isFold: true, isFold: true,
id: '', id: '',
isIdCard: false, isIdCard: false,
...@@ -279,7 +289,12 @@ export default { ...@@ -279,7 +289,12 @@ export default {
withdrawalSource: '', withdrawalSource: '',
realityMerchantName: '', realityMerchantName: '',
channel: '', channel: '',
paymentEntityCode: '' paymentEntityCode: '',
limitStoreFlagQuery: '',
mainBrandIds: [],
provinceCodes: [],
transferOutTagIdQuery: '',
transferOutTagIdPath: []
}, },
hasFooter: false, hasFooter: false,
tableSearchForm: {}, tableSearchForm: {},
...@@ -408,6 +423,42 @@ export default { ...@@ -408,6 +423,42 @@ export default {
name: 'realityMerchantName', name: 'realityMerchantName',
type: 'input', type: 'input',
isClear: true isClear: true
},
{
label: '限制门店',
name: 'limitStoreFlagQuery',
type: 'select',
optionList: [],
optionId: 'value',
optionLabel: 'label',
optionsName: 'limitStoreFlagList'
},
{
label: '主营品牌',
name: 'mainBrandIds',
type: 'select',
optionList: [],
optionId: 'id',
optionLabel: 'name',
optionsName: 'mainBrandList',
multiple: true,
isClear: true
},
{
label: '省份',
name: 'provinceCodes',
type: 'select',
optionList: [],
optionId: 'code',
optionLabel: 'name',
optionsName: 'provinceList',
multiple: true,
isClear: true
},
{
label: '手动标签项',
name: 'transferOutTagIdPath',
addHtml: 'manualTag'
} }
], ],
tableButtonList: [ tableButtonList: [
...@@ -498,6 +549,35 @@ export default { ...@@ -498,6 +549,35 @@ export default {
} }
}, },
{ {
label: '限制门店',
prop: 'limitStoreFlag',
width: '100px',
formatter: cellValue => {
const flagMap = {
Y: '是',
N: '否'
}
return flagMap[cellValue.limitStoreFlag] || '--'
}
},
{
label: '手动标签',
prop: 'manualTagPath',
line: 1,
minWidth: 180
},
{
label: '主营品牌',
prop: 'mainBrandName',
line: 1,
minWidth: 140
},
{
label: '省份',
prop: 'provinceName',
width: 120
},
{
label: '提现方式', label: '提现方式',
prop: 'mode', prop: 'mode',
width: '100px', width: '100px',
...@@ -717,6 +797,19 @@ export default { ...@@ -717,6 +797,19 @@ export default {
channelList: [], channelList: [],
paymentEntityList: [], paymentEntityList: [],
channelPayList: [], channelPayList: [],
limitStoreFlagList: [
{
label: '是',
value: 'Y'
},
{
label: '否',
value: 'N'
}
],
mainBrandList: [],
provinceList: [],
manualTagList: [],
withdrawalTypeList: withdrawalTypeList, withdrawalTypeList: withdrawalTypeList,
modeTypeList: modeTypeList, modeTypeList: modeTypeList,
sourceList: sourceList, sourceList: sourceList,
...@@ -858,6 +951,9 @@ export default { ...@@ -858,6 +951,9 @@ export default {
this.$utils.getOptionsList(this, 'showFormData') this.$utils.getOptionsList(this, 'showFormData')
this.getChannelTree() this.getChannelTree()
this.getMerchantList() this.getMerchantList()
this.getBrandList()
this.getProvinceList()
this.getManualTagList()
this.getSettleAmount() this.getSettleAmount()
}, },
methods: { methods: {
...@@ -1131,6 +1227,48 @@ export default { ...@@ -1131,6 +1227,48 @@ export default {
this.$utils.getOptionsList(this, 'showFormData', false, 'merchantName') this.$utils.getOptionsList(this, 'showFormData', false, 'merchantName')
}) })
}, },
getBrandList() {
this.$apis.withdraw.getBrandList({}).then(res => {
const list = Array.isArray(res) ? res : res && Array.isArray(res.data) ? res.data : []
this.baseData.mainBrandList = list
this.$utils.getOptionsList(this, 'showFormData', false, 'mainBrandIds')
})
},
getProvinceList() {
this.$apis.withdraw.getProvinceList({}).then(res => {
const list = Array.isArray(res) ? res : res && Array.isArray(res.data) ? res.data : []
this.baseData.provinceList = list
this.$utils.getOptionsList(this, 'showFormData', false, 'provinceCodes')
})
},
getManualTagList() {
this.$apis.withdraw.getTagTree({}).then(res => {
const list = Array.isArray(res) ? res : res && Array.isArray(res.data) ? res.data : []
this.baseData.manualTagList = this.formatManualTagTree(list)
})
},
formatManualTagTree(list) {
return (list || []).map(item => {
const sourceChildren = item.children || item.child || item.childList || []
const children = this.formatManualTagTree(sourceChildren)
const option = {
...item,
id: item.id,
name: item.name || item.label || item.tagName || ''
}
if (children.length) {
option.children = children
} else {
delete option.children
delete option.child
delete option.childList
}
return option
})
},
handleManualTagChange(val) {
this.searchForm.transferOutTagIdQuery = val && val.length ? val[val.length - 1] : ''
},
getParams() { getParams() {
var params = JSON.parse(JSON.stringify(this.searchForm)) var params = JSON.parse(JSON.stringify(this.searchForm))
console.log(this.searchForm) console.log(this.searchForm)
...@@ -1147,6 +1285,7 @@ export default { ...@@ -1147,6 +1285,7 @@ export default {
params.receiptDateEnd = dayjs(this.searchForm.receiptDateStr[1]).format('YYYY-MM-DD') + ' 23:59:59' params.receiptDateEnd = dayjs(this.searchForm.receiptDateStr[1]).format('YYYY-MM-DD') + ' 23:59:59'
} }
delete params.channelList delete params.channelList
delete params.transferOutTagIdPath
delete params.payTimeStr, delete params.applyDateStr, delete params.receiptDateStr delete params.payTimeStr, delete params.applyDateStr, delete params.receiptDateStr
return params return params
}, },
...@@ -1177,7 +1316,12 @@ export default { ...@@ -1177,7 +1316,12 @@ export default {
levyCode: '', levyCode: '',
channel: '', channel: '',
transferType: '', transferType: '',
realityMerchantName: '' realityMerchantName: '',
limitStoreFlagQuery: '',
mainBrandIds: [],
provinceCodes: [],
transferOutTagIdQuery: '',
transferOutTagIdPath: []
} }
this.handleSearch() this.handleSearch()
}, },
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!