From fea2d693c33fdbcb4c8304a96a4e584829cb437b Mon Sep 17 00:00:00 2001
From: sen <sen@qq.com>
Date: 星期四, 29 一月 2026 17:25:30 +0800
Subject: [PATCH] 申请开票和开票记录,科目管理界面
---
ui/admin-ui3/src/views/cwgl/receivableBillManagement/index.vue | 61 ++++++++++++++++++++++++++++--
1 files changed, 56 insertions(+), 5 deletions(-)
diff --git a/ui/admin-ui3/src/views/cwgl/receivableBillManagement/index.vue b/ui/admin-ui3/src/views/cwgl/receivableBillManagement/index.vue
index cf54e9e..6e36fab 100644
--- a/ui/admin-ui3/src/views/cwgl/receivableBillManagement/index.vue
+++ b/ui/admin-ui3/src/views/cwgl/receivableBillManagement/index.vue
@@ -18,10 +18,16 @@
</template>
<template #menu="{ size, row, index }">
<el-link class="link-btn" type="primary" v-if="row.status == 0 || row.status == 1" :underline="false" plain :size="size" @click="handleSettle(row)"
- v-hasPermi="['cwgl:receivableBillManagement:view']"> 缁撶畻
+ v-hasPermi="['cwgl:receivableBillManagement:receivableBillSettlementDetail']"> 缁撶畻
+ </el-link>
+ <el-link class="link-btn" type="primary" v-if="row.status == 0 || row.status == 1" :underline="false" plain :size="size" @click="makeInvoice(row)"
+ v-hasPermi="['cwgl:receivableBillManagement:invoice']"> 寮�绁�
+ </el-link>
+ <el-link class="link-btn" type="primary" v-if="row.status == 0 || row.status == 1" :underline="false" plain :size="size" @click="makeParticulars(row)"
+ v-hasPermi="['cwgl:receivableBillManagement:amount']"> 寮�绁ㄦ槑缁�
</el-link>
<el-link class="link-btn" type="primary" v-if="row.status == 0 || row.status == 1|| row.status == 3" :underline="false" plain :size="size" @click="handleViewHistory(row)"
- v-hasPermi="['cwgl:receivableBillManagement:view']"> 缁撶畻鏄庣粏
+ v-hasPermi="['cwgl:receivableBillManagement:list']"> 缁撶畻鏄庣粏
</el-link>
<el-link class="link-btn" type="primary" :underline="false" plain :size="size" @click="handleViewFeeDetail(row)"
v-hasPermi="['cwgl:receivableBillManagement:view']"> 璇︽儏
@@ -40,6 +46,9 @@
</basicContainer>
<SettlementDialog ref="settleDialogRef" :type="currentType" @success="handleRefresh" />
+ <makeOutInvoice ref="makeOutInvoiceRef" :type="makeType" :InvoiceDetails="InvoiceDetails" @success="makeOutInvoiceFresh" />
+
+
<BillSettlementHistory ref="historyRef" :type="activeType" />
<NestedDetailDialog ref="feeDetailRef" :type="activeType" />
<OperationLogModal ref="logModalRef" />
@@ -47,13 +56,17 @@
</template>
<script setup name="receivableBillManagement" lang="ts">
-import { ReceivableBillManagementI, addReceivableBillManagement, delReceivableBillManagement, exportReceivableBillManagement, getReceivableBillManagement, listReceivableBillManagement, updateReceivableBillManagement,receivableBillManagementVoid } from "@/api/cwgl/receivableBillManagement";
+ import { listReceivableInvoiceBusiness} from "@/api/cwgl/receivableInvoiceBusiness";
+
+import { receivableBillManagementInvoice,invoiceAmount,ReceivableBillManagementI, addReceivableBillManagement, delReceivableBillManagement, exportReceivableBillManagement, getReceivableBillManagement, listReceivableBillManagement, updateReceivableBillManagement,receivableBillManagementVoid } from "@/api/cwgl/receivableBillManagement";
import useCurrentInstance from "@/utils/useCurrentInstance";
import { computed, reactive, ref, toRefs } from "vue";
import { PagesInterface, PageQueryInterface } from "@/utils/globalInterface";
import { usePagePlus } from "@/hooks/usePagePlus";
import { hasPermission } from "@/utils/permissionUtils";
import SettlementDialog from '@/components/SettlementDialog/index.vue';
+import makeOutInvoice from '@/components/makeOutInvoice/index.vue';
+
import BillSettlementHistory from '../../../components/BillSettlementHistory/index.vue';
import NestedDetailDialog from '../../../components/NestedDetailDialog/index.vue';
import OperationLogModal from '@/components/OperationLogModal/index.vue';
@@ -339,10 +352,36 @@
})
}
+/* 寮�绁� */
+const makeOutInvoiceRef = ref()
+const makeType = ref<'搴斾粯璐﹀崟寮�绁�' | '搴旀敹璐﹀崟寮�绁�'>('搴旀敹璐﹀崟寮�绁�')
+const InvoiceDetails = ref('')
-
+const makeInvoice =(row) =>{
+ currentType.value = '搴旀敹璐﹀崟寮�绁�'
+ InvoiceDetails.value = '鏈寮�绁ㄤ俊鎭�'
+ ids.value = row.id
+ invoiceAmount(row.id).then((res)=>{
+ if(res.code==200){
+ row.invoicedAmount=res.data
+ makeOutInvoiceRef.value.open(row)
+ }
+ })
+ // headId
+
+}
+const makeParticulars =(row) =>{
+ currentType.value = '搴旀敹璐﹀崟寮�绁ㄨ褰�'
+ InvoiceDetails.value = '寮�绁ㄦ槑缁�'
+ ids.value = row.id
+ listReceivableInvoiceBusiness({headId: row.id}).then((res) => {
+ if (res.code === 200) {
+ row.recordList=res.rows
+ makeOutInvoiceRef.value.open(row)
+ }
+ })
+}
const handleRefresh = (data) => {
- console.log(data);
// ids.value
data.billId = ids.value
addReceivableBillSettlementDetail(data).then((res) => {
@@ -394,5 +433,17 @@
}
});
}
+const makeOutInvoiceFresh = (submitData: any) => {
+ // 杩欓噷璋冪敤鍚庣鐨勪繚瀛樻帴鍙�
+ receivableBillManagementInvoice(submitData,submitData.id).then(res => {
+ if (res.code == 200) {
+ proxy.$modal.msgSuccess(res.msg);
+ makeOutInvoiceRef.value.openIshpw()
+ onLoad(page.value); // 鍒锋柊鍒楄〃
+ }
+ })
+
+}
+
</script>
--
Gitblit v1.8.0