Browse Source

代理模块中文包相关修改

main
GhubCy 1 month ago
parent
commit
23e320e92a
  1. 262
      src/languages/zh.js
  2. 142
      src/views/business/agentVerification/index.vue
  3. 126
      src/views/business/merchantVerification/index.vue
  4. 34
      src/views/business/userAccount/index.vue
  5. 92
      src/views/business/userInfoAgent/index.vue
  6. 206
      src/views/business/userRegister/indexAgent.vue

262
src/languages/zh.js

@ -851,53 +851,55 @@ export default {
userInfoBus: '用户信息-商户扩展' userInfoBus: '用户信息-商户扩展'
}, },
merchantVerification: { merchantVerification: {
legalPersonIdCard: '法人身份证号', account: '账号',
loginAccount: '登录账号',
inputLoginAccount: '请输入登录账号',
merchantName: '商户名称', merchantName: '商户名称',
inputMerchantName: '请输入商户名称', legalPersonIdCard: '法人身份证号',
idCard: '身份证号', userAccount: '用户账号',
inputLegalPersonIdCard: '请输入法人身份证号', merchantInfoName: '注册商户名称',
businessLicense: '营业执照', businessLicenseNumber: '营业执照',
inputBusinessLicenseNumber: '请输入营业执照号码', legalPersonInfoName: '注册法人姓名',
legalPersonName: '法人姓名', legalPersonName: '法人姓名',
inputLegalPersonName: '请输入法人姓名', status: '认证状态',
authStatus: '认证状态', authenticationDate: '认证日期',
unauth: '未认证', failureReason: '失败原因',
authPass: '认证通过',
authFail: '认证失败',
authPending: '认证审核中',
authTime: '认证时间',
failReason: '失败原因',
operation: '操作',
auth: '认证',
detail: '详情',
audit: '审核',
registeredMerchantName: '注册商户名称', registeredMerchantName: '注册商户名称',
authMerchantName: '认证商户名称', authenticatedMerchantName: '认证商户名称',
registeredLegalPersonName: '注册法人姓名', registeredLegalPersonName: '注册法人姓名',
authLegalPersonName: '认证法人姓名', authenticatedLegalPersonName: '认证法人姓名',
inputFailReason: '请输入失败原因', legalPersonIdCardNumber: '法人身份证号码',
contactPersonName: '联系人姓名', businessLicense: '营业执照',
contactPersonPhone: '联系人电话', authenticationFailureReason: '认证失败原因',
contactPersonEmail: '联系人邮箱', authenticate: '认证',
businessLicenseImage: '营业执照图片', audit: '审核',
legalPersonIdCardImage: '法人身份证图片', pass: '通过',
bankAccountNumber: '银行账号', reject: '拒绝',
bankName: '银行名称', statusOption: {
selectAuthTime: '请选择认证时间', unverified: '未认证',
merchantAuth: '商户认证', verified: '已认证',
merchantAuthInfo: '商户认证信息', verificationFailed: '认证失败',
merchantAuthAudit: '商户认证审核', pendingReview: '待审核'
},
accountPlaceholder: '请输入账号',
merchantNamePlaceholder: '请输入商户名称',
legalPersonIdCardPlaceholder: '请输入法人身份证号',
businessLicenseNumberPlaceholder: '请输入营业执照号',
legalPersonNamePlaceholder: '请输入法人姓名',
authenticationFailureReasonPlaceholder: '请输入认证失败原因',
authenticateTitle: '商户认证',
detailTitle: '商户认证详情',
auditTitle: '认证审核',
merchantNameRequired: '商户名称不能为空', merchantNameRequired: '商户名称不能为空',
legalPersonNameRequired: '法人姓名不能为空', legalPersonNameRequired: '法人姓名不能为空',
idCardNumberOnly: '身份证号只能为数字', legalPersonIdCardPattern: '请输入有效的身份证号码',
failReasonRequired: '失败原因不能为空', failureReasonRequired: '失败原因不能为空',
confirmDelete: '确认要删除ID为{ids}的商户认证记录吗?', deleteConfirm: '确认删除选中的{ids}条数据吗?',
confirmRefuse: '确认拒绝商户【{merchantName}】的认证申请吗?请填写拒绝原因', rejectConfirm: '确认要拒绝认证申请吗?',
confirmPass: '确认通过商户【{merchantName}】的认证申请吗?', passConfirm: '确认要通过的认证申请吗?',
auditResultRefuse: '商户认证审核拒绝成功', addSuccess: '新增成功',
auditResultPass: '商户认证审核通过成功' updateSuccess: '修改成功',
deleteSuccess: '删除成功',
auditResultPass: '审核通过',
auditResultReject: '审核拒绝'
}, },
}, },
supplementaryInfo: { supplementaryInfo: {
@ -1558,6 +1560,184 @@ export default {
receipt: '收款', receipt: '收款',
withdrawal: '提现', withdrawal: '提现',
}, },
},
agent: {
agentRegister: {
account: '账号',
agentName: '代理名称',
phone: '手机号',
userLevel: '用户等级',
userType: '用户类型',
status: '状态',
contactAddress: '联系地址',
license: '营业执照号',
licenseOther: '其他许可证号',
legalPerson: '法人代表',
operateStatus: '经营状态',
operateAddr: '经营地址',
button: {
supplement: '补充信息',
passwordReset: '密码重置',
accountLock: '账号冻结',
accountUnlock: '账号解冻',
},
placeholder: {
account: '请输入账号',
phone: '请输入手机号',
userLevel: '请选择用户等级',
userType: '请选择用户类型',
agentName: '请输入代理名称',
license: '请输入营业执照号',
licenseOther: '请输入其他许可证号',
legalPerson: '请输入法人代表',
operateStatus: '请选择经营状态',
operateAddr: '请输入经营地址',
contactAddress: '请输入联系地址',
name: '请输入名称'
},
statusOption: {
initiated: '已注册',
rejected: '已拒绝',
passed: '已通过',
frozen: '已冻结',
},
userTypeOption: {
normal: '普通用户',
business: '企业用户',
agent: '代理用户',
},
userLevelOption: {
normal: '普通',
vip: 'VIP',
business: '企业'
},
operateStatusOption: {
continued: '存续',
cancelled: '注销'
},
rule: {
legalPersonRequired: '法人代表不能为空',
operateStatusRequired: '请选择经营状态',
operateAddrRequired: '经营地址不能为空',
agentNameRequired: '代理名称不能为空',
idCardInvalid: '请输入有效的身份证号',
phoneInvalid: '请输入有效的手机号',
ageInvalid: '请输入有效的年龄',
contactAddressRequired: '联系地址不能为空',
merchantNameRequired: '商户名称不能为空'
},
addTitle: '添加用户注册',
editTitle: '修改用户注册',
detailTitle: '用户注册详情',
supplementTitle: '补充代理信息',
deleteConfirmSingle: '确认要删除账号用户吗?',
deleteConfirmBatch: '确认要删除选中的数据吗?',
passwordResetConfirm: '确认要重置密码吗?',
accountLockConfirm: '确认要冻结账号吗?',
accountUnlockConfirm: '确认要解冻账号吗?',
addSuccess: '添加成功',
editSuccess: '修改成功',
deleteSuccess: '删除成功',
passwordResetSuccess: '密码重置成功',
accountLockSuccess: '账号冻结成功',
accountUnlockSuccess: '账号解冻成功'
},
userInfoAgent: {
agentName: '代理名称',
account: '账号',
license: '许可证号',
licenseOther: '其他许可证',
legalPerson: '法人代表',
operateStatus: '经营状态',
contactAddress: '联系地址',
operateAddr: '经营地址',
placeholder: {
agentName: '请输入代理名称',
account: '请输入账号',
license: '请输入许可证号',
licenseOther: '请输入其他许可证',
legalPerson: '请输入法人代表',
contactAddress: '请输入联系地址',
operateAddr: '请输入经营地址'
},
rule: {
idRequired: 'ID不能为空',
userIdRequired: '用户ID不能为空',
agentNameRequired: '代理名称不能为空',
licenseRequired: '许可证号不能为空',
licenseOtherRequired: '其他许可证不能为空',
legalPersonRequired: '法人代表不能为空',
operateStatusRequired: '经营状态不能为空',
contactAddressRequired: '联系地址不能为空',
operateAddrRequired: '经营地址不能为空'
},
addTitle: '添加代理商信息',
editTitle: '修改代理商信息',
editSuccess: '修改成功',
addSuccess: '添加成功',
deleteConfirm: '确认删除选中的{ids}条数据吗?',
deleteSuccess: '删除成功'
},
agentVerification: {
account: '账号',
userAccount: '用户账号',
agentName: '代理名称',
legalPersonIdCard: '法人身份证号',
businessLicenseNumber: '营业执照号',
legalPersonInfoName: '法人姓名',
legalPersonName: '法人姓名',
status: '认证状态',
authenticationDate: '认证日期',
failureReason: '失败原因',
electronicContract: '电子合同',
earnestMoney: '保证金',
registeredAgentName: '注册代理名称',
authenticatedAgentName: '认证代理名称',
registeredLegalPersonName: '注册法人姓名',
authenticatedLegalPersonName: '认证法人姓名',
legalPersonIdCardNumber: '法人身份证号码',
businessLicense: '营业执照',
authenticationFailureReason: '认证失败原因',
placeholder: {
accountPlaceholder: '请输入账号',
agentNamePlaceholder: '请输入代理名称',
legalPersonIdCardPlaceholder: '请输入法人身份证号',
businessLicenseNumber: '请输入营业执照号',
legalPersonName: '请输入法人姓名',
electronicContract: '请输入电子合同',
earnestMoney: '请输入保证金',
authenticationFailureReason: '请输入认证失败原因'
},
statusOption: {
unverified: '未认证',
verified: '已认证',
verificationFailed: '认证失败',
pendingReview: '待审核'
},
authenticate: '认证',
audit: '审核',
pass: '通过',
reject: '拒绝',
authenticateTitle: '代理认证',
detailTitle: '代理认证详情',
editTitle: '修改代理认证',
auditTitle: '代理认证审核',
agentNameRequired: '代理名称不能为空',
legalPersonNameRequired: '法人姓名不能为空',
electronicContractRequired: '电子合同不能为空',
earnestMoneyRequired: '保证金不能为空',
legalPersonIdCardPattern: '请输入有效的身份证号码',
failureReasonRequired: '失败原因不能为空',
deleteConfirm: '确认删除选中的{ids}条数据吗?',
rejectConfirm: '确认要拒绝"{agentName}"的认证申请吗?',
passConfirm: '确认要通过"{agentName}"的认证申请吗?',
addSuccess: '新增成功',
updateSuccess: '修改成功',
deleteSuccess: '删除成功',
auditResultPass: '审核通过',
auditResultReject: '审核拒绝'
}
} }
} }
} }

142
src/views/business/agentVerification/index.vue

@ -1,26 +1,26 @@
<template> <template>
<div class="app-container"> <div class="app-container">
<el-form :model="queryParams" ref="queryForm" size="small" :inline="true" v-show="showSearch" label-width="68px"> <el-form :model="queryParams" ref="queryForm" size="small" :inline="true" v-show="showSearch" label-width="68px">
<el-form-item label="登录账号" prop="userAccount"> <el-form-item :label="$t('business.agent.agentVerification.account')" prop="userAccount">
<el-input <el-input
v-model="queryParams.userAccount" v-model="queryParams.userAccount"
placeholder="请输入登录账号" :placeholder="$t('business.agent.agentVerification.placeholder.accountPlaceholder')"
clearable clearable
@keyup.enter.native="handleQuery" @keyup.enter.native="handleQuery"
/> />
</el-form-item> </el-form-item>
<el-form-item label="代理名称" prop="agentName"> <el-form-item :label="$t('business.agent.agentVerification.agentName')" prop="agentName">
<el-input <el-input
v-model="queryParams.agentName" v-model="queryParams.agentName"
placeholder="请输入代理商名称" :placeholder="$t('business.agent.agentVerification.placeholder.agentNamePlaceholder')"
clearable clearable
@keyup.enter.native="handleQuery" @keyup.enter.native="handleQuery"
/> />
</el-form-item> </el-form-item>
<el-form-item label="身份证号" prop="legalPersonIdCard"> <el-form-item :label="$t('business.agent.agentVerification.legalPersonIdCard')" prop="legalPersonIdCard">
<el-input <el-input
v-model="queryParams.legalPersonIdCard" v-model="queryParams.legalPersonIdCard"
placeholder="请输入法人身份证号" :placeholder="$t('business.agent.agentVerification.placeholder.legalPersonIdCardPlaceholder')"
clearable clearable
@keyup.enter.native="handleQuery" @keyup.enter.native="handleQuery"
/> />
@ -48,41 +48,41 @@
<el-table v-loading="loading" :data="merchantVerificationList" @selection-change="handleSelectionChange"> <el-table v-loading="loading" :data="merchantVerificationList" @selection-change="handleSelectionChange">
<el-table-column type="selection" width="55" align="center"/> <el-table-column type="selection" width="55" align="center"/>
<el-table-column label="登录账号" align="center" prop="userAccount"/> <el-table-column :label="$t('business.agent.agentVerification.userAccount')" align="center" prop="userAccount"/>
<el-table-column label="代理商名称" align="center" prop="agentName"/> <el-table-column :label="$t('business.agent.agentVerification.agentName')" align="center" prop="agentName"/>
<el-table-column label="营业执照" align="center" prop="businessLicenseNumber"/> <el-table-column :label="$t('business.agent.agentVerification.businessLicenseNumber')" align="center" prop="businessLicenseNumber"/>
<el-table-column label="法人姓名" align="center" prop="legalPersonInfoName"/> <el-table-column :label="$t('business.agent.agentVerification.legalPersonInfoName')" align="center" prop="legalPersonInfoName"/>
<el-table-column label="法人身份证" align="center" prop="legalPersonIdCard"/> <el-table-column :label="$t('business.agent.agentVerification.legalPersonIdCard')" align="center" prop="legalPersonIdCard"/>
<el-table-column label="认证状态" align="center" prop="status"> <el-table-column :label="$t('business.agent.agentVerification.status')" align="center" prop="status">
<template slot-scope="scope"> <template slot-scope="scope">
<el-tag type="primary" v-if="scope.row.status == '0' || scope.row.status == null">未认证</el-tag> <el-tag type="primary" v-if="scope.row.status == '0' || scope.row.status == null">{{ $t('business.agent.agentVerification.statusOption.unverified') }}</el-tag>
<el-tag type="success" v-if="scope.row.status == '1'">认证通过</el-tag> <el-tag type="success" v-if="scope.row.status == '1'">{{ $t('business.agent.agentVerification.statusOption.verified') }}</el-tag>
<el-tag type="danger" v-if="scope.row.status == '2'">认证失败</el-tag> <el-tag type="danger" v-if="scope.row.status == '2'">{{ $t('business.agent.agentVerification.statusOption.verificationFailed') }}</el-tag>
<el-tag type="warning" v-if="scope.row.status == '3'">待审核</el-tag> <el-tag type="warning" v-if="scope.row.status == '3'">{{ $t('business.agent.agentVerification.statusOption.pendingReview') }}</el-tag>
</template> </template>
</el-table-column> </el-table-column>
<el-table-column label="审核时间" align="center" prop="authenticationDate" width="180"/> <el-table-column :label="$t('business.agent.agentVerification.authenticationDate')" align="center" prop="authenticationDate" width="180"/>
<el-table-column label="失败原因" align="center" prop="failureReason"/> <el-table-column :label="$t('business.agent.agentVerification.failureReason')" align="center" prop="failureReason"/>
<el-table-column label="操作" align="center" width="200" class-name="small-padding fixed-width"> <el-table-column :label="$t('common.tableMsg.operation')" align="center" width="200" class-name="small-padding fixed-width">
<template slot-scope="scope"> <template slot-scope="scope">
<el-button v-if="(scope.row.status == null || scope.row.status == '2')" <el-button v-if="(scope.row.status == null || scope.row.status == '2')"
size="mini" size="mini"
type="text" type="text"
icon="el-icon-document-add" icon="el-icon-document-add"
@click="handleAdd(scope.row)" @click="handleAdd(scope.row)"
>认证</el-button> >{{ $t('business.agent.agentVerification.authenticate') }}</el-button>
<el-button v-if="(scope.row.status == 1)" <el-button v-if="(scope.row.status == 1)"
size="mini" size="mini"
type="text" type="text"
icon="el-icon-view" icon="el-icon-view"
@click="handleDetail(scope.row)" @click="handleDetail(scope.row)"
>详情</el-button> >{{ $t('common.button.detail') }}</el-button>
<el-button v-if="(scope.row.status == 3)" <el-button v-if="(scope.row.status == 3)"
size="mini" size="mini"
type="text" type="text"
icon="el-icon-view" icon="el-icon-view"
@click="handleAudit(scope.row)" @click="handleAudit(scope.row)"
>审核</el-button> >{{ $t('business.agent.agentVerification.audit') }}</el-button>
</template> </template>
</el-table-column> </el-table-column>
</el-table> </el-table>
@ -98,23 +98,23 @@
<!-- 添加或修改商户认证信息对话框 --> <!-- 添加或修改商户认证信息对话框 -->
<el-dialog :title="title" :visible.sync="open" width="700px" append-to-body> <el-dialog :title="title" :visible.sync="open" width="700px" append-to-body>
<el-form ref="form" :model="form" :rules="rules" label-width="auto"> <el-form ref="form" :model="form" :rules="rules" label-width="auto">
<el-form-item label="代理商名称" prop="agentName"> <el-form-item :label="$t('business.agent.agentVerification.agentName')" prop="agentName">
<el-input v-model="form.agentName" placeholder="请输入商户名称"/> <el-input v-model="form.agentName" :placeholder="$t('business.agent.agentVerification.agentNamePlaceholder')"/>
</el-form-item> </el-form-item>
<el-form-item label="营业执照" prop="businessLicenseNumber"> <el-form-item :label="$t('business.agent.agentVerification.businessLicenseNumber')" prop="businessLicenseNumber">
<el-input v-model="form.businessLicenseNumber" placeholder="请输入营业执照号"/> <el-input v-model="form.businessLicenseNumber" :placeholder="$t('business.agent.agentVerification.businessLicenseNumberPlaceholder')"/>
</el-form-item> </el-form-item>
<el-form-item label="法人姓名" prop="legalPersonName"> <el-form-item :label="$t('business.agent.agentVerification.legalPersonName')" prop="legalPersonName">
<el-input v-model="form.legalPersonName" placeholder="请输入法人姓名"/> <el-input v-model="form.legalPersonName" :placeholder="$t('business.agent.agentVerification.legalPersonNamePlaceholder')"/>
</el-form-item> </el-form-item>
<el-form-item label="身份证" prop="legalPersonIdCard"> <el-form-item :label="$t('business.agent.agentVerification.legalPersonIdCard')" prop="legalPersonIdCard">
<el-input v-model="form.legalPersonIdCard" placeholder="请输入法人身份证"/> <el-input v-model="form.legalPersonIdCard" :placeholder="$t('business.agent.agentVerification.legalPersonIdCardPlaceholder')"/>
</el-form-item> </el-form-item>
<el-form-item label="电子合同" prop="electronicContract"> <el-form-item :label="$t('business.agent.agentVerification.electronicContract')" prop="electronicContract">
<el-input v-model="form.electronicContract" placeholder="请上传电子合同"/> <el-input v-model="form.electronicContract" :placeholder="$t('business.agent.agentVerification.electronicContractPlaceholder')"/>
</el-form-item> </el-form-item>
<el-form-item label="保证金缴纳证明" prop="earnestMoney"> <el-form-item :label="$t('business.agent.agentVerification.earnestMoney')" prop="earnestMoney">
<el-input v-model="form.earnestMoney" placeholder="请上传保证金缴纳证明"/> <el-input v-model="form.earnestMoney" :placeholder="$t('business.agent.agentVerification.earnestMoneyPlaceholder')"/>
</el-form-item> </el-form-item>
</el-form> </el-form>
<div slot="footer" class="dialog-footer"> <div slot="footer" class="dialog-footer">
@ -126,57 +126,57 @@
<!-- 认证审核 --> <!-- 认证审核 -->
<el-dialog :title="title" :visible.sync="auditOpen" width="700px" append-to-body> <el-dialog :title="title" :visible.sync="auditOpen" width="700px" append-to-body>
<el-form ref="auditForm" :model="auditForm" :rules="rules" label-width="auto"> <el-form ref="auditForm" :model="auditForm" :rules="rules" label-width="auto">
<el-form-item label="注册代理商名称:"> <el-form-item :label="$t('business.agent.agentVerification.registeredAgentName') + ':'">
{{auditForm.agentInfoName}} {{auditForm.agentInfoName}}
</el-form-item> </el-form-item>
<el-form-item label="认证代理名称:"> <el-form-item :label="$t('business.agent.agentVerification.authenticatedAgentName') + ':'">
{{auditForm.agentName}} {{auditForm.agentName}}
</el-form-item> </el-form-item>
<el-form-item label="注册法人名称:"> <el-form-item :label="$t('business.agent.agentVerification.registeredLegalPersonName') + ':'">
{{auditForm.legalPersonInfoName}} {{auditForm.legalPersonInfoName}}
</el-form-item> </el-form-item>
<el-form-item label="认证法人名称:"> <el-form-item :label="$t('business.agent.agentVerification.authenticatedLegalPersonName') + ':'">
{{auditForm.legalPersonName}} {{auditForm.legalPersonName}}
</el-form-item> </el-form-item>
<el-form-item label="法人身份证号:"> <el-form-item :label="$t('business.agent.agentVerification.legalPersonIdCardNumber') + ':'">
{{auditForm.legalPersonIdCardShow}} {{auditForm.legalPersonIdCardShow}}
</el-form-item> </el-form-item>
<el-form-item label="营业执照:"> <el-form-item :label="$t('business.agent.agentVerification.businessLicense') + ':'">
{{auditForm.businessLicenseNumber}} {{auditForm.businessLicenseNumber}}
</el-form-item> </el-form-item>
<el-form-item label="认证失败原因:" prop="failureReason"> <el-form-item :label="$t('business.agent.agentVerification.authenticationFailureReason') + ':'" prop="failureReason">
<el-input v-model="auditForm.failureReason" placeholder="请输入认证失败原因" /> <el-input v-model="auditForm.failureReason" :placeholder="$t('business.agent.agentVerification.authenticationFailureReasonPlaceholder')" />
</el-form-item> </el-form-item>
</el-form> </el-form>
<div slot="footer" class="dialog-footer"> <div slot="footer" class="dialog-footer">
<el-button :loading="buttonLoading" type="success" @click="submitPass"> </el-button> <el-button :loading="buttonLoading" type="success" @click="submitPass">{{ $t('business.agent.agentVerification.pass') }}</el-button>
<el-button :loading="buttonLoading" type="danger" @click="submitRefuse"> </el-button> <el-button :loading="buttonLoading" type="danger" @click="submitRefuse">{{ $t('business.agent.agentVerification.reject') }}</el-button>
<el-button @click="cancel"> </el-button> <el-button @click="cancel">{{ $t('common.button.cancel') }}</el-button>
</div> </div>
</el-dialog> </el-dialog>
<!-- 商户认证信息详情 --> <!-- 商户认证信息详情 -->
<el-dialog :title="title" :visible.sync="detailOpen" width="700px" append-to-body> <el-dialog :title="title" :visible.sync="detailOpen" width="700px" append-to-body>
<el-form ref="form" :model="form" label-width="auto"> <el-form ref="form" :model="form" label-width="auto">
<el-form-item label="代理商名称:"> <el-form-item :label="$t('business.agent.agentVerification.agentName') + ':'">
{{ form.agentName }} {{ form.agentName }}
</el-form-item> </el-form-item>
<el-form-item label="营业执照号:"> <el-form-item :label="$t('business.agent.agentVerification.businessLicenseNumber') + ':'">
{{ form.businessLicenseNumber }} {{ form.businessLicenseNumber }}
</el-form-item> </el-form-item>
<el-form-item label="法人姓名:"> <el-form-item :label="$t('business.agent.agentVerification.legalPersonName') + ':'">
{{ form.legalPersonName }} {{ form.legalPersonName }}
</el-form-item> </el-form-item>
<el-form-item label="法人身份证:"> <el-form-item :label="$t('business.agent.agentVerification.legalPersonIdCard') + ':'">
{{ form.legalPersonIdCard }} {{ form.legalPersonIdCard }}
</el-form-item> </el-form-item>
<el-form-item label="电子合同:"> <el-form-item :label="$t('business.agent.agentVerification.electronicContract') + ':'">
{{ form.electronicContract }} {{ form.electronicContract }}
</el-form-item> </el-form-item>
<el-form-item label="保证金缴纳证明:"> <el-form-item :label="$t('business.agent.agentVerification.earnestMoney') + ':'">
{{ form.earnestMoney }} {{ form.earnestMoney }}
</el-form-item> </el-form-item>
<el-form-item label="审核时间:" prop="authenticationDate"> <el-form-item :label="$t('business.agent.agentVerification.authenticationDate') + ':'" prop="authenticationDate">
{{ form.authenticationDate }} {{ form.authenticationDate }}
</el-form-item> </el-form-item>
</el-form> </el-form>
@ -251,19 +251,19 @@ export default {
// //
rules: { rules: {
agentName: [ agentName: [
{ required: true, message: "代理商名称不能为空", trigger: "blur" } { required: true, message: this.$t('business.agent.agentVerification.agentNameRequired'), trigger: "blur" }
], ],
legalPersonName: [ legalPersonName: [
{ required: true, message: "法人姓名不能为空", trigger: "blur" } { required: true, message: this.$t('business.agent.agentVerification.legalPersonNameRequired'), trigger: "blur" }
], ],
electronicContract: [ electronicContract: [
{ required: true, message: "电子合同不能为空", trigger: "blur" } { required: true, message: this.$t('business.agent.agentVerification.electronicContractRequired'), trigger: "blur" }
], ],
earnestMoney: [ earnestMoney: [
{ required: true, message: "保证金缴纳证明不能为空", trigger: "blur" } { required: true, message: this.$t('business.agent.agentVerification.earnestMoneyRequired'), trigger: "blur" }
], ],
legalPersonIdCard: [ legalPersonIdCard: [
{ required: true,pattern: /^\d+$/, message: "身份证号只能为数字", trigger: "blur" } { required: true,pattern: /^\d+$/, message: this.$t('business.agent.agentVerification.legalPersonIdCardPattern'), trigger: "blur" }
], ],
failureReason: [ failureReason: [
{ } { }
@ -338,11 +338,11 @@ export default {
if (row.id != null){ if (row.id != null){
this.form = row; this.form = row;
this.open = true; this.open = true;
this.title = "商户认证"; this.title = this.$t('business.agent.agentVerification.authenticateTitle');
}else { }else {
this.form.userId = row.userId; this.form.userId = row.userId;
this.open = true; this.open = true;
this.title = "商户认证"; this.title = this.$t('business.agent.agentVerification.authenticateTitle');
} }
}, },
/** 详情按钮操作 */ /** 详情按钮操作 */
@ -350,14 +350,14 @@ export default {
this.reset(); this.reset();
this.form = row; this.form = row;
this.detailOpen = true; this.detailOpen = true;
this.title = "商户认证信息"; this.title = this.$t('business.agent.agentVerification.detailTitle');
}, },
/** 审核按钮操作 */ /** 审核按钮操作 */
handleAudit(row){ handleAudit(row){
this.reset(); this.reset();
this.auditForm = row; this.auditForm = row;
this.auditOpen = true; this.auditOpen = true;
this.title = "商户认证审核"; this.title = this.$t('business.agent.agentVerification.auditTitle');
}, },
/** 修改按钮操作 */ /** 修改按钮操作 */
handleUpdate(row) { handleUpdate(row) {
@ -368,7 +368,7 @@ export default {
this.loading = false; this.loading = false;
this.form = response.data; this.form = response.data;
this.open = true; this.open = true;
this.title = "修改商户认证信息"; this.title = this.$t('business.agent.agentVerification.editTitle');
}); });
}, },
/** 提交按钮 */ /** 提交按钮 */
@ -378,7 +378,7 @@ export default {
this.buttonLoading = true; this.buttonLoading = true;
if (this.form.id != null) { if (this.form.id != null) {
updateAgentVerification(this.form).then(response => { updateAgentVerification(this.form).then(response => {
this.$modal.msgSuccess("修改成功"); this.$modal.msgSuccess(this.$t('business.agent.agentVerification.updateSuccess'));
this.open = false; this.open = false;
this.getList(); this.getList();
}).finally(() => { }).finally(() => {
@ -386,7 +386,7 @@ export default {
}); });
} else { } else {
addAgentVerification(this.form).then(response => { addAgentVerification(this.form).then(response => {
this.$modal.msgSuccess("新增成功"); this.$modal.msgSuccess(this.$t('business.agent.agentVerification.addSuccess'));
this.open = false; this.open = false;
this.getList(); this.getList();
}).finally(() => { }).finally(() => {
@ -399,13 +399,13 @@ export default {
/** 删除按钮操作 */ /** 删除按钮操作 */
handleDelete(row) { handleDelete(row) {
const ids = row.id || this.ids; const ids = row.id || this.ids;
this.$modal.confirm('是否确认删除商户认证信息编号为"' + ids + '"的数据项?').then(() => { this.$modal.confirm(this.$t('business.agent.agentVerification.deleteConfirm', { ids: ids })).then(() => {
this.loading = true; this.loading = true;
return delAgentVerification(ids); return delAgentVerification(ids);
}).then(() => { }).then(() => {
this.loading = false; this.loading = false;
this.getList(); this.getList();
this.$modal.msgSuccess("删除成功"); this.$modal.msgSuccess(this.$t('business.agent.agentVerification.deleteSuccess'));
}).catch(() => { }).catch(() => {
}).finally(() => { }).finally(() => {
this.loading = false; this.loading = false;
@ -420,15 +420,15 @@ export default {
/** 审核拒绝*/ /** 审核拒绝*/
submitRefuse() { submitRefuse() {
this.rules.failureReason = [ this.rules.failureReason = [
{ required: true, message: '拒绝原因不能为空!', trigger: 'blur' } { required: true, message: this.$t('business.agent.agentVerification.failureReasonRequired'), trigger: 'blur' }
]; ];
this.$refs["auditForm"].validate(valid => { this.$refs["auditForm"].validate(valid => {
if (valid) { if (valid) {
this.$modal.confirm('是否【拒绝】商户"' + this.auditForm.agentName + '"的认证申请?').then(() => { this.$modal.confirm(this.$t('business.agent.agentVerification.rejectConfirm', { agentName: this.auditForm.agentName })).then(() => {
this.buttonLoading = true; this.buttonLoading = true;
this.auditForm.status = "2"; this.auditForm.status = "2";
agentAudit(this.auditForm).then(response => { agentAudit(this.auditForm).then(response => {
this.$modal.msgSuccess("审核结果:拒绝"); this.$modal.msgSuccess(this.$t('business.agent.agentVerification.auditResultReject'));
this.auditOpen = false; this.auditOpen = false;
this.getList(); this.getList();
}).finally(() => { }).finally(() => {
@ -443,9 +443,9 @@ export default {
this.buttonLoading = true; this.buttonLoading = true;
this.auditForm.status = "1"; this.auditForm.status = "1";
this.$refs["auditForm"].clearValidate("failureReason"); this.$refs["auditForm"].clearValidate("failureReason");
this.$modal.confirm('是否【通过】商户"' + this.auditForm.agentName + '"的认证申请?').then(() => { this.$modal.confirm(this.$t('business.agent.agentVerification.passConfirm', { agentName: this.auditForm.agentName })).then(() => {
agentAudit(this.auditForm).then(response => { agentAudit(this.auditForm).then(response => {
this.$modal.msgSuccess("审核结果:通过"); this.$modal.msgSuccess(this.$t('business.agent.agentVerification.auditResultPass'));
this.auditOpen = false; this.auditOpen = false;
this.getList(); this.getList();
}).finally(() => { }).finally(() => {

126
src/views/business/merchantVerification/index.vue

@ -1,26 +1,26 @@
<template> <template>
<div class="app-container"> <div class="app-container">
<el-form :model="queryParams" ref="queryForm" size="small" :inline="true" v-show="showSearch" label-width="68px"> <el-form :model="queryParams" ref="queryForm" size="small" :inline="true" v-show="showSearch" label-width="68px">
<el-form-item label="登录账号" prop="account"> <el-form-item :label="$t('business.merchant.merchantVerification.account')" prop="account">
<el-input <el-input
v-model="queryParams.account" v-model="queryParams.account"
placeholder="请输入登录账号" :placeholder="$t('business.merchant.merchantVerification.accountPlaceholder')"
clearable clearable
@keyup.enter.native="handleQuery" @keyup.enter.native="handleQuery"
/> />
</el-form-item> </el-form-item>
<el-form-item label="商户名称" prop="merchantName"> <el-form-item :label="$t('business.merchant.merchantVerification.merchantName')" prop="merchantName">
<el-input <el-input
v-model="queryParams.merchantName" v-model="queryParams.merchantName"
placeholder="请输入商户名称" :placeholder="$t('business.merchant.merchantVerification.merchantNamePlaceholder')"
clearable clearable
@keyup.enter.native="handleQuery" @keyup.enter.native="handleQuery"
/> />
</el-form-item> </el-form-item>
<el-form-item label="身份证号" prop="legalPersonIdCard"> <el-form-item :label="$t('business.merchant.merchantVerification.legalPersonIdCard')" prop="legalPersonIdCard">
<el-input <el-input
v-model="queryParams.legalPersonIdCard" v-model="queryParams.legalPersonIdCard"
placeholder="请输入法人身份证号" :placeholder="$t('business.merchant.merchantVerification.legalPersonIdCardPlaceholder')"
clearable clearable
@keyup.enter.native="handleQuery" @keyup.enter.native="handleQuery"
/> />
@ -48,41 +48,41 @@
<el-table v-loading="loading" :data="merchantVerificationList" @selection-change="handleSelectionChange"> <el-table v-loading="loading" :data="merchantVerificationList" @selection-change="handleSelectionChange">
<el-table-column type="selection" width="55" align="center"/> <el-table-column type="selection" width="55" align="center"/>
<el-table-column label="登录账号" align="center" prop="userAccount"/> <el-table-column :label="$t('business.merchant.merchantVerification.userAccount')" align="center" prop="userAccount"/>
<el-table-column label="商户名称" align="center" prop="merchantInfoName"/> <el-table-column :label="$t('business.merchant.merchantVerification.merchantInfoName')" align="center" prop="merchantInfoName"/>
<el-table-column label="营业执照" align="center" prop="businessLicenseNumber"/> <el-table-column :label="$t('business.merchant.merchantVerification.businessLicenseNumber')" align="center" prop="businessLicenseNumber"/>
<el-table-column label="法人姓名" align="center" prop="legalPersonInfoName"/> <el-table-column :label="$t('business.merchant.merchantVerification.legalPersonInfoName')" align="center" prop="legalPersonInfoName"/>
<el-table-column label="法人身份证" align="center" prop="legalPersonIdCard"/> <el-table-column :label="$t('business.merchant.merchantVerification.legalPersonIdCard')" align="center" prop="legalPersonIdCard"/>
<el-table-column label="认证状态" align="center" prop="status"> <el-table-column :label="$t('business.merchant.merchantVerification.status')" align="center" prop="status">
<template slot-scope="scope"> <template slot-scope="scope">
<el-tag type="primary" v-if="scope.row.status == '0' || scope.row.status == null">未认证</el-tag> <el-tag type="primary" v-if="scope.row.status == '0' || scope.row.status == null">{{ $t('business.merchant.merchantVerification.statusOption.unverified') }}</el-tag>
<el-tag type="success" v-if="scope.row.status == '1'">认证通过</el-tag> <el-tag type="success" v-if="scope.row.status == '1'">{{ $t('business.merchant.merchantVerification.statusOption.verified') }}</el-tag>
<el-tag type="danger" v-if="scope.row.status == '2'">认证失败</el-tag> <el-tag type="danger" v-if="scope.row.status == '2'">{{ $t('business.merchant.merchantVerification.statusOption.verificationFailed') }}</el-tag>
<el-tag type="warning" v-if="scope.row.status == '3'">待审核</el-tag> <el-tag type="warning" v-if="scope.row.status == '3'">{{ $t('business.merchant.merchantVerification.statusOption.pendingReview') }}</el-tag>
</template> </template>
</el-table-column> </el-table-column>
<el-table-column label="审核时间" align="center" prop="authenticationDate" width="180"/> <el-table-column :label="$t('business.merchant.merchantVerification.authenticationDate')" align="center" prop="authenticationDate" width="180"/>
<el-table-column label="失败原因" align="center" prop="failureReason"/> <el-table-column :label="$t('business.merchant.merchantVerification.failureReason')" align="center" prop="failureReason"/>
<el-table-column label="操作" align="center" width="200" class-name="small-padding fixed-width"> <el-table-column :label="$t('common.tableMsg.operation')" align="center" width="200" class-name="small-padding fixed-width">
<template slot-scope="scope"> <template slot-scope="scope">
<el-button v-if="(scope.row.status == null || scope.row.status == '2')" <el-button v-if="(scope.row.status == null || scope.row.status == '2')"
size="mini" size="mini"
type="text" type="text"
icon="el-icon-document-add" icon="el-icon-document-add"
@click="handleAdd(scope.row)" @click="handleAdd(scope.row)"
>认证</el-button> >{{ $t('business.merchant.merchantVerification.authenticate') }}</el-button>
<el-button v-if="(scope.row.status == 1)" <el-button v-if="(scope.row.status == 1)"
size="mini" size="mini"
type="text" type="text"
icon="el-icon-view" icon="el-icon-view"
@click="handleDetail(scope.row)" @click="handleDetail(scope.row)"
>详情</el-button> >{{ $t('common.button.detail') }}</el-button>
<el-button v-if="(scope.row.status == 3)" <el-button v-if="(scope.row.status == 3)"
size="mini" size="mini"
type="text" type="text"
icon="el-icon-view" icon="el-icon-view"
@click="handleAudit(scope.row)" @click="handleAudit(scope.row)"
>审核</el-button> >{{ $t('business.merchant.merchantVerification.audit') }}</el-button>
</template> </template>
</el-table-column> </el-table-column>
</el-table> </el-table>
@ -98,17 +98,17 @@
<!-- 添加或修改商户认证信息对话框 --> <!-- 添加或修改商户认证信息对话框 -->
<el-dialog :title="title" :visible.sync="open" width="700px" append-to-body> <el-dialog :title="title" :visible.sync="open" width="700px" append-to-body>
<el-form ref="form" :model="form" :rules="rules" label-width="auto"> <el-form ref="form" :model="form" :rules="rules" label-width="auto">
<el-form-item label="商户名称" prop="merchantName"> <el-form-item :label="$t('business.merchant.merchantVerification.merchantName')" prop="merchantName">
<el-input v-model="form.merchantName" placeholder="请输入商户名称"/> <el-input v-model="form.merchantName" :placeholder="$t('business.merchant.merchantVerification.merchantNamePlaceholder')"/>
</el-form-item> </el-form-item>
<el-form-item label="营业执照" prop="businessLicenseNumber"> <el-form-item :label="$t('business.merchant.merchantVerification.businessLicenseNumber')" prop="businessLicenseNumber">
<el-input v-model="form.businessLicenseNumber" placeholder="请输入营业执照号"/> <el-input v-model="form.businessLicenseNumber" :placeholder="$t('business.merchant.merchantVerification.businessLicenseNumberPlaceholder')"/>
</el-form-item> </el-form-item>
<el-form-item label="法人姓名" prop="legalPersonName"> <el-form-item :label="$t('business.merchant.merchantVerification.legalPersonName')" prop="legalPersonName">
<el-input v-model="form.legalPersonName" placeholder="请输入法人姓名"/> <el-input v-model="form.legalPersonName" :placeholder="$t('business.merchant.merchantVerification.legalPersonNamePlaceholder')"/>
</el-form-item> </el-form-item>
<el-form-item label="身份证" prop="legalPersonIdCard"> <el-form-item :label="$t('business.merchant.merchantVerification.legalPersonIdCard')" prop="legalPersonIdCard">
<el-input v-model="form.legalPersonIdCard" placeholder="请输入法人身份证"/> <el-input v-model="form.legalPersonIdCard" :placeholder="$t('business.merchant.merchantVerification.legalPersonIdCardPlaceholder')"/>
</el-form-item> </el-form-item>
</el-form> </el-form>
<div slot="footer" class="dialog-footer"> <div slot="footer" class="dialog-footer">
@ -120,51 +120,51 @@
<!-- 认证审核 --> <!-- 认证审核 -->
<el-dialog :title="title" :visible.sync="auditOpen" width="700px" append-to-body> <el-dialog :title="title" :visible.sync="auditOpen" width="700px" append-to-body>
<el-form ref="auditForm" :model="auditForm" :rules="rules" label-width="auto"> <el-form ref="auditForm" :model="auditForm" :rules="rules" label-width="auto">
<el-form-item label="注册商企名称:"> <el-form-item :label="$t('business.merchant.merchantVerification.registeredMerchantName') + ':'">
{{auditForm.merchantInfoName}} {{auditForm.merchantInfoName}}
</el-form-item> </el-form-item>
<el-form-item label="认证商企名称:"> <el-form-item :label="$t('business.merchant.merchantVerification.authenticatedMerchantName') + ':'">
{{auditForm.merchantName}} {{auditForm.merchantName}}
</el-form-item> </el-form-item>
<el-form-item label="注册法人名称:"> <el-form-item :label="$t('business.merchant.merchantVerification.registeredLegalPersonName') + ':'">
{{auditForm.legalPersonInfoName}} {{auditForm.legalPersonInfoName}}
</el-form-item> </el-form-item>
<el-form-item label="认证法人名称:"> <el-form-item :label="$t('business.merchant.merchantVerification.authenticatedLegalPersonName') + ':'">
{{auditForm.legalPersonName}} {{auditForm.legalPersonName}}
</el-form-item> </el-form-item>
<el-form-item label="法人身份证号:"> <el-form-item :label="$t('business.merchant.merchantVerification.legalPersonIdCardNumber') + ':'">
{{auditForm.legalPersonIdCardShow}} {{auditForm.legalPersonIdCardShow}}
</el-form-item> </el-form-item>
<el-form-item label="营业执照:"> <el-form-item :label="$t('business.merchant.merchantVerification.businessLicense') + ':'">
{{auditForm.businessLicenseNumber}} {{auditForm.businessLicenseNumber}}
</el-form-item> </el-form-item>
<el-form-item label="认证失败原因:" prop="failureReason"> <el-form-item :label="$t('business.merchant.merchantVerification.authenticationFailureReason') + ':'" prop="failureReason">
<el-input v-model="auditForm.failureReason" placeholder="请输入认证失败原因" /> <el-input v-model="auditForm.failureReason" :placeholder="$t('business.merchant.merchantVerification.authenticationFailureReasonPlaceholder')" />
</el-form-item> </el-form-item>
</el-form> </el-form>
<div slot="footer" class="dialog-footer"> <div slot="footer" class="dialog-footer">
<el-button :loading="buttonLoading" type="success" @click="submitPass"> </el-button> <el-button :loading="buttonLoading" type="success" @click="submitPass">{{ $t('business.merchant.merchantVerification.pass') }}</el-button>
<el-button :loading="buttonLoading" type="danger" @click="submitRefuse"> </el-button> <el-button :loading="buttonLoading" type="danger" @click="submitRefuse">{{ $t('business.merchant.merchantVerification.reject') }}</el-button>
<el-button @click="cancel"> </el-button> <el-button @click="cancel">{{ $t('common.button.cancel') }}</el-button>
</div> </div>
</el-dialog> </el-dialog>
<!-- 商户认证信息详情 --> <!-- 商户认证信息详情 -->
<el-dialog :title="title" :visible.sync="detailOpen" width="700px" append-to-body> <el-dialog :title="title" :visible.sync="detailOpen" width="700px" append-to-body>
<el-form ref="form" :model="form" label-width="auto"> <el-form ref="form" :model="form" label-width="auto">
<el-form-item label="商户名称:"> <el-form-item :label="$t('business.merchant.merchantVerification.merchantName') + ':'">
{{ form.merchantName }} {{ form.merchantName }}
</el-form-item> </el-form-item>
<el-form-item label="营业执照号:"> <el-form-item :label="$t('business.merchant.merchantVerification.businessLicenseNumber') + ':'">
{{ form.businessLicenseNumber }} {{ form.businessLicenseNumber }}
</el-form-item> </el-form-item>
<el-form-item label="法人姓名:"> <el-form-item :label="$t('business.merchant.merchantVerification.legalPersonName') + ':'">
{{ form.legalPersonName }} {{ form.legalPersonName }}
</el-form-item> </el-form-item>
<el-form-item label="法人身份证:"> <el-form-item :label="$t('business.merchant.merchantVerification.legalPersonIdCard') + ':'">
{{ form.legalPersonIdCard }} {{ form.legalPersonIdCard }}
</el-form-item> </el-form-item>
<el-form-item label="审核时间:" prop="authenticationDate"> <el-form-item :label="$t('business.merchant.merchantVerification.authenticationDate') + ':'" prop="authenticationDate">
{{ form.authenticationDate }} {{ form.authenticationDate }}
</el-form-item> </el-form-item>
</el-form> </el-form>
@ -239,13 +239,13 @@ export default {
// //
rules: { rules: {
merchantName: [ merchantName: [
{ required: true, message: "商户名称不能为空", trigger: "blur" } { required: true, message: this.$t('business.merchant.merchantVerification.merchantNameRequired'), trigger: "blur" }
], ],
legalPersonName: [ legalPersonName: [
{ required: true, message: "法人姓名不能为空", trigger: "blur" } { required: true, message: this.$t('business.merchant.merchantVerification.legalPersonNameRequired'), trigger: "blur" }
], ],
legalPersonIdCard: [ legalPersonIdCard: [
{ required: true,pattern: /^\d+$/, message: "身份证号只能为数字", trigger: "blur" } { required: true,pattern: /^\d+$/, message: this.$t('business.merchant.merchantVerification.legalPersonIdCardPattern'), trigger: "blur" }
], ],
failureReason: [ failureReason: [
{ } { }
@ -320,11 +320,11 @@ export default {
if (row.id != null){ if (row.id != null){
this.form = row; this.form = row;
this.open = true; this.open = true;
this.title = "商户认证"; this.title = this.$t('business.merchant.merchantVerification.authenticateTitle');
}else { }else {
this.form.userId = row.userId; this.form.userId = row.userId;
this.open = true; this.open = true;
this.title = "商户认证"; this.title = this.$t('business.merchant.merchantVerification.authenticateTitle');
} }
}, },
/** 详情按钮操作 */ /** 详情按钮操作 */
@ -332,14 +332,14 @@ export default {
this.reset(); this.reset();
this.form = row; this.form = row;
this.detailOpen = true; this.detailOpen = true;
this.title = "商户认证信息"; this.title = this.$t('business.merchant.merchantVerification.detailTitle');
}, },
/** 审核按钮操作 */ /** 审核按钮操作 */
handleAudit(row){ handleAudit(row){
this.reset(); this.reset();
this.auditForm = row; this.auditForm = row;
this.auditOpen = true; this.auditOpen = true;
this.title = "商户认证审核"; this.title = this.$t('business.merchant.merchantVerification.auditTitle');
}, },
/** 修改按钮操作 */ /** 修改按钮操作 */
handleUpdate(row) { handleUpdate(row) {
@ -350,7 +350,7 @@ export default {
this.loading = false; this.loading = false;
this.form = response.data; this.form = response.data;
this.open = true; this.open = true;
this.title = "修改商户认证信息"; this.title = this.$t('business.merchant.merchantVerification.editTitle');
}); });
}, },
/** 提交按钮 */ /** 提交按钮 */
@ -360,7 +360,7 @@ export default {
this.buttonLoading = true; this.buttonLoading = true;
if (this.form.id != null) { if (this.form.id != null) {
updateMerchantVerification(this.form).then(response => { updateMerchantVerification(this.form).then(response => {
this.$modal.msgSuccess("修改成功"); this.$modal.msgSuccess(this.$t('business.merchant.merchantVerification.updateSuccess'));
this.open = false; this.open = false;
this.getList(); this.getList();
}).finally(() => { }).finally(() => {
@ -368,7 +368,7 @@ export default {
}); });
} else { } else {
addMerchantVerification(this.form).then(response => { addMerchantVerification(this.form).then(response => {
this.$modal.msgSuccess("新增成功"); this.$modal.msgSuccess(this.$t('business.merchant.merchantVerification.addSuccess'));
this.open = false; this.open = false;
this.getList(); this.getList();
}).finally(() => { }).finally(() => {
@ -381,13 +381,13 @@ export default {
/** 删除按钮操作 */ /** 删除按钮操作 */
handleDelete(row) { handleDelete(row) {
const ids = row.id || this.ids; const ids = row.id || this.ids;
this.$modal.confirm('是否确认删除商户认证信息编号为"' + ids + '"的数据项?').then(() => { this.$modal.confirm(this.$t('business.merchant.merchantVerification.deleteConfirm', { ids: ids })).then(() => {
this.loading = true; this.loading = true;
return delMerchantVerification(ids); return delMerchantVerification(ids);
}).then(() => { }).then(() => {
this.loading = false; this.loading = false;
this.getList(); this.getList();
this.$modal.msgSuccess("删除成功"); this.$modal.msgSuccess(this.$t('business.merchant.merchantVerification.deleteSuccess'));
}).catch(() => { }).catch(() => {
}).finally(() => { }).finally(() => {
this.loading = false; this.loading = false;
@ -402,15 +402,15 @@ export default {
/** 审核拒绝*/ /** 审核拒绝*/
submitRefuse() { submitRefuse() {
this.rules.failureReason = [ this.rules.failureReason = [
{ required: true, message: '拒绝原因不能为空!', trigger: 'blur' } { required: true, message: this.$t('business.merchant.merchantVerification.failureReasonRequired'), trigger: 'blur' }
]; ];
this.$refs["auditForm"].validate(valid => { this.$refs["auditForm"].validate(valid => {
if (valid) { if (valid) {
this.$modal.confirm('是否【拒绝】商户"' + this.auditForm.merchantName + '"的认证申请?').then(() => { this.$modal.confirm(this.$t('business.merchant.merchantVerification.rejectConfirm', { merchantName: this.auditForm.merchantName })).then(() => {
this.buttonLoading = true; this.buttonLoading = true;
this.auditForm.status = "2"; this.auditForm.status = "2";
merchantAudit(this.auditForm).then(response => { merchantAudit(this.auditForm).then(response => {
this.$modal.msgSuccess("审核结果:拒绝"); this.$modal.msgSuccess(this.$t('business.merchant.merchantVerification.auditResultReject'));
this.auditOpen = false; this.auditOpen = false;
this.getList(); this.getList();
}).finally(() => { }).finally(() => {
@ -425,9 +425,9 @@ export default {
this.buttonLoading = true; this.buttonLoading = true;
this.auditForm.status = "1"; this.auditForm.status = "1";
this.$refs["auditForm"].clearValidate("failureReason"); this.$refs["auditForm"].clearValidate("failureReason");
this.$modal.confirm('是否【通过】商户"' + this.auditForm.merchantName + '"的认证申请?').then(() => { this.$modal.confirm(this.$t('business.merchant.merchantVerification.passConfirm', { merchantName: this.auditForm.merchantName })).then(() => {
merchantAudit(this.auditForm).then(response => { merchantAudit(this.auditForm).then(response => {
this.$modal.msgSuccess("审核结果:通过"); this.$modal.msgSuccess(this.$t('business.merchant.merchantVerification.auditResultPass'));
this.auditOpen = false; this.auditOpen = false;
this.getList(); this.getList();
}).finally(() => { }).finally(() => {

34
src/views/business/userAccount/index.vue

@ -1,8 +1,8 @@
<template> <template>
<div class="app-container"> <div class="app-container">
<el-form :model="queryParams" ref="queryForm" size="small" :inline="true" v-show="showSearch" label-width="68px"> <el-form :model="queryParams" ref="queryForm" size="small" :inline="true" v-show="showSearch" label-width="68px">
<el-form-item :label="$t('business.userAccount.accountCode')" prop="accountCode"> <el-form-item :label="$t('business.supplementaryInfo.userAccount.accountCode')" prop="accountCode">
<el-input v-model="queryParams.accountCode" :placeholder="$t('business.userAccount.inputAccountCode')" <el-input v-model="queryParams.accountCode" :placeholder="$t('business.supplementaryInfo.userAccount.inputAccountCode')"
clearable @keyup.enter.native="handleQuery"/> clearable @keyup.enter.native="handleQuery"/>
</el-form-item> </el-form-item>
<el-form-item label="账户类型" prop="accountType"> <el-form-item label="账户类型" prop="accountType">
@ -57,10 +57,10 @@
<span v-if="scope.row.userType == 2">{{ scope.row.agentName }}</span> <span v-if="scope.row.userType == 2">{{ scope.row.agentName }}</span>
</template> </template>
</el-table-column> </el-table-column>
<el-table-column :label="$t('business.userAccount.accountCode')" align="center" prop="accountCode"/> <el-table-column :label="$t('business.supplementaryInfo.userAccount.accountCode')" align="center" prop="accountCode"/>
<el-table-column :label="$t('business.userAccount.accountName')" align="center" prop="accountName"/> <el-table-column :label="$t('business.supplementaryInfo.userAccount.accountName')" align="center" prop="accountName"/>
<el-table-column <el-table-column
:label="$t('business.userAccount.accountAmount')" :label="$t('business.supplementaryInfo.userAccount.accountAmount')"
prop="accountAmount" prop="accountAmount"
:formatter="formatCurrency"> :formatter="formatCurrency">
</el-table-column> </el-table-column>
@ -77,13 +77,13 @@
<el-tag v-if="scope.row.isPrimary == 1">子账户</el-tag> <el-tag v-if="scope.row.isPrimary == 1">子账户</el-tag>
</template> </template>
</el-table-column> </el-table-column>
<el-table-column :label="$t('business.userAccount.status')" align="center" prop="status"> <el-table-column :label="$t('business.supplementaryInfo.userAccount.status')" align="center" prop="status">
<template slot-scope="scope"> <template slot-scope="scope">
<el-tag type="success" v-if="scope.row.status == 0">{{ $t('business.userAccount.statusNormal') }}</el-tag> <el-tag type="success" v-if="scope.row.status == 0">{{ $t('business.supplementaryInfo.userAccount.statusNormal') }}</el-tag>
<el-tag type="danger" v-if="scope.row.status == 1">{{ $t('business.userAccount.statusFrozen') }}</el-tag> <el-tag type="danger" v-if="scope.row.status == 1">{{ $t('business.supplementaryInfo.userAccount.statusFrozen') }}</el-tag>
</template> </template>
</el-table-column> </el-table-column>
<el-table-column :label="$t('common.button.operation')" align="center" width="200" <el-table-column :label="$t('common.tableMsg.operation')" align="center" width="200"
class-name="small-padding fixed-width"> class-name="small-padding fixed-width">
<template slot-scope="scope"> <template slot-scope="scope">
<el-button size="mini" type="text" icon="el-icon-plus" @click="handleAdd(scope.row)" <el-button size="mini" type="text" icon="el-icon-plus" @click="handleAdd(scope.row)"
@ -112,8 +112,8 @@
<!-- 添加或修改用户账户对话框 --> <!-- 添加或修改用户账户对话框 -->
<el-dialog :title="title" :visible.sync="open" width="700px" append-to-body> <el-dialog :title="title" :visible.sync="open" width="700px" append-to-body>
<el-form ref="form" :model="form" :rules="rules" label-width="auto"> <el-form ref="form" :model="form" :rules="rules" label-width="auto">
<el-form-item :label="$t('business.userAccount.detailAccountName')" prop="accountName"> <el-form-item :label="$t('business.supplementaryInfo.userAccount.detailAccountName')" prop="accountName">
<el-input v-model="form.accountName" :placeholder="$t('business.userAccount.inputAccountName')"/> <el-input v-model="form.accountName" :placeholder="$t('business.supplementaryInfo.userAccount.inputAccountName')"/>
</el-form-item> </el-form-item>
<el-form-item label="账户级别" prop="isPrimary"> <el-form-item label="账户级别" prop="isPrimary">
<el-select v-model="form.isPrimary" placeholder="请选择账户级别"> <el-select v-model="form.isPrimary" placeholder="请选择账户级别">
@ -138,13 +138,13 @@
<!-- 用户账户详情显示框 --> <!-- 用户账户详情显示框 -->
<el-dialog :title="title" :visible.sync="detailOpen" width="700px" append-to-body> <el-dialog :title="title" :visible.sync="detailOpen" width="700px" append-to-body>
<el-form ref="form" :model="form" label-width="auto"> <el-form ref="form" :model="form" label-width="auto">
<el-form-item :label="$t('business.userAccount.detailAccountCodeLabel')"> <el-form-item :label="$t('business.supplementaryInfo.userAccount.detailAccountCodeLabel')">
{{ form.accountCode }} {{ form.accountCode }}
</el-form-item> </el-form-item>
<el-form-item :label="$t('business.userAccount.detailAccountNameLabel')"> <el-form-item :label="$t('business.supplementaryInfo.userAccount.detailAccountNameLabel')">
{{ form.accountName }} {{ form.accountName }}
</el-form-item> </el-form-item>
<el-form-item :label="$t('business.userAccount.detailAccountAmountLabel')"> <el-form-item :label="$t('business.supplementaryInfo.userAccount.detailAccountAmountLabel')">
{{ form.accountAmount }} {{ form.accountAmount }}
</el-form-item> </el-form-item>
</el-form> </el-form>
@ -304,14 +304,14 @@ export default {
this.reset(); this.reset();
this.form = row; this.form = row;
this.open = true; this.open = true;
this.title = this.$t('business.userAccount.addTitle'); this.title = this.$t('business.supplementaryInfo.userAccount.addTitle');
}, },
/** 详情按钮操作 */ /** 详情按钮操作 */
handleDetail(row) { handleDetail(row) {
this.reset(); this.reset();
this.form = row; this.form = row;
this.detailOpen = true; this.detailOpen = true;
this.title = this.$t('business.userAccount.detailTitle'); this.title = this.$t('business.supplementaryInfo.userAccount.detailTitle');
}, },
/** 修改按钮操作 */ /** 修改按钮操作 */
handleUpdate(row) { handleUpdate(row) {
@ -322,7 +322,7 @@ export default {
this.loading = false; this.loading = false;
this.form = response.data; this.form = response.data;
this.open = true; this.open = true;
this.title = this.$t('business.userAccount.editTitle'); this.title = this.$t('business.supplementaryInfo.userAccount.editTitle');
}); });
}, },
/** 提交按钮 */ /** 提交按钮 */

92
src/views/business/userInfoAgent/index.vue

@ -1,25 +1,25 @@
<template> <template>
<div class="app-container"> <div class="app-container">
<el-form :model="queryParams" ref="queryForm" size="small" :inline="true" v-show="showSearch" label-width="68px"> <el-form :model="queryParams" ref="queryForm" size="small" :inline="true" v-show="showSearch" label-width="68px">
<el-form-item label="代理名称" prop="agentName"> <el-form-item :label="$t('business.agent.userInfoAgent.agentName')" prop="agentName">
<el-input <el-input
v-model="queryParams.agentName" v-model="queryParams.agentName"
placeholder="请输入代理商名称" :placeholder="$t('business.agent.userInfoAgent.placeholder.agentName')"
clearable clearable
@keyup.enter.native="handleQuery" @keyup.enter.native="handleQuery"
/> />
</el-form-item> </el-form-item>
<el-form-item label="登录账号" prop="account"> <el-form-item :label="$t('business.agent.userInfoAgent.account')" prop="account">
<el-input <el-input
v-model="queryParams.account" v-model="queryParams.account"
placeholder="请输入登录账号" :placeholder="$t('business.agent.userInfoAgent.placeholder.account')"
clearable clearable
@keyup.enter.native="handleQuery" @keyup.enter.native="handleQuery"
/> />
</el-form-item> </el-form-item>
<el-form-item> <el-form-item>
<el-button type="primary" icon="el-icon-search" size="mini" @click="handleQuery">搜索</el-button> <el-button type="primary" icon="el-icon-search" size="mini" @click="handleQuery">{{ $t('common.button.search') }}</el-button>
<el-button icon="el-icon-refresh" size="mini" @click="resetQuery">重置</el-button> <el-button icon="el-icon-refresh" size="mini" @click="resetQuery">{{ $t('common.button.reset') }}</el-button>
</el-form-item> </el-form-item>
</el-form> </el-form>
@ -32,22 +32,22 @@
size="mini" size="mini"
@click="handleExport" @click="handleExport"
v-hasPermi="['business:userInfoAgent:export']" v-hasPermi="['business:userInfoAgent:export']"
>导出</el-button> >{{ $t('common.button.export') }}</el-button>
</el-col> </el-col>
<right-toolbar :showSearch.sync="showSearch" @queryTable="getList"></right-toolbar> <right-toolbar :showSearch.sync="showSearch" @queryTable="getList"></right-toolbar>
</el-row> </el-row>
<el-table v-loading="loading" :data="userInfoAgentList" @selection-change="handleSelectionChange"> <el-table v-loading="loading" :data="userInfoAgentList" @selection-change="handleSelectionChange">
<el-table-column type="selection" width="55" align="center" /> <el-table-column type="selection" width="55" align="center" />
<el-table-column label="登录账号" align="center" prop="account" /> <el-table-column :label="$t('business.agent.userInfoAgent.account')" align="center" prop="account" />
<el-table-column label="代理名称" align="center" prop="agentName" /> <el-table-column :label="$t('business.agent.userInfoAgent.agentName')" align="center" prop="agentName" />
<el-table-column label="营业执照" align="center" prop="license" /> <el-table-column :label="$t('business.agent.userInfoAgent.license')" align="center" prop="license" />
<el-table-column label="其它证照信息" align="center" prop="licenseOther" /> <el-table-column :label="$t('business.agent.userInfoAgent.licenseOther')" align="center" prop="licenseOther" />
<el-table-column label="法人姓名" align="center" prop="legalPerson" /> <el-table-column :label="$t('business.agent.userInfoAgent.legalPerson')" align="center" prop="legalPerson" />
<el-table-column label="经营状态" align="center" prop="operateStatus" /> <el-table-column :label="$t('business.agent.userInfoAgent.operateStatus')" align="center" prop="operateStatus" />
<el-table-column label="联系地址" align="center" prop="contactAddress" /> <el-table-column :label="$t('business.agent.userInfoAgent.contactAddress')" align="center" prop="contactAddress" />
<el-table-column label="经营地址" align="center" prop="operateAddr" /> <el-table-column :label="$t('business.agent.userInfoAgent.operateAddr')" align="center" prop="operateAddr" />
<el-table-column label="操作" align="center" width="200" class-name="small-padding fixed-width"> <el-table-column :label="$t('common.tableMsg.operation')" align="center" width="200" class-name="small-padding fixed-width">
<template slot-scope="scope"> <template slot-scope="scope">
<el-button <el-button
size="mini" size="mini"
@ -55,7 +55,7 @@
icon="el-icon-edit" icon="el-icon-edit"
@click="handleUpdate(scope.row)" @click="handleUpdate(scope.row)"
v-hasPermi="['business:userInfoAgent:edit']" v-hasPermi="['business:userInfoAgent:edit']"
>修改</el-button> >{{ $t('common.button.modify') }}</el-button>
</template> </template>
</el-table-column> </el-table-column>
</el-table> </el-table>
@ -71,28 +71,28 @@
<!-- 添加或修改代理商信息对话框 --> <!-- 添加或修改代理商信息对话框 -->
<el-dialog :title="title" :visible.sync="open" width="700px" append-to-body> <el-dialog :title="title" :visible.sync="open" width="700px" append-to-body>
<el-form ref="form" :model="form" :rules="rules" label-width="auto"> <el-form ref="form" :model="form" :rules="rules" label-width="auto">
<el-form-item label="代理名称" prop="agentName"> <el-form-item :label="$t('business.agent.userInfoAgent.agentName')" prop="agentName">
<el-input v-model="form.agentName" placeholder="请输入代理名称" /> <el-input v-model="form.agentName" :placeholder="$t('business.agent.userInfoAgent.placeholder.agentName')" />
</el-form-item> </el-form-item>
<el-form-item label="营业执照" prop="license"> <el-form-item :label="$t('business.agent.userInfoAgent.license')" prop="license">
<el-input v-model="form.license" placeholder="请输入营业执照" /> <el-input v-model="form.license" :placeholder="$t('business.agent.userInfoAgent.placeholder.license')" />
</el-form-item> </el-form-item>
<el-form-item label="其它证照信息" prop="licenseOther"> <el-form-item :label="$t('business.agent.userInfoAgent.licenseOther')" prop="licenseOther">
<el-input v-model="form.licenseOther" placeholder="请输入其它证照信息" /> <el-input v-model="form.licenseOther" :placeholder="$t('business.agent.userInfoAgent.placeholder.licenseOther')" />
</el-form-item> </el-form-item>
<el-form-item label="法人姓名" prop="legalPerson"> <el-form-item :label="$t('business.agent.userInfoAgent.legalPerson')" prop="legalPerson">
<el-input v-model="form.legalPerson" placeholder="请输入法人姓名" /> <el-input v-model="form.legalPerson" :placeholder="$t('business.agent.userInfoAgent.placeholder.legalPerson')" />
</el-form-item> </el-form-item>
<el-form-item label="联系地址" prop="contactAddress"> <el-form-item :label="$t('business.agent.userInfoAgent.contactAddress')" prop="contactAddress">
<el-input v-model="form.contactAddress" placeholder="请输入联系地址" /> <el-input v-model="form.contactAddress" :placeholder="$t('business.agent.userInfoAgent.placeholder.contactAddress')" />
</el-form-item> </el-form-item>
<el-form-item label="经营地址" prop="operateAddr"> <el-form-item :label="$t('business.agent.userInfoAgent.operateAddr')" prop="operateAddr">
<el-input v-model="form.operateAddr" placeholder="请输入经营地址" /> <el-input v-model="form.operateAddr" :placeholder="$t('business.agent.userInfoAgent.placeholder.operateAddr')" />
</el-form-item> </el-form-item>
</el-form> </el-form>
<div slot="footer" class="dialog-footer"> <div slot="footer" class="dialog-footer">
<el-button :loading="buttonLoading" type="primary" @click="submitForm"> </el-button> <el-button :loading="buttonLoading" type="primary" @click="submitForm">{{ $t('common.button.confirm') }}</el-button>
<el-button @click="cancel"> </el-button> <el-button @click="cancel">{{ $t('common.button.cancel') }}</el-button>
</div> </div>
</el-dialog> </el-dialog>
@ -144,31 +144,31 @@ export default {
// //
rules: { rules: {
id: [ id: [
{ required: true, message: "唯一ID不能为空", trigger: "blur" } { required: true, message: this.$t('business.agent.userInfoAgent.rule.idRequired'), trigger: "blur" }
], ],
userId: [ userId: [
{ required: true, message: "用户ID不能为空", trigger: "blur" } { required: true, message: this.$t('business.agent.userInfoAgent.rule.userIdRequired'), trigger: "blur" }
], ],
agentName: [ agentName: [
{ required: true, message: "代理名称不能为空", trigger: "blur" } { required: true, message: this.$t('business.agent.userInfoAgent.rule.agentNameRequired'), trigger: "blur" }
], ],
license: [ license: [
{ required: true, message: "营业执照不能为空", trigger: "blur" } { required: true, message: this.$t('business.agent.userInfoAgent.rule.licenseRequired'), trigger: "blur" }
], ],
licenseOther: [ licenseOther: [
{ required: true, message: "其它证照信息不能为空", trigger: "blur" } { required: true, message: this.$t('business.agent.userInfoAgent.rule.licenseOtherRequired'), trigger: "blur" }
], ],
legalPerson: [ legalPerson: [
{ required: true, message: "法人姓名不能为空", trigger: "blur" } { required: true, message: this.$t('business.agent.userInfoAgent.rule.legalPersonRequired'), trigger: "blur" }
], ],
operateStatus: [ operateStatus: [
{ required: true, message: "经营状态不能为空", trigger: "change" } { required: true, message: this.$t('business.agent.userInfoAgent.rule.operateStatusRequired'), trigger: "change" }
], ],
contactAddress: [ contactAddress: [
{ required: true, message: "联系地址不能为空", trigger: "blur" } { required: true, message: this.$t('business.agent.userInfoAgent.rule.contactAddressRequired'), trigger: "blur" }
], ],
operateAddr: [ operateAddr: [
{ required: true, message: "经营地址不能为空", trigger: "blur" } { required: true, message: this.$t('business.agent.userInfoAgent.rule.operateAddrRequired'), trigger: "blur" }
], ],
} }
}; };
@ -231,7 +231,7 @@ export default {
handleAdd() { handleAdd() {
this.reset(); this.reset();
this.open = true; this.open = true;
this.title = "添加代理商信息"; this.title = this.$t('business.agent.userInfoAgent.addTitle');
}, },
/** 修改按钮操作 */ /** 修改按钮操作 */
handleUpdate(row) { handleUpdate(row) {
@ -242,7 +242,7 @@ export default {
this.loading = false; this.loading = false;
this.form = response.data; this.form = response.data;
this.open = true; this.open = true;
this.title = "修改代理商信息"; this.title = this.$t('business.agent.userInfoAgent.editTitle');
}); });
}, },
/** 提交按钮 */ /** 提交按钮 */
@ -252,7 +252,7 @@ export default {
this.buttonLoading = true; this.buttonLoading = true;
if (this.form.id != null) { if (this.form.id != null) {
updateUserInfoAgent(this.form).then(response => { updateUserInfoAgent(this.form).then(response => {
this.$modal.msgSuccess("修改成功"); this.$modal.msgSuccess(this.$t('business.agent.userInfoAgent.editSuccess'));
this.open = false; this.open = false;
this.getList(); this.getList();
}).finally(() => { }).finally(() => {
@ -260,7 +260,7 @@ export default {
}); });
} else { } else {
addUserInfoAgent(this.form).then(response => { addUserInfoAgent(this.form).then(response => {
this.$modal.msgSuccess("新增成功"); this.$modal.msgSuccess(this.$t('business.agent.userInfoAgent.addSuccess'));
this.open = false; this.open = false;
this.getList(); this.getList();
}).finally(() => { }).finally(() => {
@ -273,13 +273,13 @@ export default {
/** 删除按钮操作 */ /** 删除按钮操作 */
handleDelete(row) { handleDelete(row) {
const ids = row.id || this.ids; const ids = row.id || this.ids;
this.$modal.confirm('是否确认删除代理商信息编号为"' + ids + '"的数据项?').then(() => { this.$modal.confirm(this.$t('business.agent.userInfoAgent.deleteConfirm', { ids: ids })).then(() => {
this.loading = true; this.loading = true;
return delUserInfoAgent(ids); return delUserInfoAgent(ids);
}).then(() => { }).then(() => {
this.loading = false; this.loading = false;
this.getList(); this.getList();
this.$modal.msgSuccess("删除成功"); this.$modal.msgSuccess(this.$t('business.agent.userInfoAgent.deleteSuccess'));
}).catch(() => { }).catch(() => {
}).finally(() => { }).finally(() => {
this.loading = false; this.loading = false;

206
src/views/business/userRegister/indexAgent.vue

@ -1,24 +1,24 @@
<template> <template>
<div class="app-container"> <div class="app-container">
<el-form :model="queryParams" ref="queryForm" size="small" :inline="true" v-show="showSearch" label-width="68px"> <el-form :model="queryParams" ref="queryForm" size="small" :inline="true" v-show="showSearch" label-width="68px">
<el-form-item label="登录账号" prop="account"> <el-form-item :label="$t('business.agent.agentRegister.account')" prop="account">
<el-input <el-input
v-model="queryParams.account" v-model="queryParams.account"
placeholder="请输入登录账号" :placeholder="$t('business.agent.agentRegister.placeholder.account')"
clearable clearable
@keyup.enter.native="handleQuery" @keyup.enter.native="handleQuery"
/> />
</el-form-item> </el-form-item>
<el-form-item label="电话" prop="phone"> <el-form-item :label="$t('business.agent.agentRegister.phone')" prop="phone">
<el-input <el-input
v-model="queryParams.phone" v-model="queryParams.phone"
placeholder="请输入电话" :placeholder="$t('business.agent.agentRegister.placeholder.phone')"
clearable clearable
@keyup.enter.native="handleQuery" @keyup.enter.native="handleQuery"
/> />
</el-form-item> </el-form-item>
<el-form-item label="用户级别" prop="userLevel"> <el-form-item :label="$t('business.agent.agentRegister.userLevel')" prop="userLevel">
<el-select v-model="queryParams.userLevel" size="medium" placeholder="请选择用户级别" > <el-select v-model="queryParams.userLevel" size="medium" :placeholder="$t('business.agent.agentRegister.placeholder.userLevel')" >
<el-option <el-option
v-for="item in options_userLevel" v-for="item in options_userLevel"
:key="item.value" :key="item.value"
@ -28,8 +28,8 @@
</el-select> </el-select>
</el-form-item> </el-form-item>
<el-form-item> <el-form-item>
<el-button type="primary" icon="el-icon-search" size="mini" @click="handleQuery">搜索</el-button> <el-button type="primary" icon="el-icon-search" size="mini" @click="handleQuery">{{ $t('common.button.search') }}</el-button>
<el-button icon="el-icon-refresh" size="mini" @click="resetQuery">重置</el-button> <el-button icon="el-icon-refresh" size="mini" @click="resetQuery">{{ $t('common.button.reset') }}</el-button>
</el-form-item> </el-form-item>
</el-form> </el-form>
@ -42,7 +42,7 @@
size="mini" size="mini"
@click="handleAdd" @click="handleAdd"
v-hasPermi="['business:userRegister:add']" v-hasPermi="['business:userRegister:add']"
>新增</el-button> >{{ $t('common.button.add') }}</el-button>
</el-col> </el-col>
<el-col :span="1.5"> <el-col :span="1.5">
<el-button <el-button
@ -53,7 +53,7 @@
:disabled="single" :disabled="single"
@click="handleUpdate" @click="handleUpdate"
v-hasPermi="['business:userRegister:edit']" v-hasPermi="['business:userRegister:edit']"
>修改</el-button> >{{ $t('common.button.edit') }}</el-button>
</el-col> </el-col>
<el-col :span="1.5"> <el-col :span="1.5">
<el-button <el-button
@ -64,7 +64,7 @@
:disabled="multiple" :disabled="multiple"
@click="handleDelete" @click="handleDelete"
v-hasPermi="['business:userRegister:remove']" v-hasPermi="['business:userRegister:remove']"
>删除</el-button> >{{ $t('common.button.delete') }}</el-button>
</el-col> </el-col>
<el-col :span="1.5"> <el-col :span="1.5">
<el-button <el-button
@ -74,63 +74,63 @@
size="mini" size="mini"
@click="handleExport" @click="handleExport"
v-hasPermi="['business:userRegister:export']" v-hasPermi="['business:userRegister:export']"
>导出</el-button> >{{ $t('common.button.export') }}</el-button>
</el-col> </el-col>
<right-toolbar :showSearch.sync="showSearch" @queryTable="getList"></right-toolbar> <right-toolbar :showSearch.sync="showSearch" @queryTable="getList"></right-toolbar>
</el-row> </el-row>
<el-table v-loading="loading" :data="userRegisterList" @selection-change="handleSelectionChange"> <el-table v-loading="loading" :data="userRegisterList" @selection-change="handleSelectionChange">
<el-table-column type="selection" width="55" align="center" /> <el-table-column type="selection" width="55" align="center" />
<el-table-column label="登录账号" align="center" prop="account" /> <el-table-column :label="$t('business.agent.agentRegister.account')" align="center" prop="account" />
<el-table-column label="代理商名称" align="center" prop="agentName" /> <el-table-column :label="$t('business.agent.agentRegister.agentName')" align="center" prop="agentName" />
<el-table-column label="用户状态" align="center" prop="status" > <el-table-column :label="$t('business.agent.agentRegister.status')" align="center" prop="status" >
<template slot-scope="scope"> <template slot-scope="scope">
<el-tag type="primary" v-if="scope.row.status == '0'">发起</el-tag> <el-tag type="primary" v-if="scope.row.status == '0'">{{ $t('business.agent.agentRegister.statusOption.initiated') }}</el-tag>
<el-tag type="warning" v-if="scope.row.status == '1'">拒绝</el-tag> <el-tag type="warning" v-if="scope.row.status == '1'">{{ $t('business.agent.agentRegister.statusOption.rejected') }}</el-tag>
<el-tag type="success" v-if="scope.row.status == '2'">通过</el-tag> <el-tag type="success" v-if="scope.row.status == '2'">{{ $t('business.agent.agentRegister.statusOption.passed') }}</el-tag>
<el-tag type="danger" v-if="scope.row.status == '3'">冻结</el-tag> <el-tag type="danger" v-if="scope.row.status == '3'">{{ $t('business.agent.agentRegister.statusOption.frozen') }}</el-tag>
</template> </template>
</el-table-column> </el-table-column>
<el-table-column label="用户类型" align="center" prop="userType" > <el-table-column :label="$t('business.agent.agentRegister.userType')" align="center" prop="userType" >
<template slot-scope="scope"> <template slot-scope="scope">
<el-tag type="success" v-if="scope.row.userType == '0'">普通用户</el-tag> <el-tag type="success" v-if="scope.row.userType == '0'">{{ $t('business.agent.agentRegister.userTypeOption.normal') }}</el-tag>
<el-tag type="warning" v-if="scope.row.userType == '1'">商企用户</el-tag> <el-tag type="warning" v-if="scope.row.userType == '1'">{{ $t('business.agent.agentRegister.userTypeOption.business') }}</el-tag>
<el-tag type="warning" v-if="scope.row.userType == '2'">代理用户</el-tag> <el-tag type="warning" v-if="scope.row.userType == '2'">{{ $t('business.agent.agentRegister.userTypeOption.agent') }}</el-tag>
</template> </template>
</el-table-column> </el-table-column>
<el-table-column label="用户级别" align="center" prop="userLevel" > <el-table-column :label="$t('business.agent.agentRegister.userLevel')" align="center" prop="userLevel" >
<template slot-scope="scope"> <template slot-scope="scope">
<span v-if="scope.row.userLevel == '0'">普通用户</span> <span v-if="scope.row.userLevel == '0'">{{ $t('business.agent.agentRegister.userLevelOption.normal') }}</span>
<span v-if="scope.row.userLevel == '1'">VIP用户</span> <span v-if="scope.row.userLevel == '1'">{{ $t('business.agent.agentRegister.userLevelOption.vip') }}</span>
<span v-if="scope.row.userLevel == '2'">商企用户</span> <span v-if="scope.row.userLevel == '2'">{{ $t('business.agent.agentRegister.userLevelOption.business') }}</span>
</template> </template>
</el-table-column> </el-table-column>
<el-table-column label="联系电话" align="center" prop="phone" /> <el-table-column :label="$t('business.agent.agentRegister.phone')" align="center" prop="phone" />
<el-table-column label="联系地址" align="center" prop="contactAddress" /> <el-table-column :label="$t('business.agent.agentRegister.contactAddress')" align="center" prop="contactAddress" />
<el-table-column label="操作" align="center" width="200" class-name="small-padding fixed-width"> <el-table-column :label="$t('common.tableMsg.operation')" align="center" width="200" class-name="small-padding fixed-width">
<template slot-scope="scope"> <template slot-scope="scope">
<el-button v-if="(scope.row.agentName == null)" <el-button v-if="(scope.row.agentName == null)"
size="mini" size="mini"
type="text" type="text"
icon="el-icon-document-add" icon="el-icon-document-add"
@click="handleAddInfo(scope.row)" @click="handleAddInfo(scope.row)"
>补充</el-button> >{{ $t('business.agent.agentRegister.button.supplement') }}</el-button>
<el-button v-if="(scope.row.agentName != null)" <el-button v-if="(scope.row.agentName != null)"
size="mini" size="mini"
type="text" type="text"
icon="el-icon-view" icon="el-icon-view"
@click="handleDetail(scope.row)" @click="handleDetail(scope.row)"
>详情</el-button> >{{ $t('common.button.detail') }}</el-button>
<el-button <el-button
size="mini" size="mini"
type="text" type="text"
icon="el-icon-edit" icon="el-icon-edit"
@click="handleUpdate(scope.row)" @click="handleUpdate(scope.row)"
v-hasPermi="['business:userRegister:edit']" v-hasPermi="['business:userRegister:edit']"
>修改</el-button> >{{ $t('common.button.modify') }}</el-button>
<el-dropdown> <el-dropdown>
<span class="el-dropdown-link"> <span class="el-dropdown-link">
更多<i class="el-icon-arrow-down el-icon--right"></i> {{ $t('common.button.more') }}<i class="el-icon-arrow-down el-icon--right"></i>
</span> </span>
<el-dropdown-menu slot="dropdown"> <el-dropdown-menu slot="dropdown">
<el-dropdown-item> <el-dropdown-item>
@ -140,7 +140,7 @@
icon="el-icon-refresh" icon="el-icon-refresh"
@click="passwordReset(scope.row)" @click="passwordReset(scope.row)"
v-hasPermi="['business:userRegister:edit']" v-hasPermi="['business:userRegister:edit']"
>密码重置</el-button> >{{ $t('business.agent.agentRegister.button.passwordReset') }}</el-button>
</el-dropdown-item> </el-dropdown-item>
<el-dropdown-item> <el-dropdown-item>
<el-button v-if="(scope.row.status != '3')" <el-button v-if="(scope.row.status != '3')"
@ -149,14 +149,14 @@
icon="el-icon-lock" icon="el-icon-lock"
@click="accountLock(scope.row)" @click="accountLock(scope.row)"
v-hasPermi="['business:userRegister:edit']" v-hasPermi="['business:userRegister:edit']"
>账号冻结</el-button> >{{ $t('business.agent.agentRegister.button.accountLock') }}</el-button>
<el-button v-if="(scope.row.status == '3')" <el-button v-if="(scope.row.status == '3')"
size="mini" size="mini"
type="text" type="text"
icon="el-icon-unlock" icon="el-icon-unlock"
@click="accountUnlock(scope.row)" @click="accountUnlock(scope.row)"
v-hasPermi="['business:userRegister:edit']" v-hasPermi="['business:userRegister:edit']"
>账号解冻</el-button> >{{ $t('business.agent.agentRegister.button.accountUnlock') }}</el-button>
</el-dropdown-item> </el-dropdown-item>
<el-dropdown-item> <el-dropdown-item>
<el-button <el-button
@ -165,7 +165,7 @@
icon="el-icon-delete" icon="el-icon-delete"
@click="handleDelete(scope.row)" @click="handleDelete(scope.row)"
v-hasPermi="['business:userRegister:remove']" v-hasPermi="['business:userRegister:remove']"
>删除</el-button> >{{ $t('common.button.delete') }}</el-button>
</el-dropdown-item> </el-dropdown-item>
</el-dropdown-menu> </el-dropdown-menu>
</el-dropdown> </el-dropdown>
@ -184,14 +184,14 @@
<!-- 添加或修改用户注册对话框 --> <!-- 添加或修改用户注册对话框 -->
<el-dialog :title="title" :visible.sync="open" width="700px" append-to-body> <el-dialog :title="title" :visible.sync="open" width="700px" append-to-body>
<el-form ref="form" :model="form" :rules="rules" label-width="auto"> <el-form ref="form" :model="form" :rules="rules" label-width="auto">
<el-form-item label="登录账号" prop="account"> <el-form-item :label="$t('business.agent.agentRegister.account')" prop="account">
<el-input v-model="form.account" placeholder="请输入名字" /> <el-input v-model="form.account" :placeholder="$t('business.agent.agentRegister.placeholder.name')" />
</el-form-item> </el-form-item>
<el-form-item label="联系电话" prop="phone"> <el-form-item :label="$t('business.agent.agentRegister.phone')" prop="phone">
<el-input v-model="form.phone" placeholder="请输入电话" /> <el-input v-model="form.phone" :placeholder="$t('business.agent.agentRegister.placeholder.phone')" />
</el-form-item> </el-form-item>
<el-form-item label="用户类型" prop="userType"> <el-form-item :label="$t('business.agent.agentRegister.userType')" prop="userType">
<el-select v-model="form.userType" placeholder="请选择用户类型" > <el-select v-model="form.userType" :placeholder="$t('business.agent.agentRegister.placeholder.userType')" >
<el-option <el-option
v-for="item in options_userType" v-for="item in options_userType"
:key="item.value" :key="item.value"
@ -200,8 +200,8 @@
</el-option> </el-option>
</el-select> </el-select>
</el-form-item> </el-form-item>
<el-form-item label="用户级别" prop="userLevel"> <el-form-item :label="$t('business.agent.agentRegister.userLevel')" prop="userLevel">
<el-select v-model="form.userLevel" size="medium" placeholder="请选择用户级别" > <el-select v-model="form.userLevel" size="medium" :placeholder="$t('business.agent.agentRegister.placeholder.userLevel')" >
<el-option <el-option
v-for="item in options_userLevel" v-for="item in options_userLevel"
:key="item.value" :key="item.value"
@ -212,28 +212,28 @@
</el-form-item> </el-form-item>
</el-form> </el-form>
<div slot="footer" class="dialog-footer"> <div slot="footer" class="dialog-footer">
<el-button :loading="buttonLoading" type="primary" @click="submitForm"> </el-button> <el-button :loading="buttonLoading" type="primary" @click="submitForm">{{ $t('common.button.confirm') }}</el-button>
<el-button @click="cancel"> </el-button> <el-button @click="cancel">{{ $t('common.button.cancel') }}</el-button>
</div> </div>
</el-dialog> </el-dialog>
<!-- 添加或修改用户信息-商户扩展对话框 --> <!-- 添加或修改用户信息-商户扩展对话框 -->
<el-dialog :title="title" :visible.sync="openInfoAgent" width="700px" append-to-body> <el-dialog :title="title" :visible.sync="openInfoAgent" width="700px" append-to-body>
<el-form ref="formInfoAgent" :model="formInfoAgent" :rules="rules" label-width="auto"> <el-form ref="formInfoAgent" :model="formInfoAgent" :rules="rules" label-width="auto">
<el-form-item label="代理商名称" prop="agentName"> <el-form-item :label="$t('business.agent.agentRegister.agentName')" prop="agentName">
<el-input v-model="formInfoAgent.agentName" placeholder="请输入代理商名称" /> <el-input v-model="formInfoAgent.agentName" :placeholder="$t('business.agent.agentRegister.placeholder.agentName')" />
</el-form-item> </el-form-item>
<el-form-item label="营业执照" prop="license"> <el-form-item :label="$t('business.agent.agentRegister.license')" prop="license">
<el-input v-model="formInfoAgent.license" placeholder="请输入营业执照" /> <el-input v-model="formInfoAgent.license" :placeholder="$t('business.agent.agentRegister.placeholder.license')" />
</el-form-item> </el-form-item>
<el-form-item label="其它证照信息" prop="licenseOther"> <el-form-item :label="$t('business.agent.agentRegister.licenseOther')" prop="licenseOther">
<el-input v-model="formInfoAgent.licenseOther" placeholder="请输入其它证照信息" /> <el-input v-model="formInfoAgent.licenseOther" :placeholder="$t('business.agent.agentRegister.placeholder.licenseOther')" />
</el-form-item> </el-form-item>
<el-form-item label="法人姓名" prop="legalPerson"> <el-form-item :label="$t('business.agent.agentRegister.legalPerson')" prop="legalPerson">
<el-input v-model="formInfoAgent.legalPerson" placeholder="请输入法人姓名" /> <el-input v-model="formInfoAgent.legalPerson" :placeholder="$t('business.agent.agentRegister.placeholder.legalPerson')" />
</el-form-item> </el-form-item>
<el-form-item label="营业状态" prop="operateStatus"> <el-form-item :label="$t('business.agent.agentRegister.operateStatus')" prop="operateStatus">
<el-select v-model="formInfoAgent.operateStatus" placeholder="请选择营业状态" > <el-select v-model="formInfoAgent.operateStatus" :placeholder="$t('business.agent.agentRegister.placeholder.operateStatus')" >
<el-option <el-option
v-for="item in options_operateStatus" v-for="item in options_operateStatus"
:key="item.value" :key="item.value"
@ -242,49 +242,49 @@
</el-option> </el-option>
</el-select> </el-select>
</el-form-item> </el-form-item>
<el-form-item label="经营地址" prop="operateAddr"> <el-form-item :label="$t('business.agent.agentRegister.operateAddr')" prop="operateAddr">
<el-input v-model="formInfoAgent.operateAddr" placeholder="请输入经营地址" /> <el-input v-model="formInfoAgent.operateAddr" :placeholder="$t('business.agent.agentRegister.placeholder.operateAddr')" />
</el-form-item> </el-form-item>
<el-form-item label="联系地址" prop="contactAddress"> <el-form-item :label="$t('business.agent.agentRegister.contactAddress')" prop="contactAddress">
<el-input v-model="formInfoAgent.contactAddress" placeholder="请输入经营地址" /> <el-input v-model="formInfoAgent.contactAddress" :placeholder="$t('business.agent.agentRegister.placeholder.contactAddress')" />
</el-form-item> </el-form-item>
</el-form> </el-form>
<div slot="footer" class="dialog-footer"> <div slot="footer" class="dialog-footer">
<el-button :loading="buttonLoading" type="primary" @click="submitFormInfoAgent"> </el-button> <el-button :loading="buttonLoading" type="primary" @click="submitFormInfoAgent">{{ $t('common.button.confirm') }}</el-button>
<el-button @click="cancel"> </el-button> <el-button @click="cancel">{{ $t('common.button.cancel') }}</el-button>
</div> </div>
</el-dialog> </el-dialog>
<!-- 用户注册详情-代理商--> <!-- 用户注册详情-代理商-->
<el-dialog :title="title" :visible.sync="detailOpenAgent" width="700px" append-to-body> <el-dialog :title="title" :visible.sync="detailOpenAgent" width="700px" append-to-body>
<el-form ref="formDetailAgent" :model="formDetailAgent" label-width="auto"> <el-form ref="formDetailAgent" :model="formDetailAgent" label-width="auto">
<el-form-item label="登录账号:"> <el-form-item :label="$t('business.agent.agentRegister.account') + ':'">
{{formDetailAgent.account}} {{formDetailAgent.account}}
</el-form-item> </el-form-item>
<el-form-item label="商企名称:"> <el-form-item :label="$t('business.agent.agentRegister.agentName') + ':'">
{{formDetailAgent.userInfoAgentVo.agentName}} {{formDetailAgent.userInfoAgentVo.agentName}}
</el-form-item> </el-form-item>
<el-form-item label="营业执照:"> <el-form-item :label="$t('business.agent.agentRegister.license') + ':'">
{{formDetailAgent.userInfoAgentVo.license}} {{formDetailAgent.userInfoAgentVo.license}}
</el-form-item> </el-form-item>
<el-form-item label="其它证照:"> <el-form-item :label="$t('business.agent.agentRegister.licenseOther') + ':'">
{{formDetailAgent.userInfoAgentVo.licenseOther}} {{formDetailAgent.userInfoAgentVo.licenseOther}}
</el-form-item> </el-form-item>
<el-form-item label="法人姓名:"> <el-form-item :label="$t('business.agent.agentRegister.legalPerson') + ':'">
{{formDetailAgent.userInfoAgentVo.legalPerson}} {{formDetailAgent.userInfoAgentVo.legalPerson}}
</el-form-item> </el-form-item>
<el-form-item label="营业状态:"> <el-form-item :label="$t('business.agent.agentRegister.operateStatus') + ':'">
{{formDetailAgent.userInfoAgentVo.operateStatus}} {{formDetailAgent.userInfoAgentVo.operateStatus}}
</el-form-item> </el-form-item>
<el-form-item label="经营地址:"> <el-form-item :label="$t('business.agent.agentRegister.operateAddr') + ':'">
{{formDetailAgent.userInfoAgentVo.operateAddr}} {{formDetailAgent.userInfoAgentVo.operateAddr}}
</el-form-item> </el-form-item>
<el-form-item label="联系地址:"> <el-form-item :label="$t('business.agent.agentRegister.contactAddress') + ':'">
{{formDetailAgent.userInfoAgentVo.contactAddress}} {{formDetailAgent.userInfoAgentVo.contactAddress}}
</el-form-item> </el-form-item>
</el-form> </el-form>
<div slot="footer" class="dialog-footer"> <div slot="footer" class="dialog-footer">
<el-button @click="cancel"> </el-button> <el-button @click="cancel">{{ $t('common.button.close') }}</el-button>
</div> </div>
</el-dialog> </el-dialog>
</div> </div>
@ -336,10 +336,10 @@ export default {
openInfoBus: false, openInfoBus: false,
options_operateStatus: [{ options_operateStatus: [{
value: '存续', value: '存续',
label: '存续' label: this.$t('business.agent.agentRegister.operateStatusOption.continued')
}, { }, {
value: '注销', value: '注销',
label: '注销' label: this.$t('business.agent.agentRegister.operateStatusOption.cancelled')
}], }],
// //
queryParams: { queryParams: {
@ -367,46 +367,46 @@ export default {
// //
rules: { rules: {
legalPerson: [ legalPerson: [
{ required: true, message: "法人姓名不能为空", trigger: "blur" } { required: true, message: this.$t('business.agent.agentRegister.rule.legalPersonRequired'), trigger: "blur" }
], ],
operateStatus: [ operateStatus: [
{ required: true, message: "经营状态不能为空", trigger: "change" } { required: true, message: this.$t('business.agent.agentRegister.rule.operateStatusRequired'), trigger: "change" }
], ],
operateAddr: [ operateAddr: [
{ required: true, message: "经营地址不能为空", trigger: "blur" } { required: true, message: this.$t('business.agent.agentRegister.rule.operateAddrRequired'), trigger: "blur" }
], ],
agentName: [ agentName: [
{ required: true, message: "代理商名称不能为空", trigger: "blur" } { required: true, message: this.$t('business.agent.agentRegister.rule.agentNameRequired'), trigger: "blur" }
], ],
idCard: [ idCard: [
{ required: true,pattern: /^\d+$/, message: "身份证号只能为数字", trigger: "blur" } { required: true,pattern: /^\d+$/, message: this.$t('business.agent.agentRegister.rule.idCardInvalid'), trigger: "blur" }
], ],
phone: [ phone: [
{ required: true,pattern: /^\d+$/, message: "手机号码只能为数字", trigger: "blur"} { required: true,pattern: /^\d+$/, message: this.$t('business.agent.agentRegister.rule.phoneInvalid'), trigger: "blur"}
], ],
age: [ age: [
{ required: true,pattern: /^\d+$/, message: "年龄只能为数字", trigger: "blur"} { required: true,pattern: /^\d+$/, message: this.$t('business.agent.agentRegister.rule.ageInvalid'), trigger: "blur"}
], ],
contactAddress: [ contactAddress: [
{ required: true, message: "联系地址不能为空", trigger: "blur" } { required: true, message: this.$t('business.agent.agentRegister.rule.contactAddressRequired'), trigger: "blur" }
], ],
merchantName: [ merchantName: [
{ required: true, message: "商企名称不能为空", trigger: "blur" } { required: true, message: this.$t('business.agent.agentRegister.rule.merchantNameRequired'), trigger: "blur" }
], ],
}, },
options_userType: [{ options_userType: [{
value: '2', value: '2',
label: '代理用户' label: this.$t('business.agent.agentRegister.userTypeOption.agent')
}], }],
options_userLevel: [{ options_userLevel: [{
value: '0', value: '0',
label: '普通用户' label: this.$t('business.agent.agentRegister.userLevelOption.normal')
}, { }, {
value: '1', value: '1',
label: 'VIP用户' label: this.$t('business.agent.agentRegister.userLevelOption.vip')
}, { }, {
value: '2', value: '2',
label: '商企用户' label: this.$t('business.agent.agentRegister.userLevelOption.business')
}] }]
}; };
}, },
@ -468,7 +468,7 @@ export default {
handleAdd() { handleAdd() {
this.reset(); this.reset();
this.open = true; this.open = true;
this.title = "添加用户注册"; this.title = this.$t('business.agent.agentRegister.addTitle');
}, },
/** 详情按钮操作 */ /** 详情按钮操作 */
handleDetail(row){ handleDetail(row){
@ -479,7 +479,7 @@ export default {
this.loading = false; this.loading = false;
this.formDetailAgent = response.data; this.formDetailAgent = response.data;
this.detailOpenAgent = true; this.detailOpenAgent = true;
this.title = "代理商详情信息"; this.title = this.$t('business.agent.agentRegister.detailTitle');
}); });
}, },
/** 修改按钮操作 */ /** 修改按钮操作 */
@ -491,7 +491,7 @@ export default {
this.loading = false; this.loading = false;
this.form = response.data; this.form = response.data;
this.open = true; this.open = true;
this.title = "修改用户注册"; this.title = this.$t('business.agent.agentRegister.editTitle');
}); });
}, },
/** 提交按钮 */ /** 提交按钮 */
@ -501,7 +501,7 @@ export default {
this.buttonLoading = true; this.buttonLoading = true;
if (this.form.id != null) { if (this.form.id != null) {
updateUserRegister(this.form).then(response => { updateUserRegister(this.form).then(response => {
this.$modal.msgSuccess("修改成功"); this.$modal.msgSuccess(this.$t('business.agent.agentRegister.editSuccess'));
this.open = false; this.open = false;
this.getList(); this.getList();
}).finally(() => { }).finally(() => {
@ -509,7 +509,7 @@ export default {
}); });
} else { } else {
addUserRegister(this.form).then(response => { addUserRegister(this.form).then(response => {
this.$modal.msgSuccess("新增成功"); this.$modal.msgSuccess(this.$t('business.agent.agentRegister.addSuccess'));
this.open = false; this.open = false;
this.getList(); this.getList();
}).finally(() => { }).finally(() => {
@ -539,16 +539,16 @@ export default {
const ids = row.id || this.ids; const ids = row.id || this.ids;
var msg = ""; var msg = "";
if(null != account) if(null != account)
msg = '是否确认删除登录账号为"' + account + '"的数据项?'; msg = this.$t('business.agent.agentRegister.deleteConfirmSingle', { account: account });
else else
msg = "是否要批量删除?"; msg = this.$t('business.agent.agentRegister.deleteConfirmBatch');
this.$modal.confirm(msg).then(() => { this.$modal.confirm(msg).then(() => {
this.loading = true; this.loading = true;
return delUserRegister(ids); return delUserRegister(ids);
}).then(() => { }).then(() => {
this.loading = false; this.loading = false;
this.getList(); this.getList();
this.$modal.msgSuccess("删除成功"); this.$modal.msgSuccess(this.$t('business.agent.agentRegister.deleteSuccess'));
}).catch(() => { }).catch(() => {
}).finally(() => { }).finally(() => {
this.loading = false; this.loading = false;
@ -564,7 +564,7 @@ export default {
this.reset(); this.reset();
this.formInfoAgent = row; this.formInfoAgent = row;
this.openInfoAgent = true; this.openInfoAgent = true;
this.title = "代理商信息补充"; this.title = this.$t('business.agent.agentRegister.supplementTitle');
}, },
/** /**
@ -572,13 +572,13 @@ export default {
* @param row * @param row
*/ */
passwordReset(row) { passwordReset(row) {
this.$modal.confirm('是否确认重置登录密码?').then(() => { this.$modal.confirm(this.$t('business.agent.agentRegister.passwordResetConfirm')).then(() => {
this.loading = true; this.loading = true;
return resetUserPassword(row.id); return resetUserPassword(row.id);
}).then(() => { }).then(() => {
this.loading = false; this.loading = false;
this.getList(); this.getList();
this.$modal.msgSuccess("重置成功"); this.$modal.msgSuccess(this.$t('business.agent.agentRegister.passwordResetSuccess'));
}).catch(() => { }).catch(() => {
}).finally(() => { }).finally(() => {
this.loading = false; this.loading = false;
@ -590,13 +590,13 @@ export default {
* @param row * @param row
*/ */
accountLock(row) { accountLock(row) {
this.$modal.confirm('是否确认对账号"' + row.account + '"进行冻结?').then(() => { this.$modal.confirm(this.$t('business.agent.agentRegister.accountLockConfirm', { account: row.account })).then(() => {
this.loading = true; this.loading = true;
return accountLock(row); return accountLock(row);
}).then(() => { }).then(() => {
this.loading = false; this.loading = false;
this.getList(); this.getList();
this.$modal.msgSuccess("冻结成功"); this.$modal.msgSuccess(this.$t('business.agent.agentRegister.accountLockSuccess'));
}).catch(() => { }).catch(() => {
}).finally(() => { }).finally(() => {
this.loading = false; this.loading = false;
@ -607,13 +607,13 @@ export default {
* @param row * @param row
*/ */
accountUnlock(row) { accountUnlock(row) {
this.$modal.confirm('是否确认解除账号"' + row.account + '"的冻结?').then(() => { this.$modal.confirm(this.$t('business.agent.agentRegister.accountUnlockConfirm', { account: row.account })).then(() => {
this.loading = true; this.loading = true;
return accountLock(row); return accountLock(row);
}).then(() => { }).then(() => {
this.loading = false; this.loading = false;
this.getList(); this.getList();
this.$modal.msgSuccess("解除冻结成功"); this.$modal.msgSuccess(this.$t('business.agent.agentRegister.accountUnlockSuccess'));
}).catch(() => { }).catch(() => {
}).finally(() => { }).finally(() => {
this.loading = false; this.loading = false;

Loading…
Cancel
Save