|
|
@ -1,7 +1,7 @@ |
|
|
|
<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.merchant.indexBus.account')" prop="account" label-width="auto"> |
|
|
|
<el-input |
|
|
|
v-model="queryParams.account" |
|
|
|
:placeholder="$t('business.merchant.indexBus.accountPlaceholder')" |
|
|
@ -9,7 +9,7 @@ |
|
|
|
@keyup.enter.native="handleQuery" |
|
|
|
/> |
|
|
|
</el-form-item> |
|
|
|
<el-form-item :label="$t('business.merchant.indexBus.phone')" prop="phone"> |
|
|
|
<el-form-item :label="$t('business.merchant.indexBus.phone')" prop="phone" label-width="auto"> |
|
|
|
<el-input |
|
|
|
v-model="queryParams.phone" |
|
|
|
:placeholder="$t('business.merchant.indexBus.phonePlaceholder')" |
|
|
@ -17,8 +17,9 @@ |
|
|
|
@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.merchant.indexBus.userLevel')" prop="userLevel" label-width="auto"> |
|
|
|
<el-select v-model="queryParams.userLevel" size="medium" |
|
|
|
:placeholder="$t('business.merchant.indexBus.userLevelPlaceholder')"> |
|
|
|
<el-option |
|
|
|
v-for="item in options_userLevel" |
|
|
|
:key="item.value" |
|
|
@ -28,7 +29,10 @@ |
|
|
|
</el-select> |
|
|
|
</el-form-item> |
|
|
|
<el-form-item> |
|
|
|
<el-button type="primary" icon="el-icon-search" size="mini" @click="handleQuery">{{ $t('common.button.search') }}</el-button> |
|
|
|
<el-button type="primary" icon="el-icon-search" size="mini" @click="handleQuery">{{ |
|
|
|
$t('common.button.search') |
|
|
|
}} |
|
|
|
</el-button> |
|
|
|
<el-button icon="el-icon-refresh" size="mini" @click="resetQuery">{{ $t('common.button.reset') }}</el-button> |
|
|
|
</el-form-item> |
|
|
|
</el-form> |
|
|
@ -42,7 +46,8 @@ |
|
|
|
size="mini" |
|
|
|
@click="handleAdd" |
|
|
|
v-hasPermi="['business:userRegister:add']" |
|
|
|
>{{ $t('common.button.add') }}</el-button> |
|
|
|
>{{ $t('common.button.add') }} |
|
|
|
</el-button> |
|
|
|
</el-col> |
|
|
|
<el-col :span="1.5"> |
|
|
|
<el-button |
|
|
@ -53,7 +58,8 @@ |
|
|
|
:disabled="single" |
|
|
|
@click="handleUpdate" |
|
|
|
v-hasPermi="['business:userRegister:edit']" |
|
|
|
>{{ $t('common.button.edit') }}</el-button> |
|
|
|
>{{ $t('common.button.edit') }} |
|
|
|
</el-button> |
|
|
|
</el-col> |
|
|
|
<el-col :span="1.5"> |
|
|
|
<el-button |
|
|
@ -64,7 +70,8 @@ |
|
|
|
:disabled="multiple" |
|
|
|
@click="handleDelete" |
|
|
|
v-hasPermi="['business:userRegister:remove']" |
|
|
|
>{{ $t('common.button.delete') }}</el-button> |
|
|
|
>{{ $t('common.button.delete') }} |
|
|
|
</el-button> |
|
|
|
</el-col> |
|
|
|
<el-col :span="1.5"> |
|
|
|
<el-button |
|
|
@ -74,60 +81,86 @@ |
|
|
|
size="mini" |
|
|
|
@click="handleExport" |
|
|
|
v-hasPermi="['business:userRegister:export']" |
|
|
|
>{{ $t('common.button.export') }}</el-button> |
|
|
|
>{{ $t('common.button.export') }} |
|
|
|
</el-button> |
|
|
|
</el-col> |
|
|
|
<right-toolbar :showSearch.sync="showSearch" @queryTable="getList"></right-toolbar> |
|
|
|
</el-row> |
|
|
|
|
|
|
|
<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 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"> |
|
|
|
<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.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> |
|
|
|
</template> |
|
|
|
</el-table-column> |
|
|
|
<el-table-column :label="$t('business.merchant.indexBus.userType')" align="center" prop="userType" > |
|
|
|
<el-table-column :label="$t('business.merchant.indexBus.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.merchant.indexBus.userTypeNormal') |
|
|
|
}} |
|
|
|
</el-tag> |
|
|
|
<el-tag type="warning" v-if="scope.row.userType == '1'">{{ |
|
|
|
$t('business.merchant.indexBus.userTypeEnterprise') |
|
|
|
}} |
|
|
|
</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.merchant.indexBus.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> |
|
|
|
</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('business.merchant.indexBus.contactAddress')" align="center" prop="contactAddressBus"/> |
|
|
|
<el-table-column :label="$t('common.tableMsg.operation')" align="center" width="200" class-name="small-padding fixed-width"> |
|
|
|
<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('business.merchant.indexBus.contactAddress')" align="center" |
|
|
|
prop="contactAddressBus"/> |
|
|
|
<el-table-column :label="$t('common.tableMsg.operation')" 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')" |
|
|
|
<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('business.userManager.userRegister.supplement') }}</el-button> |
|
|
|
<el-button v-if="(scope.row.addressInfo != '' && scope.row.userType == '0') || (scope.row.address != '' && scope.row.userType == '1')" |
|
|
|
>{{ $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" |
|
|
|
icon="el-icon-view" |
|
|
|
@click="handleDetail(scope.row)" |
|
|
|
>{{ $t('common.button.detail') }}</el-button> |
|
|
|
>{{ $t('common.button.detail') }} |
|
|
|
</el-button> |
|
|
|
<el-button |
|
|
|
size="mini" |
|
|
|
type="text" |
|
|
|
icon="el-icon-edit" |
|
|
|
@click="handleUpdate(scope.row)" |
|
|
|
v-hasPermi="['business:userRegister:edit']" |
|
|
|
>{{ $t('common.button.edit') }}</el-button> |
|
|
|
>{{ $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> |
|
|
@ -140,7 +173,8 @@ |
|
|
|
icon="el-icon-refresh" |
|
|
|
@click="passwordReset(scope.row)" |
|
|
|
v-hasPermi="['business:userRegister:edit']" |
|
|
|
>{{ $t('business.common.passwordReset') }}</el-button> |
|
|
|
>{{ $t('business.common.passwordReset') }} |
|
|
|
</el-button> |
|
|
|
</el-dropdown-item> |
|
|
|
<el-dropdown-item> |
|
|
|
<el-button v-if="(scope.row.status != '3')" |
|
|
@ -149,14 +183,16 @@ |
|
|
|
icon="el-icon-lock" |
|
|
|
@click="accountLock(scope.row)" |
|
|
|
v-hasPermi="['business:userRegister:edit']" |
|
|
|
>{{ $t('business.common.accountFreezing') }}</el-button> |
|
|
|
>{{ $t('business.common.accountFreezing') }} |
|
|
|
</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.common.accountUnfreezing') }} |
|
|
|
</el-button> |
|
|
|
</el-dropdown-item> |
|
|
|
<el-dropdown-item> |
|
|
|
<el-button |
|
|
@ -165,7 +201,8 @@ |
|
|
|
icon="el-icon-delete" |
|
|
|
@click="handleDelete(scope.row)" |
|
|
|
v-hasPermi="['business:userRegister:remove']" |
|
|
|
>{{ $t('common.button.delete') }}</el-button> |
|
|
|
>{{ $t('common.button.delete') }} |
|
|
|
</el-button> |
|
|
|
</el-dropdown-item> |
|
|
|
</el-dropdown-menu> |
|
|
|
</el-dropdown> |
|
|
@ -185,13 +222,13 @@ |
|
|
|
<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-input v-model="form.account" :placeholder="$t('business.merchant.indexBus.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-input v-model="form.phone" :placeholder="$t('business.merchant.indexBus.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-select v-model="form.userType" :placeholder="$t('business.merchant.indexBus.userTypePlaceholder')"> |
|
|
|
<el-option |
|
|
|
v-for="item in options_userType" |
|
|
|
:key="item.value" |
|
|
@ -201,7 +238,8 @@ |
|
|
|
</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-select v-model="form.userLevel" size="medium" |
|
|
|
:placeholder="$t('business.merchant.indexBus.userLevelPlaceholder')"> |
|
|
|
<el-option |
|
|
|
v-for="item in options_userLevel" |
|
|
|
:key="item.value" |
|
|
@ -212,7 +250,10 @@ |
|
|
|
</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 :loading="buttonLoading" type="primary" @click="submitForm">{{ |
|
|
|
$t('common.button.confirm') |
|
|
|
}} |
|
|
|
</el-button> |
|
|
|
<el-button @click="cancel">{{ $t('common.button.cancel') }}</el-button> |
|
|
|
</div> |
|
|
|
</el-dialog> |
|
|
@ -221,7 +262,7 @@ |
|
|
|
<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-input v-model="formInfo.name" :placeholder="$t('business.merchant.indexBus.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')"> |
|
|
@ -231,20 +272,23 @@ |
|
|
|
<!-- <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-input v-model="formInfo.idCard" :placeholder="$t('business.merchant.indexBus.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-input v-model="formInfo.phone" :placeholder="$t('business.merchant.indexBus.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-input v-model="formInfo.age" :placeholder="$t('business.merchant.indexBus.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-input v-model="formInfo.addr" :placeholder="$t('business.merchant.indexBus.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 :loading="buttonLoading" type="primary" @click="submitFormInfo">{{ |
|
|
|
$t('common.button.confirm') |
|
|
|
}} |
|
|
|
</el-button> |
|
|
|
<el-button @click="cancel">{{ $t('common.button.cancel') }}</el-button> |
|
|
|
</div> |
|
|
|
</el-dialog> |
|
|
@ -253,19 +297,23 @@ |
|
|
|
<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-input v-model="formInfoBus.merchantName" |
|
|
|
:placeholder="$t('business.merchant.indexBus.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-input v-model="formInfoBus.license" :placeholder="$t('business.merchant.indexBus.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-input v-model="formInfoBus.licenseOther" |
|
|
|
:placeholder="$t('business.merchant.indexBus.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-input v-model="formInfoBus.legalPerson" |
|
|
|
:placeholder="$t('business.merchant.indexBus.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-select v-model="formInfoBus.operateStatus" |
|
|
|
:placeholder="$t('business.merchant.indexBus.operateStatusPlaceholder')"> |
|
|
|
<el-option |
|
|
|
v-for="item in options_operateStatus" |
|
|
|
:key="item.value" |
|
|
@ -275,14 +323,19 @@ |
|
|
|
</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-input v-model="formInfoBus.operateAddr" |
|
|
|
:placeholder="$t('business.merchant.indexBus.operateAddrPlaceholder')"/> |
|
|
|
</el-form-item> |
|
|
|
<el-form-item :label="$t('business.merchant.indexBus.contactAddress')" prop="contactAddress"> |
|
|
|
<el-input v-model="formInfoBus.contactAddress" :placeholder="$t('business.userManager.userRegister.contactAddressPlaceholder')" /> |
|
|
|
<el-input v-model="formInfoBus.contactAddress" |
|
|
|
:placeholder="$t('business.userManager.userRegister.contactAddressPlaceholder')"/> |
|
|
|
</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 :loading="buttonLoading" type="primary" @click="submitFormInfoBus">{{ |
|
|
|
$t('common.button.confirm') |
|
|
|
}} |
|
|
|
</el-button> |
|
|
|
<el-button @click="cancel">{{ $t('common.button.cancel') }}</el-button> |
|
|
|
</div> |
|
|
|
</el-dialog> |
|
|
@ -291,28 +344,28 @@ |
|
|
|
<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')"> |
|
|
|
{{formDetailBus.account}} |
|
|
|
{{ formDetailBus.account }} |
|
|
|
</el-form-item> |
|
|
|
<el-form-item :label="$t('business.merchant.indexBus.merchantNameLabel')"> |
|
|
|
{{formDetailBus.userInfoBusVo.merchantName}} |
|
|
|
{{ formDetailBus.userInfoBusVo.merchantName }} |
|
|
|
</el-form-item> |
|
|
|
<el-form-item :label="$t('business.merchant.indexBus.licenseLabel')"> |
|
|
|
{{formDetailBus.userInfoBusVo.license}} |
|
|
|
{{ formDetailBus.userInfoBusVo.license }} |
|
|
|
</el-form-item> |
|
|
|
<el-form-item :label="$t('business.merchant.indexBus.licenseOtherLabel')"> |
|
|
|
{{formDetailBus.userInfoBusVo.licenseOther}} |
|
|
|
{{ formDetailBus.userInfoBusVo.licenseOther }} |
|
|
|
</el-form-item> |
|
|
|
<el-form-item :label="$t('business.merchant.indexBus.legalPersonLabel')"> |
|
|
|
{{formDetailBus.userInfoBusVo.legalPerson}} |
|
|
|
{{ formDetailBus.userInfoBusVo.legalPerson }} |
|
|
|
</el-form-item> |
|
|
|
<el-form-item :label="$t('business.merchant.indexBus.operateStatusLabel')"> |
|
|
|
{{formDetailBus.userInfoBusVo.operateStatus}} |
|
|
|
{{ formDetailBus.userInfoBusVo.operateStatus }} |
|
|
|
</el-form-item> |
|
|
|
<el-form-item :label="$t('business.merchant.indexBus.operateAddrLabel')"> |
|
|
|
{{formDetailBus.userInfoBusVo.operateAddr}} |
|
|
|
{{ formDetailBus.userInfoBusVo.operateAddr }} |
|
|
|
</el-form-item> |
|
|
|
<el-form-item :label="$t('business.merchant.indexBus.contactAddress')"> |
|
|
|
{{formDetailBus.userInfoBusVo.contactAddress}} |
|
|
|
{{ formDetailBus.userInfoBusVo.contactAddress }} |
|
|
|
</el-form-item> |
|
|
|
</el-form> |
|
|
|
<div slot="footer" class="dialog-footer"> |
|
|
@ -388,16 +441,16 @@ export default { |
|
|
|
}, |
|
|
|
// 表单参数 |
|
|
|
form: { |
|
|
|
userInfoVo:{}, |
|
|
|
userInfoBusVo:{} |
|
|
|
userInfoVo: {}, |
|
|
|
userInfoBusVo: {} |
|
|
|
}, |
|
|
|
// 用户详情表单参数 |
|
|
|
formDetail: { |
|
|
|
userInfoVo:{} |
|
|
|
userInfoVo: {} |
|
|
|
}, |
|
|
|
// 用户详情表单参数-商企 |
|
|
|
formDetailBus: { |
|
|
|
userInfoBusVo:{} |
|
|
|
userInfoBusVo: {} |
|
|
|
}, |
|
|
|
// 用户信息表单参数-个人 |
|
|
|
formInfo: {}, |
|
|
@ -406,46 +459,61 @@ export default { |
|
|
|
// 表单校验 |
|
|
|
rules: { |
|
|
|
account: [ |
|
|
|
{ required: true, message: this.$t('business.merchant.indexBus.accountRequired'), trigger: "blur" } |
|
|
|
{required: true, message: this.$t('business.merchant.indexBus.accountRequired'), trigger: "blur"} |
|
|
|
], |
|
|
|
userType: [ |
|
|
|
{ required: true, message: this.$t('business.merchant.indexBus.userTypeRequired'), trigger: "change" } |
|
|
|
{required: true, message: this.$t('business.merchant.indexBus.userTypeRequired'), trigger: "change"} |
|
|
|
], |
|
|
|
userLevel: [ |
|
|
|
{ required: true, message: this.$t('business.merchant.indexBus.userLevelRequired'), trigger: "change" } |
|
|
|
{required: true, message: this.$t('business.merchant.indexBus.userLevelRequired'), trigger: "change"} |
|
|
|
], |
|
|
|
legalPerson: [ |
|
|
|
{ required: true, message: this.$t('business.merchant.indexBus.legalPersonRequired'), trigger: "blur" } |
|
|
|
{required: true, message: this.$t('business.merchant.indexBus.legalPersonRequired'), trigger: "blur"} |
|
|
|
], |
|
|
|
operateStatus: [ |
|
|
|
{ required: true, message: this.$t('business.merchant.indexBus.operateStatusRequired'), trigger: "change" } |
|
|
|
{required: true, message: this.$t('business.merchant.indexBus.operateStatusRequired'), trigger: "change"} |
|
|
|
], |
|
|
|
operateAddr: [ |
|
|
|
{ required: true, message: this.$t('business.merchant.indexBus.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" } |
|
|
|
{required: true, message: this.$t('business.merchant.indexBus.nameRequired'), trigger: "blur"} |
|
|
|
], |
|
|
|
gender: [ |
|
|
|
{ required: true, message: this.$t('business.merchant.indexBus.genderRequired'), trigger: "blur" } |
|
|
|
{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" } |
|
|
|
{ |
|
|
|
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"} |
|
|
|
{ |
|
|
|
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"} |
|
|
|
{ |
|
|
|
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" } |
|
|
|
{required: true, message: this.$t('business.merchant.indexBus.addrRequired'), trigger: "blur"} |
|
|
|
], |
|
|
|
contactAddress: [ |
|
|
|
{ required: true, message: this.$t('business.merchant.indexBus.contactAddressRequired'), trigger: "blur" } |
|
|
|
{required: true, message: this.$t('business.merchant.indexBus.contactAddressRequired'), trigger: "blur"} |
|
|
|
], |
|
|
|
merchantName: [ |
|
|
|
{ required: true, message: this.$t('business.merchant.indexBus.merchantNameRequired'), trigger: "blur" } |
|
|
|
{required: true, message: this.$t('business.merchant.indexBus.merchantNameRequired'), trigger: "blur"} |
|
|
|
], |
|
|
|
}, |
|
|
|
options_userType: [{ |
|
|
@ -517,7 +585,7 @@ export default { |
|
|
|
// 多选框选中数据 |
|
|
|
handleSelectionChange(selection) { |
|
|
|
this.ids = selection.map(item => item.id) |
|
|
|
this.single = selection.length!==1 |
|
|
|
this.single = selection.length !== 1 |
|
|
|
this.multiple = !selection.length |
|
|
|
}, |
|
|
|
/** 新增按钮操作 */ |
|
|
@ -527,17 +595,17 @@ export default { |
|
|
|
this.title = this.$t('business.merchant.indexBus.addTitle'); |
|
|
|
}, |
|
|
|
/** 详情按钮操作 */ |
|
|
|
handleDetail(row){ |
|
|
|
handleDetail(row) { |
|
|
|
this.loading = true; |
|
|
|
this.reset(); |
|
|
|
const id = row.id || this.ids |
|
|
|
getUserRegister(id).then(response => { |
|
|
|
this.loading = false; |
|
|
|
if (row.userType == "0"){ |
|
|
|
if (row.userType == "0") { |
|
|
|
this.formDetail = response.data; |
|
|
|
this.detailOpen = true; |
|
|
|
} |
|
|
|
if (row.userType == "1"){ |
|
|
|
if (row.userType == "1") { |
|
|
|
this.formDetailBus = response.data; |
|
|
|
this.detailOpenBus = true; |
|
|
|
} |
|
|
@ -614,8 +682,8 @@ export default { |
|
|
|
const account = row.account; |
|
|
|
const ids = row.id || this.ids; |
|
|
|
var msg = ""; |
|
|
|
if(null != account) |
|
|
|
msg = this.$t('business.merchant.indexBus.deleteConfirmAccount', { account: account }); |
|
|
|
if (null != account) |
|
|
|
msg = this.$t('business.merchant.indexBus.deleteConfirmAccount', {account: account}); |
|
|
|
else |
|
|
|
msg = this.$t('business.merchant.indexBus.deleteConfirmBatch'); |
|
|
|
this.$modal.confirm(msg).then(() => { |
|
|
@ -638,11 +706,11 @@ export default { |
|
|
|
}, |
|
|
|
handleAddInfo(row) { |
|
|
|
this.reset(); |
|
|
|
if (row.userType == "0"){ |
|
|
|
if (row.userType == "0") { |
|
|
|
this.formInfo = row; |
|
|
|
this.openInfo = true; |
|
|
|
} |
|
|
|
if (row.userType == "1"){ |
|
|
|
if (row.userType == "1") { |
|
|
|
this.formInfoBus = row; |
|
|
|
this.openInfoBus = true; |
|
|
|
} |
|
|
@ -672,7 +740,7 @@ 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.merchant.indexBus.accountLockConfirm', {account: row.account})).then(() => { |
|
|
|
this.loading = true; |
|
|
|
return accountLock(row); |
|
|
|
}).then(() => { |
|
|
@ -689,7 +757,7 @@ 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.merchant.indexBus.accountUnlockConfirm', {account: row.account})).then(() => { |
|
|
|
this.loading = true; |
|
|
|
return accountLock(row); |
|
|
|
}).then(() => { |
|
|
@ -710,6 +778,7 @@ export default { |
|
|
|
cursor: pointer; |
|
|
|
color: #409EFF; |
|
|
|
} |
|
|
|
|
|
|
|
.el-icon-arrow-down { |
|
|
|
font-size: 12px; |
|
|
|
} |
|
|
|