Commit fa4bee31 by chenwq

```

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

- 添加 getBrandList 接口用于获取可选主营品牌列表
- 添加 getProvinceList 接口用于获取可选省份列表
- 在 withdraw API 模块中导出新增接口
- 在提现列表页面添加主营品牌、省份、限制门店、手动标签等搜索条件
- 增加相应的表格列显示:限制门店、手动标签、主营品牌、省份
- 实现手动标签级联选择器功能
- 调整 dialog 组件的 z-index 属性配置
```
1 parent f85c620e
......@@ -53,6 +53,27 @@ const saveTag = params => {
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 => {
params.method = `scrm.api.shopmall.integral.transfer.channel.config.tree`
......@@ -403,4 +424,4 @@ const getAdmin = (params={}) => {
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>
<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>
<span slot="footer" class="dialog-footer">
<el-button plain size="small" class="btn-three" @click="handleClose">取消</el-button>
......
......@@ -6,6 +6,9 @@
<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>
</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>
<div class="statistics">
<div class="title">累计结算金额</div>
......@@ -243,6 +246,13 @@ export default {
label: 'name',
children: 'child'
},
manualTagProps: {
value: 'id',
label: 'name',
children: 'children',
checkStrictly: true,
emitPath: true
},
isFold: true,
id: '',
isIdCard: false,
......@@ -279,7 +289,12 @@ export default {
withdrawalSource: '',
realityMerchantName: '',
channel: '',
paymentEntityCode: ''
paymentEntityCode: '',
limitStoreFlagQuery: '',
mainBrandIds: [],
provinceCodes: [],
transferOutTagIdQuery: '',
transferOutTagIdPath: []
},
hasFooter: false,
tableSearchForm: {},
......@@ -408,6 +423,42 @@ export default {
name: 'realityMerchantName',
type: 'input',
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: [
......@@ -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: '提现方式',
prop: 'mode',
width: '100px',
......@@ -717,6 +797,19 @@ export default {
channelList: [],
paymentEntityList: [],
channelPayList: [],
limitStoreFlagList: [
{
label: '是',
value: 'Y'
},
{
label: '否',
value: 'N'
}
],
mainBrandList: [],
provinceList: [],
manualTagList: [],
withdrawalTypeList: withdrawalTypeList,
modeTypeList: modeTypeList,
sourceList: sourceList,
......@@ -858,6 +951,9 @@ export default {
this.$utils.getOptionsList(this, 'showFormData')
this.getChannelTree()
this.getMerchantList()
this.getBrandList()
this.getProvinceList()
this.getManualTagList()
this.getSettleAmount()
},
methods: {
......@@ -1131,6 +1227,48 @@ export default {
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() {
var params = JSON.parse(JSON.stringify(this.searchForm))
console.log(this.searchForm)
......@@ -1147,6 +1285,7 @@ export default {
params.receiptDateEnd = dayjs(this.searchForm.receiptDateStr[1]).format('YYYY-MM-DD') + ' 23:59:59'
}
delete params.channelList
delete params.transferOutTagIdPath
delete params.payTimeStr, delete params.applyDateStr, delete params.receiptDateStr
return params
},
......@@ -1177,7 +1316,12 @@ export default {
levyCode: '',
channel: '',
transferType: '',
realityMerchantName: ''
realityMerchantName: '',
limitStoreFlagQuery: '',
mainBrandIds: [],
provinceCodes: [],
transferOutTagIdQuery: '',
transferOutTagIdPath: []
}
this.handleSearch()
},
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!