From eb62444060a1867ffea6f6c676c8ca55e620f4b6 Mon Sep 17 00:00:00 2001
From: gaoluyang <2820782392@qq.com>
Date: 星期二, 02 九月 2025 14:50:08 +0800
Subject: [PATCH] 启动页样式修改

---
 src/pages/sales/invoiceLedger/index.vue |   29 +++++++++++++----------------
 1 files changed, 13 insertions(+), 16 deletions(-)

diff --git a/src/pages/sales/invoiceLedger/index.vue b/src/pages/sales/invoiceLedger/index.vue
index fa48fda..9b814a4 100644
--- a/src/pages/sales/invoiceLedger/index.vue
+++ b/src/pages/sales/invoiceLedger/index.vue
@@ -25,7 +25,7 @@
 		</view>
 
 		<!-- 鍒楄〃鍖哄煙 -->
-		<view class="ledger-list" v-if="total > 0">
+		<view class="ledger-list" v-if="ledgerList.length > 0">
 			<view v-for="(item, index) in ledgerList" :key="index">
 				<view class="ledger-item">
 					<view class="item-header">
@@ -221,9 +221,19 @@
 </template>
 
 <script setup>
-import { ref, reactive, onMounted } from 'vue'
+import {reactive, ref} from 'vue'
 import dayjs from 'dayjs'
 import PageHeader from '@/components/PageHeader.vue'
+import useUserStore from '@/store/modules/user'
+import {getToken} from '@/utils/auth'
+import config from '@/config.js'
+import {
+	commitFile,
+	delInvoiceLedgerByRegProductId,
+	registrationProductPage
+} from '@/api/salesManagement/invoiceLedger.js'
+import {onShow} from "@dcloudio/uni-app";
+
 const showToast = (message) => {
 	uni.showToast({
 		title: message,
@@ -239,21 +249,11 @@
 const closeToast = () => {
 	uni.hideLoading()
 }
-import useUserStore from '@/store/modules/user'
-import { getToken } from '@/utils/auth'
-import config from '@/config.js'
-import {
-	registrationProductPage,
-	commitFile,
-	delInvoiceLedgerByRegProductId
-} from '@/api/salesManagement/invoiceLedger.js'
-import {onShow} from "@dcloudio/uni-app";
 
 const userStore = useUserStore()
 
 // 鍒楄〃涓庢煡璇�
 const ledgerList = ref([])
-const total = ref(0)
 const page = reactive({ current: -1, size: -1 })
 const searchForm = reactive({
 	searchText: '',
@@ -304,10 +304,7 @@
 		const { invoiceDate, ...rest } = searchForm
 		const res = await registrationProductPage({ ...rest, ...page })
 		// 鍏煎涓嶅悓杩斿洖缁撴瀯
-		const records = res?.data?.records || res?.records || res?.data || []
-		const totalVal = res?.data?.total || res?.total || records.length || 0
-		ledgerList.value = records
-		total.value = totalVal
+		ledgerList.value = res?.data?.records || res?.records || res?.data || []
 		closeToast()
 	} catch (e) {
 		closeToast()

--
Gitblit v1.9.3