trade: 分销业务review代码修改
This commit is contained in:
parent
1be57ea8d3
commit
18b6c70d1a
@ -299,23 +299,6 @@ export const BrokerageEnabledConditionEnum = {
|
|||||||
name: '指定分销'
|
name: '指定分销'
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
/**
|
|
||||||
* 分销用户类型枚举
|
|
||||||
*/
|
|
||||||
export const BrokerageUserTypeEnum = {
|
|
||||||
ALL: {
|
|
||||||
type: 0,
|
|
||||||
name: '全部'
|
|
||||||
},
|
|
||||||
FIRST: {
|
|
||||||
type: 1,
|
|
||||||
name: '一级推广人'
|
|
||||||
},
|
|
||||||
SECOND: {
|
|
||||||
type: 2,
|
|
||||||
name: '二级推广人'
|
|
||||||
}
|
|
||||||
}
|
|
||||||
/**
|
/**
|
||||||
* 佣金记录业务类型枚举
|
* 佣金记录业务类型枚举
|
||||||
*/
|
*/
|
||||||
|
@ -9,15 +9,11 @@
|
|||||||
:inline="true"
|
:inline="true"
|
||||||
label-width="85px"
|
label-width="85px"
|
||||||
>
|
>
|
||||||
<el-form-item label="用户类型" prop="userType">
|
<el-form-item label="用户类型" prop="level">
|
||||||
<el-radio-group v-model="queryParams.userType" @change="handleQuery">
|
<el-radio-group v-model="queryParams.level" @change="handleQuery">
|
||||||
<el-radio-button
|
<el-radio-button checked>全部</el-radio-button>
|
||||||
v-for="item in BrokerageUserTypeEnum"
|
<el-radio-button label="1">一级推广人</el-radio-button>
|
||||||
:key="item.type"
|
<el-radio-button label="2">二级推广人</el-radio-button>
|
||||||
:label="item.type"
|
|
||||||
>
|
|
||||||
{{ item.name }}
|
|
||||||
</el-radio-button>
|
|
||||||
</el-radio-group>
|
</el-radio-group>
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
<el-form-item label="状态" prop="status">
|
<el-form-item label="状态" prop="status">
|
||||||
@ -98,7 +94,7 @@
|
|||||||
<script setup lang="ts">
|
<script setup lang="ts">
|
||||||
import { dateFormatter } from '@/utils/formatTime'
|
import { dateFormatter } from '@/utils/formatTime'
|
||||||
import * as BrokerageRecordApi from '@/api/mall/trade/brokerage/record'
|
import * as BrokerageRecordApi from '@/api/mall/trade/brokerage/record'
|
||||||
import { BrokerageRecordBizTypeEnum, BrokerageUserTypeEnum } from '@/utils/constants'
|
import { BrokerageRecordBizTypeEnum } from '@/utils/constants'
|
||||||
import { fenToYuanFormat } from '@/utils/formatter'
|
import { fenToYuanFormat } from '@/utils/formatter'
|
||||||
import { DICT_TYPE, getIntDictOptions } from '@/utils/dict'
|
import { DICT_TYPE, getIntDictOptions } from '@/utils/dict'
|
||||||
|
|
||||||
@ -115,14 +111,15 @@ const queryParams = reactive({
|
|||||||
pageSize: 10,
|
pageSize: 10,
|
||||||
userId: null,
|
userId: null,
|
||||||
bizType: BrokerageRecordBizTypeEnum.ORDER.type,
|
bizType: BrokerageRecordBizTypeEnum.ORDER.type,
|
||||||
userType: BrokerageUserTypeEnum.ALL.type,
|
level: '',
|
||||||
createTime: []
|
createTime: [],
|
||||||
|
status: null
|
||||||
})
|
})
|
||||||
const queryFormRef = ref() // 搜索的表单
|
const queryFormRef = ref() // 搜索的表单
|
||||||
|
|
||||||
/** 打开弹窗 */
|
/** 打开弹窗 */
|
||||||
const dialogVisible = ref(false) // 弹窗的是否展示
|
const dialogVisible = ref(false) // 弹窗的是否展示
|
||||||
const open = async (userId: number) => {
|
const open = async (userId: any) => {
|
||||||
dialogVisible.value = true
|
dialogVisible.value = true
|
||||||
queryParams.userId = userId
|
queryParams.userId = userId
|
||||||
resetQuery()
|
resetQuery()
|
||||||
|
@ -9,15 +9,11 @@
|
|||||||
:inline="true"
|
:inline="true"
|
||||||
label-width="85px"
|
label-width="85px"
|
||||||
>
|
>
|
||||||
<el-form-item label="用户类型" prop="userType">
|
<el-form-item label="用户类型" prop="level">
|
||||||
<el-radio-group v-model="queryParams.userType" @change="handleQuery">
|
<el-radio-group v-model="queryParams.level" @change="handleQuery">
|
||||||
<el-radio-button
|
<el-radio-button checked>全部</el-radio-button>
|
||||||
v-for="item in BrokerageUserTypeEnum"
|
<el-radio-button label="1">一级推广人</el-radio-button>
|
||||||
:key="item.type"
|
<el-radio-button label="2">二级推广人</el-radio-button>
|
||||||
:label="item.type"
|
|
||||||
>
|
|
||||||
{{ item.name }}
|
|
||||||
</el-radio-button>
|
|
||||||
</el-radio-group>
|
</el-radio-group>
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
<el-form-item label="绑定时间" prop="bindUserTime">
|
<el-form-item label="绑定时间" prop="bindUserTime">
|
||||||
@ -88,7 +84,6 @@
|
|||||||
<script setup lang="ts">
|
<script setup lang="ts">
|
||||||
import { dateFormatter } from '@/utils/formatTime'
|
import { dateFormatter } from '@/utils/formatTime'
|
||||||
import * as BrokerageUserApi from '@/api/mall/trade/brokerage/user'
|
import * as BrokerageUserApi from '@/api/mall/trade/brokerage/user'
|
||||||
import { BrokerageUserTypeEnum } from '@/utils/constants'
|
|
||||||
|
|
||||||
/** 推广人列表 */
|
/** 推广人列表 */
|
||||||
defineOptions({ name: 'BrokerageUserListDialog' })
|
defineOptions({ name: 'BrokerageUserListDialog' })
|
||||||
@ -102,14 +97,14 @@ const queryParams = reactive({
|
|||||||
pageNo: 1,
|
pageNo: 1,
|
||||||
pageSize: 10,
|
pageSize: 10,
|
||||||
bindUserId: null,
|
bindUserId: null,
|
||||||
userType: BrokerageUserTypeEnum.ALL.type,
|
level: '',
|
||||||
bindUserTime: []
|
bindUserTime: []
|
||||||
})
|
})
|
||||||
const queryFormRef = ref() // 搜索的表单
|
const queryFormRef = ref() // 搜索的表单
|
||||||
|
|
||||||
/** 打开弹窗 */
|
/** 打开弹窗 */
|
||||||
const dialogVisible = ref(false) // 弹窗的是否展示
|
const dialogVisible = ref(false) // 弹窗的是否展示
|
||||||
const open = async (bindUserId: number) => {
|
const open = async (bindUserId: any) => {
|
||||||
dialogVisible.value = true
|
dialogVisible.value = true
|
||||||
queryParams.bindUserId = bindUserId
|
queryParams.bindUserId = bindUserId
|
||||||
resetQuery()
|
resetQuery()
|
||||||
|
Loading…
Reference in New Issue
Block a user