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/sales/receiptPaymentLedger/detail.vue | 40 +++++++++++++++++++++++++--------------- 1 files changed, 25 insertions(+), 15 deletions(-) diff --git a/src/pages/sales/receiptPaymentLedger/detail.vue b/src/pages/sales/receiptPaymentLedger/detail.vue index abc84ef..041be44 100644 --- a/src/pages/sales/receiptPaymentLedger/detail.vue +++ b/src/pages/sales/receiptPaymentLedger/detail.vue @@ -1,14 +1,7 @@ <template> <view class="receipt-payment-detail"> - <!-- 椤甸潰澶撮儴 --> - <van-nav-bar - title="瀹㈡埛寰�鏉ヨ鎯�" - left-text="杩斿洖" - left-arrow - @click-left="goBack" - fixed - placeholder - /> + <!-- 浣跨敤閫氱敤椤甸潰澶撮儴缁勪欢 --> + <PageHeader title="瀹㈡埛寰�鏉ヨ鎯�" @back="goBack" /> <!-- 缁熻淇℃伅 --> <view class="summary-info" v-if="tableData.length > 0"> @@ -96,17 +89,16 @@ // 杩斿洖涓婁竴椤� const goBack = () => { + uni.removeStorageSync('customerId') uni.navigateBack(); }; // 鑾峰彇椤甸潰鍙傛暟 const getPageParams = () => { - const pages = getCurrentPages(); - const currentPage = pages[pages.length - 1]; - const options = currentPage.options; - - if (options.customerId) { - customerId.value = options.customerId; + // 浠庢湰鍦板瓨鍌ㄨ幏鍙栧鎴稩D + const storedCustomerId = uni.getStorageSync('customerId'); + if (storedCustomerId) { + customerId.value = storedCustomerId; } }; @@ -120,13 +112,18 @@ return; } + showLoadingToast('鍔犺浇涓�...') const param = { customerId: customerId.value, + current: -1, + size: -1 }; customerInteractions(param).then((res) => { tableData.value = res.data; + closeToast() }).catch(() => { + closeToast() uni.showToast({ title: '鏌ヨ澶辫触', icon: 'error' @@ -139,6 +136,19 @@ return amount ? parseFloat(amount).toFixed(2) : '0.00'; }; +// 鏄剧ず鍔犺浇鎻愮ず +const showLoadingToast = (message) => { + uni.showLoading({ + title: message, + mask: true + }); +}; + +// 鍏抽棴鎻愮ず +const closeToast = () => { + uni.hideLoading(); +}; + onShow(() => { // 椤甸潰鏄剧ず鏃惰幏鍙栧弬鏁板苟鍒锋柊鍒楄〃 getPageParams(); -- Gitblit v1.9.3