From 075d8b76626b2c830cc3bef11fb32e89d6067a3e Mon Sep 17 00:00:00 2001
From: sen <sen@qq.com>
Date: 星期一, 23 三月 2026 10:34:00 +0800
Subject: [PATCH] 增加应收款分析管理界面
---
ui/admin-ui3/src/views/cwgl/payableBillManagement/index.vue | 60 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++---
1 files changed, 57 insertions(+), 3 deletions(-)
diff --git a/ui/admin-ui3/src/views/cwgl/payableBillManagement/index.vue b/ui/admin-ui3/src/views/cwgl/payableBillManagement/index.vue
index 0205889..42ad2e9 100644
--- a/ui/admin-ui3/src/views/cwgl/payableBillManagement/index.vue
+++ b/ui/admin-ui3/src/views/cwgl/payableBillManagement/index.vue
@@ -19,11 +19,17 @@
<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:payableBillManagement:view']"> 缁撶畻
+ :size="size" @click="handleSettle(row)" v-hasPermi="['cwgl:payableBillManagement: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:payableBillManagement: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:payableBillManagement: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:payableBillManagement:view']"> 缁撶畻鏄庣粏
+ v-hasPermi="['cwgl:payableBillManagement:list']"> 缁撶畻鏄庣粏
</el-link>
<el-link class="link-btn" type="primary" :underline="false" plain :size="size" @click="handleViewFeeDetail(row)"
v-hasPermi="['cwgl:payableBillManagement:view']"> 璇︽儏
@@ -43,12 +49,17 @@
<BillSettlementHistory ref="historyRef" :type="activeType" />
<NestedDetailDialog ref="feeDetailRef" :type="activeType" />
<OperationLogModal ref="logModalRef" />
+ <!-- 寮�绁� -->
+ <makeOutInvoice ref="makeOutInvoiceRef" :type="makeType" :InvoiceDetails="InvoiceDetails" @success="makeOutInvoiceFresh" />
+
</template>
<script setup name="payableBillManagement" lang="ts">
-import { PayableBillManagementI,payableBillManagementVoid, addPayableBillManagement, delPayableBillManagement, exportPayableBillManagement, getPayableBillManagement, listPayableBillManagement, updatePayableBillManagement } from "@/api/cwgl/payableBillManagement";
+import { payableBillManagementInvoice,invoiceAmount,PayableBillManagementI,payableBillManagementVoid, addPayableBillManagement, delPayableBillManagement, exportPayableBillManagement, getPayableBillManagement, listPayableBillManagement, updatePayableBillManagement } from "@/api/cwgl/payableBillManagement";
import useCurrentInstance from "@/utils/useCurrentInstance";
+import { listPayableInvoiceBusiness,} from "@/api/cwgl/payableInvoiceBusiness";
+
import { computed, reactive, ref, toRefs } from "vue";
import { PagesInterface, PageQueryInterface } from "@/utils/globalInterface";
import { usePagePlus } from "@/hooks/usePagePlus";
@@ -59,6 +70,7 @@
import OperationLogModal from '@/components/OperationLogModal/index.vue';
import BillSettlementHistory from '../../../components/BillSettlementHistory/index.vue';
import NestedDetailDialog from '../../../components/NestedDetailDialog/index.vue';
+import makeOutInvoice from '@/components/makeOutInvoice/index.vue';
const { proxy } = useCurrentInstance();
const crudRef = ref();
@@ -417,4 +429,46 @@
})
}
+
+/* 寮�绁� */
+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)
+
+ }
+ })
+
+}
+
+const makeOutInvoiceFresh = (submitData: any) => {
+ payableBillManagementInvoice(submitData,submitData.id).then(res => {
+ if (res.code == 200) {
+ proxy.$modal.msgSuccess(res.msg);
+ makeOutInvoiceRef.value.openIshpw()
+ onLoad(page.value); // 鍒锋柊鍒楄〃
+ }
+ })
+
+}
+
+const makeParticulars =(row) =>{
+ currentType.value = '搴斾粯璐﹀崟寮�绁ㄨ褰�'
+ InvoiceDetails.value = '寮�绁ㄦ槑缁�'
+ ids.value = row.id
+ listPayableInvoiceBusiness({headId: row.id}).then((res) => {
+ if (res.code === 200) {
+ row.recordList=res.rows
+ makeOutInvoiceRef.value.open(row)
+ }
+ })
+}
</script>
--
Gitblit v1.8.0