|
@ -5,8 +5,8 @@ |
|
|
<el-input v-model="queryParams.accountCode" :placeholder="$t('business.supplementaryInfo.userAccount.inputAccountCode')" |
|
|
<el-input v-model="queryParams.accountCode" :placeholder="$t('business.supplementaryInfo.userAccount.inputAccountCode')" |
|
|
clearable @keyup.enter.native="handleQuery"/> |
|
|
clearable @keyup.enter.native="handleQuery"/> |
|
|
</el-form-item> |
|
|
</el-form-item> |
|
|
<el-form-item label="账户类型" prop="accountType"> |
|
|
<el-form-item :label="$t('business.supplementaryInfo.userAccount.accountType')" prop="accountType"> |
|
|
<el-select v-model="queryParams.accountType" size="medium" placeholder="请选择账户类型"> |
|
|
<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="账户状态" prop="status"> |
|
|
<el-form-item :label="$t('business.supplementaryInfo.userAccount.accountStatus')" prop="status"> |
|
|
<el-select v-model="queryParams.status" size="medium" placeholder="请选择账户状态"> |
|
|
<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,7 +50,7 @@ |
|
|
|
|
|
|
|
|
<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="用户名称" 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> |
|
@ -64,17 +64,17 @@ |
|
|
prop="accountAmount" |
|
|
prop="accountAmount" |
|
|
:formatter="formatCurrency"> |
|
|
:formatter="formatCurrency"> |
|
|
</el-table-column> |
|
|
</el-table-column> |
|
|
<el-table-column label="账户类型" 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">普通账户</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">商企账户</el-tag> |
|
|
<el-tag type="warning" v-if="scope.row.accountType == 1">{{$t('business.supplementaryInfo.userAccount.accountTypeEnterprise')}}</el-tag> |
|
|
<el-tag type="success" v-if="scope.row.accountType == 2">代理账户</el-tag> |
|
|
<el-tag type="success" v-if="scope.row.accountType == 2">{{$t('business.supplementaryInfo.userAccount.accountTypeAgent')}}</el-tag> |
|
|
</template> |
|
|
</template> |
|
|
</el-table-column> |
|
|
</el-table-column> |
|
|
<el-table-column label="账户级别" 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">主账户</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">子账户</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.supplementaryInfo.userAccount.status')" align="center" prop="status"> |
|
|
<el-table-column :label="$t('business.supplementaryInfo.userAccount.status')" align="center" prop="status"> |
|
@ -88,7 +88,7 @@ |
|
|
<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)" |
|
|
v-if="(scope.row.id == null)" |
|
|
v-if="(scope.row.id == null)" |
|
|
v-hasPermi="['business:userAccount:edit']">创建 |
|
|
v-hasPermi="['business:userAccount:edit']">{{ $t('common.button.add') }} |
|
|
</el-button> |
|
|
</el-button> |
|
|
<el-button size="mini" type="text" icon="el-icon-edit" @click="handleUpdate(scope.row)" |
|
|
<el-button size="mini" type="text" icon="el-icon-edit" @click="handleUpdate(scope.row)" |
|
|
v-if="(scope.row.id != null)" |
|
|
v-if="(scope.row.id != null)" |
|
@ -96,11 +96,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']">冻结 |
|
|
v-hasPermi="['business:userAccount:remove']">{{ $t('business.supplementaryInfo.userAccount.statusFrozen') }} |
|
|
</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']">解冻 |
|
|
v-hasPermi="['business:userAccount:remove']">{{ $t('business.supplementaryInfo.userAccount.statusUnFrozen') }} |
|
|
</el-button> |
|
|
</el-button> |
|
|
</template> |
|
|
</template> |
|
|
</el-table-column> |
|
|
</el-table-column> |
|
@ -115,8 +115,8 @@ |
|
|
<el-form-item :label="$t('business.supplementaryInfo.userAccount.detailAccountName')" prop="accountName"> |
|
|
<el-form-item :label="$t('business.supplementaryInfo.userAccount.detailAccountName')" prop="accountName"> |
|
|
<el-input v-model="form.accountName" :placeholder="$t('business.supplementaryInfo.userAccount.inputAccountName')"/> |
|
|
<el-input v-model="form.accountName" :placeholder="$t('business.supplementaryInfo.userAccount.inputAccountName')"/> |
|
|
</el-form-item> |
|
|
</el-form-item> |
|
|
<el-form-item label="账户级别" prop="isPrimary"> |
|
|
<el-form-item :label="$t('business.supplementaryInfo.userAccount.accountLevel')" prop="isPrimary"> |
|
|
<el-select v-model="form.isPrimary" placeholder="请选择账户级别"> |
|
|
<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" |
|
@ -214,24 +214,24 @@ export default { |
|
|
rules: {}, |
|
|
rules: {}, |
|
|
options_accountLevel: [{ |
|
|
options_accountLevel: [{ |
|
|
value: "0", |
|
|
value: "0", |
|
|
label: '主账户' |
|
|
label: this.$t('business.supplementaryInfo.userAccount.accountLevelPrimary') |
|
|
}, { |
|
|
}, { |
|
|
value: "1", |
|
|
value: "1", |
|
|
label: '子账户' |
|
|
label: this.$t('business.supplementaryInfo.userAccount.accountLevelSub') |
|
|
}], |
|
|
}], |
|
|
options_accountType: [{ |
|
|
options_accountType: [{ |
|
|
value: 0, |
|
|
value: 0, |
|
|
label: '普通账户' |
|
|
label: this.$t('business.supplementaryInfo.userAccount.accountTypeNormal') |
|
|
}, { |
|
|
}, { |
|
|
value: 1, |
|
|
value: 1, |
|
|
label: '企业账户' |
|
|
label: this.$t('business.supplementaryInfo.userAccount.accountTypeEnterprise') |
|
|
}], |
|
|
}], |
|
|
options_accountStatus: [{ |
|
|
options_accountStatus: [{ |
|
|
value: 0, |
|
|
value: 0, |
|
|
label: '正常' |
|
|
label: this.$t('business.supplementaryInfo.userAccount.statusNormal') |
|
|
}, { |
|
|
}, { |
|
|
value: 1, |
|
|
value: 1, |
|
|
label: '冻结' |
|
|
label: this.$t('business.supplementaryInfo.userAccount.statusFrozen') |
|
|
}], |
|
|
}], |
|
|
}; |
|
|
}; |
|
|
}, |
|
|
}, |
|
|