From 5c48ef2b8267c38bae717202615e1618074ee31c Mon Sep 17 00:00:00 2001 From: gaoluyang <2820782392@qq.com> Date: 星期五, 29 八月 2025 15:25:05 +0800 Subject: [PATCH] 修改组件 --- src/pages/procurementManagement/paymentEntry/index.vue | 28 +++++++++++++++++++--------- 1 files changed, 19 insertions(+), 9 deletions(-) diff --git a/src/pages/procurementManagement/paymentEntry/index.vue b/src/pages/procurementManagement/paymentEntry/index.vue index 20b66e2..b3424c8 100644 --- a/src/pages/procurementManagement/paymentEntry/index.vue +++ b/src/pages/procurementManagement/paymentEntry/index.vue @@ -15,14 +15,14 @@ /> </view> <view class="filter-button" @click="getList"> - <up-icon name="search" size="24" color="#999"></up-icon> + <u-icon name="search" size="24" color="#999"></u-icon> </view> </view> <!-- 绛涢�夊紑鍏� --> <view class="switch-row"> <text class="switch-label">涓嶆樉绀哄緟浠樻涓�0</text> - <van-switch v-model="searchForm.status" @change="getList" size="18"/> + <u-switch v-model="searchForm.status" @change="getList" size="18"/> </view> </view> @@ -35,12 +35,12 @@ <view class="item-header"> <view class="item-left"> <view class="document-icon"> - <up-icon name="file-text" size="16" color="#ffffff"></up-icon> + <u-icon name="file-text" size="16" color="#ffffff"></u-icon> </view> <text class="item-id">{{ item.purchaseContractNumber }}</text> </view> </view> - <up-divider></up-divider> + <u-divider></u-divider> <view class="item-details"> <view class="detail-row"> <text class="detail-label">閿�鍞悎鍚屽彿</text> @@ -70,15 +70,15 @@ <!-- 鎿嶄綔鎸夐挳 --> <view class="action-buttons"> - <van-button + <u-button type="primary" size="small" class="action-btn" :disabled="item.unPaymentAmountTotal == 0" - @click="openForm(item)" + @click="openForm('add', item)" > 鏂板浠樻 - </van-button> + </u-button> </view> </view> </view> @@ -94,9 +94,18 @@ <script setup> import { ref } from 'vue' import useUserStore from '@/store/modules/user' -import { showToast } from 'vant' +// 鏇挎崲 Vant 鐨� toast +// import { showToast } from 'vant' import {onShow} from "@dcloudio/uni-app"; import {invoiceListPage} from "@/api/procurementManagement/procurementInvoiceLedger"; + +// 鏇挎崲 toast 鏂规硶 +const showToast = (message) => { + uni.showToast({ + title: message, + icon: 'none' + }) +} // 鍝嶅簲寮忔暟鎹� const tableData = ref([]) @@ -139,11 +148,12 @@ } // 鎵撳紑鏂板琛ㄥ崟 -const openForm = (item) => { +const openForm = (type, item) => { if (item.unPaymentAmountTotal == 0) { showToast('鏃犻渶鍐嶄粯娆�') return } + uni.setStorageSync('operationType', type); uni.setStorageSync('invoiceLedgerEditRow', JSON.stringify(item)) uni.navigateTo({ url: '/pages/procurementManagement/paymentEntry/add' }) } -- Gitblit v1.9.3