|
@ -1,57 +1,97 @@ |
|
|
<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.recordTransaction.senderAccount')" prop="senderAccount"> |
|
|
<el-form-item label="用户ID" prop="senderId"> |
|
|
<el-input v-model="queryParams.senderAccount" |
|
|
<el-input |
|
|
:placeholder="$t('business.recordTransaction.senderAccountPlaceholder')" clearable |
|
|
v-model="queryParams.senderId" |
|
|
@keyup.enter.native="handleQuery"/> |
|
|
placeholder="请输入用户ID" |
|
|
|
|
|
clearable |
|
|
|
|
|
@keyup.enter.native="handleQuery" |
|
|
|
|
|
/> |
|
|
</el-form-item> |
|
|
</el-form-item> |
|
|
<el-form-item :label="$t('business.recordTransaction.receiverAccount')" prop="receiverAccount" |
|
|
<el-form-item label="账户编号" prop="senderAccount"> |
|
|
label-width="130px"> |
|
|
<el-input |
|
|
<el-input v-model="queryParams.receiverAccount" |
|
|
v-model="queryParams.senderAccount" |
|
|
:placeholder="$t('business.recordTransaction.receiverAccountPlaceholder')" clearable |
|
|
placeholder="请输入账户编号" |
|
|
@keyup.enter.native="handleQuery"/> |
|
|
clearable |
|
|
|
|
|
@keyup.enter.native="handleQuery" |
|
|
|
|
|
/> |
|
|
</el-form-item> |
|
|
</el-form-item> |
|
|
<el-form-item :label="$t('business.recordTransaction.transactionTime')"> |
|
|
<el-form-item label="账单编码" prop="billCode"> |
|
|
<el-date-picker v-model="daterangeTime" style="width: 240px" value-format="yyyy-MM-dd HH:mm:ss" type="daterange" |
|
|
<el-input |
|
|
range-separator="-" :start-placeholder="$t('common.startDate')" |
|
|
v-model="queryParams.billCode" |
|
|
:end-placeholder="$t('common.endDate')" |
|
|
placeholder="请输入账单编码" |
|
|
:default-time="['00:00:00', '23:59:59']"></el-date-picker> |
|
|
clearable |
|
|
|
|
|
@keyup.enter.native="handleQuery" |
|
|
|
|
|
/> |
|
|
</el-form-item> |
|
|
</el-form-item> |
|
|
<el-form-item :label="$t('common.createTime')"> |
|
|
<el-form-item label="目标用户ID" prop="receiverId"> |
|
|
<el-date-picker v-model="daterangeCreateTime" style="width: 240px" value-format="yyyy-MM-dd HH:mm:ss" |
|
|
<el-input |
|
|
type="daterange" range-separator="-" :start-placeholder="$t('common.startDate')" |
|
|
v-model="queryParams.receiverId" |
|
|
:end-placeholder="$t('common.endDate')" |
|
|
placeholder="请输入目标用户ID" |
|
|
:default-time="['00:00:00', '23:59:59']"></el-date-picker> |
|
|
clearable |
|
|
|
|
|
@keyup.enter.native="handleQuery" |
|
|
|
|
|
/> |
|
|
|
|
|
</el-form-item> |
|
|
|
|
|
<el-form-item label="目标用户账户编号" prop="receiverAccount"> |
|
|
|
|
|
<el-input |
|
|
|
|
|
v-model="queryParams.receiverAccount" |
|
|
|
|
|
placeholder="请输入目标用户账户编号" |
|
|
|
|
|
clearable |
|
|
|
|
|
@keyup.enter.native="handleQuery" |
|
|
|
|
|
/> |
|
|
</el-form-item> |
|
|
</el-form-item> |
|
|
<el-form-item> |
|
|
<el-form-item> |
|
|
<el-button type="primary" icon="el-icon-search" size="mini" @click="handleQuery">{{ |
|
|
<el-button type="primary" icon="el-icon-search" size="mini" @click="handleQuery">搜索</el-button> |
|
|
$t('common.search') |
|
|
<el-button icon="el-icon-refresh" size="mini" @click="resetQuery">重置</el-button> |
|
|
}} |
|
|
|
|
|
</el-button> |
|
|
|
|
|
<el-button icon="el-icon-refresh" size="mini" @click="resetQuery">{{ $t('common.reset') }}</el-button> |
|
|
|
|
|
</el-form-item> |
|
|
</el-form-item> |
|
|
</el-form> |
|
|
</el-form> |
|
|
|
|
|
|
|
|
<el-row :gutter="10" class="mb8"> |
|
|
<el-row :gutter="10" class="mb8"> |
|
|
<el-col :span="1.5"> |
|
|
<el-col :span="1.5"> |
|
|
<el-button type="primary" plain icon="el-icon-plus" size="mini" @click="handleAdd" |
|
|
<el-button |
|
|
v-hasPermi="['business:recordTransaction:add']">{{ $t('common.add') }} |
|
|
type="primary" |
|
|
|
|
|
plain |
|
|
|
|
|
icon="el-icon-plus" |
|
|
|
|
|
size="mini" |
|
|
|
|
|
@click="handleAdd" |
|
|
|
|
|
v-hasPermi="['business:recordTransaction:add']" |
|
|
|
|
|
>新增 |
|
|
</el-button> |
|
|
</el-button> |
|
|
</el-col> |
|
|
</el-col> |
|
|
<el-col :span="1.5"> |
|
|
<el-col :span="1.5"> |
|
|
<el-button type="success" plain icon="el-icon-edit" size="mini" :disabled="single" @click="handleUpdate" |
|
|
<el-button |
|
|
v-hasPermi="['business:recordTransaction:edit']">{{ $t('common.edit') }} |
|
|
type="success" |
|
|
|
|
|
plain |
|
|
|
|
|
icon="el-icon-edit" |
|
|
|
|
|
size="mini" |
|
|
|
|
|
:disabled="single" |
|
|
|
|
|
@click="handleUpdate" |
|
|
|
|
|
v-hasPermi="['business:recordTransaction:edit']" |
|
|
|
|
|
>修改 |
|
|
</el-button> |
|
|
</el-button> |
|
|
</el-col> |
|
|
</el-col> |
|
|
<el-col :span="1.5"> |
|
|
<el-col :span="1.5"> |
|
|
<el-button type="danger" plain icon="el-icon-delete" size="mini" :disabled="multiple" @click="handleDelete" |
|
|
<el-button |
|
|
v-hasPermi="['business:recordTransaction:remove']">{{ $t('common.delete') }} |
|
|
type="danger" |
|
|
|
|
|
plain |
|
|
|
|
|
icon="el-icon-delete" |
|
|
|
|
|
size="mini" |
|
|
|
|
|
:disabled="multiple" |
|
|
|
|
|
@click="handleDelete" |
|
|
|
|
|
v-hasPermi="['business:recordTransaction:remove']" |
|
|
|
|
|
>删除 |
|
|
</el-button> |
|
|
</el-button> |
|
|
</el-col> |
|
|
</el-col> |
|
|
<el-col :span="1.5"> |
|
|
<el-col :span="1.5"> |
|
|
<el-button type="warning" plain icon="el-icon-download" size="mini" @click="handleExport" |
|
|
<el-button |
|
|
v-hasPermi="['business:recordTransaction:export']">{{ $t('common.export') }} |
|
|
type="warning" |
|
|
|
|
|
plain |
|
|
|
|
|
icon="el-icon-download" |
|
|
|
|
|
size="mini" |
|
|
|
|
|
@click="handleExport" |
|
|
|
|
|
v-hasPermi="['business:recordTransaction:export']" |
|
|
|
|
|
>导出 |
|
|
</el-button> |
|
|
</el-button> |
|
|
</el-col> |
|
|
</el-col> |
|
|
<right-toolbar :showSearch.sync="showSearch" @queryTable="getList"></right-toolbar> |
|
|
<right-toolbar :showSearch.sync="showSearch" @queryTable="getList"></right-toolbar> |
|
@ -59,121 +99,125 @@ |
|
|
|
|
|
|
|
|
<el-table v-loading="loading" :data="recordTransactionList" @selection-change="handleSelectionChange"> |
|
|
<el-table v-loading="loading" :data="recordTransactionList" @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="id" v-if="true"/> |
|
|
<el-table-column :label="$t('business.recordTransaction.senderId')" align="center" prop="senderId"/> |
|
|
<el-table-column label="用户ID" align="center" prop="senderId"/> |
|
|
<!-- <el-table-column :label="$t('business.recordTransaction.transactionType')" align="center" prop="type">--> |
|
|
<el-table-column label="账户编号" align="center" prop="senderAccount"/> |
|
|
<!-- <template slot-scope="scope">--> |
|
|
<el-table-column label="账单编码" align="center" prop="billCode"/> |
|
|
<!-- <el-tag v-if="scope.row.type == 'BT'">{{ $t('business.recordTransaction.transfer') }}</el-tag>--> |
|
|
<el-table-column label="交易类型" align="center" prop="type"/> |
|
|
<!-- <el-tag v-if="scope.row.type == 'BP'">{{ $t('business.recordTransaction.payment') }}</el-tag>--> |
|
|
<el-table-column label="目标用户ID" align="center" prop="receiverId"/> |
|
|
<!-- <el-tag v-if="scope.row.type == 'BC'">{{ $t('business.recordTransaction.withdraw') }}</el-tag>--> |
|
|
<el-table-column label="目标用户账户编号" align="center" prop="receiverAccount"/> |
|
|
<!-- <el-tag v-if="scope.row.type == 'BR'">{{ $t('business.recordTransaction.receive') }}</el-tag>--> |
|
|
<el-table-column label="交易前金额" align="center" prop="previousBalance"/> |
|
|
<!-- <el-tag v-if="scope.row.type == 'BU'">{{ $t('business.recordTransaction.recharge') }}</el-tag>--> |
|
|
<el-table-column label="动账金额" align="center" prop="changeBalance"/> |
|
|
<!-- </template>--> |
|
|
<el-table-column label="当前金额" align="center" prop="currentBalance"/> |
|
|
<!-- </el-table-column>--> |
|
|
<el-table-column label="状态" align="center" prop="status"/> |
|
|
<el-table-column :label="$t('business.recordTransaction.receiverId')" align="center" prop="receiverId"/> |
|
|
<el-table-column label="备注" align="center" prop="remark"/> |
|
|
<el-table-column :label="$t('business.recordTransaction.previousBalance')" align="center" prop="previousBalance"/> |
|
|
<el-table-column label="操作" align="center" width="200" class-name="small-padding fixed-width"> |
|
|
<el-table-column :label="$t('business.recordTransaction.changeBalance')" align="center" prop="changeBalance"/> |
|
|
|
|
|
<el-table-column :label="$t('business.recordTransaction.currentBalance')" align="center" prop="currentBalance"/> |
|
|
|
|
|
<el-table-column :label="$t('business.recordTransaction.note')" align="center" prop="note"/> |
|
|
|
|
|
<el-table-column :label="$t('business.recordTransaction.transactionTime')" align="center" prop="time" width="180"> |
|
|
|
|
|
<template slot-scope="scope"> |
|
|
|
|
|
<span>{{ parseTime(scope.row.time, '{y}-{m}-{d}') }}</span> |
|
|
|
|
|
</template> |
|
|
|
|
|
</el-table-column> |
|
|
|
|
|
<!-- <el-table-column :label="$t('business.recordTransaction.status')" align="center" prop="status">--> |
|
|
|
|
|
<!-- <template slot-scope="scope">--> |
|
|
|
|
|
<!-- <el-tag v-if="scope.row.status == '0'">{{ $t('business.recordTransaction.normal') }}</el-tag>--> |
|
|
|
|
|
<!-- <el-tag type="danger" v-if="scope.row.status == '1'">{{ $t('business.recordTransaction.banned') }}</el-tag>--> |
|
|
|
|
|
<!-- </template>--> |
|
|
|
|
|
<!-- </el-table-column>--> |
|
|
|
|
|
<el-table-column :label="$t('common.createTime')" align="center" prop="createTime" width="180"> |
|
|
|
|
|
<template slot-scope="scope"> |
|
|
<template slot-scope="scope"> |
|
|
<span>{{ parseTime(scope.row.createTime, '{y}-{m}-{d}') }}</span> |
|
|
<el-button |
|
|
</template> |
|
|
size="mini" |
|
|
</el-table-column> |
|
|
type="text" |
|
|
<el-table-column :label="$t('common.operation')" align="center" width="200" |
|
|
icon="el-icon-view" |
|
|
class-name="small-padding fixed-width"> |
|
|
@click="handleDetail(scope.row)" |
|
|
<template slot-scope="scope"> |
|
|
>详情 |
|
|
<el-button size="mini" type="text" icon="el-icon-view" @click="handleDetail(scope.row)">{{ |
|
|
|
|
|
$t('common.detail') |
|
|
|
|
|
}} |
|
|
|
|
|
</el-button> |
|
|
</el-button> |
|
|
<el-button size="mini" type="text" icon="el-icon-edit" @click="handleUpdate(scope.row)" |
|
|
<el-button |
|
|
v-hasPermi="['business:recordTransaction:edit']">{{ $t('common.edit') }} |
|
|
size="mini" |
|
|
|
|
|
type="text" |
|
|
|
|
|
icon="el-icon-edit" |
|
|
|
|
|
@click="handleUpdate(scope.row)" |
|
|
|
|
|
v-hasPermi="['business:recordTransaction:edit']" |
|
|
|
|
|
>修改 |
|
|
</el-button> |
|
|
</el-button> |
|
|
<el-button size="mini" type="text" icon="el-icon-delete" @click="handleDelete(scope.row)" |
|
|
<el-button |
|
|
v-hasPermi="['business:recordTransaction:remove']">{{ $t('common.delete') }} |
|
|
size="mini" |
|
|
|
|
|
type="text" |
|
|
|
|
|
icon="el-icon-delete" |
|
|
|
|
|
@click="handleDelete(scope.row)" |
|
|
|
|
|
v-hasPermi="['business:recordTransaction:remove']" |
|
|
|
|
|
>删除 |
|
|
</el-button> |
|
|
</el-button> |
|
|
</template> |
|
|
</template> |
|
|
</el-table-column> |
|
|
</el-table-column> |
|
|
</el-table> |
|
|
</el-table> |
|
|
|
|
|
|
|
|
<pagination v-show="total>0" :total="total" :page.sync="queryParams.pageNum" :limit.sync="queryParams.pageSize" |
|
|
<pagination |
|
|
@pagination="getList"/> |
|
|
v-show="total>0" |
|
|
|
|
|
:total="total" |
|
|
|
|
|
:page.sync="queryParams.pageNum" |
|
|
|
|
|
:limit.sync="queryParams.pageSize" |
|
|
|
|
|
@pagination="getList" |
|
|
|
|
|
/> |
|
|
|
|
|
|
|
|
<!-- 添加或修改交易动账记录对话框 --> |
|
|
<!-- 添加或修改交易动账记录对话框 --> |
|
|
<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.recordTransaction.senderId')" prop="senderId"> |
|
|
<el-form-item label="用户ID" prop="senderId"> |
|
|
<el-input v-model="form.senderId" |
|
|
<el-input v-model="form.senderId" placeholder="请输入用户ID"/> |
|
|
:placeholder="$t('business.recordTransaction.senderAccountPlaceholder')"/> |
|
|
</el-form-item> |
|
|
|
|
|
<el-form-item label="账户编号" prop="senderAccount"> |
|
|
|
|
|
<el-input v-model="form.senderAccount" placeholder="请输入账户编号"/> |
|
|
</el-form-item> |
|
|
</el-form-item> |
|
|
<el-form-item :label="$t('business.recordTransaction.receiverId')" prop="receiverId"> |
|
|
<el-form-item label="账单编码" prop="billCode"> |
|
|
<el-input v-model="form.receiverId" |
|
|
<el-input v-model="form.billCode" placeholder="请输入账单编码"/> |
|
|
:placeholder="$t('business.recordTransaction.receiverAccountPlaceholder')"/> |
|
|
|
|
|
</el-form-item> |
|
|
</el-form-item> |
|
|
<el-form-item :label="$t('business.recordTransaction.previousBalance')" prop="previousBalance"> |
|
|
<el-form-item label="目标用户ID" prop="receiverId"> |
|
|
<el-input v-model="form.previousBalance" |
|
|
<el-input v-model="form.receiverId" placeholder="请输入目标用户ID"/> |
|
|
:placeholder="$t('business.recordTransaction.previousBalancePlaceholder')"/> |
|
|
|
|
|
</el-form-item> |
|
|
</el-form-item> |
|
|
<el-form-item :label="$t('business.recordTransaction.changeBalance')" prop="changeBalance"> |
|
|
<el-form-item label="目标用户账户编号" prop="receiverAccount"> |
|
|
<el-input v-model="form.changeBalance" |
|
|
<el-input v-model="form.receiverAccount" placeholder="请输入目标用户账户编号"/> |
|
|
:placeholder="$t('business.recordTransaction.changeBalancePlaceholder')"/> |
|
|
|
|
|
</el-form-item> |
|
|
</el-form-item> |
|
|
<el-form-item :label="$t('business.recordTransaction.currentBalance')" prop="currentBalance"> |
|
|
<el-form-item label="交易前金额" prop="previousBalance"> |
|
|
<el-input v-model="form.currentBalance" |
|
|
<el-input v-model="form.previousBalance" placeholder="请输入交易前金额"/> |
|
|
:placeholder="$t('business.recordTransaction.currentBalancePlaceholder')"/> |
|
|
|
|
|
</el-form-item> |
|
|
</el-form-item> |
|
|
<el-form-item :label="$t('business.recordTransaction.note')" prop="note"> |
|
|
<el-form-item label="动账金额" prop="changeBalance"> |
|
|
<el-input v-model="form.note" type="textarea" |
|
|
<el-input v-model="form.changeBalance" placeholder="请输入动账金额"/> |
|
|
:placeholder="$t('business.recordTransaction.notePlaceholder')"/> |
|
|
|
|
|
</el-form-item> |
|
|
</el-form-item> |
|
|
<el-form-item :label="$t('business.recordTransaction.transactionTime')" prop="time"> |
|
|
<el-form-item label="当前金额" prop="currentBalance"> |
|
|
<el-date-picker clearable v-model="form.time" type="datetime" value-format="yyyy-MM-dd HH:mm:ss" |
|
|
<el-input v-model="form.currentBalance" placeholder="请输入当前金额"/> |
|
|
:placeholder="$t('business.recordTransaction.transactionTimePlaceholder')"> |
|
|
</el-form-item> |
|
|
</el-date-picker> |
|
|
<el-form-item label="备注" prop="remark"> |
|
|
|
|
|
<el-input v-model="form.remark" placeholder="请输入备注"/> |
|
|
</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">确 定</el-button> |
|
|
<el-button @click="cancel">{{ $t('common.cancel') }}</el-button> |
|
|
<el-button @click="cancel">取 消</el-button> |
|
|
</div> |
|
|
</div> |
|
|
</el-dialog> |
|
|
</el-dialog> |
|
|
|
|
|
|
|
|
<!-- 交易动账记录详情 --> |
|
|
<!-- 交易动账记录详情 --> |
|
|
<el-dialog :title="title" :visible.sync="detailOpen" width="700px" append-to-body> |
|
|
<el-dialog :title="title" :visible.sync="detailOpen" width="700px" append-to-body> |
|
|
<el-form ref="form" :model="form" label-width="auto"> |
|
|
<el-form ref="form" :model="form" label-width="auto"> |
|
|
<el-form-item :label="$t('business.recordTransaction.senderId')"> |
|
|
<el-form-item label="用户ID:"> |
|
|
{{ form.senderId }} |
|
|
{{ form.senderId }} |
|
|
</el-form-item> |
|
|
</el-form-item> |
|
|
<el-form-item label="接收账户id"> |
|
|
<el-form-item label="账户编号:"> |
|
|
|
|
|
{{ form.senderAccount }} |
|
|
|
|
|
</el-form-item> |
|
|
|
|
|
<el-form-item label="账单编码:"> |
|
|
|
|
|
{{ form.billCode }} |
|
|
|
|
|
</el-form-item> |
|
|
|
|
|
<el-form-item label="目标用户ID:"> |
|
|
{{ form.receiverId }} |
|
|
{{ form.receiverId }} |
|
|
</el-form-item> |
|
|
</el-form-item> |
|
|
<el-form-item :label="$t('business.recordTransaction.previousBalance')"> |
|
|
<el-form-item label="目标用户账户编号:"> |
|
|
|
|
|
{{ form.receiverAccount }} |
|
|
|
|
|
</el-form-item> |
|
|
|
|
|
<el-form-item label="交易前金额:"> |
|
|
{{ form.previousBalance }} |
|
|
{{ form.previousBalance }} |
|
|
</el-form-item> |
|
|
</el-form-item> |
|
|
<el-form-item :label="$t('business.recordTransaction.changeBalance')"> |
|
|
<el-form-item label="动账金额:"> |
|
|
{{ form.changeBalance }} |
|
|
{{ form.changeBalance }} |
|
|
</el-form-item> |
|
|
</el-form-item> |
|
|
<el-form-item :label="$t('business.recordTransaction.currentBalance')"> |
|
|
<el-form-item label="当前金额:"> |
|
|
{{ form.currentBalance }} |
|
|
{{ form.currentBalance }} |
|
|
</el-form-item> |
|
|
</el-form-item> |
|
|
<el-form-item :label="$t('business.recordTransaction.note')"> |
|
|
<el-form-item label="备注:"> |
|
|
{{ form.note }} |
|
|
{{ form.remark }} |
|
|
</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">{{ $t('common.close') }}</el-button> |
|
|
<el-button @click="cancel">关 闭</el-button> |
|
|
</div> |
|
|
</div> |
|
|
</el-dialog> |
|
|
</el-dialog> |
|
|
</div> |
|
|
</div> |
|
@ -214,31 +258,38 @@ export default { |
|
|
open: false, |
|
|
open: false, |
|
|
// 是否显示详情弹出层 |
|
|
// 是否显示详情弹出层 |
|
|
detailOpen: false, |
|
|
detailOpen: false, |
|
|
// 状态时间范围 |
|
|
|
|
|
daterangeTime: [], |
|
|
|
|
|
// 状态时间范围 |
|
|
|
|
|
daterangeCreateTime: [], |
|
|
|
|
|
// 查询参数 |
|
|
// 查询参数 |
|
|
queryParams: { |
|
|
queryParams: { |
|
|
pageNum: 1, |
|
|
pageNum: 1, |
|
|
pageSize: 10, |
|
|
pageSize: 10, |
|
|
senderId: undefined, |
|
|
senderId: undefined, |
|
|
senderAccount: undefined, |
|
|
senderAccount: undefined, |
|
|
|
|
|
billCode: undefined, |
|
|
type: undefined, |
|
|
type: undefined, |
|
|
receiverId: undefined, |
|
|
receiverId: undefined, |
|
|
receiverAccount: undefined, |
|
|
receiverAccount: undefined, |
|
|
previousBalance: undefined, |
|
|
previousBalance: undefined, |
|
|
changeBalance: undefined, |
|
|
changeBalance: undefined, |
|
|
currentBalance: undefined, |
|
|
currentBalance: undefined, |
|
|
note: undefined, |
|
|
|
|
|
time: undefined, |
|
|
|
|
|
status: undefined, |
|
|
status: undefined, |
|
|
createTime: undefined, |
|
|
|
|
|
}, |
|
|
}, |
|
|
// 表单参数 |
|
|
// 表单参数 |
|
|
form: {}, |
|
|
form: {}, |
|
|
// 表单校验 |
|
|
// 表单校验 |
|
|
rules: {} |
|
|
rules: { |
|
|
|
|
|
senderId: [ |
|
|
|
|
|
{required: true, message: "用户ID不能为空", trigger: "blur"} |
|
|
|
|
|
], |
|
|
|
|
|
senderAccount: [ |
|
|
|
|
|
{required: true, message: "账户编号不能为空", trigger: "blur"} |
|
|
|
|
|
], |
|
|
|
|
|
receiverId: [ |
|
|
|
|
|
{required: true, message: "目标用户ID不能为空", trigger: "blur"} |
|
|
|
|
|
], |
|
|
|
|
|
receiverAccount: [ |
|
|
|
|
|
{required: true, message: "目标用户账户编号不能为空", trigger: "blur"} |
|
|
|
|
|
], |
|
|
|
|
|
} |
|
|
}; |
|
|
}; |
|
|
}, |
|
|
}, |
|
|
created() { |
|
|
created() { |
|
@ -248,15 +299,6 @@ export default { |
|
|
/** 查询交易动账记录列表 */ |
|
|
/** 查询交易动账记录列表 */ |
|
|
getList() { |
|
|
getList() { |
|
|
this.loading = true; |
|
|
this.loading = true; |
|
|
this.queryParams.params = {}; |
|
|
|
|
|
if (null != this.daterangeTime && '' != this.daterangeTime) { |
|
|
|
|
|
this.queryParams.params["beginTime"] = this.daterangeTime[0]; |
|
|
|
|
|
this.queryParams.params["endTime"] = this.daterangeTime[1]; |
|
|
|
|
|
} |
|
|
|
|
|
if (null != this.daterangeCreateTime && '' != this.daterangeCreateTime) { |
|
|
|
|
|
this.queryParams.params["beginCreateTime"] = this.daterangeCreateTime[0]; |
|
|
|
|
|
this.queryParams.params["endCreateTime"] = this.daterangeCreateTime[1]; |
|
|
|
|
|
} |
|
|
|
|
|
listRecordTransaction(this.queryParams).then(response => { |
|
|
listRecordTransaction(this.queryParams).then(response => { |
|
|
this.recordTransactionList = response.rows; |
|
|
this.recordTransactionList = response.rows; |
|
|
this.total = response.total; |
|
|
this.total = response.total; |
|
@ -275,20 +317,20 @@ export default { |
|
|
id: undefined, |
|
|
id: undefined, |
|
|
senderId: undefined, |
|
|
senderId: undefined, |
|
|
senderAccount: undefined, |
|
|
senderAccount: undefined, |
|
|
|
|
|
billCode: undefined, |
|
|
type: undefined, |
|
|
type: undefined, |
|
|
receiverId: undefined, |
|
|
receiverId: undefined, |
|
|
receiverAccount: undefined, |
|
|
receiverAccount: undefined, |
|
|
previousBalance: undefined, |
|
|
previousBalance: undefined, |
|
|
changeBalance: undefined, |
|
|
changeBalance: undefined, |
|
|
currentBalance: undefined, |
|
|
currentBalance: undefined, |
|
|
note: undefined, |
|
|
|
|
|
time: undefined, |
|
|
|
|
|
status: undefined, |
|
|
status: undefined, |
|
|
delFlag: undefined, |
|
|
|
|
|
createBy: undefined, |
|
|
createBy: undefined, |
|
|
createTime: undefined, |
|
|
createTime: undefined, |
|
|
updateBy: undefined, |
|
|
updateBy: undefined, |
|
|
updateTime: undefined |
|
|
updateTime: undefined, |
|
|
|
|
|
delFlag: undefined, |
|
|
|
|
|
remark: undefined |
|
|
}; |
|
|
}; |
|
|
this.resetForm("form"); |
|
|
this.resetForm("form"); |
|
|
}, |
|
|
}, |
|
@ -299,8 +341,6 @@ export default { |
|
|
}, |
|
|
}, |
|
|
/** 重置按钮操作 */ |
|
|
/** 重置按钮操作 */ |
|
|
resetQuery() { |
|
|
resetQuery() { |
|
|
this.daterangeTime = []; |
|
|
|
|
|
this.daterangeCreateTime = []; |
|
|
|
|
|
this.resetForm("queryForm"); |
|
|
this.resetForm("queryForm"); |
|
|
this.handleQuery(); |
|
|
this.handleQuery(); |
|
|
}, |
|
|
}, |
|
@ -314,15 +354,14 @@ export default { |
|
|
handleAdd() { |
|
|
handleAdd() { |
|
|
this.reset(); |
|
|
this.reset(); |
|
|
this.open = true; |
|
|
this.open = true; |
|
|
this.title = this.$t('business.recordTransaction.addTitle'); |
|
|
this.title = "添加交易动账记录"; |
|
|
}, |
|
|
}, |
|
|
/** 详情按钮操作 */ |
|
|
/** 详情按钮操作 */ |
|
|
handleDetail(row) { |
|
|
handleDetail(row) { |
|
|
this.reset(); |
|
|
this.reset(); |
|
|
this.form = row; |
|
|
this.form = row; |
|
|
console.log(row) |
|
|
|
|
|
this.detailOpen = true; |
|
|
this.detailOpen = true; |
|
|
this.title = this.$t('business.recordTransaction.detailTitle'); |
|
|
this.title = "交易动账记录"; |
|
|
}, |
|
|
}, |
|
|
/** 修改按钮操作 */ |
|
|
/** 修改按钮操作 */ |
|
|
handleUpdate(row) { |
|
|
handleUpdate(row) { |
|
@ -333,7 +372,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.recordTransaction.editTitle'); |
|
|
this.title = "修改交易动账记录"; |
|
|
}); |
|
|
}); |
|
|
}, |
|
|
}, |
|
|
/** 提交按钮 */ |
|
|
/** 提交按钮 */ |
|
@ -343,7 +382,7 @@ export default { |
|
|
this.buttonLoading = true; |
|
|
this.buttonLoading = true; |
|
|
if (this.form.id != null) { |
|
|
if (this.form.id != null) { |
|
|
updateRecordTransaction(this.form).then(response => { |
|
|
updateRecordTransaction(this.form).then(response => { |
|
|
this.$modal.msgSuccess(this.$t('common.editSuccess')); |
|
|
this.$modal.msgSuccess("修改成功"); |
|
|
this.open = false; |
|
|
this.open = false; |
|
|
this.getList(); |
|
|
this.getList(); |
|
|
}).finally(() => { |
|
|
}).finally(() => { |
|
@ -351,7 +390,7 @@ export default { |
|
|
}); |
|
|
}); |
|
|
} else { |
|
|
} else { |
|
|
addRecordTransaction(this.form).then(response => { |
|
|
addRecordTransaction(this.form).then(response => { |
|
|
this.$modal.msgSuccess(this.$t('common.addSuccess')); |
|
|
this.$modal.msgSuccess("新增成功"); |
|
|
this.open = false; |
|
|
this.open = false; |
|
|
this.getList(); |
|
|
this.getList(); |
|
|
}).finally(() => { |
|
|
}).finally(() => { |
|
@ -364,13 +403,13 @@ export default { |
|
|
/** 删除按钮操作 */ |
|
|
/** 删除按钮操作 */ |
|
|
handleDelete(row) { |
|
|
handleDelete(row) { |
|
|
const ids = row.id || this.ids; |
|
|
const ids = row.id || this.ids; |
|
|
this.$modal.confirm(this.$t('common.deleteConfirm')).then(() => { |
|
|
this.$modal.confirm('是否确认删除交易动账记录编号为"' + ids + '"的数据项?').then(() => { |
|
|
this.loading = true; |
|
|
this.loading = true; |
|
|
return delRecordTransaction(ids); |
|
|
return delRecordTransaction(ids); |
|
|
}).then(() => { |
|
|
}).then(() => { |
|
|
this.loading = false; |
|
|
this.loading = false; |
|
|
this.getList(); |
|
|
this.getList(); |
|
|
this.$modal.msgSuccess(this.$t('common.deleteSuccess')); |
|
|
this.$modal.msgSuccess("删除成功"); |
|
|
}).catch(() => { |
|
|
}).catch(() => { |
|
|
}).finally(() => { |
|
|
}).finally(() => { |
|
|
this.loading = false; |
|
|
this.loading = false; |
|
|