From ee42bf1badae06026efa79dc17d2a541297ab49b Mon Sep 17 00:00:00 2001
From: gaoluyang <2820782392@qq.com>
Date: 星期三, 03 九月 2025 17:43:31 +0800
Subject: [PATCH] 采购管理整体样式优化,搜索条件修改

---
 src/pages/procurementManagement/paymentLedger/detail.vue |   27 +++++++++++++++++++++------
 1 files changed, 21 insertions(+), 6 deletions(-)

diff --git a/src/pages/procurementManagement/paymentLedger/detail.vue b/src/pages/procurementManagement/paymentLedger/detail.vue
index e292597..595aee3 100644
--- a/src/pages/procurementManagement/paymentLedger/detail.vue
+++ b/src/pages/procurementManagement/paymentLedger/detail.vue
@@ -89,17 +89,16 @@
 
 // 杩斿洖涓婁竴椤�
 const goBack = () => {
+	uni.removeStorageSync('supplierId')
 	uni.navigateBack();
 };
 
 // 鑾峰彇椤甸潰鍙傛暟
 const getPageParams = () => {
-	const pages = getCurrentPages();
-	const currentPage = pages[pages.length - 1];
-	const options = currentPage.options;
-	
-	if (options.supplierId) {
-		supplierId.value = options.supplierId;
+	// 浠庢湰鍦板瓨鍌ㄨ幏鍙栦緵搴斿晢ID
+	const storedSupplierId = uni.getStorageSync('supplierId');
+	if (storedSupplierId) {
+		supplierId.value = storedSupplierId;
 	}
 };
 
@@ -112,6 +111,7 @@
 		});
 		return;
 	}
+	showLoadingToast('鍔犺浇涓�...')
 	const param = {
 		supplierId: supplierId.value,
 		current: -1,
@@ -119,7 +119,9 @@
 	};
 	paymentLedgerList(param).then((res) => {
 		tableData.value = res.data.records;
+		closeToast()
 	}).catch(() => {
+		closeToast()
 		uni.showToast({
 			title: '鏌ヨ澶辫触',
 			icon: 'error'
@@ -132,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