From adeb8b768926ed50a3fb0857f366d6a0308d2cc0 Mon Sep 17 00:00:00 2001 From: gaoluyang <2820782392@qq.com> Date: 星期五, 29 八月 2025 17:45:57 +0800 Subject: [PATCH] 修改组件 --- src/pages/sales/receiptPayment/index.vue | 35 ++++++----------------------------- 1 files changed, 6 insertions(+), 29 deletions(-) diff --git a/src/pages/sales/receiptPayment/index.vue b/src/pages/sales/receiptPayment/index.vue index ba54e48..1fce10b 100644 --- a/src/pages/sales/receiptPayment/index.vue +++ b/src/pages/sales/receiptPayment/index.vue @@ -100,15 +100,6 @@ <view class="no-data" v-else> <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> @@ -118,16 +109,17 @@ bindInvoiceNoRegPage, } from '@/api/salesManagement/receiptPayment' import useUserStore from '@/store/modules/user' -import { showToast } from 'vant' +const showToast = (message) => { + uni.showToast({ + title: message, + icon: 'none' + }) +} 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({ @@ -143,14 +135,6 @@ customerContractNo: '', projectName: '' }) - -// 鍥炴鏂瑰紡閫夐」 -const receipt_payment_type = ref([ - { text: '鐜伴噾', value: '1' }, - { text: '閾惰杞处', value: '2' }, - { text: '鏀エ', value: '3' }, - { text: '鍏朵粬', value: '4' } -]) // 鏍煎紡鍖栨暟瀛� const formatNumber = (value) => { @@ -185,13 +169,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