Commit 0941c8a3 by wusiyi

feat: 添加收款账户管理页面

parent 95ba9bde
...@@ -6,3 +6,70 @@ export function getUserRechargeRecordListApi(params) { ...@@ -6,3 +6,70 @@ export function getUserRechargeRecordListApi(params) {
export function getSubjectListApi(params) { export function getSubjectListApi(params) {
return axios.get('/pay/businessPayRecord/subjectList', params) return axios.get('/pay/businessPayRecord/subjectList', params)
} }
// 获取账户类型
export function getAccountTypeListApi() {
return axios.get('/baseProceedsAccount/accountTypeList')
}
// 获取收款方式
export function getReceiverTypeListApi() {
return axios.get('/baseProceedsAccount/receiverTypeList')
}
// 获取币种
export function getCurrencyTypeListApi() {
return axios.get('/manage/rest/baseCurrencyInfo/uniList')
}
// 获取安全设置
export function getSecuritySettingApi() {
return axios.get('/sysSecuritySettings/getOne')
}
// 获取收款账户列表
export function getBaseProceedsAccountListApi(params) {
return axios.post('/baseProceedsAccount/list_page', params)
}
// 获取收款账户详情
export function getBaseProceedsAccountDetailApi(id) {
return axios.get(`/baseProceedsAccount/get?id=${id}`)
}
// 获取收款账户操作日志
export function getBaseProceedsAccountLogApi(id) {
return axios.get(`/baseProceedsAccountLog/getList?relaId=${id}`)
}
// 更新收款账户启用状态
export function updateBaseProceedsAccountEnableApi(params) {
return axios.post('/baseProceedsAccount/updateEnable', params)
}
// 新增收款账户
export function addBaseProceedsAccountApi(params) {
return axios.post('/baseProceedsAccount/add', params)
}
// 更新收款账户
export function updateBaseProceedsAccountApi(params) {
return axios.post('/baseProceedsAccount/update', params)
}
// 删除收款账户
export function deleteBaseProceedsAccountApi(params) {
return axios.post('/baseProceedsAccount/delete', params)
}
// 发送手机验证码
export function sendPhoneCodeApi(params) {
return axios.post('/sysSecuritySettings/sendPhoneCode', params)
}
// 发送邮箱验证码
export function sendEmailCodeApi(email, operateType) {
return axios.get(
`/sysSecuritySettings/sendEmailCode?email=${email}&operateType=${operateType}`
)
}
...@@ -183,7 +183,10 @@ ...@@ -183,7 +183,10 @@
type="warning" type="warning"
size="small" size="small"
v-if="currentMethod !== 'phone' && securityData.phone" v-if="currentMethod !== 'phone' && securityData.phone"
@click="currentMethod = 'phone'" @click="
currentMethod = 'phone'
resetForm()
"
style="width: 100%"> style="width: 100%">
手机验证 手机验证
</el-button> </el-button>
...@@ -192,7 +195,10 @@ ...@@ -192,7 +195,10 @@
type="success" type="success"
size="small" size="small"
v-if="currentMethod !== 'mailbox' && securityData.mailbox" v-if="currentMethod !== 'mailbox' && securityData.mailbox"
@click="currentMethod = 'mailbox'" @click="
currentMethod = 'mailbox'
resetForm()
"
style="width: 100%"> style="width: 100%">
邮箱验证 邮箱验证
</el-button> </el-button>
...@@ -205,7 +211,10 @@ ...@@ -205,7 +211,10 @@
dialogType !== 'addPassword' && dialogType !== 'addPassword' &&
securityData.superPassword securityData.superPassword
" "
@click="currentMethod = 'superPassword'" @click="
currentMethod = 'superPassword'
resetForm()
"
style="width: 100%"> style="width: 100%">
超级密码验证 超级密码验证
</el-button> </el-button>
...@@ -504,8 +513,8 @@ export default { ...@@ -504,8 +513,8 @@ export default {
resetForm() { resetForm() {
this.$refs.dialogForm?.resetFields() this.$refs.dialogForm?.resetFields()
this.dialogForm = { this.dialogForm = {
phone: '', phone: this.securityData.phone || '',
mailbox: '', mailbox: this.securityData.mailbox || '',
code: '', code: '',
superPassword: '', superPassword: '',
newSuperPassword1: '', newSuperPassword1: '',
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment