|
@@ -4,16 +4,16 @@
|
|
|
<el-tabs v-model="filterStatus" @tab-click="handleFilterStatusClick">
|
|
<el-tabs v-model="filterStatus" @tab-click="handleFilterStatusClick">
|
|
|
<el-tab-pane :label="$t('financial.all')" name="-1" :lazy="true"></el-tab-pane> <!-- 全部 -->
|
|
<el-tab-pane :label="$t('financial.all')" name="-1" :lazy="true"></el-tab-pane> <!-- 全部 -->
|
|
|
<el-tab-pane :label="$t('financial.toBeReviewed')" name="0" :lazy="true"></el-tab-pane> <!-- 待审核 -->
|
|
<el-tab-pane :label="$t('financial.toBeReviewed')" name="0" :lazy="true"></el-tab-pane> <!-- 待审核 -->
|
|
|
- <el-tab-pane :label="$t('financial.reviewed')" name="2" :lazy="true"></el-tab-pane> <!-- 已审核 -->
|
|
|
|
|
|
|
+ <!-- <el-tab-pane :label="$t('financial.reviewed')" name="2" :lazy="true"></el-tab-pane> <!– 已审核 –>-->
|
|
|
<el-tab-pane :label="$t('financial.toBePaid')" name="3" :lazy="true"></el-tab-pane> <!-- 待付款 -->
|
|
<el-tab-pane :label="$t('financial.toBePaid')" name="3" :lazy="true"></el-tab-pane> <!-- 待付款 -->
|
|
|
<el-tab-pane :label="$t('financial.paid')" name="6" :lazy="true"></el-tab-pane> <!-- 已付款 -->
|
|
<el-tab-pane :label="$t('financial.paid')" name="6" :lazy="true"></el-tab-pane> <!-- 已付款 -->
|
|
|
- <el-tab-pane :label="$t('financial.paymentFailed')" name="4" :lazy="true"></el-tab-pane> <!-- 付款失败 -->
|
|
|
|
|
|
|
+ <!-- <el-tab-pane :label="$t('financial.paymentFailed')" name="4" :lazy="true"></el-tab-pane> <!– 付款失败 –>-->
|
|
|
<el-tab-pane :label="$t('financial.returned')" name="7" :lazy="true"></el-tab-pane> <!-- 已退回 -->
|
|
<el-tab-pane :label="$t('financial.returned')" name="7" :lazy="true"></el-tab-pane> <!-- 已退回 -->
|
|
|
</el-tabs>
|
|
</el-tabs>
|
|
|
<div class="filter-box">
|
|
<div class="filter-box">
|
|
|
<filter-user :filter-types.sync="filterTypes" @select-value="handleFilterUser"></filter-user>
|
|
<filter-user :filter-types.sync="filterTypes" @select-value="handleFilterUser"></filter-user>
|
|
|
</div>
|
|
</div>
|
|
|
- <el-table :data="tableData" stripe style="width: 100%;" @selection-change="handleSelectionChange" :height="tool.getTableHeight(true)">
|
|
|
|
|
|
|
+ <el-table :data="tableData" stripe style="width: 100%;" @selection-change="handleSelectionChange" :height="tool.getTableHeight()">
|
|
|
<el-table-column type="selection" width="55" v-if="tableHeaders"></el-table-column>
|
|
<el-table-column type="selection" width="55" v-if="tableHeaders"></el-table-column>
|
|
|
<el-table-column v-for="(tableHeader, key) in tableHeaders" :key="key" :label="tableHeader.header" :width="tableHeader.other.width ? tableHeader.other.width : ''">
|
|
<el-table-column v-for="(tableHeader, key) in tableHeaders" :key="key" :label="tableHeader.header" :width="tableHeader.other.width ? tableHeader.other.width : ''">
|
|
|
<template slot-scope="scope">
|
|
<template slot-scope="scope">
|
|
@@ -33,9 +33,9 @@
|
|
|
<el-table-column :fixed="fixedColumn" :label="$t('financial.action')" width="180"> <!-- 操作 -->
|
|
<el-table-column :fixed="fixedColumn" :label="$t('financial.action')" width="180"> <!-- 操作 -->
|
|
|
<template slot-scope="scope">
|
|
<template slot-scope="scope">
|
|
|
<el-dropdown size="small" trigger="click"
|
|
<el-dropdown size="small" trigger="click"
|
|
|
- v-if="scope.row.AUDIT_STATUS!=='7' && (permission.hasPermission(`finance/withdraw-status`))">
|
|
|
|
|
|
|
+ v-if="scope.row.AUDIT_STATUS!=='6' && scope.row.AUDIT_STATUS!=='7' && (permission.hasPermission(`finance/withdraw-status`))">
|
|
|
<el-button type="primary" size="small" @click.stop="">
|
|
<el-button type="primary" size="small" @click.stop="">
|
|
|
- {{ $t('financial.action') }}<i class="el-icon-arrow-down el-icon--right"></i>
|
|
|
|
|
|
|
+ {{ $t('financial.action') }}<i class="el-icon-arrow-down el-icon--right"></i>
|
|
|
</el-button>
|
|
</el-button>
|
|
|
<el-dropdown-menu slot="dropdown">
|
|
<el-dropdown-menu slot="dropdown">
|
|
|
<!--<el-dropdown-item command="add"-->
|
|
<!--<el-dropdown-item command="add"-->
|
|
@@ -43,78 +43,84 @@
|
|
|
<!--v-show="(scope.row.AUDIT_STATUS==='0'||scope.row.AUDIT_STATUS==='1') && (permission.hasPermission(`finance/invoice-audit-add`)||permission.hasPermission(`finance/invoice-audit-edit`))">-->
|
|
<!--v-show="(scope.row.AUDIT_STATUS==='0'||scope.row.AUDIT_STATUS==='1') && (permission.hasPermission(`finance/invoice-audit-add`)||permission.hasPermission(`finance/invoice-audit-edit`))">-->
|
|
|
<!--补录发票信息-->
|
|
<!--补录发票信息-->
|
|
|
<!--</el-dropdown-item>-->
|
|
<!--</el-dropdown-item>-->
|
|
|
- <el-dropdown-item command="status"
|
|
|
|
|
- @click.native="handleStatusShow(scope.row, 2, $t('financial.approveWithdrawalNotice'))"
|
|
|
|
|
- v-show="scope.row.AUDIT_STATUS==='0' && permission.hasPermission(`finance/withdraw-status`)"> <!-- 确定对当前提现进行审核通过操作? -->
|
|
|
|
|
- {{ $t('financial.approve') }} <!-- 审核通过 -->
|
|
|
|
|
- </el-dropdown-item>
|
|
|
|
|
- <el-dropdown-item command="status"
|
|
|
|
|
- @click.native="handleStatusShow(scope.row, 3, $t('financial.setWithdrawalPaymentAction'))"
|
|
|
|
|
- v-show="scope.row.AUDIT_STATUS === '2' && permission.hasPermission(`finance/withdraw-status`)"> <!-- 确定对当前提现进行设为待付款操作? -->
|
|
|
|
|
- {{ $t('financial.toBePaid') }}<!-- 设为待付款 -->
|
|
|
|
|
- </el-dropdown-item>
|
|
|
|
|
|
|
+ <!-- <el-dropdown-item command="status"-->
|
|
|
|
|
+ <!-- @click.native="handleStatusShow(scope.row, 3, 'Are you sure to approve the current withdrawal?')"-->
|
|
|
|
|
+ <!-- v-show="scope.row.AUDIT_STATUS==='0' && permission.hasPermission(`finance/withdraw-status`)"> <!– 确定对当前提现进行审核通过操作? –>-->
|
|
|
|
|
+ <!-- Approve <!– 审核通过 –>-->
|
|
|
|
|
+ <!-- </el-dropdown-item>-->
|
|
|
|
|
+ <!-- <el-dropdown-item command="status"-->
|
|
|
|
|
+ <!-- @click.native="handleStatusShow(scope.row, 3, 'Are you sure to set the current withdrawal as payment action?')"-->
|
|
|
|
|
+ <!-- v-show="scope.row.AUDIT_STATUS === '0' && permission.hasPermission(`finance/withdraw-status`)"> <!– 确定对当前提现进行设为待付款操作? –>-->
|
|
|
|
|
+ <!-- Approve<!– 设为待付款 –>-->
|
|
|
|
|
+ <!-- </el-dropdown-item>-->
|
|
|
<el-dropdown-item command="status"
|
|
<el-dropdown-item command="status"
|
|
|
@click.native="handleStatusShow(scope.row, 6, $t('financial.setWithdrawalPaidNotice'))"
|
|
@click.native="handleStatusShow(scope.row, 6, $t('financial.setWithdrawalPaidNotice'))"
|
|
|
- v-show="scope.row.AUDIT_STATUS === '3' && permission.hasPermission(`finance/withdraw-status`)"> <!-- 确定对当前提现进行设为已付款操作 -->
|
|
|
|
|
- {{ $t('financial.paid') }}<!--设为已付款-->
|
|
|
|
|
|
|
+ v-show="scope.row.AUDIT_STATUS === '3' && permission.hasPermission(`finance/withdraw-status-pay`)"> <!-- 确定对当前提现进行设为已付款操作 -->
|
|
|
|
|
+ {{ $t('financial.paid') }}<!--付款-->
|
|
|
</el-dropdown-item>
|
|
</el-dropdown-item>
|
|
|
<el-dropdown-item command="status"
|
|
<el-dropdown-item command="status"
|
|
|
- @click.native="handleStatusShow(scope.row, 3, $t('financial.setWithdrawalPaymentAction'))"
|
|
|
|
|
- v-show="scope.row.AUDIT_STATUS === '4' && permission.hasPermission(`finance/withdraw-status`)"> <!-- 确定对当前提现进行设为待付款操作? -->
|
|
|
|
|
- {{ $t('financial.toBePaid') }}<!-- 设为待付款 -->
|
|
|
|
|
- </el-dropdown-item>
|
|
|
|
|
- <el-dropdown-item command="status"
|
|
|
|
|
- @click.native="handleStatusShow(scope.row, 4, $t('financial.setPayFailedWithdrawal'), $t('common.note'))"
|
|
|
|
|
- v-show="scope.row.AUDIT_STATUS === '6' && permission.hasPermission(`finance/withdraw-status`)"> <!-- 付款失败备注 --> <!-- 确定对当前提现进行设为付款失败操作? -->
|
|
|
|
|
- {{ $t('financial.withdrawSetFailed') }}<!-- 设为付款失败 -->
|
|
|
|
|
|
|
+ @click.native="handleStatusShow(scope.row, 3, $t('financial.setApprovedNotice'))"
|
|
|
|
|
+ v-show="scope.row.AUDIT_STATUS === '0' && permission.hasPermission(`finance/withdraw-status-audit`)"> <!-- 确定对当前提现进行设为已付款操作 -->
|
|
|
|
|
+ {{ $t('financial.approve') }}<!--审核通过-->
|
|
|
</el-dropdown-item>
|
|
</el-dropdown-item>
|
|
|
|
|
+ <!-- <el-dropdown-item command="status"-->
|
|
|
|
|
+ <!-- @click.native="handleStatusShow(scope.row, 4, 'Are you sure to set payment failure for the current withdrawal?', 'Note')"-->
|
|
|
|
|
+ <!-- v-show="scope.row.AUDIT_STATUS === '6' && permission.hasPermission(`finance/withdraw-status`)"> <!– 付款失败备注 –> <!– 确定对当前提现进行设为付款失败操作? –>-->
|
|
|
|
|
+ <!-- Failed<!– 设为付款失败 –>-->
|
|
|
|
|
+ <!-- </el-dropdown-item>-->
|
|
|
<el-dropdown-item command="status"
|
|
<el-dropdown-item command="status"
|
|
|
@click.native="handleStatusShow(scope.row, 7, $t('financial.setWithdrawalReturnNotice'), $t('financial.noteWithdrawalReturn'))"
|
|
@click.native="handleStatusShow(scope.row, 7, $t('financial.setWithdrawalReturnNotice'), $t('financial.noteWithdrawalReturn'))"
|
|
|
- v-show="scope.row.AUDIT_STATUS === '0' && permission.hasPermission(`finance/withdraw-status`)"> <!-- 确定对当前提现进行设为提现退回操作? --> <!-- 提现退回备注 -->
|
|
|
|
|
- {{ $t('financial.withdrawSetReturn') }} <!-- 设为提现退回 -->
|
|
|
|
|
|
|
+ v-show="(scope.row.AUDIT_STATUS === '0') && permission.hasPermission(`finance/withdraw-status-return`)"><!-- 提现退回备注 -->
|
|
|
|
|
+ {{ $t('financial.withdrawSetReturn') }} <!-- 该会员已提供发票,请确认是否处理提现退回 --> <!-- 设为提现退回 -->
|
|
|
</el-dropdown-item>
|
|
</el-dropdown-item>
|
|
|
<el-dropdown-item command="status"
|
|
<el-dropdown-item command="status"
|
|
|
@click.native="handleStatusShow(scope.row, 7, $t('financial.memberInvoiceWithdrawalReturnNotice'), $t('financial.noteWithdrawalReturn'))"
|
|
@click.native="handleStatusShow(scope.row, 7, $t('financial.memberInvoiceWithdrawalReturnNotice'), $t('financial.noteWithdrawalReturn'))"
|
|
|
- v-show="(scope.row.AUDIT_STATUS === '1'||scope.row.AUDIT_STATUS === '2'||scope.row.AUDIT_STATUS === '3') && permission.hasPermission(`finance/withdraw-status`)"><!-- 提现退回备注 -->
|
|
|
|
|
|
|
+ v-show="(scope.row.AUDIT_STATUS === '1'||scope.row.AUDIT_STATUS === '2') && permission.hasPermission(`finance/withdraw-status-return`)"><!-- 提现退回备注 -->
|
|
|
{{ $t('financial.withdrawSetReturn') }} <!-- 该会员已提供发票,请确认是否处理提现退回 --> <!-- 设为提现退回 -->
|
|
{{ $t('financial.withdrawSetReturn') }} <!-- 该会员已提供发票,请确认是否处理提现退回 --> <!-- 设为提现退回 -->
|
|
|
</el-dropdown-item>
|
|
</el-dropdown-item>
|
|
|
|
|
+ <el-dropdown-item command="status"
|
|
|
|
|
+ @click.native="handleStatusShow(scope.row, 0, $t('financial.setCanceledNotice'), $t('financial.noteWithdrawalReturn'))"
|
|
|
|
|
+ v-show="scope.row.AUDIT_STATUS === '3' && permission.hasPermission(`finance/withdraw-status-cancel`)"> <!-- 确定对当前提现进行设为提现退回操作? --> <!-- 提现退回备注 -->
|
|
|
|
|
+ {{ $t('financial.cancel') }} <!-- 取消审核 -->
|
|
|
|
|
+ </el-dropdown-item>
|
|
|
</el-dropdown-menu>
|
|
</el-dropdown-menu>
|
|
|
</el-dropdown>
|
|
</el-dropdown>
|
|
|
</template>
|
|
</template>
|
|
|
</el-table-column>
|
|
</el-table-column>
|
|
|
</el-table>
|
|
</el-table>
|
|
|
<div class="white-box-footer">
|
|
<div class="white-box-footer">
|
|
|
- <el-dropdown style="margin-right:10px;" size="small" trigger="click" @command="handleMuli"
|
|
|
|
|
- v-if="filterStatus!=='-1' && filterStatus!=='7' && (permission.hasPermission(`finance/withdraw-status`))">
|
|
|
|
|
|
|
+
|
|
|
|
|
+ <el-dropdown size="small" trigger="click" @command="handleMuli"
|
|
|
|
|
+ v-if="filterStatus!=='-1' && filterStatus!=='6' && filterStatus!=='7' && (permission.hasPermission(`finance/withdraw-status`))">
|
|
|
<el-button type="primary" size="small">
|
|
<el-button type="primary" size="small">
|
|
|
{{ $t('financial.selectedData') }}<!--所选数据--><i class="el-icon-arrow-down el-icon--right"></i>
|
|
{{ $t('financial.selectedData') }}<!--所选数据--><i class="el-icon-arrow-down el-icon--right"></i>
|
|
|
</el-button>
|
|
</el-button>
|
|
|
<el-dropdown-menu v-if="filterStatus==='0'" slot="dropdown">
|
|
<el-dropdown-menu v-if="filterStatus==='0'" slot="dropdown">
|
|
|
- <el-dropdown-item command="2">{{ $t('financial.batchAuditPassed') }}</el-dropdown-item> <!-- 批量审核通过-->
|
|
|
|
|
- <el-dropdown-item command="7">{{ $t('financial.batchReturn') }}</el-dropdown-item> <!-- 批量退回 -->
|
|
|
|
|
- </el-dropdown-menu>
|
|
|
|
|
- <el-dropdown-menu v-else-if="filterStatus==='2'" slot="dropdown">
|
|
|
|
|
- <el-dropdown-item command="3">{{ $t('financial.batchSetToBePaid') }}</el-dropdown-item><!-- 批量设为待付款 -->
|
|
|
|
|
|
|
+ <el-dropdown-item command="3" v-show="permission.hasPermission(`finance/withdraw-status-audit`)">{{ $t('financial.batchAuditPassed') }}</el-dropdown-item> <!-- 批量审核通过-->
|
|
|
|
|
+ <el-dropdown-item command="7" v-show="permission.hasPermission(`finance/withdraw-status-return`)">{{ $t('financial.batchReturn') }}</el-dropdown-item> <!-- 批量退回 -->
|
|
|
</el-dropdown-menu>
|
|
</el-dropdown-menu>
|
|
|
|
|
+ <!-- <el-dropdown-menu v-else-if="filterStatus==='2'" slot="dropdown">-->
|
|
|
|
|
+ <!-- <el-dropdown-item command="3">Batch set to be paid</el-dropdown-item><!– 批量设为待付款 –>-->
|
|
|
|
|
+ <!-- </el-dropdown-menu>-->
|
|
|
<el-dropdown-menu v-else-if="filterStatus==='3'" slot="dropdown">
|
|
<el-dropdown-menu v-else-if="filterStatus==='3'" slot="dropdown">
|
|
|
- <el-dropdown-item command="6">{{ $t('financial.batchSetPaid') }}</el-dropdown-item><!--批量设为已付款-->
|
|
|
|
|
- <el-dropdown-item command="7">{{ $t('financial.batchReturn') }}</el-dropdown-item><!--批量退回-->
|
|
|
|
|
- </el-dropdown-menu>
|
|
|
|
|
- <el-dropdown-menu v-else-if="filterStatus==='6'" slot="dropdown">
|
|
|
|
|
- <el-dropdown-item command="4">{{ $t('financial.batchSetPaymentFailure') }}</el-dropdown-item><!--批量设为付款失败-->
|
|
|
|
|
- </el-dropdown-menu>
|
|
|
|
|
- <el-dropdown-menu v-else-if="filterStatus==='4'" slot="dropdown">
|
|
|
|
|
- <el-dropdown-item command="3">{{ $t('financial.batchSetToBePaid') }}</el-dropdown-item><!-- 批量设为待付款 -->
|
|
|
|
|
|
|
+ <el-dropdown-item command="6" v-show="permission.hasPermission(`finance/withdraw-status-pay`)">{{ $t('financial.batchSetPaid') }}</el-dropdown-item><!--批量设为已付款-->
|
|
|
|
|
+ <el-dropdown-item command="0" v-show="permission.hasPermission(`finance/withdraw-status-cancel`)">{{ $t('financial.batchReturn') }}</el-dropdown-item><!--批量退回-->
|
|
|
</el-dropdown-menu>
|
|
</el-dropdown-menu>
|
|
|
|
|
+ <!-- <el-dropdown-menu v-else-if="filterStatus==='6'" slot="dropdown">-->
|
|
|
|
|
+ <!-- <el-dropdown-item command="4">Batch set payment failure</el-dropdown-item><!–批量设为付款失败–>-->
|
|
|
|
|
+ <!-- </el-dropdown-menu>-->
|
|
|
|
|
+ <!-- <el-dropdown-menu v-else-if="filterStatus==='4'" slot="dropdown">-->
|
|
|
|
|
+ <!-- <el-dropdown-item command="3">Batch set to be paid</el-dropdown-item><!– 批量设为待付款 –>-->
|
|
|
|
|
+ <!-- </el-dropdown-menu>-->
|
|
|
</el-dropdown>
|
|
</el-dropdown>
|
|
|
|
|
|
|
|
- <el-button type="success" size="small" @click="handleExport" style="margin-right:10px;"
|
|
|
|
|
|
|
+ <el-button type="success" size="small" @click="handleExport"
|
|
|
v-show="permission.hasPermission(`finance/transfer-list-export`)">{{ $t('common.exportExcel') }}
|
|
v-show="permission.hasPermission(`finance/transfer-list-export`)">{{ $t('common.exportExcel') }}
|
|
|
</el-button>
|
|
</el-button>
|
|
|
<pagination :total="totalCount" :page_size="pageSize" :page_sizes="pageSizes" @size-change="handleSizeChange"
|
|
<pagination :total="totalCount" :page_size="pageSize" :page_sizes="pageSizes" @size-change="handleSizeChange"
|
|
|
@current-change="handleCurrentChange"></pagination>
|
|
@current-change="handleCurrentChange"></pagination>
|
|
|
- <el-dialog :title="$t('financial.modifyWithdrawalInfo')" :visible.sync="dialogEditFormVisible">
|
|
|
|
|
- <el-form :model="form" label-width="150px" v-loading="dialogEditLoading">
|
|
|
|
|
|
|
+ <el-dialog title="modify the withdrawal information" :visible.sync="dialogEditFormVisible">
|
|
|
|
|
+ <el-form :model="form" label-width="150px" style="width:500px;" v-loading="dialogEditLoading">
|
|
|
<el-form-item :label="$t('financial.memberCode')">
|
|
<el-form-item :label="$t('financial.memberCode')">
|
|
|
<el-input v-model="form.baseInfo.USER_NAME" :disabled="true"></el-input>
|
|
<el-input v-model="form.baseInfo.USER_NAME" :disabled="true"></el-input>
|
|
|
</el-form-item>
|
|
</el-form-item>
|
|
@@ -126,7 +132,7 @@
|
|
|
</el-form-item>
|
|
</el-form-item>
|
|
|
<el-form-item :label="$t('financial.registerType')">
|
|
<el-form-item :label="$t('financial.registerType')">
|
|
|
<el-select v-model="form.baseInfo.REG_TYPE" :placeholder="$t('financial.pleaseSelectRegisterType')" :disabled="true">
|
|
<el-select v-model="form.baseInfo.REG_TYPE" :placeholder="$t('financial.pleaseSelectRegisterType')" :disabled="true">
|
|
|
- <el-option v-for="(item,key) in regTypes" :label="item.TYPE_NAME" :value="item.ID"
|
|
|
|
|
|
|
+ <el-option v-for="(item, key) in regTypes" :label="item.TYPE_NAME" :value="item.ID"
|
|
|
:key="item.ID"></el-option>
|
|
:key="item.ID"></el-option>
|
|
|
</el-select>
|
|
</el-select>
|
|
|
</el-form-item>
|
|
</el-form-item>
|
|
@@ -158,7 +164,7 @@
|
|
|
type="warning" :closable="false">
|
|
type="warning" :closable="false">
|
|
|
</el-alert>
|
|
</el-alert>
|
|
|
<el-form :model="auditForm" v-loading="dialogAuditLoading">
|
|
<el-form :model="auditForm" v-loading="dialogAuditLoading">
|
|
|
- <el-form-item :label="$t('financial.estimatedDatePayment')" v-show="filterStatus==='2' || filterStatus==='4'"> <!-- 预计付款日期 -->
|
|
|
|
|
|
|
+ <el-form-item :label="$t('financial.estimatedDatePayment')" v-show="planPayDateVisible"> <!-- 预计付款日期 -->
|
|
|
<el-date-picker
|
|
<el-date-picker
|
|
|
v-model="auditForm.planPaidAt"
|
|
v-model="auditForm.planPaidAt"
|
|
|
type="date"
|
|
type="date"
|
|
@@ -194,12 +200,12 @@
|
|
|
|
|
|
|
|
<script>
|
|
<script>
|
|
|
import permission from '@/utils/permission'
|
|
import permission from '@/utils/permission'
|
|
|
|
|
+ import { withdrawList, withdrawExport, multPoint, postWithdrawStatus } from '@/api/finance'
|
|
|
import tool from '@/utils/tool'
|
|
import tool from '@/utils/tool'
|
|
|
import FilterUser from '@/components/FilterUser'
|
|
import FilterUser from '@/components/FilterUser'
|
|
|
import baseInfo from '@/utils/baseInfo'
|
|
import baseInfo from '@/utils/baseInfo'
|
|
|
import Pagination from '@/components/Pagination'
|
|
import Pagination from '@/components/Pagination'
|
|
|
import filterHelper from '@/utils/filterHelper'
|
|
import filterHelper from '@/utils/filterHelper'
|
|
|
- import { withdrawList, withdrawExport, multPoint, postWithdrawStatus } from '@/api/finance'
|
|
|
|
|
import {getOperatingSystem} from "@/utils"
|
|
import {getOperatingSystem} from "@/utils"
|
|
|
|
|
|
|
|
export default {
|
|
export default {
|
|
@@ -212,6 +218,7 @@
|
|
|
activeName: 'all',
|
|
activeName: 'all',
|
|
|
tableHeaders: null,
|
|
tableHeaders: null,
|
|
|
baseDecLevels: baseInfo.decLevels(),
|
|
baseDecLevels: baseInfo.decLevels(),
|
|
|
|
|
+
|
|
|
allData: null,
|
|
allData: null,
|
|
|
tableData: null,
|
|
tableData: null,
|
|
|
loading: true,
|
|
loading: true,
|
|
@@ -220,7 +227,7 @@
|
|
|
totalPages: 1,
|
|
totalPages: 1,
|
|
|
totalCount: 1,
|
|
totalCount: 1,
|
|
|
pageSize: 20,
|
|
pageSize: 20,
|
|
|
- pageSizes: [1, 2, 5, 10, 20, 50, 100],
|
|
|
|
|
|
|
+ pageSizes: [1, 2, 5, 10, 20, 50, 100],
|
|
|
tool: tool,
|
|
tool: tool,
|
|
|
permission: permission,
|
|
permission: permission,
|
|
|
regTypes: baseInfo.regTypes(),
|
|
regTypes: baseInfo.regTypes(),
|
|
@@ -230,6 +237,7 @@
|
|
|
dialogAuditLoading: false,
|
|
dialogAuditLoading: false,
|
|
|
dialogAddInvoiceVisible: false,
|
|
dialogAddInvoiceVisible: false,
|
|
|
dialogAddInvoiceLoading: false,
|
|
dialogAddInvoiceLoading: false,
|
|
|
|
|
+ planPayDateVisible: false,
|
|
|
auditId: null,
|
|
auditId: null,
|
|
|
form: {
|
|
form: {
|
|
|
id: null,
|
|
id: null,
|
|
@@ -237,7 +245,7 @@
|
|
|
amount: null,
|
|
amount: null,
|
|
|
planPaidAt: null,
|
|
planPaidAt: null,
|
|
|
paidAt: new Date(),
|
|
paidAt: new Date(),
|
|
|
- createRemark: null,
|
|
|
|
|
|
|
+ createRemark: null
|
|
|
},
|
|
},
|
|
|
invoiceForm: {
|
|
invoiceForm: {
|
|
|
id: null,
|
|
id: null,
|
|
@@ -258,16 +266,16 @@
|
|
|
sellerBank: null,
|
|
sellerBank: null,
|
|
|
itemName: null,
|
|
itemName: null,
|
|
|
invoiceRemark: null,
|
|
invoiceRemark: null,
|
|
|
- createRemark: null,
|
|
|
|
|
|
|
+ createRemark: null
|
|
|
},
|
|
},
|
|
|
pickerOptions0: {
|
|
pickerOptions0: {
|
|
|
- disabledDate(time) {
|
|
|
|
|
- return time.getTime() < Date.now();
|
|
|
|
|
|
|
+ disabledDate (time) {
|
|
|
|
|
+ return time.getTime() < Date.now()
|
|
|
}
|
|
}
|
|
|
},
|
|
},
|
|
|
pickerOptions1: {
|
|
pickerOptions1: {
|
|
|
- disabledDate(time) {
|
|
|
|
|
- return time.getTime() < Date.now() - 8.64e7;
|
|
|
|
|
|
|
+ disabledDate (time) {
|
|
|
|
|
+ return time.getTime() < Date.now() - 8.64e7
|
|
|
}
|
|
}
|
|
|
},
|
|
},
|
|
|
auditRemark: '',
|
|
auditRemark: '',
|
|
@@ -277,25 +285,25 @@
|
|
|
selectedIds: [],
|
|
selectedIds: [],
|
|
|
planPaidAt: null,
|
|
planPaidAt: null,
|
|
|
createRemark: null,
|
|
createRemark: null,
|
|
|
- withdrawAudit: '',
|
|
|
|
|
|
|
+ withdrawAudit: ''
|
|
|
},
|
|
},
|
|
|
auditTips: '',
|
|
auditTips: '',
|
|
|
filterTypes: {},
|
|
filterTypes: {},
|
|
|
filterModel: {},
|
|
filterModel: {},
|
|
|
excelForm: {
|
|
excelForm: {
|
|
|
- rowCount: '',
|
|
|
|
|
|
|
+ rowCount: ''
|
|
|
},
|
|
},
|
|
|
- filterStatus: '0',
|
|
|
|
|
|
|
+ filterStatus: '0'
|
|
|
}
|
|
}
|
|
|
},
|
|
},
|
|
|
mounted () {
|
|
mounted () {
|
|
|
- this.getData();
|
|
|
|
|
|
|
+ this.getData()
|
|
|
let system = getOperatingSystem()
|
|
let system = getOperatingSystem()
|
|
|
- if (system == "Android" || system == 'ios') {
|
|
|
|
|
- this.fixedColumn = false
|
|
|
|
|
- } else {
|
|
|
|
|
- this.fixedColumn = 'right'
|
|
|
|
|
- }
|
|
|
|
|
|
|
+ if (system == "Android" || system == 'ios') {
|
|
|
|
|
+ this.fixedColumn = false
|
|
|
|
|
+ } else {
|
|
|
|
|
+ this.fixedColumn = 'right'
|
|
|
|
|
+ }
|
|
|
// if (permission.hasPermission(`finance/withdraw-7`)) {
|
|
// if (permission.hasPermission(`finance/withdraw-7`)) {
|
|
|
// this.activeName = 'seven'
|
|
// this.activeName = 'seven'
|
|
|
// }
|
|
// }
|
|
@@ -329,7 +337,7 @@
|
|
|
message: this.$t('financial.selectRecordOperateNotice'), // 请选择要操作的记录
|
|
message: this.$t('financial.selectRecordOperateNotice'), // 请选择要操作的记录
|
|
|
type: 'warning'
|
|
type: 'warning'
|
|
|
})
|
|
})
|
|
|
- return;
|
|
|
|
|
|
|
+ return
|
|
|
}
|
|
}
|
|
|
this.handleAudit(null, command)
|
|
this.handleAudit(null, command)
|
|
|
},
|
|
},
|
|
@@ -337,16 +345,16 @@
|
|
|
let title = ''
|
|
let title = ''
|
|
|
if (status === '2') {
|
|
if (status === '2') {
|
|
|
title = this.$t('financial.surePassReviewNoteNotice') // 确定要通过审核?备注:
|
|
title = this.$t('financial.surePassReviewNoteNotice') // 确定要通过审核?备注:
|
|
|
- }else if(status === '3') {
|
|
|
|
|
|
|
+ } else if (status === '3') {
|
|
|
title = this.$t('financial.sureUnpaidReviewNotice') // 确定要设为待付款?备注:
|
|
title = this.$t('financial.sureUnpaidReviewNotice') // 确定要设为待付款?备注:
|
|
|
- }else if(status === '4') {
|
|
|
|
|
- title = this.$t('financial.surePaymentFailureReview')// 确定要设为付款失败?备注:
|
|
|
|
|
- }else if(status === '6') {
|
|
|
|
|
- title = this.$t('financial.surePaidReviewNotice')// 确定要设为已付款?备注:
|
|
|
|
|
- }else if(status === '7') {
|
|
|
|
|
- title = this.$t('financial.sureReturnReviewNotice')//确定要设为已退回?备注:
|
|
|
|
|
|
|
+ } else if (status === '4') {
|
|
|
|
|
+ title = this.$t('financial.surePaymentFailureReview') // 确定要设为付款失败?备注:
|
|
|
|
|
+ } else if (status === '6') {
|
|
|
|
|
+ title = this.$t('financial.surePaidReviewNotice') // 确定要设为已付款?备注:
|
|
|
|
|
+ } else if (status === '7') {
|
|
|
|
|
+ title = this.$t('financial.sureReturnReviewNotice') // 确定要设为已退回?备注:
|
|
|
}
|
|
}
|
|
|
- this.handleStatusShow(row,status,title);
|
|
|
|
|
|
|
+ this.handleStatusShow(row, status, title)
|
|
|
},
|
|
},
|
|
|
handleExpand (row, event, column) {
|
|
handleExpand (row, event, column) {
|
|
|
this.$refs.multipleTable.toggleRowExpansion(row)
|
|
this.$refs.multipleTable.toggleRowExpansion(row)
|
|
@@ -400,7 +408,7 @@
|
|
|
handleEdit () {
|
|
handleEdit () {
|
|
|
this.dialogEditFormVisible = false
|
|
this.dialogEditFormVisible = false
|
|
|
this.$message({
|
|
this.$message({
|
|
|
- message: this.$t('financial.modifyData'),//正在修改数据
|
|
|
|
|
|
|
+ message: this.$t('financial.modifyData'), // 正在修改数据
|
|
|
type: 'info'
|
|
type: 'info'
|
|
|
})
|
|
})
|
|
|
this.loading = true
|
|
this.loading = true
|
|
@@ -414,14 +422,14 @@
|
|
|
}).catch(response => {
|
|
}).catch(response => {
|
|
|
})
|
|
})
|
|
|
},
|
|
},
|
|
|
- handleStatusShow(row, status, title, remark = this.$t('table.remark')) { // 备注
|
|
|
|
|
|
|
+ handleStatusShow (row, status, title, remark = this.$t('table.remark')) { // 备注
|
|
|
this.auditForm = {
|
|
this.auditForm = {
|
|
|
auditTips: '',
|
|
auditTips: '',
|
|
|
auditStatus: null,
|
|
auditStatus: null,
|
|
|
selectedIds: [],
|
|
selectedIds: [],
|
|
|
planPaidAt: null,
|
|
planPaidAt: null,
|
|
|
paidAt: new Date(),
|
|
paidAt: new Date(),
|
|
|
- remark: null,
|
|
|
|
|
|
|
+ remark: null
|
|
|
}
|
|
}
|
|
|
if (row === null) {
|
|
if (row === null) {
|
|
|
for (let val of this.multipleSelection) {
|
|
for (let val of this.multipleSelection) {
|
|
@@ -432,7 +440,7 @@
|
|
|
}
|
|
}
|
|
|
if (this.auditForm.selectedIds.length === 0) {
|
|
if (this.auditForm.selectedIds.length === 0) {
|
|
|
this.$message({
|
|
this.$message({
|
|
|
- message: this.$t('financial.selectRecordOperateNotice'),// 请选择数据
|
|
|
|
|
|
|
+ message: this.$t('financial.selectRecordOperateNotice'), // 请选择数据
|
|
|
type: 'warning'
|
|
type: 'warning'
|
|
|
})
|
|
})
|
|
|
return
|
|
return
|
|
@@ -441,6 +449,11 @@
|
|
|
this.dialogAuditFormVisible = true
|
|
this.dialogAuditFormVisible = true
|
|
|
this.auditForm.auditTips = title
|
|
this.auditForm.auditTips = title
|
|
|
this.auditForm.auditStatus = status
|
|
this.auditForm.auditStatus = status
|
|
|
|
|
+ if (status == '3') {
|
|
|
|
|
+ this.planPayDateVisible = true
|
|
|
|
|
+ } else {
|
|
|
|
|
+ this.planPayDateVisible = false
|
|
|
|
|
+ }
|
|
|
},
|
|
},
|
|
|
handleStatus () {
|
|
handleStatus () {
|
|
|
multPoint({opType: 2}).then(response => {
|
|
multPoint({opType: 2}).then(response => {
|
|
@@ -492,26 +505,26 @@
|
|
|
}).catch(response => {
|
|
}).catch(response => {
|
|
|
})
|
|
})
|
|
|
},
|
|
},
|
|
|
- handleSelectionChange(val) {
|
|
|
|
|
|
|
+ handleSelectionChange (val) {
|
|
|
this.multipleSelection = val
|
|
this.multipleSelection = val
|
|
|
},
|
|
},
|
|
|
- handleCurrentChange(page) {
|
|
|
|
|
|
|
+ handleCurrentChange (page) {
|
|
|
this.getData(page, this.pageSize)
|
|
this.getData(page, this.pageSize)
|
|
|
},
|
|
},
|
|
|
- handleSizeChange(pageSize) {
|
|
|
|
|
|
|
+ handleSizeChange (pageSize) {
|
|
|
this.getData(this.currentPage, pageSize)
|
|
this.getData(this.currentPage, pageSize)
|
|
|
},
|
|
},
|
|
|
- handleFilterStatusClick(tab, event) {
|
|
|
|
|
|
|
+ handleFilterStatusClick (tab, event) {
|
|
|
filterHelper.clearFilterOption(this)
|
|
filterHelper.clearFilterOption(this)
|
|
|
this.getData()
|
|
this.getData()
|
|
|
},
|
|
},
|
|
|
- handleFilterUser(filterData) {
|
|
|
|
|
|
|
+ handleFilterUser (filterData) {
|
|
|
filterHelper.handleFilterUser(this, filterData)
|
|
filterHelper.handleFilterUser(this, filterData)
|
|
|
},
|
|
},
|
|
|
- handleFilter() {
|
|
|
|
|
|
|
+ handleFilter () {
|
|
|
this.getData()
|
|
this.getData()
|
|
|
},
|
|
},
|
|
|
- getData(page, pageSize) {
|
|
|
|
|
|
|
+ getData (page, pageSize) {
|
|
|
let filterData = this.filterModel
|
|
let filterData = this.filterModel
|
|
|
filterData.filterStatus = this.filterStatus != '-1' ? `=,${this.filterStatus}` : ''
|
|
filterData.filterStatus = this.filterStatus != '-1' ? `=,${this.filterStatus}` : ''
|
|
|
let vueObj = this
|
|
let vueObj = this
|
|
@@ -533,9 +546,9 @@
|
|
|
this.loading = false
|
|
this.loading = false
|
|
|
})
|
|
})
|
|
|
},
|
|
},
|
|
|
- onMessageCallback() {
|
|
|
|
|
|
|
+ onMessageCallback () {
|
|
|
this.getData(this.currentPage, this.pageSize)
|
|
this.getData(this.currentPage, this.pageSize)
|
|
|
- },
|
|
|
|
|
|
|
+ }
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|
|
|
</script>
|
|
</script>
|