From a26e8d708ab3c8899bee5cae4167ccc3be9b58cd Mon Sep 17 00:00:00 2001 From: gaoluyang <2820782392@qq.com> Date: 星期三, 03 九月 2025 14:00:23 +0800 Subject: [PATCH] 销售管理整体样式优化,搜索条件修改 --- src/pages/procurementManagement/paymentLedger/detail.vue | 17 +++++++++-------- 1 files changed, 9 insertions(+), 8 deletions(-) diff --git a/src/pages/procurementManagement/paymentLedger/detail.vue b/src/pages/procurementManagement/paymentLedger/detail.vue index 13fd49e..dfe4752 100644 --- a/src/pages/procurementManagement/paymentLedger/detail.vue +++ b/src/pages/procurementManagement/paymentLedger/detail.vue @@ -1,7 +1,7 @@ <template> <view class="receipt-payment-detail"> <!-- 浣跨敤閫氱敤椤甸潰澶撮儴缁勪欢 --> - <PageHeader title="瀹㈡埛寰�鏉ヨ鎯�" @back="goBack" /> + <PageHeader title="渚涘簲鍟嗗線鏉ヨ鎯�" @back="goBack" /> <!-- 缁熻淇℃伅 --> <view class="summary-info" v-if="tableData.length > 0"> @@ -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; } }; @@ -114,9 +113,11 @@ } const param = { supplierId: supplierId.value, + current: -1, + size: -1 }; paymentLedgerList(param).then((res) => { - tableData.value = res.data; + tableData.value = res.data.records; }).catch(() => { uni.showToast({ title: '鏌ヨ澶辫触', -- Gitblit v1.9.3