|
|
|
@ -7,53 +7,55 @@
|
|
|
|
|
<a-spin :spinning="loading">
|
|
|
|
|
<div class="ds-approve-fee-table-sf">
|
|
|
|
|
<div class="fee-check-opt">
|
|
|
|
|
<h4>应收应付费用</h4>
|
|
|
|
|
<a-dropdown>
|
|
|
|
|
<template #overlay>
|
|
|
|
|
<a-menu>
|
|
|
|
|
<a-menu-item @click="toggleFee">{{
|
|
|
|
|
check ? '显示所有费用' : '仅待审核费用'
|
|
|
|
|
}}</a-menu-item>
|
|
|
|
|
</a-menu>
|
|
|
|
|
</template>
|
|
|
|
|
<a-button type="link">
|
|
|
|
|
<span
|
|
|
|
|
style="font-size: 13px"
|
|
|
|
|
class="iconfont icon-shenhe ml15"
|
|
|
|
|
></span>
|
|
|
|
|
{{ check ? '仅待审核费用' : '显示所有费用' }}
|
|
|
|
|
<span class="iconfont icon-30jiantouxiangxiafill"></span>
|
|
|
|
|
<h4>{{ status == 'BILL_RECV_AUDIT' ? '应收费用确认' : '应收应付费用' }}</h4>
|
|
|
|
|
<span v-if="!status">
|
|
|
|
|
<a-dropdown>
|
|
|
|
|
<template #overlay>
|
|
|
|
|
<a-menu>
|
|
|
|
|
<a-menu-item @click="toggleFee">{{
|
|
|
|
|
check ? '显示所有费用' : '仅待审核费用'
|
|
|
|
|
}}</a-menu-item>
|
|
|
|
|
</a-menu>
|
|
|
|
|
</template>
|
|
|
|
|
<a-button type="link">
|
|
|
|
|
<span
|
|
|
|
|
style="font-size: 13px"
|
|
|
|
|
class="iconfont icon-shenhe ml15"
|
|
|
|
|
></span>
|
|
|
|
|
{{ check ? '仅待审核费用' : '显示所有费用' }}
|
|
|
|
|
<span class="iconfont icon-30jiantouxiangxiafill"></span>
|
|
|
|
|
</a-button>
|
|
|
|
|
</a-dropdown>
|
|
|
|
|
<Divider type="vertical" />
|
|
|
|
|
<a-button type="link" @click="agree('1', 1)">
|
|
|
|
|
<span class="iconfont icon-yiwancheng2-copy" :style="{fontSize: '13px'}"></span>
|
|
|
|
|
审核通过
|
|
|
|
|
</a-button>
|
|
|
|
|
<a-button type="link" @click="reject">
|
|
|
|
|
<span class="iconfont icon-bohui-01" :style="{fontSize: '13px'}"></span>
|
|
|
|
|
驳回提交
|
|
|
|
|
</a-button>
|
|
|
|
|
<a-button type="link" @click="invoiceOp(0)">
|
|
|
|
|
<span class="iconfont icon-jinzhi" :style="{fontSize: '13px'}"></span>
|
|
|
|
|
禁开发票
|
|
|
|
|
</a-button>
|
|
|
|
|
<a-button type="link" @click="invoiceOp(1)">
|
|
|
|
|
<span class="iconfont icon-pizhun" :style="{fontSize: '13px'}"></span>
|
|
|
|
|
解禁发票
|
|
|
|
|
</a-button>
|
|
|
|
|
<a-button type="link" @click="agree(2, 1)">
|
|
|
|
|
<span class="iconfont icon-shenpi-pizhun" :style="{fontSize: '13px'}"></span>
|
|
|
|
|
批准申请
|
|
|
|
|
</a-button>
|
|
|
|
|
<a-button type="link" @click="agree(3, 2)">
|
|
|
|
|
<span class="iconfont icon-bohui-01" :style="{fontSize: '13px'}"></span>
|
|
|
|
|
驳回申请
|
|
|
|
|
</a-button>
|
|
|
|
|
<a-button type="link" @click="approveToB">
|
|
|
|
|
<span class="iconfont icon-renwu_" :style="{fontSize: '13px'}"></span>
|
|
|
|
|
本票审核
|
|
|
|
|
</a-button>
|
|
|
|
|
</a-dropdown>
|
|
|
|
|
<Divider type="vertical" />
|
|
|
|
|
<a-button type="link" @click="agree('1', 1)">
|
|
|
|
|
<span class="iconfont icon-yiwancheng2-copy" :style="{fontSize: '13px'}"></span>
|
|
|
|
|
审核通过
|
|
|
|
|
</a-button>
|
|
|
|
|
<a-button type="link" @click="reject">
|
|
|
|
|
<span class="iconfont icon-bohui-01" :style="{fontSize: '13px'}"></span>
|
|
|
|
|
驳回提交
|
|
|
|
|
</a-button>
|
|
|
|
|
<a-button type="link" @click="invoiceOp(0)">
|
|
|
|
|
<span class="iconfont icon-jinzhi" :style="{fontSize: '13px'}"></span>
|
|
|
|
|
禁开发票
|
|
|
|
|
</a-button>
|
|
|
|
|
<a-button type="link" @click="invoiceOp(1)">
|
|
|
|
|
<span class="iconfont icon-pizhun" :style="{fontSize: '13px'}"></span>
|
|
|
|
|
解禁发票
|
|
|
|
|
</a-button>
|
|
|
|
|
<a-button type="link" @click="agree(2, 1)">
|
|
|
|
|
<span class="iconfont icon-shenpi-pizhun" :style="{fontSize: '13px'}"></span>
|
|
|
|
|
批准申请
|
|
|
|
|
</a-button>
|
|
|
|
|
<a-button type="link" @click="agree(3, 2)">
|
|
|
|
|
<span class="iconfont icon-bohui-01" :style="{fontSize: '13px'}"></span>
|
|
|
|
|
驳回申请
|
|
|
|
|
</a-button>
|
|
|
|
|
<a-button type="link" @click="approveToB">
|
|
|
|
|
<span class="iconfont icon-renwu_" :style="{fontSize: '13px'}"></span>
|
|
|
|
|
本票审核
|
|
|
|
|
</a-button>
|
|
|
|
|
</span>
|
|
|
|
|
<!-- <FeeActionBar
|
|
|
|
|
></FeeActionBar> -->
|
|
|
|
|
</div>
|
|
|
|
@ -134,7 +136,7 @@
|
|
|
|
|
</a-spin>
|
|
|
|
|
</template>
|
|
|
|
|
<script lang="ts" setup>
|
|
|
|
|
import { onMounted, ref, reactive, defineProps, watch, defineExpose, defineEmits } from 'vue'
|
|
|
|
|
import { ref, defineExpose } from 'vue'
|
|
|
|
|
import { BasicTable, useTable } from '/@/components/Table'
|
|
|
|
|
import { useMessage } from '/@/hooks/web/useMessage'
|
|
|
|
|
import { GetFees, Audit, SetInvoiceEnabled, AuditByBiz } from '../api'
|
|
|
|
@ -145,6 +147,11 @@
|
|
|
|
|
import FeeRejectModal from './feeRejectModal.vue'
|
|
|
|
|
import { formatTableData } from '/@/hooks/web/common'
|
|
|
|
|
import emitter from '/@/utils/Bus'
|
|
|
|
|
import { useRoute } from 'vue-router'
|
|
|
|
|
const route = useRoute()
|
|
|
|
|
// 当前页面状态
|
|
|
|
|
const status = route.query.status
|
|
|
|
|
console.log(route)
|
|
|
|
|
const { createMessage } = useMessage()
|
|
|
|
|
// 过滤显示仅审核费用
|
|
|
|
|
const check = ref(true)
|
|
|
|
@ -169,31 +176,31 @@
|
|
|
|
|
{
|
|
|
|
|
title: v == 1 ? '应收' : '应付',
|
|
|
|
|
align: 'center',
|
|
|
|
|
width: 200,
|
|
|
|
|
width: 400,
|
|
|
|
|
children: [
|
|
|
|
|
{
|
|
|
|
|
dataIndex: 'RMB',
|
|
|
|
|
title: 'RMB',
|
|
|
|
|
align: 'left',
|
|
|
|
|
minWidth: 80
|
|
|
|
|
minWidth: 70
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
dataIndex: 'USD',
|
|
|
|
|
title: 'USD',
|
|
|
|
|
align: 'left',
|
|
|
|
|
minWidth: 80
|
|
|
|
|
minWidth: 70
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
dataIndex: 'other',
|
|
|
|
|
title: '其他币别',
|
|
|
|
|
align: 'left',
|
|
|
|
|
minWidth: 80
|
|
|
|
|
minWidth: 70
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
dataIndex: 'customerFullName',
|
|
|
|
|
title: '客户名称',
|
|
|
|
|
align: 'left',
|
|
|
|
|
minWidth: 80
|
|
|
|
|
minWidth: 150
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
dataIndex: 'feeStatusText',
|
|
|
|
@ -205,19 +212,19 @@
|
|
|
|
|
dataIndex: 'unitPrice',
|
|
|
|
|
title: '单价',
|
|
|
|
|
align: 'left',
|
|
|
|
|
width: 100
|
|
|
|
|
width: 70
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
dataIndex: 'quantity',
|
|
|
|
|
title: '数量',
|
|
|
|
|
align: 'left',
|
|
|
|
|
width: 50
|
|
|
|
|
width: 40
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
dataIndex: 'exchangeRate',
|
|
|
|
|
title: '汇率',
|
|
|
|
|
align: 'left',
|
|
|
|
|
width: 50
|
|
|
|
|
width: 40
|
|
|
|
|
}
|
|
|
|
|
]
|
|
|
|
|
}
|
|
|
|
|