Browse Source

信用、补充信息、公共国际化提交

main
GhubCy 1 month ago
parent
commit
b8adc7378e
  1. 811
      src/languages/en.js
  2. 1026
      src/languages/zh.js
  3. 8
      src/views/business/creditRule/index.vue
  4. 7
      src/views/business/dealPayment/index.vue
  5. 6
      src/views/business/dealProxy/index.vue
  6. 5
      src/views/business/dealReceipt/index.vue
  7. 6
      src/views/business/dealRecharge/index.vue
  8. 6
      src/views/business/dealTransfer/index.vue
  9. 6
      src/views/business/dealWithdrawal/index.vue
  10. 87
      src/views/business/userAccount/index.vue
  11. 82
      src/views/business/userCredit/index.vue
  12. 91
      src/views/business/userCreditRecord/index.vue
  13. 2
      src/views/business/userRegister/index.vue
  14. 257
      src/views/business/userRegister/indexBus.vue
  15. 30
      src/views/business/userVerification/index.vue

811
src/languages/en.js

File diff suppressed because it is too large

1026
src/languages/zh.js

File diff suppressed because it is too large

8
src/views/business/creditRule/index.vue

@ -57,7 +57,7 @@
</el-form-item> </el-form-item>
<el-form-item :label="$t('business.credit.creditRule.feedbackDirection')" prop="feedbackDirection"> <el-form-item :label="$t('business.credit.creditRule.feedbackDirection')" prop="feedbackDirection">
<el-select v-model="queryParams.feedbackDirection" :placeholder="$t('business.credit.creditRule.placeholder.feedbackDirection')" clearable> <el-select v-model="queryParams.feedbackDirection" :placeholder="$t('business.credit.creditRule.placeholder.feedbackDirection')" clearable>
<el-option :label="$t('business.credit.creditRule.placeholder.priority')" value="1"/> <el-option :label="$t('business.credit.creditRule.placeholder.positive')" value="1"/>
<el-option :label="$t('business.credit.creditRule.placeholder.negative')" value="0"/> <el-option :label="$t('business.credit.creditRule.placeholder.negative')" value="0"/>
</el-select> </el-select>
</el-form-item> </el-form-item>
@ -144,7 +144,7 @@
<el-table-column :label="$t('business.credit.creditRule.type')" align="center" prop="type"/> <el-table-column :label="$t('business.credit.creditRule.type')" align="center" prop="type"/>
<el-table-column :label="$t('business.credit.creditRule.feedbackDirection')" align="center" prop="feedbackDirection"> <el-table-column :label="$t('business.credit.creditRule.feedbackDirection')" align="center" prop="feedbackDirection">
<template slot-scope="scope"> <template slot-scope="scope">
<span>{{ scope.row.feedbackDirection === 1 ? $t('business.credit.creditRule.placeholder.priority') : $t('business.credit.creditRule.placeholder.negative') }}</span> <span>{{ scope.row.feedbackDirection === 1 ? $t('business.credit.creditRule.placeholder.positive') : $t('business.credit.creditRule.placeholder.negative') }}</span>
</template> </template>
</el-table-column> </el-table-column>
<el-table-column :label="$t('business.credit.creditRule.value')" align="center" prop="value"/> <el-table-column :label="$t('business.credit.creditRule.value')" align="center" prop="value"/>
@ -218,7 +218,7 @@
<el-col :span="12"> <el-col :span="12">
<el-form-item :label="$t('business.credit.creditRule.feedbackDirection')" prop="feedbackDirection"> <el-form-item :label="$t('business.credit.creditRule.feedbackDirection')" prop="feedbackDirection">
<el-radio-group v-model="form.feedbackDirection"> <el-radio-group v-model="form.feedbackDirection">
<el-radio label="1">{{ $t('business.credit.creditRule.placeholder.priority') }}</el-radio> <el-radio label="1">{{ $t('business.credit.creditRule.placeholder.positive') }}</el-radio>
<el-radio label="0">{{ $t('business.credit.creditRule.placeholder.negative') }}</el-radio> <el-radio label="0">{{ $t('business.credit.creditRule.placeholder.negative') }}</el-radio>
</el-radio-group> </el-radio-group>
</el-form-item> </el-form-item>
@ -281,7 +281,7 @@
{{ form.scene }} {{ form.scene }}
</el-form-item> </el-form-item>
<el-form-item :label="$t('business.credit.creditRule.feedbackDirection') + ':'"> <el-form-item :label="$t('business.credit.creditRule.feedbackDirection') + ':'">
{{ form.feedbackDirection === 1 ? $t('business.credit.creditRule.positive') : $t('business.credit.creditRule.negative') }} {{ form.feedbackDirection === 1 ? $t('business.credit.creditRule.placeholder.positive') : $t('business.credit.creditRule.placeholder.negative') }}
</el-form-item> </el-form-item>
<el-form-item :label="$t('business.credit.creditRule.value') + ':'"> <el-form-item :label="$t('business.credit.creditRule.value') + ':'">
{{ form.value }} {{ form.value }}

7
src/views/business/dealPayment/index.vue

@ -86,7 +86,10 @@
<el-table-column label="账单编号" align="center" prop="billCode"/> <el-table-column label="账单编号" align="center" prop="billCode"/>
<el-table-column label="二维码解析" align="center" prop="qrCode"/> <el-table-column label="二维码解析" align="center" prop="qrCode"/>
<el-table-column label="备注" align="center" prop="remark"/> <el-table-column label="备注" align="center" prop="remark"/>
<el-table-column label="操作" align="center" width="200" class-name="small-padding fixed-width"> <el-table-column :label="$t('common.tableMsg.createTime')" align="center" prop="createTime"/>
<el-table-column :label="$t('common.tableMsg.updateTime')" align="center" prop="updateTime"/>
<el-form-item :label="$t('common.tableMsg.remark')" prop="remark"/>
<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 size="mini" type="text" icon="el-icon-view" @click="handleDetail(scope.row)">{{ $t('common.button.detail') }}</el-button> <el-button size="mini" type="text" icon="el-icon-view" @click="handleDetail(scope.row)">{{ $t('common.button.detail') }}</el-button>
<el-button size="mini" type="text" icon="el-icon-edit" @click="handleUpdate(scope.row)" v-hasPermi="['business:dealPayment:edit']">{{ $t('common.button.edit') }}</el-button> <el-button size="mini" type="text" icon="el-icon-edit" @click="handleUpdate(scope.row)" v-hasPermi="['business:dealPayment:edit']">{{ $t('common.button.edit') }}</el-button>
@ -133,7 +136,7 @@
<el-form-item label="账单编号" prop="billCode"> <el-form-item label="账单编号" prop="billCode">
<el-input v-model="form.billCode" placeholder="请输入账单编号"/> <el-input v-model="form.billCode" placeholder="请输入账单编号"/>
</el-form-item> </el-form-item>
<el-form-item label="备注" prop="remark"> <el-form-item :label="$t('common.tableMsg.remark')" prop="remark">
<el-input v-model="form.remark" type="textarea" placeholder="请输入内容"/> <el-input v-model="form.remark" type="textarea" placeholder="请输入内容"/>
</el-form-item> </el-form-item>
</el-form> </el-form>

6
src/views/business/dealProxy/index.vue

@ -101,8 +101,10 @@
<el-table-column label="订单状态" align="center" prop="status"/> <el-table-column label="订单状态" align="center" prop="status"/>
<el-table-column label="支付渠道" align="center" prop="paymentChannel"/> <el-table-column label="支付渠道" align="center" prop="paymentChannel"/>
<el-table-column label="账单编号" align="center" prop="billCode"/> <el-table-column label="账单编号" align="center" prop="billCode"/>
<el-table-column label="备注" align="center" prop="remark"/> <el-table-column :label="$t('common.tableMsg.createTime')" align="center" prop="createTime"/>
<el-table-column label="操作" align="center" width="200" class-name="small-padding fixed-width"> <el-table-column :label="$t('common.tableMsg.updateTime')" align="center" prop="updateTime"/>
<el-form-item :label="$t('common.tableMsg.remark')" prop="remark"/>
<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"

5
src/views/business/dealReceipt/index.vue

@ -116,7 +116,10 @@
<el-table-column label="备注" align="center" prop="remark"/> <el-table-column label="备注" align="center" prop="remark"/>
<el-table-column label="账单编号" align="center" prop="billCode"/> <el-table-column label="账单编号" align="center" prop="billCode"/>
<el-table-column label="二维码解析" align="center" prop="qrCode"/> <el-table-column label="二维码解析" align="center" prop="qrCode"/>
<el-table-column label="操作" align="center" width="200" class-name="small-padding fixed-width"> <el-table-column :label="$t('common.tableMsg.createTime')" align="center" prop="createTime"/>
<el-table-column :label="$t('common.tableMsg.updateTime')" align="center" prop="updateTime"/>
<el-form-item :label="$t('common.tableMsg.remark')" prop="remark"/>
<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 size="mini" type="text" icon="el-icon-view" @click="handleDetail(scope.row)">{{ $t('common.button.detail') }}</el-button> <el-button size="mini" type="text" icon="el-icon-view" @click="handleDetail(scope.row)">{{ $t('common.button.detail') }}</el-button>
<el-button size="mini" type="text" icon="el-icon-edit" @click="handleUpdate(scope.row)" v-hasPermi="['business:dealReceipt:edit']">{{ $t('common.button.edit') }}</el-button> <el-button size="mini" type="text" icon="el-icon-edit" @click="handleUpdate(scope.row)" v-hasPermi="['business:dealReceipt:edit']">{{ $t('common.button.edit') }}</el-button>

6
src/views/business/dealRecharge/index.vue

@ -98,8 +98,10 @@
<el-table-column label="充值方式" align="center" prop="rechargeMethod"/> <el-table-column label="充值方式" align="center" prop="rechargeMethod"/>
<el-table-column label="订单状态" align="center" prop="status"/> <el-table-column label="订单状态" align="center" prop="status"/>
<el-table-column label="账单编号" align="center" prop="billCode"/> <el-table-column label="账单编号" align="center" prop="billCode"/>
<el-table-column label="备注" align="center" prop="remark"/> <<el-table-column :label="$t('common.tableMsg.createTime')" align="center" prop="createTime"/>
<el-table-column label="操作" align="center" width="200" class-name="small-padding fixed-width"> <el-table-column :label="$t('common.tableMsg.updateTime')" align="center" prop="updateTime"/>
<el-form-item :label="$t('common.tableMsg.remark')" prop="remark"/>
<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 size="mini" type="text" icon="el-icon-view" @click="handleDetail(scope.row)">{{ $t('common.button.detail') }}</el-button> <el-button size="mini" type="text" icon="el-icon-view" @click="handleDetail(scope.row)">{{ $t('common.button.detail') }}</el-button>
<el-button size="mini" type="text" icon="el-icon-edit" @click="handleUpdate(scope.row)" v-hasPermi="['business:dealRecharge:edit']">{{ $t('common.button.edit') }}</el-button> <el-button size="mini" type="text" icon="el-icon-edit" @click="handleUpdate(scope.row)" v-hasPermi="['business:dealRecharge:edit']">{{ $t('common.button.edit') }}</el-button>

6
src/views/business/dealTransfer/index.vue

@ -118,8 +118,10 @@
<el-table-column label="订单状态" align="center" prop="status"/> <el-table-column label="订单状态" align="center" prop="status"/>
<el-table-column label="支付方式" align="center" prop="paymentMethod"/> <el-table-column label="支付方式" align="center" prop="paymentMethod"/>
<el-table-column label="账单编号" align="center" prop="billCode"/> <el-table-column label="账单编号" align="center" prop="billCode"/>
<el-table-column label="备注" align="center" prop="remark"/> <el-table-column :label="$t('common.tableMsg.createTime')" align="center" prop="createTime"/>
<el-table-column label="操作" align="center" width="200" class-name="small-padding fixed-width"> <el-table-column :label="$t('common.tableMsg.updateTime')" align="center" prop="updateTime"/>
<el-form-item :label="$t('common.tableMsg.remark')" prop="remark"/>
<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"

6
src/views/business/dealWithdrawal/index.vue

@ -92,8 +92,10 @@
<el-table-column label="提现方式" align="center" prop="withdrawalMethod"/> <el-table-column label="提现方式" align="center" prop="withdrawalMethod"/>
<el-table-column label="订单状态" align="center" prop="status"/> <el-table-column label="订单状态" align="center" prop="status"/>
<el-table-column label="账单编号" align="center" prop="billCode"/> <el-table-column label="账单编号" align="center" prop="billCode"/>
<el-table-column label="备注" align="center" prop="remark"/> <el-table-column :label="$t('common.tableMsg.createTime')" align="center" prop="createTime"/>
<el-table-column label="操作" align="center" width="200" class-name="small-padding fixed-width"> <el-table-column :label="$t('common.tableMsg.updateTime')" align="center" prop="updateTime"/>
<el-form-item :label="$t('common.tableMsg.remark')" prop="remark"/>
<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"

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

@ -1,12 +1,12 @@
<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.supplementaryInfo.accountCode')" prop="accountCode"> <el-form-item :label="$t('business.supplementaryInfo.userAccount.accountCode')" prop="accountCode">
<el-input v-model="queryParams.accountCode" :placeholder="$t('business.userAccount.supplementaryInfo.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="$t('business.userAccount.supplementaryInfo.accountType')" prop="accountType"> <el-form-item :label="$t('business.supplementaryInfo.userAccount.accountType')" prop="accountType">
<el-select v-model="queryParams.accountType" size="medium" :placeholder="$t('business.userAccount.supplementaryInfo.selectAccountType')"> <el-select v-model="queryParams.accountType" size="medium" :placeholder="$t('business.supplementaryInfo.userAccount.selectAccountType')">
<el-option <el-option
v-for="item in options_accountType" v-for="item in options_accountType"
:key="item.value" :key="item.value"
@ -15,8 +15,8 @@
</el-option> </el-option>
</el-select> </el-select>
</el-form-item> </el-form-item>
<el-form-item :label="$t('business.userAccount.supplementaryInfo.accountStatus')" prop="status"> <el-form-item :label="$t('business.supplementaryInfo.userAccount.accountStatus')" prop="status">
<el-select v-model="queryParams.status" size="medium" :placeholder="$t('business.userAccount.supplementaryInfo.selectAccountStatus')"> <el-select v-model="queryParams.status" size="medium" :placeholder="$t('business.supplementaryInfo.userAccount.selectAccountStatus')">
<el-option <el-option
v-for="item in options_accountStatus" v-for="item in options_accountStatus"
:key="item.value" :key="item.value"
@ -50,38 +50,38 @@
<el-table v-loading="loading" :data="userAccountList" @selection-change="handleSelectionChange"> <el-table v-loading="loading" :data="userAccountList" @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="$t('business.userAccount.supplementaryInfo.userName')" align="center"> <el-table-column :label="$t('business.supplementaryInfo.userAccount.userName')" align="center">
<template #default="scope"> <template #default="scope">
<span v-if="scope.row.userType == 0">{{ scope.row.userInfoName }}</span> <span v-if="scope.row.userType == 0">{{ scope.row.userInfoName }}</span>
<span v-if="scope.row.userType == 1">{{ scope.row.merchantName }}</span> <span v-if="scope.row.userType == 1">{{ scope.row.merchantName }}</span>
</template> </template>
</el-table-column> </el-table-column>
<el-table-column :label="$t('business.userAccount.supplementaryInfo.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.supplementaryInfo.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.supplementaryInfo.accountAmount')" :label="$t('business.supplementaryInfo.userAccount.accountAmount')"
prop="accountAmount" prop="accountAmount"
:formatter="formatCurrency"> :formatter="formatCurrency">
</el-table-column> </el-table-column>
<el-table-column :label="$t('business.userAccount.supplementaryInfo.accountType')" align="center" prop="accountType"> <el-table-column :label="$t('business.supplementaryInfo.userAccount.accountType')" align="center" prop="accountType">
<template slot-scope="scope"> <template slot-scope="scope">
<el-tag v-if="scope.row.accountType == 0">{{ $t('business.userAccount.supplementaryInfo.accountTypeNormal') }}</el-tag> <el-tag v-if="scope.row.accountType == 0">{{ $t('business.supplementaryInfo.userAccount.accountTypeNormal') }}</el-tag>
<el-tag type="warning" v-if="scope.row.accountType == 1">{{ $t('business.userAccount.supplementaryInfo.accountTypeEnterprise') }}</el-tag> <el-tag type="warning" v-if="scope.row.accountType == 1">{{ $t('business.supplementaryInfo.userAccount.accountTypeEnterprise') }}</el-tag>
</template> </template>
</el-table-column> </el-table-column>
<el-table-column :label="$t('business.userAccount.supplementaryInfo.accountLevel')" align="center" prop="isPrimary"> <el-table-column :label="$t('business.supplementaryInfo.userAccount.accountLevel')" align="center" prop="isPrimary">
<template slot-scope="scope"> <template slot-scope="scope">
<el-tag type="warning" v-if="scope.row.isPrimary == 0">{{ $t('business.userAccount.supplementaryInfo.accountLevelPrimary') }}</el-tag> <el-tag type="warning" v-if="scope.row.isPrimary == 0">{{ $t('business.supplementaryInfo.userAccount.accountLevelPrimary') }}</el-tag>
<el-tag v-if="scope.row.isPrimary == 1">{{ $t('business.userAccount.supplementaryInfo.accountLevelSub') }}</el-tag> <el-tag v-if="scope.row.isPrimary == 1">{{ $t('business.supplementaryInfo.userAccount.accountLevelSub') }}</el-tag>
</template> </template>
</el-table-column> </el-table-column>
<el-table-column :label="$t('business.userAccount.supplementaryInfo.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.supplementaryInfo.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.supplementaryInfo.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)"
@ -94,11 +94,11 @@
</el-button> </el-button>
<el-button size="mini" type="text" icon="el-icon-lock" @click="accountLock(scope.row)" <el-button size="mini" type="text" icon="el-icon-lock" @click="accountLock(scope.row)"
v-if="(scope.row.id != null && scope.row.status == 0)" v-if="(scope.row.id != null && scope.row.status == 0)"
v-hasPermi="['business:userAccount:remove']">{{ $t('business.userAccount.supplementaryInfo.freeze') }} v-hasPermi="['business:userAccount:remove']">{{ $t('business.common.accountFreezing') }}
</el-button> </el-button>
<el-button size="mini" type="text" icon="el-icon-lock" @click="accountUnlock(scope.row)" <el-button size="mini" type="text" icon="el-icon-lock" @click="accountUnlock(scope.row)"
v-if="(scope.row.id != null && scope.row.status == 1)" v-if="(scope.row.id != null && scope.row.status == 1)"
v-hasPermi="['business:userAccount:remove']">{{ $t('business.userAccount.supplementaryInfo.unfreeze') }} v-hasPermi="['business:userAccount:remove']">{{ $t('business.common.accountUnfreezing') }}
</el-button> </el-button>
</template> </template>
</el-table-column> </el-table-column>
@ -107,14 +107,13 @@
<pagination v-show="total>0" :total="total" :page.sync="queryParams.pageNum" :limit.sync="queryParams.pageSize" <pagination v-show="total>0" :total="total" :page.sync="queryParams.pageNum" :limit.sync="queryParams.pageSize"
@pagination="getList"/> @pagination="getList"/>
<!-- {{ $t('business.userAccount.supplementaryInfo.addOrEditDialogTitle') }} -->
<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.supplementaryInfo.detailAccountName')" prop="accountName"> <el-form-item :label="$t('business.supplementaryInfo.userAccount.detailAccountName')" prop="accountName">
<el-input v-model="form.accountName" :placeholder="$t('business.userAccount.supplementaryInfo.inputAccountName')"/> <el-input v-model="form.accountName" :placeholder="$t('business.supplementaryInfo.userAccount.inputAccountName')"/>
</el-form-item> </el-form-item>
<el-form-item :label="$t('business.userAccount.supplementaryInfo.accountLevel')" prop="isPrimary"> <el-form-item :label="$t('business.supplementaryInfo.userAccount.accountLevel')" prop="isPrimary">
<el-select v-model="form.isPrimary" :placeholder="$t('business.userAccount.supplementaryInfo.selectAccountLevel')"> <el-select v-model="form.isPrimary" :placeholder="$t('business.supplementaryInfo.userAccount.selectAccountLevel')">
<el-option <el-option
v-for="item in options_accountLevel" v-for="item in options_accountLevel"
:key="item.value" :key="item.value"
@ -133,16 +132,16 @@
</div> </div>
</el-dialog> </el-dialog>
<!-- {{ $t('business.userAccount.supplementaryInfo.detailDialogTitle') }} --> <!-- {{ $t('business.supplementaryInfo.userAccount.detailDialogTitle') }} -->
<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.supplementaryInfo.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.supplementaryInfo.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.supplementaryInfo.detailAccountAmountLabel')"> <el-form-item :label="$t('business.supplementaryInfo.userAccount.detailAccountAmountLabel')">
{{ form.accountAmount }} {{ form.accountAmount }}
</el-form-item> </el-form-item>
</el-form> </el-form>
@ -212,24 +211,24 @@ export default {
rules: {}, rules: {},
options_accountLevel: [{ options_accountLevel: [{
value: "0", value: "0",
label: this.$t('business.userAccount.supplementaryInfo.accountLevelPrimary') label: this.$t('business.supplementaryInfo.userAccount.accountLevelPrimary')
}, { }, {
value: "1", value: "1",
label: this.$t('business.userAccount.supplementaryInfo.accountLevelSub') label: this.$t('business.supplementaryInfo.userAccount.accountLevelSub')
}], }],
options_accountType: [{ options_accountType: [{
value: 0, value: 0,
label: this.$t('business.userAccount.supplementaryInfo.accountTypeNormal') label: this.$t('business.supplementaryInfo.userAccount.accountTypeNormal')
}, { }, {
value: 1, value: 1,
label: this.$t('business.userAccount.supplementaryInfo.accountTypeEnterprise') label: this.$t('business.supplementaryInfo.userAccount.accountTypeEnterprise')
}], }],
options_accountStatus: [{ options_accountStatus: [{
value: 0, value: 0,
label: this.$t('business.userAccount.supplementaryInfo.statusNormal') label: this.$t('business.supplementaryInfo.userAccount.statusNormal')
}, { }, {
value: 1, value: 1,
label: this.$t('business.userAccount.supplementaryInfo.statusFrozen') label: this.$t('business.supplementaryInfo.userAccount.statusFrozen')
}], }],
}; };
}, },
@ -302,14 +301,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.supplementaryInfo.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.supplementaryInfo.detailTitle'); this.title = this.$t('business.supplementaryInfo.userAccount.detailTitle');
}, },
/** 修改按钮操作 */ /** 修改按钮操作 */
handleUpdate(row) { handleUpdate(row) {
@ -320,7 +319,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.supplementaryInfo.editTitle'); this.title = this.$t('business.supplementaryInfo.userAccount.editTitle');
}); });
}, },
/** 提交按钮 */ /** 提交按钮 */
@ -350,14 +349,14 @@ export default {
}, },
/** 冻结按钮操作 */ /** 冻结按钮操作 */
accountLock(row) { accountLock(row) {
this.$modal.confirm(this.$t('business.userAccount.supplementaryInfo.confirmLockAccount', { accountName: row.accountName })).then(() => { this.$modal.confirm(this.$t('business.supplementaryInfo.userAccount.confirmLockAccount', { accountName: row.accountName })).then(() => {
this.loading = true; this.loading = true;
row.status = 1; row.status = 1;
return lockAccount(row); return lockAccount(row);
}).then(() => { }).then(() => {
this.loading = false; this.loading = false;
this.getList(); this.getList();
this.$modal.msgSuccess(this.$t('business.userAccount.supplementaryInfo.accountLocked', { accountName: row.accountName })); this.$modal.msgSuccess(this.$t('business.supplementaryInfo.userAccount.accountLocked', { accountName: row.accountName }));
}).catch(() => { }).catch(() => {
}).finally(() => { }).finally(() => {
this.loading = false; this.loading = false;
@ -365,14 +364,14 @@ export default {
}, },
/**解冻按钮操作**/ /**解冻按钮操作**/
accountUnlock(row) { accountUnlock(row) {
this.$modal.confirm(this.$t('business.userAccount.supplementaryInfo.confirmUnlockAccount', { accountName: row.accountName })).then(() => { this.$modal.confirm(this.$t('business.supplementaryInfo.userAccount.confirmUnlockAccount', { accountName: row.accountName })).then(() => {
this.loading = true; this.loading = true;
row.status = 0; row.status = 0;
return lockAccount(row); return lockAccount(row);
}).then(() => { }).then(() => {
this.loading = false; this.loading = false;
this.getList(); this.getList();
this.$modal.msgSuccess(this.$t('business.userAccount.supplementaryInfo.accountUnlocked', { accountName: row.accountName })); this.$modal.msgSuccess(this.$t('business.supplementaryInfo.userAccount.accountUnlocked', { accountName: row.accountName }));
}).catch(() => { }).catch(() => {
}).finally(() => { }).finally(() => {
this.loading = false; this.loading = false;

82
src/views/business/userCredit/index.vue

@ -1,35 +1,35 @@
<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.userCredit.userId')" prop="userId"> <el-form-item :label="$t('business.credit.userCredit.userId')" prop="userId">
<el-input <el-input
v-model="queryParams.userId" v-model="queryParams.userId"
:placeholder="$t('business.userCredit.pleaseInputUserId')" :placeholder="$t('business.credit.userCredit.pleaseInputUserId')"
clearable clearable
@keyup.enter.native="handleQuery" @keyup.enter.native="handleQuery"
/> />
</el-form-item> </el-form-item>
<el-form-item :label="$t('business.userCredit.creditScore')" prop="score"> <el-form-item :label="$t('business.credit.userCredit.creditScore')" prop="score">
<el-input <el-input
v-model="queryParams.score" v-model="queryParams.score"
:placeholder="$t('business.userCredit.pleaseInputCreditScore')" :placeholder="$t('business.credit.userCredit.pleaseInputCreditScore')"
clearable clearable
@keyup.enter.native="handleQuery" @keyup.enter.native="handleQuery"
/> />
</el-form-item> </el-form-item>
<el-form-item :label="$t('business.userCredit.violationCount')" prop="violationNum"> <el-form-item :label="$t('business.credit.userCredit.violationCount')" prop="violationNum">
<el-input <el-input
v-model="queryParams.violationNum" v-model="queryParams.violationNum"
:placeholder="$t('business.userCredit.pleaseInputViolationCount')" :placeholder="$t('business.credit.userCredit.pleaseInputViolationCount')"
clearable clearable
@keyup.enter.native="handleQuery" @keyup.enter.native="handleQuery"
/> />
</el-form-item> </el-form-item>
<el-form-item :label="$t('business.userCredit.violationRatio')" prop="violationPro"> <el-form-item :label="$t('business.credit.userCredit.violationRatio')" prop="violationPro">
<el-input <el-input
v-model="queryParams.violationPro" v-model="queryParams.violationPro"
:placeholder="$t('business.userCredit.pleaseInputViolationRatio')" :placeholder="$t('business.credit.userCredit.pleaseInputViolationRatio')"
clearable clearable
@keyup.enter.native="handleQuery" @keyup.enter.native="handleQuery"
/> />
@ -95,12 +95,12 @@
<el-table v-loading="loading" :data="userCreditList" @selection-change="handleSelectionChange"> <el-table v-loading="loading" :data="userCreditList" @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="$t('business.userCredit.userId')" align="center" prop="userId"/> <el-table-column :label="$t('business.credit.userCredit.userId')" align="center" prop="userId"/>
<el-table-column :label="$t('business.userCredit.userName')" align="center" prop="userName"/> <el-table-column :label="$t('business.credit.userCredit.userName')" align="center" prop="userName"/>
<el-table-column :label="$t('business.userCredit.creditScore')" align="center" prop="score"/> <el-table-column :label="$t('business.credit.userCredit.creditScore')" align="center" prop="score"/>
<el-table-column :label="$t('business.userCredit.violationCount')" align="center" prop="violationNum"/> <el-table-column :label="$t('business.credit.userCredit.violationCount')" align="center" prop="violationNum"/>
<el-table-column :label="$t('business.userCredit.violationRatio')" align="center" prop="violationPro"/> <el-table-column :label="$t('business.credit.userCredit.violationRatio')" align="center" prop="violationPro"/>
<el-table-column :label="$t('common.button.operation')" 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"
@ -140,17 +140,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="$t('business.userCredit.userId')" prop="userId"> <el-form-item :label="$t('business.credit.userCredit.userId')" prop="userId">
<el-input v-model.number="form.userId" :placeholder="$t('business.userCredit.pleaseInputUserId')" /> <el-input v-model.number="form.userId" :placeholder="$t('business.credit.userCredit.pleaseInputUserId')" />
</el-form-item> </el-form-item>
<el-form-item :label="$t('business.userCredit.creditScore')" prop="score"> <el-form-item :label="$t('business.credit.userCredit.creditScore')" prop="score">
<el-input v-model.number="form.score" :placeholder="$t('business.userCredit.pleaseInputCreditScore')"/> <el-input v-model.number="form.score" :placeholder="$t('business.credit.userCredit.pleaseInputCreditScore')"/>
</el-form-item> </el-form-item>
<el-form-item :label="$t('business.userCredit.violationCount')" prop="violationNum"> <el-form-item :label="$t('business.credit.userCredit.violationCount')" prop="violationNum">
<el-input v-model.number="form.violationNum" :placeholder="$t('business.userCredit.pleaseInputViolationCount')" /> <el-input v-model.number="form.violationNum" :placeholder="$t('business.credit.userCredit.pleaseInputViolationCount')" />
</el-form-item> </el-form-item>
<el-form-item :label="$t('business.userCredit.violationRatio')" prop="violationPro"> <el-form-item :label="$t('business.credit.userCredit.violationRatio')" prop="violationPro">
<el-input v-model.number="form.violationPro" :placeholder="$t('business.userCredit.pleaseInputViolationRatio')" /> <el-input v-model.number="form.violationPro" :placeholder="$t('business.credit.userCredit.pleaseInputViolationRatio')" />
</el-form-item> </el-form-item>
</el-form> </el-form>
<div slot="footer" class="dialog-footer"> <div slot="footer" class="dialog-footer">
@ -165,19 +165,19 @@
<!-- 信用详情 --> <!-- 信用详情 -->
<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.userCredit.userId') + ':'"> <el-form-item :label="$t('business.credit.userCredit.userId') + ':'">
{{ form.userId }} {{ form.userId }}
</el-form-item> </el-form-item>
<el-form-item :label="$t('business.userCredit.userName') + ':'"> <el-form-item :label="$t('business.credit.userCredit.userName') + ':'">
{{ form.userName }} {{ form.userName }}
</el-form-item> </el-form-item>
<el-form-item :label="$t('business.userCredit.creditScore') + ':'"> <el-form-item :label="$t('business.credit.userCredit.creditScore') + ':'">
{{ form.score }} {{ form.score }}
</el-form-item> </el-form-item>
<el-form-item :label="$t('business.userCredit.violationCount') + ':'"> <el-form-item :label="$t('business.credit.userCredit.violationCount') + ':'">
{{ form.violationNum }} {{ form.violationNum }}
</el-form-item> </el-form-item>
<el-form-item :label="$t('business.userCredit.violationRatio') + ':'"> <el-form-item :label="$t('business.credit.userCredit.violationRatio') + ':'">
{{ form.violationPro }} {{ form.violationPro }}
</el-form-item> </el-form-item>
</el-form> </el-form>
@ -231,23 +231,23 @@ export default {
// //
rules: { rules: {
userId: [ userId: [
{required: true, message: this.$t('business.userCredit.userIdRequired'), trigger: "blur"}, {required: true, message: this.$t('business.credit.userCredit.userIdRequired'), trigger: "blur"},
{type: "number", message: this.$t('business.userCredit.userIdMustBeNumber'), trigger: "blur"} {type: "number", message: this.$t('business.credit.userCredit.userIdMustBeNumber'), trigger: "blur"}
], ],
score: [ score: [
{required: true, message: this.$t('business.userCredit.creditScoreRequired'), trigger: "blur"}, {required: true, message: this.$t('business.credit.userCredit.creditScoreRequired'), trigger: "blur"},
{type: "number", message: this.$t('business.userCredit.creditScoreMustBeNumber'), trigger: "blur"}, {type: "number", message: this.$t('business.credit.userCredit.creditScoreMustBeNumber'), trigger: "blur"},
{type: "number", min: 0, max: 100, message: this.$t('business.userCredit.creditScoreRange'), trigger: "blur"} {type: "number", min: 0, max: 100, message: this.$t('business.credit.userCredit.creditScoreRange'), trigger: "blur"}
], ],
violationNum: [ violationNum: [
{required: true, message: this.$t('business.userCredit.violationCountRequired'), trigger: "blur"}, {required: true, message: this.$t('business.credit.userCredit.violationCountRequired'), trigger: "blur"},
{type: "number", message: this.$t('business.userCredit.violationCountMustBeNumber'), trigger: "blur"}, {type: "number", message: this.$t('business.credit.userCredit.violationCountMustBeNumber'), trigger: "blur"},
{type: "number", min: 0, message: this.$t('business.userCredit.violationCountMin'), trigger: "blur"} {type: "number", min: 0, message: this.$t('business.credit.userCredit.violationCountMin'), trigger: "blur"}
], ],
violationPro: [ violationPro: [
{required: true, message: this.$t('business.userCredit.violationRatioRequired'), trigger: "blur"}, {required: true, message: this.$t('business.credit.userCredit.violationRatioRequired'), trigger: "blur"},
{type: "number", message: this.$t('business.userCredit.violationRatioMustBeNumber'), trigger: "blur"}, {type: "number", message: this.$t('business.credit.userCredit.violationRatioMustBeNumber'), trigger: "blur"},
{type: "number", min: 0, max: 100, message: this.$t('business.userCredit.violationRatioRange'), trigger: "blur"} {type: "number", min: 0, max: 100, message: this.$t('business.credit.userCredit.violationRatioRange'), trigger: "blur"}
], ],
} }
}; };
@ -307,14 +307,14 @@ export default {
handleAdd() { handleAdd() {
this.reset(); this.reset();
this.open = true; this.open = true;
this.title = this.$t('business.userCredit.addCredit'); this.title = this.$t('business.credit.userCredit.addCredit');
}, },
/** 详情按钮操作 */ /** 详情按钮操作 */
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.userCredit.credit'); this.title = this.$t('business.credit.userCredit.credit');
}, },
/** 修改按钮操作 */ /** 修改按钮操作 */
handleUpdate(row) { handleUpdate(row) {
@ -325,7 +325,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.userCredit.editCredit'); this.title = this.$t('business.credit.userCredit.editCredit');
}); });
}, },
/** 提交按钮 */ /** 提交按钮 */

91
src/views/business/userCreditRecord/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="用户Id" prop="userId"> <el-form-item :label="$t('business.credit.userCreditRecord.userId')" prop="userId">
<el-input <el-input
v-model="queryParams.userId" v-model="queryParams.userId"
placeholder="请输入违规业务" :placeholder="$t('business.credit.userCreditRecord.placeholder.violationBus')"
clearable clearable
@keyup.enter.native="handleQuery" @keyup.enter.native="handleQuery"
/> />
</el-form-item> </el-form-item>
<el-form-item label="违规业务" prop="violationBus"> <el-form-item :label="$t('business.credit.userCreditRecord.violationBus')" prop="violationBus">
<el-input <el-input
v-model="queryParams.violationBus" v-model="queryParams.violationBus"
placeholder="请输入违规业务" :placeholder="$t('business.credit.userCreditRecord.placeholder.violationBus')"
clearable clearable
@keyup.enter.native="handleQuery" @keyup.enter.native="handleQuery"
/> />
</el-form-item> </el-form-item>
<el-form-item label="订单号" prop="violationOrd"> <el-form-item :label="$t('business.credit.userCreditRecord.violationOrd')" prop="violationOrd">
<el-input <el-input
v-model="queryParams.violationOrd" v-model="queryParams.violationOrd"
placeholder="请输入违规订单号" :placeholder="$t('business.credit.userCreditRecord.placeholder.violationOrd')"
clearable clearable
@keyup.enter.native="handleQuery" @keyup.enter.native="handleQuery"
/> />
@ -102,14 +102,14 @@
<el-table v-loading="loading" :data="userCreditRecordList" @selection-change="handleSelectionChange"> <el-table v-loading="loading" :data="userCreditRecordList" @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="用户Id" align="center" prop="userId"/> <el-table-column :label="$t('business.credit.userCreditRecord.userId')" align="center" prop="userId"/>
<el-table-column label="用户名" align="center" prop="userName"/> <el-table-column :label="$t('business.credit.userCreditRecord.userName')" align="center" prop="userName"/>
<el-table-column label="违规订单号" align="center" prop="violationOrd"/> <el-table-column :label="$t('business.credit.userCreditRecord.violationOrd')" align="center" prop="violationOrd"/>
<el-table-column label="信用规则Id" align="center" prop="creditRuleId"/> <el-table-column :label="$t('business.credit.userCreditRecord.creditRuleId')" align="center" prop="creditRuleId"/>
<!-- <el-table-column label="违规类型" align="center" prop="violationType"/>--> <!-- <el-table-column label="违规类型" align="center" prop="violationType"/>-->
<el-table-column label="订单金额" align="center" prop="violationSum"/> <el-table-column :label="$t('business.credit.userCreditRecord.violationSum')" align="center" prop="violationSum"/>
<!-- <el-table-column label="违规级别" align="center" prop="violationLevel"/>--> <!-- <el-table-column label="违规级别" align="center" prop="violationLevel"/>-->
<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"
@ -149,17 +149,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="用户Id" prop="userId"> <el-form-item :label="$t('business.credit.userCreditRecord.userId')" prop="userId">
<el-input v-model.number="form.userId" placeholder="请输入用户Id"/> <el-input v-model.number="form.userId" :placeholder="$t('business.credit.userCreditRecord.placeholder.userId')"/>
</el-form-item> </el-form-item>
<el-form-item label="信用规则Id" prop="creditRuleId"> <el-form-item :label="$t('business.credit.userCreditRecord.creditRuleId')" prop="creditRuleId">
<el-input v-model.number="form.creditRuleId" placeholder="请输入触发规则Id"/> <el-input v-model.number="form.creditRuleId" :placeholder="$t('business.credit.userCreditRecord.placeholder.creditRuleId')"/>
</el-form-item> </el-form-item>
<el-form-item label="违规订单号" prop="violationOrd"> <el-form-item :label="$t('business.credit.userCreditRecord.violationOrd')" prop="violationOrd">
<el-input v-model.number="form.violationOrd" placeholder="请输入违规订单号"/> <el-input v-model.number="form.violationOrd" :placeholder="$t('business.credit.userCreditRecord.placeholder.violationOrd')"/>
</el-form-item> </el-form-item>
<el-form-item label="订单金额" prop="violationSum"> <el-form-item :label="$t('business.credit.userCreditRecord.violationSum')" prop="violationSum">
<el-input v-model.number="form.violationSum" placeholder="请输入订单金额"/> <el-input v-model.number="form.violationSum" :placeholder="$t('business.credit.userCreditRecord.placeholder.violationSum')"/>
</el-form-item> </el-form-item>
</el-form> </el-form>
<div slot="footer" class="dialog-footer"> <div slot="footer" class="dialog-footer">
@ -174,30 +174,21 @@
<!-- 信用记录详情 --> <!-- 信用记录详情 -->
<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="用户Id:"> <el-form-item :label="$t('business.credit.userCreditRecord.userId') + ':'">
{{ form.userId }} {{ form.userId }}
</el-form-item> </el-form-item>
<el-form-item label="用户名:"> <el-form-item :label="$t('business.credit.userCreditRecord.userName') + ':'">
{{ form.userName }} {{ form.userName }}
</el-form-item> </el-form-item>
<!-- <el-form-item label="违规业务:">--> <el-form-item :label="$t('business.credit.userCreditRecord.violationOrd') + ':'">
<!-- {{ form.violationBus }}-->
<!-- </el-form-item>-->
<el-form-item label="违规订单号:">
{{ form.violationOrd }} {{ form.violationOrd }}
</el-form-item> </el-form-item>
<el-form-item label="信用规则Id:"> <el-form-item :label="$t('business.credit.userCreditRecord.creditRuleId') + ':'">
{{ form.creditRuleId }} {{ form.creditRuleId }}
</el-form-item> </el-form-item>
<el-form-item label="订单金额:"> <el-form-item :label="$t('business.credit.userCreditRecord.violationSum') + ':'">
{{ form.violationSum }} {{ form.violationSum }}
</el-form-item> </el-form-item>
<!-- <el-form-item label="违规类型:">-->
<!-- {{ form.violationType }}-->
<!-- </el-form-item>-->
<!-- <el-form-item label="违规级别:">-->
<!-- {{ form.violationLevel }}-->
<!-- </el-form-item>-->
</el-form> </el-form>
<div slot="footer" class="dialog-footer"> <div slot="footer" class="dialog-footer">
<el-button @click="cancel">{{ $t('common.button.close') }}</el-button> <el-button @click="cancel">{{ $t('common.button.close') }}</el-button>
@ -258,21 +249,21 @@ export default {
// //
rules: { rules: {
userId: [ userId: [
{required: true, message: "用户Id不能为空", trigger: "blur"}, {required: true, message: this.$t('business.credit.userCreditRecord.validation.userIdRequired'), trigger: 'blur'},
{pattern: /^\d+$/, message: "用户Id必须为数字", trigger: "blur"} {pattern: /^\d+$/, message: this.$t('business.credit.userCreditRecord.validation.userIdPattern'), trigger: 'blur'}
], ],
creditRuleId: [ creditRuleId: [
{required: true, message: "触发规则 Id 不能为空", trigger: "blur"}, {required: true, message: this.$t('business.credit.userCreditRecord.validation.creditRuleIdRequired'), trigger: 'blur'},
{pattern: /^\d+$/, message: "触发规则 Id必须为数字", trigger: "blur"} {pattern: /^\d+$/, message: this.$t('business.credit.userCreditRecord.validation.creditRuleIdPattern'), trigger: 'blur'}
], ],
violationOrd: [ violationOrd: [
{required: true, message: "违规订单号不能为空", trigger: "blur"}, {required: true, message: this.$t('business.credit.userCreditRecord.validation.violationOrdRequired'), trigger: 'blur'},
{pattern: /^\d+$/, message: "违规订单号必须为数字", trigger: "blur"} {pattern: /^\d+$/, message: this.$t('business.credit.userCreditRecord.validation.violationOrdPattern'), trigger: 'blur'}
], ],
violationSum: [ violationSum: [
{required: true, message: "订单金额不能为空", trigger: "blur"}, {required: true, message: this.$t('business.credit.userCreditRecord.validation.violationSumRequired'), trigger: 'blur'},
{pattern: /^\d+(\.\d+)?$/, message: "订单金额必须为数字", trigger: "blur"}, {pattern: /^\d+(\.\d+)?$/, message: this.$t('business.credit.userCreditRecord.validation.violationSumPattern'), trigger: 'blur'},
{pattern: /^(?!-|0$)\d+(\.\d+)?$/, message: "订单金额必须大于0", trigger: "blur"} {pattern: /^(?!-|0$)\d+(\.\d+)?$/, message: this.$t('business.credit.userCreditRecord.validation.violationSumPositive'), trigger: 'blur'}
], ],
} }
}; };
@ -334,14 +325,14 @@ export default {
handleAdd() { handleAdd() {
this.reset(); this.reset();
this.open = true; this.open = true;
this.title = "添加信用记录"; this.title = this.$t('business.credit.userCreditRecord.validation.addTitle');
}, },
/** 详情按钮操作 */ /** 详情按钮操作 */
handleDetail(row) { handleDetail(row) {
this.reset(); this.reset();
this.form = row; this.form = row;
this.detailOpen = true; this.detailOpen = true;
this.title = "信用记录"; this.title = this.$t('business.credit.userCreditRecord.validation.detailTitle');
}, },
/** 修改按钮操作 */ /** 修改按钮操作 */
handleUpdate(row) { handleUpdate(row) {
@ -352,7 +343,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.credit.userCreditRecord.validation.editTitle');
}); });
}, },
/** 提交按钮 */ /** 提交按钮 */
@ -362,7 +353,7 @@ export default {
this.buttonLoading = true; this.buttonLoading = true;
if (this.form.id != null) { if (this.form.id != null) {
updateUserCreditRecord(this.form).then(response => { updateUserCreditRecord(this.form).then(response => {
this.$modal.msgSuccess("修改成功"); this.$modal.msgSuccess(this.$t('common.promptMsg.editSuccess'));
this.open = false; this.open = false;
this.getList(); this.getList();
}).finally(() => { }).finally(() => {
@ -370,7 +361,7 @@ export default {
}); });
} else { } else {
addUserCreditRecord(this.form).then(response => { addUserCreditRecord(this.form).then(response => {
this.$modal.msgSuccess("新增成功"); this.$modal.msgSuccess(this.$t('common.promptMsg.addSuccess'));
this.open = false; this.open = false;
this.getList(); this.getList();
}).finally(() => { }).finally(() => {
@ -383,13 +374,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('common.promptMsg.deleteConfirm')).then(() => {
this.loading = true; this.loading = true;
return delUserCreditRecord(ids); return delUserCreditRecord(ids);
}).then(() => { }).then(() => {
this.loading = false; this.loading = false;
this.getList(); this.getList();
this.$modal.msgSuccess("删除成功"); this.$modal.msgSuccess(this.$t('common.promptMsg.deleteSuccess'));
}).catch(() => { }).catch(() => {
}).finally(() => { }).finally(() => {
this.loading = false; this.loading = false;

2
src/views/business/userRegister/index.vue

@ -166,7 +166,7 @@
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']">
{{ $t('business.userManage.accountUnfreezing') }} {{ $t('business.common.accountUnfreezing') }}
</el-button> </el-button>
</el-dropdown-item> </el-dropdown-item>
<el-dropdown-item> <el-dropdown-item>

257
src/views/business/userRegister/indexBus.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="$t('business.userManager.userRegister.account')" prop="account"> <el-form-item :label="$t('business.merchant.indexBus.account')" prop="account">
<el-input <el-input
v-model="queryParams.account" v-model="queryParams.account"
:placeholder="$t('business.userManager.userRegister.accountPlaceholder')" :placeholder="$t('business.merchant.indexBus.accountPlaceholder')"
clearable clearable
@keyup.enter.native="handleQuery" @keyup.enter.native="handleQuery"
/> />
</el-form-item> </el-form-item>
<el-form-item :label="$t('business.userManager.userRegister.phone')" prop="phone"> <el-form-item :label="$t('business.merchant.indexBus.phone')" prop="phone">
<el-input <el-input
v-model="queryParams.phone" v-model="queryParams.phone"
:placeholder="$t('business.userManager.userRegister.phonePlaceholder')" :placeholder="$t('business.merchant.indexBus.phonePlaceholder')"
clearable clearable
@keyup.enter.native="handleQuery" @keyup.enter.native="handleQuery"
/> />
</el-form-item> </el-form-item>
<el-form-item :label="$t('business.userManager.userRegister.userLevel')" prop="userLevel"> <el-form-item :label="$t('business.merchant.indexBus.userLevel')" prop="userLevel">
<el-select v-model="queryParams.userLevel" size="medium" :placeholder="$t('business.userManager.userRegister.userLevelPlaceholder')" > <el-select v-model="queryParams.userLevel" size="medium" :placeholder="$t('business.merchant.indexBus.userLevelPlaceholder')" >
<el-option <el-option
v-for="item in options_userLevel" v-for="item in options_userLevel"
:key="item.value" :key="item.value"
@ -81,39 +81,39 @@
<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="$t('business.userManager.userRegister.account')" align="center" prop="account" /> <el-table-column :label="$t('business.merchant.indexBus.account')" align="center" prop="account" />
<el-table-column :label="$t('business.userManager.userRegister.merchantName')" align="center" prop="merchantName" /> <el-table-column :label="$t('business.merchant.indexBus.merchantName')" align="center" prop="merchantName" />
<el-table-column :label="$t('business.userManager.userRegister.status')" align="center" prop="status" > <el-table-column :label="$t('business.merchant.indexBus.status')" align="center" prop="status" >
<template slot-scope="scope"> <template slot-scope="scope">
<el-tag type="primary" v-if="scope.row.status == '0'">{{ $t('business.userManager.userRegister.statusInitiated') }}</el-tag> <el-tag type="primary" v-if="scope.row.status == '0'">{{ $t('business.merchant.indexBus.statusInitiated') }}</el-tag>
<el-tag type="warning" v-if="scope.row.status == '1'">{{ $t('business.userManager.userRegister.statusRejected') }}</el-tag> <el-tag type="warning" v-if="scope.row.status == '1'">{{ $t('business.merchant.indexBus.statusRejected') }}</el-tag>
<el-tag type="success" v-if="scope.row.status == '2'">{{ $t('business.userManager.userRegister.statusApproved') }}</el-tag> <el-tag type="success" v-if="scope.row.status == '2'">{{ $t('business.merchant.indexBus.statusApproved') }}</el-tag>
<el-tag type="danger" v-if="scope.row.status == '3'">{{ $t('business.userManager.userRegister.statusFrozen') }}</el-tag> <el-tag type="danger" v-if="scope.row.status == '3'">{{ $t('business.merchant.indexBus.statusFrozen') }}</el-tag>
</template> </template>
</el-table-column> </el-table-column>
<el-table-column :label="$t('business.userManager.userRegister.userType')" align="center" prop="userType" > <el-table-column :label="$t('business.merchant.indexBus.userType')" align="center" prop="userType" >
<template slot-scope="scope"> <template slot-scope="scope">
<el-tag type="success" v-if="scope.row.userType == '0'">{{ $t('business.userManager.userRegister.userTypeNormal') }}</el-tag> <el-tag type="success" v-if="scope.row.userType == '0'">{{ $t('business.merchant.indexBus.userTypeNormal') }}</el-tag>
<el-tag type="warning" v-if="scope.row.userType == '1'">{{ $t('business.userManager.userRegister.userTypeMerchant') }}</el-tag> <el-tag type="warning" v-if="scope.row.userType == '1'">{{ $t('business.merchant.indexBus.userTypeEnterprise') }}</el-tag>
</template> </template>
</el-table-column> </el-table-column>
<el-table-column :label="$t('business.userManager.userRegister.userLevel')" align="center" prop="userLevel" > <el-table-column :label="$t('business.merchant.indexBus.userLevel')" align="center" prop="userLevel" >
<template slot-scope="scope"> <template slot-scope="scope">
<span v-if="scope.row.userLevel == '0'">{{ $t('business.userManager.userRegister.userLevelNormal') }}</span> <span v-if="scope.row.userLevel == '0'">{{ $t('business.merchant.indexBus.userLevelNormal') }}</span>
<span v-if="scope.row.userLevel == '1'">{{ $t('business.userManager.userRegister.userLevelVIP') }}</span> <span v-if="scope.row.userLevel == '1'">{{ $t('business.merchant.indexBus.userLevelVIP') }}</span>
<span v-if="scope.row.userLevel == '2'">{{ $t('business.userManager.userRegister.userLevelMerchant') }}</span> <span v-if="scope.row.userLevel == '2'">{{ $t('business.merchant.indexBus.userLevelEnterprise') }}</span>
</template> </template>
</el-table-column> </el-table-column>
<el-table-column :label="$t('business.userManager.userRegister.phone')" align="center" prop="phone" /> <el-table-column :label="$t('business.merchant.indexBus.phone')" align="center" prop="phone" />
<el-table-column :label="$t('business.userManager.userRegister.address')" align="center" prop="address" /> <el-table-column :label="$t('business.merchant.indexBus.address')" align="center" prop="address" />
<el-table-column :label="$t('common.operate')" 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.addressInfo == '' && scope.row.userType == '0') || (scope.row.address == '' && scope.row.userType == '1')" <el-button v-if="(scope.row.addressInfo == '' && scope.row.userType == '0') || (scope.row.address == '' && scope.row.userType == '1')"
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)"
>{{ $t('business.userManager.userRegister.supplement') }}</el-button> >{{ $t('common.button.supplement') }}</el-button>
<el-button v-if="(scope.row.addressInfo != '' && scope.row.userType == '0') || (scope.row.address != '' && scope.row.userType == '1')" <el-button v-if="(scope.row.addressInfo != '' && scope.row.userType == '0') || (scope.row.address != '' && scope.row.userType == '1')"
size="mini" size="mini"
type="text" type="text"
@ -129,7 +129,7 @@
>{{ $t('common.button.edit') }}</el-button> >{{ $t('common.button.edit') }}</el-button>
<el-dropdown> <el-dropdown>
<span class="el-dropdown-link"> <span class="el-dropdown-link">
{{ $t('common.more') }}<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>
@ -139,7 +139,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']"
>{{ $t('business.userManager.userRegister.passwordReset') }}</el-button> >{{ $t('business.common.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')"
@ -148,14 +148,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']"
>{{ $t('business.userManager.userRegister.accountLock') }}</el-button> >{{ $t('business.common.accountFreezing') }}</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']"
>{{ $t('business.userManager.userRegister.accountUnlock') }}</el-button> >{{ $t('business.common.accountUnfreezing') }}</el-button>
</el-dropdown-item> </el-dropdown-item>
<el-dropdown-item> <el-dropdown-item>
<el-button <el-button
@ -181,17 +181,16 @@
/> />
<!-- 添加或修改用户注册对话框 --> <!-- 添加或修改用户注册对话框 -->
<!-- {{ $t('business.userManager.userRegister.dialogTitle') }} -->
<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.userManager.userRegister.account')" prop="account"> <el-form-item :label="$t('business.merchant.indexBus.account')" prop="account">
<el-input v-model="form.account" :placeholder="$t('business.userManager.userRegister.accountPlaceholder')" /> <el-input v-model="form.account" :placeholder="$t('business.merchant.indexBus.accountPlaceholder')" />
</el-form-item> </el-form-item>
<el-form-item :label="$t('business.userManager.userRegister.phone')" prop="phone"> <el-form-item :label="$t('business.merchant.indexBus.phone')" prop="phone">
<el-input v-model="form.phone" :placeholder="$t('business.userManager.userRegister.phonePlaceholder')" /> <el-input v-model="form.phone" :placeholder="$t('business.merchant.indexBus.phonePlaceholder')" />
</el-form-item> </el-form-item>
<el-form-item :label="$t('business.userManager.userRegister.userType')" prop="userType"> <el-form-item :label="$t('business.merchant.indexBus.userType')" prop="userType">
<el-select v-model="form.userType" :placeholder="$t('business.userManager.userRegister.userTypePlaceholder')" > <el-select v-model="form.userType" :placeholder="$t('business.merchant.indexBus.userTypePlaceholder')" >
<el-option <el-option
v-for="item in options_userType" v-for="item in options_userType"
:key="item.value" :key="item.value"
@ -200,8 +199,8 @@
</el-option> </el-option>
</el-select> </el-select>
</el-form-item> </el-form-item>
<el-form-item :label="$t('business.userManager.userRegister.userLevel')" prop="userLevel"> <el-form-item :label="$t('business.merchant.indexBus.userLevel')" prop="userLevel">
<el-select v-model="form.userLevel" size="medium" :placeholder="$t('business.userManager.userRegister.userLevelPlaceholder')" > <el-select v-model="form.userLevel" size="medium" :placeholder="$t('business.merchant.indexBus.userLevelPlaceholder')" >
<el-option <el-option
v-for="item in options_userLevel" v-for="item in options_userLevel"
:key="item.value" :key="item.value"
@ -212,106 +211,105 @@
</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">{{ $t('common.confirm') }}</el-button> <el-button :loading="buttonLoading" type="primary" @click="submitForm">{{ $t('common.button.confirm') }}</el-button>
<el-button @click="cancel">{{ $t('common.cancel') }}</el-button> <el-button @click="cancel">{{ $t('common.button.cancel') }}</el-button>
</div> </div>
</el-dialog> </el-dialog>
<!--{{ $t('business.userManager.userRegister.merchantInfoDialog') }}--> <!--添加商户注册信息弹窗-->
<el-dialog :title="title" :visible.sync="openInfo" width="700px" append-to-body> <el-dialog :title="title" :visible.sync="openInfo" width="700px" append-to-body>
<el-form ref="formInfo" :model="formInfo" :rules="rules" label-width="auto"> <el-form ref="formInfo" :model="formInfo" :rules="rules" label-width="auto">
<el-form-item :label="$t('business.userInfo.name')" prop="name"> <el-form-item :label="$t('business.merchant.indexBus.name')" prop="name">
<el-input v-model="formInfo.name" :placeholder="$t('business.userInfo.namePlaceholder')" /> <el-input v-model="formInfo.name" :placeholder="$t('business.merchant.indexBus.namePlaceholder')" />
</el-form-item> </el-form-item>
<el-form-item :label="$t('business.userInfo.gender')" prop="gender"> <el-form-item :label="$t('business.merchant.indexBus.gender')" prop="gender">
<el-select v-model="formInfo.gender" :placeholder="$t('business.userInfo.genderPlaceholder')"> <el-select v-model="formInfo.gender" :placeholder="$t('business.merchant.indexBus.genderPlaceholder')">
<el-option :label="$t('business.userInfo.male')" value="1"></el-option> <el-option :label="$t('business.merchant.indexBus.genderMale')" value="1"></el-option>
<el-option :label="$t('business.userInfo.female')" value="0"></el-option> <el-option :label="$t('business.merchant.indexBus.genderFemale')" value="0"></el-option>
</el-select> </el-select>
<!-- <el-input v-model="form.gender" :placeholder="$t('business.merchant.indexBus.genderPlaceholder')" />-->
</el-form-item> </el-form-item>
<el-form-item :label="$t('business.userInfo.idCard')" prop="idCard"> <el-form-item :label="$t('business.merchant.indexBus.idCard')" prop="idCard">
<el-input v-model="formInfo.idCard" :placeholder="$t('business.userInfo.idCardPlaceholder')" /> <el-input v-model="formInfo.idCard" :placeholder="$t('business.merchant.indexBus.idCardPlaceholder')" />
</el-form-item> </el-form-item>
<el-form-item :label="$t('business.userInfo.phone')" prop="phone"> <el-form-item :label="$t('business.merchant.indexBus.phone')" prop="phone">
<el-input v-model="formInfo.phone" :placeholder="$t('business.userInfo.phonePlaceholder')" /> <el-input v-model="formInfo.phone" :placeholder="$t('business.merchant.indexBus.phonePlaceholder')" />
</el-form-item> </el-form-item>
<el-form-item :label="$t('business.userInfo.age')" prop="age"> <el-form-item :label="$t('business.merchant.indexBus.age')" prop="age">
<el-input v-model="formInfo.age" :placeholder="$t('business.userInfo.agePlaceholder')" /> <el-input v-model="formInfo.age" :placeholder="$t('business.merchant.indexBus.agePlaceholder')" />
</el-form-item> </el-form-item>
<el-form-item :label="$t('business.userInfo.addr')" prop="addr"> <el-form-item :label="$t('business.merchant.indexBus.addr')" prop="addr">
<el-input v-model="formInfo.addr" :placeholder="$t('business.userInfo.addrPlaceholder')" /> <el-input v-model="formInfo.addr" :placeholder="$t('business.merchant.indexBus.addrPlaceholder')" />
</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="submitFormInfo">{{ $t('common.confirm') }}</el-button> <el-button :loading="buttonLoading" type="primary" @click="submitFormInfo">{{ $t('common.button.confirm') }}</el-button>
<el-button @click="cancel">{{ $t('common.cancel') }}</el-button> <el-button @click="cancel">{{ $t('common.button.cancel') }}</el-button>
</div> </div>
</el-dialog> </el-dialog>
<!-- 添加或修改用户信息-商户扩展对话框 --> <!-- 添加或修改用户信息-商户扩展对话框 -->
<!-- {{ $t('business.userManager.userRegister.merchantExtendDialog') }} -->
<el-dialog :title="title" :visible.sync="openInfoBus" width="700px" append-to-body> <el-dialog :title="title" :visible.sync="openInfoBus" width="700px" append-to-body>
<el-form ref="formInfoBus" :model="formInfoBus" :rules="rules" label-width="auto"> <el-form ref="formInfoBus" :model="formInfoBus" :rules="rules" label-width="auto">
<el-form-item :label="$t('business.userManager.userRegister.merchantName')" prop="merchantName"> <el-form-item :label="$t('business.merchant.indexBus.merchantNameLabel')" prop="merchantName">
<el-input v-model="formInfoBus.merchantName" :placeholder="$t('business.userManager.userRegister.merchantNamePlaceholder')" /> <el-input v-model="formInfoBus.merchantName" :placeholder="$t('business.merchant.indexBus.merchantNamePlaceholder')" />
</el-form-item> </el-form-item>
<el-form-item :label="$t('business.userManager.userRegister.license')" prop="license"> <el-form-item :label="$t('business.merchant.indexBus.licenseLabel')" prop="license">
<el-input v-model="formInfoBus.license" :placeholder="$t('business.userManager.userRegister.licensePlaceholder')" /> <el-input v-model="formInfoBus.license" :placeholder="$t('business.merchant.indexBus.licensePlaceholder')" />
</el-form-item> </el-form-item>
<el-form-item :label="$t('business.userManager.userRegister.licenseOther')" prop="licenseOther"> <el-form-item :label="$t('business.merchant.indexBus.licenseOtherLabel')" prop="licenseOther">
<el-input v-model="formInfoBus.licenseOther" :placeholder="$t('business.userManager.userRegister.licenseOtherPlaceholder')" /> <el-input v-model="formInfoBus.licenseOther" :placeholder="$t('business.merchant.indexBus.licenseOtherPlaceholder')" />
</el-form-item> </el-form-item>
<el-form-item :label="$t('business.userManager.userRegister.legalPerson')" prop="legalPerson"> <el-form-item :label="$t('business.merchant.indexBus.legalPersonLabel')" prop="legalPerson">
<el-input v-model="formInfoBus.legalPerson" :placeholder="$t('business.userManager.userRegister.legalPersonPlaceholder')" /> <el-input v-model="formInfoBus.legalPerson" :placeholder="$t('business.merchant.indexBus.legalPersonPlaceholder')" />
</el-form-item> </el-form-item>
<el-form-item :label="$t('business.userManager.userRegister.operateStatus')" prop="operateStatus"> <el-form-item :label="$t('business.merchant.indexBus.operateStatusLabel')" prop="operateStatus">
<el-select v-model="formInfoBus.operateStatus" :placeholder="$t('business.userManager.userRegister.operateStatusPlaceholder')" > <el-select v-model="formInfoBus.operateStatus" :placeholder="$t('business.merchant.indexBus.operateStatusPlaceholder')" >
<el-option <el-option
v-for="item in options_operateStatus" v-for="item in options_operateStatus"
:key="item.value" :key="item.value"
:label="$t('business.userManager.userRegister.operateStatus.' + item.value)" :label="item.label"
:value="item.value"> :value="item.value">
</el-option> </el-option>
</el-select> </el-select>
</el-form-item> </el-form-item>
<el-form-item :label="$t('business.userManager.userRegister.operateAddr')" prop="operateAddr"> <el-form-item :label="$t('business.merchant.indexBus.operateAddrLabel')" prop="operateAddr">
<el-input v-model="formInfoBus.operateAddr" :placeholder="$t('business.userManager.userRegister.operateAddrPlaceholder')" /> <el-input v-model="formInfoBus.operateAddr" :placeholder="$t('business.merchant.indexBus.operateAddrPlaceholder')" />
</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="submitFormInfoBus">{{ $t('common.confirm') }}</el-button> <el-button :loading="buttonLoading" type="primary" @click="submitFormInfoBus">{{ $t('common.button.confirm') }}</el-button>
<el-button @click="cancel">{{ $t('common.cancel') }}</el-button> <el-button @click="cancel">{{ $t('common.button.cancel') }}</el-button>
</div> </div>
</el-dialog> </el-dialog>
<!-- 用户注册详情-商企--> <!-- 用户注册详情-商企-->
<!-- {{ $t('business.userManager.userRegister.detailDialog') }} -->
<el-dialog :title="title" :visible.sync="detailOpenBus" width="700px" append-to-body> <el-dialog :title="title" :visible.sync="detailOpenBus" width="700px" append-to-body>
<el-form ref="formDetail" :model="formDetailBus" label-width="auto"> <el-form ref="formDetail" :model="formDetailBus" label-width="auto">
<el-form-item :label="$t('business.userManager.userRegister.account') + ':'"> <el-form-item :label="$t('business.merchant.indexBus.accountLabel')">
{{formDetailBus.account}} {{formDetailBus.account}}
</el-form-item> </el-form-item>
<el-form-item :label="$t('business.userManager.userRegister.merchantName') + ':'"> <el-form-item :label="$t('business.merchant.indexBus.merchantNameLabel')">
{{formDetailBus.merchantName}} {{formDetailBus.merchantName}}
</el-form-item> </el-form-item>
<el-form-item :label="$t('business.userManager.userRegister.license') + ':'"> <el-form-item :label="$t('business.merchant.indexBus.licenseLabel')">
{{formDetailBus.userInfoBusVo.license}} {{formDetailBus.userInfoBusVo.license}}
</el-form-item> </el-form-item>
<el-form-item :label="$t('business.userManager.userRegister.licenseOther') + ':'"> <el-form-item :label="$t('business.merchant.indexBus.licenseOtherLabel')">
{{formDetailBus.userInfoBusVo.licenseOther}} {{formDetailBus.userInfoBusVo.licenseOther}}
</el-form-item> </el-form-item>
<el-form-item :label="$t('business.userManager.userRegister.legalPerson') + ':'"> <el-form-item :label="$t('business.merchant.indexBus.legalPersonLabel')">
{{formDetailBus.userInfoBusVo.legalPerson}} {{formDetailBus.userInfoBusVo.legalPerson}}
</el-form-item> </el-form-item>
<el-form-item :label="$t('business.userManager.userRegister.operateStatus') + ':'"> <el-form-item :label="$t('business.merchant.indexBus.operateStatusLabel')">
{{formDetailBus.userInfoBusVo.operateStatus}} {{formDetailBus.userInfoBusVo.operateStatus}}
</el-form-item> </el-form-item>
<el-form-item :label="$t('business.userManager.userRegister.operateAddr') + ':'"> <el-form-item :label="$t('business.merchant.indexBus.operateAddrLabel')">
{{formDetailBus.userInfoBusVo.operateAddr}} {{formDetailBus.userInfoBusVo.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 @click="cancel"> </el-button> <el-button @click="cancel">{{ $t('common.button.close') }}</el-button>
</div> </div>
</el-dialog> </el-dialog>
</div> </div>
@ -401,55 +399,58 @@ export default {
// //
rules: { rules: {
account: [ account: [
{ required: true, message: this.$t('business.userManager.userRegister.accountRequired'), trigger: 'blur' }, { required: true, message: this.$t('business.merchant.indexBus.accountRequired'), trigger: "blur" }
{ min: 2, max: 20, message: this.$t('business.userManager.userRegister.accountLength'), trigger: 'blur' }
],
phone: [
{ required: true, message: this.$t('business.userManager.userRegister.phoneRequired'), trigger: 'blur' },
{ pattern: /^1[3|4|5|6|7|8|9][0-9]\d{8}$/, message: this.$t('business.userManager.userRegister.phoneFormat'), trigger: 'blur' }
], ],
userType: [ userType: [
{ required: true, message: this.$t('business.userManager.userRegister.userTypeRequired'), trigger: 'change' } { required: true, message: this.$t('business.merchant.indexBus.userTypeRequired'), trigger: "change" }
], ],
userLevel: [ userLevel: [
{ required: true, message: this.$t('business.userManager.userRegister.userLevelRequired'), trigger: 'change' } { required: true, message: this.$t('business.merchant.indexBus.userLevelRequired'), trigger: "change" }
],
merchantName: [
{ required: true, message: this.$t('business.userManager.userRegister.merchantNameRequired'), trigger: 'blur' }
],
license: [
{ required: true, message: this.$t('business.userManager.userRegister.licenseRequired'), trigger: 'blur' }
], ],
legalPerson: [ legalPerson: [
{ required: true, message: this.$t('business.userManager.userRegister.legalPersonRequired'), trigger: 'blur' } { required: true, message: this.$t('business.merchant.indexBus.legalPersonRequired'), trigger: "blur" }
], ],
operateStatus: [ operateStatus: [
{ required: true, message: this.$t('business.userManager.userRegister.operateStatusRequired'), trigger: 'change' } { required: true, message: this.$t('business.merchant.indexBus.operateStatusRequired'), trigger: "change" }
], ],
operateAddr: [ operateAddr: [
{ required: true, message: this.$t('business.userManager.userRegister.operateAddrRequired'), trigger: 'blur' } { required: true, message: this.$t('business.merchant.indexBus.operateAddrRequired'), trigger: "blur" }
] ],
name: [
{ required: true, message: this.$t('business.merchant.indexBus.nameRequired'), trigger: "blur" }
],
gender: [
{ required: true, message: this.$t('business.merchant.indexBus.genderRequired'), trigger: "blur" }
],
idCard: [
{ required: true,pattern: /^\d+$/, message: this.$t('business.merchant.indexBus.idCardNumberOnly'), trigger: "blur" }
],
phone: [
{ required: true,pattern: /^\d+$/, message: this.$t('business.merchant.indexBus.phoneNumberOnly'), trigger: "blur"}
],
age: [
{ required: true,pattern: /^\d+$/, message: this.$t('business.merchant.indexBus.ageNumberOnly'), trigger: "blur"}
],
addr: [
{ required: true, message: this.$t('business.merchant.indexBus.addrRequired'), trigger: "blur" }
],
merchantName: [
{ required: true, message: this.$t('business.merchant.indexBus.merchantNameRequired'), trigger: "blur" }
],
}, },
options_userType: [{ options_userType: [{
value: '1', value: '1',
label: this.$t('business.userManager.userRegister.userTypeMerchant') label: this.$t('business.merchant.indexBus.userTypeEnterprise')
}], }],
options_userLevel: [{ options_userLevel: [{
value: '0', value: '0',
label: this.$t('business.userManager.userRegister.userLevelNormal') label: this.$t('business.merchant.indexBus.userLevelNormal')
}, { }, {
value: '1', value: '1',
label: this.$t('business.userManager.userRegister.userLevelVIP') label: this.$t('business.merchant.indexBus.userLevelVIP')
}, { }, {
value: '2', value: '2',
label: this.$t('business.userManager.userRegister.userLevelMerchant') label: this.$t('business.merchant.indexBus.userLevelEnterprise')
}],
options_operateStatus: [{
value: 'active',
label: this.$t('business.userManager.userRegister.operateStatusActive')
}, {
value: 'cancelled',
label: this.$t('business.userManager.userRegister.operateStatusCancelled')
}] }]
}; };
}, },
@ -513,7 +514,7 @@ export default {
handleAdd() { handleAdd() {
this.reset(); this.reset();
this.open = true; this.open = true;
this.title = $t('business.userManager.userRegister.addTitle'); this.title = this.$t('business.merchant.indexBus.addTitle');
}, },
/** 详情按钮操作 */ /** 详情按钮操作 */
handleDetail(row){ handleDetail(row){
@ -530,7 +531,7 @@ export default {
this.formDetailBus = response.data; this.formDetailBus = response.data;
this.detailOpenBus = true; this.detailOpenBus = true;
} }
this.title = $t('business.userManager.userRegister.detailTitle'); this.title = this.$t('business.merchant.indexBus.detailTitle');
}); });
}, },
/** 修改按钮操作 */ /** 修改按钮操作 */
@ -542,7 +543,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 = $t('business.userManager.userRegister.editTitle'); this.title = this.$t('business.merchant.indexBus.editTitle');
}); });
}, },
/** 提交按钮 */ /** 提交按钮 */
@ -552,7 +553,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('common.promptMsg.editSuccess'));
this.open = false; this.open = false;
this.getList(); this.getList();
}).finally(() => { }).finally(() => {
@ -560,7 +561,7 @@ export default {
}); });
} else { } else {
addUserRegister(this.form).then(response => { addUserRegister(this.form).then(response => {
this.$modal.msgSuccess("新增成功"); this.$modal.msgSuccess(this.$t('common.promptMsg.addSuccess'));
this.open = false; this.open = false;
this.getList(); this.getList();
}).finally(() => { }).finally(() => {
@ -575,7 +576,7 @@ export default {
this.$refs["formInfo"].validate(valid => { this.$refs["formInfo"].validate(valid => {
if (valid) { if (valid) {
addUserInfo(this.formInfo).then(response => { addUserInfo(this.formInfo).then(response => {
this.$modal.msgSuccess(this.$t('common.addSuccess')); this.$modal.msgSuccess(this.$t('common.promptMsg.addSuccess'));
this.openInfo = false; this.openInfo = false;
this.getList(); this.getList();
}).finally(() => { }).finally(() => {
@ -589,7 +590,7 @@ export default {
this.$refs["formInfoBus"].validate(valid => { this.$refs["formInfoBus"].validate(valid => {
if (valid) { if (valid) {
addUserInfoBus(this.formInfoBus).then(response => { addUserInfoBus(this.formInfoBus).then(response => {
this.$modal.msgSuccess(this.$t('common.addSuccess')); this.$modal.msgSuccess(this.$t('common.promptMsg.addSuccess'));
this.openInfoBus = false; this.openInfoBus = false;
this.getList(); this.getList();
}).finally(() => { }).finally(() => {
@ -604,16 +605,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 = this.$t('business.userManager.userRegister.confirmDelete', { account: account }); msg = this.$t('business.merchant.indexBus.deleteConfirmAccount', { account: account });
else else
msg = this.$t('business.userManager.userRegister.confirmBatchDelete'); msg = this.$t('business.merchant.indexBus.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.$t('common.deleteSuccess')); this.$modal.msgSuccess(this.$t('common.promptMsg.deleteSuccess'));
}).catch(() => { }).catch(() => {
}).finally(() => { }).finally(() => {
this.loading = false; this.loading = false;
@ -635,7 +636,7 @@ export default {
this.formInfoBus = row; this.formInfoBus = row;
this.openInfoBus = true; this.openInfoBus = true;
} }
this.title = this.$t('business.userInfo.addTitle'); this.title = this.$t('business.merchant.indexBus.addTitle');
}, },
/** /**
@ -643,13 +644,13 @@ export default {
* @param row * @param row
*/ */
passwordReset(row) { passwordReset(row) {
this.$modal.confirm(this.$t('business.userManager.userRegister.confirmResetPassword')).then(() => { this.$modal.confirm(this.$t('business.merchant.indexBus.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.$t('business.userManager.userRegister.resetSuccess')); this.$modal.msgSuccess(this.$t('business.merchant.indexBus.passwordResetSuccess'));
}).catch(() => { }).catch(() => {
}).finally(() => { }).finally(() => {
this.loading = false; this.loading = false;
@ -661,13 +662,13 @@ export default {
* @param row * @param row
*/ */
accountLock(row) { accountLock(row) {
this.$modal.confirm(this.$t('business.userManager.userRegister.confirmLock', { account: row.account })).then(() => { this.$modal.confirm(this.$t('business.merchant.indexBus.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.$t('business.userManager.userRegister.lockSuccess')); this.$modal.msgSuccess(this.$t('business.merchant.indexBus.accountLockSuccess'));
}).catch(() => { }).catch(() => {
}).finally(() => { }).finally(() => {
this.loading = false; this.loading = false;
@ -678,13 +679,13 @@ export default {
* @param row * @param row
*/ */
accountUnlock(row) { accountUnlock(row) {
this.$modal.confirm(this.$t('business.userManager.userRegister.confirmUnlock', { account: row.account })).then(() => { this.$modal.confirm(this.$t('business.merchant.indexBus.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.$t('business.userManager.userRegister.unlockSuccess')); this.$modal.msgSuccess(this.$t('business.merchant.indexBus.accountUnlockSuccess'));
}).catch(() => { }).catch(() => {
}).finally(() => { }).finally(() => {
this.loading = false; this.loading = false;

30
src/views/business/userVerification/index.vue

@ -369,11 +369,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.$("business.userManager.userVerification.verification");
}else { }else {
this.form.userId = row.userId; this.form.userId = row.userId;
this.open = true; this.open = true;
this.title = "实名认证"; this.title = this.$("business.userManager.userVerification.verification");
} }
}, },
/** 详情按钮操作 */ /** 详情按钮操作 */
@ -381,14 +381,13 @@ export default {
this.reset(); this.reset();
this.form = row; this.form = row;
this.detailOpen = true; this.detailOpen = true;
this.title = "实名认证"; audit },
},
/** 审核按钮操作 */ /** 审核按钮操作 */
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.$("business.userManager.userVerification.auditVerification");
}, },
/** 修改按钮操作 */ /** 修改按钮操作 */
handleUpdate(row) { handleUpdate(row) {
@ -399,7 +398,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.$("business.userManager.userVerification.editVerification");
}); });
}, },
/** 提交按钮 */ /** 提交按钮 */
@ -409,7 +408,7 @@ export default {
this.buttonLoading = true; this.buttonLoading = true;
if (this.form.id != null) { if (this.form.id != null) {
updateUserVerification(this.form).then(response => { updateUserVerification(this.form).then(response => {
this.$modal.msgSuccess("认证信息已提交,请等待审核!"); this.$modal.msgSuccess(this.$t('business.userManager.userVerification.submitSuccess'));
this.open = false; this.open = false;
this.getList(); this.getList();
}).finally(() => { }).finally(() => {
@ -417,7 +416,7 @@ export default {
}); });
} else { } else {
addUserVerification(this.form).then(response => { addUserVerification(this.form).then(response => {
this.$modal.msgSuccess("认证信息已提交,请等待审核!"); this.$modal.msgSuccess(this.$t('business.userManager.userVerification.submitSuccess'));
this.open = false; this.open = false;
this.getList(); this.getList();
}).finally(() => { }).finally(() => {
@ -430,13 +429,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('common.promptMsg.deleteConfirm')).then(() => {
this.loading = true; this.loading = true;
return delUserVerification(ids); return delUserVerification(ids);
}).then(() => { }).then(() => {
this.loading = false; this.loading = false;
this.getList(); this.getList();
this.$modal.msgSuccess("删除成功"); this.$modal.msgSuccess(this.$t('common.promptMsg.deleteSuccess'));
}).catch(() => { }).catch(() => {
}).finally(() => { }).finally(() => {
this.loading = false; this.loading = false;
@ -451,15 +450,15 @@ export default {
/** 审核拒绝*/ /** 审核拒绝*/
submitRefuse() { submitRefuse() {
this.rules.failureReason = [ this.rules.failureReason = [
{ required: true, message: '拒绝原因不能为空!', trigger: 'blur' } { required: true, message: this.$t('business.userManager.userVerification.failureReasonRequired'), trigger: 'blur' }
]; ];
this.$refs["auditForm"].validate(valid => { this.$refs["auditForm"].validate(valid => {
if (valid) { if (valid) {
this.$modal.confirm('是否【拒绝】用户"' + this.auditForm.userInfoName + '"的认证申请?').then(() => { this.$modal.confirm(this.$t('business.userManager.userVerification.confirmRefuse')).then(() => {
this.buttonLoading = true; this.buttonLoading = true;
this.auditForm.status = "2"; this.auditForm.status = "2";
userVerificationAudit(this.auditForm).then(response => { userVerificationAudit(this.auditForm).then(response => {
this.$modal.msgSuccess("审核结果:拒绝"); this.$modal.msgSuccess(this.$t('business.userManager.userVerification.refuseSuccess'));
this.auditOpen = false; this.auditOpen = false;
this.getList(); this.getList();
}).finally(() => { }).finally(() => {
@ -471,13 +470,12 @@ export default {
}, },
/** 审核通过*/ /** 审核通过*/
submitPass() { submitPass() {
this.$refs["auditForm"].clearValidate("failureReason"); this.$refs["auditForm"].clearValidate("failureReason");
this.$modal.confirm('是否【通过】用户"' + this.auditForm.userInfoName + '"的认证申请?').then(() => { this.$modal.confirm(this.$t('business.userManager.userVerification.confirmPass')).then(() => {
this.buttonLoading = true; this.buttonLoading = true;
this.auditForm.status = "1"; this.auditForm.status = "1";
userVerificationAudit(this.auditForm).then(response => { userVerificationAudit(this.auditForm).then(response => {
this.$modal.msgSuccess("审核结果:通过"); this.$modal.msgSuccess(this.$t('business.userManager.userVerification.passSuccess'));
this.auditOpen = false; this.auditOpen = false;
this.getList(); this.getList();
}).finally(() => { }).finally(() => {

Loading…
Cancel
Save