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/sales/receiptPayment/index.vue | 53 +++++++++-------------------------------------------- 1 files changed, 9 insertions(+), 44 deletions(-) diff --git a/src/pages/sales/receiptPayment/index.vue b/src/pages/sales/receiptPayment/index.vue index 08b2f51..a30d42e 100644 --- a/src/pages/sales/receiptPayment/index.vue +++ b/src/pages/sales/receiptPayment/index.vue @@ -1,14 +1,7 @@ <template> <view class="receipt-payment"> - <!-- 椤甸潰澶撮儴 --> - <van-nav-bar - title="鍥炴鐧昏" - left-text="杩斿洖" - left-arrow - @click-left="goBack" - fixed - placeholder - /> + <!-- 浣跨敤閫氱敤椤甸潰澶撮儴缁勪欢 --> + <PageHeader title="鍥炴鐧昏" @back="goBack" /> <!-- 鎼滅储鍜岀瓫閫夊尯鍩� --> <view class="search-filter-section"> @@ -22,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> @@ -42,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.salesContractNo }}</text> </view> </view> - <up-divider></up-divider> + <u-divider></u-divider> <view class="item-details"> <view class="detail-row"> <text class="detail-label">瀹㈡埛鍚嶇О</text> @@ -89,7 +82,7 @@ <!-- 鎿嶄綔鎸夐挳 --> <view class="action-buttons"> - <van-button + <u-button type="primary" size="small" class="action-btn" @@ -97,7 +90,7 @@ @click="openForm(item)" > 鏂板鍥炴 - </van-button> + </u-button> </view> </view> </view> @@ -105,17 +98,8 @@ <!-- 鏃犳暟鎹彁绀� --> <view class="no-data" v-else> - <text>鏆傛棤鍥炴鏁版嵁</text> + <text>鏆傛棤鏁版嵁</text> </view> - - <!-- 鍥炴鏂瑰紡閫夋嫨鍣� --> - <van-popup v-model:show="showPaymentType" position="bottom"> - <van-picker - :columns="receipt_payment_type" - @confirm="onPaymentTypeConfirm" - @cancel="showPaymentType = false" - /> - </van-popup> </view> </template> @@ -128,13 +112,9 @@ import { showToast } from 'vant' import {onShow} from "@dcloudio/uni-app"; -const userStore = useUserStore() - // 鍝嶅簲寮忔暟鎹� const tableData = ref([]) const tableLoading = ref(false) -const showPaymentType = ref(false) -const currentEditRow = ref(null) // 鏌ヨ鍙傛暟璁剧疆涓�-1鑾峰彇鍏ㄩ儴鏁版嵁 const page = ref({ @@ -150,14 +130,6 @@ customerContractNo: '', projectName: '' }) - -// 鍥炴鏂瑰紡閫夐」 -const receipt_payment_type = ref([ - { text: '鐜伴噾', value: '1' }, - { text: '閾惰杞处', value: '2' }, - { text: '鏀エ', value: '3' }, - { text: '鍏朵粬', value: '4' } -]) // 鏍煎紡鍖栨暟瀛� const formatNumber = (value) => { @@ -192,13 +164,6 @@ uni.navigateTo({ url: '/pages/sales/receiptPayment/add' }) } -// 纭鍥炴鏂瑰紡閫夋嫨 -const onPaymentTypeConfirm = (value) => { - if (currentEditRow.value) { - currentEditRow.value.receiptPaymentType = value.value - } - showPaymentType.value = false -} onShow(() => { getList() }) -- Gitblit v1.9.3