From 3f88a4f81bbfc424caa1391f4b3969c26fbf8485 Mon Sep 17 00:00:00 2001
From: gaoluyang <2820782392@qq.com>
Date: 星期五, 05 九月 2025 17:57:41 +0800
Subject: [PATCH] 销售管理真机测试,bug修改

---
 src/pages/procurementManagement/paymentLedger/detail.vue |   16 ++++++++++++++++
 1 files changed, 16 insertions(+), 0 deletions(-)

diff --git a/src/pages/procurementManagement/paymentLedger/detail.vue b/src/pages/procurementManagement/paymentLedger/detail.vue
index dfe4752..595aee3 100644
--- a/src/pages/procurementManagement/paymentLedger/detail.vue
+++ b/src/pages/procurementManagement/paymentLedger/detail.vue
@@ -111,6 +111,7 @@
 		});
 		return;
 	}
+	showLoadingToast('鍔犺浇涓�...')
 	const param = {
 		supplierId: supplierId.value,
 		current: -1,
@@ -118,7 +119,9 @@
 	};
 	paymentLedgerList(param).then((res) => {
 		tableData.value = res.data.records;
+		closeToast()
 	}).catch(() => {
+		closeToast()
 		uni.showToast({
 			title: '鏌ヨ澶辫触',
 			icon: 'error'
@@ -131,6 +134,19 @@
 	return amount ? parseFloat(amount).toFixed(2) : '0.00';
 };
 
+// 鏄剧ず鍔犺浇鎻愮ず
+const showLoadingToast = (message) => {
+	uni.showLoading({
+		title: message,
+		mask: true
+	});
+};
+
+// 鍏抽棴鎻愮ず
+const closeToast = () => {
+	uni.hideLoading();
+};
+
 onMounted(() => {
 	// 椤甸潰鍔犺浇鏃惰幏鍙栧弬鏁板苟鍒锋柊鍒楄〃
 	getPageParams();

--
Gitblit v1.9.3