Commit 2528e7d7 by wusiyi

feat: 收款账户新增支付宝授权

parent d2ff02a8
......@@ -928,6 +928,16 @@ export default {
this.type = 'changeStatus'
this.currentRow = row
if (this.setVerificationMethod()) {
// 未授权支付宝不可启用账户
if (
row.isEnable === false &&
row.accountType === 'alipay' &&
row.receiverType === 'onLine' &&
!row.appAuthToken
) {
this.$message.warning('请先授权支付宝')
return
}
this.securityVisible = true
}
},
......@@ -962,6 +972,23 @@ export default {
})
}
},
// 新增/编辑 账户类型变化
accountTypeChange(value) {
if (this.addFormData.isEnable === true) {
this.addFormData.accountType = this.currentRow.accountType
this.$message.warning('请先将账户设置为禁用状态,再修改账户类型')
}
},
// 新增/编辑 启用状态变化
dialogEnableChange() {
if (
this.addFormData.accountType === 'alipay' &&
(!this.currentRow || !this.currentRow.appAuthToken)
) {
this.addFormData.isEnable = false
this.$message.warning(`请在${this.operateType}后授权支付宝,再启用账户`)
}
},
// 新增 校验
addVarify() {
this.$refs.addForm.validate((valid) => {
......
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