gaoluyang
6 天以前 adeb8b768926ed50a3fb0857f366d6a0308d2cc0
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";