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