|
|
@@ -106,7 +106,7 @@
|
|
|
<el-button type="primary" @click.native="handleEdit">{{ $t('table.edit') }}<!-- 修 改 --></el-button>
|
|
|
</div>
|
|
|
</el-dialog>
|
|
|
- <el-dialog title="Review member Ecoin change information" :visible.sync="dialogAuditFormVisible"><!-- 审核会员余额变动信息 -->
|
|
|
+ <el-dialog :title="$t('financial.reviewRemberEcoinInfo')" :visible.sync="dialogAuditFormVisible"><!-- 审核会员余额变动信息 -->
|
|
|
<el-form :model="form" label-width="250px" class="form-dialog" v-loading="dialogAuditLoading">
|
|
|
<el-form-item :label="$t('financial.memberCode')"><!-- 会员编号 -->
|
|
|
<el-input v-model="form.baseInfo.USER_NAME" :disabled="true"></el-input>
|
|
|
@@ -156,7 +156,7 @@
|
|
|
import permission from '@/utils/permission'
|
|
|
import Pagination from '@/components/Pagination'
|
|
|
import filterHelper from '@/utils/filterHelper'
|
|
|
- import { getChangeBalanceType, balanceAuditList, balanceAuditListExport, balanceAuditDelete } from '@/api/finance'
|
|
|
+ import { getChangeBalanceType, balanceAuditList, balanceAuditListExport, balanceAuditDelete, multPoint, balanceAudit, balanceAuditGet, balanceAuditPass } from '@/api/finance'
|
|
|
|
|
|
export default {
|
|
|
name: 'leo-balance-audit-table',
|
|
|
@@ -258,21 +258,27 @@
|
|
|
this.auditId = row.ID
|
|
|
this.dialogAuditFormVisible = true
|
|
|
let vueObj = this
|
|
|
- network.getData('finance/balance-audit-get', {id: this.auditId}).then(response => {
|
|
|
+ balanceAuditGet({id: this.auditId}).then(response => {
|
|
|
vueObj.dialogAuditLoading = false
|
|
|
- //vueObj.form = response
|
|
|
- vueObj.form.id = response.id
|
|
|
- vueObj.form.baseInfo = response.baseInfo
|
|
|
- vueObj.form.dealType = response.dealType
|
|
|
- vueObj.form.amount = response.amount
|
|
|
- vueObj.form.remark = response.remark
|
|
|
- vueObj.form.auditStatus = response.auditStatus
|
|
|
- vueObj.form.type = String(response.type)
|
|
|
+ vueObj.form.id = response.data.id
|
|
|
+ vueObj.form.baseInfo = response.data.baseInfo
|
|
|
+ vueObj.form.dealType = response.data.dealType
|
|
|
+ vueObj.form.amount = response.data.amount
|
|
|
+ vueObj.form.remark = response.data.remark
|
|
|
+ vueObj.form.auditStatus = response.data.auditStatus
|
|
|
+ vueObj.form.type = String(response.data.type)
|
|
|
vueObj.form.createRemark = vueObj.form.remark
|
|
|
+ }).catch(err => {
|
|
|
+ vueObj.dialogAuditLoading = false
|
|
|
})
|
|
|
- network.postData('finance/mult-point', {opType: 1}).then(response => {
|
|
|
- this.form.balanceCode = response.balanceCode
|
|
|
- this.auditPassButtonStat = false
|
|
|
+ multPoint({opType: 1}).then(response => {
|
|
|
+ this.form.balanceCode = response.data.balanceCode
|
|
|
+ this.auditPassButtonStat = false
|
|
|
+ }).catch(err => {
|
|
|
+ this.$message({
|
|
|
+ message: err,
|
|
|
+ type: 'error'
|
|
|
+ })
|
|
|
})
|
|
|
},
|
|
|
handleAuditPass() {
|
|
|
@@ -302,16 +308,20 @@
|
|
|
type: 'info'
|
|
|
})
|
|
|
this.form.auditStatus = 'true'
|
|
|
- let path = 'finance/balance-audit-pass'
|
|
|
- network.postData(path, this.form).then(response => {
|
|
|
+ balanceAuditPass(this.form).then(response => {
|
|
|
this.$message({
|
|
|
- message: response,
|
|
|
+ message: response.data,
|
|
|
type: 'success'
|
|
|
})
|
|
|
this.getData(this.currentPage, this.pageSize)
|
|
|
- }).catch(response => {
|
|
|
+ }).catch(err => {
|
|
|
+ this.$message({
|
|
|
+ message: err,
|
|
|
+ type: 'error'
|
|
|
+ })
|
|
|
})
|
|
|
},
|
|
|
+ // 审核拒绝
|
|
|
handleAudit(row = null, status, minus = false) {
|
|
|
let obj = this
|
|
|
let title = this.$t('financial.handleAuditDefaultNotice') //确定要通过审核(会员账户不允许为负数)?备注:
|
|
|
@@ -320,39 +330,43 @@
|
|
|
}else if(minus){
|
|
|
title = this.$t('financial.handleAuditPassNotice') //确定要通过审核(会员账户允许为负数)?备注
|
|
|
}
|
|
|
- network.postData('finance/mult-point', {opType: 1}).then(response => {
|
|
|
- this.form.balanceCode = response.balanceCode
|
|
|
- this.$prompt(title, this.$t('common.hint'), {//提示
|
|
|
- confirmButtonText: this.$t('common.confirm'),//确定
|
|
|
- cancelButtonText: this.$t('common.cancel'),//取消
|
|
|
- inputValue: row ? row.REMARK : '',
|
|
|
+ multPoint({opType: 1}).then(response => {
|
|
|
+ this.form.balanceCode = response.data.balanceCode
|
|
|
+ this.$prompt(title, this.$t('common.hint'), {//提示
|
|
|
+ confirmButtonText: this.$t('common.confirm'),//确定
|
|
|
+ cancelButtonText: this.$t('common.cancel'),//取消
|
|
|
+ inputValue: row ? row.REMARK : '',
|
|
|
//type: 'warning',
|
|
|
- }).then(({value}) => {
|
|
|
- let selectedIds = []
|
|
|
- if (row === null) {
|
|
|
- for (let val of obj.multipleSelection) {
|
|
|
- selectedIds.push(val.ID)
|
|
|
- }
|
|
|
- } else {
|
|
|
- selectedIds.push(row.ID)
|
|
|
- }
|
|
|
- return network.postData(`finance/balance-audit`, {
|
|
|
- selected: selectedIds,
|
|
|
- remark: value,
|
|
|
- allowMinus: minus,
|
|
|
- auditStatus: status,
|
|
|
- balanceCode: this.form.balanceCode
|
|
|
- })
|
|
|
- }).then(response => {
|
|
|
- this.$message({
|
|
|
- message: response,
|
|
|
- type: 'success'
|
|
|
- })
|
|
|
- this.getData(this.currentPage, this.pageSize)
|
|
|
- }).catch(response => {
|
|
|
-
|
|
|
+ }).then(({value}) => {
|
|
|
+ let selectedIds = []
|
|
|
+ if (row === null) {
|
|
|
+ for (let val of obj.multipleSelection) {
|
|
|
+ selectedIds.push(val.ID)
|
|
|
+ }
|
|
|
+ } else {
|
|
|
+ selectedIds.push(row.ID)
|
|
|
+ }
|
|
|
+ let requestParams = {
|
|
|
+ selected: selectedIds,
|
|
|
+ remark: value,
|
|
|
+ allowMinus: minus,
|
|
|
+ auditStatus: status,
|
|
|
+ balanceCode: this.form.balanceCode
|
|
|
+ }
|
|
|
+ balanceAudit(requestParams).then(response => {
|
|
|
+ this.$message({
|
|
|
+ message: response.data,
|
|
|
+ type: 'success'
|
|
|
+ })
|
|
|
+ this.getData(this.currentPage, this.pageSize)
|
|
|
+ }).catch(err => {
|
|
|
+ this.$message({
|
|
|
+ message: err,
|
|
|
+ type: 'error'
|
|
|
})
|
|
|
+ })
|
|
|
})
|
|
|
+ })
|
|
|
},
|
|
|
handleDel(id = null) {
|
|
|
let obj = this
|