|
|
@@ -75,7 +75,9 @@
|
|
|
<el-table-column prop="taxPoint" label="税点" width="120"></el-table-column>
|
|
|
<el-table-column prop="actualReceivedAmount" label="开票金额" width="120"></el-table-column>
|
|
|
<el-table-column prop="receivableSupervisePremium" label="应收金额" width="120"></el-table-column>
|
|
|
- <el-table-column prop="settlementStatus" label="结算状态" width="120"></el-table-column>
|
|
|
+ <el-table-column prop="settlementStatus" label="结算状态" width="120">
|
|
|
+
|
|
|
+ </el-table-column>
|
|
|
<el-table-column prop="settlementAmount" label="已结算金额" width="120"></el-table-column>
|
|
|
<el-table-column prop="remainSettlementAmount" label="待结算金额" width="120"></el-table-column>
|
|
|
<el-table-column prop="createBy" label="开票人" width="120"></el-table-column>
|
|
|
@@ -83,7 +85,7 @@
|
|
|
<el-table-column label="操作" width="200" fixed="right" align="center">
|
|
|
<template #default="scope">
|
|
|
<el-button link type="primary" @click="handleCount(scope.row)">结算</el-button>
|
|
|
- <el-button link type="primary" @click="handleView(scope.row)">明细查询</el-button>
|
|
|
+ <el-button link type="primary" v-if="scope.row.settlementStatus == '已结算'" @click="handleView(scope.row)">明细查询</el-button>
|
|
|
<el-button link type="primary" @click="handleDelete(scope.row)">删除</el-button>
|
|
|
</template>
|
|
|
</el-table-column>
|
|
|
@@ -157,7 +159,12 @@
|
|
|
<script setup lang="ts">
|
|
|
|
|
|
import api from "@/api";
|
|
|
+import { useRoute, useRouter } from 'vue-router'
|
|
|
import { ElMessage, ElMessageBox } from 'element-plus'
|
|
|
+
|
|
|
+const route = useRoute()
|
|
|
+const router = useRouter()
|
|
|
+
|
|
|
const companyIdprops = {
|
|
|
expandTrigger: 'hover' as const,
|
|
|
value: 'id',
|
|
|
@@ -249,9 +256,13 @@ const uploadImage = async (file, fileList) => {
|
|
|
}
|
|
|
// 明细查询
|
|
|
const handleView = (row) => {
|
|
|
- const href = window.location.href.split('#')
|
|
|
- const newHref = href[0] + '#/receivable/private/handingFee?activeName=2&id=' + row.id
|
|
|
- window.open(newHref, '_blank');
|
|
|
+ router.push({
|
|
|
+ path: '/receivable/private/report',
|
|
|
+ query: {
|
|
|
+ activeName: '2',
|
|
|
+ id: row.id
|
|
|
+ }
|
|
|
+ })
|
|
|
}
|
|
|
// 删除
|
|
|
const handleDelete = (row) => {
|