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/invoicingRegistration/add.vue | 31 ++++++++++++++++++++----------- 1 files changed, 20 insertions(+), 11 deletions(-) diff --git a/src/pages/sales/invoicingRegistration/add.vue b/src/pages/sales/invoicingRegistration/add.vue index ee658e0..b87cb7b 100644 --- a/src/pages/sales/invoicingRegistration/add.vue +++ b/src/pages/sales/invoicingRegistration/add.vue @@ -1,14 +1,7 @@ <template> <view class="account-detail"> - <!-- 椤甸潰澶撮儴 --> - <van-nav-bar - title="鏂板寮�绁ㄧ櫥璁�" - left-text="杩斿洖" - left-arrow - @click-left="goBack" - fixed - placeholder - /> + <!-- 浣跨敤閫氱敤椤甸潰澶撮儴缁勪欢 --> + <PageHeader title="鏂板寮�绁ㄧ櫥璁�" @back="goBack" /> <!-- 琛ㄥ崟鍐呭 --> <van-form @submit="submitForm" ref="formRef" label-width="110px" input-align="right" error-message-align="right" scroll-to-error scroll-to-error-position="center"> @@ -198,7 +191,23 @@ <script setup> import { ref, reactive, onMounted } from 'vue' -import { showToast, showLoadingToast, closeToast } from 'vant' +// 鏇挎崲 toast 鏂规硶 +const showToast = (message) => { + uni.showToast({ + title: message, + icon: 'none' + }) +} + +const showLoadingToast = (message) => { + uni.showLoading({ + title: message || '鍔犺浇涓�...' + }) +} + +const closeToast = () => { + uni.hideLoading() +} import { invoiceRegistrationSave } from '@/api/salesManagement/invoiceRegistration' import useUserStore from '@/store/modules/user' import {getSalesLedgerWithProducts} from "@/api/salesManagement/salesLedger"; @@ -358,7 +367,7 @@ productData.value = res.productData; form.value = { ...res }; // 璁剧疆榛樿褰曞叆浜� - form.value.createUer = userStore.name || '' + form.value.createUer = userStore.nickName || '' // 璁剧疆榛樿鏃ユ湡 const today = new Date() -- Gitblit v1.9.3