|
|
@@ -15,6 +15,19 @@
|
|
|
@columns-change="handleColumnChange"
|
|
|
:cache-key="cacheKeyUrl"
|
|
|
>
|
|
|
+ <!-- 表头工具栏 -->
|
|
|
+ <template v-slot:toolbar>
|
|
|
+ <el-button
|
|
|
+ v-if="$hasPermission('eom:finpayable:push')"
|
|
|
+ size="small"
|
|
|
+ type="primary"
|
|
|
+ class="ele-btn-icon"
|
|
|
+ @click="allPushBtn"
|
|
|
+ :disabled="selection?.length === 0"
|
|
|
+ >
|
|
|
+ 批量推送
|
|
|
+ </el-button>
|
|
|
+ </template>
|
|
|
<!-- 操作 -->
|
|
|
<template v-slot:action="{ row }">
|
|
|
<el-link
|
|
|
@@ -99,7 +112,7 @@
|
|
|
<script>
|
|
|
import { reviewStatus } from '@/enum/dict';
|
|
|
import dictMixins from '@/mixins/dictMixins';
|
|
|
- import { finPayablePageListAPI } from '@/api/financialManage/payableManage';
|
|
|
+ import { finPayablePageListAPI, purchasePayableBill } from '@/api/financialManage/payableManage';
|
|
|
import paymentDialog from './components/paymentDialog.vue';
|
|
|
import searchTable from './searchTable.vue';
|
|
|
import detailDialog from './components/detailDialog.vue';
|
|
|
@@ -148,6 +161,12 @@
|
|
|
// 当columnsVersion变化时会重新计算,用作更新列配置
|
|
|
const version = this.columnsVersion;
|
|
|
return [
|
|
|
+ {
|
|
|
+ width: 45,
|
|
|
+ type: 'selection',
|
|
|
+ columnKey: 'selection',
|
|
|
+ align: 'center'
|
|
|
+ },
|
|
|
{
|
|
|
width: 60,
|
|
|
label: '序号',
|
|
|
@@ -272,6 +291,16 @@
|
|
|
return reviewStatus[_row.approvalStatus];
|
|
|
}
|
|
|
},
|
|
|
+ {
|
|
|
+ prop: 'externalId',
|
|
|
+ label: '是否推送',
|
|
|
+ align: 'center',
|
|
|
+ showOverflowTooltip: true,
|
|
|
+ minWidth: 120,
|
|
|
+ formatter: (_row, _column, cellValue) => {
|
|
|
+ return _row.externalId? '已推送' : '未推送';
|
|
|
+ }
|
|
|
+ },
|
|
|
{
|
|
|
columnKey: 'action',
|
|
|
label: '操作',
|
|
|
@@ -287,6 +316,13 @@
|
|
|
},
|
|
|
created() {},
|
|
|
methods: {
|
|
|
+ allPushBtn() {
|
|
|
+ const dataId = this.selection.map((v) => v.id);
|
|
|
+ purchasePayableBill(dataId).then((res) => {
|
|
|
+ this.$message.success('推送成功!');
|
|
|
+ this.reload();
|
|
|
+ });
|
|
|
+ },
|
|
|
handleCollection(row = {}, type) {
|
|
|
this.paymentDialogFlag = true;
|
|
|
this.$nextTick(() => {
|