|
@@ -73,11 +73,23 @@
|
|
|
<el-table-column prop="settlementAmount" label="已结算金额" width="120"></el-table-column>
|
|
<el-table-column prop="settlementAmount" label="已结算金额" width="120"></el-table-column>
|
|
|
<el-table-column prop="createBy" label="开票人" width="120"></el-table-column>
|
|
<el-table-column prop="createBy" label="开票人" width="120"></el-table-column>
|
|
|
<el-table-column prop="createTime" label="开票时间" width="150"></el-table-column>
|
|
<el-table-column prop="createTime" label="开票时间" width="150"></el-table-column>
|
|
|
- <el-table-column label="操作" width="150" fixed="right">
|
|
|
|
|
|
|
+ <el-table-column label="操作" width="200" fixed="right">
|
|
|
<template #default="scope">
|
|
<template #default="scope">
|
|
|
- <el-button link type="primary" v-if="scope.row.settlementStatus == '未结算'" @click="handleCount(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" v-if="scope.row.settlementStatus == '未结算'" @click="handleDelete(scope.row)">删除</el-button>
|
|
|
|
|
|
|
+ <div class="flex a-c ">
|
|
|
|
|
+ <el-button link type="primary" :disabled="scope.row.settlementStatus == '已结算'" @click="handleCount(scope.row)">结算</el-button>
|
|
|
|
|
+ <el-button link type="primary" :disabled="scope.row.settlementStatus == '已结算'" @click="handleDelete(scope.row)">删除</el-button>
|
|
|
|
|
+ <el-dropdown placement="bottom-start" trigger="click" >
|
|
|
|
|
+ <span class="el-dropdown-link">
|
|
|
|
|
+ 明细查询
|
|
|
|
|
+ </span>
|
|
|
|
|
+ <template #dropdown>
|
|
|
|
|
+ <el-dropdown-menu>
|
|
|
|
|
+ <el-dropdown-item :disabled="scope.row.settlementStatus == '未结算'" @click="handleCountRecord(scope.row)">结算记录</el-dropdown-item>
|
|
|
|
|
+ <el-dropdown-item :disabled="scope.row.settlementStatus == '未结算'" @click="handleInvoiceDetail(scope.row)">开票明细</el-dropdown-item>
|
|
|
|
|
+ </el-dropdown-menu>
|
|
|
|
|
+ </template>
|
|
|
|
|
+ </el-dropdown>
|
|
|
|
|
+ </div>
|
|
|
|
|
|
|
|
|
|
|
|
|
</template>
|
|
</template>
|
|
@@ -243,16 +255,6 @@ const calSub = async (minuend: number = 0, subtrahend: number) => {
|
|
|
const res = await api.financeApi.calSub({ minuend, subtrahend })
|
|
const res = await api.financeApi.calSub({ minuend, subtrahend })
|
|
|
return res.data || 0
|
|
return res.data || 0
|
|
|
}
|
|
}
|
|
|
-// 明细查询
|
|
|
|
|
-const handleView = (row) => {
|
|
|
|
|
- router.push({
|
|
|
|
|
- path: '/receivable/documentary/documentaryReport',
|
|
|
|
|
- query: {
|
|
|
|
|
- activeName: '2',
|
|
|
|
|
- id: row.id
|
|
|
|
|
- }
|
|
|
|
|
- })
|
|
|
|
|
-}
|
|
|
|
|
// 删除
|
|
// 删除
|
|
|
const handleDelete = (row) => {
|
|
const handleDelete = (row) => {
|
|
|
ElMessageBox.confirm(
|
|
ElMessageBox.confirm(
|
|
@@ -281,6 +283,26 @@ const handleDelete = (row) => {
|
|
|
.catch(() => {
|
|
.catch(() => {
|
|
|
})
|
|
})
|
|
|
}
|
|
}
|
|
|
|
|
+// 结算记录查询
|
|
|
|
|
+const handleCountRecord = (row) => {
|
|
|
|
|
+ router.push({
|
|
|
|
|
+ path: '/receivable/documentary/documentaryReport',
|
|
|
|
|
+ query: {
|
|
|
|
|
+ activeName: '2',
|
|
|
|
|
+ id: row.id
|
|
|
|
|
+ }
|
|
|
|
|
+ })
|
|
|
|
|
+}
|
|
|
|
|
+// 开票明细查询
|
|
|
|
|
+const handleInvoiceDetail = (row) => {
|
|
|
|
|
+ router.push({
|
|
|
|
|
+ path: '/receivable/documentary/documentaryReport',
|
|
|
|
|
+ query: {
|
|
|
|
|
+ activeName: '3',
|
|
|
|
|
+ id: row.id
|
|
|
|
|
+ }
|
|
|
|
|
+ })
|
|
|
|
|
+}
|
|
|
// 列表
|
|
// 列表
|
|
|
const initList = () => {
|
|
const initList = () => {
|
|
|
api.invoiceRecordApi.invoiceRecord({
|
|
api.invoiceRecordApi.invoiceRecord({
|
|
@@ -440,4 +462,11 @@ onMounted(() => {
|
|
|
color: #ccc;
|
|
color: #ccc;
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|
|
|
|
|
+:deep(.el-dropdown-link) {
|
|
|
|
|
+ display: flex;
|
|
|
|
|
+ align-items: center;
|
|
|
|
|
+ margin-left: 15px;
|
|
|
|
|
+ color: var(--el-color-primary);
|
|
|
|
|
+ cursor: pointer;
|
|
|
|
|
+}
|
|
|
</style>
|
|
</style>
|