|
@@ -71,10 +71,11 @@
|
|
|
<el-table-column prop="a" label="已结算" width="120"></el-table-column>
|
|
<el-table-column prop="a" 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" align="center">
|
|
|
<template #default="scope">
|
|
<template #default="scope">
|
|
|
<el-button link type="primary" @click="handleCount(scope.row)">结算</el-button>
|
|
<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" @click="handleView(scope.row)">明细查询</el-button>
|
|
|
|
|
+ <el-button link type="primary" @click="handleDelete(scope.row)">删除</el-button>
|
|
|
</template>
|
|
</template>
|
|
|
</el-table-column>
|
|
</el-table-column>
|
|
|
</el-table>
|
|
</el-table>
|
|
@@ -215,10 +216,24 @@ const uploadImage = async (file, fileList) => {
|
|
|
attachmentIds.value.push(data.id)
|
|
attachmentIds.value.push(data.id)
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|
|
|
|
|
+// 明细查询
|
|
|
const handleView = () => {
|
|
const handleView = () => {
|
|
|
|
|
|
|
|
}
|
|
}
|
|
|
|
|
+// 删除
|
|
|
|
|
+const handleDelete = (row) => {
|
|
|
|
|
+ api.financeApi.deleteInvoiceById(row.id).then((res: any) => {
|
|
|
|
|
+ if (res.code == 200) {
|
|
|
|
|
+ ElMessage({
|
|
|
|
|
+ message: res.msg,
|
|
|
|
|
+ type: 'success'
|
|
|
|
|
+ })
|
|
|
|
|
+ initList()
|
|
|
|
|
+ } else {
|
|
|
|
|
|
|
|
|
|
+ }
|
|
|
|
|
+ })
|
|
|
|
|
+}
|
|
|
// 列表
|
|
// 列表
|
|
|
const initList = () => {
|
|
const initList = () => {
|
|
|
api.invoiceRecordApi.invoiceRecord({
|
|
api.invoiceRecordApi.invoiceRecord({
|